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
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
934 ac_precious_vars='build_alias
950 ac_subdirs_all='projects/sample
952 projects/llvm-stacker
958 projects/llvm-poolalloc
960 projects/llvm-kernel'
962 # Initialize some variables set by options.
964 ac_init_version=false
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name=s,x,x,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1069 eval enable_$ac_feature=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1088 eval enable_$ac_feature=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1252 -site=* | --site=* | --sit=*)
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1279 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package| sed 's/-/_/g'`
1285 eval with_$ac_package=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_package=`echo $ac_package | sed 's/-/_/g'`
1294 eval with_$ac_package=no ;;
1297 # Obsolete; use --with-x.
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1314 -*) { echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1345 # Be sure to have absolute directory names.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357 { (exit 1); exit 1; }; }
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used." >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 { echo "$as_me: error: Working directory cannot be determined" >&2
1388 { (exit 1); exit 1; }; }
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 { echo "$as_me: error: pwd does not report name of working directory" >&2
1391 { (exit 1); exit 1; }; }
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$0" ||
1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$0" : 'X\(//\)[^/]' \| \
1401 X"$0" : 'X\(//\)$' \| \
1402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431 { (exit 1); exit 1; }; }
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436 { (exit 1); exit 1; }; }
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures llvm 2.3svn to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of llvm 2.3svn:";;
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-expensive-checks
1539 --enable-debug-runtime
1540 --enable-jit Enable Just In Time Compiling (default is YES)
1541 --enable-doxygen Build doxygen documentation (default is NO)
1542 --enable-threads Use threads if available (default is YES)
1543 --enable-pic Build LLVM with Position Independent Code (default
1545 --enable-targets Build specific host targets:
1546 all,host-only,{target-name} (default=all)
1547 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1549 --enable-bindings Build specific language bindings:
1550 all,auto,none,{binding-name} (default=auto)
1551 --enable-ltdl-install install libltdl
1552 --enable-shared[=PKGS] build shared libraries
1554 --enable-static[=PKGS] build static libraries
1556 --enable-fast-install[=PKGS]
1557 optimize for fast installation
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1566 --with-llvmgcc Specify location of llvm-gcc driver (default
1568 --with-llvmgxx Specify location of llvm-g++ driver (default
1570 --with-extra-options Specify addtional options to compile LLVM with
1571 --with-ocaml-libdir Specify install location for ocaml bindings (default
1573 --with-tclinclude directory where tcl headers are
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1577 --with-tags[=TAGS] include additional configurations [automatic]
1578 --with-udis86=<path> Use udis86 external x86 disassembler library
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1591 the first program found out of: `bison -y', `byacc', `yacc'.
1592 YFLAGS The list of arguments that will be passed by default to $YACC.
1593 This script will default YFLAGS to the empty string to avoid a
1594 default value of `-d' given by some make applications.
1595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to <llvmbugs@cs.uiuc.edu>.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" || continue
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1630 .) # We are building in place.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1663 llvm configure 2.3svn
1664 generated by GNU Autoconf 2.60
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1671 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1679 It was created by llvm $as_me 2.3svn, which was
1680 generated by GNU Autoconf 2.60. Invocation command line was
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1701 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 echo "PATH: $as_dir"
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_must_keep_next=false
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1751 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 -* ) ac_must_keep_next=true ;;
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log. We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1796 # The following way of writing the cache mishandles newlines in values,
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 _ | IFS | as_nl) ;; #(
1808 *) $as_unset $ac_var ;;
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1833 for ac_var in $ac_subst_vars
1835 eval ac_val=\$$ac_var
1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 echo "$ac_var='\''$ac_val'\''"
1843 if test -n "$ac_subst_files"; then
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1850 for ac_var in $ac_subst_files
1852 eval ac_val=\$$ac_var
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 echo "$ac_var='\''$ac_val'\''"
1861 if test -s confdefs.h; then
1871 test "$ac_signal" != 0 &&
1872 echo "$as_me: caught signal $ac_signal"
1873 echo "$as_me: exit $exit_status"
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1887 # Predefined preprocessor variables.
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer explicitly selected file to automatically selected ones.
1916 if test -n "$CONFIG_SITE"; then
1917 set x "$CONFIG_SITE"
1918 elif test "x$prefix" != xNONE; then
1919 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921 set x "$ac_default_prefix/share/config.site" \
1922 "$ac_default_prefix/etc/config.site"
1927 if test -r "$ac_site_file"; then
1928 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 echo "$as_me: loading cache $cache_file" >&6;}
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1947 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 echo "$as_me: creating cache $cache_file" >&6;}
1952 # Check that the precious variables saved in the cache have kept the same
1954 ac_cache_corrupted=false
1955 for ac_var in $ac_precious_vars; do
1956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957 eval ac_new_set=\$ac_env_${ac_var}_set
1958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959 eval ac_new_val=\$ac_env_${ac_var}_value
1960 case $ac_old_set,$ac_new_set in
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1971 if test "x$ac_old_val" != "x$ac_new_val"; then
1972 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1975 echo "$as_me: former value: $ac_old_val" >&2;}
1976 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1977 echo "$as_me: current value: $ac_new_val" >&2;}
1978 ac_cache_corrupted=:
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1984 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 *) ac_arg=$ac_var=$ac_new_val ;;
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 if $ac_cache_corrupted; then
1994 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2042 for ac_dir in autoconf "$srcdir"/autoconf; do
2043 if test -f "$ac_dir/install-sh"; then
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 elif test -f "$ac_dir/install.sh"; then
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 elif test -f "$ac_dir/shtool"; then
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 if test -z "$ac_aux_dir"; then
2058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2060 { (exit 1); exit 1; }; }
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073 if test ${srcdir} != "." ; then
2074 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2076 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077 { (exit 1); exit 1; }; }
2081 for i in `ls ${srcdir}/projects`
2083 if test -d ${srcdir}/projects/${i} ; then
2086 sample) subdirs="$subdirs projects/sample"
2088 privbracket) subdirs="$subdirs projects/privbracket"
2090 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2092 llvm-test) subdirs="$subdirs projects/llvm-test"
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2098 llvm-java) subdirs="$subdirs projects/llvm-java"
2100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2104 poolalloc) subdirs="$subdirs projects/poolalloc"
2106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2150 ac_save_IFS=$IFS; IFS='-'
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2187 ac_save_IFS=$IFS; IFS='-'
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2242 program_prefix=${target_alias}-
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,-all_load"
2267 llvm_cv_no_link_all_option="-Wl,-noall_load"
2268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="HP-UX"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="Interix"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="Linux"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,-z,allextract"
2302 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2303 llvm_cv_os_type="SunOS"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="Win32"
2309 llvm_cv_platform_type="Win32" ;;
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="MingW"
2314 llvm_cv_platform_type="Win32" ;;
2316 llvm_cv_link_all_option=""
2317 llvm_cv_no_link_all_option=""
2318 llvm_cv_os_type="Unknown"
2319 llvm_cv_platform_type="Unknown" ;;
2322 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2325 if test "$llvm_cv_os_type" = "Unknown" ; then
2326 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2328 { (exit 1); exit 1; }; }
2334 LINKALL=$llvm_cv_link_all_option
2336 NOLINKALL=$llvm_cv_no_link_all_option
2339 case $llvm_cv_platform_type in
2342 cat >>confdefs.h <<\_ACEOF
2343 #define LLVM_ON_UNIX 1
2353 cat >>confdefs.h <<\_ACEOF
2354 #define LLVM_ON_WIN32 1
2364 { echo "$as_me:$LINENO: checking target architecture" >&5
2365 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2366 if test "${llvm_cv_target_arch+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 i?86-*) llvm_cv_target_arch="x86" ;;
2371 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2372 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2373 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2374 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2375 ia64-*) llvm_cv_target_arch="IA64" ;;
2376 arm-*) llvm_cv_target_arch="ARM" ;;
2377 mips-*) llvm_cv_target_arch="Mips" ;;
2378 *) llvm_cv_target_arch="Unknown" ;;
2381 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2382 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2384 if test "$llvm_cv_target_arch" = "Unknown" ; then
2385 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2386 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2389 ARCH=$llvm_cv_target_arch
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2436 if test -z "$ac_cv_prog_CC"; then
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2474 if test "x$ac_ct_CC" = x; then
2477 case $cross_compiling:$ac_tool_warned in
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet. If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2534 if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$CC" && break
2634 if test -z "$CC"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$ac_ct_CC" && break
2678 if test "x$ac_ct_CC" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort. b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions. Remove them first so a
2769 # subsequent execution test works.
2771 for ac_file in $ac_files
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780 if { (ac_try="$ac_link_default"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2795 for ac_file in $ac_files
2797 test -f "$ac_file" || continue
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2802 # We found the default executable, but exeext='' is most
2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&2;}
2830 { (exit 77); exit 77; }; }
2833 ac_exeext=$ac_cv_exeext
2834 { echo "$as_me:$LINENO: result: $ac_file" >&5
2835 echo "${ECHO_T}$ac_file" >&6; }
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 if test "$cross_compiling" = maybe; then
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3248 if test "$GCC" = yes; then
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 ac_cv_prog_cc_c89=no
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3285 s = g (p, va_arg (v,int));
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_c89=$ac_arg
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
3367 rm -f conftest.$ac_ext
3372 case "x$ac_cv_prog_cc_c89" in
3374 { echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6; } ;;
3377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378 echo "${ECHO_T}unsupported" >&6; } ;;
3380 CC="$CC $ac_cv_prog_cc_c89"
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3404 if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3427 # include <limits.h>
3429 # include <assert.h>
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Broken: fails on valid input.
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Passes both tests.
3511 rm -f conftest.err conftest.$ac_ext
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3528 { echo "$as_me:$LINENO: result: $CPP" >&5
3529 echo "${ECHO_T}$CPP" >&6; }
3531 for ac_c_preproc_warn_flag in '' yes
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3546 # include <limits.h>
3548 # include <assert.h>
3552 if { (ac_try="$ac_cpp conftest.$ac_ext"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 if test -z "$ac_cpp_err"; then
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Broken: fails on valid input.
3584 rm -f conftest.err conftest.$ac_ext
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <ac_nonexistent.h>
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 if test -z "$ac_cpp_err"; then
3619 # Broken: success on invalid input.
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Passes both tests.
3630 rm -f conftest.err conftest.$ac_ext
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 $ac_path_GREP_found && break 3
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3721 ac_cv_path_GREP=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 $ac_path_EGREP_found && break 3
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3803 ac_cv_path_EGREP=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_header_stdc=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_header_stdc=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then
3897 ac_cv_header_stdc=no
3903 if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then
3918 ac_cv_header_stdc=no
3924 if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 #if ((' ' & 0x0FF) == 0x020)
3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3941 # define ISLOWER(c) \
3942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
3955 || toupper (i) != TOUPPER (i))
3960 rm -f conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_stdc=no
3989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997 if test $ac_cv_header_stdc = yes; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define STDC_HEADERS 1
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4032 #include <$ac_header>
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 eval "$as_ac_Header=yes"
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 eval "$as_ac_Header=no"
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080 echo "${ECHO_T}$ac_res" >&6; }
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093 if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <sys/types.h>
4104 #include <sys/param.h>
4109 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 # It does; now see whether it defined to BIG_ENDIAN or not.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/param.h>
4164 #if BYTE_ORDER != BIG_ENDIAN
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_c_bigendian=yes
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_c_bigendian=no
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 # It does not; compile a test program.
4220 if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4238 _ascii (); _ebcdic ();
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278 ac_cv_c_bigendian=yes
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4308 /* Are we little or big endian? From Harbison&Steele. */
4312 char c[sizeof (long int)];
4315 return u.c[sizeof (long int) - 1] == 1;
4321 rm -f conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian=no
4343 echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_c_bigendian=yes
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360 case $ac_cv_c_bigendian in
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370 echo "$as_me: error: unknown endianness
4371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4376 if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4380 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382 if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4388 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4488 ac_cv_prog_BUILD_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CC=$ac_cv_prog_BUILD_CC
4511 if test -n "$BUILD_CC"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513 echo "${ECHO_T}$BUILD_CC" >&6; }
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530 (eval $ac_build_link) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for file in conftest.*; do
4536 *.c | *.o | *.obj) ;;
4537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4551 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554 ac_build_exeext=$BUILD_EXEEXT
4557 LLVM_CROSS_COMPILING=0
4561 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4572 # Check whether --enable-optimized was given.
4573 if test "${enable_optimized+set}" = set; then
4574 enableval=$enable_optimized;
4579 if test ${enableval} = "no" ; then
4583 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4587 # Check whether --enable-assertions was given.
4588 if test "${enable_assertions+set}" = set; then
4589 enableval=$enable_assertions;
4594 if test ${enableval} = "yes" ; then
4598 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4602 # Check whether --enable-expensive-checks was given.
4603 if test "${enable_expensive_checks+set}" = set; then
4604 enableval=$enable_expensive_checks;
4609 if test ${enableval} = "yes" ; then
4610 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4612 EXPENSIVE_CHECKS=yes
4615 ENABLE_EXPENSIVE_CHECKS=
4621 # Check whether --enable-debug-runtime was given.
4622 if test "${enable_debug_runtime+set}" = set; then
4623 enableval=$enable_debug_runtime;
4628 if test ${enableval} = "no" ; then
4632 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4636 # Check whether --enable-jit was given.
4637 if test "${enable_jit+set}" = set; then
4638 enableval=$enable_jit;
4643 if test ${enableval} = "no"
4648 case "$llvm_cv_target_arch" in
4649 x86) TARGET_HAS_JIT=1
4651 Sparc) TARGET_HAS_JIT=0
4653 PowerPC) TARGET_HAS_JIT=1
4655 x86_64) TARGET_HAS_JIT=1
4657 Alpha) TARGET_HAS_JIT=1
4659 IA64) TARGET_HAS_JIT=0
4661 ARM) TARGET_HAS_JIT=0
4663 Mips) TARGET_HAS_JIT=0
4670 # Check whether --enable-doxygen was given.
4671 if test "${enable_doxygen+set}" = set; then
4672 enableval=$enable_doxygen;
4677 case "$enableval" in
4678 yes) ENABLE_DOXYGEN=1
4680 no) ENABLE_DOXYGEN=0
4682 default) ENABLE_DOXYGEN=0
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4685 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4689 # Check whether --enable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691 enableval=$enable_threads;
4696 case "$enableval" in
4697 yes) ENABLE_THREADS=1
4699 no) ENABLE_THREADS=0
4701 default) ENABLE_THREADS=1
4703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4704 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4708 cat >>confdefs.h <<_ACEOF
4709 #define ENABLE_THREADS $ENABLE_THREADS
4713 # Check whether --enable-pic was given.
4714 if test "${enable_pic+set}" = set; then
4715 enableval=$enable_pic;
4720 case "$enableval" in
4725 default) ENABLE_PIC=0
4727 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4728 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4732 cat >>confdefs.h <<_ACEOF
4733 #define ENABLE_PIC $ENABLE_PIC
4738 # Check whether --enable-targets was given.
4739 if test "${enable_targets+set}" = set; then
4740 enableval=$enable_targets;
4745 case "$enableval" in
4746 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
4748 case "$llvm_cv_target_arch" in
4749 x86) TARGETS_TO_BUILD="X86" ;;
4750 x86_64) TARGETS_TO_BUILD="X86" ;;
4751 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4752 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4753 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4754 IA64) TARGETS_TO_BUILD="IA64" ;;
4755 ARM) TARGETS_TO_BUILD="ARM" ;;
4756 Mips) TARGETS_TO_BUILD="Mips" ;;
4757 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4758 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4759 echo "$as_me: error: Can not set target to build" >&2;}
4760 { (exit 1); exit 1; }; } ;;
4763 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4765 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4767 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4768 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4769 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4770 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4771 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4772 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4773 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4774 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4775 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4776 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4777 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4778 { (exit 1); exit 1; }; } ;;
4783 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4786 # Check whether --enable-cbe-printf-a was given.
4787 if test "${enable_cbe_printf_a+set}" = set; then
4788 enableval=$enable_cbe_printf_a;
4793 case "$enableval" in
4794 yes) ENABLE_CBE_PRINTF_A=1
4796 no) ENABLE_CBE_PRINTF_A=0
4798 default) ENABLE_CBE_PRINTF_A=1
4800 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4801 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4802 { (exit 1); exit 1; }; } ;;
4805 cat >>confdefs.h <<_ACEOF
4806 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4811 # Check whether --with-llvmgccdir was given.
4812 if test "${with_llvmgccdir+set}" = set; then
4813 withval=$with_llvmgccdir;
4819 default) WITH_LLVMGCCDIR=default ;;
4820 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4821 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4822 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4827 # Check whether --with-llvmgcc was given.
4828 if test "${with_llvmgcc+set}" = set; then
4829 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4835 # Check whether --with-llvmgxx was given.
4836 if test "${with_llvmgxx+set}" = set; then
4837 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4842 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4843 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4844 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4845 { (exit 1); exit 1; }; };
4848 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4849 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4850 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4851 { (exit 1); exit 1; }; };
4855 # Check whether --with-extra-options was given.
4856 if test "${with_extra_options+set}" = set; then
4857 withval=$with_extra_options;
4863 default) EXTRA_OPTIONS= ;;
4864 *) EXTRA_OPTIONS=$withval ;;
4866 EXTRA_OPTIONS=$EXTRA_OPTIONS
4869 # Check whether --enable-bindings was given.
4870 if test "${enable_bindings+set}" = set; then
4871 enableval=$enable_bindings;
4876 BINDINGS_TO_BUILD=""
4877 case "$enableval" in
4878 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4879 all ) BINDINGS_TO_BUILD="ocaml" ;;
4880 none | no) BINDINGS_TO_BUILD="" ;;
4881 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4882 case "$a_binding" in
4883 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4884 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4885 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4893 # Check whether --with-ocaml-libdir was given.
4894 if test "${with_ocaml_libdir+set}" = set; then
4895 withval=$with_ocaml_libdir;
4901 auto) with_ocaml_libdir="$withval" ;;
4902 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4903 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4904 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4916 # On Suns, sometimes $CPP names a directory.
4917 if test -n "$CPP" && test -d "$CPP"; then
4920 if test -z "$CPP"; then
4921 if test "${ac_cv_prog_CPP+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 # Double quotes because CPP needs to be expanded
4925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4928 for ac_c_preproc_warn_flag in '' yes
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4943 # include <limits.h>
4945 # include <assert.h>
4949 if { (ac_try="$ac_cpp conftest.$ac_ext"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null; then
4962 if test -s conftest.err; then
4963 ac_cpp_err=$ac_c_preproc_warn_flag
4964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971 if test -z "$ac_cpp_err"; then
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 # Broken: fails on valid input.
4981 rm -f conftest.err conftest.$ac_ext
4983 # OK, works on sane cases. Now check whether nonexistent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 #include <ac_nonexistent.h>
4993 if { (ac_try="$ac_cpp conftest.$ac_ext"
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_c_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015 if test -z "$ac_cpp_err"; then
5016 # Broken: success on invalid input.
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 # Passes both tests.
5027 rm -f conftest.err conftest.$ac_ext
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then
5044 { echo "$as_me:$LINENO: result: $CPP" >&5
5045 echo "${ECHO_T}$CPP" >&6; }
5047 for ac_c_preproc_warn_flag in '' yes
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5062 # include <limits.h>
5064 # include <assert.h>
5068 if { (ac_try="$ac_cpp conftest.$ac_ext"
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5076 grep -v '^ *+' conftest.er1 >conftest.err
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_c_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5090 if test -z "$ac_cpp_err"; then
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Broken: fails on valid input.
5100 rm -f conftest.err conftest.$ac_ext
5102 # OK, works on sane cases. Now check whether nonexistent headers
5103 # can be detected and how.
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <ac_nonexistent.h>
5112 if { (ac_try="$ac_cpp conftest.$ac_ext"
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } >/dev/null; then
5125 if test -s conftest.err; then
5126 ac_cpp_err=$ac_c_preproc_warn_flag
5127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5134 if test -z "$ac_cpp_err"; then
5135 # Broken: success on invalid input.
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 # Passes both tests.
5146 rm -f conftest.err conftest.$ac_ext
5149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150 rm -f conftest.err conftest.$ac_ext
5151 if $ac_preproc_ok; then
5154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5155 See \`config.log' for more details." >&5
5156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5157 See \`config.log' for more details." >&2;}
5158 { (exit 1); exit 1; }; }
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 if test -n "$ac_tool_prefix"; then
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_prog_CC+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 if test -n "$CC"; then
5183 ac_cv_prog_CC="$CC" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 if test -n "$CC"; then
5204 { echo "$as_me:$LINENO: result: $CC" >&5
5205 echo "${ECHO_T}$CC" >&6; }
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5212 test -n "$CC" && break
5215 if test -z "$CC"; then
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 if test -n "$ac_ct_CC"; then
5227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_ac_ct_CC="$ac_prog"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5247 if test -n "$ac_ct_CC"; then
5248 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5249 echo "${ECHO_T}$ac_ct_CC" >&6; }
5251 { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5256 test -n "$ac_ct_CC" && break
5259 if test "x$ac_ct_CC" = x; then
5262 case $cross_compiling:$ac_tool_warned in
5264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5265 whose name does not start with the host triplet. If you think this
5266 configuration is useful to you, please write to autoconf@gnu.org." >&5
5267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5268 whose name does not start with the host triplet. If you think this
5269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5270 ac_tool_warned=yes ;;
5277 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5278 See \`config.log' for more details." >&5
5279 echo "$as_me: error: no acceptable C compiler found in \$PATH
5280 See \`config.log' for more details." >&2;}
5281 { (exit 1); exit 1; }; }
5283 # Provide some information about the compiler.
5284 echo "$as_me:$LINENO: checking for C compiler version" >&5
5285 ac_compiler=`set X $ac_compile; echo $2`
5286 { (ac_try="$ac_compiler --version >&5"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compiler --version >&5") 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296 { (ac_try="$ac_compiler -v >&5"
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_compiler -v >&5") 2>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }
5306 { (ac_try="$ac_compiler -V >&5"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compiler -V >&5") 2>&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }
5317 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5318 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5319 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5355 { (case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_try") 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_try") 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5386 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5387 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5388 GCC=`test $ac_compiler_gnu = yes && echo yes`
5389 ac_test_CFLAGS=${CFLAGS+set}
5390 ac_save_CFLAGS=$CFLAGS
5391 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5392 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5393 if test "${ac_cv_prog_cc_g+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 ac_save_c_werror_flag=$ac_c_werror_flag
5397 ac_c_werror_flag=yes
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430 { (case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_try") 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_try") 2>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5485 { (case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_try") 2>&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_try") 2>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 ac_c_werror_flag=$ac_save_c_werror_flag
5511 cat >conftest.$ac_ext <<_ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5541 { (case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_try") 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_try") 2>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 ac_c_werror_flag=$ac_save_c_werror_flag
5577 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5578 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5579 if test "$ac_test_CFLAGS" = set; then
5580 CFLAGS=$ac_save_CFLAGS
5581 elif test $ac_cv_prog_cc_g = yes; then
5582 if test "$GCC" = yes; then
5588 if test "$GCC" = yes; then
5594 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5595 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5596 if test "${ac_cv_prog_cc_c89+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 ac_cv_prog_cc_c89=no
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5609 #include <sys/types.h>
5610 #include <sys/stat.h>
5611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5612 struct buf { int x; };
5613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5614 static char *e (p, i)
5620 static char *f (char * (*g) (char **, int), char **p, ...)
5625 s = g (p, va_arg (v,int));
5630 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5631 function prototypes and stuff, but not '\xHH' hex character constants.
5632 These don't provoke an error unfortunately, instead are silently treated
5633 as 'x'. The following induces an error, until -std is added to get
5634 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5635 array size at least. It's necessary to write '\x00'==0 to get something
5636 that's true only with -std. */
5637 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5639 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5640 inside strings and character constants. */
5642 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5644 int test (int i, double x);
5645 struct s1 {int (*f) (int a);};
5646 struct s2 {int (*f) (double a);};
5647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5653 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5661 CC="$ac_save_CC $ac_arg"
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5677 { (case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_try") 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_try") 2>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_cv_prog_cc_c89=$ac_arg
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext
5705 test "x$ac_cv_prog_cc_c89" != "xno" && break
5707 rm -f conftest.$ac_ext
5712 case "x$ac_cv_prog_cc_c89" in
5714 { echo "$as_me:$LINENO: result: none needed" >&5
5715 echo "${ECHO_T}none needed" >&6; } ;;
5717 { echo "$as_me:$LINENO: result: unsupported" >&5
5718 echo "${ECHO_T}unsupported" >&6; } ;;
5720 CC="$CC $ac_cv_prog_cc_c89"
5721 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5722 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 ac_cpp='$CXXCPP $CPPFLAGS'
5734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5737 if test -z "$CXX"; then
5738 if test -n "$CCC"; then
5741 if test -n "$ac_tool_prefix"; then
5744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5748 if test "${ac_cv_prog_CXX+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 if test -n "$CXX"; then
5752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5761 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 if test -n "$CXX"; then
5773 { echo "$as_me:$LINENO: result: $CXX" >&5
5774 echo "${ECHO_T}$CXX" >&6; }
5776 { echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6; }
5781 test -n "$CXX" && break
5784 if test -z "$CXX"; then
5788 # Extract the first word of "$ac_prog", so it can be a program name with args.
5789 set dummy $ac_prog; ac_word=$2
5790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5792 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 if test -n "$ac_ct_CXX"; then
5796 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_prog_ac_ct_CXX="$ac_prog"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5816 if test -n "$ac_ct_CXX"; then
5817 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5818 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5820 { echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6; }
5825 test -n "$ac_ct_CXX" && break
5828 if test "x$ac_ct_CXX" = x; then
5831 case $cross_compiling:$ac_tool_warned in
5833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5834 whose name does not start with the host triplet. If you think this
5835 configuration is useful to you, please write to autoconf@gnu.org." >&5
5836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5837 whose name does not start with the host triplet. If you think this
5838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5839 ac_tool_warned=yes ;;
5847 # Provide some information about the compiler.
5848 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5849 ac_compiler=`set X $ac_compile; echo $2`
5850 { (ac_try="$ac_compiler --version >&5"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compiler --version >&5") 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }
5860 { (ac_try="$ac_compiler -v >&5"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compiler -v >&5") 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }
5870 { (ac_try="$ac_compiler -V >&5"
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compiler -V >&5") 2>&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }
5881 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5882 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5883 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 cat >conftest.$ac_ext <<_ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5950 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5951 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5952 GXX=`test $ac_compiler_gnu = yes && echo yes`
5953 ac_test_CXXFLAGS=${CXXFLAGS+set}
5954 ac_save_CXXFLAGS=$CXXFLAGS
5955 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5956 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5957 if test "${ac_cv_prog_cxx_g+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5961 ac_cxx_werror_flag=yes
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_cv_prog_cxx_g=yes
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6034 rm -f conftest.$ac_objext
6035 if { (ac_try="$ac_compile"
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6043 grep -v '^ *+' conftest.er1 >conftest.err
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6049 { (case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_try") 2>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest.$ac_objext'
6059 { (case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_try") 2>&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6105 { (case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_try") 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_try") 2>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_prog_cxx_g=yes
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6141 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6142 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6143 if test "$ac_test_CXXFLAGS" = set; then
6144 CXXFLAGS=$ac_save_CXXFLAGS
6145 elif test $ac_cv_prog_cxx_g = yes; then
6146 if test "$GXX" = yes; then
6152 if test "$GXX" = yes; then
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164 { echo "$as_me:$LINENO: checking " >&5
6165 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6166 if test "${ac_cv_has_flex+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 for ac_prog in flex lex
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_LEX+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 if test -n "$LEX"; then
6179 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_LEX="$ac_prog"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 if test -n "$LEX"; then
6200 { echo "$as_me:$LINENO: result: $LEX" >&5
6201 echo "${ECHO_T}$LEX" >&6; }
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6208 test -n "$LEX" && break
6210 test -n "$LEX" || LEX=":"
6212 if test -z "$LEXLIB"
6214 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6215 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6216 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 ac_check_lib_save_LIBS=$LIBS
6221 cat >conftest.$ac_ext <<_ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6228 /* Override any GCC internal prototype to avoid an error.
6229 Use char because int might match the return type of a GCC
6230 builtin and then its argument prototype would still apply. */
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (ac_try="$ac_link"
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_link") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6258 { (case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_try") 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_try") 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_lib_fl_yywrap=yes
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 ac_cv_lib_fl_yywrap=no
6285 rm -f core conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_check_lib_save_LIBS
6289 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6290 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6291 if test $ac_cv_lib_fl_yywrap = yes; then
6294 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6295 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6296 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 ac_check_lib_save_LIBS=$LIBS
6301 cat >conftest.$ac_ext <<_ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6308 /* Override any GCC internal prototype to avoid an error.
6309 Use char because int might match the return type of a GCC
6310 builtin and then its argument prototype would still apply. */
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (ac_try="$ac_link"
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_link") 2>conftest.er1
6332 grep -v '^ *+' conftest.er1 >conftest.err
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6338 { (case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_try") 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_try") 2>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_cv_lib_l_yywrap=yes
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_cv_lib_l_yywrap=no
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_check_lib_save_LIBS
6369 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6370 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6371 if test $ac_cv_lib_l_yywrap = yes; then
6379 if test "x$LEX" != "x:"; then
6380 { echo "$as_me:$LINENO: checking lex output file root" >&5
6381 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6382 if test "${ac_cv_prog_lex_root+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 # The minimal lex program is just a single line: %%. But some broken lexes
6386 # (Solaris, I think it was) want two %% lines, so accommodate them.
6387 cat >conftest.l <<_ACEOF
6391 { (ac_try="$LEX conftest.l"
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$LEX conftest.l") 2>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }
6401 if test -f lex.yy.c; then
6402 ac_cv_prog_lex_root=lex.yy
6403 elif test -f lexyy.c; then
6404 ac_cv_prog_lex_root=lexyy
6406 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6407 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6408 { (exit 1); exit 1; }; }
6411 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6412 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6414 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6416 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6417 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6418 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 # POSIX says lex can declare yytext either as a pointer or an array; the
6422 # default is implementation-dependent. Figure out which it is, since
6423 # not all implementations provide the %pointer and %array declarations.
6424 ac_cv_prog_lex_yytext_pointer=no
6425 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6427 LIBS="$LIBS $LEXLIB"
6428 cat >conftest.$ac_ext <<_ACEOF
6429 `cat $LEX_OUTPUT_ROOT.c`
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (ac_try="$ac_link"
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_link") 2>conftest.er1
6440 grep -v '^ *+' conftest.er1 >conftest.err
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6446 { (case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_try") 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest$ac_exeext'
6456 { (case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_try") 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_cv_prog_lex_yytext_pointer=yes
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6473 rm -f core conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6476 rm -f "${LEX_OUTPUT_ROOT}.c"
6479 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6480 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6481 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6483 cat >>confdefs.h <<\_ACEOF
6484 #define YYTEXT_POINTER 1
6492 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6493 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6494 if test "$LEX" != "flex"; then
6495 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6496 echo "$as_me: error: flex not found but required" >&2;}
6497 { (exit 1); exit 1; }; }
6503 { echo "$as_me:$LINENO: checking " >&5
6504 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6505 if test "${llvm_cv_has_bison+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 for ac_prog in 'bison -y' byacc
6510 # Extract the first word of "$ac_prog", so it can be a program name with args.
6511 set dummy $ac_prog; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_prog_YACC+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 if test -n "$YACC"; then
6518 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_YACC="$ac_prog"
6528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 YACC=$ac_cv_prog_YACC
6538 if test -n "$YACC"; then
6539 { echo "$as_me:$LINENO: result: $YACC" >&5
6540 echo "${ECHO_T}$YACC" >&6; }
6542 { echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6; }
6547 test -n "$YACC" && break
6549 test -n "$YACC" || YACC="yacc"
6552 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6553 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6554 if test "$YACC" != "bison -y"; then
6556 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6557 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6563 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6564 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6565 if test "${lt_cv_path_NM+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 if test -n "$NM"; then
6569 # Let the user override the test.
6572 lt_nm_to_check="${ac_tool_prefix}nm"
6573 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6574 lt_nm_to_check="$lt_nm_to_check nm"
6576 for lt_tmp_nm in $lt_nm_to_check; do
6577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6578 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6580 test -z "$ac_dir" && ac_dir=.
6581 tmp_nm="$ac_dir/$lt_tmp_nm"
6582 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6583 # Check to see if the nm accepts a BSD-compat flag.
6584 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6585 # nm: unknown option "B" ignored
6586 # Tru64's nm complains that /dev/null is an invalid object file
6587 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6588 */dev/null* | *'Invalid file or object type'*)
6589 lt_cv_path_NM="$tmp_nm -B"
6593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6595 lt_cv_path_NM="$tmp_nm -p"
6599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6600 continue # so that we can try to find one that supports BSD flags
6609 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6612 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6613 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6618 { echo "$as_me:$LINENO: checking for GNU make" >&5
6619 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6620 if test "${llvm_cv_gnu_make_command+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 llvm_cv_gnu_make_command=''
6624 for a in "$MAKE" make gmake gnumake ; do
6625 if test -z "$a" ; then continue ; fi ;
6626 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6628 llvm_cv_gnu_make_command=$a ;
6633 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6634 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6635 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6639 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6640 echo "${ECHO_T}\"Not found\"" >&6; };
6644 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6647 if test "$LN_S" = "ln -s"; then
6648 { echo "$as_me:$LINENO: result: yes" >&5
6649 echo "${ECHO_T}yes" >&6; }
6651 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6652 echo "${ECHO_T}no, using $LN_S" >&6; }
6655 # Extract the first word of "cmp", so it can be a program name with args.
6656 set dummy cmp; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_CMP+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6687 if test -n "$CMP"; then
6688 { echo "$as_me:$LINENO: result: $CMP" >&5
6689 echo "${ECHO_T}$CMP" >&6; }
6691 { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6696 # Extract the first word of "cp", so it can be a program name with args.
6697 set dummy cp; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_CP+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6728 if test -n "$CP"; then
6729 { echo "$as_me:$LINENO: result: $CP" >&5
6730 echo "${ECHO_T}$CP" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 # Extract the first word of "date", so it can be a program name with args.
6738 set dummy date; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_DATE+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6768 DATE=$ac_cv_path_DATE
6769 if test -n "$DATE"; then
6770 { echo "$as_me:$LINENO: result: $DATE" >&5
6771 echo "${ECHO_T}$DATE" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 # Extract the first word of "find", so it can be a program name with args.
6779 set dummy find; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_path_FIND+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6809 FIND=$ac_cv_path_FIND
6810 if test -n "$FIND"; then
6811 { echo "$as_me:$LINENO: result: $FIND" >&5
6812 echo "${ECHO_T}$FIND" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6819 # Extract the first word of "grep", so it can be a program name with args.
6820 set dummy grep; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_GREP+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6850 GREP=$ac_cv_path_GREP
6851 if test -n "$GREP"; then
6852 { echo "$as_me:$LINENO: result: $GREP" >&5
6853 echo "${ECHO_T}$GREP" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6860 # Extract the first word of "mkdir", so it can be a program name with args.
6861 set dummy mkdir; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_MKDIR+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6891 MKDIR=$ac_cv_path_MKDIR
6892 if test -n "$MKDIR"; then
6893 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6894 echo "${ECHO_T}$MKDIR" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6901 # Extract the first word of "mv", so it can be a program name with args.
6902 set dummy mv; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_MV+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6933 if test -n "$MV"; then
6934 { echo "$as_me:$LINENO: result: $MV" >&5
6935 echo "${ECHO_T}$MV" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_prog_RANLIB+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 if test -n "$RANLIB"; then
6951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 RANLIB=$ac_cv_prog_RANLIB
6971 if test -n "$RANLIB"; then
6972 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6973 echo "${ECHO_T}$RANLIB" >&6; }
6975 { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6981 if test -z "$ac_cv_prog_RANLIB"; then
6982 ac_ct_RANLIB=$RANLIB
6983 # Extract the first word of "ranlib", so it can be a program name with args.
6984 set dummy ranlib; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 if test -n "$ac_ct_RANLIB"; then
6991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_ac_ct_RANLIB="ranlib"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7013 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7019 if test "x$ac_ct_RANLIB" = x; then
7022 case $cross_compiling:$ac_tool_warned in
7024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7025 whose name does not start with the host triplet. If you think this
7026 configuration is useful to you, please write to autoconf@gnu.org." >&5
7027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7028 whose name does not start with the host triplet. If you think this
7029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7030 ac_tool_warned=yes ;;
7032 RANLIB=$ac_ct_RANLIB
7035 RANLIB="$ac_cv_prog_RANLIB"
7038 # Extract the first word of "rm", so it can be a program name with args.
7039 set dummy rm; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_RM+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7070 if test -n "$RM"; then
7071 { echo "$as_me:$LINENO: result: $RM" >&5
7072 echo "${ECHO_T}$RM" >&6; }
7074 { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7079 # Extract the first word of "sed", so it can be a program name with args.
7080 set dummy sed; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_SED+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7111 if test -n "$SED"; then
7112 { echo "$as_me:$LINENO: result: $SED" >&5
7113 echo "${ECHO_T}$SED" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7120 # Extract the first word of "tar", so it can be a program name with args.
7121 set dummy tar; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_TAR+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7152 if test -n "$TAR"; then
7153 { echo "$as_me:$LINENO: result: $TAR" >&5
7154 echo "${ECHO_T}$TAR" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 # Extract the first word of "pwd", so it can be a program name with args.
7162 set dummy pwd; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_BINPWD+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7192 BINPWD=$ac_cv_path_BINPWD
7193 if test -n "$BINPWD"; then
7194 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7195 echo "${ECHO_T}$BINPWD" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7203 # Extract the first word of "Graphviz", so it can be a program name with args.
7204 set dummy Graphviz; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7234 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7235 if test -n "$GRAPHVIZ"; then
7236 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7237 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7244 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7246 cat >>confdefs.h <<\_ACEOF
7247 #define HAVE_GRAPHVIZ 1
7250 if test "$llvm_cv_os_type" = "MingW" ; then
7251 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7254 cat >>confdefs.h <<_ACEOF
7255 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7259 # Extract the first word of "dot", so it can be a program name with args.
7260 set dummy dot; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_DOT+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7291 if test -n "$DOT"; then
7292 { echo "$as_me:$LINENO: result: $DOT" >&5
7293 echo "${ECHO_T}$DOT" >&6; }
7295 { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7300 if test "$DOT" != "echo dot" ; then
7302 cat >>confdefs.h <<\_ACEOF
7306 if test "$llvm_cv_os_type" = "MingW" ; then
7307 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7310 cat >>confdefs.h <<_ACEOF
7311 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7315 for ac_prog in gv gsview32
7317 # Extract the first word of "$ac_prog", so it can be a program name with args.
7318 set dummy $ac_prog; ac_word=$2
7319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321 if test "${ac_cv_path_GV+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 if test -n "$GV"; then
7349 { echo "$as_me:$LINENO: result: $GV" >&5
7350 echo "${ECHO_T}$GV" >&6; }
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7357 test -n "$GV" && break
7359 test -n "$GV" || GV="echo gv"
7361 if test "$GV" != "echo gv" ; then
7363 cat >>confdefs.h <<\_ACEOF
7367 if test "$llvm_cv_os_type" = "MingW" ; then
7368 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7371 cat >>confdefs.h <<_ACEOF
7372 #define LLVM_PATH_GV "$GV${EXEEXT}"
7376 # Extract the first word of "dotty", so it can be a program name with args.
7377 set dummy dotty; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_DOTTY+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7407 DOTTY=$ac_cv_path_DOTTY
7408 if test -n "$DOTTY"; then
7409 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7410 echo "${ECHO_T}$DOTTY" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 if test "$DOTTY" != "echo dotty" ; then
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_DOTTY 1
7423 if test "$llvm_cv_os_type" = "MingW" ; then
7424 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7427 cat >>confdefs.h <<_ACEOF
7428 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7434 # Extract the first word of "perl", so it can be a program name with args.
7435 set dummy perl; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_PERL+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7465 PERL=$ac_cv_path_PERL
7466 if test -n "$PERL"; then
7467 { echo "$as_me:$LINENO: result: $PERL" >&5
7468 echo "${ECHO_T}$PERL" >&6; }
7470 { echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6; }
7475 if test "$PERL" != "none"; then
7476 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7477 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7478 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7479 { echo "$as_me:$LINENO: result: yes" >&5
7480 echo "${ECHO_T}yes" >&6; }
7483 { echo "$as_me:$LINENO: result: not found" >&5
7484 echo "${ECHO_T}not found" >&6; }
7489 if test x"$PERL" = xnone; then
7492 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7493 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7494 { (exit 1); exit 1; }; }
7500 # Find a good install program. We prefer a C program (faster),
7501 # so one script is as good as another. But avoid the broken or
7502 # incompatible versions:
7503 # SysV /etc/install, /usr/sbin/install
7504 # SunOS /usr/etc/install
7505 # IRIX /sbin/install
7507 # AmigaOS /C/install, which installs bootblocks on floppy discs
7508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7511 # OS/2's system install, which has a completely different semantic
7512 # ./install, which can be erroneously created by make from ./install.sh.
7513 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7515 if test -z "$INSTALL"; then
7516 if test "${ac_cv_path_install+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 # Account for people who put trailing slashes in PATH elements.
7526 ./ | .// | /cC/* | \
7527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7531 # OSF1 and SCO ODT 3.0 have their own names for install.
7532 # Don't use installbsd from OSF since it installs stuff as root
7534 for ac_prog in ginstall scoinst install; do
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7537 if test $ac_prog = install &&
7538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7539 # AIX install. It has an incompatible calling convention.
7541 elif test $ac_prog = install &&
7542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7543 # program-specific install script used by HP pwplus--don't use.
7546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7559 if test "${ac_cv_path_install+set}" = set; then
7560 INSTALL=$ac_cv_path_install
7562 # As a last resort, use the slow shell script. Don't cache a
7563 # value for INSTALL within a source directory, because that will
7564 # break other packages using the cache if that directory is
7565 # removed, or if the value is a relative name.
7566 INSTALL=$ac_install_sh
7569 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7570 echo "${ECHO_T}$INSTALL" >&6; }
7572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7573 # It thinks the first close brace ends the variable substitution.
7574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7581 # Extract the first word of "bzip2", so it can be a program name with args.
7582 set dummy bzip2; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_BZIP2+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
7651 DOXYGEN=$ac_cv_path_DOXYGEN
7652 if test -n "$DOXYGEN"; then
7653 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7654 echo "${ECHO_T}$DOXYGEN" >&6; }
7656 { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7661 # Extract the first word of "groff", so it can be a program name with args.
7662 set dummy groff; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_GROFF+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 GROFF=$ac_cv_path_GROFF
7692 if test -n "$GROFF"; then
7693 { echo "$as_me:$LINENO: result: $GROFF" >&5
7694 echo "${ECHO_T}$GROFF" >&6; }
7696 { echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6; }
7701 # Extract the first word of "gzip", so it can be a program name with args.
7702 set dummy gzip; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_path_GZIP+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 GZIP=$ac_cv_path_GZIP
7732 if test -n "$GZIP"; then
7733 { echo "$as_me:$LINENO: result: $GZIP" >&5
7734 echo "${ECHO_T}$GZIP" >&6; }
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7741 # Extract the first word of "pod2html", so it can be a program name with args.
7742 set dummy pod2html; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_POD2HTML+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 POD2HTML=$ac_cv_path_POD2HTML
7772 if test -n "$POD2HTML"; then
7773 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7774 echo "${ECHO_T}$POD2HTML" >&6; }
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7781 # Extract the first word of "pod2man", so it can be a program name with args.
7782 set dummy pod2man; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_POD2MAN+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 POD2MAN=$ac_cv_path_POD2MAN
7812 if test -n "$POD2MAN"; then
7813 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7814 echo "${ECHO_T}$POD2MAN" >&6; }
7816 { echo "$as_me:$LINENO: result: no" >&5
7817 echo "${ECHO_T}no" >&6; }
7821 # Extract the first word of "runtest", so it can be a program name with args.
7822 set dummy runtest; ac_word=$2
7823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7825 if test "${ac_cv_path_RUNTEST+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 RUNTEST=$ac_cv_path_RUNTEST
7852 if test -n "$RUNTEST"; then
7853 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7854 echo "${ECHO_T}$RUNTEST" >&6; }
7856 { echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6; }
7863 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7864 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7866 # Check whether --with-tclinclude was given.
7867 if test "${with_tclinclude+set}" = set; then
7868 withval=$with_tclinclude; with_tclinclude=${withval}
7873 if test "${ac_cv_path_tclsh+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 if test x"${with_tclinclude}" != x ; then
7878 if test -f ${with_tclinclude}/tclsh ; then
7879 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7880 elif test -f ${with_tclinclude}/src/tclsh ; then
7881 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7883 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7884 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7885 { (exit 1); exit 1; }; }
7889 if test x"${ac_cv_path_tclsh}" = x ; then
7890 { echo "$as_me:$LINENO: result: none" >&5
7891 echo "${ECHO_T}none" >&6; }
7892 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
7894 # Extract the first word of "$ac_prog", so it can be a program name with args.
7895 set dummy $ac_prog; ac_word=$2
7896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7898 if test "${ac_cv_path_TCLSH+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7913 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 TCLSH=$ac_cv_path_TCLSH
7925 if test -n "$TCLSH"; then
7926 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7927 echo "${ECHO_T}$TCLSH" >&6; }
7929 { echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6; }
7934 test -n "$TCLSH" && break
7937 if test x"${TCLSH}" = x ; then
7938 ac_cv_path_tclsh='';
7940 ac_cv_path_tclsh="${TCLSH}";
7943 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7944 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7945 TCLSH="${ac_cv_path_tclsh}"
7951 # Extract the first word of "zip", so it can be a program name with args.
7952 set dummy zip; ac_word=$2
7953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7955 if test "${ac_cv_path_ZIP+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 if test -n "$ZIP"; then
7983 { echo "$as_me:$LINENO: result: $ZIP" >&5
7984 echo "${ECHO_T}$ZIP" >&6; }
7986 { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7991 for ac_prog in ocamlc.opt ocamlc
7993 # Extract the first word of "$ac_prog", so it can be a program name with args.
7994 set dummy $ac_prog; ac_word=$2
7995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7997 if test "${ac_cv_path_OCAMLC+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 OCAMLC=$ac_cv_path_OCAMLC
8024 if test -n "$OCAMLC"; then
8025 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8026 echo "${ECHO_T}$OCAMLC" >&6; }
8028 { echo "$as_me:$LINENO: result: no" >&5
8029 echo "${ECHO_T}no" >&6; }
8033 test -n "$OCAMLC" && break
8036 for ac_prog in ocamlopt.opt ocamlopt
8038 # Extract the first word of "$ac_prog", so it can be a program name with args.
8039 set dummy $ac_prog; ac_word=$2
8040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8042 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8057 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 OCAMLOPT=$ac_cv_path_OCAMLOPT
8069 if test -n "$OCAMLOPT"; then
8070 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8071 echo "${ECHO_T}$OCAMLOPT" >&6; }
8073 { echo "$as_me:$LINENO: result: no" >&5
8074 echo "${ECHO_T}no" >&6; }
8078 test -n "$OCAMLOPT" && break
8081 for ac_prog in ocamldep.opt ocamldep
8083 # Extract the first word of "$ac_prog", so it can be a program name with args.
8084 set dummy $ac_prog; ac_word=$2
8085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 OCAMLDEP=$ac_cv_path_OCAMLDEP
8114 if test -n "$OCAMLDEP"; then
8115 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8116 echo "${ECHO_T}$OCAMLDEP" >&6; }
8118 { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8123 test -n "$OCAMLDEP" && break
8126 for ac_prog in ocamldoc.opt ocamldoc
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 OCAMLDOC=$ac_cv_path_OCAMLDOC
8159 if test -n "$OCAMLDOC"; then
8160 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8161 echo "${ECHO_T}$OCAMLDOC" >&6; }
8163 { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8168 test -n "$OCAMLDOC" && break
8172 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8173 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8174 if test "${llvm_cv_link_use_r+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 ac_cpp='$CPP $CPPFLAGS'
8179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8184 CFLAGS="$CFLAGS -Wl,-R."
8185 cat >conftest.$ac_ext <<_ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8195 int main() { return 0; }
8200 rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_link") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 llvm_cv_link_use_r=yes
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 llvm_cv_link_use_r=no
8242 rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8254 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8255 if test "$llvm_cv_link_use_r" = yes ; then
8257 cat >>confdefs.h <<\_ACEOF
8258 #define HAVE_LINK_R 1
8266 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8267 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8268 if test "${ac_cv_c_const+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8281 /* FIXME: Include the comments suggested by Paul. */
8283 /* Ultrix mips cc rejects this. */
8284 typedef int charset[2];
8286 /* SunOS 4.1.1 cc rejects this. */
8287 char const *const *ccp;
8289 /* NEC SVR4.0.2 mips cc rejects this. */
8290 struct point {int x, y;};
8291 static struct point const zero = {0,0};
8292 /* AIX XL C 1.02.0.0 rejects this.
8293 It does not let you subtract one const X* pointer from another in
8294 an arm of an if-expression whose if-part is not a constant
8296 const char *g = "string";
8297 ccp = &g + (g ? g-g : 0);
8298 /* HPUX 7.0 cc rejects these. */
8301 ccp = (char const *const *) p;
8302 { /* SCO 3.2v4 cc rejects this. */
8304 char const *s = 0 ? (char *) 0 : (char const *) 0;
8309 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8311 const int *foo = &x[0];
8314 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8315 typedef const int *iptr;
8319 { /* AIX XL C 1.02.0.0 rejects this saying
8320 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8321 struct s { int j; const int *ap[3]; };
8322 struct s *b; b->j = 5;
8324 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8328 return !x[0] && !zero.x;
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8344 grep -v '^ *+' conftest.er1 >conftest.err
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest.$ac_objext'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8380 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8381 if test $ac_cv_c_const = no; then
8383 cat >>confdefs.h <<\_ACEOF
8395 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8396 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8397 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8398 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 #include <sys/types.h>
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435 { (case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_try") 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest.$ac_objext'
8445 { (case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_try") 2>&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 eval "$as_ac_Header=yes"
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 eval "$as_ac_Header=no"
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 ac_res=`eval echo '${'$as_ac_Header'}'`
8465 { echo "$as_me:$LINENO: result: $ac_res" >&5
8466 echo "${ECHO_T}$ac_res" >&6; }
8467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8468 cat >>confdefs.h <<_ACEOF
8469 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8472 ac_header_dirent=$ac_hdr; break
8476 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8477 if test $ac_header_dirent = dirent.h; then
8478 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8480 if test "${ac_cv_search_opendir+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 ac_func_search_save_LIBS=$LIBS
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8491 /* Override any GCC internal prototype to avoid an error.
8492 Use char because int might match the return type of a GCC
8493 builtin and then its argument prototype would still apply. */
8506 for ac_lib in '' dir; do
8507 if test -z "$ac_lib"; then
8508 ac_res="none required"
8511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_search_opendir=$ac_res
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -f core conftest.err conftest.$ac_objext \
8557 if test "${ac_cv_search_opendir+set}" = set; then
8561 if test "${ac_cv_search_opendir+set}" = set; then
8564 ac_cv_search_opendir=no
8567 LIBS=$ac_func_search_save_LIBS
8569 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8570 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8571 ac_res=$ac_cv_search_opendir
8572 if test "$ac_res" != no; then
8573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8578 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8579 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8580 if test "${ac_cv_search_opendir+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 ac_func_search_save_LIBS=$LIBS
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 /* Override any GCC internal prototype to avoid an error.
8592 Use char because int might match the return type of a GCC
8593 builtin and then its argument prototype would still apply. */
8606 for ac_lib in '' x; do
8607 if test -z "$ac_lib"; then
8608 ac_res="none required"
8611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (ac_try="$ac_link"
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_link") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest$ac_exeext'
8638 { (case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_try") 2>&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_search_opendir=$ac_res
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8655 rm -f core conftest.err conftest.$ac_objext \
8657 if test "${ac_cv_search_opendir+set}" = set; then
8661 if test "${ac_cv_search_opendir+set}" = set; then
8664 ac_cv_search_opendir=no
8667 LIBS=$ac_func_search_save_LIBS
8669 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8670 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8671 ac_res=$ac_cv_search_opendir
8672 if test "$ac_res" != no; then
8673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8680 for ac_header in dlfcn.h
8682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_res=`eval echo '${'$as_ac_Header'}'`
8690 { echo "$as_me:$LINENO: result: $ac_res" >&5
8691 echo "${ECHO_T}$ac_res" >&6; }
8693 # Is the header compilable?
8694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8703 #include <$ac_header>
8705 rm -f conftest.$ac_objext
8706 if { (ac_try="$ac_compile"
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8720 { (case "(($ac_try" in
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_try") 2>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest.$ac_objext'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 ac_header_compiler=yes
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_header_compiler=no
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8749 echo "${ECHO_T}$ac_header_compiler" >&6; }
8751 # Is the header present?
8752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8754 cat >conftest.$ac_ext <<_ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 #include <$ac_header>
8762 if { (ac_try="$ac_cpp conftest.$ac_ext"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } >/dev/null; then
8775 if test -s conftest.err; then
8776 ac_cpp_err=$ac_c_preproc_warn_flag
8777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8784 if test -z "$ac_cpp_err"; then
8785 ac_header_preproc=yes
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_header_preproc=no
8793 rm -f conftest.err conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8795 echo "${ECHO_T}$ac_header_preproc" >&6; }
8797 # So? What about this header?
8798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8804 ac_header_preproc=yes
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8820 ## ----------------------------------- ##
8821 ## Report this to llvmbugs@cs.uiuc.edu ##
8822 ## ----------------------------------- ##
8824 ) | sed "s/^/$as_me: WARNING: /" >&2
8827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 eval "$as_ac_Header=\$ac_header_preproc"
8834 ac_res=`eval echo '${'$as_ac_Header'}'`
8835 { echo "$as_me:$LINENO: result: $ac_res" >&5
8836 echo "${ECHO_T}$ac_res" >&6; }
8839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8840 cat >>confdefs.h <<_ACEOF
8841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8848 # Check whether --enable-ltdl-install was given.
8849 if test "${enable_ltdl_install+set}" = set; then
8850 enableval=$enable_ltdl_install;
8856 if test x"${enable_ltdl_install-no}" != xno; then
8858 INSTALL_LTDL_FALSE='#'
8860 INSTALL_LTDL_TRUE='#'
8866 if test x"${enable_ltdl_convenience-no}" != xno; then
8867 CONVENIENCE_LTDL_TRUE=
8868 CONVENIENCE_LTDL_FALSE='#'
8870 CONVENIENCE_LTDL_TRUE='#'
8871 CONVENIENCE_LTDL_FALSE=
8875 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8878 libname_spec='lib$name'
8886 shlibpath_overrides_runpath=unknown
8888 dynamic_linker="$host_os ld.so"
8889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8890 if test "$GCC" = yes; then
8891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8893 # if the path contains ";" then we assume it to be the separator
8894 # otherwise default to the standard path separator (i.e. ":") - it is
8895 # assumed that no part of a normal pathname contains ";" but that should
8896 # okay in the real world where ";" in dirpaths is itself problematic.
8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8904 need_lib_prefix=unknown
8905 hardcode_into_libs=no
8907 # when you set need_version to no, make sure it does not cause -set_version
8908 # flags to be left without arguments
8909 need_version=unknown
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8915 shlibpath_var=LIBPATH
8917 # AIX 3 has no versioning support, so we append a major version to the name.
8918 soname_spec='${libname}${release}${shared_ext}$major'
8925 hardcode_into_libs=yes
8926 if test "$host_cpu" = ia64; then
8927 # AIX 5 supports IA64
8928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8929 shlibpath_var=LD_LIBRARY_PATH
8931 # With GCC up to 2.95.x, collect2 would create an import file
8932 # for dependence libraries. The import file would start with
8933 # the line `#! .'. This would cause the generated library to
8934 # depend on `.', always an invalid library. This was fixed in
8935 # development snapshots of GCC prior to 3.0.
8937 aix4 | aix4.[01] | aix4.[01].*)
8938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8948 # soname into executable. Probably we can add versioning support to
8949 # collect2, so additional links can be useful in future.
8950 if test "$aix_use_runtimelinking" = yes; then
8951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8952 # instead of lib<name>.a to let people know that these are not
8953 # typical AIX shared libraries.
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 # We preserve .a as extension for shared libraries through AIX4.2
8957 # and later when we are not doing run time linking.
8958 library_names_spec='${libname}${release}.a $libname.a'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8961 shlibpath_var=LIBPATH
8966 library_names_spec='$libname.ixlibrary $libname.a'
8967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8968 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'
8972 library_names_spec='${libname}${shared_ext}'
8973 dynamic_linker="$host_os ld.so"
8974 shlibpath_var=LIBRARY_PATH
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8986 # the default ld.so.conf also contains /usr/contrib/lib and
8987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8988 # libtool to hard-code these into programs
8991 cygwin* | mingw* | pw32*)
8992 version_type=windows
8997 case $GCC,$host_os in
8998 yes,cygwin* | yes,mingw* | yes,pw32*)
8999 library_names_spec='$libname.dll.a'
9000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9001 postinstall_cmds='base_file=`basename \${file}`~
9002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9003 dldir=$destdir/`dirname \$dlpath`~
9004 test -d \$dldir || mkdir -p \$dldir~
9005 $install_prog $dir/$dlname \$dldir/$dlname~
9006 chmod a+x \$dldir/$dlname'
9007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9008 dlpath=$dir/\$dldll~
9010 shlibpath_overrides_runpath=yes
9014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9019 # MinGW DLLs use traditional 'lib' prefix
9020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9022 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9023 # It is most probably a Windows format PATH printed by
9024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9025 # path with ; separators, and with drive letters. We can handle the
9026 # drive letters (cygwin fileutils understands them), so leave them,
9027 # especially as we might pass files found there to a mingw objdump,
9028 # which wouldn't understand a cygwinified path. Ahh.
9029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9035 # pw32 DLLs use 'pw' prefix rather than 'lib'
9036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9045 dynamic_linker='Win32 ld.exe'
9046 # FIXME: first we should search . and the directory the executable is in
9050 darwin* | rhapsody*)
9051 dynamic_linker="$host_os dyld"
9055 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9056 soname_spec='${libname}${release}${major}$shared_ext'
9057 shlibpath_overrides_runpath=yes
9058 shlibpath_var=DYLD_LIBRARY_PATH
9059 shrext_cmds='.dylib'
9060 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9061 if test "$GCC" = yes; then
9062 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"`
9064 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath=no
9090 hardcode_into_libs=yes
9091 dynamic_linker='GNU ld.so'
9094 freebsd* | dragonfly*)
9095 # DragonFly does not have aout. When/if they implement a new
9096 # versioning mechanism, adjust this.
9097 if test -x /usr/bin/objformat; then
9098 objformat=`/usr/bin/objformat`
9101 freebsd[123]*) objformat=aout ;;
9105 version_type=freebsd-$objformat
9106 case $version_type in
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9117 shlibpath_var=LD_LIBRARY_PATH
9120 shlibpath_overrides_runpath=yes
9122 freebsd3.[01]* | freebsdelf3.[01]*)
9123 shlibpath_overrides_runpath=yes
9124 hardcode_into_libs=yes
9126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9128 shlibpath_overrides_runpath=no
9129 hardcode_into_libs=yes
9131 freebsd*) # from 4.6 on
9132 shlibpath_overrides_runpath=yes
9133 hardcode_into_libs=yes
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 hardcode_into_libs=yes
9148 hpux9* | hpux10* | hpux11*)
9149 # Give a soname corresponding to the major version so that dld.sl refuses to
9150 # link against other versions.
9157 hardcode_into_libs=yes
9158 dynamic_linker="$host_os dld.so"
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 if test "X$HPUX_IA64_MODE" = X32; then
9164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9172 hardcode_into_libs=yes
9173 dynamic_linker="$host_os dld.sl"
9174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9183 dynamic_linker="$host_os dld.sl"
9184 shlibpath_var=SHLIB_PATH
9185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9191 postinstall_cmds='chmod 555 $lib'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 hardcode_into_libs=yes
9206 irix5* | irix6* | nonstopux*)
9208 nonstopux*) version_type=nonstopux ;;
9210 if test "$lt_cv_prog_gnu_ld" = yes; then
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9221 irix5* | nonstopux*)
9225 case $LD in # libtool.m4 will add one of these switches to LD
9226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9227 libsuff= shlibsuff= libmagic=32-bit;;
9228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9229 libsuff=32 shlibsuff=N32 libmagic=N32;;
9230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9232 *) libsuff= shlibsuff= libmagic=never-match;;
9236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9237 shlibpath_overrides_runpath=no
9238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9240 hardcode_into_libs=yes
9243 # No shared lib support for Linux oldld, aout, or coff.
9244 linux*oldld* | linux*aout* | linux*coff*)
9248 # This must be Linux ELF.
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=no
9258 # This implies no fast_install, which is unacceptable.
9259 # Some rework will be needed to allow for fast_install
9260 # before this can be enabled.
9261 hardcode_into_libs=yes
9263 # Append ld.so.conf contents to the search path
9264 if test -f /etc/ld.so.conf; then
9265 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' ' '`
9266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9269 # We used to test for /lib/ld.so.1 and disable shared libraries on
9270 # powerpc, because MkLinux only supported shared libraries with the
9271 # GNU dynamic linker. Since this was broken with cross compilers,
9272 # most powerpc-linux boxes support dynamic linking these days and
9273 # people can always --disable-shared, the test was removed, and we
9274 # assume the GNU/Linux dynamic linker is in use.
9275 dynamic_linker='GNU/Linux ld.so'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=no
9286 hardcode_into_libs=yes
9287 dynamic_linker='GNU ld.so'
9294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9297 dynamic_linker='NetBSD (a.out) ld.so'
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 dynamic_linker='NetBSD ld.elf_so'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 hardcode_into_libs=yes
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=yes
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9327 sys_lib_dlsearch_path_spec="/usr/lib"
9329 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9331 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9332 *) need_version=no ;;
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9339 openbsd2.[89] | openbsd2.[89].*)
9340 shlibpath_overrides_runpath=no
9343 shlibpath_overrides_runpath=yes
9347 shlibpath_overrides_runpath=yes
9352 libname_spec='$name'
9355 library_names_spec='$libname${shared_ext} $libname.a'
9356 dynamic_linker='OS/2 ld.exe'
9357 shlibpath_var=LIBPATH
9360 osf3* | osf4* | osf5*)
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9368 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 hardcode_into_libs=yes
9380 # ldd complains unless libraries are executable
9381 postinstall_cmds='chmod +x $lib'
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 if test "$with_gnu_ld" = yes; then
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_vendor in
9403 shlibpath_overrides_runpath=no
9405 export_dynamic_flag_spec='${wl}-Blargedynsym'
9406 runpath_var=LD_RUN_PATH
9414 shlibpath_overrides_runpath=no
9415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9421 if test -d /usr/nec ;then
9423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9424 soname_spec='$libname${shared_ext}.$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430 version_type=freebsd-elf
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 hardcode_into_libs=yes
9437 if test "$with_gnu_ld" = yes; then
9438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9439 shlibpath_overrides_runpath=no
9441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9442 shlibpath_overrides_runpath=yes
9445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9449 sys_lib_dlsearch_path_spec='/usr/lib'
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9463 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9464 echo "${ECHO_T}$dynamic_linker" >&6; }
9465 test "$dynamic_linker" = no && can_build_shared=no
9467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9468 if test "$GCC" = yes; then
9469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9473 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9474 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9475 if test "${libltdl_cv_shlibext+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 eval libltdl_cv_shlibext=$shrext_cmds
9483 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9484 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9485 if test -n "$libltdl_cv_shlibext"; then
9487 cat >>confdefs.h <<_ACEOF
9488 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9494 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9495 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9496 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 libltdl_cv_shlibpath_var="$shlibpath_var"
9501 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9502 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9503 if test -n "$libltdl_cv_shlibpath_var"; then
9505 cat >>confdefs.h <<_ACEOF
9506 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9512 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9513 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9514 if test "${libltdl_cv_sys_search_path+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9519 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9520 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9521 if test -n "$libltdl_cv_sys_search_path"; then
9523 for dir in $libltdl_cv_sys_search_path; do
9524 if test -z "$sys_search_path"; then
9525 sys_search_path="$dir"
9527 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9531 cat >>confdefs.h <<_ACEOF
9532 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9537 { echo "$as_me:$LINENO: checking for objdir" >&5
9538 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9539 if test "${libltdl_cv_objdir+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 libltdl_cv_objdir="$objdir"
9543 if test -n "$objdir"; then
9546 rm -f .libs 2>/dev/null
9547 mkdir .libs 2>/dev/null
9548 if test -d .libs; then
9549 libltdl_cv_objdir=.libs
9551 # MS-DOS does not allow filenames that begin with a dot.
9552 libltdl_cv_objdir=_libs
9554 rmdir .libs 2>/dev/null
9558 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9559 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9561 cat >>confdefs.h <<_ACEOF
9562 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9570 # Check for command to grab the raw symbol name followed by C symbol from nm.
9571 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9572 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 # These are sane defaults that work on at least a few old systems.
9578 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9580 # Character class describing NM global symbol codes.
9581 symcode='[BCDEGRST]'
9583 # Regexp to match symbols that can be accessed directly from C.
9584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9586 # Transform an extracted symbol line into a proper C declaration
9587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9589 # Transform an extracted symbol line into symbol name and symbol address
9590 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9592 # Define system-specific variables.
9597 cygwin* | mingw* | pw32*)
9598 symcode='[ABCDGISTW]'
9600 hpux*) # Its linker distinguishes data from code symbols
9601 if test "$host_cpu" = ia64; then
9602 symcode='[ABCDEGRST]'
9604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9605 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'"
9608 if test "$host_cpu" = ia64; then
9609 symcode='[ABCDGIRSTW]'
9610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9611 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'"
9615 symcode='[BCDEGRST]'
9618 symcode='[BCDEGQRST]'
9629 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9637 # Handle CRLF in mingw tool chain
9641 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9645 # If we're using GNU nm, then use its standard symbol codes.
9646 case `$NM -V 2>&1` in
9647 *GNU* | *'with BFD'*)
9648 symcode='[ABCDGIRSTW]' ;;
9651 # Try without a prefix undercore, then with it.
9652 for ac_symprfx in "" "_"; do
9654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9655 symxfrm="\\1 $ac_symprfx\\2 \\2"
9657 # Write the raw and C identifiers.
9658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9660 # Check to see that the pipe works correctly.
9664 cat > conftest.$ac_ext <<EOF
9669 void nm_test_func(){}
9673 int main(){nm_test_var='a';nm_test_func();return(0);}
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677 (eval $ac_compile) 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; then
9681 # Now try to grab the symbols.
9683 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9684 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && test -s "$nlist"; then
9688 # Try sorting and uniquifying the output.
9689 if sort "$nlist" | uniq > "$nlist"T; then
9690 mv -f "$nlist"T "$nlist"
9695 # Make sure that we snagged all the symbols we need.
9696 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9697 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9698 cat <<EOF > conftest.$ac_ext
9704 # Now generate the symbol file.
9705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9707 cat <<EOF >> conftest.$ac_ext
9708 #if defined (__STDC__) && __STDC__
9709 # define lt_ptr_t void *
9711 # define lt_ptr_t char *
9715 /* The mapping between symbol names and symbols. */
9720 lt_preloaded_symbols[] =
9723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9724 cat <<\EOF >> conftest.$ac_ext
9732 # Now try linking the two files.
9733 mv conftest.$ac_objext conftstm.$ac_objext
9734 lt_save_LIBS="$LIBS"
9735 lt_save_CFLAGS="$CFLAGS"
9736 LIBS="conftstm.$ac_objext"
9737 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9739 (eval $ac_link) 2>&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9745 LIBS="$lt_save_LIBS"
9746 CFLAGS="$lt_save_CFLAGS"
9748 echo "cannot find nm_test_func in $nlist" >&5
9751 echo "cannot find nm_test_var in $nlist" >&5
9754 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9757 echo "$progname: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9760 rm -f conftest* conftst*
9762 # Do not use the global_symbol_pipe unless it works.
9763 if test "$pipe_works" = yes; then
9766 lt_cv_sys_global_symbol_pipe=
9772 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9773 lt_cv_sys_global_symbol_to_cdecl=
9775 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9776 { echo "$as_me:$LINENO: result: failed" >&5
9777 echo "${ECHO_T}failed" >&6; }
9779 { echo "$as_me:$LINENO: result: ok" >&5
9780 echo "${ECHO_T}ok" >&6; }
9784 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9785 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9786 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9790 libltdl_cv_preloaded_symbols=yes
9792 libltdl_cv_preloaded_symbols=no
9796 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9797 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9798 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9800 cat >>confdefs.h <<\_ACEOF
9801 #define HAVE_PRELOADED_SYMBOLS 1
9809 ac_cpp='$CPP $CPPFLAGS'
9810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9815 { echo "$as_me:$LINENO: checking for shl_load" >&5
9816 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9817 if test "${ac_cv_func_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 cat >conftest.$ac_ext <<_ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9828 #define shl_load innocuous_shl_load
9830 /* System header to define __stub macros and hopefully few prototypes,
9831 which can conflict with char shl_load (); below.
9832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9833 <limits.h> exists even on freestanding compilers. */
9836 # include <limits.h>
9838 # include <assert.h>
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9850 /* The GNU C library defines this for functions which it implements
9851 to always fail with ENOSYS. Some functions are actually named
9852 something starting with __ and the normal name is an alias. */
9853 #if defined __stub_shl_load || defined __stub___shl_load
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
9874 grep -v '^ *+' conftest.er1 >conftest.err
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_cv_func_shl_load=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_cv_func_shl_load=no
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9910 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9911 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9912 if test $ac_cv_func_shl_load = yes; then
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_SHL_LOAD 1
9919 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9920 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 ac_check_lib_save_LIBS=$LIBS
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dld_shl_load=yes
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_dld_shl_load=no
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9996 if test $ac_cv_lib_dld_shl_load = yes; then
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_SHL_LOAD 1
10002 LIBADD_DL="$LIBADD_DL -ldld"
10004 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10005 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 ac_check_lib_save_LIBS=$LIBS
10011 cat >conftest.$ac_ext <<_ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (ac_try="$ac_link"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_link") 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10048 { (case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_try") 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest$ac_exeext'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_lib_dl_dlopen=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_lib_dl_dlopen=no
10075 rm -f core conftest.err conftest.$ac_objext \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10080 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10081 if test $ac_cv_lib_dl_dlopen = yes; then
10083 cat >>confdefs.h <<\_ACEOF
10084 #define HAVE_LIBDL 1
10087 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10096 # include <dlfcn.h>
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (ac_try="$ac_link"
10109 case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_link") 2>conftest.er1
10116 grep -v '^ *+' conftest.er1 >conftest.err
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10122 { (case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest$ac_exeext'
10132 { (case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_try") 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_LIBDL 1
10145 libltdl_cv_func_dlopen="yes"
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10151 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10152 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-lsvld $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_svld_dlopen=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_svld_dlopen=no
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10225 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10227 if test $ac_cv_lib_svld_dlopen = yes; then
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_LIBDL 1
10233 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10235 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10236 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10237 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 ac_check_lib_save_LIBS=$LIBS
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10259 return dld_link ();
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271 (eval "$ac_link") 2>conftest.er1
10273 grep -v '^ *+' conftest.er1 >conftest.err
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10279 { (case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_try") 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; } &&
10288 { ac_try='test -s conftest$ac_exeext'
10289 { (case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_try") 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 ac_cv_lib_dld_dld_link=yes
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 ac_cv_lib_dld_dld_link=no
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10310 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10311 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10312 if test $ac_cv_lib_dld_dld_link = yes; then
10314 cat >>confdefs.h <<\_ACEOF
10318 LIBADD_DL="$LIBADD_DL -ldld"
10320 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10321 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10322 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 cat >conftest.$ac_ext <<_ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10333 #define _dyld_func_lookup innocuous__dyld_func_lookup
10335 /* System header to define __stub macros and hopefully few prototypes,
10336 which can conflict with char _dyld_func_lookup (); below.
10337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10338 <limits.h> exists even on freestanding compilers. */
10341 # include <limits.h>
10343 # include <assert.h>
10346 #undef _dyld_func_lookup
10348 /* Override any GCC internal prototype to avoid an error.
10349 Use char because int might match the return type of a GCC
10350 builtin and then its argument prototype would still apply. */
10354 char _dyld_func_lookup ();
10355 /* The GNU C library defines this for functions which it implements
10356 to always fail with ENOSYS. Some functions are actually named
10357 something starting with __ and the normal name is an alias. */
10358 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10365 return _dyld_func_lookup ();
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (ac_try="$ac_link"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_link") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10385 { (case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_try") 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest$ac_exeext'
10395 { (case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_try") 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
10404 ac_cv_func__dyld_func_lookup=yes
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_func__dyld_func_lookup=no
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10415 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10416 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10417 if test $ac_cv_func__dyld_func_lookup = yes; then
10419 cat >>confdefs.h <<\_ACEOF
10420 #define HAVE_DYLD 1
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10446 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10448 lt_save_LIBS="$LIBS"
10449 LIBS="$LIBS $LIBADD_DL"
10451 for ac_func in dlerror
10453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 cat >conftest.$ac_ext <<_ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10467 #define $ac_func innocuous_$ac_func
10469 /* System header to define __stub macros and hopefully few prototypes,
10470 which can conflict with char $ac_func (); below.
10471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10472 <limits.h> exists even on freestanding compilers. */
10475 # include <limits.h>
10477 # include <assert.h>
10482 /* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10489 /* The GNU C library defines this for functions which it implements
10490 to always fail with ENOSYS. Some functions are actually named
10491 something starting with __ and the normal name is an alias. */
10492 #if defined __stub_$ac_func || defined __stub___$ac_func
10499 return $ac_func ();
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519 { (case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_try") 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest$ac_exeext'
10529 { (case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_try") 2>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
10538 eval "$as_ac_var=yes"
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 eval "$as_ac_var=no"
10546 rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10549 ac_res=`eval echo '${'$as_ac_var'}'`
10550 { echo "$as_me:$LINENO: result: $ac_res" >&5
10551 echo "${ECHO_T}$ac_res" >&6; }
10552 if test `eval echo '${'$as_ac_var'}'` = yes; then
10553 cat >>confdefs.h <<_ACEOF
10554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10560 LIBS="$lt_save_LIBS"
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10570 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10571 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10572 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_cv_sys_symbol_underscore=no
10576 cat > conftest.$ac_ext <<EOF
10577 void nm_test_func(){}
10578 int main(){nm_test_func;return 0;}
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; then
10585 # Now try to grab the symbols.
10586 ac_nlist=conftest.nm
10587 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10588 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && test -s "$ac_nlist"; then
10592 # See whether the symbols have a leading underscore.
10593 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10594 ac_cv_sys_symbol_underscore=yes
10596 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10599 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10603 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10606 echo "configure: failed program was:" >&5
10612 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10613 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10616 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10617 if test x"$libltdl_cv_func_dlopen" = xyes ||
10618 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10619 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10620 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10621 if test "${libltdl_cv_need_uscore+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 libltdl_cv_need_uscore=unknown
10626 LIBS="$LIBS $LIBADD_DL"
10627 if test "$cross_compiling" = yes; then :
10628 libltdl_cv_need_uscore=cross
10630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10631 lt_status=$lt_dlunknown
10632 cat > conftest.$ac_ext <<EOF
10633 #line 10633 "configure"
10634 #include "confdefs.h"
10643 # define LT_DLGLOBAL RTLD_GLOBAL
10646 # define LT_DLGLOBAL DL_GLOBAL
10648 # define LT_DLGLOBAL 0
10652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10653 find out it does not work in some platform. */
10654 #ifndef LT_DLLAZY_OR_NOW
10656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10659 # define LT_DLLAZY_OR_NOW DL_LAZY
10662 # define LT_DLLAZY_OR_NOW RTLD_NOW
10665 # define LT_DLLAZY_OR_NOW DL_NOW
10667 # define LT_DLLAZY_OR_NOW 0
10675 extern "C" void exit (int);
10678 void fnord() { int i=42;}
10681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10682 int status = $lt_dlunknown;
10686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10688 /* dlclose (self); */
10696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697 (eval $ac_link) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10701 (./conftest; exit; ) >&5 2>/dev/null
10703 case x$lt_status in
10704 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10705 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10706 x$lt_dlunknown|x*) ;;
10709 # compilation failed
10718 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10719 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10723 if test x"$libltdl_cv_need_uscore" = xyes; then
10725 cat >>confdefs.h <<\_ACEOF
10726 #define NEED_USCORE 1
10732 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10733 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10734 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 # PORTME does your system automatically load deplibs for dlopen?
10738 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10739 # For now, we just catch OSes we know something about -- in the
10740 # future, we'll try test this programmatically.
10741 libltdl_cv_sys_dlopen_deplibs=unknown
10743 aix3*|aix4.1.*|aix4.2.*)
10744 # Unknown whether this is true for these versions of AIX, but
10745 # we want this `case' here to explicitly catch those versions.
10746 libltdl_cv_sys_dlopen_deplibs=unknown
10749 libltdl_cv_sys_dlopen_deplibs=yes
10752 # Assuming the user has installed a libdl from somewhere, this is true
10753 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10754 libltdl_cv_sys_dlopen_deplibs=yes
10756 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10757 # GNU and its variants, using gnu ld.so (Glibc)
10758 libltdl_cv_sys_dlopen_deplibs=yes
10761 libltdl_cv_sys_dlopen_deplibs=yes
10764 libltdl_cv_sys_dlopen_deplibs=yes
10766 irix[12345]*|irix6.[01]*)
10767 # Catch all versions of IRIX before 6.2, and indicate that we don't
10768 # know how it worked for any of those versions.
10769 libltdl_cv_sys_dlopen_deplibs=unknown
10772 # The case above catches anything before 6.2, and it's known that
10773 # at 6.2 and later dlopen does load deplibs.
10774 libltdl_cv_sys_dlopen_deplibs=yes
10777 libltdl_cv_sys_dlopen_deplibs=yes
10780 libltdl_cv_sys_dlopen_deplibs=yes
10783 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10784 # it did *not* use an RPATH in a shared library to find objects the
10785 # library depends on, so we explictly say `no'.
10786 libltdl_cv_sys_dlopen_deplibs=no
10788 osf5.0|osf5.0a|osf5.1)
10789 # dlopen *does* load deplibs and with the right loader patch applied
10790 # it even uses RPATH in a shared library to search for shared objects
10791 # that the library depends on, but there's no easy way to know if that
10792 # patch is installed. Since this is the case, all we can really
10793 # say is unknown -- it depends on the patch being installed. If
10794 # it is, this changes to `yes'. Without it, it would be `no'.
10795 libltdl_cv_sys_dlopen_deplibs=unknown
10798 # the two cases above should catch all versions of osf <= 5.1. Read
10799 # the comments above for what we know about them.
10800 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10801 # is used to find them so we can finally say `yes'.
10802 libltdl_cv_sys_dlopen_deplibs=yes
10805 libltdl_cv_sys_dlopen_deplibs=yes
10807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10808 libltdl_cv_sys_dlopen_deplibs=yes
10813 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10814 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10815 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10817 cat >>confdefs.h <<\_ACEOF
10818 #define LTDL_DLOPEN_DEPLIBS 1
10824 for ac_header in argz.h
10826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 ac_res=`eval echo '${'$as_ac_Header'}'`
10834 { echo "$as_me:$LINENO: result: $ac_res" >&5
10835 echo "${ECHO_T}$ac_res" >&6; }
10837 # Is the header compilable?
10838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10840 cat >conftest.$ac_ext <<_ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 $ac_includes_default
10847 #include <$ac_header>
10849 rm -f conftest.$ac_objext
10850 if { (ac_try="$ac_compile"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_compile") 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest.$ac_objext'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_header_compiler=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_header_compiler=no
10891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10893 echo "${ECHO_T}$ac_header_compiler" >&6; }
10895 # Is the header present?
10896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <$ac_header>
10906 if { (ac_try="$ac_cpp conftest.$ac_ext"
10907 case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10914 grep -v '^ *+' conftest.er1 >conftest.err
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } >/dev/null; then
10919 if test -s conftest.err; then
10920 ac_cpp_err=$ac_c_preproc_warn_flag
10921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10928 if test -z "$ac_cpp_err"; then
10929 ac_header_preproc=yes
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_header_preproc=no
10937 rm -f conftest.err conftest.$ac_ext
10938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6; }
10941 # So? What about this header?
10942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10948 ac_header_preproc=yes
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10964 ## ----------------------------------- ##
10965 ## Report this to llvmbugs@cs.uiuc.edu ##
10966 ## ----------------------------------- ##
10968 ) | sed "s/^/$as_me: WARNING: /" >&2
10971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 eval "$as_ac_Header=\$ac_header_preproc"
10978 ac_res=`eval echo '${'$as_ac_Header'}'`
10979 { echo "$as_me:$LINENO: result: $ac_res" >&5
10980 echo "${ECHO_T}$ac_res" >&6; }
10983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10993 { echo "$as_me:$LINENO: checking for error_t" >&5
10994 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10995 if test "${ac_cv_type_error_t+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11008 typedef error_t ac__type_new_;
11012 if ((ac__type_new_ *) 0)
11014 if (sizeof (ac__type_new_))
11020 rm -f conftest.$ac_objext
11021 if { (ac_try="$ac_compile"
11022 case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_compile") 2>conftest.er1
11029 grep -v '^ *+' conftest.er1 >conftest.err
11031 cat conftest.err >&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 ac_cv_type_error_t=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_cv_type_error_t=no
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11065 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11066 if test $ac_cv_type_error_t = yes; then
11068 cat >>confdefs.h <<_ACEOF
11069 #define HAVE_ERROR_T 1
11075 cat >>confdefs.h <<\_ACEOF
11076 #define error_t int
11087 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11103 #define $ac_func innocuous_$ac_func
11105 /* System header to define __stub macros and hopefully few prototypes,
11106 which can conflict with char $ac_func (); below.
11107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11108 <limits.h> exists even on freestanding compilers. */
11111 # include <limits.h>
11113 # include <assert.h>
11118 /* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
11125 /* The GNU C library defines this for functions which it implements
11126 to always fail with ENOSYS. Some functions are actually named
11127 something starting with __ and the normal name is an alias. */
11128 #if defined __stub_$ac_func || defined __stub___$ac_func
11135 return $ac_func ();
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (ac_try="$ac_link"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_link") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest$ac_exeext'
11165 { (case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_try") 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 eval "$as_ac_var=yes"
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 eval "$as_ac_var=no"
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11185 ac_res=`eval echo '${'$as_ac_var'}'`
11186 { echo "$as_me:$LINENO: result: $ac_res" >&5
11187 echo "${ECHO_T}$ac_res" >&6; }
11188 if test `eval echo '${'$as_ac_var'}'` = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11223 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11237 # Is the header compilable?
11238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 $ac_includes_default
11247 #include <$ac_header>
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_compile") 2>conftest.er1
11258 grep -v '^ *+' conftest.er1 >conftest.err
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264 { (case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_try") 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_header_compiler=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_header_compiler=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293 echo "${ECHO_T}$ac_header_compiler" >&6; }
11295 # Is the header present?
11296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11298 cat >conftest.$ac_ext <<_ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <$ac_header>
11306 if { (ac_try="$ac_cpp conftest.$ac_ext"
11307 case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } >/dev/null; then
11319 if test -s conftest.err; then
11320 ac_cpp_err=$ac_c_preproc_warn_flag
11321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 if test -z "$ac_cpp_err"; then
11329 ac_header_preproc=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 ac_header_preproc=no
11337 rm -f conftest.err conftest.$ac_ext
11338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339 echo "${ECHO_T}$ac_header_preproc" >&6; }
11341 # So? What about this header?
11342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348 ac_header_preproc=yes
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364 ## ----------------------------------- ##
11365 ## Report this to llvmbugs@cs.uiuc.edu ##
11366 ## ----------------------------------- ##
11368 ) | sed "s/^/$as_me: WARNING: /" >&2
11371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 eval "$as_ac_Header=\$ac_header_preproc"
11378 ac_res=`eval echo '${'$as_ac_Header'}'`
11379 { echo "$as_me:$LINENO: result: $ac_res" >&5
11380 echo "${ECHO_T}$ac_res" >&6; }
11383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11409 # Is the header compilable?
11410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 $ac_includes_default
11419 #include <$ac_header>
11421 rm -f conftest.$ac_objext
11422 if { (ac_try="$ac_compile"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_compile") 2>conftest.er1
11430 grep -v '^ *+' conftest.er1 >conftest.err
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436 { (case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_try") 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_try") 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_header_compiler=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_compiler=no
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465 echo "${ECHO_T}$ac_header_compiler" >&6; }
11467 # Is the header present?
11468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <$ac_header>
11478 if { (ac_try="$ac_cpp conftest.$ac_ext"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } >/dev/null; then
11491 if test -s conftest.err; then
11492 ac_cpp_err=$ac_c_preproc_warn_flag
11493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11500 if test -z "$ac_cpp_err"; then
11501 ac_header_preproc=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_header_preproc=no
11509 rm -f conftest.err conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511 echo "${ECHO_T}$ac_header_preproc" >&6; }
11513 # So? What about this header?
11514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520 ac_header_preproc=yes
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536 ## ----------------------------------- ##
11537 ## Report this to llvmbugs@cs.uiuc.edu ##
11538 ## ----------------------------------- ##
11540 ) | sed "s/^/$as_me: WARNING: /" >&2
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 eval "$as_ac_Header=\$ac_header_preproc"
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11556 cat >>confdefs.h <<_ACEOF
11557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566 for ac_header in string.h strings.h
11568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11579 # Is the header compilable?
11580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 $ac_includes_default
11589 #include <$ac_header>
11591 rm -f conftest.$ac_objext
11592 if { (ac_try="$ac_compile"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_compile") 2>conftest.er1
11600 grep -v '^ *+' conftest.er1 >conftest.err
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_try") 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_header_compiler=yes
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_header_compiler=no
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635 echo "${ECHO_T}$ac_header_compiler" >&6; }
11637 # Is the header present?
11638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11640 cat >conftest.$ac_ext <<_ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 #include <$ac_header>
11648 if { (ac_try="$ac_cpp conftest.$ac_ext"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } >/dev/null; then
11661 if test -s conftest.err; then
11662 ac_cpp_err=$ac_c_preproc_warn_flag
11663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670 if test -z "$ac_cpp_err"; then
11671 ac_header_preproc=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706 ## ----------------------------------- ##
11707 ## Report this to llvmbugs@cs.uiuc.edu ##
11708 ## ----------------------------------- ##
11710 ) | sed "s/^/$as_me: WARNING: /" >&2
11713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 eval "$as_ac_Header=\$ac_header_preproc"
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11737 for ac_func in strchr index
11739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753 #define $ac_func innocuous_$ac_func
11755 /* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11761 # include <limits.h>
11763 # include <assert.h>
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11775 /* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11785 return $ac_func ();
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_link") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 eval "$as_ac_var=yes"
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 eval "$as_ac_var=no"
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11835 ac_res=`eval echo '${'$as_ac_var'}'`
11836 { echo "$as_me:$LINENO: result: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11838 if test `eval echo '${'$as_ac_var'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 for ac_func in strrchr rindex
11850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 cat >conftest.$ac_ext <<_ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11864 #define $ac_func innocuous_$ac_func
11866 /* System header to define __stub macros and hopefully few prototypes,
11867 which can conflict with char $ac_func (); below.
11868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 <limits.h> exists even on freestanding compilers. */
11872 # include <limits.h>
11874 # include <assert.h>
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11886 /* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889 #if defined __stub_$ac_func || defined __stub___$ac_func
11896 return $ac_func ();
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (ac_try="$ac_link"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_link") 2>conftest.er1
11910 grep -v '^ *+' conftest.er1 >conftest.err
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 eval "$as_ac_var=yes"
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 eval "$as_ac_var=no"
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11946 ac_res=`eval echo '${'$as_ac_var'}'`
11947 { echo "$as_me:$LINENO: result: $ac_res" >&5
11948 echo "${ECHO_T}$ac_res" >&6; }
11949 if test `eval echo '${'$as_ac_var'}'` = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959 for ac_func in memcpy bcopy
11961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11975 #define $ac_func innocuous_$ac_func
11977 /* System header to define __stub macros and hopefully few prototypes,
11978 which can conflict with char $ac_func (); below.
11979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11980 <limits.h> exists even on freestanding compilers. */
11983 # include <limits.h>
11985 # include <assert.h>
11990 /* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11997 /* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000 #if defined __stub_$ac_func || defined __stub___$ac_func
12007 return $ac_func ();
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_link") 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 eval "$as_ac_var=yes"
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 eval "$as_ac_var=no"
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12057 ac_res=`eval echo '${'$as_ac_var'}'`
12058 { echo "$as_me:$LINENO: result: $ac_res" >&5
12059 echo "${ECHO_T}$ac_res" >&6; }
12060 if test `eval echo '${'$as_ac_var'}'` = yes; then
12061 cat >>confdefs.h <<_ACEOF
12062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 for ac_func in memmove strcmp
12072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12086 #define $ac_func innocuous_$ac_func
12088 /* System header to define __stub macros and hopefully few prototypes,
12089 which can conflict with char $ac_func (); below.
12090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091 <limits.h> exists even on freestanding compilers. */
12094 # include <limits.h>
12096 # include <assert.h>
12101 /* Override any GCC internal prototype to avoid an error.
12102 Use char because int might match the return type of a GCC
12103 builtin and then its argument prototype would still apply. */
12108 /* The GNU C library defines this for functions which it implements
12109 to always fail with ENOSYS. Some functions are actually named
12110 something starting with __ and the normal name is an alias. */
12111 #if defined __stub_$ac_func || defined __stub___$ac_func
12118 return $ac_func ();
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_try") 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 eval "$as_ac_var=yes"
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 eval "$as_ac_var=no"
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12168 ac_res=`eval echo '${'$as_ac_var'}'`
12169 { echo "$as_me:$LINENO: result: $ac_res" >&5
12170 echo "${ECHO_T}$ac_res" >&6; }
12171 if test `eval echo '${'$as_ac_var'}'` = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 for ac_func in closedir opendir readdir
12184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12198 #define $ac_func innocuous_$ac_func
12200 /* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char $ac_func (); below.
12202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12203 <limits.h> exists even on freestanding compilers. */
12206 # include <limits.h>
12208 # include <assert.h>
12213 /* Override any GCC internal prototype to avoid an error.
12214 Use char because int might match the return type of a GCC
12215 builtin and then its argument prototype would still apply. */
12220 /* The GNU C library defines this for functions which it implements
12221 to always fail with ENOSYS. Some functions are actually named
12222 something starting with __ and the normal name is an alias. */
12223 #if defined __stub_$ac_func || defined __stub___$ac_func
12230 return $ac_func ();
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_link") 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250 { (case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_try") 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest$ac_exeext'
12260 { (case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_try") 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 eval "$as_ac_var=yes"
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 eval "$as_ac_var=no"
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12280 ac_res=`eval echo '${'$as_ac_var'}'`
12281 { echo "$as_me:$LINENO: result: $ac_res" >&5
12282 echo "${ECHO_T}$ac_res" >&6; }
12283 if test `eval echo '${'$as_ac_var'}'` = yes; then
12284 cat >>confdefs.h <<_ACEOF
12285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12292 # Check whether --enable-shared was given.
12293 if test "${enable_shared+set}" = set; then
12294 enableval=$enable_shared; p=${PACKAGE-default}
12296 yes) enable_shared=yes ;;
12297 no) enable_shared=no ;;
12300 # Look at the argument we got. We use all the common list separators.
12301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12302 for pkg in $enableval; do
12304 if test "X$pkg" = "X$p"; then
12316 # Check whether --enable-static was given.
12317 if test "${enable_static+set}" = set; then
12318 enableval=$enable_static; p=${PACKAGE-default}
12320 yes) enable_static=yes ;;
12321 no) enable_static=no ;;
12324 # Look at the argument we got. We use all the common list separators.
12325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12326 for pkg in $enableval; do
12328 if test "X$pkg" = "X$p"; then
12340 # Check whether --enable-fast-install was given.
12341 if test "${enable_fast_install+set}" = set; then
12342 enableval=$enable_fast_install; p=${PACKAGE-default}
12344 yes) enable_fast_install=yes ;;
12345 no) enable_fast_install=no ;;
12347 enable_fast_install=no
12348 # Look at the argument we got. We use all the common list separators.
12349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12350 for pkg in $enableval; do
12352 if test "X$pkg" = "X$p"; then
12353 enable_fast_install=yes
12360 enable_fast_install=yes
12364 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12365 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12366 if test "${lt_cv_path_SED+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 # Loop through the user's path and test for sed and gsed.
12370 # Then use that list of sed's as ones to test for truncation.
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12375 test -z "$as_dir" && as_dir=.
12376 for lt_ac_prog in sed gsed; do
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12379 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12386 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12387 # along with /bin/sed that truncates output.
12388 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12389 test ! -f $lt_ac_sed && continue
12390 cat /dev/null > conftest.in
12392 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12393 # Check for GNU sed and select it if it is found.
12394 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12395 lt_cv_path_SED=$lt_ac_sed
12399 cat conftest.in conftest.in >conftest.tmp
12400 mv conftest.tmp conftest.in
12401 cp conftest.in conftest.nl
12403 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12404 cmp -s conftest.out conftest.nl || break
12405 # 10000 chars as input seems more than enough
12406 test $lt_ac_count -gt 10 && break
12407 lt_ac_count=`expr $lt_ac_count + 1`
12408 if test $lt_ac_count -gt $lt_ac_max; then
12409 lt_ac_max=$lt_ac_count
12410 lt_cv_path_SED=$lt_ac_sed
12417 SED=$lt_cv_path_SED
12418 { echo "$as_me:$LINENO: result: $SED" >&5
12419 echo "${ECHO_T}$SED" >&6; }
12422 # Check whether --with-gnu-ld was given.
12423 if test "${with_gnu_ld+set}" = set; then
12424 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12430 if test "$GCC" = yes; then
12431 # Check if gcc -print-prog-name=ld gives a path.
12432 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12433 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12436 # gcc leaves a trailing carriage return which upsets mingw
12437 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12439 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12442 # Accept absolute paths.
12444 re_direlt='/[^/][^/]*/\.\./'
12445 # Canonicalize the pathname of ld
12446 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12447 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12448 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12450 test -z "$LD" && LD="$ac_prog"
12453 # If it fails, then pretend we aren't using GCC.
12457 # If it is relative, then search for the first ld in PATH.
12458 with_gnu_ld=unknown
12461 elif test "$with_gnu_ld" = yes; then
12462 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12463 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12465 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12466 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12468 if test "${lt_cv_path_LD+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 if test -z "$LD"; then
12472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12473 for ac_dir in $PATH; do
12475 test -z "$ac_dir" && ac_dir=.
12476 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12477 lt_cv_path_LD="$ac_dir/$ac_prog"
12478 # Check to see if the program is GNU ld. I'd rather use --version,
12479 # but apparently some variants of GNU ld only accept -v.
12480 # Break only if it was the GNU/non-GNU ld that we prefer.
12481 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12482 *GNU* | *'with BFD'*)
12483 test "$with_gnu_ld" != no && break
12486 test "$with_gnu_ld" != yes && break
12493 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12497 LD="$lt_cv_path_LD"
12498 if test -n "$LD"; then
12499 { echo "$as_me:$LINENO: result: $LD" >&5
12500 echo "${ECHO_T}$LD" >&6; }
12502 { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12505 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12506 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12507 { (exit 1); exit 1; }; }
12508 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12509 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12510 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12514 case `$LD -v 2>&1 </dev/null` in
12515 *GNU* | *'with BFD'*)
12516 lt_cv_prog_gnu_ld=yes
12519 lt_cv_prog_gnu_ld=no
12523 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12524 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12525 with_gnu_ld=$lt_cv_prog_gnu_ld
12528 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12529 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12530 if test "${lt_cv_ld_reload_flag+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 lt_cv_ld_reload_flag='-r'
12535 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12536 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12537 reload_flag=$lt_cv_ld_reload_flag
12538 case $reload_flag in
12540 *) reload_flag=" $reload_flag" ;;
12542 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12545 if test "$GCC" = yes; then
12546 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12553 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12554 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12555 if test "${lt_cv_deplibs_check_method+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 lt_cv_file_magic_cmd='$MAGIC_CMD'
12559 lt_cv_file_magic_test_file=
12560 lt_cv_deplibs_check_method='unknown'
12561 # Need to set the preceding variable on all platforms that support
12562 # interlibrary dependencies.
12563 # 'none' -- dependencies not supported.
12564 # `unknown' -- same as none, but documents that we really don't know.
12565 # 'pass_all' -- all dependencies passed with no checks.
12566 # 'test_compile' -- check by making test program.
12567 # 'file_magic [[regex]]' -- check by looking for files in library path
12568 # which responds to the $file_magic_cmd with a given extended regex.
12569 # If you have `file' or equivalent on your system and you're not sure
12570 # whether `pass_all' will *always* work, you probably want this one.
12574 lt_cv_deplibs_check_method=pass_all
12578 lt_cv_deplibs_check_method=pass_all
12582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12583 lt_cv_file_magic_cmd='/usr/bin/file -L'
12584 lt_cv_file_magic_test_file=/shlib/libc.so
12588 # func_win32_libid is a shell function defined in ltmain.sh
12589 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12590 lt_cv_file_magic_cmd='func_win32_libid'
12594 # Base MSYS/MinGW do not provide the 'file' command needed by
12595 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12597 lt_cv_file_magic_cmd='$OBJDUMP -f'
12600 darwin* | rhapsody*)
12601 lt_cv_deplibs_check_method=pass_all
12604 freebsd* | kfreebsd*-gnu | dragonfly*)
12605 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12608 # Not sure whether the presence of OpenBSD here was a mistake.
12609 # Let's accept both of them until this is cleared up.
12610 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12611 lt_cv_file_magic_cmd=/usr/bin/file
12612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12616 lt_cv_deplibs_check_method=pass_all
12621 lt_cv_deplibs_check_method=pass_all
12624 hpux10.20* | hpux11*)
12625 lt_cv_file_magic_cmd=/usr/bin/file
12628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12632 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]'
12633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12647 irix5* | irix6* | nonstopux*)
12649 *-32|*"-32 ") libmagic=32-bit;;
12650 *-n32|*"-n32 ") libmagic=N32;;
12651 *-64|*"-64 ") libmagic=64-bit;;
12652 *) libmagic=never-match;;
12654 lt_cv_deplibs_check_method=pass_all
12657 # This must be Linux ELF.
12659 lt_cv_deplibs_check_method=pass_all
12663 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12672 lt_cv_file_magic_cmd=/usr/bin/file
12673 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12677 lt_cv_deplibs_check_method=unknown
12681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12688 osf3* | osf4* | osf5*)
12689 lt_cv_deplibs_check_method=pass_all
12693 lt_cv_deplibs_check_method=pass_all
12697 case $host_vendor in
12699 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]'
12700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12703 lt_cv_deplibs_check_method=pass_all
12706 lt_cv_file_magic_cmd='/bin/file'
12707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12710 lt_cv_file_magic_cmd='/bin/file'
12711 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12712 lt_cv_file_magic_test_file=/lib/libc.so
12715 lt_cv_deplibs_check_method=pass_all
12718 lt_cv_deplibs_check_method=pass_all
12723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12724 lt_cv_deplibs_check_method=pass_all
12729 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12730 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12731 file_magic_cmd=$lt_cv_file_magic_cmd
12732 deplibs_check_method=$lt_cv_deplibs_check_method
12733 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12737 # If no C compiler was specified, use CC.
12740 # If no C compiler flags were specified, use CFLAGS.
12741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12743 # Allow CC to be a program name with arguments.
12746 # Check whether --enable-libtool-lock was given.
12747 if test "${enable_libtool_lock+set}" = set; then
12748 enableval=$enable_libtool_lock;
12751 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12753 # Some flags need to be propagated to the compiler or linker for good
12757 # Find out which ABI we are using.
12758 echo 'int i;' > conftest.$ac_ext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; then
12764 case `/usr/bin/file conftest.$ac_objext` in
12766 HPUX_IA64_MODE="32"
12769 HPUX_IA64_MODE="64"
12776 # Find out which ABI we are using.
12777 echo '#line 12777 "configure"' > conftest.$ac_ext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; then
12783 if test "$lt_cv_prog_gnu_ld" = yes; then
12784 case `/usr/bin/file conftest.$ac_objext` in
12786 LD="${LD-ld} -melf32bsmip"
12789 LD="${LD-ld} -melf32bmipn32"
12792 LD="${LD-ld} -melf64bmip"
12796 case `/usr/bin/file conftest.$ac_objext` in
12812 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12813 # Find out which ABI we are using.
12814 echo 'int i;' > conftest.$ac_ext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; then
12820 case `/usr/bin/file conftest.o` in
12824 LD="${LD-ld} -m elf_i386"
12826 ppc64-*linux*|powerpc64-*linux*)
12827 LD="${LD-ld} -m elf32ppclinux"
12830 LD="${LD-ld} -m elf_s390"
12833 LD="${LD-ld} -m elf32_sparc"
12840 LD="${LD-ld} -m elf_x86_64"
12842 ppc*-*linux*|powerpc*-*linux*)
12843 LD="${LD-ld} -m elf64ppc"
12846 LD="${LD-ld} -m elf64_s390"
12849 LD="${LD-ld} -m elf64_sparc"
12859 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12860 SAVE_CFLAGS="$CFLAGS"
12861 CFLAGS="$CFLAGS -belf"
12862 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12863 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12864 if test "${lt_cv_cc_needs_belf+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 ac_cpp='$CPP $CPPFLAGS'
12869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12873 cat >conftest.$ac_ext <<_ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (ac_try="$ac_link"
12890 case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_link") 2>conftest.er1
12897 grep -v '^ *+' conftest.er1 >conftest.err
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12903 { (case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_try") 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 lt_cv_cc_needs_belf=yes
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 lt_cv_cc_needs_belf=no
12930 rm -f core conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12940 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12941 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12942 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12943 CFLAGS="$SAVE_CFLAGS"
12947 # Find out which ABI we are using.
12948 echo 'int i;' > conftest.$ac_ext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950 (eval $ac_compile) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; then
12954 case `/usr/bin/file conftest.o` in
12956 case $lt_cv_prog_gnu_ld in
12957 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12958 *) LD="${LD-ld} -64" ;;
12969 need_locks="$enable_libtool_lock"
12974 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12975 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12976 (test "X$CXX" != "Xg++"))) ; then
12978 ac_cpp='$CXXCPP $CPPFLAGS'
12979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12982 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12983 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12984 if test -z "$CXXCPP"; then
12985 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 # Double quotes because CXXCPP needs to be expanded
12989 for CXXCPP in "$CXX -E" "/lib/cpp"
12991 ac_preproc_ok=false
12992 for ac_cxx_preproc_warn_flag in '' yes
12994 # Use a header file that comes with gcc, so configuring glibc
12995 # with a fresh cross-compiler works.
12996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12997 # <limits.h> exists even on freestanding compilers.
12998 # On the NeXT, cc -E runs the code through the compiler's parser,
12999 # not just through cpp. "Syntax error" is here to catch this case.
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13007 # include <limits.h>
13009 # include <assert.h>
13013 if { (ac_try="$ac_cpp conftest.$ac_ext"
13014 case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } >/dev/null; then
13026 if test -s conftest.err; then
13027 ac_cpp_err=$ac_cxx_preproc_warn_flag
13028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13035 if test -z "$ac_cpp_err"; then
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 # Broken: fails on valid input.
13045 rm -f conftest.err conftest.$ac_ext
13047 # OK, works on sane cases. Now check whether nonexistent headers
13048 # can be detected and how.
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13055 #include <ac_nonexistent.h>
13057 if { (ac_try="$ac_cpp conftest.$ac_ext"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } >/dev/null; then
13070 if test -s conftest.err; then
13071 ac_cpp_err=$ac_cxx_preproc_warn_flag
13072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13079 if test -z "$ac_cpp_err"; then
13080 # Broken: success on invalid input.
13083 echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 # Passes both tests.
13091 rm -f conftest.err conftest.$ac_ext
13094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13095 rm -f conftest.err conftest.$ac_ext
13096 if $ac_preproc_ok; then
13101 ac_cv_prog_CXXCPP=$CXXCPP
13104 CXXCPP=$ac_cv_prog_CXXCPP
13106 ac_cv_prog_CXXCPP=$CXXCPP
13108 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13109 echo "${ECHO_T}$CXXCPP" >&6; }
13110 ac_preproc_ok=false
13111 for ac_cxx_preproc_warn_flag in '' yes
13113 # Use a header file that comes with gcc, so configuring glibc
13114 # with a fresh cross-compiler works.
13115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13116 # <limits.h> exists even on freestanding compilers.
13117 # On the NeXT, cc -E runs the code through the compiler's parser,
13118 # not just through cpp. "Syntax error" is here to catch this case.
13119 cat >conftest.$ac_ext <<_ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13126 # include <limits.h>
13128 # include <assert.h>
13132 if { (ac_try="$ac_cpp conftest.$ac_ext"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } >/dev/null; then
13145 if test -s conftest.err; then
13146 ac_cpp_err=$ac_cxx_preproc_warn_flag
13147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13154 if test -z "$ac_cpp_err"; then
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 # Broken: fails on valid input.
13164 rm -f conftest.err conftest.$ac_ext
13166 # OK, works on sane cases. Now check whether nonexistent headers
13167 # can be detected and how.
13168 cat >conftest.$ac_ext <<_ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13174 #include <ac_nonexistent.h>
13176 if { (ac_try="$ac_cpp conftest.$ac_ext"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13184 grep -v '^ *+' conftest.er1 >conftest.err
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } >/dev/null; then
13189 if test -s conftest.err; then
13190 ac_cpp_err=$ac_cxx_preproc_warn_flag
13191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13198 if test -z "$ac_cpp_err"; then
13199 # Broken: success on invalid input.
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 # Passes both tests.
13210 rm -f conftest.err conftest.$ac_ext
13213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13214 rm -f conftest.err conftest.$ac_ext
13215 if $ac_preproc_ok; then
13218 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13219 See \`config.log' for more details." >&5
13220 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13221 See \`config.log' for more details." >&2;}
13222 { (exit 1); exit 1; }; }
13226 ac_cpp='$CXXCPP $CPPFLAGS'
13227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13235 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13236 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13237 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13238 if test -n "$ac_tool_prefix"; then
13239 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
13241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13245 if test "${ac_cv_prog_F77+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 if test -n "$F77"; then
13249 ac_cv_prog_F77="$F77" # Let the user override the test.
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13258 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 F77=$ac_cv_prog_F77
13269 if test -n "$F77"; then
13270 { echo "$as_me:$LINENO: result: $F77" >&5
13271 echo "${ECHO_T}$F77" >&6; }
13273 { echo "$as_me:$LINENO: result: no" >&5
13274 echo "${ECHO_T}no" >&6; }
13278 test -n "$F77" && break
13281 if test -z "$F77"; then
13283 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
13285 # Extract the first word of "$ac_prog", so it can be a program name with args.
13286 set dummy $ac_prog; ac_word=$2
13287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13289 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 if test -n "$ac_ct_F77"; then
13293 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_ac_ct_F77="$ac_prog"
13303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13312 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13313 if test -n "$ac_ct_F77"; then
13314 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13315 echo "${ECHO_T}$ac_ct_F77" >&6; }
13317 { echo "$as_me:$LINENO: result: no" >&5
13318 echo "${ECHO_T}no" >&6; }
13322 test -n "$ac_ct_F77" && break
13325 if test "x$ac_ct_F77" = x; then
13328 case $cross_compiling:$ac_tool_warned in
13330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13331 whose name does not start with the host triplet. If you think this
13332 configuration is useful to you, please write to autoconf@gnu.org." >&5
13333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13334 whose name does not start with the host triplet. If you think this
13335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13336 ac_tool_warned=yes ;;
13343 # Provide some information about the compiler.
13344 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13345 ac_compiler=`set X $ac_compile; echo $2`
13346 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }
13356 { (ac_try="$ac_compiler -v >&5"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_compiler -v >&5") 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }
13366 { (ac_try="$ac_compiler -V >&5"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_compiler -V >&5") 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }
13378 # If we don't use `.F' as extension, the preprocessor is not run on the
13379 # input file. (Note that this only needs to work for GNU compilers.)
13380 ac_save_ext=$ac_ext
13382 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13383 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13384 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 cat >conftest.$ac_ext <<_ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_compile") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_compiler_gnu=yes
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13441 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13442 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13443 ac_ext=$ac_save_ext
13444 ac_test_FFLAGS=${FFLAGS+set}
13445 ac_save_FFLAGS=$FFLAGS
13447 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13448 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13449 if test "${ac_cv_prog_f77_g+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_compile") 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_prog_f77_g=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_prog_f77_g=no
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13504 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13505 if test "$ac_test_FFLAGS" = set; then
13506 FFLAGS=$ac_save_FFLAGS
13507 elif test $ac_cv_prog_f77_g = yes; then
13508 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13514 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13521 G77=`test $ac_compiler_gnu = yes && echo yes`
13523 ac_cpp='$CPP $CPPFLAGS'
13524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13530 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13532 # find the maximum length of command line arguments
13533 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13534 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13535 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 # On DJGPP, this test can blow up pretty badly due to problems in libc
13544 # (any single argument exceeding 2000 bytes causes a buffer overrun
13545 # during glob expansion). Even if it were fixed, the result of this
13546 # check would be larger than it should be.
13547 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13551 # Under GNU Hurd, this test is not required because there is
13552 # no limit to the length of command line arguments.
13553 # Libtool will interpret -1 as no limit whatsoever
13554 lt_cv_sys_max_cmd_len=-1;
13558 # On Win9x/ME, this test blows up -- it succeeds, but takes
13559 # about 5 minutes as the teststring grows exponentially.
13560 # Worse, since 9x/ME are not pre-emptively multitasking,
13561 # you end up with a "frozen" computer, even though with patience
13562 # the test eventually succeeds (with a max line length of 256k).
13563 # Instead, let's just punt: use the minimum linelength reported by
13564 # all of the supported platforms: 8192 (on NT/2K/XP).
13565 lt_cv_sys_max_cmd_len=8192;
13569 # On AmigaOS with pdksh, this test takes hours, literally.
13570 # So we just punt and use a minimum line length of 8192.
13571 lt_cv_sys_max_cmd_len=8192;
13574 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13575 # This has been around since 386BSD, at least. Likely further.
13576 if test -x /sbin/sysctl; then
13577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13578 elif test -x /usr/sbin/sysctl; then
13579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13581 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13583 # And add a safety zone
13584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13589 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13590 lt_cv_sys_max_cmd_len=196608
13594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13596 # nice to cause kernel panics so lets avoid the loop below.
13597 # First set a reasonable default.
13598 lt_cv_sys_max_cmd_len=16384
13600 if test -x /sbin/sysconfig; then
13601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13607 lt_cv_sys_max_cmd_len=102400
13609 sysv5* | sco5v6* | sysv4.2uw2*)
13610 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13611 if test -n "$kargmax"; then
13612 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13614 lt_cv_sys_max_cmd_len=32768
13618 # If test is not a shell built-in, we'll probably end up computing a
13619 # maximum length that is only half of the actual maximum length, but
13621 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13622 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13623 = "XX$teststring") >/dev/null 2>&1 &&
13624 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13625 lt_cv_sys_max_cmd_len=$new_result &&
13626 test $i != 17 # 1/2 MB should be enough
13629 teststring=$teststring$teststring
13632 # Add a significant safety factor because C++ compilers can tack on massive
13633 # amounts of additional arguments before passing them to the linker.
13634 # It appears as though 1/2 is a usable value.
13635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13641 if test -n $lt_cv_sys_max_cmd_len ; then
13642 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13643 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13645 { echo "$as_me:$LINENO: result: none" >&5
13646 echo "${ECHO_T}none" >&6; }
13652 # Check for command to grab the raw symbol name followed by C symbol from nm.
13653 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13654 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13655 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 # These are sane defaults that work on at least a few old systems.
13660 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13662 # Character class describing NM global symbol codes.
13663 symcode='[BCDEGRST]'
13665 # Regexp to match symbols that can be accessed directly from C.
13666 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13668 # Transform an extracted symbol line into a proper C declaration
13669 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13671 # Transform an extracted symbol line into symbol name and symbol address
13672 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13674 # Define system-specific variables.
13679 cygwin* | mingw* | pw32*)
13680 symcode='[ABCDGISTW]'
13682 hpux*) # Its linker distinguishes data from code symbols
13683 if test "$host_cpu" = ia64; then
13684 symcode='[ABCDEGRST]'
13686 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13687 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'"
13690 if test "$host_cpu" = ia64; then
13691 symcode='[ABCDGIRSTW]'
13692 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13693 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'"
13696 irix* | nonstopux*)
13697 symcode='[BCDEGRST]'
13700 symcode='[BCDEGQRST]'
13711 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13719 # Handle CRLF in mingw tool chain
13723 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13727 # If we're using GNU nm, then use its standard symbol codes.
13728 case `$NM -V 2>&1` in
13729 *GNU* | *'with BFD'*)
13730 symcode='[ABCDGIRSTW]' ;;
13733 # Try without a prefix undercore, then with it.
13734 for ac_symprfx in "" "_"; do
13736 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13737 symxfrm="\\1 $ac_symprfx\\2 \\2"
13739 # Write the raw and C identifiers.
13740 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13742 # Check to see that the pipe works correctly.
13746 cat > conftest.$ac_ext <<EOF
13751 void nm_test_func(){}
13755 int main(){nm_test_var='a';nm_test_func();return(0);}
13758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759 (eval $ac_compile) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; then
13763 # Now try to grab the symbols.
13765 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13766 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && test -s "$nlist"; then
13770 # Try sorting and uniquifying the output.
13771 if sort "$nlist" | uniq > "$nlist"T; then
13772 mv -f "$nlist"T "$nlist"
13777 # Make sure that we snagged all the symbols we need.
13778 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13779 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13780 cat <<EOF > conftest.$ac_ext
13786 # Now generate the symbol file.
13787 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13789 cat <<EOF >> conftest.$ac_ext
13790 #if defined (__STDC__) && __STDC__
13791 # define lt_ptr_t void *
13793 # define lt_ptr_t char *
13797 /* The mapping between symbol names and symbols. */
13802 lt_preloaded_symbols[] =
13805 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13806 cat <<\EOF >> conftest.$ac_ext
13814 # Now try linking the two files.
13815 mv conftest.$ac_objext conftstm.$ac_objext
13816 lt_save_LIBS="$LIBS"
13817 lt_save_CFLAGS="$CFLAGS"
13818 LIBS="conftstm.$ac_objext"
13819 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821 (eval $ac_link) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13827 LIBS="$lt_save_LIBS"
13828 CFLAGS="$lt_save_CFLAGS"
13830 echo "cannot find nm_test_func in $nlist" >&5
13833 echo "cannot find nm_test_var in $nlist" >&5
13836 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13839 echo "$progname: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13842 rm -f conftest* conftst*
13844 # Do not use the global_symbol_pipe unless it works.
13845 if test "$pipe_works" = yes; then
13848 lt_cv_sys_global_symbol_pipe=
13854 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13855 lt_cv_sys_global_symbol_to_cdecl=
13857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13858 { echo "$as_me:$LINENO: result: failed" >&5
13859 echo "${ECHO_T}failed" >&6; }
13861 { echo "$as_me:$LINENO: result: ok" >&5
13862 echo "${ECHO_T}ok" >&6; }
13865 { echo "$as_me:$LINENO: checking for objdir" >&5
13866 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13867 if test "${lt_cv_objdir+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 rm -f .libs 2>/dev/null
13871 mkdir .libs 2>/dev/null
13872 if test -d .libs; then
13875 # MS-DOS does not allow filenames that begin with a dot.
13878 rmdir .libs 2>/dev/null
13880 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13881 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13882 objdir=$lt_cv_objdir
13890 # AIX sometimes has problems with the GCC collect2 program. For some
13891 # reason, if we set the COLLECT_NAMES environment variable, the problems
13892 # vanish in a puff of smoke.
13893 if test "X${COLLECT_NAMES+set}" != Xset; then
13895 export COLLECT_NAMES
13900 # Sed substitution that helps us do robust quoting. It backslashifies
13901 # metacharacters that are still active within double-quoted strings.
13902 Xsed='sed -e 1s/^X//'
13903 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13905 # Same as above, but do not quote variable references.
13906 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13908 # Sed substitution to delay expansion of an escaped shell variable in a
13909 # double_quote_subst'ed string.
13910 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13912 # Sed substitution to avoid accidental globbing in evaled expressions
13913 no_glob_subst='s/\*/\\\*/g'
13918 # Global variables:
13919 default_ofile=mklib
13920 can_build_shared=yes
13922 # All known linkers require a `.a' archive for static linking (except MSVC,
13923 # which needs '.lib').
13925 ltmain="$ac_aux_dir/ltmain.sh"
13926 ofile="$default_ofile"
13927 with_gnu_ld="$lt_cv_prog_gnu_ld"
13929 if test -n "$ac_tool_prefix"; then
13930 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13931 set dummy ${ac_tool_prefix}ar; ac_word=$2
13932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13934 if test "${ac_cv_prog_AR+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 if test -n "$AR"; then
13938 ac_cv_prog_AR="$AR" # Let the user override the test.
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13947 ac_cv_prog_AR="${ac_tool_prefix}ar"
13948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13958 if test -n "$AR"; then
13959 { echo "$as_me:$LINENO: result: $AR" >&5
13960 echo "${ECHO_T}$AR" >&6; }
13962 { echo "$as_me:$LINENO: result: no" >&5
13963 echo "${ECHO_T}no" >&6; }
13968 if test -z "$ac_cv_prog_AR"; then
13970 # Extract the first word of "ar", so it can be a program name with args.
13971 set dummy ar; ac_word=$2
13972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13974 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 if test -n "$ac_ct_AR"; then
13978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981 for as_dir in $PATH
13984 test -z "$as_dir" && as_dir=.
13985 for ac_exec_ext in '' $ac_executable_extensions; do
13986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13987 ac_cv_prog_ac_ct_AR="ar"
13988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13997 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13998 if test -n "$ac_ct_AR"; then
13999 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14000 echo "${ECHO_T}$ac_ct_AR" >&6; }
14002 { echo "$as_me:$LINENO: result: no" >&5
14003 echo "${ECHO_T}no" >&6; }
14006 if test "x$ac_ct_AR" = x; then
14009 case $cross_compiling:$ac_tool_warned in
14011 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14012 whose name does not start with the host triplet. If you think this
14013 configuration is useful to you, please write to autoconf@gnu.org." >&5
14014 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14015 whose name does not start with the host triplet. If you think this
14016 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14017 ac_tool_warned=yes ;;
14022 AR="$ac_cv_prog_AR"
14025 if test -n "$ac_tool_prefix"; then
14026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14030 if test "${ac_cv_prog_RANLIB+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 if test -n "$RANLIB"; then
14034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 for as_dir in $PATH
14040 test -z "$as_dir" && as_dir=.
14041 for ac_exec_ext in '' $ac_executable_extensions; do
14042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14053 RANLIB=$ac_cv_prog_RANLIB
14054 if test -n "$RANLIB"; then
14055 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14056 echo "${ECHO_T}$RANLIB" >&6; }
14058 { echo "$as_me:$LINENO: result: no" >&5
14059 echo "${ECHO_T}no" >&6; }
14064 if test -z "$ac_cv_prog_RANLIB"; then
14065 ac_ct_RANLIB=$RANLIB
14066 # Extract the first word of "ranlib", so it can be a program name with args.
14067 set dummy ranlib; ac_word=$2
14068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14070 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 if test -n "$ac_ct_RANLIB"; then
14074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14080 test -z "$as_dir" && as_dir=.
14081 for ac_exec_ext in '' $ac_executable_extensions; do
14082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14083 ac_cv_prog_ac_ct_RANLIB="ranlib"
14084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14094 if test -n "$ac_ct_RANLIB"; then
14095 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14096 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14098 { echo "$as_me:$LINENO: result: no" >&5
14099 echo "${ECHO_T}no" >&6; }
14102 if test "x$ac_ct_RANLIB" = x; then
14105 case $cross_compiling:$ac_tool_warned in
14107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14108 whose name does not start with the host triplet. If you think this
14109 configuration is useful to you, please write to autoconf@gnu.org." >&5
14110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14111 whose name does not start with the host triplet. If you think this
14112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14113 ac_tool_warned=yes ;;
14115 RANLIB=$ac_ct_RANLIB
14118 RANLIB="$ac_cv_prog_RANLIB"
14121 if test -n "$ac_tool_prefix"; then
14122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14123 set dummy ${ac_tool_prefix}strip; ac_word=$2
14124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14126 if test "${ac_cv_prog_STRIP+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 if test -n "$STRIP"; then
14130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14149 STRIP=$ac_cv_prog_STRIP
14150 if test -n "$STRIP"; then
14151 { echo "$as_me:$LINENO: result: $STRIP" >&5
14152 echo "${ECHO_T}$STRIP" >&6; }
14154 { echo "$as_me:$LINENO: result: no" >&5
14155 echo "${ECHO_T}no" >&6; }
14160 if test -z "$ac_cv_prog_STRIP"; then
14162 # Extract the first word of "strip", so it can be a program name with args.
14163 set dummy strip; ac_word=$2
14164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 if test -n "$ac_ct_STRIP"; then
14170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14179 ac_cv_prog_ac_ct_STRIP="strip"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14190 if test -n "$ac_ct_STRIP"; then
14191 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14192 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14194 { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14198 if test "x$ac_ct_STRIP" = x; then
14201 case $cross_compiling:$ac_tool_warned in
14203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14204 whose name does not start with the host triplet. If you think this
14205 configuration is useful to you, please write to autoconf@gnu.org." >&5
14206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14207 whose name does not start with the host triplet. If you think this
14208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14209 ac_tool_warned=yes ;;
14214 STRIP="$ac_cv_prog_STRIP"
14219 old_CFLAGS="$CFLAGS"
14221 # Set sane defaults for various variables
14222 test -z "$AR" && AR=ar
14223 test -z "$AR_FLAGS" && AR_FLAGS=cru
14224 test -z "$AS" && AS=as
14225 test -z "$CC" && CC=cc
14226 test -z "$LTCC" && LTCC=$CC
14227 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14228 test -z "$DLLTOOL" && DLLTOOL=dlltool
14229 test -z "$LD" && LD=ld
14230 test -z "$LN_S" && LN_S="ln -s"
14231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14232 test -z "$NM" && NM=nm
14233 test -z "$SED" && SED=sed
14234 test -z "$OBJDUMP" && OBJDUMP=objdump
14235 test -z "$RANLIB" && RANLIB=:
14236 test -z "$STRIP" && STRIP=:
14237 test -z "$ac_objext" && ac_objext=o
14239 # Determine commands to create old-style static archives.
14240 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14241 old_postinstall_cmds='chmod 644 $oldlib'
14242 old_postuninstall_cmds=
14244 if test -n "$RANLIB"; then
14247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14253 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14256 for cc_temp in $compiler""; do
14258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14267 # Only perform the check for file, if the check method requires it
14268 case $deplibs_check_method in
14270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14271 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14272 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14273 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14281 lt_save_MAGIC_CMD="$MAGIC_CMD"
14282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14284 for ac_dir in $ac_dummy; do
14286 test -z "$ac_dir" && ac_dir=.
14287 if test -f $ac_dir/${ac_tool_prefix}file; then
14288 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14289 if test -n "$file_magic_test_file"; then
14290 case $deplibs_check_method in
14292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14295 $EGREP "$file_magic_regex" > /dev/null; then
14300 *** Warning: the command libtool uses to detect shared libraries,
14301 *** $file_magic_cmd, produces output that libtool cannot recognize.
14302 *** The result is that libtool may fail to recognize shared libraries
14303 *** as such. This will affect the creation of libtool libraries that
14304 *** depend on shared libraries, but programs linked with such libtool
14305 *** libraries will work regardless of this problem. Nevertheless, you
14306 *** may want to report the problem to your system manager and/or to
14307 *** bug-libtool@gnu.org
14317 MAGIC_CMD="$lt_save_MAGIC_CMD"
14322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14323 if test -n "$MAGIC_CMD"; then
14324 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14325 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14327 { echo "$as_me:$LINENO: result: no" >&5
14328 echo "${ECHO_T}no" >&6; }
14331 if test -z "$lt_cv_path_MAGIC_CMD"; then
14332 if test -n "$ac_tool_prefix"; then
14333 { echo "$as_me:$LINENO: checking for file" >&5
14334 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14335 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14343 lt_save_MAGIC_CMD="$MAGIC_CMD"
14344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14346 for ac_dir in $ac_dummy; do
14348 test -z "$ac_dir" && ac_dir=.
14349 if test -f $ac_dir/file; then
14350 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14351 if test -n "$file_magic_test_file"; then
14352 case $deplibs_check_method in
14354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14357 $EGREP "$file_magic_regex" > /dev/null; then
14362 *** Warning: the command libtool uses to detect shared libraries,
14363 *** $file_magic_cmd, produces output that libtool cannot recognize.
14364 *** The result is that libtool may fail to recognize shared libraries
14365 *** as such. This will affect the creation of libtool libraries that
14366 *** depend on shared libraries, but programs linked with such libtool
14367 *** libraries will work regardless of this problem. Nevertheless, you
14368 *** may want to report the problem to your system manager and/or to
14369 *** bug-libtool@gnu.org
14379 MAGIC_CMD="$lt_save_MAGIC_CMD"
14384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14385 if test -n "$MAGIC_CMD"; then
14386 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14387 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14389 { echo "$as_me:$LINENO: result: no" >&5
14390 echo "${ECHO_T}no" >&6; }
14403 enable_win32_dll=no
14405 # Check whether --enable-libtool-lock was given.
14406 if test "${enable_libtool_lock+set}" = set; then
14407 enableval=$enable_libtool_lock;
14410 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14413 # Check whether --with-pic was given.
14414 if test "${with_pic+set}" = set; then
14415 withval=$with_pic; pic_mode="$withval"
14420 test -z "$pic_mode" && pic_mode=default
14422 # Use C for the default configuration in the libtool script
14426 ac_cpp='$CPP $CPPFLAGS'
14427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14432 # Source file extension for C test sources.
14435 # Object file extension for compiled C test sources.
14439 # Code to be used in simple compile tests
14440 lt_simple_compile_test_code="int some_variable = 0;\n"
14442 # Code to be used in simple link tests
14443 lt_simple_link_test_code='int main(){return(0);}\n'
14446 # If no C compiler was specified, use CC.
14449 # If no C compiler flags were specified, use CFLAGS.
14450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14452 # Allow CC to be a program name with arguments.
14456 # save warnings/boilerplate of simple test code
14457 ac_outfile=conftest.$ac_objext
14458 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14459 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14460 _lt_compiler_boilerplate=`cat conftest.err`
14463 ac_outfile=conftest.$ac_objext
14464 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14465 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14466 _lt_linker_boilerplate=`cat conftest.err`
14471 lt_prog_compiler_no_builtin_flag=
14473 if test "$GCC" = yes; then
14474 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14477 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14478 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14479 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 lt_cv_prog_compiler_rtti_exceptions=no
14483 ac_outfile=conftest.$ac_objext
14484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14485 lt_compiler_flag="-fno-rtti -fno-exceptions"
14486 # Insert the option either (1) after the last *FLAGS variable, or
14487 # (2) before a word containing "conftest.", or (3) at the end.
14488 # Note that $ac_compile itself does not contain backslashes and begins
14489 # with a dollar sign (not a hyphen), so the echo should work correctly.
14490 # The option is referenced via a variable to avoid confusing sed.
14491 lt_compile=`echo "$ac_compile" | $SED \
14492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494 -e 's:$: $lt_compiler_flag:'`
14495 (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14496 (eval "$lt_compile" 2>conftest.err)
14498 cat conftest.err >&5
14499 echo "$as_me:14499: \$? = $ac_status" >&5
14500 if (exit $ac_status) && test -s "$ac_outfile"; then
14501 # The compiler can only warn and ignore the option if not recognized
14502 # So say no if there are warnings other than the usual output.
14503 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14506 lt_cv_prog_compiler_rtti_exceptions=yes
14512 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14513 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14515 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14516 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14523 lt_prog_compiler_wl=
14524 lt_prog_compiler_pic=
14525 lt_prog_compiler_static=
14527 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14528 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14530 if test "$GCC" = yes; then
14531 lt_prog_compiler_wl='-Wl,'
14532 lt_prog_compiler_static='-static'
14536 # All AIX code is PIC.
14537 if test "$host_cpu" = ia64; then
14538 # AIX 5 now supports IA64 processor
14539 lt_prog_compiler_static='-Bstatic'
14544 # FIXME: we need at least 68020 code to build shared libraries, but
14545 # adding the `-m68020' flag to GCC prevents building anything better,
14547 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14551 # PIC is the default for these OSes.
14554 mingw* | pw32* | os2*)
14555 # This hack is so that the source file can tell whether it is being
14556 # built for inclusion in a dll (and should export symbols for example).
14557 lt_prog_compiler_pic='-DDLL_EXPORT'
14560 darwin* | rhapsody*)
14561 # PIC is the default on this platform
14562 # Common symbols not allowed in MH_DYLIB files
14563 lt_prog_compiler_pic='-fno-common'
14567 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14568 # Instead, we relocate shared libraries at runtime.
14572 # Just because we use GCC doesn't mean we suddenly get shared libraries
14573 # on systems that don't support them.
14574 lt_prog_compiler_can_build_shared=no
14579 if test -d /usr/nec; then
14580 lt_prog_compiler_pic=-Kconform_pic
14585 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14586 # not for PA HP-UX.
14592 lt_prog_compiler_pic='-fPIC'
14598 lt_prog_compiler_pic='-fPIC'
14602 # PORTME Check for flag to pass linker flags through the system compiler.
14605 lt_prog_compiler_wl='-Wl,'
14606 if test "$host_cpu" = ia64; then
14607 # AIX 5 now supports IA64 processor
14608 lt_prog_compiler_static='-Bstatic'
14610 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14614 # PIC is the default on this platform
14615 # Common symbols not allowed in MH_DYLIB files
14616 case $cc_basename in
14618 lt_prog_compiler_pic='-qnocommon'
14619 lt_prog_compiler_wl='-Wl,'
14624 mingw* | pw32* | os2*)
14625 # This hack is so that the source file can tell whether it is being
14626 # built for inclusion in a dll (and should export symbols for example).
14627 lt_prog_compiler_pic='-DDLL_EXPORT'
14630 hpux9* | hpux10* | hpux11*)
14631 lt_prog_compiler_wl='-Wl,'
14632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14633 # not for PA HP-UX.
14639 lt_prog_compiler_pic='+Z'
14642 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14643 lt_prog_compiler_static='${wl}-a ${wl}archive'
14646 irix5* | irix6* | nonstopux*)
14647 lt_prog_compiler_wl='-Wl,'
14648 # PIC (with -KPIC) is the default.
14649 lt_prog_compiler_static='-non_shared'
14653 lt_prog_compiler_pic='-KPIC'
14654 lt_prog_compiler_static='-Bstatic'
14658 case $cc_basename in
14660 lt_prog_compiler_wl='-Wl,'
14661 lt_prog_compiler_pic='-KPIC'
14662 lt_prog_compiler_static='-static'
14664 pgcc* | pgf77* | pgf90* | pgf95*)
14665 # Portland Group compilers (*not* the Pentium gcc compiler,
14666 # which looks to be a dead project)
14667 lt_prog_compiler_wl='-Wl,'
14668 lt_prog_compiler_pic='-fpic'
14669 lt_prog_compiler_static='-Bstatic'
14672 lt_prog_compiler_wl='-Wl,'
14673 # All Alpha code is PIC.
14674 lt_prog_compiler_static='-non_shared'
14679 osf3* | osf4* | osf5*)
14680 lt_prog_compiler_wl='-Wl,'
14681 # All OSF/1 code is PIC.
14682 lt_prog_compiler_static='-non_shared'
14686 lt_prog_compiler_pic='-KPIC'
14687 lt_prog_compiler_static='-Bstatic'
14688 case $cc_basename in
14689 f77* | f90* | f95*)
14690 lt_prog_compiler_wl='-Qoption ld ';;
14692 lt_prog_compiler_wl='-Wl,';;
14697 lt_prog_compiler_wl='-Qoption ld '
14698 lt_prog_compiler_pic='-PIC'
14699 lt_prog_compiler_static='-Bstatic'
14702 sysv4 | sysv4.2uw2* | sysv4.3*)
14703 lt_prog_compiler_wl='-Wl,'
14704 lt_prog_compiler_pic='-KPIC'
14705 lt_prog_compiler_static='-Bstatic'
14709 if test -d /usr/nec ;then
14710 lt_prog_compiler_pic='-Kconform_pic'
14711 lt_prog_compiler_static='-Bstatic'
14715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14716 lt_prog_compiler_wl='-Wl,'
14717 lt_prog_compiler_pic='-KPIC'
14718 lt_prog_compiler_static='-Bstatic'
14722 lt_prog_compiler_wl='-Wl,'
14723 lt_prog_compiler_can_build_shared=no
14727 lt_prog_compiler_pic='-pic'
14728 lt_prog_compiler_static='-Bstatic'
14732 lt_prog_compiler_can_build_shared=no
14737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14738 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14741 # Check to make sure the PIC flag actually works.
14743 if test -n "$lt_prog_compiler_pic"; then
14745 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14746 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14747 if test "${lt_prog_compiler_pic_works+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 lt_prog_compiler_pic_works=no
14751 ac_outfile=conftest.$ac_objext
14752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14753 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14754 # Insert the option either (1) after the last *FLAGS variable, or
14755 # (2) before a word containing "conftest.", or (3) at the end.
14756 # Note that $ac_compile itself does not contain backslashes and begins
14757 # with a dollar sign (not a hyphen), so the echo should work correctly.
14758 # The option is referenced via a variable to avoid confusing sed.
14759 lt_compile=`echo "$ac_compile" | $SED \
14760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762 -e 's:$: $lt_compiler_flag:'`
14763 (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
14764 (eval "$lt_compile" 2>conftest.err)
14766 cat conftest.err >&5
14767 echo "$as_me:14767: \$? = $ac_status" >&5
14768 if (exit $ac_status) && test -s "$ac_outfile"; then
14769 # The compiler can only warn and ignore the option if not recognized
14770 # So say no if there are warnings other than the usual output.
14771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14774 lt_prog_compiler_pic_works=yes
14780 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14781 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14783 if test x"$lt_prog_compiler_pic_works" = xyes; then
14784 case $lt_prog_compiler_pic in
14786 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14789 lt_prog_compiler_pic=
14790 lt_prog_compiler_can_build_shared=no
14795 # For platforms which do not support PIC, -DPIC is meaningless:
14797 lt_prog_compiler_pic=
14800 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14805 # Check to make sure the static flag actually works.
14807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14808 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14809 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14810 if test "${lt_prog_compiler_static_works+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 lt_prog_compiler_static_works=no
14814 save_LDFLAGS="$LDFLAGS"
14815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14816 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14818 # The linker can only warn and ignore the option if not recognized
14819 # So say no if there are warnings
14820 if test -s conftest.err; then
14821 # Append any errors to the config.log.
14822 cat conftest.err 1>&5
14823 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14825 if diff conftest.exp conftest.er2 >/dev/null; then
14826 lt_prog_compiler_static_works=yes
14829 lt_prog_compiler_static_works=yes
14833 LDFLAGS="$save_LDFLAGS"
14836 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14837 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14839 if test x"$lt_prog_compiler_static_works" = xyes; then
14842 lt_prog_compiler_static=
14846 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14848 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 lt_cv_prog_compiler_c_o=no
14852 $rm -r conftest 2>/dev/null
14856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14858 lt_compiler_flag="-o out/conftest2.$ac_objext"
14859 # Insert the option either (1) after the last *FLAGS variable, or
14860 # (2) before a word containing "conftest.", or (3) at the end.
14861 # Note that $ac_compile itself does not contain backslashes and begins
14862 # with a dollar sign (not a hyphen), so the echo should work correctly.
14863 lt_compile=`echo "$ac_compile" | $SED \
14864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14866 -e 's:$: $lt_compiler_flag:'`
14867 (eval echo "\"\$as_me:14867: $lt_compile\"" >&5)
14868 (eval "$lt_compile" 2>out/conftest.err)
14870 cat out/conftest.err >&5
14871 echo "$as_me:14871: \$? = $ac_status" >&5
14872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14874 # The compiler can only warn and ignore the option if not recognized
14875 # So say no if there are warnings
14876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14879 lt_cv_prog_compiler_c_o=yes
14884 # SGI C++ compiler will create directory out/ii_files/ for
14885 # template instantiation
14886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14887 $rm out/* && rmdir out
14893 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14897 hard_links="nottested"
14898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14899 # do not overwrite the value of need_locks provided by the user
14900 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14906 ln conftest.a conftest.b 2>&5 || hard_links=no
14907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14908 { echo "$as_me:$LINENO: result: $hard_links" >&5
14909 echo "${ECHO_T}$hard_links" >&6; }
14910 if test "$hard_links" = no; then
14911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14919 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14923 allow_undefined_flag=
14924 enable_shared_with_static_runtimes=no
14926 archive_expsym_cmds=
14927 old_archive_From_new_cmds=
14928 old_archive_from_expsyms_cmds=
14929 export_dynamic_flag_spec=
14930 whole_archive_flag_spec=
14931 thread_safe_flag_spec=
14932 hardcode_libdir_flag_spec=
14933 hardcode_libdir_flag_spec_ld=
14934 hardcode_libdir_separator=
14936 hardcode_minus_L=no
14937 hardcode_shlibpath_var=unsupported
14938 link_all_deplibs=unknown
14939 hardcode_automatic=no
14941 module_expsym_cmds=
14942 always_export_symbols=no
14943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14944 # include_expsyms should be a list of space-separated symbols to be *always*
14945 # included in the symbol list
14947 # exclude_expsyms can be an extended regexp of symbols to exclude
14948 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14949 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14950 # as well as any symbol that contains `d'.
14951 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14953 # platforms (ab)use it in PIC code, but their linkers get confused if
14954 # the symbol is explicitly referenced. Since portable code cannot
14955 # rely on this symbol name, it's probably fine to never include it in
14956 # preloaded symbol tables.
14957 extract_expsyms_cmds=
14958 # Just being paranoid about ensuring that cc_basename is set.
14959 for cc_temp in $compiler""; do
14961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14970 cygwin* | mingw* | pw32*)
14971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14972 # When not using gcc, we currently assume that we are using
14973 # Microsoft Visual C++.
14974 if test "$GCC" != yes; then
14979 # we just hope/assume this is gcc and not c89 (= MSVC++)
14988 if test "$with_gnu_ld" = yes; then
14989 # If archive_cmds runs LD, not CC, wlarc should be empty
14992 # Set some defaults for GNU ld with shared library support. These
14993 # are reset later if shared libraries are not supported. Putting them
14994 # here allows them to be overridden if necessary.
14995 runpath_var=LD_RUN_PATH
14996 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14997 export_dynamic_flag_spec='${wl}--export-dynamic'
14998 # ancient GNU ld didn't support --whole-archive et. al.
14999 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15002 whole_archive_flag_spec=
15004 supports_anon_versioning=no
15005 case `$LD -v 2>/dev/null` in
15006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15009 *\ 2.11.*) ;; # other 2.11 versions
15010 *) supports_anon_versioning=yes ;;
15013 # See if GNU ld supports shared libraries.
15015 aix3* | aix4* | aix5*)
15016 # On AIX/PPC, the GNU linker is very broken
15017 if test "$host_cpu" != ia64; then
15021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15022 *** to be unable to reliably create shared libraries on AIX.
15023 *** Therefore, libtool is disabling shared libraries support. If you
15024 *** really care for shared libraries, you may want to modify your PATH
15025 *** so that a non-GNU linker is found, and then restart.
15032 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)'
15033 hardcode_libdir_flag_spec='-L$libdir'
15034 hardcode_minus_L=yes
15036 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15037 # that the semantics of dynamic libraries on AmigaOS, at least up
15038 # to version 4, is to share data among multiple programs linked
15039 # with the same dynamic library. Since this doesn't match the
15040 # behavior of shared libraries on other platforms, we can't use
15046 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047 allow_undefined_flag=unsupported
15048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15049 # support --undefined. This deserves some investigation. FIXME
15050 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056 cygwin* | mingw* | pw32*)
15057 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15058 # as there is no search path for DLLs.
15059 hardcode_libdir_flag_spec='-L$libdir'
15060 allow_undefined_flag=unsupported
15061 always_export_symbols=no
15062 enable_shared_with_static_runtimes=yes
15063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15065 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15067 # If the export-symbols file already is a .def file (1st line
15068 # is EXPORTS), use it as is; otherwise, prepend...
15069 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15070 cp $export_symbols $output_objdir/$soname.def;
15072 echo EXPORTS > $output_objdir/$soname.def;
15073 cat $export_symbols >> $output_objdir/$soname.def;
15075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15083 hardcode_shlibpath_var=no
15084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15085 export_dynamic_flag_spec='${wl}-E'
15086 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15087 # Instead, shared libraries are loaded at an image base (0x10000000 by
15088 # default) and relocated if they conflict, which is a slow very memory
15089 # consuming and fragmenting process. To avoid this, we pick a random,
15090 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15091 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15092 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15093 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'
15097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099 case $cc_basename,$host_cpu in
15100 pgcc*) # Portland Group C compiler
15101 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'
15102 tmp_addflag=' $pic_flag'
15104 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15105 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'
15106 tmp_addflag=' $pic_flag -Mnomain' ;;
15107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15108 tmp_addflag=' -i_dynamic' ;;
15109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15110 tmp_addflag=' -i_dynamic -nofor_main' ;;
15111 ifc* | ifort*) # Intel Fortran compiler
15112 tmp_addflag=' -nofor_main' ;;
15114 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116 if test $supports_anon_versioning = yes; then
15117 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15119 $echo "local: *; };" >> $output_objdir/$libname.ver~
15120 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15129 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15138 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15143 *** create shared libraries on Solaris systems. Therefore, libtool
15144 *** is disabling shared libraries support. We urge you to upgrade GNU
15145 *** binutils to release 2.9.1 or newer. Another option is to modify
15146 *** your PATH or compiler configuration so that the native linker is
15147 *** used, and then restart.
15150 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15159 case `$LD -v 2>&1` in
15160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15165 *** reliably create shared libraries on SCO systems. Therefore, libtool
15166 *** is disabling shared libraries support. We urge you to upgrade GNU
15167 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15168 *** your PATH or compiler configuration so that the native linker is
15169 *** used, and then restart.
15174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15175 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15186 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15188 hardcode_direct=yes
15189 hardcode_shlibpath_var=no
15193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15202 if test "$ld_shlibs" = no; then
15204 hardcode_libdir_flag_spec=
15205 export_dynamic_flag_spec=
15206 whole_archive_flag_spec=
15209 # PORTME fill in a description of your system's linker (not GNU ld)
15212 allow_undefined_flag=unsupported
15213 always_export_symbols=yes
15214 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'
15215 # Note: this linker hardcodes the directories in LIBPATH if there
15216 # are no directories specified by -L.
15217 hardcode_minus_L=yes
15218 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15219 # Neither direct hardcoding nor static linking is supported with a
15221 hardcode_direct=unsupported
15226 if test "$host_cpu" = ia64; then
15227 # On IA64, the linker does run time linking by default, so we don't
15228 # have to do anything special.
15229 aix_use_runtimelinking=no
15230 exp_sym_flag='-Bexport'
15233 # If we're using GNU nm, then we don't want the "-C" option.
15234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15236 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'
15238 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'
15240 aix_use_runtimelinking=no
15242 # Test if we are trying to use run time linking or normal
15243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15244 # need to do runtime linking.
15245 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15246 for ld_flag in $LDFLAGS; do
15247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15248 aix_use_runtimelinking=yes
15255 exp_sym_flag='-bexport'
15256 no_entry_flag='-bnoentry'
15259 # When large executables or shared objects are built, AIX ld can
15260 # have problems creating the table of contents. If linking a library
15261 # or program results in "error TOC overflow" add -mminimal-toc to
15262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15266 hardcode_direct=yes
15267 hardcode_libdir_separator=':'
15268 link_all_deplibs=yes
15270 if test "$GCC" = yes; then
15271 case $host_os in aix4.[012]|aix4.[012].*)
15272 # We only want to do this on AIX 4.2 and lower, the check
15273 # below for broken collect2 doesn't work under 4.3+
15274 collect2name=`${CC} -print-prog-name=collect2`
15275 if test -f "$collect2name" && \
15276 strings "$collect2name" | grep resolve_lib_name >/dev/null
15278 # We have reworked collect2
15279 hardcode_direct=yes
15281 # We have old collect2
15282 hardcode_direct=unsupported
15283 # It fails to find uninstalled libraries when the uninstalled
15284 # path is not listed in the libpath. Setting hardcode_minus_L
15285 # to unsupported forces relinking
15286 hardcode_minus_L=yes
15287 hardcode_libdir_flag_spec='-L$libdir'
15288 hardcode_libdir_separator=
15292 shared_flag='-shared'
15293 if test "$aix_use_runtimelinking" = yes; then
15294 shared_flag="$shared_flag "'${wl}-G'
15298 if test "$host_cpu" = ia64; then
15299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15300 # chokes on -Wl,-G. The following line is correct:
15303 if test "$aix_use_runtimelinking" = yes; then
15304 shared_flag='${wl}-G'
15306 shared_flag='${wl}-bM:SRE'
15311 # It seems that -bexpall does not export symbols beginning with
15312 # underscore (_), so it is better to generate a list of symbols to export.
15313 always_export_symbols=yes
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # Warning - without using the other runtime loading flags (-brtl),
15316 # -berok will link without error, but may produce a broken library.
15317 allow_undefined_flag='-berok'
15318 # Determine the default libpath from the value encoded in an empty executable.
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_link") 2>conftest.er1
15343 grep -v '^ *+' conftest.er1 >conftest.err
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
15348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; } &&
15358 { ac_try='test -s conftest$ac_exeext'
15359 { (case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_try") 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15371 # Check for a 64-bit object if we didn't find anything.
15372 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; }
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15381 rm -f core conftest.err conftest.$ac_objext \
15382 conftest$ac_exeext conftest.$ac_ext
15383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15386 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"
15388 if test "$host_cpu" = ia64; then
15389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15390 allow_undefined_flag="-z nodefs"
15391 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"
15393 # Determine the default libpath from the value encoded in an empty executable.
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest$ac_exeext'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15446 # Check for a 64-bit object if we didn't find anything.
15447 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; }
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15456 rm -f core conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15461 # Warning - without using the other run time loading flags,
15462 # -berok will link without error, but may produce a broken library.
15463 no_undefined_flag=' ${wl}-bernotok'
15464 allow_undefined_flag=' ${wl}-berok'
15465 # Exported symbols can be pulled into shared objects from archives
15466 whole_archive_flag_spec='$convenience'
15467 archive_cmds_need_lc=yes
15468 # This is similar to how AIX traditionally builds its shared libraries.
15469 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'
15475 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)'
15476 hardcode_libdir_flag_spec='-L$libdir'
15477 hardcode_minus_L=yes
15478 # see comment about different semantics on the GNU ld section
15483 export_dynamic_flag_spec=-rdynamic
15486 cygwin* | mingw* | pw32*)
15487 # When not using gcc, we currently assume that we are using
15488 # Microsoft Visual C++.
15489 # hardcode_libdir_flag_spec is actually meaningless, as there is
15490 # no search path for DLLs.
15491 hardcode_libdir_flag_spec=' '
15492 allow_undefined_flag=unsupported
15493 # Tell ltmain to make .lib files, not .a files.
15495 # Tell ltmain to make .dll files, not .so files.
15497 # FIXME: Setting linknames here is a bad hack.
15498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15499 # The linker will automatically build a .lib file if we build a DLL.
15500 old_archive_From_new_cmds='true'
15501 # FIXME: Should let the user specify the lib program.
15502 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15503 fix_srcfile_path='`cygpath -w "$srcfile"`'
15504 enable_shared_with_static_runtimes=yes
15507 darwin* | rhapsody*)
15509 rhapsody* | darwin1.[012])
15510 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15513 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15514 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15516 case ${MACOSX_DEPLOYMENT_TARGET} in
15518 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15521 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15527 archive_cmds_need_lc=no
15529 hardcode_automatic=yes
15530 hardcode_shlibpath_var=unsupported
15531 whole_archive_flag_spec=''
15532 link_all_deplibs=yes
15533 if test "$GCC" = yes ; then
15534 output_verbose_link_cmd='echo'
15535 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15536 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15538 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}'
15539 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}'
15541 case $cc_basename in
15543 output_verbose_link_cmd='echo'
15544 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15547 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}'
15548 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}'
15558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559 hardcode_libdir_flag_spec='-L$libdir'
15560 hardcode_shlibpath_var=no
15567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15568 # support. Future versions do this automatically, but an explicit c++rt0.o
15569 # does not break anything, and helps significantly (at the cost of a little
15572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15573 hardcode_libdir_flag_spec='-R$libdir'
15574 hardcode_direct=yes
15575 hardcode_shlibpath_var=no
15578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_direct=yes
15582 hardcode_minus_L=yes
15583 hardcode_shlibpath_var=no
15586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15587 freebsd* | kfreebsd*-gnu | dragonfly*)
15588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15589 hardcode_libdir_flag_spec='-R$libdir'
15590 hardcode_direct=yes
15591 hardcode_shlibpath_var=no
15595 if test "$GCC" = yes; then
15596 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'
15598 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'
15600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15601 hardcode_libdir_separator=:
15602 hardcode_direct=yes
15604 # hardcode_minus_L: Not really in the search PATH,
15605 # but as the default location of the library.
15606 hardcode_minus_L=yes
15607 export_dynamic_flag_spec='${wl}-E'
15611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15616 if test "$with_gnu_ld" = no; then
15617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_separator=:
15620 hardcode_direct=yes
15621 export_dynamic_flag_spec='${wl}-E'
15623 # hardcode_minus_L: Not really in the search PATH,
15624 # but as the default location of the library.
15625 hardcode_minus_L=yes
15630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15655 if test "$with_gnu_ld" = no; then
15656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_separator=:
15661 hardcode_libdir_flag_spec_ld='+b $libdir'
15663 hardcode_shlibpath_var=no
15666 hardcode_direct=yes
15667 export_dynamic_flag_spec='${wl}-E'
15669 # hardcode_minus_L: Not really in the search PATH,
15670 # but as the default location of the library.
15671 hardcode_minus_L=yes
15677 irix5* | irix6* | nonstopux*)
15678 if test "$GCC" = yes; then
15679 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'
15681 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'
15682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15685 hardcode_libdir_separator=:
15686 link_all_deplibs=yes
15690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15693 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15695 hardcode_libdir_flag_spec='-R$libdir'
15696 hardcode_direct=yes
15697 hardcode_shlibpath_var=no
15701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702 hardcode_direct=yes
15703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15704 hardcode_libdir_separator=:
15705 hardcode_shlibpath_var=no
15709 hardcode_direct=yes
15710 hardcode_shlibpath_var=no
15711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15715 export_dynamic_flag_spec='${wl}-E'
15718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_libdir_flag_spec='-R$libdir'
15723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15731 hardcode_libdir_flag_spec='-L$libdir'
15732 hardcode_minus_L=yes
15733 allow_undefined_flag=unsupported
15734 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'
15735 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15739 if test "$GCC" = yes; then
15740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15741 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'
15743 allow_undefined_flag=' -expect_unresolved \*'
15744 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'
15746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15747 hardcode_libdir_separator=:
15750 osf4* | osf5*) # as osf3* with the addition of -msym flag
15751 if test "$GCC" = yes; then
15752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15753 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'
15754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15756 allow_undefined_flag=' -expect_unresolved \*'
15757 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'
15758 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15759 $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'
15761 # Both c and cxx compiler support -rpath directly
15762 hardcode_libdir_flag_spec='-rpath $libdir'
15764 hardcode_libdir_separator=:
15768 no_undefined_flag=' -z text'
15769 if test "$GCC" = yes; then
15771 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15772 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15773 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15780 hardcode_libdir_flag_spec='-R$libdir'
15781 hardcode_shlibpath_var=no
15783 solaris2.[0-5] | solaris2.[0-5].*) ;;
15785 # The compiler driver will combine linker options so we
15786 # cannot just pass the convience library names through
15787 # without $wl, iff we do not link with $LD.
15788 # Luckily, gcc supports the same syntax we need for Sun Studio.
15789 # Supported since Solaris 2.6 (maybe 2.5.1?)
15792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15794 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' ;;
15797 link_all_deplibs=yes
15801 if test "x$host_vendor" = xsequent; then
15802 # Use $CC to link under sequent, because it throws in some extra .o
15803 # files that make .init and .fini sections work.
15804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15808 hardcode_libdir_flag_spec='-L$libdir'
15809 hardcode_direct=yes
15810 hardcode_minus_L=yes
15811 hardcode_shlibpath_var=no
15815 case $host_vendor in
15817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_direct=yes # is this really true???
15821 ## LD is ld it makes a PLAMLIB
15822 ## CC just makes a GrossModule.
15823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15824 reload_cmds='$CC -r -o $output$reload_objs'
15828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15832 runpath_var='LD_RUN_PATH'
15833 hardcode_shlibpath_var=no
15837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_shlibpath_var=no
15839 export_dynamic_flag_spec='-Bexport'
15843 if test -d /usr/nec; then
15844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_shlibpath_var=no
15846 runpath_var=LD_RUN_PATH
15847 hardcode_runpath_var=yes
15852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15853 no_undefined_flag='${wl}-z,text'
15854 archive_cmds_need_lc=no
15855 hardcode_shlibpath_var=no
15856 runpath_var='LD_RUN_PATH'
15858 if test "$GCC" = yes; then
15859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867 sysv5* | sco3.2v5* | sco5v6*)
15868 # Note: We can NOT use -z defs as we might desire, because we do not
15869 # link with -lc, and that would cause any symbols used from libc to
15870 # always be unresolved, which means just about no library would
15871 # ever link correctly. If we're not using GNU ld we use -z text
15872 # though, which does catch some bad symbols but isn't as heavy-handed
15874 no_undefined_flag='${wl}-z,text'
15875 allow_undefined_flag='${wl}-z,nodefs'
15876 archive_cmds_need_lc=no
15877 hardcode_shlibpath_var=no
15878 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15879 hardcode_libdir_separator=':'
15880 link_all_deplibs=yes
15881 export_dynamic_flag_spec='${wl}-Bexport'
15882 runpath_var='LD_RUN_PATH'
15884 if test "$GCC" = yes; then
15885 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_libdir_flag_spec='-L$libdir'
15896 hardcode_shlibpath_var=no
15905 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15906 echo "${ECHO_T}$ld_shlibs" >&6; }
15907 test "$ld_shlibs" = no && can_build_shared=no
15910 # Do we need to explicitly link libc?
15912 case "x$archive_cmds_need_lc" in
15914 # Assume -lc should be added
15915 archive_cmds_need_lc=yes
15917 if test "$enable_shared" = yes && test "$GCC" = yes; then
15918 case $archive_cmds in
15920 # FIXME: we may have to deal with multi-command sequences.
15923 # Test whether the compiler implicitly links with -lc since on some
15924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15925 # to ld, don't add -lc before -lgcc.
15926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932 (eval $ac_compile) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } 2>conftest.err; then
15938 libobjs=conftest.$ac_objext
15940 wl=$lt_prog_compiler_wl
15941 pic_flag=$lt_prog_compiler_pic
15947 lt_save_allow_undefined_flag=$allow_undefined_flag
15948 allow_undefined_flag=
15949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15950 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }
15955 archive_cmds_need_lc=no
15957 archive_cmds_need_lc=yes
15959 allow_undefined_flag=$lt_save_allow_undefined_flag
15961 cat conftest.err 1>&5
15964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15974 library_names_spec=
15975 libname_spec='lib$name'
15979 postuninstall_cmds=
15983 shlibpath_overrides_runpath=unknown
15985 dynamic_linker="$host_os ld.so"
15986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15987 if test "$GCC" = yes; then
15988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15990 # if the path contains ";" then we assume it to be the separator
15991 # otherwise default to the standard path separator (i.e. ":") - it is
15992 # assumed that no part of a normal pathname contains ";" but that should
15993 # okay in the real world where ";" in dirpaths is itself problematic.
15994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16001 need_lib_prefix=unknown
16002 hardcode_into_libs=no
16004 # when you set need_version to no, make sure it does not cause -set_version
16005 # flags to be left without arguments
16006 need_version=unknown
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16012 shlibpath_var=LIBPATH
16014 # AIX 3 has no versioning support, so we append a major version to the name.
16015 soname_spec='${libname}${release}${shared_ext}$major'
16022 hardcode_into_libs=yes
16023 if test "$host_cpu" = ia64; then
16024 # AIX 5 supports IA64
16025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16026 shlibpath_var=LD_LIBRARY_PATH
16028 # With GCC up to 2.95.x, collect2 would create an import file
16029 # for dependence libraries. The import file would start with
16030 # the line `#! .'. This would cause the generated library to
16031 # depend on `.', always an invalid library. This was fixed in
16032 # development snapshots of GCC prior to 3.0.
16034 aix4 | aix4.[01] | aix4.[01].*)
16035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16040 can_build_shared=no
16044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16045 # soname into executable. Probably we can add versioning support to
16046 # collect2, so additional links can be useful in future.
16047 if test "$aix_use_runtimelinking" = yes; then
16048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16049 # instead of lib<name>.a to let people know that these are not
16050 # typical AIX shared libraries.
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 # We preserve .a as extension for shared libraries through AIX4.2
16054 # and later when we are not doing run time linking.
16055 library_names_spec='${libname}${release}.a $libname.a'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16058 shlibpath_var=LIBPATH
16063 library_names_spec='$libname.ixlibrary $libname.a'
16064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16065 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'
16069 library_names_spec='${libname}${shared_ext}'
16070 dynamic_linker="$host_os ld.so"
16071 shlibpath_var=LIBRARY_PATH
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 soname_spec='${libname}${release}${shared_ext}$major'
16079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16083 # the default ld.so.conf also contains /usr/contrib/lib and
16084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16085 # libtool to hard-code these into programs
16088 cygwin* | mingw* | pw32*)
16089 version_type=windows
16094 case $GCC,$host_os in
16095 yes,cygwin* | yes,mingw* | yes,pw32*)
16096 library_names_spec='$libname.dll.a'
16097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16098 postinstall_cmds='base_file=`basename \${file}`~
16099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16100 dldir=$destdir/`dirname \$dlpath`~
16101 test -d \$dldir || mkdir -p \$dldir~
16102 $install_prog $dir/$dlname \$dldir/$dlname~
16103 chmod a+x \$dldir/$dlname'
16104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16105 dlpath=$dir/\$dldll~
16107 shlibpath_overrides_runpath=yes
16111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16116 # MinGW DLLs use traditional 'lib' prefix
16117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16120 # It is most probably a Windows format PATH printed by
16121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16122 # path with ; separators, and with drive letters. We can handle the
16123 # drive letters (cygwin fileutils understands them), so leave them,
16124 # especially as we might pass files found there to a mingw objdump,
16125 # which wouldn't understand a cygwinified path. Ahh.
16126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16132 # pw32 DLLs use 'pw' prefix rather than 'lib'
16133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16142 dynamic_linker='Win32 ld.exe'
16143 # FIXME: first we should search . and the directory the executable is in
16147 darwin* | rhapsody*)
16148 dynamic_linker="$host_os dyld"
16149 version_type=darwin
16152 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16153 soname_spec='${libname}${release}${major}$shared_ext'
16154 shlibpath_overrides_runpath=yes
16155 shlibpath_var=DYLD_LIBRARY_PATH
16156 shrext_cmds='.dylib'
16157 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16158 if test "$GCC" = yes; then
16159 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"`
16161 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LD_LIBRARY_PATH
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 shlibpath_overrides_runpath=no
16187 hardcode_into_libs=yes
16188 dynamic_linker='GNU ld.so'
16191 freebsd* | dragonfly*)
16192 # DragonFly does not have aout. When/if they implement a new
16193 # versioning mechanism, adjust this.
16194 if test -x /usr/bin/objformat; then
16195 objformat=`/usr/bin/objformat`
16198 freebsd[123]*) objformat=aout ;;
16199 *) objformat=elf ;;
16202 version_type=freebsd-$objformat
16203 case $version_type in
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16214 shlibpath_var=LD_LIBRARY_PATH
16217 shlibpath_overrides_runpath=yes
16219 freebsd3.[01]* | freebsdelf3.[01]*)
16220 shlibpath_overrides_runpath=yes
16221 hardcode_into_libs=yes
16223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16225 shlibpath_overrides_runpath=no
16226 hardcode_into_libs=yes
16228 freebsd*) # from 4.6 on
16229 shlibpath_overrides_runpath=yes
16230 hardcode_into_libs=yes
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 hardcode_into_libs=yes
16245 hpux9* | hpux10* | hpux11*)
16246 # Give a soname corresponding to the major version so that dld.sl refuses to
16247 # link against other versions.
16254 hardcode_into_libs=yes
16255 dynamic_linker="$host_os dld.so"
16256 shlibpath_var=LD_LIBRARY_PATH
16257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 if test "X$HPUX_IA64_MODE" = X32; then
16261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269 hardcode_into_libs=yes
16270 dynamic_linker="$host_os dld.sl"
16271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280 dynamic_linker="$host_os dld.sl"
16281 shlibpath_var=SHLIB_PATH
16282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16288 postinstall_cmds='chmod 555 $lib'
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 shlibpath_overrides_runpath=no
16300 hardcode_into_libs=yes
16303 irix5* | irix6* | nonstopux*)
16305 nonstopux*) version_type=nonstopux ;;
16307 if test "$lt_cv_prog_gnu_ld" = yes; then
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16318 irix5* | nonstopux*)
16319 libsuff= shlibsuff=
16322 case $LD in # libtool.m4 will add one of these switches to LD
16323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16324 libsuff= shlibsuff= libmagic=32-bit;;
16325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16326 libsuff=32 shlibsuff=N32 libmagic=N32;;
16327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16329 *) libsuff= shlibsuff= libmagic=never-match;;
16333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16334 shlibpath_overrides_runpath=no
16335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16337 hardcode_into_libs=yes
16340 # No shared lib support for Linux oldld, aout, or coff.
16341 linux*oldld* | linux*aout* | linux*coff*)
16345 # This must be Linux ELF.
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16351 soname_spec='${libname}${release}${shared_ext}$major'
16352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 shlibpath_overrides_runpath=no
16355 # This implies no fast_install, which is unacceptable.
16356 # Some rework will be needed to allow for fast_install
16357 # before this can be enabled.
16358 hardcode_into_libs=yes
16360 # Append ld.so.conf contents to the search path
16361 if test -f /etc/ld.so.conf; then
16362 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' ' '`
16363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16366 # We used to test for /lib/ld.so.1 and disable shared libraries on
16367 # powerpc, because MkLinux only supported shared libraries with the
16368 # GNU dynamic linker. Since this was broken with cross compilers,
16369 # most powerpc-linux boxes support dynamic linking these days and
16370 # people can always --disable-shared, the test was removed, and we
16371 # assume the GNU/Linux dynamic linker is in use.
16372 dynamic_linker='GNU/Linux ld.so'
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 shlibpath_overrides_runpath=no
16383 hardcode_into_libs=yes
16384 dynamic_linker='GNU ld.so'
16391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16394 dynamic_linker='NetBSD (a.out) ld.so'
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 dynamic_linker='NetBSD ld.elf_so'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 hardcode_into_libs=yes
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 shlibpath_overrides_runpath=yes
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=yes
16424 sys_lib_dlsearch_path_spec="/usr/lib"
16426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16428 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16429 *) need_version=no ;;
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16436 openbsd2.[89] | openbsd2.[89].*)
16437 shlibpath_overrides_runpath=no
16440 shlibpath_overrides_runpath=yes
16444 shlibpath_overrides_runpath=yes
16449 libname_spec='$name'
16452 library_names_spec='$libname${shared_ext} $libname.a'
16453 dynamic_linker='OS/2 ld.exe'
16454 shlibpath_var=LIBPATH
16457 osf3* | osf4* | osf5*)
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473 soname_spec='${libname}${release}${shared_ext}$major'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 shlibpath_overrides_runpath=yes
16476 hardcode_into_libs=yes
16477 # ldd complains unless libraries are executable
16478 postinstall_cmds='chmod +x $lib'
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 if test "$with_gnu_ld" = yes; then
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 case $host_vendor in
16500 shlibpath_overrides_runpath=no
16502 export_dynamic_flag_spec='${wl}-Blargedynsym'
16503 runpath_var=LD_RUN_PATH
16511 shlibpath_overrides_runpath=no
16512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16518 if test -d /usr/nec ;then
16520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16521 soname_spec='$libname${shared_ext}.$major'
16522 shlibpath_var=LD_LIBRARY_PATH
16526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16527 version_type=freebsd-elf
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 hardcode_into_libs=yes
16534 if test "$with_gnu_ld" = yes; then
16535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16536 shlibpath_overrides_runpath=no
16538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16539 shlibpath_overrides_runpath=yes
16542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16546 sys_lib_dlsearch_path_spec='/usr/lib'
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 shlibpath_var=LD_LIBRARY_PATH
16560 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16561 echo "${ECHO_T}$dynamic_linker" >&6; }
16562 test "$dynamic_linker" = no && can_build_shared=no
16564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565 if test "$GCC" = yes; then
16566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16569 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16572 if test -n "$hardcode_libdir_flag_spec" || \
16573 test -n "$runpath_var" || \
16574 test "X$hardcode_automatic" = "Xyes" ; then
16576 # We can hardcode non-existant directories.
16577 if test "$hardcode_direct" != no &&
16578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16579 # have to relink, otherwise we might link with an installed library
16580 # when we should be linking with a yet-to-be-installed one
16581 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16582 test "$hardcode_minus_L" != no; then
16583 # Linking always hardcodes the temporary library directory.
16584 hardcode_action=relink
16586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16587 hardcode_action=immediate
16590 # We cannot hardcode anything, or else we can only hardcode existing
16592 hardcode_action=unsupported
16594 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16595 echo "${ECHO_T}$hardcode_action" >&6; }
16597 if test "$hardcode_action" = relink; then
16598 # Fast installation is not supported
16599 enable_fast_install=no
16600 elif test "$shlibpath_overrides_runpath" = yes ||
16601 test "$enable_shared" = no; then
16602 # Fast installation is not necessary
16603 enable_fast_install=needless
16608 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16613 { echo "$as_me:$LINENO: result: yes" >&5
16614 echo "${ECHO_T}yes" >&6; }
16616 # FIXME - insert some real tests, host_os isn't really good enough
16619 if test -n "$STRIP" ; then
16620 striplib="$STRIP -x"
16621 { echo "$as_me:$LINENO: result: yes" >&5
16622 echo "${ECHO_T}yes" >&6; }
16624 { echo "$as_me:$LINENO: result: no" >&5
16625 echo "${ECHO_T}no" >&6; }
16629 { echo "$as_me:$LINENO: result: no" >&5
16630 echo "${ECHO_T}no" >&6; }
16635 if test "x$enable_dlopen" != xyes; then
16636 enable_dlopen=unknown
16637 enable_dlopen_self=unknown
16638 enable_dlopen_self_static=unknown
16645 lt_cv_dlopen="load_add_on"
16647 lt_cv_dlopen_self=yes
16651 lt_cv_dlopen="LoadLibrary"
16656 lt_cv_dlopen="dlopen"
16661 # if libdl is installed we need to link against it
16662 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 ac_check_lib_save_LIBS=$LIBS
16669 cat >conftest.$ac_ext <<_ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16676 /* Override any GCC internal prototype to avoid an error.
16677 Use char because int might match the return type of a GCC
16678 builtin and then its argument prototype would still apply. */
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
16700 grep -v '^ *+' conftest.er1 >conftest.err
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_lib_dl_dlopen=yes
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_cv_lib_dl_dlopen=no
16733 rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 LIBS=$ac_check_lib_save_LIBS
16737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16739 if test $ac_cv_lib_dl_dlopen = yes; then
16740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16743 lt_cv_dlopen="dyld"
16745 lt_cv_dlopen_self=yes
16752 { echo "$as_me:$LINENO: checking for shl_load" >&5
16753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16754 if test "${ac_cv_func_shl_load+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 cat >conftest.$ac_ext <<_ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define shl_load innocuous_shl_load
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char shl_load (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16773 # include <limits.h>
16775 # include <assert.h>
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined __stub_shl_load || defined __stub___shl_load
16797 return shl_load ();
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_link") 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest$ac_exeext'
16827 { (case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_try") 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 ac_cv_func_shl_load=yes
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 ac_cv_func_shl_load=no
16844 rm -f core conftest.err conftest.$ac_objext \
16845 conftest$ac_exeext conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16849 if test $ac_cv_func_shl_load = yes; then
16850 lt_cv_dlopen="shl_load"
16852 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16853 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16854 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 ac_check_lib_save_LIBS=$LIBS
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16866 /* Override any GCC internal prototype to avoid an error.
16867 Use char because int might match the return type of a GCC
16868 builtin and then its argument prototype would still apply. */
16876 return shl_load ();
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (ac_try="$ac_link"
16883 case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_link") 2>conftest.er1
16890 grep -v '^ *+' conftest.er1 >conftest.err
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16896 { (case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_try") 2>&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } &&
16905 { ac_try='test -s conftest$ac_exeext'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ac_cv_lib_dld_shl_load=yes
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 ac_cv_lib_dld_shl_load=no
16923 rm -f core conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16927 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16928 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16929 if test $ac_cv_lib_dld_shl_load = yes; then
16930 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16932 { echo "$as_me:$LINENO: checking for dlopen" >&5
16933 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16934 if test "${ac_cv_func_dlopen+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16945 #define dlopen innocuous_dlopen
16947 /* System header to define __stub macros and hopefully few prototypes,
16948 which can conflict with char dlopen (); below.
16949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 <limits.h> exists even on freestanding compilers. */
16953 # include <limits.h>
16955 # include <assert.h>
16960 /* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
16967 /* The GNU C library defines this for functions which it implements
16968 to always fail with ENOSYS. Some functions are actually named
16969 something starting with __ and the normal name is an alias. */
16970 #if defined __stub_dlopen || defined __stub___dlopen
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997 { (case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_try") 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest$ac_exeext'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_cv_func_dlopen=yes
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 ac_cv_func_dlopen=no
17024 rm -f core conftest.err conftest.$ac_objext \
17025 conftest$ac_exeext conftest.$ac_ext
17027 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17028 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17029 if test $ac_cv_func_dlopen = yes; then
17030 lt_cv_dlopen="dlopen"
17032 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17033 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 ac_check_lib_save_LIBS=$LIBS
17039 cat >conftest.$ac_ext <<_ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h. */
17046 /* Override any GCC internal prototype to avoid an error.
17047 Use char because int might match the return type of a GCC
17048 builtin and then its argument prototype would still apply. */
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_cv_lib_dl_dlopen=yes
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 ac_cv_lib_dl_dlopen=no
17103 rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105 LIBS=$ac_check_lib_save_LIBS
17107 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17108 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17109 if test $ac_cv_lib_dl_dlopen = yes; then
17110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17112 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17113 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17114 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 ac_check_lib_save_LIBS=$LIBS
17118 LIBS="-lsvld $LIBS"
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17126 /* Override any GCC internal prototype to avoid an error.
17127 Use char because int might match the return type of a GCC
17128 builtin and then its argument prototype would still apply. */
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_lib_svld_dlopen=yes
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 ac_cv_lib_svld_dlopen=no
17183 rm -f core conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17185 LIBS=$ac_check_lib_save_LIBS
17187 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17188 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17189 if test $ac_cv_lib_svld_dlopen = yes; then
17190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17192 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17193 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17194 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 ac_check_lib_save_LIBS=$LIBS
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17216 return dld_link ();
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17230 grep -v '^ *+' conftest.er1 >conftest.err
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_cv_lib_dld_dld_link=yes
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17260 ac_cv_lib_dld_dld_link=no
17263 rm -f core conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17265 LIBS=$ac_check_lib_save_LIBS
17267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17268 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17269 if test $ac_cv_lib_dld_dld_link = yes; then
17270 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17291 if test "x$lt_cv_dlopen" != xno; then
17297 case $lt_cv_dlopen in
17299 save_CPPFLAGS="$CPPFLAGS"
17300 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17302 save_LDFLAGS="$LDFLAGS"
17303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17306 LIBS="$lt_cv_dlopen_libs $LIBS"
17308 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17309 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17310 if test "${lt_cv_dlopen_self+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 if test "$cross_compiling" = yes; then :
17314 lt_cv_dlopen_self=cross
17316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17317 lt_status=$lt_dlunknown
17318 cat > conftest.$ac_ext <<EOF
17319 #line 17319 "configure"
17320 #include "confdefs.h"
17329 # define LT_DLGLOBAL RTLD_GLOBAL
17332 # define LT_DLGLOBAL DL_GLOBAL
17334 # define LT_DLGLOBAL 0
17338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17339 find out it does not work in some platform. */
17340 #ifndef LT_DLLAZY_OR_NOW
17342 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17345 # define LT_DLLAZY_OR_NOW DL_LAZY
17348 # define LT_DLLAZY_OR_NOW RTLD_NOW
17351 # define LT_DLLAZY_OR_NOW DL_NOW
17353 # define LT_DLLAZY_OR_NOW 0
17361 extern "C" void exit (int);
17364 void fnord() { int i=42;}
17367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17368 int status = $lt_dlunknown;
17372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17374 /* dlclose (self); */
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17387 (./conftest; exit; ) >&5 2>/dev/null
17389 case x$lt_status in
17390 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17391 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17392 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17395 # compilation failed
17396 lt_cv_dlopen_self=no
17403 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17404 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17406 if test "x$lt_cv_dlopen_self" = xyes; then
17407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17408 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17409 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17410 if test "${lt_cv_dlopen_self_static+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 if test "$cross_compiling" = yes; then :
17414 lt_cv_dlopen_self_static=cross
17416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17417 lt_status=$lt_dlunknown
17418 cat > conftest.$ac_ext <<EOF
17419 #line 17419 "configure"
17420 #include "confdefs.h"
17429 # define LT_DLGLOBAL RTLD_GLOBAL
17432 # define LT_DLGLOBAL DL_GLOBAL
17434 # define LT_DLGLOBAL 0
17438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17439 find out it does not work in some platform. */
17440 #ifndef LT_DLLAZY_OR_NOW
17442 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17445 # define LT_DLLAZY_OR_NOW DL_LAZY
17448 # define LT_DLLAZY_OR_NOW RTLD_NOW
17451 # define LT_DLLAZY_OR_NOW DL_NOW
17453 # define LT_DLLAZY_OR_NOW 0
17461 extern "C" void exit (int);
17464 void fnord() { int i=42;}
17467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17468 int status = $lt_dlunknown;
17472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17474 /* dlclose (self); */
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17487 (./conftest; exit; ) >&5 2>/dev/null
17489 case x$lt_status in
17490 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17495 # compilation failed
17496 lt_cv_dlopen_self_static=no
17503 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17504 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17507 CPPFLAGS="$save_CPPFLAGS"
17508 LDFLAGS="$save_LDFLAGS"
17513 case $lt_cv_dlopen_self in
17514 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515 *) enable_dlopen_self=unknown ;;
17518 case $lt_cv_dlopen_self_static in
17519 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520 *) enable_dlopen_self_static=unknown ;;
17525 # Report which library types will actually be built
17526 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17527 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17528 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17529 echo "${ECHO_T}$can_build_shared" >&6; }
17531 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17532 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17533 test "$can_build_shared" = "no" && enable_shared=no
17535 # On AIX, shared libraries and static libraries use the same namespace, and
17536 # are all built from PIC.
17539 test "$enable_shared" = yes && enable_static=no
17540 if test -n "$RANLIB"; then
17541 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17542 postinstall_cmds='$RANLIB $lib'
17547 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17548 test "$enable_shared" = yes && enable_static=no
17552 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17553 echo "${ECHO_T}$enable_shared" >&6; }
17555 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17556 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17557 # Make sure either enable_shared or enable_static is yes.
17558 test "$enable_shared" = yes || enable_static=yes
17559 { echo "$as_me:$LINENO: result: $enable_static" >&5
17560 echo "${ECHO_T}$enable_static" >&6; }
17562 # The else clause should only fire when bootstrapping the
17563 # libtool distribution, otherwise you forgot to ship ltmain.sh
17564 # with your package, and you will get complaints that there are
17565 # no rules to generate ltmain.sh.
17566 if test -f "$ltmain"; then
17567 # See if we are running on zsh, and set the options which allow our commands through
17568 # without removal of \ escapes.
17569 if test -n "${ZSH_VERSION+set}" ; then
17570 setopt NO_GLOB_SUBST
17572 # Now quote all the things that may contain metacharacters while being
17573 # careful not to overquote the AC_SUBSTed values. We take copies of the
17574 # variables and quote the copies for generation of the libtool script.
17575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17579 deplibs_check_method reload_flag reload_cmds need_locks \
17580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17581 lt_cv_sys_global_symbol_to_c_name_address \
17582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17583 old_postinstall_cmds old_postuninstall_cmds \
17587 lt_prog_compiler_wl \
17588 lt_prog_compiler_pic \
17589 lt_prog_compiler_static \
17590 lt_prog_compiler_no_builtin_flag \
17591 export_dynamic_flag_spec \
17592 thread_safe_flag_spec \
17593 whole_archive_flag_spec \
17594 enable_shared_with_static_runtimes \
17596 old_archive_from_new_cmds \
17601 compiler_lib_search_path \
17603 archive_expsym_cmds \
17605 postuninstall_cmds \
17606 old_archive_from_expsyms_cmds \
17607 allow_undefined_flag \
17608 no_undefined_flag \
17609 export_symbols_cmds \
17610 hardcode_libdir_flag_spec \
17611 hardcode_libdir_flag_spec_ld \
17612 hardcode_libdir_separator \
17613 hardcode_automatic \
17615 module_expsym_cmds \
17616 lt_cv_prog_compiler_c_o \
17618 include_expsyms; do
17621 old_archive_cmds | \
17622 old_archive_from_new_cmds | \
17624 archive_expsym_cmds | \
17626 module_expsym_cmds | \
17627 old_archive_from_expsyms_cmds | \
17628 export_symbols_cmds | \
17629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17630 postinstall_cmds | postuninstall_cmds | \
17631 old_postinstall_cmds | old_postuninstall_cmds | \
17632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17633 # Double-quote double-evaled strings.
17634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17643 *'\$0 --fallback-echo"')
17644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17648 cfgfile="${ofile}T"
17649 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17651 { echo "$as_me:$LINENO: creating $ofile" >&5
17652 echo "$as_me: creating $ofile" >&6;}
17654 cat <<__EOF__ >> "$cfgfile"
17657 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17658 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17659 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17661 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17662 # Free Software Foundation, Inc.
17664 # This file is part of GNU Libtool:
17665 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17667 # This program is free software; you can redistribute it and/or modify
17668 # it under the terms of the GNU General Public License as published by
17669 # the Free Software Foundation; either version 2 of the License, or
17670 # (at your option) any later version.
17672 # This program is distributed in the hope that it will be useful, but
17673 # WITHOUT ANY WARRANTY; without even the implied warranty of
17674 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17675 # General Public License for more details.
17677 # You should have received a copy of the GNU General Public License
17678 # along with this program; if not, write to the Free Software
17679 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17681 # As a special exception to the GNU General Public License, if you
17682 # distribute this file as part of a program that contains a
17683 # configuration script generated by Autoconf, you may include it under
17684 # the same distribution terms that you use for the rest of that program.
17686 # A sed program that does not truncate output.
17689 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17690 Xsed="$SED -e 1s/^X//"
17692 # The HP-UX ksh and POSIX shell print the target directory to stdout
17693 # if CDPATH is set.
17694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17696 # The names of the tagged configurations supported by this script.
17699 # ### BEGIN LIBTOOL CONFIG
17701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17703 # Shell to use when invoking shell scripts.
17706 # Whether or not to build shared libraries.
17707 build_libtool_libs=$enable_shared
17709 # Whether or not to build static libraries.
17710 build_old_libs=$enable_static
17712 # Whether or not to add -lc for building shared libraries.
17713 build_libtool_need_lc=$archive_cmds_need_lc
17715 # Whether or not to disallow shared libs when runtime libs are static
17716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17718 # Whether or not to optimize for fast installation.
17719 fast_install=$enable_fast_install
17722 host_alias=$host_alias
17726 # The build system.
17727 build_alias=$build_alias
17731 # An echo program that does not interpret backslashes.
17736 AR_FLAGS=$lt_AR_FLAGS
17741 # LTCC compiler flags.
17742 LTCFLAGS=$lt_LTCFLAGS
17744 # A language-specific compiler.
17747 # Is the compiler the GNU C compiler?
17753 # The linker used to build libraries.
17756 # Whether we need hard or soft links.
17759 # A BSD-compatible nm program.
17762 # A symbol stripping program
17765 # Used to examine libraries when file_magic_cmd begins "file"
17766 MAGIC_CMD=$MAGIC_CMD
17768 # Used on cygwin: DLL creation program.
17771 # Used on cygwin: object dumper.
17774 # Used on cygwin: assembler.
17777 # The name of the directory that contains temporary libtool files.
17780 # How to create reloadable object files.
17781 reload_flag=$lt_reload_flag
17782 reload_cmds=$lt_reload_cmds
17784 # How to pass a linker flag through the compiler.
17785 wl=$lt_lt_prog_compiler_wl
17787 # Object file suffix (normally "o").
17788 objext="$ac_objext"
17790 # Old archive suffix (normally "a").
17793 # Shared library suffix (normally ".so").
17794 shrext_cmds='$shrext_cmds'
17796 # Executable file suffix (normally "").
17799 # Additional compiler flags for building library objects.
17800 pic_flag=$lt_lt_prog_compiler_pic
17803 # What is the maximum length of a command?
17804 max_cmd_len=$lt_cv_sys_max_cmd_len
17806 # Does compiler simultaneously support -c and -o options?
17807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17809 # Must we lock files when doing compilation?
17810 need_locks=$lt_need_locks
17812 # Do we need the lib prefix for modules?
17813 need_lib_prefix=$need_lib_prefix
17815 # Do we need a version for libraries?
17816 need_version=$need_version
17818 # Whether dlopen is supported.
17819 dlopen_support=$enable_dlopen
17821 # Whether dlopen of programs is supported.
17822 dlopen_self=$enable_dlopen_self
17824 # Whether dlopen of statically linked programs is supported.
17825 dlopen_self_static=$enable_dlopen_self_static
17827 # Compiler flag to prevent dynamic linking.
17828 link_static_flag=$lt_lt_prog_compiler_static
17830 # Compiler flag to turn off builtin functions.
17831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17833 # Compiler flag to allow reflexive dlopens.
17834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17836 # Compiler flag to generate shared objects directly from archives.
17837 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17839 # Compiler flag to generate thread-safe objects.
17840 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17842 # Library versioning type.
17843 version_type=$version_type
17845 # Format of library name prefix.
17846 libname_spec=$lt_libname_spec
17848 # List of archive names. First name is the real one, the rest are links.
17849 # The last name is the one that the linker finds with -lNAME.
17850 library_names_spec=$lt_library_names_spec
17852 # The coded name of the library, if different from the real name.
17853 soname_spec=$lt_soname_spec
17855 # Commands used to build and install an old-style archive.
17857 old_archive_cmds=$lt_old_archive_cmds
17858 old_postinstall_cmds=$lt_old_postinstall_cmds
17859 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17861 # Create an old-style archive from a shared archive.
17862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17864 # Create a temporary old-style archive to link instead of a shared archive.
17865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17867 # Commands used to build and install a shared archive.
17868 archive_cmds=$lt_archive_cmds
17869 archive_expsym_cmds=$lt_archive_expsym_cmds
17870 postinstall_cmds=$lt_postinstall_cmds
17871 postuninstall_cmds=$lt_postuninstall_cmds
17873 # Commands used to build a loadable module (assumed same as above if empty)
17874 module_cmds=$lt_module_cmds
17875 module_expsym_cmds=$lt_module_expsym_cmds
17877 # Commands to strip libraries.
17878 old_striplib=$lt_old_striplib
17879 striplib=$lt_striplib
17881 # Dependencies to place before the objects being linked to create a
17883 predep_objects=$lt_predep_objects
17885 # Dependencies to place after the objects being linked to create a
17887 postdep_objects=$lt_postdep_objects
17889 # Dependencies to place before the objects being linked to create a
17891 predeps=$lt_predeps
17893 # Dependencies to place after the objects being linked to create a
17895 postdeps=$lt_postdeps
17897 # The library search path used internally by the compiler when linking
17898 # a shared library.
17899 compiler_lib_search_path=$lt_compiler_lib_search_path
17901 # Method to check whether dependent libraries are shared objects.
17902 deplibs_check_method=$lt_deplibs_check_method
17904 # Command to use when deplibs_check_method == file_magic.
17905 file_magic_cmd=$lt_file_magic_cmd
17907 # Flag that allows shared libraries with undefined symbols to be built.
17908 allow_undefined_flag=$lt_allow_undefined_flag
17910 # Flag that forces no undefined symbols.
17911 no_undefined_flag=$lt_no_undefined_flag
17913 # Commands used to finish a libtool library installation in a directory.
17914 finish_cmds=$lt_finish_cmds
17916 # Same as above, but a single script fragment to be evaled but not shown.
17917 finish_eval=$lt_finish_eval
17919 # Take the output of nm and produce a listing of raw symbols and C names.
17920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17922 # Transform the output of nm in a proper C declaration
17923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17925 # Transform the output of nm in a C name address pair
17926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17928 # This is the shared library runtime path variable.
17929 runpath_var=$runpath_var
17931 # This is the shared library path variable.
17932 shlibpath_var=$shlibpath_var
17934 # Is shlibpath searched before the hard-coded library search path?
17935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17937 # How to hardcode a shared library path into an executable.
17938 hardcode_action=$hardcode_action
17940 # Whether we should hardcode library paths into libraries.
17941 hardcode_into_libs=$hardcode_into_libs
17943 # Flag to hardcode \$libdir into a binary during linking.
17944 # This must work even if \$libdir does not exist.
17945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17947 # If ld is used when linking, flag to hardcode \$libdir into
17948 # a binary during linking. This must work even if \$libdir does
17950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17952 # Whether we need a single -rpath flag with a separated argument.
17953 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17956 # resulting binary.
17957 hardcode_direct=$hardcode_direct
17959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17960 # resulting binary.
17961 hardcode_minus_L=$hardcode_minus_L
17963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17964 # the resulting binary.
17965 hardcode_shlibpath_var=$hardcode_shlibpath_var
17967 # Set to yes if building a shared library automatically hardcodes DIR into the library
17968 # and all subsequent libraries and executables linked against it.
17969 hardcode_automatic=$hardcode_automatic
17971 # Variables whose values should be saved in libtool wrapper scripts and
17972 # restored at relink time.
17973 variables_saved_for_relink="$variables_saved_for_relink"
17975 # Whether libtool must link a program against all its dependency libraries.
17976 link_all_deplibs=$link_all_deplibs
17978 # Compile-time system search path for libraries
17979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17981 # Run-time system search path for libraries
17982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17984 # Fix the shell variable \$srcfile for the compiler.
17985 fix_srcfile_path="$fix_srcfile_path"
17987 # Set to yes if exported symbols are required.
17988 always_export_symbols=$always_export_symbols
17990 # The commands to list exported symbols.
17991 export_symbols_cmds=$lt_export_symbols_cmds
17993 # The commands to extract the exported symbol list from a shared archive.
17994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17996 # Symbols that should not be listed in the preloaded symbols.
17997 exclude_expsyms=$lt_exclude_expsyms
17999 # Symbols that must always be exported.
18000 include_expsyms=$lt_include_expsyms
18002 # ### END LIBTOOL CONFIG
18009 cat <<\EOF >> "$cfgfile"
18011 # AIX sometimes has problems with the GCC collect2 program. For some
18012 # reason, if we set the COLLECT_NAMES environment variable, the problems
18013 # vanish in a puff of smoke.
18014 if test "X${COLLECT_NAMES+set}" != Xset; then
18016 export COLLECT_NAMES
18022 # We use sed instead of cat because bash on DJGPP gets confused if
18023 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18024 # text mode, it properly converts lines to CR/LF. This bash problem
18025 # is reportedly fixed, but why not run on old versions too?
18026 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18028 mv -f "$cfgfile" "$ofile" || \
18029 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18033 # If there is no Makefile yet, we rely on a make rule to execute
18034 # `config.status --recheck' to rerun these tests and create the
18035 # libtool script then.
18036 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18037 if test -f "$ltmain_in"; then
18038 test -f Makefile && make "$ltmain"
18044 ac_cpp='$CPP $CPPFLAGS'
18045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18052 # Check whether --with-tags was given.
18053 if test "${with_tags+set}" = set; then
18054 withval=$with_tags; tagnames="$withval"
18058 if test -f "$ltmain" && test -n "$tagnames"; then
18059 if test ! -f "${ofile}"; then
18060 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18061 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18064 if test -z "$LTCC"; then
18065 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18066 if test -z "$LTCC"; then
18067 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18068 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18070 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18071 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18074 if test -z "$LTCFLAGS"; then
18075 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18078 # Extract list of available tagged configurations in $ofile.
18079 # Note that this assumes the entire list is on one line.
18080 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18083 for tagname in $tagnames; do
18085 # Check whether tagname contains only valid characters
18086 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18088 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18089 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18090 { (exit 1); exit 1; }; }
18094 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18096 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18097 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18098 { (exit 1); exit 1; }; }
18101 # Update the list of available tags.
18102 if test -n "$tagname"; then
18103 echo appending configuration tag \"$tagname\" to $ofile
18107 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18108 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18109 (test "X$CXX" != "Xg++"))) ; then
18111 ac_cpp='$CXXCPP $CPPFLAGS'
18112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18119 archive_cmds_need_lc_CXX=no
18120 allow_undefined_flag_CXX=
18121 always_export_symbols_CXX=no
18122 archive_expsym_cmds_CXX=
18123 export_dynamic_flag_spec_CXX=
18124 hardcode_direct_CXX=no
18125 hardcode_libdir_flag_spec_CXX=
18126 hardcode_libdir_flag_spec_ld_CXX=
18127 hardcode_libdir_separator_CXX=
18128 hardcode_minus_L_CXX=no
18129 hardcode_shlibpath_var_CXX=unsupported
18130 hardcode_automatic_CXX=no
18132 module_expsym_cmds_CXX=
18133 link_all_deplibs_CXX=unknown
18134 old_archive_cmds_CXX=$old_archive_cmds
18135 no_undefined_flag_CXX=
18136 whole_archive_flag_spec_CXX=
18137 enable_shared_with_static_runtimes_CXX=no
18139 # Dependencies to place before and after the object being linked:
18140 predep_objects_CXX=
18141 postdep_objects_CXX=
18144 compiler_lib_search_path_CXX=
18146 # Source file extension for C++ test sources.
18149 # Object file extension for compiled C++ test sources.
18153 # Code to be used in simple compile tests
18154 lt_simple_compile_test_code="int some_variable = 0;\n"
18156 # Code to be used in simple link tests
18157 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18159 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18161 # If no C compiler was specified, use CC.
18164 # If no C compiler flags were specified, use CFLAGS.
18165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18167 # Allow CC to be a program name with arguments.
18171 # save warnings/boilerplate of simple test code
18172 ac_outfile=conftest.$ac_objext
18173 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18174 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18175 _lt_compiler_boilerplate=`cat conftest.err`
18178 ac_outfile=conftest.$ac_objext
18179 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18180 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18181 _lt_linker_boilerplate=`cat conftest.err`
18185 # Allow CC to be a program name with arguments.
18190 lt_save_with_gnu_ld=$with_gnu_ld
18191 lt_save_path_LD=$lt_cv_path_LD
18192 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18193 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18195 $as_unset lt_cv_prog_gnu_ld
18197 if test -n "${lt_cv_path_LDCXX+set}"; then
18198 lt_cv_path_LD=$lt_cv_path_LDCXX
18200 $as_unset lt_cv_path_LD
18202 test -z "${LDCXX+set}" || LD=$LDCXX
18206 for cc_temp in $compiler""; do
18208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18217 # We don't want -fno-exception wen compiling C++ code, so set the
18218 # no_builtin_flag separately
18219 if test "$GXX" = yes; then
18220 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18222 lt_prog_compiler_no_builtin_flag_CXX=
18225 if test "$GXX" = yes; then
18226 # Set up default GNU C++ configuration
18229 # Check whether --with-gnu-ld was given.
18230 if test "${with_gnu_ld+set}" = set; then
18231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18237 if test "$GCC" = yes; then
18238 # Check if gcc -print-prog-name=ld gives a path.
18239 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18240 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18243 # gcc leaves a trailing carriage return which upsets mingw
18244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18249 # Accept absolute paths.
18251 re_direlt='/[^/][^/]*/\.\./'
18252 # Canonicalize the pathname of ld
18253 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18254 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18255 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18257 test -z "$LD" && LD="$ac_prog"
18260 # If it fails, then pretend we aren't using GCC.
18264 # If it is relative, then search for the first ld in PATH.
18265 with_gnu_ld=unknown
18268 elif test "$with_gnu_ld" = yes; then
18269 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18270 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18272 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18273 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18275 if test "${lt_cv_path_LD+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 if test -z "$LD"; then
18279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18280 for ac_dir in $PATH; do
18282 test -z "$ac_dir" && ac_dir=.
18283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18284 lt_cv_path_LD="$ac_dir/$ac_prog"
18285 # Check to see if the program is GNU ld. I'd rather use --version,
18286 # but apparently some variants of GNU ld only accept -v.
18287 # Break only if it was the GNU/non-GNU ld that we prefer.
18288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18289 *GNU* | *'with BFD'*)
18290 test "$with_gnu_ld" != no && break
18293 test "$with_gnu_ld" != yes && break
18300 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18304 LD="$lt_cv_path_LD"
18305 if test -n "$LD"; then
18306 { echo "$as_me:$LINENO: result: $LD" >&5
18307 echo "${ECHO_T}$LD" >&6; }
18309 { echo "$as_me:$LINENO: result: no" >&5
18310 echo "${ECHO_T}no" >&6; }
18312 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18313 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18314 { (exit 1); exit 1; }; }
18315 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18316 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18317 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18321 case `$LD -v 2>&1 </dev/null` in
18322 *GNU* | *'with BFD'*)
18323 lt_cv_prog_gnu_ld=yes
18326 lt_cv_prog_gnu_ld=no
18330 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18331 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18332 with_gnu_ld=$lt_cv_prog_gnu_ld
18336 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18337 # archiving commands below assume that GNU ld is being used.
18338 if test "$with_gnu_ld" = yes; then
18339 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18340 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'
18342 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18345 # If archive_cmds runs LD, not CC, wlarc should be empty
18346 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18347 # investigate it a little bit more. (MM)
18350 # ancient GNU ld didn't support --whole-archive et. al.
18351 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18352 grep 'no-whole-archive' > /dev/null; then
18353 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18355 whole_archive_flag_spec_CXX=
18361 # A generic and very simple default shared library creation
18362 # command for GNU C++ for the case where it uses the native
18363 # linker, instead of GNU ld. If possible, this setting should
18364 # overridden to take advantage of the native linker features on
18365 # the platform it is being used on.
18366 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18369 # Commands to make compiler produce verbose output that lists
18370 # what "hidden" libraries, object files and flags are used when
18371 # linking a shared library.
18372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18380 # PORTME: fill in a description of your system's C++ link characteristics
18381 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18382 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18386 # FIXME: insert proper C++ library support
18390 if test "$host_cpu" = ia64; then
18391 # On IA64, the linker does run time linking by default, so we don't
18392 # have to do anything special.
18393 aix_use_runtimelinking=no
18394 exp_sym_flag='-Bexport'
18397 aix_use_runtimelinking=no
18399 # Test if we are trying to use run time linking or normal
18400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18401 # need to do runtime linking.
18402 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18403 for ld_flag in $LDFLAGS; do
18406 aix_use_runtimelinking=yes
18414 exp_sym_flag='-bexport'
18415 no_entry_flag='-bnoentry'
18418 # When large executables or shared objects are built, AIX ld can
18419 # have problems creating the table of contents. If linking a library
18420 # or program results in "error TOC overflow" add -mminimal-toc to
18421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18424 archive_cmds_CXX=''
18425 hardcode_direct_CXX=yes
18426 hardcode_libdir_separator_CXX=':'
18427 link_all_deplibs_CXX=yes
18429 if test "$GXX" = yes; then
18430 case $host_os in aix4.[012]|aix4.[012].*)
18431 # We only want to do this on AIX 4.2 and lower, the check
18432 # below for broken collect2 doesn't work under 4.3+
18433 collect2name=`${CC} -print-prog-name=collect2`
18434 if test -f "$collect2name" && \
18435 strings "$collect2name" | grep resolve_lib_name >/dev/null
18437 # We have reworked collect2
18438 hardcode_direct_CXX=yes
18440 # We have old collect2
18441 hardcode_direct_CXX=unsupported
18442 # It fails to find uninstalled libraries when the uninstalled
18443 # path is not listed in the libpath. Setting hardcode_minus_L
18444 # to unsupported forces relinking
18445 hardcode_minus_L_CXX=yes
18446 hardcode_libdir_flag_spec_CXX='-L$libdir'
18447 hardcode_libdir_separator_CXX=
18451 shared_flag='-shared'
18452 if test "$aix_use_runtimelinking" = yes; then
18453 shared_flag="$shared_flag "'${wl}-G'
18457 if test "$host_cpu" = ia64; then
18458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18459 # chokes on -Wl,-G. The following line is correct:
18462 if test "$aix_use_runtimelinking" = yes; then
18463 shared_flag='${wl}-G'
18465 shared_flag='${wl}-bM:SRE'
18470 # It seems that -bexpall does not export symbols beginning with
18471 # underscore (_), so it is better to generate a list of symbols to export.
18472 always_export_symbols_CXX=yes
18473 if test "$aix_use_runtimelinking" = yes; then
18474 # Warning - without using the other runtime loading flags (-brtl),
18475 # -berok will link without error, but may produce a broken library.
18476 allow_undefined_flag_CXX='-berok'
18477 # Determine the default libpath from the value encoded in an empty executable.
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (ac_try="$ac_link"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_link") 2>conftest.er1
18502 grep -v '^ *+' conftest.er1 >conftest.err
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest$ac_exeext'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
18528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18530 # Check for a 64-bit object if we didn't find anything.
18531 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; }
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18540 rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18544 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18546 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"
18548 if test "$host_cpu" = ia64; then
18549 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18550 allow_undefined_flag_CXX="-z nodefs"
18551 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"
18553 # Determine the default libpath from the value encoded in an empty executable.
18554 cat >conftest.$ac_ext <<_ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
18578 grep -v '^ *+' conftest.er1 >conftest.err
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } &&
18583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18584 { (case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18606 # Check for a 64-bit object if we didn't find anything.
18607 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; }
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18616 rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18620 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18621 # Warning - without using the other run time loading flags,
18622 # -berok will link without error, but may produce a broken library.
18623 no_undefined_flag_CXX=' ${wl}-bernotok'
18624 allow_undefined_flag_CXX=' ${wl}-berok'
18625 # Exported symbols can be pulled into shared objects from archives
18626 whole_archive_flag_spec_CXX='$convenience'
18627 archive_cmds_need_lc_CXX=yes
18628 # This is similar to how AIX traditionally builds its shared libraries.
18629 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'
18635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18636 allow_undefined_flag_CXX=unsupported
18637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18638 # support --undefined. This deserves some investigation. FIXME
18639 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18646 case $cc_basename in
18648 # FIXME: insert proper C++ library support
18654 cygwin* | mingw* | pw32*)
18655 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18656 # as there is no search path for DLLs.
18657 hardcode_libdir_flag_spec_CXX='-L$libdir'
18658 allow_undefined_flag_CXX=unsupported
18659 always_export_symbols_CXX=no
18660 enable_shared_with_static_runtimes_CXX=yes
18662 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18663 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'
18664 # If the export-symbols file already is a .def file (1st line
18665 # is EXPORTS), use it as is; otherwise, prepend...
18666 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18667 cp $export_symbols $output_objdir/$soname.def;
18669 echo EXPORTS > $output_objdir/$soname.def;
18670 cat $export_symbols >> $output_objdir/$soname.def;
18672 $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'
18677 darwin* | rhapsody*)
18679 rhapsody* | darwin1.[012])
18680 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18684 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18686 case ${MACOSX_DEPLOYMENT_TARGET} in
18688 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18691 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18697 archive_cmds_need_lc_CXX=no
18698 hardcode_direct_CXX=no
18699 hardcode_automatic_CXX=yes
18700 hardcode_shlibpath_var_CXX=unsupported
18701 whole_archive_flag_spec_CXX=''
18702 link_all_deplibs_CXX=yes
18704 if test "$GXX" = yes ; then
18705 lt_int_apple_cc_single_mod=no
18706 output_verbose_link_cmd='echo'
18707 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18708 lt_int_apple_cc_single_mod=yes
18710 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18711 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18713 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'
18715 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18717 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18718 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}'
18720 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}'
18722 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}'
18724 case $cc_basename in
18726 output_verbose_link_cmd='echo'
18727 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'
18728 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18729 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18730 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}'
18731 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}'
18741 case $cc_basename in
18743 # FIXME: insert proper C++ library support
18747 # Green Hills C++ Compiler
18748 # FIXME: insert proper C++ library support
18752 # FIXME: insert proper C++ library support
18758 # C++ shared libraries reported to be fairly broken before switch to ELF
18762 archive_cmds_need_lc_CXX=no
18764 freebsd* | kfreebsd*-gnu | dragonfly*)
18765 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18773 hardcode_libdir_separator_CXX=:
18774 export_dynamic_flag_spec_CXX='${wl}-E'
18775 hardcode_direct_CXX=yes
18776 hardcode_minus_L_CXX=yes # Not in the search PATH,
18777 # but as the default
18778 # location of the library.
18780 case $cc_basename in
18782 # FIXME: insert proper C++ library support
18786 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'
18787 # Commands to make compiler produce verbose output that lists
18788 # what "hidden" libraries, object files and flags are used when
18789 # linking a shared library.
18791 # There doesn't appear to be a way to prevent this compiler from
18792 # explicitly linking system object files so we need to strip them
18793 # from the output so that they don't get included in the library
18795 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'
18798 if test "$GXX" = yes; then
18799 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'
18801 # FIXME: insert proper C++ library support
18808 if test $with_gnu_ld = no; then
18809 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18810 hardcode_libdir_separator_CXX=:
18814 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18817 export_dynamic_flag_spec_CXX='${wl}-E'
18823 hardcode_direct_CXX=no
18824 hardcode_shlibpath_var_CXX=no
18827 hardcode_direct_CXX=yes
18828 hardcode_minus_L_CXX=yes # Not in the search PATH,
18829 # but as the default
18830 # location of the library.
18834 case $cc_basename in
18836 # FIXME: insert proper C++ library support
18842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18851 # Commands to make compiler produce verbose output that lists
18852 # what "hidden" libraries, object files and flags are used when
18853 # linking a shared library.
18855 # There doesn't appear to be a way to prevent this compiler from
18856 # explicitly linking system object files so we need to strip them
18857 # from the output so that they don't get included in the library
18859 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'
18862 if test "$GXX" = yes; then
18863 if test $with_gnu_ld = no; then
18866 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18872 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'
18877 # FIXME: insert proper C++ library support
18884 hardcode_direct_CXX=no
18885 hardcode_shlibpath_var_CXX=no
18886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18887 export_dynamic_flag_spec_CXX='${wl}-E'
18888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18889 # Instead, shared libraries are loaded at an image base (0x10000000 by
18890 # default) and relocated if they conflict, which is a slow very memory
18891 # consuming and fragmenting process. To avoid this, we pick a random,
18892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18894 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'
18895 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'
18898 case $cc_basename in
18901 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'
18903 # Archives containing C++ object files must be created using
18904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18905 # necessary to make sure instantiated templates are included
18907 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18910 if test "$GXX" = yes; then
18911 if test "$with_gnu_ld" = no; then
18912 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'
18914 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'
18917 link_all_deplibs_CXX=yes
18920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18921 hardcode_libdir_separator_CXX=:
18924 case $cc_basename in
18926 # Kuck and Associates, Inc. (KAI) C++ Compiler
18928 # KCC will only create a shared library if the output file
18929 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18930 # to its proper name (with version) after linking.
18931 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'
18932 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'
18933 # Commands to make compiler produce verbose output that lists
18934 # what "hidden" libraries, object files and flags are used when
18935 # linking a shared library.
18937 # There doesn't appear to be a way to prevent this compiler from
18938 # explicitly linking system object files so we need to strip them
18939 # from the output so that they don't get included in the library
18941 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'
18943 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18946 # Archives containing C++ object files must be created using
18947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18953 # version 8.0 and above of icpc choke on multiply defined symbols
18954 # if we add $predep_objects and $postdep_objects, however 7.1 and
18955 # earlier do not add the objects themselves.
18956 case `$CC -V 2>&1` in
18958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18959 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'
18961 *) # Version 8.0 or newer
18964 ia64*) tmp_idyn=' -i_dynamic';;
18966 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18967 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'
18970 archive_cmds_need_lc_CXX=no
18971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18973 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18976 # Portland Group C++ compiler
18977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18978 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'
18980 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18982 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'
18986 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18987 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'
18989 runpath_var=LD_RUN_PATH
18990 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18991 hardcode_libdir_separator_CXX=:
18993 # Commands to make compiler produce verbose output that lists
18994 # what "hidden" libraries, object files and flags are used when
18995 # linking a shared library.
18997 # There doesn't appear to be a way to prevent this compiler from
18998 # explicitly linking system object files so we need to strip them
18999 # from the output so that they don't get included in the library
19001 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'
19006 # FIXME: insert proper C++ library support
19010 # FIXME: insert proper C++ library support
19014 case $cc_basename in
19016 # FIXME: insert proper C++ library support
19020 # FIXME: insert proper C++ library support
19026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19027 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19029 hardcode_libdir_flag_spec_CXX='-R$libdir'
19030 hardcode_direct_CXX=yes
19031 hardcode_shlibpath_var_CXX=no
19033 # Workaround some broken pre-1.5 toolchains
19034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19037 # C++ shared libraries are fairly broken
19041 hardcode_direct_CXX=yes
19042 hardcode_shlibpath_var_CXX=no
19043 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19046 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19047 export_dynamic_flag_spec_CXX='${wl}-E'
19048 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19050 output_verbose_link_cmd='echo'
19053 case $cc_basename in
19055 # Kuck and Associates, Inc. (KAI) C++ Compiler
19057 # KCC will only create a shared library if the output file
19058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19059 # to its proper name (with version) after linking.
19060 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'
19062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063 hardcode_libdir_separator_CXX=:
19065 # Archives containing C++ object files must be created using
19066 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19067 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19071 # Rational C++ 2.4.1
19072 # FIXME: insert proper C++ library support
19076 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19077 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'
19079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19080 hardcode_libdir_separator_CXX=:
19082 # Commands to make compiler produce verbose output that lists
19083 # what "hidden" libraries, object files and flags are used when
19084 # linking a shared library.
19086 # There doesn't appear to be a way to prevent this compiler from
19087 # explicitly linking system object files so we need to strip them
19088 # from the output so that they don't get included in the library
19090 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'
19093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19094 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19095 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'
19097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19098 hardcode_libdir_separator_CXX=:
19100 # Commands to make compiler produce verbose output that lists
19101 # what "hidden" libraries, object files and flags are used when
19102 # linking a shared library.
19103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19106 # FIXME: insert proper C++ library support
19113 case $cc_basename in
19115 # Kuck and Associates, Inc. (KAI) C++ Compiler
19117 # KCC will only create a shared library if the output file
19118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19119 # to its proper name (with version) after linking.
19120 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'
19122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19123 hardcode_libdir_separator_CXX=:
19125 # Archives containing C++ object files must be created using
19126 # the KAI C++ compiler.
19127 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19130 # Rational C++ 2.4.1
19131 # FIXME: insert proper C++ library support
19135 allow_undefined_flag_CXX=' -expect_unresolved \*'
19136 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'
19137 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19138 echo "-hidden">> $lib.exp~
19139 $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~
19142 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19143 hardcode_libdir_separator_CXX=:
19145 # Commands to make compiler produce verbose output that lists
19146 # what "hidden" libraries, object files and flags are used when
19147 # linking a shared library.
19149 # There doesn't appear to be a way to prevent this compiler from
19150 # explicitly linking system object files so we need to strip them
19151 # from the output so that they don't get included in the library
19153 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'
19156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19158 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'
19160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19161 hardcode_libdir_separator_CXX=:
19163 # Commands to make compiler produce verbose output that lists
19164 # what "hidden" libraries, object files and flags are used when
19165 # linking a shared library.
19166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19169 # FIXME: insert proper C++ library support
19176 # FIXME: insert proper C++ library support
19180 case $cc_basename in
19183 # FIXME: insert proper C++ library support
19188 # FIXME: insert proper C++ library support
19192 # FIXME: insert proper C++ library support
19198 case $cc_basename in
19200 # Sun C++ 4.2, 5.x and Centerline C++
19201 archive_cmds_need_lc_CXX=yes
19202 no_undefined_flag_CXX=' -zdefs'
19203 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19204 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19205 $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'
19207 hardcode_libdir_flag_spec_CXX='-R$libdir'
19208 hardcode_shlibpath_var_CXX=no
19210 solaris2.[0-5] | solaris2.[0-5].*) ;;
19212 # The C++ compiler is used as linker so we must use $wl
19213 # flag to pass the commands to the underlying system
19214 # linker. We must also pass each convience library through
19215 # to the system linker between allextract/defaultextract.
19216 # The C++ compiler will combine linker options so we
19217 # cannot just pass the convience library names through
19219 # Supported since Solaris 2.6 (maybe 2.5.1?)
19220 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'
19223 link_all_deplibs_CXX=yes
19225 output_verbose_link_cmd='echo'
19227 # Archives containing C++ object files must be created using
19228 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19229 # necessary to make sure instantiated templates are included
19231 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19234 # Green Hills C++ Compiler
19235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19237 # The C++ compiler must be used to create the archive.
19238 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19241 # GNU C++ compiler with Solaris linker
19242 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19243 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19244 if $CC --version | grep -v '^2\.7' > /dev/null; then
19245 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19246 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19247 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19249 # Commands to make compiler produce verbose output that lists
19250 # what "hidden" libraries, object files and flags are used when
19251 # linking a shared library.
19252 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19254 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19256 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19258 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19260 # Commands to make compiler produce verbose output that lists
19261 # what "hidden" libraries, object files and flags are used when
19262 # linking a shared library.
19263 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19266 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19272 no_undefined_flag_CXX='${wl}-z,text'
19273 archive_cmds_need_lc_CXX=no
19274 hardcode_shlibpath_var_CXX=no
19275 runpath_var='LD_RUN_PATH'
19277 case $cc_basename in
19279 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19280 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19288 sysv5* | sco3.2v5* | sco5v6*)
19289 # Note: We can NOT use -z defs as we might desire, because we do not
19290 # link with -lc, and that would cause any symbols used from libc to
19291 # always be unresolved, which means just about no library would
19292 # ever link correctly. If we're not using GNU ld we use -z text
19293 # though, which does catch some bad symbols but isn't as heavy-handed
19295 # For security reasons, it is highly recommended that you always
19296 # use absolute paths for naming shared libraries, and exclude the
19297 # DT_RUNPATH tag from executables and libraries. But doing so
19298 # requires that you compile everything twice, which is a pain.
19299 # So that behaviour is only enabled if SCOABSPATH is set to a
19300 # non-empty value in the environment. Most likely only useful for
19301 # creating official distributions of packages.
19302 # This is a hack until libtool officially supports absolute path
19303 # names for shared libraries.
19304 no_undefined_flag_CXX='${wl}-z,text'
19305 allow_undefined_flag_CXX='${wl}-z,nodefs'
19306 archive_cmds_need_lc_CXX=no
19307 hardcode_shlibpath_var_CXX=no
19308 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19309 hardcode_libdir_separator_CXX=':'
19310 link_all_deplibs_CXX=yes
19311 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19312 runpath_var='LD_RUN_PATH'
19314 case $cc_basename in
19316 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19317 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19326 case $cc_basename in
19328 # NonStop-UX NCC 3.20
19329 # FIXME: insert proper C++ library support
19333 # FIXME: insert proper C++ library support
19339 # FIXME: insert proper C++ library support
19343 # FIXME: insert proper C++ library support
19347 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19348 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19349 test "$ld_shlibs_CXX" = no && can_build_shared=no
19355 cat > conftest.$ac_ext <<EOF
19359 Foo (void) { a = 0; }
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366 (eval $ac_compile) 2>&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; then
19370 # Parse the compiler output and extract the necessary
19371 # objects, libraries and library flags.
19373 # Sentinel used to keep track of whether or not we are before
19374 # the conftest object file.
19375 pre_test_object_deps_done=no
19377 # The `*' in the case matches for architectures that use `case' in
19378 # $output_verbose_cmd can trigger glob expansion during the loop
19379 # eval without this substitution.
19380 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19382 for p in `eval $output_verbose_link_cmd`; do
19386 # Some compilers place space between "-{L,R}" and the path.
19387 # Remove the space.
19388 if test $p = "-L" \
19389 || test $p = "-R"; then
19396 if test "$pre_test_object_deps_done" = no; then
19399 # Internal compiler library paths should come after those
19400 # provided the user. The postdeps already come after the
19401 # user supplied libs so there is no need to process them.
19402 if test -z "$compiler_lib_search_path_CXX"; then
19403 compiler_lib_search_path_CXX="${prev}${p}"
19405 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19408 # The "-l" case would never come before the object being
19409 # linked, so don't bother handling this case.
19412 if test -z "$postdeps_CXX"; then
19413 postdeps_CXX="${prev}${p}"
19415 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19421 # This assumes that the test object file only shows up
19422 # once in the compiler output.
19423 if test "$p" = "conftest.$objext"; then
19424 pre_test_object_deps_done=yes
19428 if test "$pre_test_object_deps_done" = no; then
19429 if test -z "$predep_objects_CXX"; then
19430 predep_objects_CXX="$p"
19432 predep_objects_CXX="$predep_objects_CXX $p"
19435 if test -z "$postdep_objects_CXX"; then
19436 postdep_objects_CXX="$p"
19438 postdep_objects_CXX="$postdep_objects_CXX $p"
19443 *) ;; # Ignore the rest.
19451 echo "libtool.m4: error: problem compiling CXX test program"
19454 $rm -f confest.$objext
19456 # PORTME: override above test on systems where it is broken
19459 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19460 # hack all around it, let's just trust "g++" to DTRT.
19461 predep_objects_CXX=
19462 postdep_objects_CXX=
19467 case $cc_basename in
19469 # Adding this requires a known-good setup of shared libraries for
19470 # Sun compiler versions before 5.6, else PIC objects from an old
19471 # archive will be linked into the output, leading to subtle bugs.
19472 postdeps_CXX='-lCstd -lCrun'
19479 case " $postdeps_CXX " in
19480 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19483 lt_prog_compiler_wl_CXX=
19484 lt_prog_compiler_pic_CXX=
19485 lt_prog_compiler_static_CXX=
19487 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19490 # C++ specific cases for pic, static, wl, etc.
19491 if test "$GXX" = yes; then
19492 lt_prog_compiler_wl_CXX='-Wl,'
19493 lt_prog_compiler_static_CXX='-static'
19497 # All AIX code is PIC.
19498 if test "$host_cpu" = ia64; then
19499 # AIX 5 now supports IA64 processor
19500 lt_prog_compiler_static_CXX='-Bstatic'
19504 # FIXME: we need at least 68020 code to build shared libraries, but
19505 # adding the `-m68020' flag to GCC prevents building anything better,
19507 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19509 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19510 # PIC is the default for these OSes.
19512 mingw* | os2* | pw32*)
19513 # This hack is so that the source file can tell whether it is being
19514 # built for inclusion in a dll (and should export symbols for example).
19515 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19517 darwin* | rhapsody*)
19518 # PIC is the default on this platform
19519 # Common symbols not allowed in MH_DYLIB files
19520 lt_prog_compiler_pic_CXX='-fno-common'
19523 # DJGPP does not support shared libraries at all
19524 lt_prog_compiler_pic_CXX=
19527 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19528 # Instead, we relocate shared libraries at runtime.
19531 if test -d /usr/nec; then
19532 lt_prog_compiler_pic_CXX=-Kconform_pic
19536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19537 # not for PA HP-UX.
19542 lt_prog_compiler_pic_CXX='-fPIC'
19547 lt_prog_compiler_pic_CXX='-fPIC'
19553 # All AIX code is PIC.
19554 if test "$host_cpu" = ia64; then
19555 # AIX 5 now supports IA64 processor
19556 lt_prog_compiler_static_CXX='-Bstatic'
19558 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19562 case $cc_basename in
19564 # Green Hills C++ Compiler
19565 # _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"
19570 # PIC is the default on this platform
19571 # Common symbols not allowed in MH_DYLIB files
19572 case $cc_basename in
19574 lt_prog_compiler_pic_CXX='-qnocommon'
19575 lt_prog_compiler_wl_CXX='-Wl,'
19580 case $cc_basename in
19582 lt_prog_compiler_pic_CXX='-KPIC'
19585 # Green Hills C++ Compiler
19586 lt_prog_compiler_pic_CXX='-pic'
19592 freebsd* | kfreebsd*-gnu | dragonfly*)
19593 # FreeBSD uses GNU C++
19595 hpux9* | hpux10* | hpux11*)
19596 case $cc_basename in
19598 lt_prog_compiler_wl_CXX='-Wl,'
19599 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19600 if test "$host_cpu" != ia64; then
19601 lt_prog_compiler_pic_CXX='+Z'
19605 lt_prog_compiler_wl_CXX='-Wl,'
19606 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19612 lt_prog_compiler_pic_CXX='+Z'
19621 # This is c89, which is MS Visual C++ (no shared libs)
19622 # Anyone wants to do a port?
19624 irix5* | irix6* | nonstopux*)
19625 case $cc_basename in
19627 lt_prog_compiler_wl_CXX='-Wl,'
19628 lt_prog_compiler_static_CXX='-non_shared'
19629 # CC pic flag -KPIC is the default.
19636 case $cc_basename in
19639 lt_prog_compiler_wl_CXX='--backend -Wl,'
19640 lt_prog_compiler_pic_CXX='-fPIC'
19644 lt_prog_compiler_wl_CXX='-Wl,'
19645 lt_prog_compiler_pic_CXX='-KPIC'
19646 lt_prog_compiler_static_CXX='-static'
19649 # Portland Group C++ compiler.
19650 lt_prog_compiler_wl_CXX='-Wl,'
19651 lt_prog_compiler_pic_CXX='-fpic'
19652 lt_prog_compiler_static_CXX='-Bstatic'
19656 # Make sure the PIC flag is empty. It appears that all Alpha
19657 # Linux and Compaq Tru64 Unix objects are PIC.
19658 lt_prog_compiler_pic_CXX=
19659 lt_prog_compiler_static_CXX='-non_shared'
19670 case $cc_basename in
19672 lt_prog_compiler_pic_CXX='-W c,exportall'
19680 osf3* | osf4* | osf5*)
19681 case $cc_basename in
19683 lt_prog_compiler_wl_CXX='--backend -Wl,'
19686 # Rational C++ 2.4.1
19687 lt_prog_compiler_pic_CXX='-pic'
19690 # Digital/Compaq C++
19691 lt_prog_compiler_wl_CXX='-Wl,'
19692 # Make sure the PIC flag is empty. It appears that all Alpha
19693 # Linux and Compaq Tru64 Unix objects are PIC.
19694 lt_prog_compiler_pic_CXX=
19695 lt_prog_compiler_static_CXX='-non_shared'
19704 case $cc_basename in
19706 # Sun C++ 4.2, 5.x and Centerline C++
19707 lt_prog_compiler_pic_CXX='-KPIC'
19708 lt_prog_compiler_static_CXX='-Bstatic'
19709 lt_prog_compiler_wl_CXX='-Qoption ld '
19712 # Green Hills C++ Compiler
19713 lt_prog_compiler_pic_CXX='-PIC'
19720 case $cc_basename in
19723 lt_prog_compiler_pic_CXX='-pic'
19724 lt_prog_compiler_static_CXX='-Bstatic'
19728 lt_prog_compiler_pic_CXX='-pic'
19735 case $cc_basename in
19737 # NonStop-UX NCC 3.20
19738 lt_prog_compiler_pic_CXX='-KPIC'
19744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19745 case $cc_basename in
19747 lt_prog_compiler_wl_CXX='-Wl,'
19748 lt_prog_compiler_pic_CXX='-KPIC'
19749 lt_prog_compiler_static_CXX='-Bstatic'
19756 lt_prog_compiler_can_build_shared_CXX=no
19761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19765 # Check to make sure the PIC flag actually works.
19767 if test -n "$lt_prog_compiler_pic_CXX"; then
19769 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19770 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19771 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 lt_prog_compiler_pic_works_CXX=no
19775 ac_outfile=conftest.$ac_objext
19776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19777 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19778 # Insert the option either (1) after the last *FLAGS variable, or
19779 # (2) before a word containing "conftest.", or (3) at the end.
19780 # Note that $ac_compile itself does not contain backslashes and begins
19781 # with a dollar sign (not a hyphen), so the echo should work correctly.
19782 # The option is referenced via a variable to avoid confusing sed.
19783 lt_compile=`echo "$ac_compile" | $SED \
19784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19786 -e 's:$: $lt_compiler_flag:'`
19787 (eval echo "\"\$as_me:19787: $lt_compile\"" >&5)
19788 (eval "$lt_compile" 2>conftest.err)
19790 cat conftest.err >&5
19791 echo "$as_me:19791: \$? = $ac_status" >&5
19792 if (exit $ac_status) && test -s "$ac_outfile"; then
19793 # The compiler can only warn and ignore the option if not recognized
19794 # So say no if there are warnings other than the usual output.
19795 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19798 lt_prog_compiler_pic_works_CXX=yes
19804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19805 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19807 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19808 case $lt_prog_compiler_pic_CXX in
19810 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19813 lt_prog_compiler_pic_CXX=
19814 lt_prog_compiler_can_build_shared_CXX=no
19819 # For platforms which do not support PIC, -DPIC is meaningless:
19821 lt_prog_compiler_pic_CXX=
19824 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19829 # Check to make sure the static flag actually works.
19831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19832 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19834 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 lt_prog_compiler_static_works_CXX=no
19838 save_LDFLAGS="$LDFLAGS"
19839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19840 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19842 # The linker can only warn and ignore the option if not recognized
19843 # So say no if there are warnings
19844 if test -s conftest.err; then
19845 # Append any errors to the config.log.
19846 cat conftest.err 1>&5
19847 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19849 if diff conftest.exp conftest.er2 >/dev/null; then
19850 lt_prog_compiler_static_works_CXX=yes
19853 lt_prog_compiler_static_works_CXX=yes
19857 LDFLAGS="$save_LDFLAGS"
19860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19861 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19863 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19866 lt_prog_compiler_static_CXX=
19870 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19872 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 lt_cv_prog_compiler_c_o_CXX=no
19876 $rm -r conftest 2>/dev/null
19880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19882 lt_compiler_flag="-o out/conftest2.$ac_objext"
19883 # Insert the option either (1) after the last *FLAGS variable, or
19884 # (2) before a word containing "conftest.", or (3) at the end.
19885 # Note that $ac_compile itself does not contain backslashes and begins
19886 # with a dollar sign (not a hyphen), so the echo should work correctly.
19887 lt_compile=`echo "$ac_compile" | $SED \
19888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19890 -e 's:$: $lt_compiler_flag:'`
19891 (eval echo "\"\$as_me:19891: $lt_compile\"" >&5)
19892 (eval "$lt_compile" 2>out/conftest.err)
19894 cat out/conftest.err >&5
19895 echo "$as_me:19895: \$? = $ac_status" >&5
19896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19898 # The compiler can only warn and ignore the option if not recognized
19899 # So say no if there are warnings
19900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19903 lt_cv_prog_compiler_c_o_CXX=yes
19908 # SGI C++ compiler will create directory out/ii_files/ for
19909 # template instantiation
19910 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19911 $rm out/* && rmdir out
19917 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19921 hard_links="nottested"
19922 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19923 # do not overwrite the value of need_locks provided by the user
19924 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19925 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19930 ln conftest.a conftest.b 2>&5 || hard_links=no
19931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19932 { echo "$as_me:$LINENO: result: $hard_links" >&5
19933 echo "${ECHO_T}$hard_links" >&6; }
19934 if test "$hard_links" = no; then
19935 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19936 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19943 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19949 # If we're using GNU nm, then we don't want the "-C" option.
19950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19951 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19952 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'
19954 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'
19958 export_symbols_cmds_CXX="$ltdll_cmds"
19961 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'
19964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19968 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19969 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19970 test "$ld_shlibs_CXX" = no && can_build_shared=no
19973 # Do we need to explicitly link libc?
19975 case "x$archive_cmds_need_lc_CXX" in
19977 # Assume -lc should be added
19978 archive_cmds_need_lc_CXX=yes
19980 if test "$enable_shared" = yes && test "$GCC" = yes; then
19981 case $archive_cmds_CXX in
19983 # FIXME: we may have to deal with multi-command sequences.
19986 # Test whether the compiler implicitly links with -lc since on some
19987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19988 # to ld, don't add -lc before -lgcc.
19989 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995 (eval $ac_compile) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } 2>conftest.err; then
20001 libobjs=conftest.$ac_objext
20003 wl=$lt_prog_compiler_wl_CXX
20004 pic_flag=$lt_prog_compiler_pic_CXX
20010 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20011 allow_undefined_flag_CXX=
20012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20013 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }
20018 archive_cmds_need_lc_CXX=no
20020 archive_cmds_need_lc_CXX=yes
20022 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20024 cat conftest.err 1>&5
20027 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20035 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20037 library_names_spec=
20038 libname_spec='lib$name'
20042 postuninstall_cmds=
20046 shlibpath_overrides_runpath=unknown
20048 dynamic_linker="$host_os ld.so"
20049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20050 if test "$GCC" = yes; then
20051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20053 # if the path contains ";" then we assume it to be the separator
20054 # otherwise default to the standard path separator (i.e. ":") - it is
20055 # assumed that no part of a normal pathname contains ";" but that should
20056 # okay in the real world where ";" in dirpaths is itself problematic.
20057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20064 need_lib_prefix=unknown
20065 hardcode_into_libs=no
20067 # when you set need_version to no, make sure it does not cause -set_version
20068 # flags to be left without arguments
20069 need_version=unknown
20074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20075 shlibpath_var=LIBPATH
20077 # AIX 3 has no versioning support, so we append a major version to the name.
20078 soname_spec='${libname}${release}${shared_ext}$major'
20085 hardcode_into_libs=yes
20086 if test "$host_cpu" = ia64; then
20087 # AIX 5 supports IA64
20088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20089 shlibpath_var=LD_LIBRARY_PATH
20091 # With GCC up to 2.95.x, collect2 would create an import file
20092 # for dependence libraries. The import file would start with
20093 # the line `#! .'. This would cause the generated library to
20094 # depend on `.', always an invalid library. This was fixed in
20095 # development snapshots of GCC prior to 3.0.
20097 aix4 | aix4.[01] | aix4.[01].*)
20098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20100 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20103 can_build_shared=no
20107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20108 # soname into executable. Probably we can add versioning support to
20109 # collect2, so additional links can be useful in future.
20110 if test "$aix_use_runtimelinking" = yes; then
20111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20112 # instead of lib<name>.a to let people know that these are not
20113 # typical AIX shared libraries.
20114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20116 # We preserve .a as extension for shared libraries through AIX4.2
20117 # and later when we are not doing run time linking.
20118 library_names_spec='${libname}${release}.a $libname.a'
20119 soname_spec='${libname}${release}${shared_ext}$major'
20121 shlibpath_var=LIBPATH
20126 library_names_spec='$libname.ixlibrary $libname.a'
20127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20128 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'
20132 library_names_spec='${libname}${shared_ext}'
20133 dynamic_linker="$host_os ld.so"
20134 shlibpath_var=LIBRARY_PATH
20140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20141 soname_spec='${libname}${release}${shared_ext}$major'
20142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20143 shlibpath_var=LD_LIBRARY_PATH
20144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20146 # the default ld.so.conf also contains /usr/contrib/lib and
20147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20148 # libtool to hard-code these into programs
20151 cygwin* | mingw* | pw32*)
20152 version_type=windows
20157 case $GCC,$host_os in
20158 yes,cygwin* | yes,mingw* | yes,pw32*)
20159 library_names_spec='$libname.dll.a'
20160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20161 postinstall_cmds='base_file=`basename \${file}`~
20162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20163 dldir=$destdir/`dirname \$dlpath`~
20164 test -d \$dldir || mkdir -p \$dldir~
20165 $install_prog $dir/$dlname \$dldir/$dlname~
20166 chmod a+x \$dldir/$dlname'
20167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20168 dlpath=$dir/\$dldll~
20170 shlibpath_overrides_runpath=yes
20174 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20175 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20176 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20179 # MinGW DLLs use traditional 'lib' prefix
20180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20182 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20183 # It is most probably a Windows format PATH printed by
20184 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20185 # path with ; separators, and with drive letters. We can handle the
20186 # drive letters (cygwin fileutils understands them), so leave them,
20187 # especially as we might pass files found there to a mingw objdump,
20188 # which wouldn't understand a cygwinified path. Ahh.
20189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20195 # pw32 DLLs use 'pw' prefix rather than 'lib'
20196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20205 dynamic_linker='Win32 ld.exe'
20206 # FIXME: first we should search . and the directory the executable is in
20210 darwin* | rhapsody*)
20211 dynamic_linker="$host_os dyld"
20212 version_type=darwin
20215 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20216 soname_spec='${libname}${release}${major}$shared_ext'
20217 shlibpath_overrides_runpath=yes
20218 shlibpath_var=DYLD_LIBRARY_PATH
20219 shrext_cmds='.dylib'
20220 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20221 if test "$GCC" = yes; then
20222 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"`
20224 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 shlibpath_var=LD_LIBRARY_PATH
20246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 shlibpath_var=LD_LIBRARY_PATH
20249 shlibpath_overrides_runpath=no
20250 hardcode_into_libs=yes
20251 dynamic_linker='GNU ld.so'
20254 freebsd* | dragonfly*)
20255 # DragonFly does not have aout. When/if they implement a new
20256 # versioning mechanism, adjust this.
20257 if test -x /usr/bin/objformat; then
20258 objformat=`/usr/bin/objformat`
20261 freebsd[123]*) objformat=aout ;;
20262 *) objformat=elf ;;
20265 version_type=freebsd-$objformat
20266 case $version_type in
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20277 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20282 freebsd3.[01]* | freebsdelf3.[01]*)
20283 shlibpath_overrides_runpath=yes
20284 hardcode_into_libs=yes
20286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20288 shlibpath_overrides_runpath=no
20289 hardcode_into_libs=yes
20291 freebsd*) # from 4.6 on
20292 shlibpath_overrides_runpath=yes
20293 hardcode_into_libs=yes
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 hardcode_into_libs=yes
20308 hpux9* | hpux10* | hpux11*)
20309 # Give a soname corresponding to the major version so that dld.sl refuses to
20310 # link against other versions.
20317 hardcode_into_libs=yes
20318 dynamic_linker="$host_os dld.so"
20319 shlibpath_var=LD_LIBRARY_PATH
20320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 soname_spec='${libname}${release}${shared_ext}$major'
20323 if test "X$HPUX_IA64_MODE" = X32; then
20324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20332 hardcode_into_libs=yes
20333 dynamic_linker="$host_os dld.sl"
20334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20343 dynamic_linker="$host_os dld.sl"
20344 shlibpath_var=SHLIB_PATH
20345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 soname_spec='${libname}${release}${shared_ext}$major'
20350 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20351 postinstall_cmds='chmod 555 $lib'
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20361 shlibpath_var=LD_LIBRARY_PATH
20362 shlibpath_overrides_runpath=no
20363 hardcode_into_libs=yes
20366 irix5* | irix6* | nonstopux*)
20368 nonstopux*) version_type=nonstopux ;;
20370 if test "$lt_cv_prog_gnu_ld" = yes; then
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20381 irix5* | nonstopux*)
20382 libsuff= shlibsuff=
20385 case $LD in # libtool.m4 will add one of these switches to LD
20386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20387 libsuff= shlibsuff= libmagic=32-bit;;
20388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20389 libsuff=32 shlibsuff=N32 libmagic=N32;;
20390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20392 *) libsuff= shlibsuff= libmagic=never-match;;
20396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20397 shlibpath_overrides_runpath=no
20398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20400 hardcode_into_libs=yes
20403 # No shared lib support for Linux oldld, aout, or coff.
20404 linux*oldld* | linux*aout* | linux*coff*)
20408 # This must be Linux ELF.
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 shlibpath_overrides_runpath=no
20418 # This implies no fast_install, which is unacceptable.
20419 # Some rework will be needed to allow for fast_install
20420 # before this can be enabled.
20421 hardcode_into_libs=yes
20423 # Append ld.so.conf contents to the search path
20424 if test -f /etc/ld.so.conf; then
20425 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' ' '`
20426 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20429 # We used to test for /lib/ld.so.1 and disable shared libraries on
20430 # powerpc, because MkLinux only supported shared libraries with the
20431 # GNU dynamic linker. Since this was broken with cross compilers,
20432 # most powerpc-linux boxes support dynamic linking these days and
20433 # people can always --disable-shared, the test was removed, and we
20434 # assume the GNU/Linux dynamic linker is in use.
20435 dynamic_linker='GNU/Linux ld.so'
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20443 soname_spec='${libname}${release}${shared_ext}$major'
20444 shlibpath_var=LD_LIBRARY_PATH
20445 shlibpath_overrides_runpath=no
20446 hardcode_into_libs=yes
20447 dynamic_linker='GNU ld.so'
20454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20457 dynamic_linker='NetBSD (a.out) ld.so'
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20460 soname_spec='${libname}${release}${shared_ext}$major'
20461 dynamic_linker='NetBSD ld.elf_so'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 hardcode_into_libs=yes
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471 shlibpath_var=LD_LIBRARY_PATH
20472 shlibpath_overrides_runpath=yes
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 soname_spec='${libname}${release}${shared_ext}$major'
20481 shlibpath_var=LD_LIBRARY_PATH
20482 shlibpath_overrides_runpath=yes
20487 sys_lib_dlsearch_path_spec="/usr/lib"
20489 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20491 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20492 *) need_version=no ;;
20494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20496 shlibpath_var=LD_LIBRARY_PATH
20497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20499 openbsd2.[89] | openbsd2.[89].*)
20500 shlibpath_overrides_runpath=no
20503 shlibpath_overrides_runpath=yes
20507 shlibpath_overrides_runpath=yes
20512 libname_spec='$name'
20515 library_names_spec='$libname${shared_ext} $libname.a'
20516 dynamic_linker='OS/2 ld.exe'
20517 shlibpath_var=LIBPATH
20520 osf3* | osf4* | osf5*)
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 shlibpath_var=LD_LIBRARY_PATH
20527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536 soname_spec='${libname}${release}${shared_ext}$major'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 shlibpath_overrides_runpath=yes
20539 hardcode_into_libs=yes
20540 # ldd complains unless libraries are executable
20541 postinstall_cmds='chmod +x $lib'
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20547 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20548 shlibpath_var=LD_LIBRARY_PATH
20549 shlibpath_overrides_runpath=yes
20550 if test "$with_gnu_ld" = yes; then
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 soname_spec='${libname}${release}${shared_ext}$major'
20560 shlibpath_var=LD_LIBRARY_PATH
20561 case $host_vendor in
20563 shlibpath_overrides_runpath=no
20565 export_dynamic_flag_spec='${wl}-Blargedynsym'
20566 runpath_var=LD_RUN_PATH
20574 shlibpath_overrides_runpath=no
20575 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20581 if test -d /usr/nec ;then
20583 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20584 soname_spec='$libname${shared_ext}.$major'
20585 shlibpath_var=LD_LIBRARY_PATH
20589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20590 version_type=freebsd-elf
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 shlibpath_var=LD_LIBRARY_PATH
20596 hardcode_into_libs=yes
20597 if test "$with_gnu_ld" = yes; then
20598 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20599 shlibpath_overrides_runpath=no
20601 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20602 shlibpath_overrides_runpath=yes
20605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20609 sys_lib_dlsearch_path_spec='/usr/lib'
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 shlibpath_var=LD_LIBRARY_PATH
20623 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20624 echo "${ECHO_T}$dynamic_linker" >&6; }
20625 test "$dynamic_linker" = no && can_build_shared=no
20627 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20628 if test "$GCC" = yes; then
20629 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20632 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20633 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20634 hardcode_action_CXX=
20635 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20636 test -n "$runpath_var_CXX" || \
20637 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20639 # We can hardcode non-existant directories.
20640 if test "$hardcode_direct_CXX" != no &&
20641 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20642 # have to relink, otherwise we might link with an installed library
20643 # when we should be linking with a yet-to-be-installed one
20644 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20645 test "$hardcode_minus_L_CXX" != no; then
20646 # Linking always hardcodes the temporary library directory.
20647 hardcode_action_CXX=relink
20649 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20650 hardcode_action_CXX=immediate
20653 # We cannot hardcode anything, or else we can only hardcode existing
20655 hardcode_action_CXX=unsupported
20657 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20658 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20660 if test "$hardcode_action_CXX" = relink; then
20661 # Fast installation is not supported
20662 enable_fast_install=no
20663 elif test "$shlibpath_overrides_runpath" = yes ||
20664 test "$enable_shared" = no; then
20665 # Fast installation is not necessary
20666 enable_fast_install=needless
20670 # The else clause should only fire when bootstrapping the
20671 # libtool distribution, otherwise you forgot to ship ltmain.sh
20672 # with your package, and you will get complaints that there are
20673 # no rules to generate ltmain.sh.
20674 if test -f "$ltmain"; then
20675 # See if we are running on zsh, and set the options which allow our commands through
20676 # without removal of \ escapes.
20677 if test -n "${ZSH_VERSION+set}" ; then
20678 setopt NO_GLOB_SUBST
20680 # Now quote all the things that may contain metacharacters while being
20681 # careful not to overquote the AC_SUBSTed values. We take copies of the
20682 # variables and quote the copies for generation of the libtool script.
20683 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20685 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687 deplibs_check_method reload_flag reload_cmds need_locks \
20688 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689 lt_cv_sys_global_symbol_to_c_name_address \
20690 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691 old_postinstall_cmds old_postuninstall_cmds \
20695 lt_prog_compiler_wl_CXX \
20696 lt_prog_compiler_pic_CXX \
20697 lt_prog_compiler_static_CXX \
20698 lt_prog_compiler_no_builtin_flag_CXX \
20699 export_dynamic_flag_spec_CXX \
20700 thread_safe_flag_spec_CXX \
20701 whole_archive_flag_spec_CXX \
20702 enable_shared_with_static_runtimes_CXX \
20703 old_archive_cmds_CXX \
20704 old_archive_from_new_cmds_CXX \
20705 predep_objects_CXX \
20706 postdep_objects_CXX \
20709 compiler_lib_search_path_CXX \
20711 archive_expsym_cmds_CXX \
20712 postinstall_cmds_CXX \
20713 postuninstall_cmds_CXX \
20714 old_archive_from_expsyms_cmds_CXX \
20715 allow_undefined_flag_CXX \
20716 no_undefined_flag_CXX \
20717 export_symbols_cmds_CXX \
20718 hardcode_libdir_flag_spec_CXX \
20719 hardcode_libdir_flag_spec_ld_CXX \
20720 hardcode_libdir_separator_CXX \
20721 hardcode_automatic_CXX \
20723 module_expsym_cmds_CXX \
20724 lt_cv_prog_compiler_c_o_CXX \
20725 exclude_expsyms_CXX \
20726 include_expsyms_CXX; do
20729 old_archive_cmds_CXX | \
20730 old_archive_from_new_cmds_CXX | \
20731 archive_cmds_CXX | \
20732 archive_expsym_cmds_CXX | \
20733 module_cmds_CXX | \
20734 module_expsym_cmds_CXX | \
20735 old_archive_from_expsyms_cmds_CXX | \
20736 export_symbols_cmds_CXX | \
20737 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738 postinstall_cmds | postuninstall_cmds | \
20739 old_postinstall_cmds | old_postuninstall_cmds | \
20740 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741 # Double-quote double-evaled strings.
20742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20751 *'\$0 --fallback-echo"')
20752 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20758 cat <<__EOF__ >> "$cfgfile"
20759 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20763 # Shell to use when invoking shell scripts.
20766 # Whether or not to build shared libraries.
20767 build_libtool_libs=$enable_shared
20769 # Whether or not to build static libraries.
20770 build_old_libs=$enable_static
20772 # Whether or not to add -lc for building shared libraries.
20773 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20775 # Whether or not to disallow shared libs when runtime libs are static
20776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20778 # Whether or not to optimize for fast installation.
20779 fast_install=$enable_fast_install
20782 host_alias=$host_alias
20786 # The build system.
20787 build_alias=$build_alias
20791 # An echo program that does not interpret backslashes.
20796 AR_FLAGS=$lt_AR_FLAGS
20801 # LTCC compiler flags.
20802 LTCFLAGS=$lt_LTCFLAGS
20804 # A language-specific compiler.
20805 CC=$lt_compiler_CXX
20807 # Is the compiler the GNU C compiler?
20813 # The linker used to build libraries.
20816 # Whether we need hard or soft links.
20819 # A BSD-compatible nm program.
20822 # A symbol stripping program
20825 # Used to examine libraries when file_magic_cmd begins "file"
20826 MAGIC_CMD=$MAGIC_CMD
20828 # Used on cygwin: DLL creation program.
20831 # Used on cygwin: object dumper.
20834 # Used on cygwin: assembler.
20837 # The name of the directory that contains temporary libtool files.
20840 # How to create reloadable object files.
20841 reload_flag=$lt_reload_flag
20842 reload_cmds=$lt_reload_cmds
20844 # How to pass a linker flag through the compiler.
20845 wl=$lt_lt_prog_compiler_wl_CXX
20847 # Object file suffix (normally "o").
20848 objext="$ac_objext"
20850 # Old archive suffix (normally "a").
20853 # Shared library suffix (normally ".so").
20854 shrext_cmds='$shrext_cmds'
20856 # Executable file suffix (normally "").
20859 # Additional compiler flags for building library objects.
20860 pic_flag=$lt_lt_prog_compiler_pic_CXX
20863 # What is the maximum length of a command?
20864 max_cmd_len=$lt_cv_sys_max_cmd_len
20866 # Does compiler simultaneously support -c and -o options?
20867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20869 # Must we lock files when doing compilation?
20870 need_locks=$lt_need_locks
20872 # Do we need the lib prefix for modules?
20873 need_lib_prefix=$need_lib_prefix
20875 # Do we need a version for libraries?
20876 need_version=$need_version
20878 # Whether dlopen is supported.
20879 dlopen_support=$enable_dlopen
20881 # Whether dlopen of programs is supported.
20882 dlopen_self=$enable_dlopen_self
20884 # Whether dlopen of statically linked programs is supported.
20885 dlopen_self_static=$enable_dlopen_self_static
20887 # Compiler flag to prevent dynamic linking.
20888 link_static_flag=$lt_lt_prog_compiler_static_CXX
20890 # Compiler flag to turn off builtin functions.
20891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20893 # Compiler flag to allow reflexive dlopens.
20894 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20896 # Compiler flag to generate shared objects directly from archives.
20897 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20899 # Compiler flag to generate thread-safe objects.
20900 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20902 # Library versioning type.
20903 version_type=$version_type
20905 # Format of library name prefix.
20906 libname_spec=$lt_libname_spec
20908 # List of archive names. First name is the real one, the rest are links.
20909 # The last name is the one that the linker finds with -lNAME.
20910 library_names_spec=$lt_library_names_spec
20912 # The coded name of the library, if different from the real name.
20913 soname_spec=$lt_soname_spec
20915 # Commands used to build and install an old-style archive.
20917 old_archive_cmds=$lt_old_archive_cmds_CXX
20918 old_postinstall_cmds=$lt_old_postinstall_cmds
20919 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20921 # Create an old-style archive from a shared archive.
20922 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20924 # Create a temporary old-style archive to link instead of a shared archive.
20925 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20927 # Commands used to build and install a shared archive.
20928 archive_cmds=$lt_archive_cmds_CXX
20929 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20930 postinstall_cmds=$lt_postinstall_cmds
20931 postuninstall_cmds=$lt_postuninstall_cmds
20933 # Commands used to build a loadable module (assumed same as above if empty)
20934 module_cmds=$lt_module_cmds_CXX
20935 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20937 # Commands to strip libraries.
20938 old_striplib=$lt_old_striplib
20939 striplib=$lt_striplib
20941 # Dependencies to place before the objects being linked to create a
20943 predep_objects=$lt_predep_objects_CXX
20945 # Dependencies to place after the objects being linked to create a
20947 postdep_objects=$lt_postdep_objects_CXX
20949 # Dependencies to place before the objects being linked to create a
20951 predeps=$lt_predeps_CXX
20953 # Dependencies to place after the objects being linked to create a
20955 postdeps=$lt_postdeps_CXX
20957 # The library search path used internally by the compiler when linking
20958 # a shared library.
20959 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20961 # Method to check whether dependent libraries are shared objects.
20962 deplibs_check_method=$lt_deplibs_check_method
20964 # Command to use when deplibs_check_method == file_magic.
20965 file_magic_cmd=$lt_file_magic_cmd
20967 # Flag that allows shared libraries with undefined symbols to be built.
20968 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20970 # Flag that forces no undefined symbols.
20971 no_undefined_flag=$lt_no_undefined_flag_CXX
20973 # Commands used to finish a libtool library installation in a directory.
20974 finish_cmds=$lt_finish_cmds
20976 # Same as above, but a single script fragment to be evaled but not shown.
20977 finish_eval=$lt_finish_eval
20979 # Take the output of nm and produce a listing of raw symbols and C names.
20980 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20982 # Transform the output of nm in a proper C declaration
20983 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20985 # Transform the output of nm in a C name address pair
20986 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20988 # This is the shared library runtime path variable.
20989 runpath_var=$runpath_var
20991 # This is the shared library path variable.
20992 shlibpath_var=$shlibpath_var
20994 # Is shlibpath searched before the hard-coded library search path?
20995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20997 # How to hardcode a shared library path into an executable.
20998 hardcode_action=$hardcode_action_CXX
21000 # Whether we should hardcode library paths into libraries.
21001 hardcode_into_libs=$hardcode_into_libs
21003 # Flag to hardcode \$libdir into a binary during linking.
21004 # This must work even if \$libdir does not exist.
21005 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21007 # If ld is used when linking, flag to hardcode \$libdir into
21008 # a binary during linking. This must work even if \$libdir does
21010 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21012 # Whether we need a single -rpath flag with a separated argument.
21013 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21015 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21016 # resulting binary.
21017 hardcode_direct=$hardcode_direct_CXX
21019 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21020 # resulting binary.
21021 hardcode_minus_L=$hardcode_minus_L_CXX
21023 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21024 # the resulting binary.
21025 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21027 # Set to yes if building a shared library automatically hardcodes DIR into the library
21028 # and all subsequent libraries and executables linked against it.
21029 hardcode_automatic=$hardcode_automatic_CXX
21031 # Variables whose values should be saved in libtool wrapper scripts and
21032 # restored at relink time.
21033 variables_saved_for_relink="$variables_saved_for_relink"
21035 # Whether libtool must link a program against all its dependency libraries.
21036 link_all_deplibs=$link_all_deplibs_CXX
21038 # Compile-time system search path for libraries
21039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21041 # Run-time system search path for libraries
21042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21044 # Fix the shell variable \$srcfile for the compiler.
21045 fix_srcfile_path="$fix_srcfile_path_CXX"
21047 # Set to yes if exported symbols are required.
21048 always_export_symbols=$always_export_symbols_CXX
21050 # The commands to list exported symbols.
21051 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21053 # The commands to extract the exported symbol list from a shared archive.
21054 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21056 # Symbols that should not be listed in the preloaded symbols.
21057 exclude_expsyms=$lt_exclude_expsyms_CXX
21059 # Symbols that must always be exported.
21060 include_expsyms=$lt_include_expsyms_CXX
21062 # ### END LIBTOOL TAG CONFIG: $tagname
21068 # If there is no Makefile yet, we rely on a make rule to execute
21069 # `config.status --recheck' to rerun these tests and create the
21070 # libtool script then.
21071 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21072 if test -f "$ltmain_in"; then
21073 test -f Makefile && make "$ltmain"
21079 ac_cpp='$CPP $CPPFLAGS'
21080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21088 with_gnu_ldcxx=$with_gnu_ld
21089 with_gnu_ld=$lt_save_with_gnu_ld
21090 lt_cv_path_LDCXX=$lt_cv_path_LD
21091 lt_cv_path_LD=$lt_save_path_LD
21092 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21093 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21101 if test -n "$F77" && test "X$F77" != "Xno"; then
21104 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21105 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21109 archive_cmds_need_lc_F77=no
21110 allow_undefined_flag_F77=
21111 always_export_symbols_F77=no
21112 archive_expsym_cmds_F77=
21113 export_dynamic_flag_spec_F77=
21114 hardcode_direct_F77=no
21115 hardcode_libdir_flag_spec_F77=
21116 hardcode_libdir_flag_spec_ld_F77=
21117 hardcode_libdir_separator_F77=
21118 hardcode_minus_L_F77=no
21119 hardcode_automatic_F77=no
21121 module_expsym_cmds_F77=
21122 link_all_deplibs_F77=unknown
21123 old_archive_cmds_F77=$old_archive_cmds
21124 no_undefined_flag_F77=
21125 whole_archive_flag_spec_F77=
21126 enable_shared_with_static_runtimes_F77=no
21128 # Source file extension for f77 test sources.
21131 # Object file extension for compiled f77 test sources.
21135 # Code to be used in simple compile tests
21136 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21138 # Code to be used in simple link tests
21139 lt_simple_link_test_code=" program t\n end\n"
21141 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21143 # If no C compiler was specified, use CC.
21146 # If no C compiler flags were specified, use CFLAGS.
21147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21149 # Allow CC to be a program name with arguments.
21153 # save warnings/boilerplate of simple test code
21154 ac_outfile=conftest.$ac_objext
21155 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21156 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21157 _lt_compiler_boilerplate=`cat conftest.err`
21160 ac_outfile=conftest.$ac_objext
21161 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21162 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21163 _lt_linker_boilerplate=`cat conftest.err`
21167 # Allow CC to be a program name with arguments.
21172 for cc_temp in $compiler""; do
21174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21180 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21183 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21184 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21185 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21186 echo "${ECHO_T}$can_build_shared" >&6; }
21188 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21189 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21190 test "$can_build_shared" = "no" && enable_shared=no
21192 # On AIX, shared libraries and static libraries use the same namespace, and
21193 # are all built from PIC.
21196 test "$enable_shared" = yes && enable_static=no
21197 if test -n "$RANLIB"; then
21198 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21199 postinstall_cmds='$RANLIB $lib'
21203 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21204 test "$enable_shared" = yes && enable_static=no
21208 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21209 echo "${ECHO_T}$enable_shared" >&6; }
21211 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21212 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21213 # Make sure either enable_shared or enable_static is yes.
21214 test "$enable_shared" = yes || enable_static=yes
21215 { echo "$as_me:$LINENO: result: $enable_static" >&5
21216 echo "${ECHO_T}$enable_static" >&6; }
21221 lt_prog_compiler_wl_F77=
21222 lt_prog_compiler_pic_F77=
21223 lt_prog_compiler_static_F77=
21225 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21226 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21228 if test "$GCC" = yes; then
21229 lt_prog_compiler_wl_F77='-Wl,'
21230 lt_prog_compiler_static_F77='-static'
21234 # All AIX code is PIC.
21235 if test "$host_cpu" = ia64; then
21236 # AIX 5 now supports IA64 processor
21237 lt_prog_compiler_static_F77='-Bstatic'
21242 # FIXME: we need at least 68020 code to build shared libraries, but
21243 # adding the `-m68020' flag to GCC prevents building anything better,
21245 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21248 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21249 # PIC is the default for these OSes.
21252 mingw* | pw32* | os2*)
21253 # This hack is so that the source file can tell whether it is being
21254 # built for inclusion in a dll (and should export symbols for example).
21255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21258 darwin* | rhapsody*)
21259 # PIC is the default on this platform
21260 # Common symbols not allowed in MH_DYLIB files
21261 lt_prog_compiler_pic_F77='-fno-common'
21265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21266 # Instead, we relocate shared libraries at runtime.
21270 # Just because we use GCC doesn't mean we suddenly get shared libraries
21271 # on systems that don't support them.
21272 lt_prog_compiler_can_build_shared_F77=no
21277 if test -d /usr/nec; then
21278 lt_prog_compiler_pic_F77=-Kconform_pic
21283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21284 # not for PA HP-UX.
21290 lt_prog_compiler_pic_F77='-fPIC'
21296 lt_prog_compiler_pic_F77='-fPIC'
21300 # PORTME Check for flag to pass linker flags through the system compiler.
21303 lt_prog_compiler_wl_F77='-Wl,'
21304 if test "$host_cpu" = ia64; then
21305 # AIX 5 now supports IA64 processor
21306 lt_prog_compiler_static_F77='-Bstatic'
21308 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21312 # PIC is the default on this platform
21313 # Common symbols not allowed in MH_DYLIB files
21314 case $cc_basename in
21316 lt_prog_compiler_pic_F77='-qnocommon'
21317 lt_prog_compiler_wl_F77='-Wl,'
21322 mingw* | pw32* | os2*)
21323 # This hack is so that the source file can tell whether it is being
21324 # built for inclusion in a dll (and should export symbols for example).
21325 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21328 hpux9* | hpux10* | hpux11*)
21329 lt_prog_compiler_wl_F77='-Wl,'
21330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21331 # not for PA HP-UX.
21337 lt_prog_compiler_pic_F77='+Z'
21340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21341 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21344 irix5* | irix6* | nonstopux*)
21345 lt_prog_compiler_wl_F77='-Wl,'
21346 # PIC (with -KPIC) is the default.
21347 lt_prog_compiler_static_F77='-non_shared'
21351 lt_prog_compiler_pic_F77='-KPIC'
21352 lt_prog_compiler_static_F77='-Bstatic'
21356 case $cc_basename in
21358 lt_prog_compiler_wl_F77='-Wl,'
21359 lt_prog_compiler_pic_F77='-KPIC'
21360 lt_prog_compiler_static_F77='-static'
21362 pgcc* | pgf77* | pgf90* | pgf95*)
21363 # Portland Group compilers (*not* the Pentium gcc compiler,
21364 # which looks to be a dead project)
21365 lt_prog_compiler_wl_F77='-Wl,'
21366 lt_prog_compiler_pic_F77='-fpic'
21367 lt_prog_compiler_static_F77='-Bstatic'
21370 lt_prog_compiler_wl_F77='-Wl,'
21371 # All Alpha code is PIC.
21372 lt_prog_compiler_static_F77='-non_shared'
21377 osf3* | osf4* | osf5*)
21378 lt_prog_compiler_wl_F77='-Wl,'
21379 # All OSF/1 code is PIC.
21380 lt_prog_compiler_static_F77='-non_shared'
21384 lt_prog_compiler_pic_F77='-KPIC'
21385 lt_prog_compiler_static_F77='-Bstatic'
21386 case $cc_basename in
21387 f77* | f90* | f95*)
21388 lt_prog_compiler_wl_F77='-Qoption ld ';;
21390 lt_prog_compiler_wl_F77='-Wl,';;
21395 lt_prog_compiler_wl_F77='-Qoption ld '
21396 lt_prog_compiler_pic_F77='-PIC'
21397 lt_prog_compiler_static_F77='-Bstatic'
21400 sysv4 | sysv4.2uw2* | sysv4.3*)
21401 lt_prog_compiler_wl_F77='-Wl,'
21402 lt_prog_compiler_pic_F77='-KPIC'
21403 lt_prog_compiler_static_F77='-Bstatic'
21407 if test -d /usr/nec ;then
21408 lt_prog_compiler_pic_F77='-Kconform_pic'
21409 lt_prog_compiler_static_F77='-Bstatic'
21413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21414 lt_prog_compiler_wl_F77='-Wl,'
21415 lt_prog_compiler_pic_F77='-KPIC'
21416 lt_prog_compiler_static_F77='-Bstatic'
21420 lt_prog_compiler_wl_F77='-Wl,'
21421 lt_prog_compiler_can_build_shared_F77=no
21425 lt_prog_compiler_pic_F77='-pic'
21426 lt_prog_compiler_static_F77='-Bstatic'
21430 lt_prog_compiler_can_build_shared_F77=no
21435 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21436 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21439 # Check to make sure the PIC flag actually works.
21441 if test -n "$lt_prog_compiler_pic_F77"; then
21443 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21444 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21445 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 lt_prog_compiler_pic_works_F77=no
21449 ac_outfile=conftest.$ac_objext
21450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21451 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21452 # Insert the option either (1) after the last *FLAGS variable, or
21453 # (2) before a word containing "conftest.", or (3) at the end.
21454 # Note that $ac_compile itself does not contain backslashes and begins
21455 # with a dollar sign (not a hyphen), so the echo should work correctly.
21456 # The option is referenced via a variable to avoid confusing sed.
21457 lt_compile=`echo "$ac_compile" | $SED \
21458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21460 -e 's:$: $lt_compiler_flag:'`
21461 (eval echo "\"\$as_me:21461: $lt_compile\"" >&5)
21462 (eval "$lt_compile" 2>conftest.err)
21464 cat conftest.err >&5
21465 echo "$as_me:21465: \$? = $ac_status" >&5
21466 if (exit $ac_status) && test -s "$ac_outfile"; then
21467 # The compiler can only warn and ignore the option if not recognized
21468 # So say no if there are warnings other than the usual output.
21469 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21472 lt_prog_compiler_pic_works_F77=yes
21478 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21479 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21481 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21482 case $lt_prog_compiler_pic_F77 in
21484 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21487 lt_prog_compiler_pic_F77=
21488 lt_prog_compiler_can_build_shared_F77=no
21493 # For platforms which do not support PIC, -DPIC is meaningless:
21495 lt_prog_compiler_pic_F77=
21498 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21503 # Check to make sure the static flag actually works.
21505 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21506 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21507 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21508 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21511 lt_prog_compiler_static_works_F77=no
21512 save_LDFLAGS="$LDFLAGS"
21513 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21514 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21516 # The linker can only warn and ignore the option if not recognized
21517 # So say no if there are warnings
21518 if test -s conftest.err; then
21519 # Append any errors to the config.log.
21520 cat conftest.err 1>&5
21521 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21523 if diff conftest.exp conftest.er2 >/dev/null; then
21524 lt_prog_compiler_static_works_F77=yes
21527 lt_prog_compiler_static_works_F77=yes
21531 LDFLAGS="$save_LDFLAGS"
21534 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21535 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21537 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21540 lt_prog_compiler_static_F77=
21544 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21546 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 lt_cv_prog_compiler_c_o_F77=no
21550 $rm -r conftest 2>/dev/null
21554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21556 lt_compiler_flag="-o out/conftest2.$ac_objext"
21557 # Insert the option either (1) after the last *FLAGS variable, or
21558 # (2) before a word containing "conftest.", or (3) at the end.
21559 # Note that $ac_compile itself does not contain backslashes and begins
21560 # with a dollar sign (not a hyphen), so the echo should work correctly.
21561 lt_compile=`echo "$ac_compile" | $SED \
21562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21564 -e 's:$: $lt_compiler_flag:'`
21565 (eval echo "\"\$as_me:21565: $lt_compile\"" >&5)
21566 (eval "$lt_compile" 2>out/conftest.err)
21568 cat out/conftest.err >&5
21569 echo "$as_me:21569: \$? = $ac_status" >&5
21570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21572 # The compiler can only warn and ignore the option if not recognized
21573 # So say no if there are warnings
21574 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21577 lt_cv_prog_compiler_c_o_F77=yes
21582 # SGI C++ compiler will create directory out/ii_files/ for
21583 # template instantiation
21584 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21585 $rm out/* && rmdir out
21591 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21592 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21595 hard_links="nottested"
21596 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21597 # do not overwrite the value of need_locks provided by the user
21598 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21599 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21604 ln conftest.a conftest.b 2>&5 || hard_links=no
21605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21606 { echo "$as_me:$LINENO: result: $hard_links" >&5
21607 echo "${ECHO_T}$hard_links" >&6; }
21608 if test "$hard_links" = no; then
21609 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21610 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21617 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21618 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21621 allow_undefined_flag_F77=
21622 enable_shared_with_static_runtimes_F77=no
21624 archive_expsym_cmds_F77=
21625 old_archive_From_new_cmds_F77=
21626 old_archive_from_expsyms_cmds_F77=
21627 export_dynamic_flag_spec_F77=
21628 whole_archive_flag_spec_F77=
21629 thread_safe_flag_spec_F77=
21630 hardcode_libdir_flag_spec_F77=
21631 hardcode_libdir_flag_spec_ld_F77=
21632 hardcode_libdir_separator_F77=
21633 hardcode_direct_F77=no
21634 hardcode_minus_L_F77=no
21635 hardcode_shlibpath_var_F77=unsupported
21636 link_all_deplibs_F77=unknown
21637 hardcode_automatic_F77=no
21639 module_expsym_cmds_F77=
21640 always_export_symbols_F77=no
21641 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21642 # include_expsyms should be a list of space-separated symbols to be *always*
21643 # included in the symbol list
21644 include_expsyms_F77=
21645 # exclude_expsyms can be an extended regexp of symbols to exclude
21646 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21647 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21648 # as well as any symbol that contains `d'.
21649 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21650 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21651 # platforms (ab)use it in PIC code, but their linkers get confused if
21652 # the symbol is explicitly referenced. Since portable code cannot
21653 # rely on this symbol name, it's probably fine to never include it in
21654 # preloaded symbol tables.
21655 extract_expsyms_cmds=
21656 # Just being paranoid about ensuring that cc_basename is set.
21657 for cc_temp in $compiler""; do
21659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21665 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21668 cygwin* | mingw* | pw32*)
21669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21670 # When not using gcc, we currently assume that we are using
21671 # Microsoft Visual C++.
21672 if test "$GCC" != yes; then
21677 # we just hope/assume this is gcc and not c89 (= MSVC++)
21686 if test "$with_gnu_ld" = yes; then
21687 # If archive_cmds runs LD, not CC, wlarc should be empty
21690 # Set some defaults for GNU ld with shared library support. These
21691 # are reset later if shared libraries are not supported. Putting them
21692 # here allows them to be overridden if necessary.
21693 runpath_var=LD_RUN_PATH
21694 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21695 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21696 # ancient GNU ld didn't support --whole-archive et. al.
21697 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21698 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21700 whole_archive_flag_spec_F77=
21702 supports_anon_versioning=no
21703 case `$LD -v 2>/dev/null` in
21704 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21705 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21706 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21707 *\ 2.11.*) ;; # other 2.11 versions
21708 *) supports_anon_versioning=yes ;;
21711 # See if GNU ld supports shared libraries.
21713 aix3* | aix4* | aix5*)
21714 # On AIX/PPC, the GNU linker is very broken
21715 if test "$host_cpu" != ia64; then
21719 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21720 *** to be unable to reliably create shared libraries on AIX.
21721 *** Therefore, libtool is disabling shared libraries support. If you
21722 *** really care for shared libraries, you may want to modify your PATH
21723 *** so that a non-GNU linker is found, and then restart.
21730 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)'
21731 hardcode_libdir_flag_spec_F77='-L$libdir'
21732 hardcode_minus_L_F77=yes
21734 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21735 # that the semantics of dynamic libraries on AmigaOS, at least up
21736 # to version 4, is to share data among multiple programs linked
21737 # with the same dynamic library. Since this doesn't match the
21738 # behavior of shared libraries on other platforms, we can't use
21744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21745 allow_undefined_flag_F77=unsupported
21746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21747 # support --undefined. This deserves some investigation. FIXME
21748 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21754 cygwin* | mingw* | pw32*)
21755 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21756 # as there is no search path for DLLs.
21757 hardcode_libdir_flag_spec_F77='-L$libdir'
21758 allow_undefined_flag_F77=unsupported
21759 always_export_symbols_F77=no
21760 enable_shared_with_static_runtimes_F77=yes
21761 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21763 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21765 # If the export-symbols file already is a .def file (1st line
21766 # is EXPORTS), use it as is; otherwise, prepend...
21767 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21768 cp $export_symbols $output_objdir/$soname.def;
21770 echo EXPORTS > $output_objdir/$soname.def;
21771 cat $export_symbols >> $output_objdir/$soname.def;
21773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21780 hardcode_direct_F77=no
21781 hardcode_shlibpath_var_F77=no
21782 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21783 export_dynamic_flag_spec_F77='${wl}-E'
21784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21785 # Instead, shared libraries are loaded at an image base (0x10000000 by
21786 # default) and relocated if they conflict, which is a slow very memory
21787 # consuming and fragmenting process. To avoid this, we pick a random,
21788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21790 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'
21791 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'
21795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21797 case $cc_basename,$host_cpu in
21798 pgcc*) # Portland Group C compiler
21799 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'
21800 tmp_addflag=' $pic_flag'
21802 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21803 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'
21804 tmp_addflag=' $pic_flag -Mnomain' ;;
21805 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21806 tmp_addflag=' -i_dynamic' ;;
21807 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21808 tmp_addflag=' -i_dynamic -nofor_main' ;;
21809 ifc* | ifort*) # Intel Fortran compiler
21810 tmp_addflag=' -nofor_main' ;;
21812 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21814 if test $supports_anon_versioning = yes; then
21815 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21817 $echo "local: *; };" >> $output_objdir/$libname.ver~
21818 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21826 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21827 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21830 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21831 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21836 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21840 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21841 *** create shared libraries on Solaris systems. Therefore, libtool
21842 *** is disabling shared libraries support. We urge you to upgrade GNU
21843 *** binutils to release 2.9.1 or newer. Another option is to modify
21844 *** your PATH or compiler configuration so that the native linker is
21845 *** used, and then restart.
21848 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21849 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21850 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21857 case `$LD -v 2>&1` in
21858 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21862 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21863 *** reliably create shared libraries on SCO systems. Therefore, libtool
21864 *** is disabling shared libraries support. We urge you to upgrade GNU
21865 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21866 *** your PATH or compiler configuration so that the native linker is
21867 *** used, and then restart.
21872 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21873 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21875 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21884 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21886 hardcode_direct_F77=yes
21887 hardcode_shlibpath_var_F77=no
21891 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21892 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21893 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21900 if test "$ld_shlibs_F77" = no; then
21902 hardcode_libdir_flag_spec_F77=
21903 export_dynamic_flag_spec_F77=
21904 whole_archive_flag_spec_F77=
21907 # PORTME fill in a description of your system's linker (not GNU ld)
21910 allow_undefined_flag_F77=unsupported
21911 always_export_symbols_F77=yes
21912 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'
21913 # Note: this linker hardcodes the directories in LIBPATH if there
21914 # are no directories specified by -L.
21915 hardcode_minus_L_F77=yes
21916 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21917 # Neither direct hardcoding nor static linking is supported with a
21919 hardcode_direct_F77=unsupported
21924 if test "$host_cpu" = ia64; then
21925 # On IA64, the linker does run time linking by default, so we don't
21926 # have to do anything special.
21927 aix_use_runtimelinking=no
21928 exp_sym_flag='-Bexport'
21931 # If we're using GNU nm, then we don't want the "-C" option.
21932 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21933 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21934 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'
21936 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'
21938 aix_use_runtimelinking=no
21940 # Test if we are trying to use run time linking or normal
21941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21942 # need to do runtime linking.
21943 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21944 for ld_flag in $LDFLAGS; do
21945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21946 aix_use_runtimelinking=yes
21953 exp_sym_flag='-bexport'
21954 no_entry_flag='-bnoentry'
21957 # When large executables or shared objects are built, AIX ld can
21958 # have problems creating the table of contents. If linking a library
21959 # or program results in "error TOC overflow" add -mminimal-toc to
21960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21963 archive_cmds_F77=''
21964 hardcode_direct_F77=yes
21965 hardcode_libdir_separator_F77=':'
21966 link_all_deplibs_F77=yes
21968 if test "$GCC" = yes; then
21969 case $host_os in aix4.[012]|aix4.[012].*)
21970 # We only want to do this on AIX 4.2 and lower, the check
21971 # below for broken collect2 doesn't work under 4.3+
21972 collect2name=`${CC} -print-prog-name=collect2`
21973 if test -f "$collect2name" && \
21974 strings "$collect2name" | grep resolve_lib_name >/dev/null
21976 # We have reworked collect2
21977 hardcode_direct_F77=yes
21979 # We have old collect2
21980 hardcode_direct_F77=unsupported
21981 # It fails to find uninstalled libraries when the uninstalled
21982 # path is not listed in the libpath. Setting hardcode_minus_L
21983 # to unsupported forces relinking
21984 hardcode_minus_L_F77=yes
21985 hardcode_libdir_flag_spec_F77='-L$libdir'
21986 hardcode_libdir_separator_F77=
21990 shared_flag='-shared'
21991 if test "$aix_use_runtimelinking" = yes; then
21992 shared_flag="$shared_flag "'${wl}-G'
21996 if test "$host_cpu" = ia64; then
21997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21998 # chokes on -Wl,-G. The following line is correct:
22001 if test "$aix_use_runtimelinking" = yes; then
22002 shared_flag='${wl}-G'
22004 shared_flag='${wl}-bM:SRE'
22009 # It seems that -bexpall does not export symbols beginning with
22010 # underscore (_), so it is better to generate a list of symbols to export.
22011 always_export_symbols_F77=yes
22012 if test "$aix_use_runtimelinking" = yes; then
22013 # Warning - without using the other runtime loading flags (-brtl),
22014 # -berok will link without error, but may produce a broken library.
22015 allow_undefined_flag_F77='-berok'
22016 # Determine the default libpath from the value encoded in an empty executable.
22017 cat >conftest.$ac_ext <<_ACEOF
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (ac_try="$ac_link"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>conftest.er1
22031 grep -v '^ *+' conftest.er1 >conftest.err
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } &&
22036 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22037 { (case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_try") 2>&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest$ac_exeext'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; }; then
22057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22059 # Check for a 64-bit object if we didn't find anything.
22060 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; }
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22069 rm -f core conftest.err conftest.$ac_objext \
22070 conftest$ac_exeext conftest.$ac_ext
22071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22073 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22074 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"
22076 if test "$host_cpu" = ia64; then
22077 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22078 allow_undefined_flag_F77="-z nodefs"
22079 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"
22081 # Determine the default libpath from the value encoded in an empty executable.
22082 cat >conftest.$ac_ext <<_ACEOF
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22102 { (case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_try") 2>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); }; } &&
22111 { ac_try='test -s conftest$ac_exeext'
22112 { (case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_try") 2>&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22124 # Check for a 64-bit object if we didn't find anything.
22125 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; }
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22134 rm -f core conftest.err conftest.$ac_objext \
22135 conftest$ac_exeext conftest.$ac_ext
22136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22138 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22139 # Warning - without using the other run time loading flags,
22140 # -berok will link without error, but may produce a broken library.
22141 no_undefined_flag_F77=' ${wl}-bernotok'
22142 allow_undefined_flag_F77=' ${wl}-berok'
22143 # Exported symbols can be pulled into shared objects from archives
22144 whole_archive_flag_spec_F77='$convenience'
22145 archive_cmds_need_lc_F77=yes
22146 # This is similar to how AIX traditionally builds its shared libraries.
22147 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'
22153 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)'
22154 hardcode_libdir_flag_spec_F77='-L$libdir'
22155 hardcode_minus_L_F77=yes
22156 # see comment about different semantics on the GNU ld section
22161 export_dynamic_flag_spec_F77=-rdynamic
22164 cygwin* | mingw* | pw32*)
22165 # When not using gcc, we currently assume that we are using
22166 # Microsoft Visual C++.
22167 # hardcode_libdir_flag_spec is actually meaningless, as there is
22168 # no search path for DLLs.
22169 hardcode_libdir_flag_spec_F77=' '
22170 allow_undefined_flag_F77=unsupported
22171 # Tell ltmain to make .lib files, not .a files.
22173 # Tell ltmain to make .dll files, not .so files.
22175 # FIXME: Setting linknames here is a bad hack.
22176 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22177 # The linker will automatically build a .lib file if we build a DLL.
22178 old_archive_From_new_cmds_F77='true'
22179 # FIXME: Should let the user specify the lib program.
22180 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22181 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22182 enable_shared_with_static_runtimes_F77=yes
22185 darwin* | rhapsody*)
22187 rhapsody* | darwin1.[012])
22188 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22192 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22194 case ${MACOSX_DEPLOYMENT_TARGET} in
22196 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22199 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22205 archive_cmds_need_lc_F77=no
22206 hardcode_direct_F77=no
22207 hardcode_automatic_F77=yes
22208 hardcode_shlibpath_var_F77=unsupported
22209 whole_archive_flag_spec_F77=''
22210 link_all_deplibs_F77=yes
22211 if test "$GCC" = yes ; then
22212 output_verbose_link_cmd='echo'
22213 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22214 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22216 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}'
22217 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}'
22219 case $cc_basename in
22221 output_verbose_link_cmd='echo'
22222 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22223 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22225 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}'
22226 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}'
22236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22237 hardcode_libdir_flag_spec_F77='-L$libdir'
22238 hardcode_shlibpath_var_F77=no
22245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22246 # support. Future versions do this automatically, but an explicit c++rt0.o
22247 # does not break anything, and helps significantly (at the cost of a little
22250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22251 hardcode_libdir_flag_spec_F77='-R$libdir'
22252 hardcode_direct_F77=yes
22253 hardcode_shlibpath_var_F77=no
22256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22259 hardcode_direct_F77=yes
22260 hardcode_minus_L_F77=yes
22261 hardcode_shlibpath_var_F77=no
22264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22265 freebsd* | kfreebsd*-gnu | dragonfly*)
22266 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22267 hardcode_libdir_flag_spec_F77='-R$libdir'
22268 hardcode_direct_F77=yes
22269 hardcode_shlibpath_var_F77=no
22273 if test "$GCC" = yes; then
22274 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'
22276 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'
22278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22279 hardcode_libdir_separator_F77=:
22280 hardcode_direct_F77=yes
22282 # hardcode_minus_L: Not really in the search PATH,
22283 # but as the default location of the library.
22284 hardcode_minus_L_F77=yes
22285 export_dynamic_flag_spec_F77='${wl}-E'
22289 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22290 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22292 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22294 if test "$with_gnu_ld" = no; then
22295 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22296 hardcode_libdir_separator_F77=:
22298 hardcode_direct_F77=yes
22299 export_dynamic_flag_spec_F77='${wl}-E'
22301 # hardcode_minus_L: Not really in the search PATH,
22302 # but as the default location of the library.
22303 hardcode_minus_L_F77=yes
22308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22311 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22314 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22317 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22323 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22326 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22329 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22333 if test "$with_gnu_ld" = no; then
22334 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22335 hardcode_libdir_separator_F77=:
22339 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22340 hardcode_direct_F77=no
22341 hardcode_shlibpath_var_F77=no
22344 hardcode_direct_F77=yes
22345 export_dynamic_flag_spec_F77='${wl}-E'
22347 # hardcode_minus_L: Not really in the search PATH,
22348 # but as the default location of the library.
22349 hardcode_minus_L_F77=yes
22355 irix5* | irix6* | nonstopux*)
22356 if test "$GCC" = yes; then
22357 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'
22359 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'
22360 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22362 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22363 hardcode_libdir_separator_F77=:
22364 link_all_deplibs_F77=yes
22368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22371 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22373 hardcode_libdir_flag_spec_F77='-R$libdir'
22374 hardcode_direct_F77=yes
22375 hardcode_shlibpath_var_F77=no
22379 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22380 hardcode_direct_F77=yes
22381 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22382 hardcode_libdir_separator_F77=:
22383 hardcode_shlibpath_var_F77=no
22387 hardcode_direct_F77=yes
22388 hardcode_shlibpath_var_F77=no
22389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22390 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22391 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22392 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22393 export_dynamic_flag_spec_F77='${wl}-E'
22396 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22397 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22398 hardcode_libdir_flag_spec_F77='-R$libdir'
22401 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22402 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22409 hardcode_libdir_flag_spec_F77='-L$libdir'
22410 hardcode_minus_L_F77=yes
22411 allow_undefined_flag_F77=unsupported
22412 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'
22413 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22417 if test "$GCC" = yes; then
22418 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22419 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'
22421 allow_undefined_flag_F77=' -expect_unresolved \*'
22422 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'
22424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22425 hardcode_libdir_separator_F77=:
22428 osf4* | osf5*) # as osf3* with the addition of -msym flag
22429 if test "$GCC" = yes; then
22430 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22431 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'
22432 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22434 allow_undefined_flag_F77=' -expect_unresolved \*'
22435 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'
22436 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~
22437 $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'
22439 # Both c and cxx compiler support -rpath directly
22440 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22442 hardcode_libdir_separator_F77=:
22446 no_undefined_flag_F77=' -z text'
22447 if test "$GCC" = yes; then
22449 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22450 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22451 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22454 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22455 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22456 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22458 hardcode_libdir_flag_spec_F77='-R$libdir'
22459 hardcode_shlibpath_var_F77=no
22461 solaris2.[0-5] | solaris2.[0-5].*) ;;
22463 # The compiler driver will combine linker options so we
22464 # cannot just pass the convience library names through
22465 # without $wl, iff we do not link with $LD.
22466 # Luckily, gcc supports the same syntax we need for Sun Studio.
22467 # Supported since Solaris 2.6 (maybe 2.5.1?)
22470 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22472 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' ;;
22475 link_all_deplibs_F77=yes
22479 if test "x$host_vendor" = xsequent; then
22480 # Use $CC to link under sequent, because it throws in some extra .o
22481 # files that make .init and .fini sections work.
22482 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22484 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22486 hardcode_libdir_flag_spec_F77='-L$libdir'
22487 hardcode_direct_F77=yes
22488 hardcode_minus_L_F77=yes
22489 hardcode_shlibpath_var_F77=no
22493 case $host_vendor in
22495 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22496 hardcode_direct_F77=yes # is this really true???
22499 ## LD is ld it makes a PLAMLIB
22500 ## CC just makes a GrossModule.
22501 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22502 reload_cmds_F77='$CC -r -o $output$reload_objs'
22503 hardcode_direct_F77=no
22506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22507 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22510 runpath_var='LD_RUN_PATH'
22511 hardcode_shlibpath_var_F77=no
22515 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22516 hardcode_shlibpath_var_F77=no
22517 export_dynamic_flag_spec_F77='-Bexport'
22521 if test -d /usr/nec; then
22522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22523 hardcode_shlibpath_var_F77=no
22524 runpath_var=LD_RUN_PATH
22525 hardcode_runpath_var=yes
22530 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22531 no_undefined_flag_F77='${wl}-z,text'
22532 archive_cmds_need_lc_F77=no
22533 hardcode_shlibpath_var_F77=no
22534 runpath_var='LD_RUN_PATH'
22536 if test "$GCC" = yes; then
22537 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22538 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22540 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22545 sysv5* | sco3.2v5* | sco5v6*)
22546 # Note: We can NOT use -z defs as we might desire, because we do not
22547 # link with -lc, and that would cause any symbols used from libc to
22548 # always be unresolved, which means just about no library would
22549 # ever link correctly. If we're not using GNU ld we use -z text
22550 # though, which does catch some bad symbols but isn't as heavy-handed
22552 no_undefined_flag_F77='${wl}-z,text'
22553 allow_undefined_flag_F77='${wl}-z,nodefs'
22554 archive_cmds_need_lc_F77=no
22555 hardcode_shlibpath_var_F77=no
22556 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22557 hardcode_libdir_separator_F77=':'
22558 link_all_deplibs_F77=yes
22559 export_dynamic_flag_spec_F77='${wl}-Bexport'
22560 runpath_var='LD_RUN_PATH'
22562 if test "$GCC" = yes; then
22563 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22564 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22566 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22572 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22573 hardcode_libdir_flag_spec_F77='-L$libdir'
22574 hardcode_shlibpath_var_F77=no
22583 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22584 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22585 test "$ld_shlibs_F77" = no && can_build_shared=no
22588 # Do we need to explicitly link libc?
22590 case "x$archive_cmds_need_lc_F77" in
22592 # Assume -lc should be added
22593 archive_cmds_need_lc_F77=yes
22595 if test "$enable_shared" = yes && test "$GCC" = yes; then
22596 case $archive_cmds_F77 in
22598 # FIXME: we may have to deal with multi-command sequences.
22601 # Test whether the compiler implicitly links with -lc since on some
22602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22603 # to ld, don't add -lc before -lgcc.
22604 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22605 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } 2>conftest.err; then
22616 libobjs=conftest.$ac_objext
22618 wl=$lt_prog_compiler_wl_F77
22619 pic_flag=$lt_prog_compiler_pic_F77
22625 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22626 allow_undefined_flag_F77=
22627 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22628 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }
22633 archive_cmds_need_lc_F77=no
22635 archive_cmds_need_lc_F77=yes
22637 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22639 cat conftest.err 1>&5
22642 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22643 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22650 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22651 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22652 library_names_spec=
22653 libname_spec='lib$name'
22657 postuninstall_cmds=
22661 shlibpath_overrides_runpath=unknown
22663 dynamic_linker="$host_os ld.so"
22664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22665 if test "$GCC" = yes; then
22666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22667 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22668 # if the path contains ";" then we assume it to be the separator
22669 # otherwise default to the standard path separator (i.e. ":") - it is
22670 # assumed that no part of a normal pathname contains ";" but that should
22671 # okay in the real world where ";" in dirpaths is itself problematic.
22672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22677 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22679 need_lib_prefix=unknown
22680 hardcode_into_libs=no
22682 # when you set need_version to no, make sure it does not cause -set_version
22683 # flags to be left without arguments
22684 need_version=unknown
22689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22690 shlibpath_var=LIBPATH
22692 # AIX 3 has no versioning support, so we append a major version to the name.
22693 soname_spec='${libname}${release}${shared_ext}$major'
22700 hardcode_into_libs=yes
22701 if test "$host_cpu" = ia64; then
22702 # AIX 5 supports IA64
22703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22704 shlibpath_var=LD_LIBRARY_PATH
22706 # With GCC up to 2.95.x, collect2 would create an import file
22707 # for dependence libraries. The import file would start with
22708 # the line `#! .'. This would cause the generated library to
22709 # depend on `.', always an invalid library. This was fixed in
22710 # development snapshots of GCC prior to 3.0.
22712 aix4 | aix4.[01] | aix4.[01].*)
22713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22715 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22718 can_build_shared=no
22722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22723 # soname into executable. Probably we can add versioning support to
22724 # collect2, so additional links can be useful in future.
22725 if test "$aix_use_runtimelinking" = yes; then
22726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22727 # instead of lib<name>.a to let people know that these are not
22728 # typical AIX shared libraries.
22729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 # We preserve .a as extension for shared libraries through AIX4.2
22732 # and later when we are not doing run time linking.
22733 library_names_spec='${libname}${release}.a $libname.a'
22734 soname_spec='${libname}${release}${shared_ext}$major'
22736 shlibpath_var=LIBPATH
22741 library_names_spec='$libname.ixlibrary $libname.a'
22742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22743 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'
22747 library_names_spec='${libname}${shared_ext}'
22748 dynamic_linker="$host_os ld.so"
22749 shlibpath_var=LIBRARY_PATH
22755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22756 soname_spec='${libname}${release}${shared_ext}$major'
22757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22761 # the default ld.so.conf also contains /usr/contrib/lib and
22762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22763 # libtool to hard-code these into programs
22766 cygwin* | mingw* | pw32*)
22767 version_type=windows
22772 case $GCC,$host_os in
22773 yes,cygwin* | yes,mingw* | yes,pw32*)
22774 library_names_spec='$libname.dll.a'
22775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22776 postinstall_cmds='base_file=`basename \${file}`~
22777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22778 dldir=$destdir/`dirname \$dlpath`~
22779 test -d \$dldir || mkdir -p \$dldir~
22780 $install_prog $dir/$dlname \$dldir/$dlname~
22781 chmod a+x \$dldir/$dlname'
22782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22783 dlpath=$dir/\$dldll~
22785 shlibpath_overrides_runpath=yes
22789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22791 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22794 # MinGW DLLs use traditional 'lib' prefix
22795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22797 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22798 # It is most probably a Windows format PATH printed by
22799 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22800 # path with ; separators, and with drive letters. We can handle the
22801 # drive letters (cygwin fileutils understands them), so leave them,
22802 # especially as we might pass files found there to a mingw objdump,
22803 # which wouldn't understand a cygwinified path. Ahh.
22804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22810 # pw32 DLLs use 'pw' prefix rather than 'lib'
22811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22820 dynamic_linker='Win32 ld.exe'
22821 # FIXME: first we should search . and the directory the executable is in
22825 darwin* | rhapsody*)
22826 dynamic_linker="$host_os dyld"
22827 version_type=darwin
22830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22831 soname_spec='${libname}${release}${major}$shared_ext'
22832 shlibpath_overrides_runpath=yes
22833 shlibpath_var=DYLD_LIBRARY_PATH
22834 shrext_cmds='.dylib'
22835 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22836 if test "$GCC" = yes; then
22837 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"`
22839 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22849 soname_spec='${libname}${release}${shared_ext}$major'
22850 shlibpath_var=LD_LIBRARY_PATH
22861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 shlibpath_overrides_runpath=no
22865 hardcode_into_libs=yes
22866 dynamic_linker='GNU ld.so'
22869 freebsd* | dragonfly*)
22870 # DragonFly does not have aout. When/if they implement a new
22871 # versioning mechanism, adjust this.
22872 if test -x /usr/bin/objformat; then
22873 objformat=`/usr/bin/objformat`
22876 freebsd[123]*) objformat=aout ;;
22877 *) objformat=elf ;;
22880 version_type=freebsd-$objformat
22881 case $version_type in
22883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22892 shlibpath_var=LD_LIBRARY_PATH
22895 shlibpath_overrides_runpath=yes
22897 freebsd3.[01]* | freebsdelf3.[01]*)
22898 shlibpath_overrides_runpath=yes
22899 hardcode_into_libs=yes
22901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22903 shlibpath_overrides_runpath=no
22904 hardcode_into_libs=yes
22906 freebsd*) # from 4.6 on
22907 shlibpath_overrides_runpath=yes
22908 hardcode_into_libs=yes
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 hardcode_into_libs=yes
22923 hpux9* | hpux10* | hpux11*)
22924 # Give a soname corresponding to the major version so that dld.sl refuses to
22925 # link against other versions.
22932 hardcode_into_libs=yes
22933 dynamic_linker="$host_os dld.so"
22934 shlibpath_var=LD_LIBRARY_PATH
22935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22937 soname_spec='${libname}${release}${shared_ext}$major'
22938 if test "X$HPUX_IA64_MODE" = X32; then
22939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22947 hardcode_into_libs=yes
22948 dynamic_linker="$host_os dld.sl"
22949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952 soname_spec='${libname}${release}${shared_ext}$major'
22953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22958 dynamic_linker="$host_os dld.sl"
22959 shlibpath_var=SHLIB_PATH
22960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 soname_spec='${libname}${release}${shared_ext}$major'
22965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22966 postinstall_cmds='chmod 555 $lib'
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22976 shlibpath_var=LD_LIBRARY_PATH
22977 shlibpath_overrides_runpath=no
22978 hardcode_into_libs=yes
22981 irix5* | irix6* | nonstopux*)
22983 nonstopux*) version_type=nonstopux ;;
22985 if test "$lt_cv_prog_gnu_ld" = yes; then
22993 soname_spec='${libname}${release}${shared_ext}$major'
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22996 irix5* | nonstopux*)
22997 libsuff= shlibsuff=
23000 case $LD in # libtool.m4 will add one of these switches to LD
23001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23002 libsuff= shlibsuff= libmagic=32-bit;;
23003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23004 libsuff=32 shlibsuff=N32 libmagic=N32;;
23005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23007 *) libsuff= shlibsuff= libmagic=never-match;;
23011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23012 shlibpath_overrides_runpath=no
23013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23015 hardcode_into_libs=yes
23018 # No shared lib support for Linux oldld, aout, or coff.
23019 linux*oldld* | linux*aout* | linux*coff*)
23023 # This must be Linux ELF.
23028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23029 soname_spec='${libname}${release}${shared_ext}$major'
23030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23031 shlibpath_var=LD_LIBRARY_PATH
23032 shlibpath_overrides_runpath=no
23033 # This implies no fast_install, which is unacceptable.
23034 # Some rework will be needed to allow for fast_install
23035 # before this can be enabled.
23036 hardcode_into_libs=yes
23038 # Append ld.so.conf contents to the search path
23039 if test -f /etc/ld.so.conf; then
23040 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' ' '`
23041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23044 # We used to test for /lib/ld.so.1 and disable shared libraries on
23045 # powerpc, because MkLinux only supported shared libraries with the
23046 # GNU dynamic linker. Since this was broken with cross compilers,
23047 # most powerpc-linux boxes support dynamic linking these days and
23048 # people can always --disable-shared, the test was removed, and we
23049 # assume the GNU/Linux dynamic linker is in use.
23050 dynamic_linker='GNU/Linux ld.so'
23057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23058 soname_spec='${libname}${release}${shared_ext}$major'
23059 shlibpath_var=LD_LIBRARY_PATH
23060 shlibpath_overrides_runpath=no
23061 hardcode_into_libs=yes
23062 dynamic_linker='GNU ld.so'
23069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23072 dynamic_linker='NetBSD (a.out) ld.so'
23074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23075 soname_spec='${libname}${release}${shared_ext}$major'
23076 dynamic_linker='NetBSD ld.elf_so'
23078 shlibpath_var=LD_LIBRARY_PATH
23079 shlibpath_overrides_runpath=yes
23080 hardcode_into_libs=yes
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23086 shlibpath_var=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath=yes
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 soname_spec='${libname}${release}${shared_ext}$major'
23096 shlibpath_var=LD_LIBRARY_PATH
23097 shlibpath_overrides_runpath=yes
23102 sys_lib_dlsearch_path_spec="/usr/lib"
23104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23107 *) need_version=no ;;
23109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23111 shlibpath_var=LD_LIBRARY_PATH
23112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23114 openbsd2.[89] | openbsd2.[89].*)
23115 shlibpath_overrides_runpath=no
23118 shlibpath_overrides_runpath=yes
23122 shlibpath_overrides_runpath=yes
23127 libname_spec='$name'
23130 library_names_spec='$libname${shared_ext} $libname.a'
23131 dynamic_linker='OS/2 ld.exe'
23132 shlibpath_var=LIBPATH
23135 osf3* | osf4* | osf5*)
23139 soname_spec='${libname}${release}${shared_ext}$major'
23140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23141 shlibpath_var=LD_LIBRARY_PATH
23142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23151 soname_spec='${libname}${release}${shared_ext}$major'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 shlibpath_overrides_runpath=yes
23154 hardcode_into_libs=yes
23155 # ldd complains unless libraries are executable
23156 postinstall_cmds='chmod +x $lib'
23161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23163 shlibpath_var=LD_LIBRARY_PATH
23164 shlibpath_overrides_runpath=yes
23165 if test "$with_gnu_ld" = yes; then
23173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23174 soname_spec='${libname}${release}${shared_ext}$major'
23175 shlibpath_var=LD_LIBRARY_PATH
23176 case $host_vendor in
23178 shlibpath_overrides_runpath=no
23180 export_dynamic_flag_spec='${wl}-Blargedynsym'
23181 runpath_var=LD_RUN_PATH
23189 shlibpath_overrides_runpath=no
23190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23196 if test -d /usr/nec ;then
23198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23199 soname_spec='$libname${shared_ext}.$major'
23200 shlibpath_var=LD_LIBRARY_PATH
23204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23205 version_type=freebsd-elf
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 shlibpath_var=LD_LIBRARY_PATH
23211 hardcode_into_libs=yes
23212 if test "$with_gnu_ld" = yes; then
23213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23214 shlibpath_overrides_runpath=no
23216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23217 shlibpath_overrides_runpath=yes
23220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23224 sys_lib_dlsearch_path_spec='/usr/lib'
23229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23230 soname_spec='${libname}${release}${shared_ext}$major'
23231 shlibpath_var=LD_LIBRARY_PATH
23238 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23239 echo "${ECHO_T}$dynamic_linker" >&6; }
23240 test "$dynamic_linker" = no && can_build_shared=no
23242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23243 if test "$GCC" = yes; then
23244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23247 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23248 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23249 hardcode_action_F77=
23250 if test -n "$hardcode_libdir_flag_spec_F77" || \
23251 test -n "$runpath_var_F77" || \
23252 test "X$hardcode_automatic_F77" = "Xyes" ; then
23254 # We can hardcode non-existant directories.
23255 if test "$hardcode_direct_F77" != no &&
23256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23257 # have to relink, otherwise we might link with an installed library
23258 # when we should be linking with a yet-to-be-installed one
23259 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23260 test "$hardcode_minus_L_F77" != no; then
23261 # Linking always hardcodes the temporary library directory.
23262 hardcode_action_F77=relink
23264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23265 hardcode_action_F77=immediate
23268 # We cannot hardcode anything, or else we can only hardcode existing
23270 hardcode_action_F77=unsupported
23272 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23273 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23275 if test "$hardcode_action_F77" = relink; then
23276 # Fast installation is not supported
23277 enable_fast_install=no
23278 elif test "$shlibpath_overrides_runpath" = yes ||
23279 test "$enable_shared" = no; then
23280 # Fast installation is not necessary
23281 enable_fast_install=needless
23285 # The else clause should only fire when bootstrapping the
23286 # libtool distribution, otherwise you forgot to ship ltmain.sh
23287 # with your package, and you will get complaints that there are
23288 # no rules to generate ltmain.sh.
23289 if test -f "$ltmain"; then
23290 # See if we are running on zsh, and set the options which allow our commands through
23291 # without removal of \ escapes.
23292 if test -n "${ZSH_VERSION+set}" ; then
23293 setopt NO_GLOB_SUBST
23295 # Now quote all the things that may contain metacharacters while being
23296 # careful not to overquote the AC_SUBSTed values. We take copies of the
23297 # variables and quote the copies for generation of the libtool script.
23298 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23302 deplibs_check_method reload_flag reload_cmds need_locks \
23303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23304 lt_cv_sys_global_symbol_to_c_name_address \
23305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23306 old_postinstall_cmds old_postuninstall_cmds \
23310 lt_prog_compiler_wl_F77 \
23311 lt_prog_compiler_pic_F77 \
23312 lt_prog_compiler_static_F77 \
23313 lt_prog_compiler_no_builtin_flag_F77 \
23314 export_dynamic_flag_spec_F77 \
23315 thread_safe_flag_spec_F77 \
23316 whole_archive_flag_spec_F77 \
23317 enable_shared_with_static_runtimes_F77 \
23318 old_archive_cmds_F77 \
23319 old_archive_from_new_cmds_F77 \
23320 predep_objects_F77 \
23321 postdep_objects_F77 \
23324 compiler_lib_search_path_F77 \
23326 archive_expsym_cmds_F77 \
23327 postinstall_cmds_F77 \
23328 postuninstall_cmds_F77 \
23329 old_archive_from_expsyms_cmds_F77 \
23330 allow_undefined_flag_F77 \
23331 no_undefined_flag_F77 \
23332 export_symbols_cmds_F77 \
23333 hardcode_libdir_flag_spec_F77 \
23334 hardcode_libdir_flag_spec_ld_F77 \
23335 hardcode_libdir_separator_F77 \
23336 hardcode_automatic_F77 \
23338 module_expsym_cmds_F77 \
23339 lt_cv_prog_compiler_c_o_F77 \
23340 exclude_expsyms_F77 \
23341 include_expsyms_F77; do
23344 old_archive_cmds_F77 | \
23345 old_archive_from_new_cmds_F77 | \
23346 archive_cmds_F77 | \
23347 archive_expsym_cmds_F77 | \
23348 module_cmds_F77 | \
23349 module_expsym_cmds_F77 | \
23350 old_archive_from_expsyms_cmds_F77 | \
23351 export_symbols_cmds_F77 | \
23352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23353 postinstall_cmds | postuninstall_cmds | \
23354 old_postinstall_cmds | old_postuninstall_cmds | \
23355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23356 # Double-quote double-evaled strings.
23357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23366 *'\$0 --fallback-echo"')
23367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23373 cat <<__EOF__ >> "$cfgfile"
23374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23378 # Shell to use when invoking shell scripts.
23381 # Whether or not to build shared libraries.
23382 build_libtool_libs=$enable_shared
23384 # Whether or not to build static libraries.
23385 build_old_libs=$enable_static
23387 # Whether or not to add -lc for building shared libraries.
23388 build_libtool_need_lc=$archive_cmds_need_lc_F77
23390 # Whether or not to disallow shared libs when runtime libs are static
23391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23393 # Whether or not to optimize for fast installation.
23394 fast_install=$enable_fast_install
23397 host_alias=$host_alias
23401 # The build system.
23402 build_alias=$build_alias
23406 # An echo program that does not interpret backslashes.
23411 AR_FLAGS=$lt_AR_FLAGS
23416 # LTCC compiler flags.
23417 LTCFLAGS=$lt_LTCFLAGS
23419 # A language-specific compiler.
23420 CC=$lt_compiler_F77
23422 # Is the compiler the GNU C compiler?
23428 # The linker used to build libraries.
23431 # Whether we need hard or soft links.
23434 # A BSD-compatible nm program.
23437 # A symbol stripping program
23440 # Used to examine libraries when file_magic_cmd begins "file"
23441 MAGIC_CMD=$MAGIC_CMD
23443 # Used on cygwin: DLL creation program.
23446 # Used on cygwin: object dumper.
23449 # Used on cygwin: assembler.
23452 # The name of the directory that contains temporary libtool files.
23455 # How to create reloadable object files.
23456 reload_flag=$lt_reload_flag
23457 reload_cmds=$lt_reload_cmds
23459 # How to pass a linker flag through the compiler.
23460 wl=$lt_lt_prog_compiler_wl_F77
23462 # Object file suffix (normally "o").
23463 objext="$ac_objext"
23465 # Old archive suffix (normally "a").
23468 # Shared library suffix (normally ".so").
23469 shrext_cmds='$shrext_cmds'
23471 # Executable file suffix (normally "").
23474 # Additional compiler flags for building library objects.
23475 pic_flag=$lt_lt_prog_compiler_pic_F77
23478 # What is the maximum length of a command?
23479 max_cmd_len=$lt_cv_sys_max_cmd_len
23481 # Does compiler simultaneously support -c and -o options?
23482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23484 # Must we lock files when doing compilation?
23485 need_locks=$lt_need_locks
23487 # Do we need the lib prefix for modules?
23488 need_lib_prefix=$need_lib_prefix
23490 # Do we need a version for libraries?
23491 need_version=$need_version
23493 # Whether dlopen is supported.
23494 dlopen_support=$enable_dlopen
23496 # Whether dlopen of programs is supported.
23497 dlopen_self=$enable_dlopen_self
23499 # Whether dlopen of statically linked programs is supported.
23500 dlopen_self_static=$enable_dlopen_self_static
23502 # Compiler flag to prevent dynamic linking.
23503 link_static_flag=$lt_lt_prog_compiler_static_F77
23505 # Compiler flag to turn off builtin functions.
23506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23508 # Compiler flag to allow reflexive dlopens.
23509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23511 # Compiler flag to generate shared objects directly from archives.
23512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23514 # Compiler flag to generate thread-safe objects.
23515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23517 # Library versioning type.
23518 version_type=$version_type
23520 # Format of library name prefix.
23521 libname_spec=$lt_libname_spec
23523 # List of archive names. First name is the real one, the rest are links.
23524 # The last name is the one that the linker finds with -lNAME.
23525 library_names_spec=$lt_library_names_spec
23527 # The coded name of the library, if different from the real name.
23528 soname_spec=$lt_soname_spec
23530 # Commands used to build and install an old-style archive.
23532 old_archive_cmds=$lt_old_archive_cmds_F77
23533 old_postinstall_cmds=$lt_old_postinstall_cmds
23534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23536 # Create an old-style archive from a shared archive.
23537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23539 # Create a temporary old-style archive to link instead of a shared archive.
23540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23542 # Commands used to build and install a shared archive.
23543 archive_cmds=$lt_archive_cmds_F77
23544 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23545 postinstall_cmds=$lt_postinstall_cmds
23546 postuninstall_cmds=$lt_postuninstall_cmds
23548 # Commands used to build a loadable module (assumed same as above if empty)
23549 module_cmds=$lt_module_cmds_F77
23550 module_expsym_cmds=$lt_module_expsym_cmds_F77
23552 # Commands to strip libraries.
23553 old_striplib=$lt_old_striplib
23554 striplib=$lt_striplib
23556 # Dependencies to place before the objects being linked to create a
23558 predep_objects=$lt_predep_objects_F77
23560 # Dependencies to place after the objects being linked to create a
23562 postdep_objects=$lt_postdep_objects_F77
23564 # Dependencies to place before the objects being linked to create a
23566 predeps=$lt_predeps_F77
23568 # Dependencies to place after the objects being linked to create a
23570 postdeps=$lt_postdeps_F77
23572 # The library search path used internally by the compiler when linking
23573 # a shared library.
23574 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23576 # Method to check whether dependent libraries are shared objects.
23577 deplibs_check_method=$lt_deplibs_check_method
23579 # Command to use when deplibs_check_method == file_magic.
23580 file_magic_cmd=$lt_file_magic_cmd
23582 # Flag that allows shared libraries with undefined symbols to be built.
23583 allow_undefined_flag=$lt_allow_undefined_flag_F77
23585 # Flag that forces no undefined symbols.
23586 no_undefined_flag=$lt_no_undefined_flag_F77
23588 # Commands used to finish a libtool library installation in a directory.
23589 finish_cmds=$lt_finish_cmds
23591 # Same as above, but a single script fragment to be evaled but not shown.
23592 finish_eval=$lt_finish_eval
23594 # Take the output of nm and produce a listing of raw symbols and C names.
23595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23597 # Transform the output of nm in a proper C declaration
23598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23600 # Transform the output of nm in a C name address pair
23601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23603 # This is the shared library runtime path variable.
23604 runpath_var=$runpath_var
23606 # This is the shared library path variable.
23607 shlibpath_var=$shlibpath_var
23609 # Is shlibpath searched before the hard-coded library search path?
23610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23612 # How to hardcode a shared library path into an executable.
23613 hardcode_action=$hardcode_action_F77
23615 # Whether we should hardcode library paths into libraries.
23616 hardcode_into_libs=$hardcode_into_libs
23618 # Flag to hardcode \$libdir into a binary during linking.
23619 # This must work even if \$libdir does not exist.
23620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23622 # If ld is used when linking, flag to hardcode \$libdir into
23623 # a binary during linking. This must work even if \$libdir does
23625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23627 # Whether we need a single -rpath flag with a separated argument.
23628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23631 # resulting binary.
23632 hardcode_direct=$hardcode_direct_F77
23634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23635 # resulting binary.
23636 hardcode_minus_L=$hardcode_minus_L_F77
23638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23639 # the resulting binary.
23640 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23642 # Set to yes if building a shared library automatically hardcodes DIR into the library
23643 # and all subsequent libraries and executables linked against it.
23644 hardcode_automatic=$hardcode_automatic_F77
23646 # Variables whose values should be saved in libtool wrapper scripts and
23647 # restored at relink time.
23648 variables_saved_for_relink="$variables_saved_for_relink"
23650 # Whether libtool must link a program against all its dependency libraries.
23651 link_all_deplibs=$link_all_deplibs_F77
23653 # Compile-time system search path for libraries
23654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23656 # Run-time system search path for libraries
23657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23659 # Fix the shell variable \$srcfile for the compiler.
23660 fix_srcfile_path="$fix_srcfile_path_F77"
23662 # Set to yes if exported symbols are required.
23663 always_export_symbols=$always_export_symbols_F77
23665 # The commands to list exported symbols.
23666 export_symbols_cmds=$lt_export_symbols_cmds_F77
23668 # The commands to extract the exported symbol list from a shared archive.
23669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23671 # Symbols that should not be listed in the preloaded symbols.
23672 exclude_expsyms=$lt_exclude_expsyms_F77
23674 # Symbols that must always be exported.
23675 include_expsyms=$lt_include_expsyms_F77
23677 # ### END LIBTOOL TAG CONFIG: $tagname
23683 # If there is no Makefile yet, we rely on a make rule to execute
23684 # `config.status --recheck' to rerun these tests and create the
23685 # libtool script then.
23686 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23687 if test -f "$ltmain_in"; then
23688 test -f Makefile && make "$ltmain"
23694 ac_cpp='$CPP $CPPFLAGS'
23695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23707 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23709 ac_cpp='$CPP $CPPFLAGS'
23710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23715 # Source file extension for Java test sources.
23718 # Object file extension for compiled Java test sources.
23722 # Code to be used in simple compile tests
23723 lt_simple_compile_test_code="class foo {}\n"
23725 # Code to be used in simple link tests
23726 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23730 # If no C compiler was specified, use CC.
23733 # If no C compiler flags were specified, use CFLAGS.
23734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23736 # Allow CC to be a program name with arguments.
23740 # save warnings/boilerplate of simple test code
23741 ac_outfile=conftest.$ac_objext
23742 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23744 _lt_compiler_boilerplate=`cat conftest.err`
23747 ac_outfile=conftest.$ac_objext
23748 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23750 _lt_linker_boilerplate=`cat conftest.err`
23754 # Allow CC to be a program name with arguments.
23759 for cc_temp in $compiler""; do
23761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23770 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23771 archive_cmds_need_lc_GCJ=no
23773 old_archive_cmds_GCJ=$old_archive_cmds
23776 lt_prog_compiler_no_builtin_flag_GCJ=
23778 if test "$GCC" = yes; then
23779 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23782 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23783 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23784 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 lt_cv_prog_compiler_rtti_exceptions=no
23788 ac_outfile=conftest.$ac_objext
23789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23790 lt_compiler_flag="-fno-rtti -fno-exceptions"
23791 # Insert the option either (1) after the last *FLAGS variable, or
23792 # (2) before a word containing "conftest.", or (3) at the end.
23793 # Note that $ac_compile itself does not contain backslashes and begins
23794 # with a dollar sign (not a hyphen), so the echo should work correctly.
23795 # The option is referenced via a variable to avoid confusing sed.
23796 lt_compile=`echo "$ac_compile" | $SED \
23797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23799 -e 's:$: $lt_compiler_flag:'`
23800 (eval echo "\"\$as_me:23800: $lt_compile\"" >&5)
23801 (eval "$lt_compile" 2>conftest.err)
23803 cat conftest.err >&5
23804 echo "$as_me:23804: \$? = $ac_status" >&5
23805 if (exit $ac_status) && test -s "$ac_outfile"; then
23806 # The compiler can only warn and ignore the option if not recognized
23807 # So say no if there are warnings other than the usual output.
23808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23811 lt_cv_prog_compiler_rtti_exceptions=yes
23817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23818 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23820 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23821 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23828 lt_prog_compiler_wl_GCJ=
23829 lt_prog_compiler_pic_GCJ=
23830 lt_prog_compiler_static_GCJ=
23832 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23833 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23835 if test "$GCC" = yes; then
23836 lt_prog_compiler_wl_GCJ='-Wl,'
23837 lt_prog_compiler_static_GCJ='-static'
23841 # All AIX code is PIC.
23842 if test "$host_cpu" = ia64; then
23843 # AIX 5 now supports IA64 processor
23844 lt_prog_compiler_static_GCJ='-Bstatic'
23849 # FIXME: we need at least 68020 code to build shared libraries, but
23850 # adding the `-m68020' flag to GCC prevents building anything better,
23852 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23855 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23856 # PIC is the default for these OSes.
23859 mingw* | pw32* | os2*)
23860 # This hack is so that the source file can tell whether it is being
23861 # built for inclusion in a dll (and should export symbols for example).
23862 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23865 darwin* | rhapsody*)
23866 # PIC is the default on this platform
23867 # Common symbols not allowed in MH_DYLIB files
23868 lt_prog_compiler_pic_GCJ='-fno-common'
23872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23873 # Instead, we relocate shared libraries at runtime.
23877 # Just because we use GCC doesn't mean we suddenly get shared libraries
23878 # on systems that don't support them.
23879 lt_prog_compiler_can_build_shared_GCJ=no
23884 if test -d /usr/nec; then
23885 lt_prog_compiler_pic_GCJ=-Kconform_pic
23890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23891 # not for PA HP-UX.
23897 lt_prog_compiler_pic_GCJ='-fPIC'
23903 lt_prog_compiler_pic_GCJ='-fPIC'
23907 # PORTME Check for flag to pass linker flags through the system compiler.
23910 lt_prog_compiler_wl_GCJ='-Wl,'
23911 if test "$host_cpu" = ia64; then
23912 # AIX 5 now supports IA64 processor
23913 lt_prog_compiler_static_GCJ='-Bstatic'
23915 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23919 # PIC is the default on this platform
23920 # Common symbols not allowed in MH_DYLIB files
23921 case $cc_basename in
23923 lt_prog_compiler_pic_GCJ='-qnocommon'
23924 lt_prog_compiler_wl_GCJ='-Wl,'
23929 mingw* | pw32* | os2*)
23930 # This hack is so that the source file can tell whether it is being
23931 # built for inclusion in a dll (and should export symbols for example).
23932 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23935 hpux9* | hpux10* | hpux11*)
23936 lt_prog_compiler_wl_GCJ='-Wl,'
23937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23938 # not for PA HP-UX.
23944 lt_prog_compiler_pic_GCJ='+Z'
23947 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23948 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23951 irix5* | irix6* | nonstopux*)
23952 lt_prog_compiler_wl_GCJ='-Wl,'
23953 # PIC (with -KPIC) is the default.
23954 lt_prog_compiler_static_GCJ='-non_shared'
23958 lt_prog_compiler_pic_GCJ='-KPIC'
23959 lt_prog_compiler_static_GCJ='-Bstatic'
23963 case $cc_basename in
23965 lt_prog_compiler_wl_GCJ='-Wl,'
23966 lt_prog_compiler_pic_GCJ='-KPIC'
23967 lt_prog_compiler_static_GCJ='-static'
23969 pgcc* | pgf77* | pgf90* | pgf95*)
23970 # Portland Group compilers (*not* the Pentium gcc compiler,
23971 # which looks to be a dead project)
23972 lt_prog_compiler_wl_GCJ='-Wl,'
23973 lt_prog_compiler_pic_GCJ='-fpic'
23974 lt_prog_compiler_static_GCJ='-Bstatic'
23977 lt_prog_compiler_wl_GCJ='-Wl,'
23978 # All Alpha code is PIC.
23979 lt_prog_compiler_static_GCJ='-non_shared'
23984 osf3* | osf4* | osf5*)
23985 lt_prog_compiler_wl_GCJ='-Wl,'
23986 # All OSF/1 code is PIC.
23987 lt_prog_compiler_static_GCJ='-non_shared'
23991 lt_prog_compiler_pic_GCJ='-KPIC'
23992 lt_prog_compiler_static_GCJ='-Bstatic'
23993 case $cc_basename in
23994 f77* | f90* | f95*)
23995 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23997 lt_prog_compiler_wl_GCJ='-Wl,';;
24002 lt_prog_compiler_wl_GCJ='-Qoption ld '
24003 lt_prog_compiler_pic_GCJ='-PIC'
24004 lt_prog_compiler_static_GCJ='-Bstatic'
24007 sysv4 | sysv4.2uw2* | sysv4.3*)
24008 lt_prog_compiler_wl_GCJ='-Wl,'
24009 lt_prog_compiler_pic_GCJ='-KPIC'
24010 lt_prog_compiler_static_GCJ='-Bstatic'
24014 if test -d /usr/nec ;then
24015 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24016 lt_prog_compiler_static_GCJ='-Bstatic'
24020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24021 lt_prog_compiler_wl_GCJ='-Wl,'
24022 lt_prog_compiler_pic_GCJ='-KPIC'
24023 lt_prog_compiler_static_GCJ='-Bstatic'
24027 lt_prog_compiler_wl_GCJ='-Wl,'
24028 lt_prog_compiler_can_build_shared_GCJ=no
24032 lt_prog_compiler_pic_GCJ='-pic'
24033 lt_prog_compiler_static_GCJ='-Bstatic'
24037 lt_prog_compiler_can_build_shared_GCJ=no
24042 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24043 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24046 # Check to make sure the PIC flag actually works.
24048 if test -n "$lt_prog_compiler_pic_GCJ"; then
24050 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24051 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24052 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24055 lt_prog_compiler_pic_works_GCJ=no
24056 ac_outfile=conftest.$ac_objext
24057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24058 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24059 # Insert the option either (1) after the last *FLAGS variable, or
24060 # (2) before a word containing "conftest.", or (3) at the end.
24061 # Note that $ac_compile itself does not contain backslashes and begins
24062 # with a dollar sign (not a hyphen), so the echo should work correctly.
24063 # The option is referenced via a variable to avoid confusing sed.
24064 lt_compile=`echo "$ac_compile" | $SED \
24065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24067 -e 's:$: $lt_compiler_flag:'`
24068 (eval echo "\"\$as_me:24068: $lt_compile\"" >&5)
24069 (eval "$lt_compile" 2>conftest.err)
24071 cat conftest.err >&5
24072 echo "$as_me:24072: \$? = $ac_status" >&5
24073 if (exit $ac_status) && test -s "$ac_outfile"; then
24074 # The compiler can only warn and ignore the option if not recognized
24075 # So say no if there are warnings other than the usual output.
24076 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24079 lt_prog_compiler_pic_works_GCJ=yes
24085 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24086 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24088 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24089 case $lt_prog_compiler_pic_GCJ in
24091 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24094 lt_prog_compiler_pic_GCJ=
24095 lt_prog_compiler_can_build_shared_GCJ=no
24100 # For platforms which do not support PIC, -DPIC is meaningless:
24102 lt_prog_compiler_pic_GCJ=
24105 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24110 # Check to make sure the static flag actually works.
24112 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24113 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24114 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24115 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 lt_prog_compiler_static_works_GCJ=no
24119 save_LDFLAGS="$LDFLAGS"
24120 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24121 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24123 # The linker can only warn and ignore the option if not recognized
24124 # So say no if there are warnings
24125 if test -s conftest.err; then
24126 # Append any errors to the config.log.
24127 cat conftest.err 1>&5
24128 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24130 if diff conftest.exp conftest.er2 >/dev/null; then
24131 lt_prog_compiler_static_works_GCJ=yes
24134 lt_prog_compiler_static_works_GCJ=yes
24138 LDFLAGS="$save_LDFLAGS"
24141 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24142 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24144 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24147 lt_prog_compiler_static_GCJ=
24151 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24152 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24153 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24156 lt_cv_prog_compiler_c_o_GCJ=no
24157 $rm -r conftest 2>/dev/null
24161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24163 lt_compiler_flag="-o out/conftest2.$ac_objext"
24164 # Insert the option either (1) after the last *FLAGS variable, or
24165 # (2) before a word containing "conftest.", or (3) at the end.
24166 # Note that $ac_compile itself does not contain backslashes and begins
24167 # with a dollar sign (not a hyphen), so the echo should work correctly.
24168 lt_compile=`echo "$ac_compile" | $SED \
24169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24171 -e 's:$: $lt_compiler_flag:'`
24172 (eval echo "\"\$as_me:24172: $lt_compile\"" >&5)
24173 (eval "$lt_compile" 2>out/conftest.err)
24175 cat out/conftest.err >&5
24176 echo "$as_me:24176: \$? = $ac_status" >&5
24177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24179 # The compiler can only warn and ignore the option if not recognized
24180 # So say no if there are warnings
24181 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24184 lt_cv_prog_compiler_c_o_GCJ=yes
24189 # SGI C++ compiler will create directory out/ii_files/ for
24190 # template instantiation
24191 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24192 $rm out/* && rmdir out
24198 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24199 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24202 hard_links="nottested"
24203 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24204 # do not overwrite the value of need_locks provided by the user
24205 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24206 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24211 ln conftest.a conftest.b 2>&5 || hard_links=no
24212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24213 { echo "$as_me:$LINENO: result: $hard_links" >&5
24214 echo "${ECHO_T}$hard_links" >&6; }
24215 if test "$hard_links" = no; then
24216 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24217 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24224 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24225 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24228 allow_undefined_flag_GCJ=
24229 enable_shared_with_static_runtimes_GCJ=no
24231 archive_expsym_cmds_GCJ=
24232 old_archive_From_new_cmds_GCJ=
24233 old_archive_from_expsyms_cmds_GCJ=
24234 export_dynamic_flag_spec_GCJ=
24235 whole_archive_flag_spec_GCJ=
24236 thread_safe_flag_spec_GCJ=
24237 hardcode_libdir_flag_spec_GCJ=
24238 hardcode_libdir_flag_spec_ld_GCJ=
24239 hardcode_libdir_separator_GCJ=
24240 hardcode_direct_GCJ=no
24241 hardcode_minus_L_GCJ=no
24242 hardcode_shlibpath_var_GCJ=unsupported
24243 link_all_deplibs_GCJ=unknown
24244 hardcode_automatic_GCJ=no
24246 module_expsym_cmds_GCJ=
24247 always_export_symbols_GCJ=no
24248 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24249 # include_expsyms should be a list of space-separated symbols to be *always*
24250 # included in the symbol list
24251 include_expsyms_GCJ=
24252 # exclude_expsyms can be an extended regexp of symbols to exclude
24253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24255 # as well as any symbol that contains `d'.
24256 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24258 # platforms (ab)use it in PIC code, but their linkers get confused if
24259 # the symbol is explicitly referenced. Since portable code cannot
24260 # rely on this symbol name, it's probably fine to never include it in
24261 # preloaded symbol tables.
24262 extract_expsyms_cmds=
24263 # Just being paranoid about ensuring that cc_basename is set.
24264 for cc_temp in $compiler""; do
24266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24275 cygwin* | mingw* | pw32*)
24276 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24277 # When not using gcc, we currently assume that we are using
24278 # Microsoft Visual C++.
24279 if test "$GCC" != yes; then
24284 # we just hope/assume this is gcc and not c89 (= MSVC++)
24293 if test "$with_gnu_ld" = yes; then
24294 # If archive_cmds runs LD, not CC, wlarc should be empty
24297 # Set some defaults for GNU ld with shared library support. These
24298 # are reset later if shared libraries are not supported. Putting them
24299 # here allows them to be overridden if necessary.
24300 runpath_var=LD_RUN_PATH
24301 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24302 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24303 # ancient GNU ld didn't support --whole-archive et. al.
24304 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24305 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24307 whole_archive_flag_spec_GCJ=
24309 supports_anon_versioning=no
24310 case `$LD -v 2>/dev/null` in
24311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24314 *\ 2.11.*) ;; # other 2.11 versions
24315 *) supports_anon_versioning=yes ;;
24318 # See if GNU ld supports shared libraries.
24320 aix3* | aix4* | aix5*)
24321 # On AIX/PPC, the GNU linker is very broken
24322 if test "$host_cpu" != ia64; then
24326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24327 *** to be unable to reliably create shared libraries on AIX.
24328 *** Therefore, libtool is disabling shared libraries support. If you
24329 *** really care for shared libraries, you may want to modify your PATH
24330 *** so that a non-GNU linker is found, and then restart.
24337 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)'
24338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24339 hardcode_minus_L_GCJ=yes
24341 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24342 # that the semantics of dynamic libraries on AmigaOS, at least up
24343 # to version 4, is to share data among multiple programs linked
24344 # with the same dynamic library. Since this doesn't match the
24345 # behavior of shared libraries on other platforms, we can't use
24351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24352 allow_undefined_flag_GCJ=unsupported
24353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24354 # support --undefined. This deserves some investigation. FIXME
24355 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24361 cygwin* | mingw* | pw32*)
24362 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24363 # as there is no search path for DLLs.
24364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24365 allow_undefined_flag_GCJ=unsupported
24366 always_export_symbols_GCJ=no
24367 enable_shared_with_static_runtimes_GCJ=yes
24368 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24370 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24372 # If the export-symbols file already is a .def file (1st line
24373 # is EXPORTS), use it as is; otherwise, prepend...
24374 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24375 cp $export_symbols $output_objdir/$soname.def;
24377 echo EXPORTS > $output_objdir/$soname.def;
24378 cat $export_symbols >> $output_objdir/$soname.def;
24380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24387 hardcode_direct_GCJ=no
24388 hardcode_shlibpath_var_GCJ=no
24389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24390 export_dynamic_flag_spec_GCJ='${wl}-E'
24391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24392 # Instead, shared libraries are loaded at an image base (0x10000000 by
24393 # default) and relocated if they conflict, which is a slow very memory
24394 # consuming and fragmenting process. To avoid this, we pick a random,
24395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24397 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'
24398 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'
24402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24404 case $cc_basename,$host_cpu in
24405 pgcc*) # Portland Group C compiler
24406 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'
24407 tmp_addflag=' $pic_flag'
24409 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24410 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'
24411 tmp_addflag=' $pic_flag -Mnomain' ;;
24412 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24413 tmp_addflag=' -i_dynamic' ;;
24414 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24415 tmp_addflag=' -i_dynamic -nofor_main' ;;
24416 ifc* | ifort*) # Intel Fortran compiler
24417 tmp_addflag=' -nofor_main' ;;
24419 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24421 if test $supports_anon_versioning = yes; then
24422 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24424 $echo "local: *; };" >> $output_objdir/$libname.ver~
24425 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24434 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24438 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24443 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24448 *** create shared libraries on Solaris systems. Therefore, libtool
24449 *** is disabling shared libraries support. We urge you to upgrade GNU
24450 *** binutils to release 2.9.1 or newer. Another option is to modify
24451 *** your PATH or compiler configuration so that the native linker is
24452 *** used, and then restart.
24455 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24456 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24457 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24464 case `$LD -v 2>&1` in
24465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24470 *** reliably create shared libraries on SCO systems. Therefore, libtool
24471 *** is disabling shared libraries support. We urge you to upgrade GNU
24472 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24473 *** your PATH or compiler configuration so that the native linker is
24474 *** used, and then restart.
24479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24480 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24491 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24493 hardcode_direct_GCJ=yes
24494 hardcode_shlibpath_var_GCJ=no
24498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24507 if test "$ld_shlibs_GCJ" = no; then
24509 hardcode_libdir_flag_spec_GCJ=
24510 export_dynamic_flag_spec_GCJ=
24511 whole_archive_flag_spec_GCJ=
24514 # PORTME fill in a description of your system's linker (not GNU ld)
24517 allow_undefined_flag_GCJ=unsupported
24518 always_export_symbols_GCJ=yes
24519 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'
24520 # Note: this linker hardcodes the directories in LIBPATH if there
24521 # are no directories specified by -L.
24522 hardcode_minus_L_GCJ=yes
24523 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24524 # Neither direct hardcoding nor static linking is supported with a
24526 hardcode_direct_GCJ=unsupported
24531 if test "$host_cpu" = ia64; then
24532 # On IA64, the linker does run time linking by default, so we don't
24533 # have to do anything special.
24534 aix_use_runtimelinking=no
24535 exp_sym_flag='-Bexport'
24538 # If we're using GNU nm, then we don't want the "-C" option.
24539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24540 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24541 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'
24543 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'
24545 aix_use_runtimelinking=no
24547 # Test if we are trying to use run time linking or normal
24548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24549 # need to do runtime linking.
24550 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24551 for ld_flag in $LDFLAGS; do
24552 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24553 aix_use_runtimelinking=yes
24560 exp_sym_flag='-bexport'
24561 no_entry_flag='-bnoentry'
24564 # When large executables or shared objects are built, AIX ld can
24565 # have problems creating the table of contents. If linking a library
24566 # or program results in "error TOC overflow" add -mminimal-toc to
24567 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24568 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24570 archive_cmds_GCJ=''
24571 hardcode_direct_GCJ=yes
24572 hardcode_libdir_separator_GCJ=':'
24573 link_all_deplibs_GCJ=yes
24575 if test "$GCC" = yes; then
24576 case $host_os in aix4.[012]|aix4.[012].*)
24577 # We only want to do this on AIX 4.2 and lower, the check
24578 # below for broken collect2 doesn't work under 4.3+
24579 collect2name=`${CC} -print-prog-name=collect2`
24580 if test -f "$collect2name" && \
24581 strings "$collect2name" | grep resolve_lib_name >/dev/null
24583 # We have reworked collect2
24584 hardcode_direct_GCJ=yes
24586 # We have old collect2
24587 hardcode_direct_GCJ=unsupported
24588 # It fails to find uninstalled libraries when the uninstalled
24589 # path is not listed in the libpath. Setting hardcode_minus_L
24590 # to unsupported forces relinking
24591 hardcode_minus_L_GCJ=yes
24592 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24593 hardcode_libdir_separator_GCJ=
24597 shared_flag='-shared'
24598 if test "$aix_use_runtimelinking" = yes; then
24599 shared_flag="$shared_flag "'${wl}-G'
24603 if test "$host_cpu" = ia64; then
24604 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24605 # chokes on -Wl,-G. The following line is correct:
24608 if test "$aix_use_runtimelinking" = yes; then
24609 shared_flag='${wl}-G'
24611 shared_flag='${wl}-bM:SRE'
24616 # It seems that -bexpall does not export symbols beginning with
24617 # underscore (_), so it is better to generate a list of symbols to export.
24618 always_export_symbols_GCJ=yes
24619 if test "$aix_use_runtimelinking" = yes; then
24620 # Warning - without using the other runtime loading flags (-brtl),
24621 # -berok will link without error, but may produce a broken library.
24622 allow_undefined_flag_GCJ='-berok'
24623 # Determine the default libpath from the value encoded in an empty executable.
24624 cat >conftest.$ac_ext <<_ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_link") 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } &&
24653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24654 { (case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_try") 2>&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; } &&
24663 { ac_try='test -s conftest$ac_exeext'
24664 { (case "(($ac_try" in
24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669 (eval "$ac_try") 2>&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; }; then
24674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24676 # Check for a 64-bit object if we didn't find anything.
24677 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; }
24680 echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24686 rm -f core conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
24688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24690 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24691 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"
24693 if test "$host_cpu" = ia64; then
24694 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24695 allow_undefined_flag_GCJ="-z nodefs"
24696 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"
24698 # Determine the default libpath from the value encoded in an empty executable.
24699 cat >conftest.$ac_ext <<_ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24714 rm -f conftest.$ac_objext conftest$ac_exeext
24715 if { (ac_try="$ac_link"
24716 case "(($ac_try" in
24717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718 *) ac_try_echo=$ac_try;;
24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721 (eval "$ac_link") 2>conftest.er1
24723 grep -v '^ *+' conftest.er1 >conftest.err
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
24728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24729 { (case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_try") 2>&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; } &&
24738 { ac_try='test -s conftest$ac_exeext'
24739 { (case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_try") 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; }; then
24749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24751 # Check for a 64-bit object if we didn't find anything.
24752 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; }
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24761 rm -f core conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
24763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24765 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24766 # Warning - without using the other run time loading flags,
24767 # -berok will link without error, but may produce a broken library.
24768 no_undefined_flag_GCJ=' ${wl}-bernotok'
24769 allow_undefined_flag_GCJ=' ${wl}-berok'
24770 # Exported symbols can be pulled into shared objects from archives
24771 whole_archive_flag_spec_GCJ='$convenience'
24772 archive_cmds_need_lc_GCJ=yes
24773 # This is similar to how AIX traditionally builds its shared libraries.
24774 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'
24780 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)'
24781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24782 hardcode_minus_L_GCJ=yes
24783 # see comment about different semantics on the GNU ld section
24788 export_dynamic_flag_spec_GCJ=-rdynamic
24791 cygwin* | mingw* | pw32*)
24792 # When not using gcc, we currently assume that we are using
24793 # Microsoft Visual C++.
24794 # hardcode_libdir_flag_spec is actually meaningless, as there is
24795 # no search path for DLLs.
24796 hardcode_libdir_flag_spec_GCJ=' '
24797 allow_undefined_flag_GCJ=unsupported
24798 # Tell ltmain to make .lib files, not .a files.
24800 # Tell ltmain to make .dll files, not .so files.
24802 # FIXME: Setting linknames here is a bad hack.
24803 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24804 # The linker will automatically build a .lib file if we build a DLL.
24805 old_archive_From_new_cmds_GCJ='true'
24806 # FIXME: Should let the user specify the lib program.
24807 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24808 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24809 enable_shared_with_static_runtimes_GCJ=yes
24812 darwin* | rhapsody*)
24814 rhapsody* | darwin1.[012])
24815 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24818 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24819 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24821 case ${MACOSX_DEPLOYMENT_TARGET} in
24823 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24826 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24832 archive_cmds_need_lc_GCJ=no
24833 hardcode_direct_GCJ=no
24834 hardcode_automatic_GCJ=yes
24835 hardcode_shlibpath_var_GCJ=unsupported
24836 whole_archive_flag_spec_GCJ=''
24837 link_all_deplibs_GCJ=yes
24838 if test "$GCC" = yes ; then
24839 output_verbose_link_cmd='echo'
24840 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24841 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24842 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24843 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}'
24844 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}'
24846 case $cc_basename in
24848 output_verbose_link_cmd='echo'
24849 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24850 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24852 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}'
24853 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}'
24863 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865 hardcode_shlibpath_var_GCJ=no
24872 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24873 # support. Future versions do this automatically, but an explicit c++rt0.o
24874 # does not break anything, and helps significantly (at the cost of a little
24877 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24878 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24879 hardcode_direct_GCJ=yes
24880 hardcode_shlibpath_var_GCJ=no
24883 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24885 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24886 hardcode_direct_GCJ=yes
24887 hardcode_minus_L_GCJ=yes
24888 hardcode_shlibpath_var_GCJ=no
24891 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24892 freebsd* | kfreebsd*-gnu | dragonfly*)
24893 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24895 hardcode_direct_GCJ=yes
24896 hardcode_shlibpath_var_GCJ=no
24900 if test "$GCC" = yes; then
24901 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'
24903 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'
24905 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24906 hardcode_libdir_separator_GCJ=:
24907 hardcode_direct_GCJ=yes
24909 # hardcode_minus_L: Not really in the search PATH,
24910 # but as the default location of the library.
24911 hardcode_minus_L_GCJ=yes
24912 export_dynamic_flag_spec_GCJ='${wl}-E'
24916 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24917 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24919 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24921 if test "$with_gnu_ld" = no; then
24922 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24923 hardcode_libdir_separator_GCJ=:
24925 hardcode_direct_GCJ=yes
24926 export_dynamic_flag_spec_GCJ='${wl}-E'
24928 # hardcode_minus_L: Not really in the search PATH,
24929 # but as the default location of the library.
24930 hardcode_minus_L_GCJ=yes
24935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24938 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24944 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24950 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24953 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24956 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24960 if test "$with_gnu_ld" = no; then
24961 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24962 hardcode_libdir_separator_GCJ=:
24966 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24967 hardcode_direct_GCJ=no
24968 hardcode_shlibpath_var_GCJ=no
24971 hardcode_direct_GCJ=yes
24972 export_dynamic_flag_spec_GCJ='${wl}-E'
24974 # hardcode_minus_L: Not really in the search PATH,
24975 # but as the default location of the library.
24976 hardcode_minus_L_GCJ=yes
24982 irix5* | irix6* | nonstopux*)
24983 if test "$GCC" = yes; then
24984 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'
24986 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'
24987 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24990 hardcode_libdir_separator_GCJ=:
24991 link_all_deplibs_GCJ=yes
24995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24998 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25001 hardcode_direct_GCJ=yes
25002 hardcode_shlibpath_var_GCJ=no
25006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25007 hardcode_direct_GCJ=yes
25008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25009 hardcode_libdir_separator_GCJ=:
25010 hardcode_shlibpath_var_GCJ=no
25014 hardcode_direct_GCJ=yes
25015 hardcode_shlibpath_var_GCJ=no
25016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25017 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25018 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25020 export_dynamic_flag_spec_GCJ='${wl}-E'
25023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25037 hardcode_minus_L_GCJ=yes
25038 allow_undefined_flag_GCJ=unsupported
25039 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'
25040 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25044 if test "$GCC" = yes; then
25045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25046 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'
25048 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25049 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'
25051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25052 hardcode_libdir_separator_GCJ=:
25055 osf4* | osf5*) # as osf3* with the addition of -msym flag
25056 if test "$GCC" = yes; then
25057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25058 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'
25059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25061 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25062 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'
25063 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~
25064 $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'
25066 # Both c and cxx compiler support -rpath directly
25067 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25069 hardcode_libdir_separator_GCJ=:
25073 no_undefined_flag_GCJ=' -z text'
25074 if test "$GCC" = yes; then
25076 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25077 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25078 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25081 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25082 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25083 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25085 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25086 hardcode_shlibpath_var_GCJ=no
25088 solaris2.[0-5] | solaris2.[0-5].*) ;;
25090 # The compiler driver will combine linker options so we
25091 # cannot just pass the convience library names through
25092 # without $wl, iff we do not link with $LD.
25093 # Luckily, gcc supports the same syntax we need for Sun Studio.
25094 # Supported since Solaris 2.6 (maybe 2.5.1?)
25097 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25099 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' ;;
25102 link_all_deplibs_GCJ=yes
25106 if test "x$host_vendor" = xsequent; then
25107 # Use $CC to link under sequent, because it throws in some extra .o
25108 # files that make .init and .fini sections work.
25109 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25111 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114 hardcode_direct_GCJ=yes
25115 hardcode_minus_L_GCJ=yes
25116 hardcode_shlibpath_var_GCJ=no
25120 case $host_vendor in
25122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25123 hardcode_direct_GCJ=yes # is this really true???
25126 ## LD is ld it makes a PLAMLIB
25127 ## CC just makes a GrossModule.
25128 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25129 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25130 hardcode_direct_GCJ=no
25133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25134 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25137 runpath_var='LD_RUN_PATH'
25138 hardcode_shlibpath_var_GCJ=no
25142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25143 hardcode_shlibpath_var_GCJ=no
25144 export_dynamic_flag_spec_GCJ='-Bexport'
25148 if test -d /usr/nec; then
25149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25150 hardcode_shlibpath_var_GCJ=no
25151 runpath_var=LD_RUN_PATH
25152 hardcode_runpath_var=yes
25157 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25158 no_undefined_flag_GCJ='${wl}-z,text'
25159 archive_cmds_need_lc_GCJ=no
25160 hardcode_shlibpath_var_GCJ=no
25161 runpath_var='LD_RUN_PATH'
25163 if test "$GCC" = yes; then
25164 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25165 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25167 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25172 sysv5* | sco3.2v5* | sco5v6*)
25173 # Note: We can NOT use -z defs as we might desire, because we do not
25174 # link with -lc, and that would cause any symbols used from libc to
25175 # always be unresolved, which means just about no library would
25176 # ever link correctly. If we're not using GNU ld we use -z text
25177 # though, which does catch some bad symbols but isn't as heavy-handed
25179 no_undefined_flag_GCJ='${wl}-z,text'
25180 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25181 archive_cmds_need_lc_GCJ=no
25182 hardcode_shlibpath_var_GCJ=no
25183 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25184 hardcode_libdir_separator_GCJ=':'
25185 link_all_deplibs_GCJ=yes
25186 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25187 runpath_var='LD_RUN_PATH'
25189 if test "$GCC" = yes; then
25190 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25191 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25199 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25200 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25201 hardcode_shlibpath_var_GCJ=no
25210 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25211 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25212 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25215 # Do we need to explicitly link libc?
25217 case "x$archive_cmds_need_lc_GCJ" in
25219 # Assume -lc should be added
25220 archive_cmds_need_lc_GCJ=yes
25222 if test "$enable_shared" = yes && test "$GCC" = yes; then
25223 case $archive_cmds_GCJ in
25225 # FIXME: we may have to deal with multi-command sequences.
25228 # Test whether the compiler implicitly links with -lc since on some
25229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25230 # to ld, don't add -lc before -lgcc.
25231 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25232 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25237 (eval $ac_compile) 2>&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } 2>conftest.err; then
25243 libobjs=conftest.$ac_objext
25245 wl=$lt_prog_compiler_wl_GCJ
25246 pic_flag=$lt_prog_compiler_pic_GCJ
25252 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25253 allow_undefined_flag_GCJ=
25254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25255 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }
25260 archive_cmds_need_lc_GCJ=no
25262 archive_cmds_need_lc_GCJ=yes
25264 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25266 cat conftest.err 1>&5
25269 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25270 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25277 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25279 library_names_spec=
25280 libname_spec='lib$name'
25284 postuninstall_cmds=
25288 shlibpath_overrides_runpath=unknown
25290 dynamic_linker="$host_os ld.so"
25291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25292 if test "$GCC" = yes; then
25293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25295 # if the path contains ";" then we assume it to be the separator
25296 # otherwise default to the standard path separator (i.e. ":") - it is
25297 # assumed that no part of a normal pathname contains ";" but that should
25298 # okay in the real world where ";" in dirpaths is itself problematic.
25299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25306 need_lib_prefix=unknown
25307 hardcode_into_libs=no
25309 # when you set need_version to no, make sure it does not cause -set_version
25310 # flags to be left without arguments
25311 need_version=unknown
25316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25317 shlibpath_var=LIBPATH
25319 # AIX 3 has no versioning support, so we append a major version to the name.
25320 soname_spec='${libname}${release}${shared_ext}$major'
25327 hardcode_into_libs=yes
25328 if test "$host_cpu" = ia64; then
25329 # AIX 5 supports IA64
25330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25331 shlibpath_var=LD_LIBRARY_PATH
25333 # With GCC up to 2.95.x, collect2 would create an import file
25334 # for dependence libraries. The import file would start with
25335 # the line `#! .'. This would cause the generated library to
25336 # depend on `.', always an invalid library. This was fixed in
25337 # development snapshots of GCC prior to 3.0.
25339 aix4 | aix4.[01] | aix4.[01].*)
25340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25345 can_build_shared=no
25349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25350 # soname into executable. Probably we can add versioning support to
25351 # collect2, so additional links can be useful in future.
25352 if test "$aix_use_runtimelinking" = yes; then
25353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25354 # instead of lib<name>.a to let people know that these are not
25355 # typical AIX shared libraries.
25356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25358 # We preserve .a as extension for shared libraries through AIX4.2
25359 # and later when we are not doing run time linking.
25360 library_names_spec='${libname}${release}.a $libname.a'
25361 soname_spec='${libname}${release}${shared_ext}$major'
25363 shlibpath_var=LIBPATH
25368 library_names_spec='$libname.ixlibrary $libname.a'
25369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25370 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'
25374 library_names_spec='${libname}${shared_ext}'
25375 dynamic_linker="$host_os ld.so"
25376 shlibpath_var=LIBRARY_PATH
25382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25383 soname_spec='${libname}${release}${shared_ext}$major'
25384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25385 shlibpath_var=LD_LIBRARY_PATH
25386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25388 # the default ld.so.conf also contains /usr/contrib/lib and
25389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25390 # libtool to hard-code these into programs
25393 cygwin* | mingw* | pw32*)
25394 version_type=windows
25399 case $GCC,$host_os in
25400 yes,cygwin* | yes,mingw* | yes,pw32*)
25401 library_names_spec='$libname.dll.a'
25402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25403 postinstall_cmds='base_file=`basename \${file}`~
25404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25405 dldir=$destdir/`dirname \$dlpath`~
25406 test -d \$dldir || mkdir -p \$dldir~
25407 $install_prog $dir/$dlname \$dldir/$dlname~
25408 chmod a+x \$dldir/$dlname'
25409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25410 dlpath=$dir/\$dldll~
25412 shlibpath_overrides_runpath=yes
25416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25421 # MinGW DLLs use traditional 'lib' prefix
25422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25425 # It is most probably a Windows format PATH printed by
25426 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25427 # path with ; separators, and with drive letters. We can handle the
25428 # drive letters (cygwin fileutils understands them), so leave them,
25429 # especially as we might pass files found there to a mingw objdump,
25430 # which wouldn't understand a cygwinified path. Ahh.
25431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25437 # pw32 DLLs use 'pw' prefix rather than 'lib'
25438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25447 dynamic_linker='Win32 ld.exe'
25448 # FIXME: first we should search . and the directory the executable is in
25452 darwin* | rhapsody*)
25453 dynamic_linker="$host_os dyld"
25454 version_type=darwin
25457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25458 soname_spec='${libname}${release}${major}$shared_ext'
25459 shlibpath_overrides_runpath=yes
25460 shlibpath_var=DYLD_LIBRARY_PATH
25461 shrext_cmds='.dylib'
25462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25463 if test "$GCC" = yes; then
25464 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"`
25466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25476 soname_spec='${libname}${release}${shared_ext}$major'
25477 shlibpath_var=LD_LIBRARY_PATH
25488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25489 soname_spec='${libname}${release}${shared_ext}$major'
25490 shlibpath_var=LD_LIBRARY_PATH
25491 shlibpath_overrides_runpath=no
25492 hardcode_into_libs=yes
25493 dynamic_linker='GNU ld.so'
25496 freebsd* | dragonfly*)
25497 # DragonFly does not have aout. When/if they implement a new
25498 # versioning mechanism, adjust this.
25499 if test -x /usr/bin/objformat; then
25500 objformat=`/usr/bin/objformat`
25503 freebsd[123]*) objformat=aout ;;
25504 *) objformat=elf ;;
25507 version_type=freebsd-$objformat
25508 case $version_type in
25510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25519 shlibpath_var=LD_LIBRARY_PATH
25522 shlibpath_overrides_runpath=yes
25524 freebsd3.[01]* | freebsdelf3.[01]*)
25525 shlibpath_overrides_runpath=yes
25526 hardcode_into_libs=yes
25528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25530 shlibpath_overrides_runpath=no
25531 hardcode_into_libs=yes
25533 freebsd*) # from 4.6 on
25534 shlibpath_overrides_runpath=yes
25535 hardcode_into_libs=yes
25544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25545 soname_spec='${libname}${release}${shared_ext}$major'
25546 shlibpath_var=LD_LIBRARY_PATH
25547 hardcode_into_libs=yes
25550 hpux9* | hpux10* | hpux11*)
25551 # Give a soname corresponding to the major version so that dld.sl refuses to
25552 # link against other versions.
25559 hardcode_into_libs=yes
25560 dynamic_linker="$host_os dld.so"
25561 shlibpath_var=LD_LIBRARY_PATH
25562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25564 soname_spec='${libname}${release}${shared_ext}$major'
25565 if test "X$HPUX_IA64_MODE" = X32; then
25566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25574 hardcode_into_libs=yes
25575 dynamic_linker="$host_os dld.sl"
25576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25579 soname_spec='${libname}${release}${shared_ext}$major'
25580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25585 dynamic_linker="$host_os dld.sl"
25586 shlibpath_var=SHLIB_PATH
25587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589 soname_spec='${libname}${release}${shared_ext}$major'
25592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25593 postinstall_cmds='chmod 555 $lib'
25600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25601 soname_spec='${libname}${release}${shared_ext}$major'
25602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25603 shlibpath_var=LD_LIBRARY_PATH
25604 shlibpath_overrides_runpath=no
25605 hardcode_into_libs=yes
25608 irix5* | irix6* | nonstopux*)
25610 nonstopux*) version_type=nonstopux ;;
25612 if test "$lt_cv_prog_gnu_ld" = yes; then
25620 soname_spec='${libname}${release}${shared_ext}$major'
25621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25623 irix5* | nonstopux*)
25624 libsuff= shlibsuff=
25627 case $LD in # libtool.m4 will add one of these switches to LD
25628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25629 libsuff= shlibsuff= libmagic=32-bit;;
25630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25631 libsuff=32 shlibsuff=N32 libmagic=N32;;
25632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25634 *) libsuff= shlibsuff= libmagic=never-match;;
25638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25639 shlibpath_overrides_runpath=no
25640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25642 hardcode_into_libs=yes
25645 # No shared lib support for Linux oldld, aout, or coff.
25646 linux*oldld* | linux*aout* | linux*coff*)
25650 # This must be Linux ELF.
25655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25656 soname_spec='${libname}${release}${shared_ext}$major'
25657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25658 shlibpath_var=LD_LIBRARY_PATH
25659 shlibpath_overrides_runpath=no
25660 # This implies no fast_install, which is unacceptable.
25661 # Some rework will be needed to allow for fast_install
25662 # before this can be enabled.
25663 hardcode_into_libs=yes
25665 # Append ld.so.conf contents to the search path
25666 if test -f /etc/ld.so.conf; then
25667 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' ' '`
25668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25671 # We used to test for /lib/ld.so.1 and disable shared libraries on
25672 # powerpc, because MkLinux only supported shared libraries with the
25673 # GNU dynamic linker. Since this was broken with cross compilers,
25674 # most powerpc-linux boxes support dynamic linking these days and
25675 # people can always --disable-shared, the test was removed, and we
25676 # assume the GNU/Linux dynamic linker is in use.
25677 dynamic_linker='GNU/Linux ld.so'
25684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25685 soname_spec='${libname}${release}${shared_ext}$major'
25686 shlibpath_var=LD_LIBRARY_PATH
25687 shlibpath_overrides_runpath=no
25688 hardcode_into_libs=yes
25689 dynamic_linker='GNU ld.so'
25696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25699 dynamic_linker='NetBSD (a.out) ld.so'
25701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25702 soname_spec='${libname}${release}${shared_ext}$major'
25703 dynamic_linker='NetBSD ld.elf_so'
25705 shlibpath_var=LD_LIBRARY_PATH
25706 shlibpath_overrides_runpath=yes
25707 hardcode_into_libs=yes
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25713 shlibpath_var=LD_LIBRARY_PATH
25714 shlibpath_overrides_runpath=yes
25721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 soname_spec='${libname}${release}${shared_ext}$major'
25723 shlibpath_var=LD_LIBRARY_PATH
25724 shlibpath_overrides_runpath=yes
25729 sys_lib_dlsearch_path_spec="/usr/lib"
25731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25734 *) need_version=no ;;
25736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25738 shlibpath_var=LD_LIBRARY_PATH
25739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25741 openbsd2.[89] | openbsd2.[89].*)
25742 shlibpath_overrides_runpath=no
25745 shlibpath_overrides_runpath=yes
25749 shlibpath_overrides_runpath=yes
25754 libname_spec='$name'
25757 library_names_spec='$libname${shared_ext} $libname.a'
25758 dynamic_linker='OS/2 ld.exe'
25759 shlibpath_var=LIBPATH
25762 osf3* | osf4* | osf5*)
25766 soname_spec='${libname}${release}${shared_ext}$major'
25767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25768 shlibpath_var=LD_LIBRARY_PATH
25769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25778 soname_spec='${libname}${release}${shared_ext}$major'
25779 shlibpath_var=LD_LIBRARY_PATH
25780 shlibpath_overrides_runpath=yes
25781 hardcode_into_libs=yes
25782 # ldd complains unless libraries are executable
25783 postinstall_cmds='chmod +x $lib'
25788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25790 shlibpath_var=LD_LIBRARY_PATH
25791 shlibpath_overrides_runpath=yes
25792 if test "$with_gnu_ld" = yes; then
25800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25801 soname_spec='${libname}${release}${shared_ext}$major'
25802 shlibpath_var=LD_LIBRARY_PATH
25803 case $host_vendor in
25805 shlibpath_overrides_runpath=no
25807 export_dynamic_flag_spec='${wl}-Blargedynsym'
25808 runpath_var=LD_RUN_PATH
25816 shlibpath_overrides_runpath=no
25817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25823 if test -d /usr/nec ;then
25825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25826 soname_spec='$libname${shared_ext}.$major'
25827 shlibpath_var=LD_LIBRARY_PATH
25831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25832 version_type=freebsd-elf
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 shlibpath_var=LD_LIBRARY_PATH
25838 hardcode_into_libs=yes
25839 if test "$with_gnu_ld" = yes; then
25840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25841 shlibpath_overrides_runpath=no
25843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25844 shlibpath_overrides_runpath=yes
25847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25851 sys_lib_dlsearch_path_spec='/usr/lib'
25856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25857 soname_spec='${libname}${release}${shared_ext}$major'
25858 shlibpath_var=LD_LIBRARY_PATH
25865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25866 echo "${ECHO_T}$dynamic_linker" >&6; }
25867 test "$dynamic_linker" = no && can_build_shared=no
25869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25870 if test "$GCC" = yes; then
25871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25876 hardcode_action_GCJ=
25877 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25878 test -n "$runpath_var_GCJ" || \
25879 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25881 # We can hardcode non-existant directories.
25882 if test "$hardcode_direct_GCJ" != no &&
25883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25884 # have to relink, otherwise we might link with an installed library
25885 # when we should be linking with a yet-to-be-installed one
25886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25887 test "$hardcode_minus_L_GCJ" != no; then
25888 # Linking always hardcodes the temporary library directory.
25889 hardcode_action_GCJ=relink
25891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25892 hardcode_action_GCJ=immediate
25895 # We cannot hardcode anything, or else we can only hardcode existing
25897 hardcode_action_GCJ=unsupported
25899 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25900 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25902 if test "$hardcode_action_GCJ" = relink; then
25903 # Fast installation is not supported
25904 enable_fast_install=no
25905 elif test "$shlibpath_overrides_runpath" = yes ||
25906 test "$enable_shared" = no; then
25907 # Fast installation is not necessary
25908 enable_fast_install=needless
25912 # The else clause should only fire when bootstrapping the
25913 # libtool distribution, otherwise you forgot to ship ltmain.sh
25914 # with your package, and you will get complaints that there are
25915 # no rules to generate ltmain.sh.
25916 if test -f "$ltmain"; then
25917 # See if we are running on zsh, and set the options which allow our commands through
25918 # without removal of \ escapes.
25919 if test -n "${ZSH_VERSION+set}" ; then
25920 setopt NO_GLOB_SUBST
25922 # Now quote all the things that may contain metacharacters while being
25923 # careful not to overquote the AC_SUBSTed values. We take copies of the
25924 # variables and quote the copies for generation of the libtool script.
25925 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25927 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25928 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25929 deplibs_check_method reload_flag reload_cmds need_locks \
25930 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25931 lt_cv_sys_global_symbol_to_c_name_address \
25932 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25933 old_postinstall_cmds old_postuninstall_cmds \
25937 lt_prog_compiler_wl_GCJ \
25938 lt_prog_compiler_pic_GCJ \
25939 lt_prog_compiler_static_GCJ \
25940 lt_prog_compiler_no_builtin_flag_GCJ \
25941 export_dynamic_flag_spec_GCJ \
25942 thread_safe_flag_spec_GCJ \
25943 whole_archive_flag_spec_GCJ \
25944 enable_shared_with_static_runtimes_GCJ \
25945 old_archive_cmds_GCJ \
25946 old_archive_from_new_cmds_GCJ \
25947 predep_objects_GCJ \
25948 postdep_objects_GCJ \
25951 compiler_lib_search_path_GCJ \
25953 archive_expsym_cmds_GCJ \
25954 postinstall_cmds_GCJ \
25955 postuninstall_cmds_GCJ \
25956 old_archive_from_expsyms_cmds_GCJ \
25957 allow_undefined_flag_GCJ \
25958 no_undefined_flag_GCJ \
25959 export_symbols_cmds_GCJ \
25960 hardcode_libdir_flag_spec_GCJ \
25961 hardcode_libdir_flag_spec_ld_GCJ \
25962 hardcode_libdir_separator_GCJ \
25963 hardcode_automatic_GCJ \
25965 module_expsym_cmds_GCJ \
25966 lt_cv_prog_compiler_c_o_GCJ \
25967 exclude_expsyms_GCJ \
25968 include_expsyms_GCJ; do
25971 old_archive_cmds_GCJ | \
25972 old_archive_from_new_cmds_GCJ | \
25973 archive_cmds_GCJ | \
25974 archive_expsym_cmds_GCJ | \
25975 module_cmds_GCJ | \
25976 module_expsym_cmds_GCJ | \
25977 old_archive_from_expsyms_cmds_GCJ | \
25978 export_symbols_cmds_GCJ | \
25979 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25980 postinstall_cmds | postuninstall_cmds | \
25981 old_postinstall_cmds | old_postuninstall_cmds | \
25982 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25983 # Double-quote double-evaled strings.
25984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25993 *'\$0 --fallback-echo"')
25994 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26000 cat <<__EOF__ >> "$cfgfile"
26001 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26005 # Shell to use when invoking shell scripts.
26008 # Whether or not to build shared libraries.
26009 build_libtool_libs=$enable_shared
26011 # Whether or not to build static libraries.
26012 build_old_libs=$enable_static
26014 # Whether or not to add -lc for building shared libraries.
26015 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26017 # Whether or not to disallow shared libs when runtime libs are static
26018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26020 # Whether or not to optimize for fast installation.
26021 fast_install=$enable_fast_install
26024 host_alias=$host_alias
26028 # The build system.
26029 build_alias=$build_alias
26033 # An echo program that does not interpret backslashes.
26038 AR_FLAGS=$lt_AR_FLAGS
26043 # LTCC compiler flags.
26044 LTCFLAGS=$lt_LTCFLAGS
26046 # A language-specific compiler.
26047 CC=$lt_compiler_GCJ
26049 # Is the compiler the GNU C compiler?
26055 # The linker used to build libraries.
26058 # Whether we need hard or soft links.
26061 # A BSD-compatible nm program.
26064 # A symbol stripping program
26067 # Used to examine libraries when file_magic_cmd begins "file"
26068 MAGIC_CMD=$MAGIC_CMD
26070 # Used on cygwin: DLL creation program.
26073 # Used on cygwin: object dumper.
26076 # Used on cygwin: assembler.
26079 # The name of the directory that contains temporary libtool files.
26082 # How to create reloadable object files.
26083 reload_flag=$lt_reload_flag
26084 reload_cmds=$lt_reload_cmds
26086 # How to pass a linker flag through the compiler.
26087 wl=$lt_lt_prog_compiler_wl_GCJ
26089 # Object file suffix (normally "o").
26090 objext="$ac_objext"
26092 # Old archive suffix (normally "a").
26095 # Shared library suffix (normally ".so").
26096 shrext_cmds='$shrext_cmds'
26098 # Executable file suffix (normally "").
26101 # Additional compiler flags for building library objects.
26102 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26105 # What is the maximum length of a command?
26106 max_cmd_len=$lt_cv_sys_max_cmd_len
26108 # Does compiler simultaneously support -c and -o options?
26109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26111 # Must we lock files when doing compilation?
26112 need_locks=$lt_need_locks
26114 # Do we need the lib prefix for modules?
26115 need_lib_prefix=$need_lib_prefix
26117 # Do we need a version for libraries?
26118 need_version=$need_version
26120 # Whether dlopen is supported.
26121 dlopen_support=$enable_dlopen
26123 # Whether dlopen of programs is supported.
26124 dlopen_self=$enable_dlopen_self
26126 # Whether dlopen of statically linked programs is supported.
26127 dlopen_self_static=$enable_dlopen_self_static
26129 # Compiler flag to prevent dynamic linking.
26130 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26132 # Compiler flag to turn off builtin functions.
26133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26135 # Compiler flag to allow reflexive dlopens.
26136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26138 # Compiler flag to generate shared objects directly from archives.
26139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26141 # Compiler flag to generate thread-safe objects.
26142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26144 # Library versioning type.
26145 version_type=$version_type
26147 # Format of library name prefix.
26148 libname_spec=$lt_libname_spec
26150 # List of archive names. First name is the real one, the rest are links.
26151 # The last name is the one that the linker finds with -lNAME.
26152 library_names_spec=$lt_library_names_spec
26154 # The coded name of the library, if different from the real name.
26155 soname_spec=$lt_soname_spec
26157 # Commands used to build and install an old-style archive.
26159 old_archive_cmds=$lt_old_archive_cmds_GCJ
26160 old_postinstall_cmds=$lt_old_postinstall_cmds
26161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26163 # Create an old-style archive from a shared archive.
26164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26166 # Create a temporary old-style archive to link instead of a shared archive.
26167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26169 # Commands used to build and install a shared archive.
26170 archive_cmds=$lt_archive_cmds_GCJ
26171 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26172 postinstall_cmds=$lt_postinstall_cmds
26173 postuninstall_cmds=$lt_postuninstall_cmds
26175 # Commands used to build a loadable module (assumed same as above if empty)
26176 module_cmds=$lt_module_cmds_GCJ
26177 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26179 # Commands to strip libraries.
26180 old_striplib=$lt_old_striplib
26181 striplib=$lt_striplib
26183 # Dependencies to place before the objects being linked to create a
26185 predep_objects=$lt_predep_objects_GCJ
26187 # Dependencies to place after the objects being linked to create a
26189 postdep_objects=$lt_postdep_objects_GCJ
26191 # Dependencies to place before the objects being linked to create a
26193 predeps=$lt_predeps_GCJ
26195 # Dependencies to place after the objects being linked to create a
26197 postdeps=$lt_postdeps_GCJ
26199 # The library search path used internally by the compiler when linking
26200 # a shared library.
26201 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26203 # Method to check whether dependent libraries are shared objects.
26204 deplibs_check_method=$lt_deplibs_check_method
26206 # Command to use when deplibs_check_method == file_magic.
26207 file_magic_cmd=$lt_file_magic_cmd
26209 # Flag that allows shared libraries with undefined symbols to be built.
26210 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26212 # Flag that forces no undefined symbols.
26213 no_undefined_flag=$lt_no_undefined_flag_GCJ
26215 # Commands used to finish a libtool library installation in a directory.
26216 finish_cmds=$lt_finish_cmds
26218 # Same as above, but a single script fragment to be evaled but not shown.
26219 finish_eval=$lt_finish_eval
26221 # Take the output of nm and produce a listing of raw symbols and C names.
26222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26224 # Transform the output of nm in a proper C declaration
26225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26227 # Transform the output of nm in a C name address pair
26228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26230 # This is the shared library runtime path variable.
26231 runpath_var=$runpath_var
26233 # This is the shared library path variable.
26234 shlibpath_var=$shlibpath_var
26236 # Is shlibpath searched before the hard-coded library search path?
26237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26239 # How to hardcode a shared library path into an executable.
26240 hardcode_action=$hardcode_action_GCJ
26242 # Whether we should hardcode library paths into libraries.
26243 hardcode_into_libs=$hardcode_into_libs
26245 # Flag to hardcode \$libdir into a binary during linking.
26246 # This must work even if \$libdir does not exist.
26247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26249 # If ld is used when linking, flag to hardcode \$libdir into
26250 # a binary during linking. This must work even if \$libdir does
26252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26254 # Whether we need a single -rpath flag with a separated argument.
26255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26258 # resulting binary.
26259 hardcode_direct=$hardcode_direct_GCJ
26261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26262 # resulting binary.
26263 hardcode_minus_L=$hardcode_minus_L_GCJ
26265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26266 # the resulting binary.
26267 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26269 # Set to yes if building a shared library automatically hardcodes DIR into the library
26270 # and all subsequent libraries and executables linked against it.
26271 hardcode_automatic=$hardcode_automatic_GCJ
26273 # Variables whose values should be saved in libtool wrapper scripts and
26274 # restored at relink time.
26275 variables_saved_for_relink="$variables_saved_for_relink"
26277 # Whether libtool must link a program against all its dependency libraries.
26278 link_all_deplibs=$link_all_deplibs_GCJ
26280 # Compile-time system search path for libraries
26281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26283 # Run-time system search path for libraries
26284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26286 # Fix the shell variable \$srcfile for the compiler.
26287 fix_srcfile_path="$fix_srcfile_path_GCJ"
26289 # Set to yes if exported symbols are required.
26290 always_export_symbols=$always_export_symbols_GCJ
26292 # The commands to list exported symbols.
26293 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26295 # The commands to extract the exported symbol list from a shared archive.
26296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26298 # Symbols that should not be listed in the preloaded symbols.
26299 exclude_expsyms=$lt_exclude_expsyms_GCJ
26301 # Symbols that must always be exported.
26302 include_expsyms=$lt_include_expsyms_GCJ
26304 # ### END LIBTOOL TAG CONFIG: $tagname
26310 # If there is no Makefile yet, we rely on a make rule to execute
26311 # `config.status --recheck' to rerun these tests and create the
26312 # libtool script then.
26313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26314 if test -f "$ltmain_in"; then
26315 test -f Makefile && make "$ltmain"
26321 ac_cpp='$CPP $CPPFLAGS'
26322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26335 ac_cpp='$CPP $CPPFLAGS'
26336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26341 # Source file extension for RC test sources.
26344 # Object file extension for compiled RC test sources.
26348 # Code to be used in simple compile tests
26349 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26351 # Code to be used in simple link tests
26352 lt_simple_link_test_code="$lt_simple_compile_test_code"
26354 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26356 # If no C compiler was specified, use CC.
26359 # If no C compiler flags were specified, use CFLAGS.
26360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26362 # Allow CC to be a program name with arguments.
26366 # save warnings/boilerplate of simple test code
26367 ac_outfile=conftest.$ac_objext
26368 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26370 _lt_compiler_boilerplate=`cat conftest.err`
26373 ac_outfile=conftest.$ac_objext
26374 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26376 _lt_linker_boilerplate=`cat conftest.err`
26380 # Allow CC to be a program name with arguments.
26385 for cc_temp in $compiler""; do
26387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26393 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26395 lt_cv_prog_compiler_c_o_RC=yes
26397 # The else clause should only fire when bootstrapping the
26398 # libtool distribution, otherwise you forgot to ship ltmain.sh
26399 # with your package, and you will get complaints that there are
26400 # no rules to generate ltmain.sh.
26401 if test -f "$ltmain"; then
26402 # See if we are running on zsh, and set the options which allow our commands through
26403 # without removal of \ escapes.
26404 if test -n "${ZSH_VERSION+set}" ; then
26405 setopt NO_GLOB_SUBST
26407 # Now quote all the things that may contain metacharacters while being
26408 # careful not to overquote the AC_SUBSTed values. We take copies of the
26409 # variables and quote the copies for generation of the libtool script.
26410 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26412 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26413 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26414 deplibs_check_method reload_flag reload_cmds need_locks \
26415 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26416 lt_cv_sys_global_symbol_to_c_name_address \
26417 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26418 old_postinstall_cmds old_postuninstall_cmds \
26422 lt_prog_compiler_wl_RC \
26423 lt_prog_compiler_pic_RC \
26424 lt_prog_compiler_static_RC \
26425 lt_prog_compiler_no_builtin_flag_RC \
26426 export_dynamic_flag_spec_RC \
26427 thread_safe_flag_spec_RC \
26428 whole_archive_flag_spec_RC \
26429 enable_shared_with_static_runtimes_RC \
26430 old_archive_cmds_RC \
26431 old_archive_from_new_cmds_RC \
26432 predep_objects_RC \
26433 postdep_objects_RC \
26436 compiler_lib_search_path_RC \
26438 archive_expsym_cmds_RC \
26439 postinstall_cmds_RC \
26440 postuninstall_cmds_RC \
26441 old_archive_from_expsyms_cmds_RC \
26442 allow_undefined_flag_RC \
26443 no_undefined_flag_RC \
26444 export_symbols_cmds_RC \
26445 hardcode_libdir_flag_spec_RC \
26446 hardcode_libdir_flag_spec_ld_RC \
26447 hardcode_libdir_separator_RC \
26448 hardcode_automatic_RC \
26450 module_expsym_cmds_RC \
26451 lt_cv_prog_compiler_c_o_RC \
26452 exclude_expsyms_RC \
26453 include_expsyms_RC; do
26456 old_archive_cmds_RC | \
26457 old_archive_from_new_cmds_RC | \
26458 archive_cmds_RC | \
26459 archive_expsym_cmds_RC | \
26461 module_expsym_cmds_RC | \
26462 old_archive_from_expsyms_cmds_RC | \
26463 export_symbols_cmds_RC | \
26464 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26465 postinstall_cmds | postuninstall_cmds | \
26466 old_postinstall_cmds | old_postuninstall_cmds | \
26467 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26468 # Double-quote double-evaled strings.
26469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26478 *'\$0 --fallback-echo"')
26479 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26485 cat <<__EOF__ >> "$cfgfile"
26486 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26488 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26490 # Shell to use when invoking shell scripts.
26493 # Whether or not to build shared libraries.
26494 build_libtool_libs=$enable_shared
26496 # Whether or not to build static libraries.
26497 build_old_libs=$enable_static
26499 # Whether or not to add -lc for building shared libraries.
26500 build_libtool_need_lc=$archive_cmds_need_lc_RC
26502 # Whether or not to disallow shared libs when runtime libs are static
26503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26505 # Whether or not to optimize for fast installation.
26506 fast_install=$enable_fast_install
26509 host_alias=$host_alias
26513 # The build system.
26514 build_alias=$build_alias
26518 # An echo program that does not interpret backslashes.
26523 AR_FLAGS=$lt_AR_FLAGS
26528 # LTCC compiler flags.
26529 LTCFLAGS=$lt_LTCFLAGS
26531 # A language-specific compiler.
26534 # Is the compiler the GNU C compiler?
26540 # The linker used to build libraries.
26543 # Whether we need hard or soft links.
26546 # A BSD-compatible nm program.
26549 # A symbol stripping program
26552 # Used to examine libraries when file_magic_cmd begins "file"
26553 MAGIC_CMD=$MAGIC_CMD
26555 # Used on cygwin: DLL creation program.
26558 # Used on cygwin: object dumper.
26561 # Used on cygwin: assembler.
26564 # The name of the directory that contains temporary libtool files.
26567 # How to create reloadable object files.
26568 reload_flag=$lt_reload_flag
26569 reload_cmds=$lt_reload_cmds
26571 # How to pass a linker flag through the compiler.
26572 wl=$lt_lt_prog_compiler_wl_RC
26574 # Object file suffix (normally "o").
26575 objext="$ac_objext"
26577 # Old archive suffix (normally "a").
26580 # Shared library suffix (normally ".so").
26581 shrext_cmds='$shrext_cmds'
26583 # Executable file suffix (normally "").
26586 # Additional compiler flags for building library objects.
26587 pic_flag=$lt_lt_prog_compiler_pic_RC
26590 # What is the maximum length of a command?
26591 max_cmd_len=$lt_cv_sys_max_cmd_len
26593 # Does compiler simultaneously support -c and -o options?
26594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26596 # Must we lock files when doing compilation?
26597 need_locks=$lt_need_locks
26599 # Do we need the lib prefix for modules?
26600 need_lib_prefix=$need_lib_prefix
26602 # Do we need a version for libraries?
26603 need_version=$need_version
26605 # Whether dlopen is supported.
26606 dlopen_support=$enable_dlopen
26608 # Whether dlopen of programs is supported.
26609 dlopen_self=$enable_dlopen_self
26611 # Whether dlopen of statically linked programs is supported.
26612 dlopen_self_static=$enable_dlopen_self_static
26614 # Compiler flag to prevent dynamic linking.
26615 link_static_flag=$lt_lt_prog_compiler_static_RC
26617 # Compiler flag to turn off builtin functions.
26618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26620 # Compiler flag to allow reflexive dlopens.
26621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26623 # Compiler flag to generate shared objects directly from archives.
26624 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26626 # Compiler flag to generate thread-safe objects.
26627 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26629 # Library versioning type.
26630 version_type=$version_type
26632 # Format of library name prefix.
26633 libname_spec=$lt_libname_spec
26635 # List of archive names. First name is the real one, the rest are links.
26636 # The last name is the one that the linker finds with -lNAME.
26637 library_names_spec=$lt_library_names_spec
26639 # The coded name of the library, if different from the real name.
26640 soname_spec=$lt_soname_spec
26642 # Commands used to build and install an old-style archive.
26644 old_archive_cmds=$lt_old_archive_cmds_RC
26645 old_postinstall_cmds=$lt_old_postinstall_cmds
26646 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26648 # Create an old-style archive from a shared archive.
26649 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26651 # Create a temporary old-style archive to link instead of a shared archive.
26652 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26654 # Commands used to build and install a shared archive.
26655 archive_cmds=$lt_archive_cmds_RC
26656 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26657 postinstall_cmds=$lt_postinstall_cmds
26658 postuninstall_cmds=$lt_postuninstall_cmds
26660 # Commands used to build a loadable module (assumed same as above if empty)
26661 module_cmds=$lt_module_cmds_RC
26662 module_expsym_cmds=$lt_module_expsym_cmds_RC
26664 # Commands to strip libraries.
26665 old_striplib=$lt_old_striplib
26666 striplib=$lt_striplib
26668 # Dependencies to place before the objects being linked to create a
26670 predep_objects=$lt_predep_objects_RC
26672 # Dependencies to place after the objects being linked to create a
26674 postdep_objects=$lt_postdep_objects_RC
26676 # Dependencies to place before the objects being linked to create a
26678 predeps=$lt_predeps_RC
26680 # Dependencies to place after the objects being linked to create a
26682 postdeps=$lt_postdeps_RC
26684 # The library search path used internally by the compiler when linking
26685 # a shared library.
26686 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26688 # Method to check whether dependent libraries are shared objects.
26689 deplibs_check_method=$lt_deplibs_check_method
26691 # Command to use when deplibs_check_method == file_magic.
26692 file_magic_cmd=$lt_file_magic_cmd
26694 # Flag that allows shared libraries with undefined symbols to be built.
26695 allow_undefined_flag=$lt_allow_undefined_flag_RC
26697 # Flag that forces no undefined symbols.
26698 no_undefined_flag=$lt_no_undefined_flag_RC
26700 # Commands used to finish a libtool library installation in a directory.
26701 finish_cmds=$lt_finish_cmds
26703 # Same as above, but a single script fragment to be evaled but not shown.
26704 finish_eval=$lt_finish_eval
26706 # Take the output of nm and produce a listing of raw symbols and C names.
26707 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26709 # Transform the output of nm in a proper C declaration
26710 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26712 # Transform the output of nm in a C name address pair
26713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26715 # This is the shared library runtime path variable.
26716 runpath_var=$runpath_var
26718 # This is the shared library path variable.
26719 shlibpath_var=$shlibpath_var
26721 # Is shlibpath searched before the hard-coded library search path?
26722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26724 # How to hardcode a shared library path into an executable.
26725 hardcode_action=$hardcode_action_RC
26727 # Whether we should hardcode library paths into libraries.
26728 hardcode_into_libs=$hardcode_into_libs
26730 # Flag to hardcode \$libdir into a binary during linking.
26731 # This must work even if \$libdir does not exist.
26732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26734 # If ld is used when linking, flag to hardcode \$libdir into
26735 # a binary during linking. This must work even if \$libdir does
26737 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26739 # Whether we need a single -rpath flag with a separated argument.
26740 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26742 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26743 # resulting binary.
26744 hardcode_direct=$hardcode_direct_RC
26746 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26747 # resulting binary.
26748 hardcode_minus_L=$hardcode_minus_L_RC
26750 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26751 # the resulting binary.
26752 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26754 # Set to yes if building a shared library automatically hardcodes DIR into the library
26755 # and all subsequent libraries and executables linked against it.
26756 hardcode_automatic=$hardcode_automatic_RC
26758 # Variables whose values should be saved in libtool wrapper scripts and
26759 # restored at relink time.
26760 variables_saved_for_relink="$variables_saved_for_relink"
26762 # Whether libtool must link a program against all its dependency libraries.
26763 link_all_deplibs=$link_all_deplibs_RC
26765 # Compile-time system search path for libraries
26766 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26768 # Run-time system search path for libraries
26769 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26771 # Fix the shell variable \$srcfile for the compiler.
26772 fix_srcfile_path="$fix_srcfile_path_RC"
26774 # Set to yes if exported symbols are required.
26775 always_export_symbols=$always_export_symbols_RC
26777 # The commands to list exported symbols.
26778 export_symbols_cmds=$lt_export_symbols_cmds_RC
26780 # The commands to extract the exported symbol list from a shared archive.
26781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26783 # Symbols that should not be listed in the preloaded symbols.
26784 exclude_expsyms=$lt_exclude_expsyms_RC
26786 # Symbols that must always be exported.
26787 include_expsyms=$lt_include_expsyms_RC
26789 # ### END LIBTOOL TAG CONFIG: $tagname
26795 # If there is no Makefile yet, we rely on a make rule to execute
26796 # `config.status --recheck' to rerun these tests and create the
26797 # libtool script then.
26798 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26799 if test -f "$ltmain_in"; then
26800 test -f Makefile && make "$ltmain"
26806 ac_cpp='$CPP $CPPFLAGS'
26807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26816 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26817 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26818 { (exit 1); exit 1; }; }
26822 # Append the new tag name to the list of available tags.
26823 if test -n "$tagname" ; then
26824 available_tags="$available_tags $tagname"
26830 # Now substitute the updated list of available tags.
26831 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26832 mv "${ofile}T" "$ofile"
26836 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26837 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26838 { (exit 1); exit 1; }; }
26844 # This can be used to rebuild libtool when needed
26845 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26847 # Always use our own libtool.
26848 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26850 # Prevent multiple expansion
26872 if test "$lt_cv_dlopen_self" = "yes" ; then
26874 cat >>confdefs.h <<\_ACEOF
26875 #define CAN_DLOPEN_SELF 1
26880 if test "$WITH_LLVMGCCDIR" = "default" ; then
26881 LLVMGCC="llvm-gcc${EXEEXT}"
26882 LLVMGXX="llvm-g++${EXEEXT}"
26883 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26884 set dummy $LLVMGCC; ac_word=$2
26885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26887 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26888 echo $ECHO_N "(cached) $ECHO_C" >&6
26892 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26896 for as_dir in $PATH
26899 test -z "$as_dir" && as_dir=.
26900 for ac_exec_ext in '' $ac_executable_extensions; do
26901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26902 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26913 LLVMGCC=$ac_cv_path_LLVMGCC
26914 if test -n "$LLVMGCC"; then
26915 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26916 echo "${ECHO_T}$LLVMGCC" >&6; }
26918 { echo "$as_me:$LINENO: result: no" >&5
26919 echo "${ECHO_T}no" >&6; }
26923 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26924 set dummy $LLVMGXX; ac_word=$2
26925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26927 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26932 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26936 for as_dir in $PATH
26939 test -z "$as_dir" && as_dir=.
26940 for ac_exec_ext in '' $ac_executable_extensions; do
26941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26942 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26953 LLVMGXX=$ac_cv_path_LLVMGXX
26954 if test -n "$LLVMGXX"; then
26955 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26956 echo "${ECHO_T}$LLVMGXX" >&6; }
26958 { echo "$as_me:$LINENO: result: no" >&5
26959 echo "${ECHO_T}no" >&6; }
26964 if test -z "$LLVMGCC"; then
26965 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26967 if test -z "$LLVMGXX"; then
26968 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26976 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26977 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26990 if test "$GCC" != "yes" && test "$ICC" != "yes"
26992 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26993 echo "$as_me: error: gcc|icc required but not found" >&2;}
26994 { (exit 1); exit 1; }; }
26997 if test "$GXX" != "yes" && test "$IXX" != "yes"
26999 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27000 echo "$as_me: error: g++|icc required but not found" >&2;}
27001 { (exit 1); exit 1; }; }
27004 if test "$GCC" = "yes"
27006 cat >conftest.$ac_ext <<_ACEOF
27007 #if !defined(__GNUC__) || __GNUC__ < 3
27008 #error Unsupported GCC version
27012 rm -f conftest.$ac_objext
27013 if { (ac_try="$ac_compile"
27014 case "(($ac_try" in
27015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27016 *) ac_try_echo=$ac_try;;
27018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27019 (eval "$ac_compile") 2>conftest.er1
27021 grep -v '^ *+' conftest.er1 >conftest.err
27023 cat conftest.err >&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } &&
27026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27027 { (case "(($ac_try" in
27028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029 *) ac_try_echo=$ac_try;;
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032 (eval "$ac_try") 2>&5
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; } &&
27036 { ac_try='test -s conftest.$ac_objext'
27037 { (case "(($ac_try" in
27038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039 *) ac_try_echo=$ac_try;;
27041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27042 (eval "$ac_try") 2>&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; }; then
27048 echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27051 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27053 { (exit 1); exit 1; }; }
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059 if test -z "$llvm_cv_gnu_make_command"
27061 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27062 echo "$as_me: error: GNU Make required but not found" >&2;}
27063 { (exit 1); exit 1; }; }
27066 { echo "$as_me:$LINENO: result: ok" >&5
27067 echo "${ECHO_T}ok" >&6; }
27071 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27072 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27073 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 ac_check_lib_save_LIBS=$LIBS
27078 cat >conftest.$ac_ext <<_ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h. */
27085 /* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
27095 return elf_begin ();
27100 rm -f conftest.$ac_objext conftest$ac_exeext
27101 if { (ac_try="$ac_link"
27102 case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_link") 2>conftest.er1
27109 grep -v '^ *+' conftest.er1 >conftest.err
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_try") 2>&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
27134 ac_cv_lib_elf_elf_begin=yes
27136 echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27139 ac_cv_lib_elf_elf_begin=no
27142 rm -f core conftest.err conftest.$ac_objext \
27143 conftest$ac_exeext conftest.$ac_ext
27144 LIBS=$ac_check_lib_save_LIBS
27146 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27147 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27148 if test $ac_cv_lib_elf_elf_begin = yes; then
27149 cat >>confdefs.h <<_ACEOF
27150 #define HAVE_LIBELF 1
27158 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27159 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27160 if test "${ac_cv_lib_m_sin+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 ac_check_lib_save_LIBS=$LIBS
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27172 /* Override any GCC internal prototype to avoid an error.
27173 Use char because int might match the return type of a GCC
27174 builtin and then its argument prototype would still apply. */
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (ac_try="$ac_link"
27189 case "(($ac_try" in
27190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_link") 2>conftest.er1
27196 grep -v '^ *+' conftest.er1 >conftest.err
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } &&
27201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27202 { (case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_try") 2>&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); }; } &&
27211 { ac_try='test -s conftest$ac_exeext'
27212 { (case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_try") 2>&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; }; then
27221 ac_cv_lib_m_sin=yes
27223 echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27229 rm -f core conftest.err conftest.$ac_objext \
27230 conftest$ac_exeext conftest.$ac_ext
27231 LIBS=$ac_check_lib_save_LIBS
27233 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27234 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27235 if test $ac_cv_lib_m_sin = yes; then
27236 cat >>confdefs.h <<_ACEOF
27237 #define HAVE_LIBM 1
27244 if test "$llvm_cv_os_type" = "MingW" ; then
27246 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27247 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27248 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27249 echo $ECHO_N "(cached) $ECHO_C" >&6
27251 ac_check_lib_save_LIBS=$LIBS
27252 LIBS="-limagehlp $LIBS"
27253 cat >conftest.$ac_ext <<_ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h. */
27269 rm -f conftest.$ac_objext conftest$ac_exeext
27270 if { (ac_try="$ac_link"
27271 case "(($ac_try" in
27272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273 *) ac_try_echo=$ac_try;;
27275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27276 (eval "$ac_link") 2>conftest.er1
27278 grep -v '^ *+' conftest.er1 >conftest.err
27280 cat conftest.err >&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } &&
27283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27284 { (case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_try") 2>&5
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; } &&
27293 { ac_try='test -s conftest$ac_exeext'
27294 { (case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299 (eval "$ac_try") 2>&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; }; then
27303 ac_cv_lib_imagehlp_main=yes
27305 echo "$as_me: failed program was:" >&5
27306 sed 's/^/| /' conftest.$ac_ext >&5
27308 ac_cv_lib_imagehlp_main=no
27311 rm -f core conftest.err conftest.$ac_objext \
27312 conftest$ac_exeext conftest.$ac_ext
27313 LIBS=$ac_check_lib_save_LIBS
27315 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27316 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27317 if test $ac_cv_lib_imagehlp_main = yes; then
27318 cat >>confdefs.h <<_ACEOF
27319 #define HAVE_LIBIMAGEHLP 1
27322 LIBS="-limagehlp $LIBS"
27327 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27328 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27329 if test "${ac_cv_lib_psapi_main+set}" = set; then
27330 echo $ECHO_N "(cached) $ECHO_C" >&6
27332 ac_check_lib_save_LIBS=$LIBS
27333 LIBS="-lpsapi $LIBS"
27334 cat >conftest.$ac_ext <<_ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h. */
27350 rm -f conftest.$ac_objext conftest$ac_exeext
27351 if { (ac_try="$ac_link"
27352 case "(($ac_try" in
27353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354 *) ac_try_echo=$ac_try;;
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357 (eval "$ac_link") 2>conftest.er1
27359 grep -v '^ *+' conftest.er1 >conftest.err
27361 cat conftest.err >&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); } &&
27364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27365 { (case "(($ac_try" in
27366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367 *) ac_try_echo=$ac_try;;
27369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370 (eval "$ac_try") 2>&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest$ac_exeext'
27375 { (case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_try") 2>&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; }; then
27384 ac_cv_lib_psapi_main=yes
27386 echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27389 ac_cv_lib_psapi_main=no
27392 rm -f core conftest.err conftest.$ac_objext \
27393 conftest$ac_exeext conftest.$ac_ext
27394 LIBS=$ac_check_lib_save_LIBS
27396 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27397 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27398 if test $ac_cv_lib_psapi_main = yes; then
27399 cat >>confdefs.h <<_ACEOF
27400 #define HAVE_LIBPSAPI 1
27403 LIBS="-lpsapi $LIBS"
27409 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27410 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27411 if test "${ac_cv_search_dlopen+set}" = set; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27414 ac_func_search_save_LIBS=$LIBS
27415 cat >conftest.$ac_ext <<_ACEOF
27418 cat confdefs.h >>conftest.$ac_ext
27419 cat >>conftest.$ac_ext <<_ACEOF
27420 /* end confdefs.h. */
27422 /* Override any GCC internal prototype to avoid an error.
27423 Use char because int might match the return type of a GCC
27424 builtin and then its argument prototype would still apply. */
27437 for ac_lib in '' dl; do
27438 if test -z "$ac_lib"; then
27439 ac_res="none required"
27442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27444 rm -f conftest.$ac_objext conftest$ac_exeext
27445 if { (ac_try="$ac_link"
27446 case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451 (eval "$ac_link") 2>conftest.er1
27453 grep -v '^ *+' conftest.er1 >conftest.err
27455 cat conftest.err >&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } &&
27458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27459 { (case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_try") 2>&5
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; } &&
27468 { ac_try='test -s conftest$ac_exeext'
27469 { (case "(($ac_try" in
27470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471 *) ac_try_echo=$ac_try;;
27473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474 (eval "$ac_try") 2>&5
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; }; then
27478 ac_cv_search_dlopen=$ac_res
27480 echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27486 rm -f core conftest.err conftest.$ac_objext \
27488 if test "${ac_cv_search_dlopen+set}" = set; then
27492 if test "${ac_cv_search_dlopen+set}" = set; then
27495 ac_cv_search_dlopen=no
27497 rm conftest.$ac_ext
27498 LIBS=$ac_func_search_save_LIBS
27500 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27501 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27502 ac_res=$ac_cv_search_dlopen
27503 if test "$ac_res" != no; then
27504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27506 cat >>confdefs.h <<\_ACEOF
27507 #define HAVE_DLOPEN 1
27511 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27512 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27516 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27517 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27518 if test "${ac_cv_search_mallinfo+set}" = set; then
27519 echo $ECHO_N "(cached) $ECHO_C" >&6
27521 ac_func_search_save_LIBS=$LIBS
27522 cat >conftest.$ac_ext <<_ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h. */
27529 /* Override any GCC internal prototype to avoid an error.
27530 Use char because int might match the return type of a GCC
27531 builtin and then its argument prototype would still apply. */
27539 return mallinfo ();
27544 for ac_lib in '' malloc; do
27545 if test -z "$ac_lib"; then
27546 ac_res="none required"
27549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27551 rm -f conftest.$ac_objext conftest$ac_exeext
27552 if { (ac_try="$ac_link"
27553 case "(($ac_try" in
27554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27555 *) ac_try_echo=$ac_try;;
27557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558 (eval "$ac_link") 2>conftest.er1
27560 grep -v '^ *+' conftest.er1 >conftest.err
27562 cat conftest.err >&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } &&
27565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27566 { (case "(($ac_try" in
27567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27568 *) ac_try_echo=$ac_try;;
27570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27571 (eval "$ac_try") 2>&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; } &&
27575 { ac_try='test -s conftest$ac_exeext'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
27585 ac_cv_search_mallinfo=$ac_res
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27593 rm -f core conftest.err conftest.$ac_objext \
27595 if test "${ac_cv_search_mallinfo+set}" = set; then
27599 if test "${ac_cv_search_mallinfo+set}" = set; then
27602 ac_cv_search_mallinfo=no
27604 rm conftest.$ac_ext
27605 LIBS=$ac_func_search_save_LIBS
27607 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27608 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27609 ac_res=$ac_cv_search_mallinfo
27610 if test "$ac_res" != no; then
27611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27613 cat >>confdefs.h <<\_ACEOF
27614 #define HAVE_MALLINFO 1
27620 if test "$ENABLE_THREADS" -eq 1 ; then
27622 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27623 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27624 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 ac_check_lib_save_LIBS=$LIBS
27628 LIBS="-lpthread $LIBS"
27629 cat >conftest.$ac_ext <<_ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h. */
27636 /* Override any GCC internal prototype to avoid an error.
27637 Use char because int might match the return type of a GCC
27638 builtin and then its argument prototype would still apply. */
27642 char pthread_mutex_init ();
27646 return pthread_mutex_init ();
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (ac_try="$ac_link"
27653 case "(($ac_try" in
27654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655 *) ac_try_echo=$ac_try;;
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658 (eval "$ac_link") 2>conftest.er1
27660 grep -v '^ *+' conftest.er1 >conftest.err
27662 cat conftest.err >&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); } &&
27665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27666 { (case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671 (eval "$ac_try") 2>&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; } &&
27675 { ac_try='test -s conftest$ac_exeext'
27676 { (case "(($ac_try" in
27677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678 *) ac_try_echo=$ac_try;;
27680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681 (eval "$ac_try") 2>&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; }; then
27685 ac_cv_lib_pthread_pthread_mutex_init=yes
27687 echo "$as_me: failed program was:" >&5
27688 sed 's/^/| /' conftest.$ac_ext >&5
27690 ac_cv_lib_pthread_pthread_mutex_init=no
27693 rm -f core conftest.err conftest.$ac_objext \
27694 conftest$ac_exeext conftest.$ac_ext
27695 LIBS=$ac_check_lib_save_LIBS
27697 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27698 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27699 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27700 cat >>confdefs.h <<_ACEOF
27701 #define HAVE_LIBPTHREAD 1
27704 LIBS="-lpthread $LIBS"
27708 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27709 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27710 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27713 ac_func_search_save_LIBS=$LIBS
27714 cat >conftest.$ac_ext <<_ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h. */
27721 /* Override any GCC internal prototype to avoid an error.
27722 Use char because int might match the return type of a GCC
27723 builtin and then its argument prototype would still apply. */
27727 char pthread_mutex_lock ();
27731 return pthread_mutex_lock ();
27736 for ac_lib in '' pthread; do
27737 if test -z "$ac_lib"; then
27738 ac_res="none required"
27741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27743 rm -f conftest.$ac_objext conftest$ac_exeext
27744 if { (ac_try="$ac_link"
27745 case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_link") 2>conftest.er1
27752 grep -v '^ *+' conftest.er1 >conftest.err
27754 cat conftest.err >&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); } &&
27757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27758 { (case "(($ac_try" in
27759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760 *) ac_try_echo=$ac_try;;
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_try") 2>&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; } &&
27767 { ac_try='test -s conftest$ac_exeext'
27768 { (case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_try") 2>&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; }; then
27777 ac_cv_search_pthread_mutex_lock=$ac_res
27779 echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27785 rm -f core conftest.err conftest.$ac_objext \
27787 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27791 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27794 ac_cv_search_pthread_mutex_lock=no
27796 rm conftest.$ac_ext
27797 LIBS=$ac_func_search_save_LIBS
27799 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27800 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27801 ac_res=$ac_cv_search_pthread_mutex_lock
27802 if test "$ac_res" != no; then
27803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27805 cat >>confdefs.h <<\_ACEOF
27806 #define HAVE_PTHREAD_MUTEX_LOCK 1
27814 # Check whether --with-udis86 was given.
27815 if test "${with_udis86+set}" = set; then
27816 withval=$with_udis86;
27821 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27824 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27825 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27826 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27829 ac_check_lib_save_LIBS=$LIBS
27830 LIBS="-ludis86 $LIBS"
27831 cat >conftest.$ac_ext <<_ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27838 /* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (ac_try="$ac_link"
27855 case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_link") 2>conftest.er1
27862 grep -v '^ *+' conftest.er1 >conftest.err
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } &&
27867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest$ac_exeext'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; }; then
27887 ac_cv_lib_udis86_ud_init=yes
27889 echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27892 ac_cv_lib_udis86_ud_init=no
27895 rm -f core conftest.err conftest.$ac_objext \
27896 conftest$ac_exeext conftest.$ac_ext
27897 LIBS=$ac_check_lib_save_LIBS
27899 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27900 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27901 if test $ac_cv_lib_udis86_ud_init = yes; then
27902 cat >>confdefs.h <<_ACEOF
27903 #define HAVE_LIBUDIS86 1
27906 LIBS="-ludis86 $LIBS"
27910 echo "Error! You need to have libudis86 around."
27922 cat >>confdefs.h <<_ACEOF
27923 #define USE_UDIS86 $USE_UDIS86
27933 ac_header_dirent=no
27934 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27935 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27936 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27937 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27939 echo $ECHO_N "(cached) $ECHO_C" >&6
27941 cat >conftest.$ac_ext <<_ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h. */
27947 #include <sys/types.h>
27959 rm -f conftest.$ac_objext
27960 if { (ac_try="$ac_compile"
27961 case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_compile") 2>conftest.er1
27968 grep -v '^ *+' conftest.er1 >conftest.err
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
27973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27974 { (case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_try") 2>&5
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest.$ac_objext'
27984 { (case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_try") 2>&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; }; then
27993 eval "$as_ac_Header=yes"
27995 echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27998 eval "$as_ac_Header=no"
28001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28003 ac_res=`eval echo '${'$as_ac_Header'}'`
28004 { echo "$as_me:$LINENO: result: $ac_res" >&5
28005 echo "${ECHO_T}$ac_res" >&6; }
28006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28007 cat >>confdefs.h <<_ACEOF
28008 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28011 ac_header_dirent=$ac_hdr; break
28015 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28016 if test $ac_header_dirent = dirent.h; then
28017 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28018 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28019 if test "${ac_cv_search_opendir+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 ac_func_search_save_LIBS=$LIBS
28023 cat >conftest.$ac_ext <<_ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h. */
28030 /* Override any GCC internal prototype to avoid an error.
28031 Use char because int might match the return type of a GCC
28032 builtin and then its argument prototype would still apply. */
28045 for ac_lib in '' dir; do
28046 if test -z "$ac_lib"; then
28047 ac_res="none required"
28050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
28054 case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_link") 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_cv_search_opendir=$ac_res
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28094 rm -f core conftest.err conftest.$ac_objext \
28096 if test "${ac_cv_search_opendir+set}" = set; then
28100 if test "${ac_cv_search_opendir+set}" = set; then
28103 ac_cv_search_opendir=no
28105 rm conftest.$ac_ext
28106 LIBS=$ac_func_search_save_LIBS
28108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28110 ac_res=$ac_cv_search_opendir
28111 if test "$ac_res" != no; then
28112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28119 if test "${ac_cv_search_opendir+set}" = set; then
28120 echo $ECHO_N "(cached) $ECHO_C" >&6
28122 ac_func_search_save_LIBS=$LIBS
28123 cat >conftest.$ac_ext <<_ACEOF
28126 cat confdefs.h >>conftest.$ac_ext
28127 cat >>conftest.$ac_ext <<_ACEOF
28128 /* end confdefs.h. */
28130 /* Override any GCC internal prototype to avoid an error.
28131 Use char because int might match the return type of a GCC
28132 builtin and then its argument prototype would still apply. */
28145 for ac_lib in '' x; do
28146 if test -z "$ac_lib"; then
28147 ac_res="none required"
28150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28152 rm -f conftest.$ac_objext conftest$ac_exeext
28153 if { (ac_try="$ac_link"
28154 case "(($ac_try" in
28155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156 *) ac_try_echo=$ac_try;;
28158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159 (eval "$ac_link") 2>conftest.er1
28161 grep -v '^ *+' conftest.er1 >conftest.err
28163 cat conftest.err >&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } &&
28166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28167 { (case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_try") 2>&5
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; } &&
28176 { ac_try='test -s conftest$ac_exeext'
28177 { (case "(($ac_try" in
28178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 *) ac_try_echo=$ac_try;;
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182 (eval "$ac_try") 2>&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; }; then
28186 ac_cv_search_opendir=$ac_res
28188 echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28194 rm -f core conftest.err conftest.$ac_objext \
28196 if test "${ac_cv_search_opendir+set}" = set; then
28200 if test "${ac_cv_search_opendir+set}" = set; then
28203 ac_cv_search_opendir=no
28205 rm conftest.$ac_ext
28206 LIBS=$ac_func_search_save_LIBS
28208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28210 ac_res=$ac_cv_search_opendir
28211 if test "$ac_res" != no; then
28212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28218 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28219 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28220 if test "${ac_cv_header_mmap_anon+set}" = set; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28224 ac_cpp='$CPP $CPPFLAGS'
28225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28229 cat >conftest.$ac_ext <<_ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h. */
28235 #include <sys/mman.h>
28236 #include <unistd.h>
28241 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28246 rm -f conftest.$ac_objext
28247 if { (ac_try="$ac_compile"
28248 case "(($ac_try" in
28249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28253 (eval "$ac_compile") 2>conftest.er1
28255 grep -v '^ *+' conftest.er1 >conftest.err
28257 cat conftest.err >&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
28260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28261 { (case "(($ac_try" in
28262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263 *) ac_try_echo=$ac_try;;
28265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266 (eval "$ac_try") 2>&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; } &&
28270 { ac_try='test -s conftest.$ac_objext'
28271 { (case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_try") 2>&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280 ac_cv_header_mmap_anon=yes
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28285 ac_cv_header_mmap_anon=no
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290 ac_cpp='$CPP $CPPFLAGS'
28291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28297 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28298 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28299 if test "$ac_cv_header_mmap_anon" = yes; then
28301 cat >>confdefs.h <<\_ACEOF
28302 #define HAVE_MMAP_ANONYMOUS 1
28307 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28308 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28309 if test "${ac_cv_header_stat_broken+set}" = set; then
28310 echo $ECHO_N "(cached) $ECHO_C" >&6
28312 cat >conftest.$ac_ext <<_ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h. */
28318 #include <sys/types.h>
28319 #include <sys/stat.h>
28321 #if defined S_ISBLK && defined S_IFDIR
28322 # if S_ISBLK (S_IFDIR)
28327 #if defined S_ISBLK && defined S_IFCHR
28328 # if S_ISBLK (S_IFCHR)
28333 #if defined S_ISLNK && defined S_IFREG
28334 # if S_ISLNK (S_IFREG)
28339 #if defined S_ISSOCK && defined S_IFREG
28340 # if S_ISSOCK (S_IFREG)
28346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28347 $EGREP "You lose" >/dev/null 2>&1; then
28348 ac_cv_header_stat_broken=yes
28350 ac_cv_header_stat_broken=no
28355 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28356 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28357 if test $ac_cv_header_stat_broken = yes; then
28359 cat >>confdefs.h <<\_ACEOF
28360 #define STAT_MACROS_BROKEN 1
28365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28367 if test "${ac_cv_header_stdc+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28370 cat >conftest.$ac_ext <<_ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h. */
28376 #include <stdlib.h>
28377 #include <stdarg.h>
28378 #include <string.h>
28389 rm -f conftest.$ac_objext
28390 if { (ac_try="$ac_compile"
28391 case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_compile") 2>conftest.er1
28398 grep -v '^ *+' conftest.er1 >conftest.err
28400 cat conftest.err >&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); } &&
28403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28404 { (case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_try") 2>&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; } &&
28413 { ac_try='test -s conftest.$ac_objext'
28414 { (case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_try") 2>&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; }; then
28423 ac_cv_header_stdc=yes
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 ac_cv_header_stdc=no
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433 if test $ac_cv_header_stdc = yes; then
28434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28435 cat >conftest.$ac_ext <<_ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h. */
28441 #include <string.h>
28444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28445 $EGREP "memchr" >/dev/null 2>&1; then
28448 ac_cv_header_stdc=no
28454 if test $ac_cv_header_stdc = yes; then
28455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28456 cat >conftest.$ac_ext <<_ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h. */
28462 #include <stdlib.h>
28465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28466 $EGREP "free" >/dev/null 2>&1; then
28469 ac_cv_header_stdc=no
28475 if test $ac_cv_header_stdc = yes; then
28476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28477 if test "$cross_compiling" = yes; then
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28487 #include <stdlib.h>
28488 #if ((' ' & 0x0FF) == 0x020)
28489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28492 # define ISLOWER(c) \
28493 (('a' <= (c) && (c) <= 'i') \
28494 || ('j' <= (c) && (c) <= 'r') \
28495 || ('s' <= (c) && (c) <= 'z'))
28496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28504 for (i = 0; i < 256; i++)
28505 if (XOR (islower (i), ISLOWER (i))
28506 || toupper (i) != TOUPPER (i))
28511 rm -f conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515 *) ac_try_echo=$ac_try;;
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_link") 2>&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28522 { (case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_try") 2>&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; }; then
28533 echo "$as_me: program exited with status $ac_status" >&5
28534 echo "$as_me: failed program was:" >&5
28535 sed 's/^/| /' conftest.$ac_ext >&5
28537 ( exit $ac_status )
28538 ac_cv_header_stdc=no
28540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28546 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28547 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28548 if test $ac_cv_header_stdc = yes; then
28550 cat >>confdefs.h <<\_ACEOF
28551 #define STDC_HEADERS 1
28556 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28557 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28558 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 cat >conftest.$ac_ext <<_ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h. */
28567 #include <sys/types.h>
28568 #include <sys/wait.h>
28569 #ifndef WEXITSTATUS
28570 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28573 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28581 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28586 rm -f conftest.$ac_objext
28587 if { (ac_try="$ac_compile"
28588 case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_compile") 2>conftest.er1
28595 grep -v '^ *+' conftest.er1 >conftest.err
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } &&
28600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest.$ac_objext'
28611 { (case "(($ac_try" in
28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_try") 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_cv_header_sys_wait_h=yes
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_cv_header_sys_wait_h=no
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28631 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28632 if test $ac_cv_header_sys_wait_h = yes; then
28634 cat >>confdefs.h <<\_ACEOF
28635 #define HAVE_SYS_WAIT_H 1
28640 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28641 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28642 if test "${ac_cv_header_time+set}" = set; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28645 cat >conftest.$ac_ext <<_ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28651 #include <sys/types.h>
28652 #include <sys/time.h>
28658 if ((struct tm *) 0)
28664 rm -f conftest.$ac_objext
28665 if { (ac_try="$ac_compile"
28666 case "(($ac_try" in
28667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668 *) ac_try_echo=$ac_try;;
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671 (eval "$ac_compile") 2>conftest.er1
28673 grep -v '^ *+' conftest.er1 >conftest.err
28675 cat conftest.err >&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); } &&
28678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28679 { (case "(($ac_try" in
28680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681 *) ac_try_echo=$ac_try;;
28683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28684 (eval "$ac_try") 2>&5
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); }; } &&
28688 { ac_try='test -s conftest.$ac_objext'
28689 { (case "(($ac_try" in
28690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691 *) ac_try_echo=$ac_try;;
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694 (eval "$ac_try") 2>&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
28698 ac_cv_header_time=yes
28700 echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28703 ac_cv_header_time=no
28706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28708 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28709 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28710 if test $ac_cv_header_time = yes; then
28712 cat >>confdefs.h <<\_ACEOF
28713 #define TIME_WITH_SYS_TIME 1
28725 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28732 echo $ECHO_N "(cached) $ECHO_C" >&6
28734 ac_res=`eval echo '${'$as_ac_Header'}'`
28735 { echo "$as_me:$LINENO: result: $ac_res" >&5
28736 echo "${ECHO_T}$ac_res" >&6; }
28738 # Is the header compilable?
28739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28741 cat >conftest.$ac_ext <<_ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h. */
28747 $ac_includes_default
28748 #include <$ac_header>
28750 rm -f conftest.$ac_objext
28751 if { (ac_try="$ac_compile"
28752 case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
28759 grep -v '^ *+' conftest.er1 >conftest.err
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } &&
28764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28765 { (case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_try") 2>&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); }; } &&
28774 { ac_try='test -s conftest.$ac_objext'
28775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 ac_header_compiler=yes
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_compiler=no
28792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794 echo "${ECHO_T}$ac_header_compiler" >&6; }
28796 # Is the header present?
28797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28799 cat >conftest.$ac_ext <<_ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h. */
28805 #include <$ac_header>
28807 if { (ac_try="$ac_cpp conftest.$ac_ext"
28808 case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28815 grep -v '^ *+' conftest.er1 >conftest.err
28817 cat conftest.err >&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); } >/dev/null; then
28820 if test -s conftest.err; then
28821 ac_cpp_err=$ac_c_preproc_warn_flag
28822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28829 if test -z "$ac_cpp_err"; then
28830 ac_header_preproc=yes
28832 echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28835 ac_header_preproc=no
28838 rm -f conftest.err conftest.$ac_ext
28839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28840 echo "${ECHO_T}$ac_header_preproc" >&6; }
28842 # So? What about this header?
28843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28849 ac_header_preproc=yes
28852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28865 ## ----------------------------------- ##
28866 ## Report this to llvmbugs@cs.uiuc.edu ##
28867 ## ----------------------------------- ##
28869 ) | sed "s/^/$as_me: WARNING: /" >&2
28872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28875 echo $ECHO_N "(cached) $ECHO_C" >&6
28877 eval "$as_ac_Header=\$ac_header_preproc"
28879 ac_res=`eval echo '${'$as_ac_Header'}'`
28880 { echo "$as_me:$LINENO: result: $ac_res" >&5
28881 echo "${ECHO_T}$ac_res" >&6; }
28884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28885 cat >>confdefs.h <<_ACEOF
28886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28899 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28906 echo $ECHO_N "(cached) $ECHO_C" >&6
28908 ac_res=`eval echo '${'$as_ac_Header'}'`
28909 { echo "$as_me:$LINENO: result: $ac_res" >&5
28910 echo "${ECHO_T}$ac_res" >&6; }
28912 # Is the header compilable?
28913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28915 cat >conftest.$ac_ext <<_ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h. */
28921 $ac_includes_default
28922 #include <$ac_header>
28924 rm -f conftest.$ac_objext
28925 if { (ac_try="$ac_compile"
28926 case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_compile") 2>conftest.er1
28933 grep -v '^ *+' conftest.er1 >conftest.err
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } &&
28938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28939 { (case "(($ac_try" in
28940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941 *) ac_try_echo=$ac_try;;
28943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944 (eval "$ac_try") 2>&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); }; } &&
28948 { ac_try='test -s conftest.$ac_objext'
28949 { (case "(($ac_try" in
28950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951 *) ac_try_echo=$ac_try;;
28953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954 (eval "$ac_try") 2>&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28958 ac_header_compiler=yes
28960 echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28963 ac_header_compiler=no
28966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28968 echo "${ECHO_T}$ac_header_compiler" >&6; }
28970 # Is the header present?
28971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28973 cat >conftest.$ac_ext <<_ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h. */
28979 #include <$ac_header>
28981 if { (ac_try="$ac_cpp conftest.$ac_ext"
28982 case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28989 grep -v '^ *+' conftest.er1 >conftest.err
28991 cat conftest.err >&5
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } >/dev/null; then
28994 if test -s conftest.err; then
28995 ac_cpp_err=$ac_c_preproc_warn_flag
28996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29003 if test -z "$ac_cpp_err"; then
29004 ac_header_preproc=yes
29006 echo "$as_me: failed program was:" >&5
29007 sed 's/^/| /' conftest.$ac_ext >&5
29009 ac_header_preproc=no
29012 rm -f conftest.err conftest.$ac_ext
29013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29014 echo "${ECHO_T}$ac_header_preproc" >&6; }
29016 # So? What about this header?
29017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29023 ac_header_preproc=yes
29026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29039 ## ----------------------------------- ##
29040 ## Report this to llvmbugs@cs.uiuc.edu ##
29041 ## ----------------------------------- ##
29043 ) | sed "s/^/$as_me: WARNING: /" >&2
29046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29051 eval "$as_ac_Header=\$ac_header_preproc"
29053 ac_res=`eval echo '${'$as_ac_Header'}'`
29054 { echo "$as_me:$LINENO: result: $ac_res" >&5
29055 echo "${ECHO_T}$ac_res" >&6; }
29058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29059 cat >>confdefs.h <<_ACEOF
29060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29068 for ac_header in windows.h
29070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29075 echo $ECHO_N "(cached) $ECHO_C" >&6
29077 ac_res=`eval echo '${'$as_ac_Header'}'`
29078 { echo "$as_me:$LINENO: result: $ac_res" >&5
29079 echo "${ECHO_T}$ac_res" >&6; }
29081 # Is the header compilable?
29082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29084 cat >conftest.$ac_ext <<_ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h. */
29090 $ac_includes_default
29091 #include <$ac_header>
29093 rm -f conftest.$ac_objext
29094 if { (ac_try="$ac_compile"
29095 case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_compile") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1 >conftest.err
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } &&
29107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29108 { (case "(($ac_try" in
29109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110 *) ac_try_echo=$ac_try;;
29112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29113 (eval "$ac_try") 2>&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; } &&
29117 { ac_try='test -s conftest.$ac_objext'
29118 { (case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_try") 2>&5
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; }; then
29127 ac_header_compiler=yes
29129 echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29132 ac_header_compiler=no
29135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29137 echo "${ECHO_T}$ac_header_compiler" >&6; }
29139 # Is the header present?
29140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29142 cat >conftest.$ac_ext <<_ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29148 #include <$ac_header>
29150 if { (ac_try="$ac_cpp conftest.$ac_ext"
29151 case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29158 grep -v '^ *+' conftest.er1 >conftest.err
29160 cat conftest.err >&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); } >/dev/null; then
29163 if test -s conftest.err; then
29164 ac_cpp_err=$ac_c_preproc_warn_flag
29165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29172 if test -z "$ac_cpp_err"; then
29173 ac_header_preproc=yes
29175 echo "$as_me: failed program was:" >&5
29176 sed 's/^/| /' conftest.$ac_ext >&5
29178 ac_header_preproc=no
29181 rm -f conftest.err conftest.$ac_ext
29182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29183 echo "${ECHO_T}$ac_header_preproc" >&6; }
29185 # So? What about this header?
29186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29192 ac_header_preproc=yes
29195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29208 ## ----------------------------------- ##
29209 ## Report this to llvmbugs@cs.uiuc.edu ##
29210 ## ----------------------------------- ##
29212 ) | sed "s/^/$as_me: WARNING: /" >&2
29215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29218 echo $ECHO_N "(cached) $ECHO_C" >&6
29220 eval "$as_ac_Header=\$ac_header_preproc"
29222 ac_res=`eval echo '${'$as_ac_Header'}'`
29223 { echo "$as_me:$LINENO: result: $ac_res" >&5
29224 echo "${ECHO_T}$ac_res" >&6; }
29227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29228 cat >>confdefs.h <<_ACEOF
29229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29240 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29249 ac_res=`eval echo '${'$as_ac_Header'}'`
29250 { echo "$as_me:$LINENO: result: $ac_res" >&5
29251 echo "${ECHO_T}$ac_res" >&6; }
29253 # Is the header compilable?
29254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29256 cat >conftest.$ac_ext <<_ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29262 $ac_includes_default
29263 #include <$ac_header>
29265 rm -f conftest.$ac_objext
29266 if { (ac_try="$ac_compile"
29267 case "(($ac_try" in
29268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269 *) ac_try_echo=$ac_try;;
29271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272 (eval "$ac_compile") 2>conftest.er1
29274 grep -v '^ *+' conftest.er1 >conftest.err
29276 cat conftest.err >&5
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); } &&
29279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29280 { (case "(($ac_try" in
29281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282 *) ac_try_echo=$ac_try;;
29284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285 (eval "$ac_try") 2>&5
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; } &&
29289 { ac_try='test -s conftest.$ac_objext'
29290 { (case "(($ac_try" in
29291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292 *) ac_try_echo=$ac_try;;
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295 (eval "$ac_try") 2>&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); }; }; then
29299 ac_header_compiler=yes
29301 echo "$as_me: failed program was:" >&5
29302 sed 's/^/| /' conftest.$ac_ext >&5
29304 ac_header_compiler=no
29307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29309 echo "${ECHO_T}$ac_header_compiler" >&6; }
29311 # Is the header present?
29312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29314 cat >conftest.$ac_ext <<_ACEOF
29317 cat confdefs.h >>conftest.$ac_ext
29318 cat >>conftest.$ac_ext <<_ACEOF
29319 /* end confdefs.h. */
29320 #include <$ac_header>
29322 if { (ac_try="$ac_cpp conftest.$ac_ext"
29323 case "(($ac_try" in
29324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29325 *) ac_try_echo=$ac_try;;
29327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29330 grep -v '^ *+' conftest.er1 >conftest.err
29332 cat conftest.err >&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); } >/dev/null; then
29335 if test -s conftest.err; then
29336 ac_cpp_err=$ac_c_preproc_warn_flag
29337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29344 if test -z "$ac_cpp_err"; then
29345 ac_header_preproc=yes
29347 echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29350 ac_header_preproc=no
29353 rm -f conftest.err conftest.$ac_ext
29354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29355 echo "${ECHO_T}$ac_header_preproc" >&6; }
29357 # So? What about this header?
29358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29364 ac_header_preproc=yes
29367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29380 ## ----------------------------------- ##
29381 ## Report this to llvmbugs@cs.uiuc.edu ##
29382 ## ----------------------------------- ##
29384 ) | sed "s/^/$as_me: WARNING: /" >&2
29387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29390 echo $ECHO_N "(cached) $ECHO_C" >&6
29392 eval "$as_ac_Header=\$ac_header_preproc"
29394 ac_res=`eval echo '${'$as_ac_Header'}'`
29395 { echo "$as_me:$LINENO: result: $ac_res" >&5
29396 echo "${ECHO_T}$ac_res" >&6; }
29399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29400 cat >>confdefs.h <<_ACEOF
29401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29411 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29418 echo $ECHO_N "(cached) $ECHO_C" >&6
29420 ac_res=`eval echo '${'$as_ac_Header'}'`
29421 { echo "$as_me:$LINENO: result: $ac_res" >&5
29422 echo "${ECHO_T}$ac_res" >&6; }
29424 # Is the header compilable?
29425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29427 cat >conftest.$ac_ext <<_ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h. */
29433 $ac_includes_default
29434 #include <$ac_header>
29436 rm -f conftest.$ac_objext
29437 if { (ac_try="$ac_compile"
29438 case "(($ac_try" in
29439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440 *) ac_try_echo=$ac_try;;
29442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443 (eval "$ac_compile") 2>conftest.er1
29445 grep -v '^ *+' conftest.er1 >conftest.err
29447 cat conftest.err >&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); } &&
29450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29451 { (case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_try") 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; } &&
29460 { ac_try='test -s conftest.$ac_objext'
29461 { (case "(($ac_try" in
29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466 (eval "$ac_try") 2>&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); }; }; then
29470 ac_header_compiler=yes
29472 echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29475 ac_header_compiler=no
29478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29480 echo "${ECHO_T}$ac_header_compiler" >&6; }
29482 # Is the header present?
29483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29485 cat >conftest.$ac_ext <<_ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h. */
29491 #include <$ac_header>
29493 if { (ac_try="$ac_cpp conftest.$ac_ext"
29494 case "(($ac_try" in
29495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496 *) ac_try_echo=$ac_try;;
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29501 grep -v '^ *+' conftest.er1 >conftest.err
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } >/dev/null; then
29506 if test -s conftest.err; then
29507 ac_cpp_err=$ac_c_preproc_warn_flag
29508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29515 if test -z "$ac_cpp_err"; then
29516 ac_header_preproc=yes
29518 echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29521 ac_header_preproc=no
29524 rm -f conftest.err conftest.$ac_ext
29525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29526 echo "${ECHO_T}$ac_header_preproc" >&6; }
29528 # So? What about this header?
29529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29535 ac_header_preproc=yes
29538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29551 ## ----------------------------------- ##
29552 ## Report this to llvmbugs@cs.uiuc.edu ##
29553 ## ----------------------------------- ##
29555 ) | sed "s/^/$as_me: WARNING: /" >&2
29558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561 echo $ECHO_N "(cached) $ECHO_C" >&6
29563 eval "$as_ac_Header=\$ac_header_preproc"
29565 ac_res=`eval echo '${'$as_ac_Header'}'`
29566 { echo "$as_me:$LINENO: result: $ac_res" >&5
29567 echo "${ECHO_T}$ac_res" >&6; }
29570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29571 cat >>confdefs.h <<_ACEOF
29572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29579 if test "$ENABLE_THREADS" -eq 1 ; then
29581 for ac_header in pthread.h
29583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29588 echo $ECHO_N "(cached) $ECHO_C" >&6
29590 ac_res=`eval echo '${'$as_ac_Header'}'`
29591 { echo "$as_me:$LINENO: result: $ac_res" >&5
29592 echo "${ECHO_T}$ac_res" >&6; }
29594 # Is the header compilable?
29595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29597 cat >conftest.$ac_ext <<_ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h. */
29603 $ac_includes_default
29604 #include <$ac_header>
29606 rm -f conftest.$ac_objext
29607 if { (ac_try="$ac_compile"
29608 case "(($ac_try" in
29609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610 *) ac_try_echo=$ac_try;;
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613 (eval "$ac_compile") 2>conftest.er1
29615 grep -v '^ *+' conftest.er1 >conftest.err
29617 cat conftest.err >&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); } &&
29620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29621 { (case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_try") 2>&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; } &&
29630 { ac_try='test -s conftest.$ac_objext'
29631 { (case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_try") 2>&5
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; }; then
29640 ac_header_compiler=yes
29642 echo "$as_me: failed program was:" >&5
29643 sed 's/^/| /' conftest.$ac_ext >&5
29645 ac_header_compiler=no
29648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29650 echo "${ECHO_T}$ac_header_compiler" >&6; }
29652 # Is the header present?
29653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29655 cat >conftest.$ac_ext <<_ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h. */
29661 #include <$ac_header>
29663 if { (ac_try="$ac_cpp conftest.$ac_ext"
29664 case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29671 grep -v '^ *+' conftest.er1 >conftest.err
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); } >/dev/null; then
29676 if test -s conftest.err; then
29677 ac_cpp_err=$ac_c_preproc_warn_flag
29678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29685 if test -z "$ac_cpp_err"; then
29686 ac_header_preproc=yes
29688 echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29691 ac_header_preproc=no
29694 rm -f conftest.err conftest.$ac_ext
29695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29696 echo "${ECHO_T}$ac_header_preproc" >&6; }
29698 # So? What about this header?
29699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29705 ac_header_preproc=yes
29708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29721 ## ----------------------------------- ##
29722 ## Report this to llvmbugs@cs.uiuc.edu ##
29723 ## ----------------------------------- ##
29725 ) | sed "s/^/$as_me: WARNING: /" >&2
29728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 eval "$as_ac_Header=\$ac_header_preproc"
29735 ac_res=`eval echo '${'$as_ac_Header'}'`
29736 { echo "$as_me:$LINENO: result: $ac_res" >&5
29737 echo "${ECHO_T}$ac_res" >&6; }
29740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29741 cat >>confdefs.h <<_ACEOF
29742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29760 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29761 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29762 if test "${ac_cv_huge_val_sanity+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29767 ac_cpp='$CXXCPP $CPPFLAGS'
29768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29773 if test "$cross_compiling" = yes; then
29774 ac_cv_huge_val_sanity=yes
29776 cat >conftest.$ac_ext <<_ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h. */
29786 double x = HUGE_VAL; return x != x;
29791 rm -f conftest$ac_exeext
29792 if { (ac_try="$ac_link"
29793 case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_link") 2>&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29802 { (case "(($ac_try" in
29803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804 *) ac_try_echo=$ac_try;;
29806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807 (eval "$ac_try") 2>&5
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); }; }; then
29811 ac_cv_huge_val_sanity=yes
29813 echo "$as_me: program exited with status $ac_status" >&5
29814 echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29817 ( exit $ac_status )
29818 ac_cv_huge_val_sanity=no
29820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29825 ac_cpp='$CPP $CPPFLAGS'
29826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29832 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29833 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29834 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29837 { echo "$as_me:$LINENO: checking for pid_t" >&5
29838 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29839 if test "${ac_cv_type_pid_t+set}" = set; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29842 cat >conftest.$ac_ext <<_ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h. */
29848 $ac_includes_default
29849 typedef pid_t ac__type_new_;
29853 if ((ac__type_new_ *) 0)
29855 if (sizeof (ac__type_new_))
29861 rm -f conftest.$ac_objext
29862 if { (ac_try="$ac_compile"
29863 case "(($ac_try" in
29864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865 *) ac_try_echo=$ac_try;;
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868 (eval "$ac_compile") 2>conftest.er1
29870 grep -v '^ *+' conftest.er1 >conftest.err
29872 cat conftest.err >&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } &&
29875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29876 { (case "(($ac_try" in
29877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878 *) ac_try_echo=$ac_try;;
29880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881 (eval "$ac_try") 2>&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; } &&
29885 { ac_try='test -s conftest.$ac_objext'
29886 { (case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891 (eval "$ac_try") 2>&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; }; then
29895 ac_cv_type_pid_t=yes
29897 echo "$as_me: failed program was:" >&5
29898 sed 's/^/| /' conftest.$ac_ext >&5
29900 ac_cv_type_pid_t=no
29903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29905 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29906 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29907 if test $ac_cv_type_pid_t = yes; then
29911 cat >>confdefs.h <<_ACEOF
29917 { echo "$as_me:$LINENO: checking for size_t" >&5
29918 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29919 if test "${ac_cv_type_size_t+set}" = set; then
29920 echo $ECHO_N "(cached) $ECHO_C" >&6
29922 cat >conftest.$ac_ext <<_ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29928 $ac_includes_default
29929 typedef size_t ac__type_new_;
29933 if ((ac__type_new_ *) 0)
29935 if (sizeof (ac__type_new_))
29941 rm -f conftest.$ac_objext
29942 if { (ac_try="$ac_compile"
29943 case "(($ac_try" in
29944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945 *) ac_try_echo=$ac_try;;
29947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948 (eval "$ac_compile") 2>conftest.er1
29950 grep -v '^ *+' conftest.er1 >conftest.err
29952 cat conftest.err >&5
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); } &&
29955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29956 { (case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_try") 2>&5
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest.$ac_objext'
29966 { (case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_try") 2>&5
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; }; then
29975 ac_cv_type_size_t=yes
29977 echo "$as_me: failed program was:" >&5
29978 sed 's/^/| /' conftest.$ac_ext >&5
29980 ac_cv_type_size_t=no
29983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29985 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29986 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29987 if test $ac_cv_type_size_t = yes; then
29991 cat >>confdefs.h <<_ACEOF
29992 #define size_t unsigned int
29997 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29998 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29999 if test "${ac_cv_type_signal+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30002 cat >conftest.$ac_ext <<_ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h. */
30008 #include <sys/types.h>
30009 #include <signal.h>
30014 return *(signal (0, 0)) (0) == 1;
30019 rm -f conftest.$ac_objext
30020 if { (ac_try="$ac_compile"
30021 case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_compile") 2>conftest.er1
30028 grep -v '^ *+' conftest.er1 >conftest.err
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
30033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30034 { (case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_try") 2>&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; } &&
30043 { ac_try='test -s conftest.$ac_objext'
30044 { (case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_try") 2>&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; }; then
30053 ac_cv_type_signal=int
30055 echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30058 ac_cv_type_signal=void
30061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30063 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30064 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30066 cat >>confdefs.h <<_ACEOF
30067 #define RETSIGTYPE $ac_cv_type_signal
30071 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30072 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30073 if test "${ac_cv_struct_tm+set}" = set; then
30074 echo $ECHO_N "(cached) $ECHO_C" >&6
30076 cat >conftest.$ac_ext <<_ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h. */
30082 #include <sys/types.h>
30088 struct tm *tp; tp->tm_sec;
30093 rm -f conftest.$ac_objext
30094 if { (ac_try="$ac_compile"
30095 case "(($ac_try" in
30096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097 *) ac_try_echo=$ac_try;;
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100 (eval "$ac_compile") 2>conftest.er1
30102 grep -v '^ *+' conftest.er1 >conftest.err
30104 cat conftest.err >&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
30107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30108 { (case "(($ac_try" in
30109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110 *) ac_try_echo=$ac_try;;
30112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113 (eval "$ac_try") 2>&5
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; } &&
30117 { ac_try='test -s conftest.$ac_objext'
30118 { (case "(($ac_try" in
30119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120 *) ac_try_echo=$ac_try;;
30122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123 (eval "$ac_try") 2>&5
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; }; then
30127 ac_cv_struct_tm=time.h
30129 echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30132 ac_cv_struct_tm=sys/time.h
30135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30138 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30139 if test $ac_cv_struct_tm = sys/time.h; then
30141 cat >>confdefs.h <<\_ACEOF
30142 #define TM_IN_SYS_TIME 1
30147 { echo "$as_me:$LINENO: checking for int64_t" >&5
30148 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30149 if test "${ac_cv_type_int64_t+set}" = set; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30152 cat >conftest.$ac_ext <<_ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30158 $ac_includes_default
30159 typedef int64_t ac__type_new_;
30163 if ((ac__type_new_ *) 0)
30165 if (sizeof (ac__type_new_))
30171 rm -f conftest.$ac_objext
30172 if { (ac_try="$ac_compile"
30173 case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_compile") 2>conftest.er1
30180 grep -v '^ *+' conftest.er1 >conftest.err
30182 cat conftest.err >&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } &&
30185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30186 { (case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest.$ac_objext'
30196 { (case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_try") 2>&5
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; }; then
30205 ac_cv_type_int64_t=yes
30207 echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.$ac_ext >&5
30210 ac_cv_type_int64_t=no
30213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30215 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30216 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30217 if test $ac_cv_type_int64_t = yes; then
30219 cat >>confdefs.h <<_ACEOF
30220 #define HAVE_INT64_T 1
30225 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30226 echo "$as_me: error: Type int64_t required but not found" >&2;}
30227 { (exit 1); exit 1; }; }
30230 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30231 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30232 if test "${ac_cv_type_uint64_t+set}" = set; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30235 cat >conftest.$ac_ext <<_ACEOF
30238 cat confdefs.h >>conftest.$ac_ext
30239 cat >>conftest.$ac_ext <<_ACEOF
30240 /* end confdefs.h. */
30241 $ac_includes_default
30242 typedef uint64_t ac__type_new_;
30246 if ((ac__type_new_ *) 0)
30248 if (sizeof (ac__type_new_))
30254 rm -f conftest.$ac_objext
30255 if { (ac_try="$ac_compile"
30256 case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_compile") 2>conftest.er1
30263 grep -v '^ *+' conftest.er1 >conftest.err
30265 cat conftest.err >&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); } &&
30268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest.$ac_objext'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
30288 ac_cv_type_uint64_t=yes
30290 echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30293 ac_cv_type_uint64_t=no
30296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30298 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30299 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30300 if test $ac_cv_type_uint64_t = yes; then
30302 cat >>confdefs.h <<_ACEOF
30303 #define HAVE_UINT64_T 1
30308 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30309 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30310 if test "${ac_cv_type_u_int64_t+set}" = set; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30313 cat >conftest.$ac_ext <<_ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h. */
30319 $ac_includes_default
30320 typedef u_int64_t ac__type_new_;
30324 if ((ac__type_new_ *) 0)
30326 if (sizeof (ac__type_new_))
30332 rm -f conftest.$ac_objext
30333 if { (ac_try="$ac_compile"
30334 case "(($ac_try" in
30335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336 *) ac_try_echo=$ac_try;;
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339 (eval "$ac_compile") 2>conftest.er1
30341 grep -v '^ *+' conftest.er1 >conftest.err
30343 cat conftest.err >&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } &&
30346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; } &&
30356 { ac_try='test -s conftest.$ac_objext'
30357 { (case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_try") 2>&5
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; }; then
30366 ac_cv_type_u_int64_t=yes
30368 echo "$as_me: failed program was:" >&5
30369 sed 's/^/| /' conftest.$ac_ext >&5
30371 ac_cv_type_u_int64_t=no
30374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30377 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30378 if test $ac_cv_type_u_int64_t = yes; then
30380 cat >>confdefs.h <<_ACEOF
30381 #define HAVE_U_INT64_T 1
30386 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30387 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30388 { (exit 1); exit 1; }; }
30402 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30408 echo $ECHO_N "(cached) $ECHO_C" >&6
30410 cat >conftest.$ac_ext <<_ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h. */
30416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30418 #define $ac_func innocuous_$ac_func
30420 /* System header to define __stub macros and hopefully few prototypes,
30421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
30426 # include <limits.h>
30428 # include <assert.h>
30433 /* Override any GCC internal prototype to avoid an error.
30434 Use char because int might match the return type of a GCC
30435 builtin and then its argument prototype would still apply. */
30440 /* The GNU C library defines this for functions which it implements
30441 to always fail with ENOSYS. Some functions are actually named
30442 something starting with __ and the normal name is an alias. */
30443 #if defined __stub_$ac_func || defined __stub___$ac_func
30450 return $ac_func ();
30455 rm -f conftest.$ac_objext conftest$ac_exeext
30456 if { (ac_try="$ac_link"
30457 case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462 (eval "$ac_link") 2>conftest.er1
30464 grep -v '^ *+' conftest.er1 >conftest.err
30466 cat conftest.err >&5
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); } &&
30469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; } &&
30479 { ac_try='test -s conftest$ac_exeext'
30480 { (case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485 (eval "$ac_try") 2>&5
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); }; }; then
30489 eval "$as_ac_var=yes"
30491 echo "$as_me: failed program was:" >&5
30492 sed 's/^/| /' conftest.$ac_ext >&5
30494 eval "$as_ac_var=no"
30497 rm -f core conftest.err conftest.$ac_objext \
30498 conftest$ac_exeext conftest.$ac_ext
30500 ac_res=`eval echo '${'$as_ac_var'}'`
30501 { echo "$as_me:$LINENO: result: $ac_res" >&5
30502 echo "${ECHO_T}$ac_res" >&6; }
30503 if test `eval echo '${'$as_ac_var'}'` = yes; then
30504 cat >>confdefs.h <<_ACEOF
30505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30515 for ac_func in powf fmodf strtof round
30517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30523 cat >conftest.$ac_ext <<_ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h. */
30529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30531 #define $ac_func innocuous_$ac_func
30533 /* System header to define __stub macros and hopefully few prototypes,
30534 which can conflict with char $ac_func (); below.
30535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30536 <limits.h> exists even on freestanding compilers. */
30539 # include <limits.h>
30541 # include <assert.h>
30546 /* Override any GCC internal prototype to avoid an error.
30547 Use char because int might match the return type of a GCC
30548 builtin and then its argument prototype would still apply. */
30553 /* The GNU C library defines this for functions which it implements
30554 to always fail with ENOSYS. Some functions are actually named
30555 something starting with __ and the normal name is an alias. */
30556 #if defined __stub_$ac_func || defined __stub___$ac_func
30563 return $ac_func ();
30568 rm -f conftest.$ac_objext conftest$ac_exeext
30569 if { (ac_try="$ac_link"
30570 case "(($ac_try" in
30571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572 *) ac_try_echo=$ac_try;;
30574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30575 (eval "$ac_link") 2>conftest.er1
30577 grep -v '^ *+' conftest.er1 >conftest.err
30579 cat conftest.err >&5
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } &&
30582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30583 { (case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588 (eval "$ac_try") 2>&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); }; } &&
30592 { ac_try='test -s conftest$ac_exeext'
30593 { (case "(($ac_try" in
30594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595 *) ac_try_echo=$ac_try;;
30597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598 (eval "$ac_try") 2>&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; }; then
30602 eval "$as_ac_var=yes"
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30607 eval "$as_ac_var=no"
30610 rm -f core conftest.err conftest.$ac_objext \
30611 conftest$ac_exeext conftest.$ac_ext
30613 ac_res=`eval echo '${'$as_ac_var'}'`
30614 { echo "$as_me:$LINENO: result: $ac_res" >&5
30615 echo "${ECHO_T}$ac_res" >&6; }
30616 if test `eval echo '${'$as_ac_var'}'` = yes; then
30617 cat >>confdefs.h <<_ACEOF
30618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30629 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30637 cat >conftest.$ac_ext <<_ACEOF
30640 cat confdefs.h >>conftest.$ac_ext
30641 cat >>conftest.$ac_ext <<_ACEOF
30642 /* end confdefs.h. */
30643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30645 #define $ac_func innocuous_$ac_func
30647 /* System header to define __stub macros and hopefully few prototypes,
30648 which can conflict with char $ac_func (); below.
30649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30650 <limits.h> exists even on freestanding compilers. */
30653 # include <limits.h>
30655 # include <assert.h>
30660 /* Override any GCC internal prototype to avoid an error.
30661 Use char because int might match the return type of a GCC
30662 builtin and then its argument prototype would still apply. */
30667 /* The GNU C library defines this for functions which it implements
30668 to always fail with ENOSYS. Some functions are actually named
30669 something starting with __ and the normal name is an alias. */
30670 #if defined __stub_$ac_func || defined __stub___$ac_func
30677 return $ac_func ();
30682 rm -f conftest.$ac_objext conftest$ac_exeext
30683 if { (ac_try="$ac_link"
30684 case "(($ac_try" in
30685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30686 *) ac_try_echo=$ac_try;;
30688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30689 (eval "$ac_link") 2>conftest.er1
30691 grep -v '^ *+' conftest.er1 >conftest.err
30693 cat conftest.err >&5
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); } &&
30696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30697 { (case "(($ac_try" in
30698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699 *) ac_try_echo=$ac_try;;
30701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702 (eval "$ac_try") 2>&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; } &&
30706 { ac_try='test -s conftest$ac_exeext'
30707 { (case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; }; then
30716 eval "$as_ac_var=yes"
30718 echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30721 eval "$as_ac_var=no"
30724 rm -f core conftest.err conftest.$ac_objext \
30725 conftest$ac_exeext conftest.$ac_ext
30727 ac_res=`eval echo '${'$as_ac_var'}'`
30728 { echo "$as_me:$LINENO: result: $ac_res" >&5
30729 echo "${ECHO_T}$ac_res" >&6; }
30730 if test `eval echo '${'$as_ac_var'}'` = yes; then
30731 cat >>confdefs.h <<_ACEOF
30732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30741 for ac_func in isatty mkdtemp mkstemp
30743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30747 echo $ECHO_N "(cached) $ECHO_C" >&6
30749 cat >conftest.$ac_ext <<_ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h. */
30755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30757 #define $ac_func innocuous_$ac_func
30759 /* System header to define __stub macros and hopefully few prototypes,
30760 which can conflict with char $ac_func (); below.
30761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30762 <limits.h> exists even on freestanding compilers. */
30765 # include <limits.h>
30767 # include <assert.h>
30772 /* Override any GCC internal prototype to avoid an error.
30773 Use char because int might match the return type of a GCC
30774 builtin and then its argument prototype would still apply. */
30779 /* The GNU C library defines this for functions which it implements
30780 to always fail with ENOSYS. Some functions are actually named
30781 something starting with __ and the normal name is an alias. */
30782 #if defined __stub_$ac_func || defined __stub___$ac_func
30789 return $ac_func ();
30794 rm -f conftest.$ac_objext conftest$ac_exeext
30795 if { (ac_try="$ac_link"
30796 case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801 (eval "$ac_link") 2>conftest.er1
30803 grep -v '^ *+' conftest.er1 >conftest.err
30805 cat conftest.err >&5
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } &&
30808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30809 { (case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_try") 2>&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; } &&
30818 { ac_try='test -s conftest$ac_exeext'
30819 { (case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824 (eval "$ac_try") 2>&5
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); }; }; then
30828 eval "$as_ac_var=yes"
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 eval "$as_ac_var=no"
30836 rm -f core conftest.err conftest.$ac_objext \
30837 conftest$ac_exeext conftest.$ac_ext
30839 ac_res=`eval echo '${'$as_ac_var'}'`
30840 { echo "$as_me:$LINENO: result: $ac_res" >&5
30841 echo "${ECHO_T}$ac_res" >&6; }
30842 if test `eval echo '${'$as_ac_var'}'` = yes; then
30843 cat >>confdefs.h <<_ACEOF
30844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30857 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30863 echo $ECHO_N "(cached) $ECHO_C" >&6
30865 cat >conftest.$ac_ext <<_ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h. */
30871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30873 #define $ac_func innocuous_$ac_func
30875 /* System header to define __stub macros and hopefully few prototypes,
30876 which can conflict with char $ac_func (); below.
30877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30878 <limits.h> exists even on freestanding compilers. */
30881 # include <limits.h>
30883 # include <assert.h>
30888 /* Override any GCC internal prototype to avoid an error.
30889 Use char because int might match the return type of a GCC
30890 builtin and then its argument prototype would still apply. */
30895 /* The GNU C library defines this for functions which it implements
30896 to always fail with ENOSYS. Some functions are actually named
30897 something starting with __ and the normal name is an alias. */
30898 #if defined __stub_$ac_func || defined __stub___$ac_func
30905 return $ac_func ();
30910 rm -f conftest.$ac_objext conftest$ac_exeext
30911 if { (ac_try="$ac_link"
30912 case "(($ac_try" in
30913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914 *) ac_try_echo=$ac_try;;
30916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917 (eval "$ac_link") 2>conftest.er1
30919 grep -v '^ *+' conftest.er1 >conftest.err
30921 cat conftest.err >&5
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); } &&
30924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30925 { (case "(($ac_try" in
30926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927 *) ac_try_echo=$ac_try;;
30929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930 (eval "$ac_try") 2>&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); }; } &&
30934 { ac_try='test -s conftest$ac_exeext'
30935 { (case "(($ac_try" in
30936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937 *) ac_try_echo=$ac_try;;
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940 (eval "$ac_try") 2>&5
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; }; then
30944 eval "$as_ac_var=yes"
30946 echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30949 eval "$as_ac_var=no"
30952 rm -f core conftest.err conftest.$ac_objext \
30953 conftest$ac_exeext conftest.$ac_ext
30955 ac_res=`eval echo '${'$as_ac_var'}'`
30956 { echo "$as_me:$LINENO: result: $ac_res" >&5
30957 echo "${ECHO_T}$ac_res" >&6; }
30958 if test `eval echo '${'$as_ac_var'}'` = yes; then
30959 cat >>confdefs.h <<_ACEOF
30960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30970 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30976 echo $ECHO_N "(cached) $ECHO_C" >&6
30978 cat >conftest.$ac_ext <<_ACEOF
30981 cat confdefs.h >>conftest.$ac_ext
30982 cat >>conftest.$ac_ext <<_ACEOF
30983 /* end confdefs.h. */
30984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30986 #define $ac_func innocuous_$ac_func
30988 /* System header to define __stub macros and hopefully few prototypes,
30989 which can conflict with char $ac_func (); below.
30990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30991 <limits.h> exists even on freestanding compilers. */
30994 # include <limits.h>
30996 # include <assert.h>
31001 /* Override any GCC internal prototype to avoid an error.
31002 Use char because int might match the return type of a GCC
31003 builtin and then its argument prototype would still apply. */
31008 /* The GNU C library defines this for functions which it implements
31009 to always fail with ENOSYS. Some functions are actually named
31010 something starting with __ and the normal name is an alias. */
31011 #if defined __stub_$ac_func || defined __stub___$ac_func
31018 return $ac_func ();
31023 rm -f conftest.$ac_objext conftest$ac_exeext
31024 if { (ac_try="$ac_link"
31025 case "(($ac_try" in
31026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027 *) ac_try_echo=$ac_try;;
31029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030 (eval "$ac_link") 2>conftest.er1
31032 grep -v '^ *+' conftest.er1 >conftest.err
31034 cat conftest.err >&5
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); } &&
31037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31038 { (case "(($ac_try" in
31039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040 *) ac_try_echo=$ac_try;;
31042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043 (eval "$ac_try") 2>&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); }; } &&
31047 { ac_try='test -s conftest$ac_exeext'
31048 { (case "(($ac_try" in
31049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050 *) ac_try_echo=$ac_try;;
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053 (eval "$ac_try") 2>&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; }; then
31057 eval "$as_ac_var=yes"
31059 echo "$as_me: failed program was:" >&5
31060 sed 's/^/| /' conftest.$ac_ext >&5
31062 eval "$as_ac_var=no"
31065 rm -f core conftest.err conftest.$ac_objext \
31066 conftest$ac_exeext conftest.$ac_ext
31068 ac_res=`eval echo '${'$as_ac_var'}'`
31069 { echo "$as_me:$LINENO: result: $ac_res" >&5
31070 echo "${ECHO_T}$ac_res" >&6; }
31071 if test `eval echo '${'$as_ac_var'}'` = yes; then
31072 cat >>confdefs.h <<_ACEOF
31073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31083 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31089 echo $ECHO_N "(cached) $ECHO_C" >&6
31091 cat >conftest.$ac_ext <<_ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h. */
31097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31099 #define $ac_func innocuous_$ac_func
31101 /* System header to define __stub macros and hopefully few prototypes,
31102 which can conflict with char $ac_func (); below.
31103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31104 <limits.h> exists even on freestanding compilers. */
31107 # include <limits.h>
31109 # include <assert.h>
31114 /* Override any GCC internal prototype to avoid an error.
31115 Use char because int might match the return type of a GCC
31116 builtin and then its argument prototype would still apply. */
31121 /* The GNU C library defines this for functions which it implements
31122 to always fail with ENOSYS. Some functions are actually named
31123 something starting with __ and the normal name is an alias. */
31124 #if defined __stub_$ac_func || defined __stub___$ac_func
31131 return $ac_func ();
31136 rm -f conftest.$ac_objext conftest$ac_exeext
31137 if { (ac_try="$ac_link"
31138 case "(($ac_try" in
31139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140 *) ac_try_echo=$ac_try;;
31142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143 (eval "$ac_link") 2>conftest.er1
31145 grep -v '^ *+' conftest.er1 >conftest.err
31147 cat conftest.err >&5
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); } &&
31150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31151 { (case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_try") 2>&5
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; } &&
31160 { ac_try='test -s conftest$ac_exeext'
31161 { (case "(($ac_try" in
31162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163 *) ac_try_echo=$ac_try;;
31165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166 (eval "$ac_try") 2>&5
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; }; then
31170 eval "$as_ac_var=yes"
31172 echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31175 eval "$as_ac_var=no"
31178 rm -f core conftest.err conftest.$ac_objext \
31179 conftest$ac_exeext conftest.$ac_ext
31181 ac_res=`eval echo '${'$as_ac_var'}'`
31182 { echo "$as_me:$LINENO: result: $ac_res" >&5
31183 echo "${ECHO_T}$ac_res" >&6; }
31184 if test `eval echo '${'$as_ac_var'}'` = yes; then
31185 cat >>confdefs.h <<_ACEOF
31186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31192 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31193 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31194 if test "${llvm_cv_c_printf_a+set}" = set; then
31195 echo $ECHO_N "(cached) $ECHO_C" >&6
31198 ac_cpp='$CPP $CPPFLAGS'
31199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31203 if test "$cross_compiling" = yes; then
31204 llvmac_cv_c_printf_a=no
31206 cat >conftest.$ac_ext <<_ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h. */
31215 #include <stdlib.h>
31221 volatile double A, B;
31225 sprintf(Buffer, "%a", A);
31229 if (A != 0x1.999999999999ap-4)
31236 rm -f conftest$ac_exeext
31237 if { (ac_try="$ac_link"
31238 case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_link") 2>&5
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31247 { (case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_try") 2>&5
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); }; }; then
31256 llvm_cv_c_printf_a=yes
31258 echo "$as_me: program exited with status $ac_status" >&5
31259 echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31262 ( exit $ac_status )
31263 llvmac_cv_c_printf_a=no
31265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31270 ac_cpp='$CPP $CPPFLAGS'
31271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31276 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31277 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31278 if test "$llvm_cv_c_printf_a" = "yes"; then
31280 cat >>confdefs.h <<\_ACEOF
31281 #define HAVE_PRINTF_A 1
31286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31287 # for constant arguments. Useless!
31288 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31289 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31290 if test "${ac_cv_working_alloca_h+set}" = set; then
31291 echo $ECHO_N "(cached) $ECHO_C" >&6
31293 cat >conftest.$ac_ext <<_ACEOF
31296 cat confdefs.h >>conftest.$ac_ext
31297 cat >>conftest.$ac_ext <<_ACEOF
31298 /* end confdefs.h. */
31299 #include <alloca.h>
31303 char *p = (char *) alloca (2 * sizeof (int));
31309 rm -f conftest.$ac_objext conftest$ac_exeext
31310 if { (ac_try="$ac_link"
31311 case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_link") 2>conftest.er1
31318 grep -v '^ *+' conftest.er1 >conftest.err
31320 cat conftest.err >&5
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); } &&
31323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31324 { (case "(($ac_try" in
31325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326 *) ac_try_echo=$ac_try;;
31328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329 (eval "$ac_try") 2>&5
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; } &&
31333 { ac_try='test -s conftest$ac_exeext'
31334 { (case "(($ac_try" in
31335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31336 *) ac_try_echo=$ac_try;;
31338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31339 (eval "$ac_try") 2>&5
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); }; }; then
31343 ac_cv_working_alloca_h=yes
31345 echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31348 ac_cv_working_alloca_h=no
31351 rm -f core conftest.err conftest.$ac_objext \
31352 conftest$ac_exeext conftest.$ac_ext
31354 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31355 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31356 if test $ac_cv_working_alloca_h = yes; then
31358 cat >>confdefs.h <<\_ACEOF
31359 #define HAVE_ALLOCA_H 1
31364 { echo "$as_me:$LINENO: checking for alloca" >&5
31365 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31366 if test "${ac_cv_func_alloca_works+set}" = set; then
31367 echo $ECHO_N "(cached) $ECHO_C" >&6
31369 cat >conftest.$ac_ext <<_ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h. */
31376 # define alloca __builtin_alloca
31379 # include <malloc.h>
31380 # define alloca _alloca
31383 # include <alloca.h>
31388 # ifndef alloca /* predefined by HP cc +Olibcalls */
31399 char *p = (char *) alloca (1);
31405 rm -f conftest.$ac_objext conftest$ac_exeext
31406 if { (ac_try="$ac_link"
31407 case "(($ac_try" in
31408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31409 *) ac_try_echo=$ac_try;;
31411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31412 (eval "$ac_link") 2>conftest.er1
31414 grep -v '^ *+' conftest.er1 >conftest.err
31416 cat conftest.err >&5
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); } &&
31419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31420 { (case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_try") 2>&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); }; } &&
31429 { ac_try='test -s conftest$ac_exeext'
31430 { (case "(($ac_try" in
31431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435 (eval "$ac_try") 2>&5
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); }; }; then
31439 ac_cv_func_alloca_works=yes
31441 echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31444 ac_cv_func_alloca_works=no
31447 rm -f core conftest.err conftest.$ac_objext \
31448 conftest$ac_exeext conftest.$ac_ext
31450 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31451 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31453 if test $ac_cv_func_alloca_works = yes; then
31455 cat >>confdefs.h <<\_ACEOF
31456 #define HAVE_ALLOCA 1
31460 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31461 # that cause trouble. Some versions do not even contain alloca or
31462 # contain a buggy version. If you still want to use their alloca,
31463 # use ar to extract alloca.o from them instead of compiling alloca.c.
31465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31467 cat >>confdefs.h <<\_ACEOF
31472 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31473 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31474 if test "${ac_cv_os_cray+set}" = set; then
31475 echo $ECHO_N "(cached) $ECHO_C" >&6
31477 cat >conftest.$ac_ext <<_ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h. */
31483 #if defined CRAY && ! defined CRAY2
31490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31491 $EGREP "webecray" >/dev/null 2>&1; then
31499 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31500 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31501 if test $ac_cv_os_cray = yes; then
31502 for ac_func in _getb67 GETB67 getb67; do
31503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31507 echo $ECHO_N "(cached) $ECHO_C" >&6
31509 cat >conftest.$ac_ext <<_ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h. */
31515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31517 #define $ac_func innocuous_$ac_func
31519 /* System header to define __stub macros and hopefully few prototypes,
31520 which can conflict with char $ac_func (); below.
31521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31522 <limits.h> exists even on freestanding compilers. */
31525 # include <limits.h>
31527 # include <assert.h>
31532 /* Override any GCC internal prototype to avoid an error.
31533 Use char because int might match the return type of a GCC
31534 builtin and then its argument prototype would still apply. */
31539 /* The GNU C library defines this for functions which it implements
31540 to always fail with ENOSYS. Some functions are actually named
31541 something starting with __ and the normal name is an alias. */
31542 #if defined __stub_$ac_func || defined __stub___$ac_func
31549 return $ac_func ();
31554 rm -f conftest.$ac_objext conftest$ac_exeext
31555 if { (ac_try="$ac_link"
31556 case "(($ac_try" in
31557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558 *) ac_try_echo=$ac_try;;
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561 (eval "$ac_link") 2>conftest.er1
31563 grep -v '^ *+' conftest.er1 >conftest.err
31565 cat conftest.err >&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); } &&
31568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; } &&
31578 { ac_try='test -s conftest$ac_exeext'
31579 { (case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_try") 2>&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; }; then
31588 eval "$as_ac_var=yes"
31590 echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31593 eval "$as_ac_var=no"
31596 rm -f core conftest.err conftest.$ac_objext \
31597 conftest$ac_exeext conftest.$ac_ext
31599 ac_res=`eval echo '${'$as_ac_var'}'`
31600 { echo "$as_me:$LINENO: result: $ac_res" >&5
31601 echo "${ECHO_T}$ac_res" >&6; }
31602 if test `eval echo '${'$as_ac_var'}'` = yes; then
31604 cat >>confdefs.h <<_ACEOF
31605 #define CRAY_STACKSEG_END $ac_func
31614 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31615 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31616 if test "${ac_cv_c_stack_direction+set}" = set; then
31617 echo $ECHO_N "(cached) $ECHO_C" >&6
31619 if test "$cross_compiling" = yes; then
31620 ac_cv_c_stack_direction=0
31622 cat >conftest.$ac_ext <<_ACEOF
31625 cat confdefs.h >>conftest.$ac_ext
31626 cat >>conftest.$ac_ext <<_ACEOF
31627 /* end confdefs.h. */
31628 $ac_includes_default
31630 find_stack_direction ()
31632 static char *addr = 0;
31637 return find_stack_direction ();
31640 return (&dummy > addr) ? 1 : -1;
31646 return find_stack_direction () < 0;
31649 rm -f conftest$ac_exeext
31650 if { (ac_try="$ac_link"
31651 case "(($ac_try" in
31652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653 *) ac_try_echo=$ac_try;;
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656 (eval "$ac_link") 2>&5
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31660 { (case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_try") 2>&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; }; then
31669 ac_cv_c_stack_direction=1
31671 echo "$as_me: program exited with status $ac_status" >&5
31672 echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31675 ( exit $ac_status )
31676 ac_cv_c_stack_direction=-1
31678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31683 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31684 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31686 cat >>confdefs.h <<_ACEOF
31687 #define STACK_DIRECTION $ac_cv_c_stack_direction
31694 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31695 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31696 if test "${ac_cv_func_rand48+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31700 ac_cpp='$CXXCPP $CPPFLAGS'
31701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31705 cat >conftest.$ac_ext <<_ACEOF
31708 cat confdefs.h >>conftest.$ac_ext
31709 cat >>conftest.$ac_ext <<_ACEOF
31710 /* end confdefs.h. */
31711 #include <stdlib.h>
31715 srand48(0);lrand48();drand48();
31720 rm -f conftest.$ac_objext
31721 if { (ac_try="$ac_compile"
31722 case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_compile") 2>conftest.er1
31729 grep -v '^ *+' conftest.er1 >conftest.err
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31735 { (case "(($ac_try" in
31736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737 *) ac_try_echo=$ac_try;;
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740 (eval "$ac_try") 2>&5
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
31745 { (case "(($ac_try" in
31746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747 *) ac_try_echo=$ac_try;;
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750 (eval "$ac_try") 2>&5
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; }; then
31754 ac_cv_func_rand48=yes
31756 echo "$as_me: failed program was:" >&5
31757 sed 's/^/| /' conftest.$ac_ext >&5
31759 ac_cv_func_rand48=no
31762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31764 ac_cpp='$CPP $CPPFLAGS'
31765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31770 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31771 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31773 if test "$ac_cv_func_rand48" = "yes" ; then
31775 cat >>confdefs.h <<\_ACEOF
31776 #define HAVE_RAND48 1
31782 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31783 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31784 if test "${ac_cv_cxx_namespaces+set}" = set; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31788 ac_cpp='$CXXCPP $CPPFLAGS'
31789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31793 cat >conftest.$ac_ext <<_ACEOF
31796 cat confdefs.h >>conftest.$ac_ext
31797 cat >>conftest.$ac_ext <<_ACEOF
31798 /* end confdefs.h. */
31799 namespace Outer { namespace Inner { int i = 0; }}
31803 using namespace Outer::Inner; return i;
31808 rm -f conftest.$ac_objext
31809 if { (ac_try="$ac_compile"
31810 case "(($ac_try" in
31811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812 *) ac_try_echo=$ac_try;;
31814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815 (eval "$ac_compile") 2>conftest.er1
31817 grep -v '^ *+' conftest.er1 >conftest.err
31819 cat conftest.err >&5
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); } &&
31822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31823 { (case "(($ac_try" in
31824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825 *) ac_try_echo=$ac_try;;
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828 (eval "$ac_try") 2>&5
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); }; } &&
31832 { ac_try='test -s conftest.$ac_objext'
31833 { (case "(($ac_try" in
31834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835 *) ac_try_echo=$ac_try;;
31837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838 (eval "$ac_try") 2>&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); }; }; then
31842 ac_cv_cxx_namespaces=yes
31844 echo "$as_me: failed program was:" >&5
31845 sed 's/^/| /' conftest.$ac_ext >&5
31847 ac_cv_cxx_namespaces=no
31850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 ac_cpp='$CPP $CPPFLAGS'
31853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31859 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31860 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31861 if test "$ac_cv_cxx_namespaces" = yes; then
31863 cat >>confdefs.h <<\_ACEOF
31864 #define HAVE_NAMESPACES
31869 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31870 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31871 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31872 echo $ECHO_N "(cached) $ECHO_C" >&6
31876 ac_cpp='$CXXCPP $CPPFLAGS'
31877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31881 cat >conftest.$ac_ext <<_ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h. */
31887 #include <ext/hash_map>
31888 #ifdef HAVE_NAMESPACES
31889 using namespace std;
31894 hash_map<int, int> t;
31899 rm -f conftest.$ac_objext
31900 if { (ac_try="$ac_compile"
31901 case "(($ac_try" in
31902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903 *) ac_try_echo=$ac_try;;
31905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31906 (eval "$ac_compile") 2>conftest.er1
31908 grep -v '^ *+' conftest.er1 >conftest.err
31910 cat conftest.err >&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); } &&
31913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31914 { (case "(($ac_try" in
31915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916 *) ac_try_echo=$ac_try;;
31918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919 (eval "$ac_try") 2>&5
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; } &&
31923 { ac_try='test -s conftest.$ac_objext'
31924 { (case "(($ac_try" in
31925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926 *) ac_try_echo=$ac_try;;
31928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929 (eval "$ac_try") 2>&5
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); }; }; then
31933 ac_cv_cxx_have_std_ext_hash_map=yes
31935 echo "$as_me: failed program was:" >&5
31936 sed 's/^/| /' conftest.$ac_ext >&5
31938 ac_cv_cxx_have_std_ext_hash_map=no
31941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 ac_cpp='$CPP $CPPFLAGS'
31944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31950 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31951 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_STD_EXT_HASH_MAP 1
31960 cat >>confdefs.h <<\_ACEOF
31961 #define HAVE_STD_EXT_HASH_MAP 0
31966 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31967 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31968 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31969 echo $ECHO_N "(cached) $ECHO_C" >&6
31973 ac_cpp='$CXXCPP $CPPFLAGS'
31974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31978 cat >conftest.$ac_ext <<_ACEOF
31981 cat confdefs.h >>conftest.$ac_ext
31982 cat >>conftest.$ac_ext <<_ACEOF
31983 /* end confdefs.h. */
31984 #include <ext/hash_map>
31985 #ifdef HAVE_NAMESPACES
31986 using namespace __gnu_cxx;
31991 hash_map<int,int> t;
31996 rm -f conftest.$ac_objext
31997 if { (ac_try="$ac_compile"
31998 case "(($ac_try" in
31999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000 *) ac_try_echo=$ac_try;;
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003 (eval "$ac_compile") 2>conftest.er1
32005 grep -v '^ *+' conftest.er1 >conftest.err
32007 cat conftest.err >&5
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); } &&
32010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32011 { (case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_try") 2>&5
32018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019 (exit $ac_status); }; } &&
32020 { ac_try='test -s conftest.$ac_objext'
32021 { (case "(($ac_try" in
32022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32023 *) ac_try_echo=$ac_try;;
32025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32026 (eval "$ac_try") 2>&5
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; }; then
32030 ac_cv_cxx_have_gnu_ext_hash_map=yes
32032 echo "$as_me: failed program was:" >&5
32033 sed 's/^/| /' conftest.$ac_ext >&5
32035 ac_cv_cxx_have_gnu_ext_hash_map=no
32038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040 ac_cpp='$CPP $CPPFLAGS'
32041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32046 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32047 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32048 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32051 cat >>confdefs.h <<\_ACEOF
32052 #define HAVE_GNU_EXT_HASH_MAP 1
32057 cat >>confdefs.h <<\_ACEOF
32058 #define HAVE_GNU_EXT_HASH_MAP 0
32063 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32064 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32065 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32066 echo $ECHO_N "(cached) $ECHO_C" >&6
32070 ac_cpp='$CXXCPP $CPPFLAGS'
32071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32075 cat >conftest.$ac_ext <<_ACEOF
32078 cat confdefs.h >>conftest.$ac_ext
32079 cat >>conftest.$ac_ext <<_ACEOF
32080 /* end confdefs.h. */
32081 #include <hash_map>
32085 hash_map<int,int> t;
32090 rm -f conftest.$ac_objext
32091 if { (ac_try="$ac_compile"
32092 case "(($ac_try" in
32093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094 *) ac_try_echo=$ac_try;;
32096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097 (eval "$ac_compile") 2>conftest.er1
32099 grep -v '^ *+' conftest.er1 >conftest.err
32101 cat conftest.err >&5
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } &&
32104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32105 { (case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_try") 2>&5
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; } &&
32114 { ac_try='test -s conftest.$ac_objext'
32115 { (case "(($ac_try" in
32116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117 *) ac_try_echo=$ac_try;;
32119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120 (eval "$ac_try") 2>&5
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
32124 ac_cv_cxx_have_global_hash_map=yes
32126 echo "$as_me: failed program was:" >&5
32127 sed 's/^/| /' conftest.$ac_ext >&5
32129 ac_cv_cxx_have_global_hash_map=no
32132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32134 ac_cpp='$CPP $CPPFLAGS'
32135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32140 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32141 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32142 if test "$ac_cv_cxx_have_global_hash_map" = yes
32145 cat >>confdefs.h <<\_ACEOF
32146 #define HAVE_GLOBAL_HASH_MAP 1
32151 cat >>confdefs.h <<\_ACEOF
32152 #define HAVE_GLOBAL_HASH_MAP 0
32157 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32158 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32159 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32160 echo $ECHO_N "(cached) $ECHO_C" >&6
32164 ac_cpp='$CXXCPP $CPPFLAGS'
32165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169 cat >conftest.$ac_ext <<_ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h. */
32175 #include <ext/hash_set>
32176 #ifdef HAVE_NAMESPACES
32177 using namespace std;
32187 rm -f conftest.$ac_objext
32188 if { (ac_try="$ac_compile"
32189 case "(($ac_try" in
32190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_compile") 2>conftest.er1
32196 grep -v '^ *+' conftest.er1 >conftest.err
32198 cat conftest.err >&5
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); } &&
32201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32202 { (case "(($ac_try" in
32203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32204 *) ac_try_echo=$ac_try;;
32206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32207 (eval "$ac_try") 2>&5
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; } &&
32211 { ac_try='test -s conftest.$ac_objext'
32212 { (case "(($ac_try" in
32213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214 *) ac_try_echo=$ac_try;;
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217 (eval "$ac_try") 2>&5
32219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 (exit $ac_status); }; }; then
32221 ac_cv_cxx_have_std_ext_hash_set=yes
32223 echo "$as_me: failed program was:" >&5
32224 sed 's/^/| /' conftest.$ac_ext >&5
32226 ac_cv_cxx_have_std_ext_hash_set=no
32229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32231 ac_cpp='$CPP $CPPFLAGS'
32232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32237 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32238 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32239 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32242 cat >>confdefs.h <<\_ACEOF
32243 #define HAVE_STD_EXT_HASH_SET 1
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_STD_EXT_HASH_SET 0
32254 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32255 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32256 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32261 ac_cpp='$CXXCPP $CPPFLAGS'
32262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32266 cat >conftest.$ac_ext <<_ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h. */
32272 #include <ext/hash_set>
32273 #ifdef HAVE_NAMESPACES
32274 using namespace __gnu_cxx;
32284 rm -f conftest.$ac_objext
32285 if { (ac_try="$ac_compile"
32286 case "(($ac_try" in
32287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_compile") 2>conftest.er1
32293 grep -v '^ *+' conftest.er1 >conftest.err
32295 cat conftest.err >&5
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); } &&
32298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32299 { (case "(($ac_try" in
32300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32301 *) ac_try_echo=$ac_try;;
32303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304 (eval "$ac_try") 2>&5
32306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307 (exit $ac_status); }; } &&
32308 { ac_try='test -s conftest.$ac_objext'
32309 { (case "(($ac_try" in
32310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311 *) ac_try_echo=$ac_try;;
32313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32314 (eval "$ac_try") 2>&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
32318 ac_cv_cxx_have_gnu_ext_hash_set=yes
32320 echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32323 ac_cv_cxx_have_gnu_ext_hash_set=no
32326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32328 ac_cpp='$CPP $CPPFLAGS'
32329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32334 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32335 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32336 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32339 cat >>confdefs.h <<\_ACEOF
32340 #define HAVE_GNU_EXT_HASH_SET 1
32345 cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_GNU_EXT_HASH_SET 0
32351 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32352 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32353 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32354 echo $ECHO_N "(cached) $ECHO_C" >&6
32358 ac_cpp='$CXXCPP $CPPFLAGS'
32359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32363 cat >conftest.$ac_ext <<_ACEOF
32366 cat confdefs.h >>conftest.$ac_ext
32367 cat >>conftest.$ac_ext <<_ACEOF
32368 /* end confdefs.h. */
32369 #include <hash_set>
32373 hash_set<int> t; return 0;
32378 rm -f conftest.$ac_objext
32379 if { (ac_try="$ac_compile"
32380 case "(($ac_try" in
32381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382 *) ac_try_echo=$ac_try;;
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385 (eval "$ac_compile") 2>conftest.er1
32387 grep -v '^ *+' conftest.er1 >conftest.err
32389 cat conftest.err >&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
32392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32393 { (case "(($ac_try" in
32394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32395 *) ac_try_echo=$ac_try;;
32397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32398 (eval "$ac_try") 2>&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
32403 { (case "(($ac_try" in
32404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405 *) ac_try_echo=$ac_try;;
32407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408 (eval "$ac_try") 2>&5
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); }; }; then
32412 ac_cv_cxx_have_global_hash_set=yes
32414 echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32417 ac_cv_cxx_have_global_hash_set=no
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32422 ac_cpp='$CPP $CPPFLAGS'
32423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32428 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32429 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32430 if test "$ac_cv_cxx_have_global_hash_set" = yes
32433 cat >>confdefs.h <<\_ACEOF
32434 #define HAVE_GLOBAL_HASH_SET 1
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_GLOBAL_HASH_SET 0
32445 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32446 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32447 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32448 echo $ECHO_N "(cached) $ECHO_C" >&6
32452 ac_cpp='$CXXCPP $CPPFLAGS'
32453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32457 cat >conftest.$ac_ext <<_ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h. */
32463 #include <iterator>
32464 #ifdef HAVE_NAMESPACES
32465 using namespace std;
32470 iterator<int,int,int> t; return 0;
32475 rm -f conftest.$ac_objext
32476 if { (ac_try="$ac_compile"
32477 case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_compile") 2>conftest.er1
32484 grep -v '^ *+' conftest.er1 >conftest.err
32486 cat conftest.err >&5
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); } &&
32489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32490 { (case "(($ac_try" in
32491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492 *) ac_try_echo=$ac_try;;
32494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495 (eval "$ac_try") 2>&5
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); }; } &&
32499 { ac_try='test -s conftest.$ac_objext'
32500 { (case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_try") 2>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; }; then
32509 ac_cv_cxx_have_std_iterator=yes
32511 echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32514 ac_cv_cxx_have_std_iterator=no
32517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32519 ac_cpp='$CPP $CPPFLAGS'
32520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32526 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32527 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32528 if test "$ac_cv_cxx_have_std_iterator" = yes
32531 cat >>confdefs.h <<\_ACEOF
32532 #define HAVE_STD_ITERATOR 1
32537 cat >>confdefs.h <<\_ACEOF
32538 #define HAVE_STD_ITERATOR 0
32543 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32544 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32545 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32546 echo $ECHO_N "(cached) $ECHO_C" >&6
32550 ac_cpp='$CXXCPP $CPPFLAGS'
32551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32555 cat >conftest.$ac_ext <<_ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h. */
32561 #include <iterator>
32562 #ifdef HAVE_NAMESPACES
32563 using namespace std;
32568 bidirectional_iterator<int,int> t; return 0;
32573 rm -f conftest.$ac_objext
32574 if { (ac_try="$ac_compile"
32575 case "(($ac_try" in
32576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577 *) ac_try_echo=$ac_try;;
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580 (eval "$ac_compile") 2>conftest.er1
32582 grep -v '^ *+' conftest.er1 >conftest.err
32584 cat conftest.err >&5
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } &&
32587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32588 { (case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_try") 2>&5
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest.$ac_objext'
32598 { (case "(($ac_try" in
32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600 *) ac_try_echo=$ac_try;;
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603 (eval "$ac_try") 2>&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
32607 ac_cv_cxx_have_bi_iterator=yes
32609 echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32612 ac_cv_cxx_have_bi_iterator=no
32615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32617 ac_cpp='$CPP $CPPFLAGS'
32618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32624 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32625 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32626 if test "$ac_cv_cxx_have_bi_iterator" = yes
32629 cat >>confdefs.h <<\_ACEOF
32630 #define HAVE_BI_ITERATOR 1
32635 cat >>confdefs.h <<\_ACEOF
32636 #define HAVE_BI_ITERATOR 0
32641 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32642 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32643 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32644 echo $ECHO_N "(cached) $ECHO_C" >&6
32648 ac_cpp='$CXXCPP $CPPFLAGS'
32649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32659 #include <iterator>
32660 #ifdef HAVE_NAMESPACES
32661 using namespace std;
32666 forward_iterator<int,int> t; return 0;
32671 rm -f conftest.$ac_objext
32672 if { (ac_try="$ac_compile"
32673 case "(($ac_try" in
32674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675 *) ac_try_echo=$ac_try;;
32677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678 (eval "$ac_compile") 2>conftest.er1
32680 grep -v '^ *+' conftest.er1 >conftest.err
32682 cat conftest.err >&5
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); } &&
32685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32686 { (case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_try") 2>&5
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; } &&
32695 { ac_try='test -s conftest.$ac_objext'
32696 { (case "(($ac_try" in
32697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698 *) ac_try_echo=$ac_try;;
32700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701 (eval "$ac_try") 2>&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 ac_cv_cxx_have_fwd_iterator=yes
32707 echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32710 ac_cv_cxx_have_fwd_iterator=no
32713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715 ac_cpp='$CPP $CPPFLAGS'
32716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32722 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32723 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32724 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32727 cat >>confdefs.h <<\_ACEOF
32728 #define HAVE_FWD_ITERATOR 1
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_FWD_ITERATOR 0
32740 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32741 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32742 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32746 ac_cpp='$CXXCPP $CPPFLAGS'
32747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32751 cat >conftest.$ac_ext <<_ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h. */
32766 rm -f conftest.$ac_objext
32767 if { (ac_try="$ac_compile"
32768 case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_compile") 2>conftest.er1
32775 grep -v '^ *+' conftest.er1 >conftest.err
32777 cat conftest.err >&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); } &&
32780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32781 { (case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_try") 2>&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); }; } &&
32790 { ac_try='test -s conftest.$ac_objext'
32791 { (case "(($ac_try" in
32792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793 *) ac_try_echo=$ac_try;;
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796 (eval "$ac_try") 2>&5
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; }; then
32800 ac_cv_func_isnan_in_math_h=yes
32802 echo "$as_me: failed program was:" >&5
32803 sed 's/^/| /' conftest.$ac_ext >&5
32805 ac_cv_func_isnan_in_math_h=no
32808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32810 ac_cpp='$CPP $CPPFLAGS'
32811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32816 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32817 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32820 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32822 cat >>confdefs.h <<\_ACEOF
32823 #define HAVE_ISNAN_IN_MATH_H 1
32828 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32829 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32830 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32834 ac_cpp='$CXXCPP $CPPFLAGS'
32835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32839 cat >conftest.$ac_ext <<_ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h. */
32854 rm -f conftest.$ac_objext
32855 if { (ac_try="$ac_compile"
32856 case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_compile") 2>conftest.er1
32863 grep -v '^ *+' conftest.er1 >conftest.err
32865 cat conftest.err >&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); } &&
32868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32869 { (case "(($ac_try" in
32870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_try") 2>&5
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest.$ac_objext'
32879 { (case "(($ac_try" in
32880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881 *) ac_try_echo=$ac_try;;
32883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_try") 2>&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
32888 ac_cv_func_isnan_in_cmath=yes
32890 echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32893 ac_cv_func_isnan_in_cmath=no
32896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32898 ac_cpp='$CPP $CPPFLAGS'
32899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32904 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32905 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32907 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32909 cat >>confdefs.h <<\_ACEOF
32910 #define HAVE_ISNAN_IN_CMATH 1
32915 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32916 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32917 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32918 echo $ECHO_N "(cached) $ECHO_C" >&6
32921 ac_cpp='$CXXCPP $CPPFLAGS'
32922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32926 cat >conftest.$ac_ext <<_ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32936 float f; std::isnan(f);
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_compile") 2>conftest.er1
32950 grep -v '^ *+' conftest.er1 >conftest.err
32952 cat conftest.err >&5
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } &&
32955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32956 { (case "(($ac_try" in
32957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_try") 2>&5
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; } &&
32965 { ac_try='test -s conftest.$ac_objext'
32966 { (case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_try") 2>&5
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
32975 ac_cv_func_std_isnan_in_cmath=yes
32977 echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32980 ac_cv_func_std_isnan_in_cmath=no
32983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32985 ac_cpp='$CPP $CPPFLAGS'
32986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32991 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32992 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32994 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32996 cat >>confdefs.h <<\_ACEOF
32997 #define HAVE_STD_ISNAN_IN_CMATH 1
33003 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33004 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33005 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33006 echo $ECHO_N "(cached) $ECHO_C" >&6
33009 ac_cpp='$CXXCPP $CPPFLAGS'
33010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33014 cat >conftest.$ac_ext <<_ACEOF
33017 cat confdefs.h >>conftest.$ac_ext
33018 cat >>conftest.$ac_ext <<_ACEOF
33019 /* end confdefs.h. */
33029 rm -f conftest.$ac_objext
33030 if { (ac_try="$ac_compile"
33031 case "(($ac_try" in
33032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33033 *) ac_try_echo=$ac_try;;
33035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33036 (eval "$ac_compile") 2>conftest.er1
33038 grep -v '^ *+' conftest.er1 >conftest.err
33040 cat conftest.err >&5
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } &&
33043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33044 { (case "(($ac_try" in
33045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046 *) ac_try_echo=$ac_try;;
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049 (eval "$ac_try") 2>&5
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); }; } &&
33053 { ac_try='test -s conftest.$ac_objext'
33054 { (case "(($ac_try" in
33055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056 *) ac_try_echo=$ac_try;;
33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059 (eval "$ac_try") 2>&5
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; }; then
33063 ac_cv_func_isinf_in_math_h=yes
33065 echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33068 ac_cv_func_isinf_in_math_h=no
33071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33073 ac_cpp='$CPP $CPPFLAGS'
33074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33079 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33080 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33082 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33084 cat >>confdefs.h <<\_ACEOF
33085 #define HAVE_ISINF_IN_MATH_H 1
33090 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33091 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33092 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33096 ac_cpp='$CXXCPP $CPPFLAGS'
33097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33101 cat >conftest.$ac_ext <<_ACEOF
33104 cat confdefs.h >>conftest.$ac_ext
33105 cat >>conftest.$ac_ext <<_ACEOF
33106 /* end confdefs.h. */
33116 rm -f conftest.$ac_objext
33117 if { (ac_try="$ac_compile"
33118 case "(($ac_try" in
33119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120 *) ac_try_echo=$ac_try;;
33122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123 (eval "$ac_compile") 2>conftest.er1
33125 grep -v '^ *+' conftest.er1 >conftest.err
33127 cat conftest.err >&5
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); } &&
33130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33131 { (case "(($ac_try" in
33132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133 *) ac_try_echo=$ac_try;;
33135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136 (eval "$ac_try") 2>&5
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; } &&
33140 { ac_try='test -s conftest.$ac_objext'
33141 { (case "(($ac_try" in
33142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33143 *) ac_try_echo=$ac_try;;
33145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33146 (eval "$ac_try") 2>&5
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); }; }; then
33150 ac_cv_func_isinf_in_cmath=yes
33152 echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33155 ac_cv_func_isinf_in_cmath=no
33158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33160 ac_cpp='$CPP $CPPFLAGS'
33161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33166 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33167 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33169 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33171 cat >>confdefs.h <<\_ACEOF
33172 #define HAVE_ISINF_IN_CMATH 1
33177 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33178 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33179 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33183 ac_cpp='$CXXCPP $CPPFLAGS'
33184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33188 cat >conftest.$ac_ext <<_ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h. */
33198 float f; std::isinf(f)}
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_compile") 2>conftest.er1
33212 grep -v '^ *+' conftest.er1 >conftest.err
33214 cat conftest.err >&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } &&
33217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33218 { (case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_try") 2>&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; } &&
33227 { ac_try='test -s conftest.$ac_objext'
33228 { (case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_try") 2>&5
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; }; then
33237 ac_cv_func_std_isinf_in_cmath=yes
33239 echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33242 ac_cv_func_std_isinf_in_cmath=no
33245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33247 ac_cpp='$CPP $CPPFLAGS'
33248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33253 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33254 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33256 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33258 cat >>confdefs.h <<\_ACEOF
33259 #define HAVE_STD_ISINF_IN_CMATH 1
33264 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33265 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33266 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33267 echo $ECHO_N "(cached) $ECHO_C" >&6
33270 ac_cpp='$CXXCPP $CPPFLAGS'
33271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33275 cat >conftest.$ac_ext <<_ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h. */
33281 #include <ieeefp.h>
33285 float f; finite(f);
33290 rm -f conftest.$ac_objext
33291 if { (ac_try="$ac_compile"
33292 case "(($ac_try" in
33293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294 *) ac_try_echo=$ac_try;;
33296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297 (eval "$ac_compile") 2>conftest.er1
33299 grep -v '^ *+' conftest.er1 >conftest.err
33301 cat conftest.err >&5
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); } &&
33304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33305 { (case "(($ac_try" in
33306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33307 *) ac_try_echo=$ac_try;;
33309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33310 (eval "$ac_try") 2>&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; } &&
33314 { ac_try='test -s conftest.$ac_objext'
33315 { (case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_try") 2>&5
33322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 (exit $ac_status); }; }; then
33324 ac_cv_func_finite_in_ieeefp_h=yes
33326 echo "$as_me: failed program was:" >&5
33327 sed 's/^/| /' conftest.$ac_ext >&5
33329 ac_cv_func_finite_in_ieeefp_h=no
33332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33334 ac_cpp='$CPP $CPPFLAGS'
33335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33340 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33341 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33343 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33345 cat >>confdefs.h <<\_ACEOF
33346 #define HAVE_FINITE_IN_IEEEFP_H 1
33353 if test "$llvm_cv_platform_type" = "Unix" ; then
33356 for ac_header in stdlib.h unistd.h
33358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33363 echo $ECHO_N "(cached) $ECHO_C" >&6
33365 ac_res=`eval echo '${'$as_ac_Header'}'`
33366 { echo "$as_me:$LINENO: result: $ac_res" >&5
33367 echo "${ECHO_T}$ac_res" >&6; }
33369 # Is the header compilable?
33370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33372 cat >conftest.$ac_ext <<_ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h. */
33378 $ac_includes_default
33379 #include <$ac_header>
33381 rm -f conftest.$ac_objext
33382 if { (ac_try="$ac_compile"
33383 case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_compile") 2>conftest.er1
33390 grep -v '^ *+' conftest.er1 >conftest.err
33392 cat conftest.err >&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); } &&
33395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33396 { (case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_try") 2>&5
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; } &&
33405 { ac_try='test -s conftest.$ac_objext'
33406 { (case "(($ac_try" in
33407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33408 *) ac_try_echo=$ac_try;;
33410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33411 (eval "$ac_try") 2>&5
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; }; then
33415 ac_header_compiler=yes
33417 echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33420 ac_header_compiler=no
33423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33425 echo "${ECHO_T}$ac_header_compiler" >&6; }
33427 # Is the header present?
33428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33430 cat >conftest.$ac_ext <<_ACEOF
33433 cat confdefs.h >>conftest.$ac_ext
33434 cat >>conftest.$ac_ext <<_ACEOF
33435 /* end confdefs.h. */
33436 #include <$ac_header>
33438 if { (ac_try="$ac_cpp conftest.$ac_ext"
33439 case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33446 grep -v '^ *+' conftest.er1 >conftest.err
33448 cat conftest.err >&5
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); } >/dev/null; then
33451 if test -s conftest.err; then
33452 ac_cpp_err=$ac_c_preproc_warn_flag
33453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33460 if test -z "$ac_cpp_err"; then
33461 ac_header_preproc=yes
33463 echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33466 ac_header_preproc=no
33469 rm -f conftest.err conftest.$ac_ext
33470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33471 echo "${ECHO_T}$ac_header_preproc" >&6; }
33473 # So? What about this header?
33474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33480 ac_header_preproc=yes
33483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33496 ## ----------------------------------- ##
33497 ## Report this to llvmbugs@cs.uiuc.edu ##
33498 ## ----------------------------------- ##
33500 ) | sed "s/^/$as_me: WARNING: /" >&2
33503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33506 echo $ECHO_N "(cached) $ECHO_C" >&6
33508 eval "$as_ac_Header=\$ac_header_preproc"
33510 ac_res=`eval echo '${'$as_ac_Header'}'`
33511 { echo "$as_me:$LINENO: result: $ac_res" >&5
33512 echo "${ECHO_T}$ac_res" >&6; }
33515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33516 cat >>confdefs.h <<_ACEOF
33517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33525 for ac_func in getpagesize
33527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33531 echo $ECHO_N "(cached) $ECHO_C" >&6
33533 cat >conftest.$ac_ext <<_ACEOF
33536 cat confdefs.h >>conftest.$ac_ext
33537 cat >>conftest.$ac_ext <<_ACEOF
33538 /* end confdefs.h. */
33539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33541 #define $ac_func innocuous_$ac_func
33543 /* System header to define __stub macros and hopefully few prototypes,
33544 which can conflict with char $ac_func (); below.
33545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33546 <limits.h> exists even on freestanding compilers. */
33549 # include <limits.h>
33551 # include <assert.h>
33556 /* Override any GCC internal prototype to avoid an error.
33557 Use char because int might match the return type of a GCC
33558 builtin and then its argument prototype would still apply. */
33563 /* The GNU C library defines this for functions which it implements
33564 to always fail with ENOSYS. Some functions are actually named
33565 something starting with __ and the normal name is an alias. */
33566 #if defined __stub_$ac_func || defined __stub___$ac_func
33573 return $ac_func ();
33578 rm -f conftest.$ac_objext conftest$ac_exeext
33579 if { (ac_try="$ac_link"
33580 case "(($ac_try" in
33581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33582 *) ac_try_echo=$ac_try;;
33584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33585 (eval "$ac_link") 2>conftest.er1
33587 grep -v '^ *+' conftest.er1 >conftest.err
33589 cat conftest.err >&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); } &&
33592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33593 { (case "(($ac_try" in
33594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595 *) ac_try_echo=$ac_try;;
33597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598 (eval "$ac_try") 2>&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest$ac_exeext'
33603 { (case "(($ac_try" in
33604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605 *) ac_try_echo=$ac_try;;
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608 (eval "$ac_try") 2>&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; }; then
33612 eval "$as_ac_var=yes"
33614 echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33617 eval "$as_ac_var=no"
33620 rm -f core conftest.err conftest.$ac_objext \
33621 conftest$ac_exeext conftest.$ac_ext
33623 ac_res=`eval echo '${'$as_ac_var'}'`
33624 { echo "$as_me:$LINENO: result: $ac_res" >&5
33625 echo "${ECHO_T}$ac_res" >&6; }
33626 if test `eval echo '${'$as_ac_var'}'` = yes; then
33627 cat >>confdefs.h <<_ACEOF
33628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33634 { echo "$as_me:$LINENO: checking for working mmap" >&5
33635 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33636 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33637 echo $ECHO_N "(cached) $ECHO_C" >&6
33639 if test "$cross_compiling" = yes; then
33640 ac_cv_func_mmap_fixed_mapped=no
33642 cat >conftest.$ac_ext <<_ACEOF
33645 cat confdefs.h >>conftest.$ac_ext
33646 cat >>conftest.$ac_ext <<_ACEOF
33647 /* end confdefs.h. */
33648 $ac_includes_default
33649 /* malloc might have been renamed as rpl_malloc. */
33652 /* Thanks to Mike Haertel and Jim Avera for this test.
33653 Here is a matrix of mmap possibilities:
33654 mmap private not fixed
33655 mmap private fixed at somewhere currently unmapped
33656 mmap private fixed at somewhere already mapped
33657 mmap shared not fixed
33658 mmap shared fixed at somewhere currently unmapped
33659 mmap shared fixed at somewhere already mapped
33660 For private mappings, we should verify that changes cannot be read()
33661 back from the file, nor mmap's back from the file at a different
33662 address. (There have been systems where private was not correctly
33663 implemented like the infamous i386 svr4.0, and systems where the
33664 VM page cache was not coherent with the file system buffer cache
33665 like early versions of FreeBSD and possibly contemporary NetBSD.)
33666 For shared mappings, we should conversely verify that changes get
33667 propagated back to all the places they're supposed to be.
33669 Grep wants private fixed already mapped.
33670 The main things grep needs to know about mmap are:
33671 * does it exist and is it safe to write into the mmap'd area
33672 * how to use it (BSD variants) */
33675 #include <sys/mman.h>
33677 #if !STDC_HEADERS && !HAVE_STDLIB_H
33681 /* This mess was copied from the GNU getpagesize.h. */
33682 #if !HAVE_GETPAGESIZE
33683 /* Assume that all systems that can run configure have sys/param.h. */
33684 # if !HAVE_SYS_PARAM_H
33685 # define HAVE_SYS_PARAM_H 1
33688 # ifdef _SC_PAGESIZE
33689 # define getpagesize() sysconf(_SC_PAGESIZE)
33690 # else /* no _SC_PAGESIZE */
33691 # if HAVE_SYS_PARAM_H
33692 # include <sys/param.h>
33693 # ifdef EXEC_PAGESIZE
33694 # define getpagesize() EXEC_PAGESIZE
33695 # else /* no EXEC_PAGESIZE */
33697 # define getpagesize() NBPG * CLSIZE
33700 # endif /* no CLSIZE */
33701 # else /* no NBPG */
33703 # define getpagesize() NBPC
33704 # else /* no NBPC */
33706 # define getpagesize() PAGESIZE
33707 # endif /* PAGESIZE */
33708 # endif /* no NBPC */
33709 # endif /* no NBPG */
33710 # endif /* no EXEC_PAGESIZE */
33711 # else /* no HAVE_SYS_PARAM_H */
33712 # define getpagesize() 8192 /* punt totally */
33713 # endif /* no HAVE_SYS_PARAM_H */
33714 # endif /* no _SC_PAGESIZE */
33716 #endif /* no HAVE_GETPAGESIZE */
33721 char *data, *data2, *data3;
33725 pagesize = getpagesize ();
33727 /* First, make a file with some known garbage in it. */
33728 data = (char *) malloc (pagesize);
33731 for (i = 0; i < pagesize; ++i)
33732 *(data + i) = rand ();
33734 fd = creat ("conftest.mmap", 0600);
33737 if (write (fd, data, pagesize) != pagesize)
33741 /* Next, try to mmap the file at a fixed address which already has
33742 something else allocated at it. If we can, also make sure that
33743 we see the same garbage. */
33744 fd = open ("conftest.mmap", O_RDWR);
33747 data2 = (char *) malloc (2 * pagesize);
33750 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33751 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33752 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33754 for (i = 0; i < pagesize; ++i)
33755 if (*(data + i) != *(data2 + i))
33758 /* Finally, make sure that changes to the mapped area do not
33759 percolate back to the file as seen by read(). (This is a bug on
33760 some variants of i386 svr4.0.) */
33761 for (i = 0; i < pagesize; ++i)
33762 *(data2 + i) = *(data2 + i) + 1;
33763 data3 = (char *) malloc (pagesize);
33766 if (read (fd, data3, pagesize) != pagesize)
33768 for (i = 0; i < pagesize; ++i)
33769 if (*(data + i) != *(data3 + i))
33775 rm -f conftest$ac_exeext
33776 if { (ac_try="$ac_link"
33777 case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_link") 2>&5
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33786 { (case "(($ac_try" in
33787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788 *) ac_try_echo=$ac_try;;
33790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791 (eval "$ac_try") 2>&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795 ac_cv_func_mmap_fixed_mapped=yes
33797 echo "$as_me: program exited with status $ac_status" >&5
33798 echo "$as_me: failed program was:" >&5
33799 sed 's/^/| /' conftest.$ac_ext >&5
33801 ( exit $ac_status )
33802 ac_cv_func_mmap_fixed_mapped=no
33804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33809 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33810 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33811 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33813 cat >>confdefs.h <<\_ACEOF
33814 #define HAVE_MMAP 1
33818 rm -f conftest.mmap
33820 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33821 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33822 if test "${ac_cv_func_mmap_file+set}" = set; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33826 ac_cpp='$CPP $CPPFLAGS'
33827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33831 if test "$cross_compiling" = yes; then
33832 ac_cv_func_mmap_file=no
33834 cat >conftest.$ac_ext <<_ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33842 #include <sys/types.h>
33843 #include <sys/mman.h>
33851 fd = creat ("foo",0777);
33852 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33854 return (fd != (int) MAP_FAILED);
33859 rm -f conftest$ac_exeext
33860 if { (ac_try="$ac_link"
33861 case "(($ac_try" in
33862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863 *) ac_try_echo=$ac_try;;
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866 (eval "$ac_link") 2>&5
33868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33870 { (case "(($ac_try" in
33871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872 *) ac_try_echo=$ac_try;;
33874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875 (eval "$ac_try") 2>&5
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); }; }; then
33879 ac_cv_func_mmap_file=yes
33881 echo "$as_me: program exited with status $ac_status" >&5
33882 echo "$as_me: failed program was:" >&5
33883 sed 's/^/| /' conftest.$ac_ext >&5
33885 ( exit $ac_status )
33886 ac_cv_func_mmap_file=no
33888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33893 ac_cpp='$CPP $CPPFLAGS'
33894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33900 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33901 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33902 if test "$ac_cv_func_mmap_file" = yes; then
33904 cat >>confdefs.h <<\_ACEOF
33905 #define HAVE_MMAP_FILE
33912 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33913 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33914 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33915 echo $ECHO_N "(cached) $ECHO_C" >&6
33917 if test "$llvm_cv_os_type" = "Interix" ; then
33918 ac_cv_need_dev_zero_for_mmap=yes
33920 ac_cv_need_dev_zero_for_mmap=no
33924 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33925 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33926 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33928 cat >>confdefs.h <<\_ACEOF
33929 #define NEED_DEV_ZERO_FOR_MMAP 1
33934 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33936 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33937 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33939 if test "$ac_cv_func_mmap_file" = "no"
33941 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33942 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33948 for ac_func in __dso_handle
33950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33954 echo $ECHO_N "(cached) $ECHO_C" >&6
33956 cat >conftest.$ac_ext <<_ACEOF
33959 cat confdefs.h >>conftest.$ac_ext
33960 cat >>conftest.$ac_ext <<_ACEOF
33961 /* end confdefs.h. */
33962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33964 #define $ac_func innocuous_$ac_func
33966 /* System header to define __stub macros and hopefully few prototypes,
33967 which can conflict with char $ac_func (); below.
33968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33969 <limits.h> exists even on freestanding compilers. */
33972 # include <limits.h>
33974 # include <assert.h>
33979 /* Override any GCC internal prototype to avoid an error.
33980 Use char because int might match the return type of a GCC
33981 builtin and then its argument prototype would still apply. */
33986 /* The GNU C library defines this for functions which it implements
33987 to always fail with ENOSYS. Some functions are actually named
33988 something starting with __ and the normal name is an alias. */
33989 #if defined __stub_$ac_func || defined __stub___$ac_func
33996 return $ac_func ();
34001 rm -f conftest.$ac_objext conftest$ac_exeext
34002 if { (ac_try="$ac_link"
34003 case "(($ac_try" in
34004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008 (eval "$ac_link") 2>conftest.er1
34010 grep -v '^ *+' conftest.er1 >conftest.err
34012 cat conftest.err >&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } &&
34015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34016 { (case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_try") 2>&5
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; } &&
34025 { ac_try='test -s conftest$ac_exeext'
34026 { (case "(($ac_try" in
34027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028 *) ac_try_echo=$ac_try;;
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031 (eval "$ac_try") 2>&5
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); }; }; then
34035 eval "$as_ac_var=yes"
34037 echo "$as_me: failed program was:" >&5
34038 sed 's/^/| /' conftest.$ac_ext >&5
34040 eval "$as_ac_var=no"
34043 rm -f core conftest.err conftest.$ac_objext \
34044 conftest$ac_exeext conftest.$ac_ext
34046 ac_res=`eval echo '${'$as_ac_var'}'`
34047 { echo "$as_me:$LINENO: result: $ac_res" >&5
34048 echo "${ECHO_T}$ac_res" >&6; }
34049 if test `eval echo '${'$as_ac_var'}'` = yes; then
34050 cat >>confdefs.h <<_ACEOF
34051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34058 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34059 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34060 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34061 echo $ECHO_N "(cached) $ECHO_C" >&6
34063 llvm_cv_llvmgcc_sanity="no"
34064 if test -x "$LLVMGCC" ; then
34065 cp /dev/null conftest.c
34066 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34067 grep 'target datalayout =' > /dev/null 2>&1
34068 if test $? -eq 0 ; then
34069 llvm_cv_llvmgcc_sanity="yes"
34074 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34075 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34077 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34078 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34079 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34080 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34081 LLVMCC1=$llvmcc1path
34083 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34084 LLVMCC1PLUS=$llvmcc1pluspath
34086 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34087 LLVMGCCDIR=$llvmgccdir
34089 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34090 LLVMGCCLIBEXEC=$llvmgcclibexec
34092 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34093 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34094 LLVMGCC_VERSION=$llvmgccversion
34096 LLVMGCC_MAJVERS=$llvmgccmajvers
34098 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34099 LLVMGCC_LANGS=$llvmgcclangs
34101 { echo "$as_me:$LINENO: result: ok" >&5
34102 echo "${ECHO_T}ok" >&6; }
34105 SHLIBEXT=$libltdl_cv_shlibext
34108 # Translate the various configuration directories and other basic
34109 # information into substitutions that will end up in Makefile.config.in
34110 # that these configured values can be used by the makefiles
34111 if test "${prefix}" = "NONE" ; then
34112 prefix="/usr/local"
34114 eval LLVM_PREFIX="${prefix}";
34115 eval LLVM_BINDIR="${prefix}/bin";
34116 eval LLVM_LIBDIR="${prefix}/lib";
34117 eval LLVM_DATADIR="${prefix}/share/llvm";
34118 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34119 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34120 eval LLVM_INCLUDEDIR="${prefix}/include";
34121 eval LLVM_INFODIR="${prefix}/info";
34122 eval LLVM_MANDIR="${prefix}/man";
34123 LLVM_CONFIGTIME=`date`
34135 # Place the various directores into the config.h file as #defines so that we
34136 # can know about the installation paths within LLVM.
34138 cat >>confdefs.h <<_ACEOF
34139 #define LLVM_PREFIX "$LLVM_PREFIX"
34143 cat >>confdefs.h <<_ACEOF
34144 #define LLVM_BINDIR "$LLVM_BINDIR"
34148 cat >>confdefs.h <<_ACEOF
34149 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34153 cat >>confdefs.h <<_ACEOF
34154 #define LLVM_DATADIR "$LLVM_DATADIR"
34158 cat >>confdefs.h <<_ACEOF
34159 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34163 cat >>confdefs.h <<_ACEOF
34164 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34168 cat >>confdefs.h <<_ACEOF
34169 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34173 cat >>confdefs.h <<_ACEOF
34174 #define LLVM_INFODIR "$LLVM_INFODIR"
34178 cat >>confdefs.h <<_ACEOF
34179 #define LLVM_MANDIR "$LLVM_MANDIR"
34183 cat >>confdefs.h <<_ACEOF
34184 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34188 cat >>confdefs.h <<_ACEOF
34189 #define LLVM_HOSTTRIPLE "$host"
34193 # Determine which bindings to build.
34194 if test "$BINDINGS_TO_BUILD" = auto ; then
34195 BINDINGS_TO_BUILD=""
34196 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34197 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34200 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34203 # This isn't really configurey, but it avoids having to repeat the list in
34208 # Do any work necessary to ensure that bindings have what they need.
34209 binding_prereqs_failed=0
34210 for a_binding in $BINDINGS_TO_BUILD ; do
34211 case "$a_binding" in
34213 if test "x$OCAMLC" = x ; then
34214 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34215 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34216 binding_prereqs_failed=1
34218 if test "x$OCAMLDEP" = x ; then
34219 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34220 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34221 binding_prereqs_failed=1
34223 if test "x$OCAMLOPT" = x ; then
34224 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34225 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34227 if test "x$with_ocaml_libdir" != xauto ; then
34228 OCAML_LIBDIR=$with_ocaml_libdir
34231 ocaml_stdlib="`"$OCAMLC" -where`"
34232 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34234 # ocaml stdlib is beneath our prefix; use stdlib
34235 OCAML_LIBDIR=$ocaml_stdlib
34238 # ocaml stdlib is outside our prefix; use libdir/ocaml
34239 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34246 if test "$binding_prereqs_failed" = 1 ; then
34247 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34248 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34249 { (exit 1); exit 1; }; }
34254 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34256 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34258 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34260 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34262 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34265 ac_config_files="$ac_config_files Makefile.config"
34268 ac_config_files="$ac_config_files llvm.spec"
34271 ac_config_files="$ac_config_files docs/doxygen.cfg"
34274 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34277 ac_config_commands="$ac_config_commands setup"
34279 ac_config_commands="$ac_config_commands Makefile"
34282 ac_config_commands="$ac_config_commands Makefile.common"
34285 ac_config_commands="$ac_config_commands examples/Makefile"
34288 ac_config_commands="$ac_config_commands lib/Makefile"
34291 ac_config_commands="$ac_config_commands runtime/Makefile"
34294 ac_config_commands="$ac_config_commands test/Makefile"
34297 ac_config_commands="$ac_config_commands test/Makefile.tests"
34300 ac_config_commands="$ac_config_commands tools/Makefile"
34303 ac_config_commands="$ac_config_commands utils/Makefile"
34306 ac_config_commands="$ac_config_commands projects/Makefile"
34309 ac_config_commands="$ac_config_commands bindings/Makefile"
34312 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34316 cat >confcache <<\_ACEOF
34317 # This file is a shell script that caches the results of configure
34318 # tests run on this system so they can be shared between configure
34319 # scripts and configure runs, see configure's option --config-cache.
34320 # It is not useful on other systems. If it contains results you don't
34321 # want to keep, you may remove or edit it.
34323 # config.status only pays attention to the cache file if you give it
34324 # the --recheck option to rerun configure.
34326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34328 # following values.
34332 # The following way of writing the cache mishandles newlines in values,
34333 # but we know of no workaround that is simple, portable, and efficient.
34334 # So, we kill variables containing newlines.
34335 # Ultrix sh set writes to stderr and can't be redirected directly,
34336 # and sets the high bit in the cache file unless we assign to the vars.
34338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34339 eval ac_val=\$$ac_var
34343 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34344 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34347 _ | IFS | as_nl) ;; #(
34348 *) $as_unset $ac_var ;;
34354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34355 *${as_nl}ac_space=\ *)
34356 # `set' does not quote correctly, so add quotes (double-quote
34357 # substitution turns \\\\ into \\, and sed turns \\ into \).
34360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34363 # `set' quotes correctly as required by POSIX, so do not add quotes.
34364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34378 if test -w "$cache_file"; then
34379 test "x$cache_file" != "x/dev/null" &&
34380 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34381 echo "$as_me: updating cache $cache_file" >&6;}
34382 cat confcache >$cache_file
34384 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34385 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34391 # Let make expand exec_prefix.
34392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34394 DEFS=-DHAVE_CONFIG_H
34398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34399 # 1. Remove the extension, and $U if already installed.
34400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34401 ac_i=`echo "$ac_i" | sed "$ac_script"`
34402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34403 # will be set to the directory where LIBOBJS objects are built.
34404 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34405 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34407 LIBOBJS=$ac_libobjs
34409 LTLIBOBJS=$ac_ltlibobjs
34412 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34413 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34414 Usually this means the macro was only invoked conditionally." >&5
34415 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34416 Usually this means the macro was only invoked conditionally." >&2;}
34417 { (exit 1); exit 1; }; }
34419 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34420 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34421 Usually this means the macro was only invoked conditionally." >&5
34422 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34423 Usually this means the macro was only invoked conditionally." >&2;}
34424 { (exit 1); exit 1; }; }
34427 : ${CONFIG_STATUS=./config.status}
34428 ac_clean_files_save=$ac_clean_files
34429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34430 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34431 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34432 cat >$CONFIG_STATUS <<_ACEOF
34434 # Generated by $as_me.
34435 # Run this file to recreate the current configuration.
34436 # Compiler output produced by configure, useful for debugging
34437 # configure, is in config.log if it exists.
34440 ac_cs_recheck=false
34442 SHELL=\${CONFIG_SHELL-$SHELL}
34445 cat >>$CONFIG_STATUS <<\_ACEOF
34446 ## --------------------- ##
34447 ## M4sh Initialization. ##
34448 ## --------------------- ##
34450 # Be Bourne compatible
34451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34455 # is contrary to our usage. Disable this feature.
34456 alias -g '${1+"$@"}'='"$@"'
34457 setopt NO_GLOB_SUBST
34459 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34461 BIN_SH=xpg4; export BIN_SH # for Tru64
34462 DUALCASE=1; export DUALCASE # for MKS sh
34466 # Avoid depending upon Character Ranges.
34467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34470 as_cr_digits='0123456789'
34471 as_cr_alnum=$as_cr_Letters$as_cr_digits
34473 # The user is always right.
34474 if test "${PATH_SEPARATOR+set}" != set; then
34475 echo "#! /bin/sh" >conf$$.sh
34476 echo "exit 0" >>conf$$.sh
34478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34486 # Support unset when possible.
34487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34495 # We need space, tab and new line, in precisely that order. Quoting is
34496 # there to prevent editors from complaining about space-tab.
34497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34498 # splitting by setting IFS to empty value.)
34503 # Find who we are. Look in the path if we contain no directory separator.
34505 *[\\/]* ) as_myself=$0 ;;
34506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34507 for as_dir in $PATH
34510 test -z "$as_dir" && as_dir=.
34511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34517 # We did not find ourselves, most probably we were run as `sh COMMAND'
34518 # in which case we are not to be found in the path.
34519 if test "x$as_myself" = x; then
34522 if test ! -f "$as_myself"; then
34523 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34524 { (exit 1); exit 1; }
34527 # Work around bugs in pre-3.0 UWIN ksh.
34528 for as_var in ENV MAIL MAILPATH
34529 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34537 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34538 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34539 LC_TELEPHONE LC_TIME
34541 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34542 eval $as_var=C; export $as_var
34544 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34548 # Required to use basename.
34549 if expr a : '\(a\)' >/dev/null 2>&1 &&
34550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34557 as_basename=basename
34563 # Name of the executable.
34564 as_me=`$as_basename -- "$0" ||
34565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34566 X"$0" : 'X\(//\)$' \| \
34567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34569 sed '/^.*\/\([^/][^/]*\)\/*$/{
34588 as_lineno_1=$LINENO
34589 as_lineno_2=$LINENO
34590 test "x$as_lineno_1" != "x$as_lineno_2" &&
34591 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34593 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34594 # uniformly replaced by the line number. The first 'sed' inserts a
34595 # line-number line after each line using $LINENO; the second 'sed'
34596 # does the real work. The second script uses 'N' to pair each
34597 # line-number line with the line containing $LINENO, and appends
34598 # trailing '-' during substitution so that $LINENO is not a special
34599 # case at line end.
34600 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34601 # scripts with optimization help from Paolo Bonzini. Blame Lee
34602 # E. McMahon (1931-1989) for sed's syntax. :-)
34614 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34617 ' >$as_me.lineno &&
34618 chmod +x "$as_me.lineno" ||
34619 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34620 { (exit 1); exit 1; }; }
34622 # Don't try to exec as it changes $[0], causing all sort of problems
34623 # (the dirname of $[0] is not the place where we might find the
34624 # original and so on. Autoconf is especially sensitive to this).
34625 . "./$as_me.lineno"
34626 # Exit status is that of the last command.
34631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34637 ECHO_C= ECHO_N= ECHO_T=
34638 case `echo -n x` in
34640 case `echo 'x\c'` in
34641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34648 if expr a : '\(a\)' >/dev/null 2>&1 &&
34649 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34655 rm -f conf$$ conf$$.exe conf$$.file
34656 if test -d conf$$.dir; then
34657 rm -f conf$$.dir/conf$$.file
34663 if ln -s conf$$.file conf$$ 2>/dev/null; then
34665 # ... but there are two gotchas:
34666 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34667 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34668 # In both cases, we have to default to `cp -p'.
34669 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34671 elif ln conf$$.file conf$$ 2>/dev/null; then
34676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34677 rmdir conf$$.dir 2>/dev/null
34679 if mkdir -p . 2>/dev/null; then
34682 test -d ./-p && rmdir ./-p
34686 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34687 # systems may use methods other than mode bits to determine executability.
34688 cat >conf$$.file <<_ASEOF
34692 chmod +x conf$$.file
34693 if test -x conf$$.file >/dev/null 2>&1; then
34694 as_executable_p="test -x"
34700 # Sed expression to map a string onto a valid CPP name.
34701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34703 # Sed expression to map a string onto a valid variable name.
34704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34709 # Save the log message, to keep $[0] and so on meaningful, and to
34710 # report actual input values of CONFIG_FILES etc. instead of their
34711 # values after options handling.
34713 This file was extended by llvm $as_me 2.3svn, which was
34714 generated by GNU Autoconf 2.60. Invocation command line was
34716 CONFIG_FILES = $CONFIG_FILES
34717 CONFIG_HEADERS = $CONFIG_HEADERS
34718 CONFIG_LINKS = $CONFIG_LINKS
34719 CONFIG_COMMANDS = $CONFIG_COMMANDS
34722 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34727 cat >>$CONFIG_STATUS <<_ACEOF
34728 # Files that config.status was made for.
34729 config_files="$ac_config_files"
34730 config_headers="$ac_config_headers"
34731 config_commands="$ac_config_commands"
34735 cat >>$CONFIG_STATUS <<\_ACEOF
34737 \`$as_me' instantiates files from templates according to the
34738 current configuration.
34740 Usage: $0 [OPTIONS] [FILE]...
34742 -h, --help print this help, then exit
34743 -V, --version print version number, then exit
34744 -q, --quiet do not print progress messages
34745 -d, --debug don't remove temporary files
34746 --recheck update $as_me by reconfiguring in the same conditions
34747 --file=FILE[:TEMPLATE]
34748 instantiate the configuration file FILE
34749 --header=FILE[:TEMPLATE]
34750 instantiate the configuration header FILE
34752 Configuration files:
34755 Configuration headers:
34758 Configuration commands:
34761 Report bugs to <bug-autoconf@gnu.org>."
34764 cat >>$CONFIG_STATUS <<_ACEOF
34766 llvm config.status 2.3svn
34767 configured by $0, generated by GNU Autoconf 2.60,
34768 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34770 Copyright (C) 2006 Free Software Foundation, Inc.
34771 This config.status script is free software; the Free Software Foundation
34772 gives unlimited permission to copy, distribute and modify it."
34779 cat >>$CONFIG_STATUS <<\_ACEOF
34780 # If no file are specified by the user, then we need to provide default
34781 # value. By we need to know if files were specified by the user.
34787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34788 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34799 # Handling of the options.
34800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34802 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34803 echo "$ac_cs_version"; exit ;;
34804 --debug | --debu | --deb | --de | --d | -d )
34806 --file | --fil | --fi | --f )
34808 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34809 ac_need_defaults=false;;
34810 --header | --heade | --head | --hea )
34812 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34813 ac_need_defaults=false;;
34815 # Conflict between --help and --header
34816 { echo "$as_me: error: ambiguous option: $1
34817 Try \`$0 --help' for more information." >&2
34818 { (exit 1); exit 1; }; };;
34819 --help | --hel | -h )
34820 echo "$ac_cs_usage"; exit ;;
34821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34822 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34825 # This is an error.
34826 -*) { echo "$as_me: error: unrecognized option: $1
34827 Try \`$0 --help' for more information." >&2
34828 { (exit 1); exit 1; }; } ;;
34830 *) ac_config_targets="$ac_config_targets $1"
34831 ac_need_defaults=false ;;
34837 ac_configure_extra_args=
34839 if $ac_cs_silent; then
34841 ac_configure_extra_args="$ac_configure_extra_args --silent"
34845 cat >>$CONFIG_STATUS <<_ACEOF
34846 if \$ac_cs_recheck; then
34847 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34848 CONFIG_SHELL=$SHELL
34849 export CONFIG_SHELL
34850 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34854 cat >>$CONFIG_STATUS <<\_ACEOF
34858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34859 ## Running $as_me. ##
34865 cat >>$CONFIG_STATUS <<_ACEOF
34869 llvm_src="${srcdir}"
34873 cat >>$CONFIG_STATUS <<\_ACEOF
34875 # Handling of arguments.
34876 for ac_config_target in $ac_config_targets
34878 case $ac_config_target in
34879 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34880 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34881 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34882 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34883 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34884 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34885 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34886 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34887 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34888 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34889 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34890 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34891 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34892 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34893 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34894 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34895 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34896 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34897 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34898 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34899 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34900 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34903 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34904 { (exit 1); exit 1; }; };;
34909 # If the user did not use the arguments to specify the items to instantiate,
34910 # then the envvar interface is used. Set only those that are not.
34911 # We use the long form for the default assignment because of an extremely
34912 # bizarre bug on SunOS 4.1.3.
34913 if $ac_need_defaults; then
34914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34919 # Have a temporary directory for convenience. Make it in the build tree
34920 # simply because there is no reason against having it here, and in addition,
34921 # creating and moving files from /tmp can sometimes cause problems.
34922 # Hook for its removal unless debugging.
34923 # Note that there is a small window in which the directory will not be cleaned:
34924 # after its creation but before its name has been assigned to `$tmp'.
34928 trap 'exit_status=$?
34929 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34931 trap '{ (exit 1); exit 1; }' 1 2 13 15
34933 # Create a (secure) tmp directory for tmp files.
34936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34937 test -n "$tmp" && test -d "$tmp"
34940 tmp=./conf$$-$RANDOM
34941 (umask 077 && mkdir "$tmp")
34944 echo "$me: cannot create a temporary directory in ." >&2
34945 { (exit 1); exit 1; }
34949 # Set up the sed scripts for CONFIG_FILES section.
34952 # No need to generate the scripts if there are no CONFIG_FILES.
34953 # This happens for instance when ./config.status config.h
34954 if test -n "$CONFIG_FILES"; then
34961 for ac_last_try in false false false false false :; do
34962 cat >conf$$subs.sed <<_ACEOF
34963 SHELL!$SHELL$ac_delim
34964 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34965 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34966 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34967 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34968 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34969 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34970 exec_prefix!$exec_prefix$ac_delim
34971 prefix!$prefix$ac_delim
34972 program_transform_name!$program_transform_name$ac_delim
34973 bindir!$bindir$ac_delim
34974 sbindir!$sbindir$ac_delim
34975 libexecdir!$libexecdir$ac_delim
34976 datarootdir!$datarootdir$ac_delim
34977 datadir!$datadir$ac_delim
34978 sysconfdir!$sysconfdir$ac_delim
34979 sharedstatedir!$sharedstatedir$ac_delim
34980 localstatedir!$localstatedir$ac_delim
34981 includedir!$includedir$ac_delim
34982 oldincludedir!$oldincludedir$ac_delim
34983 docdir!$docdir$ac_delim
34984 infodir!$infodir$ac_delim
34985 htmldir!$htmldir$ac_delim
34986 dvidir!$dvidir$ac_delim
34987 pdfdir!$pdfdir$ac_delim
34988 psdir!$psdir$ac_delim
34989 libdir!$libdir$ac_delim
34990 localedir!$localedir$ac_delim
34991 mandir!$mandir$ac_delim
34992 DEFS!$DEFS$ac_delim
34993 ECHO_C!$ECHO_C$ac_delim
34994 ECHO_N!$ECHO_N$ac_delim
34995 ECHO_T!$ECHO_T$ac_delim
34996 LIBS!$LIBS$ac_delim
34997 build_alias!$build_alias$ac_delim
34998 host_alias!$host_alias$ac_delim
34999 target_alias!$target_alias$ac_delim
35000 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35001 subdirs!$subdirs$ac_delim
35002 build!$build$ac_delim
35003 build_cpu!$build_cpu$ac_delim
35004 build_vendor!$build_vendor$ac_delim
35005 build_os!$build_os$ac_delim
35006 host!$host$ac_delim
35007 host_cpu!$host_cpu$ac_delim
35008 host_vendor!$host_vendor$ac_delim
35009 host_os!$host_os$ac_delim
35010 target!$target$ac_delim
35011 target_cpu!$target_cpu$ac_delim
35012 target_vendor!$target_vendor$ac_delim
35013 target_os!$target_os$ac_delim
35015 LINKALL!$LINKALL$ac_delim
35016 NOLINKALL!$NOLINKALL$ac_delim
35017 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35018 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35019 ARCH!$ARCH$ac_delim
35020 ENDIAN!$ENDIAN$ac_delim
35022 CFLAGS!$CFLAGS$ac_delim
35023 LDFLAGS!$LDFLAGS$ac_delim
35024 CPPFLAGS!$CPPFLAGS$ac_delim
35025 ac_ct_CC!$ac_ct_CC$ac_delim
35026 EXEEXT!$EXEEXT$ac_delim
35027 OBJEXT!$OBJEXT$ac_delim
35029 GREP!$GREP$ac_delim
35030 EGREP!$EGREP$ac_delim
35031 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35032 BUILD_CC!$BUILD_CC$ac_delim
35033 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35034 CVSBUILD!$CVSBUILD$ac_delim
35035 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35036 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35037 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35038 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35039 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35041 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35042 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35043 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35044 ENABLE_PIC!$ENABLE_PIC$ac_delim
35045 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35046 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35047 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35049 CXXFLAGS!$CXXFLAGS$ac_delim
35050 ac_ct_CXX!$ac_ct_CXX$ac_delim
35052 LEXLIB!$LEXLIB$ac_delim
35053 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35054 FLEX!$FLEX$ac_delim
35055 YACC!$YACC$ac_delim
35056 YFLAGS!$YFLAGS$ac_delim
35057 BISON!$BISON$ac_delim
35059 ifGNUmake!$ifGNUmake$ac_delim
35062 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35064 elif $ac_last_try; then
35065 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35066 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35067 { (exit 1); exit 1; }; }
35069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35073 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35074 if test -n "$ac_eof"; then
35075 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35076 ac_eof=`expr $ac_eof + 1`
35079 cat >>$CONFIG_STATUS <<_ACEOF
35080 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35084 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35085 s/^/s,@/; s/!/@,|#_!!_#|/
35088 s/'"$ac_delim"'$/,g/; t
35090 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35091 ' >>$CONFIG_STATUS <conf$$subs.sed
35092 rm -f conf$$subs.sed
35093 cat >>$CONFIG_STATUS <<_ACEOF
35099 for ac_last_try in false false false false false :; do
35100 cat >conf$$subs.sed <<_ACEOF
35101 LN_S!$LN_S$ac_delim
35104 DATE!$DATE$ac_delim
35105 FIND!$FIND$ac_delim
35106 MKDIR!$MKDIR$ac_delim
35108 RANLIB!$RANLIB$ac_delim
35112 BINPWD!$BINPWD$ac_delim
35113 GRAPHVIZ!$GRAPHVIZ$ac_delim
35116 DOTTY!$DOTTY$ac_delim
35117 PERL!$PERL$ac_delim
35118 HAVE_PERL!$HAVE_PERL$ac_delim
35119 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35120 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35121 INSTALL_DATA!$INSTALL_DATA$ac_delim
35122 BZIP2!$BZIP2$ac_delim
35123 DOXYGEN!$DOXYGEN$ac_delim
35124 GROFF!$GROFF$ac_delim
35125 GZIP!$GZIP$ac_delim
35126 POD2HTML!$POD2HTML$ac_delim
35127 POD2MAN!$POD2MAN$ac_delim
35128 RUNTEST!$RUNTEST$ac_delim
35129 TCLSH!$TCLSH$ac_delim
35131 OCAMLC!$OCAMLC$ac_delim
35132 OCAMLOPT!$OCAMLOPT$ac_delim
35133 OCAMLDEP!$OCAMLDEP$ac_delim
35134 OCAMLDOC!$OCAMLDOC$ac_delim
35135 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35136 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35137 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35138 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35139 LIBADD_DL!$LIBADD_DL$ac_delim
35140 ECHO!$ECHO$ac_delim
35142 STRIP!$STRIP$ac_delim
35143 CXXCPP!$CXXCPP$ac_delim
35145 FFLAGS!$FFLAGS$ac_delim
35146 ac_ct_F77!$ac_ct_F77$ac_delim
35147 LIBTOOL!$LIBTOOL$ac_delim
35148 LLVMGCC!$LLVMGCC$ac_delim
35149 LLVMGXX!$LLVMGXX$ac_delim
35150 USE_UDIS86!$USE_UDIS86$ac_delim
35151 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35152 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35153 ALLOCA!$ALLOCA$ac_delim
35154 MMAP_FILE!$MMAP_FILE$ac_delim
35155 LLVMCC1!$LLVMCC1$ac_delim
35156 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35157 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35158 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35159 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35160 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35161 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35162 SHLIBEXT!$SHLIBEXT$ac_delim
35163 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35164 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35165 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35166 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35167 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35168 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35169 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35170 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35171 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35172 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35173 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35174 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35175 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35176 LIBOBJS!$LIBOBJS$ac_delim
35177 LTLIBOBJS!$LTLIBOBJS$ac_delim
35180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35182 elif $ac_last_try; then
35183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35185 { (exit 1); exit 1; }; }
35187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35192 if test -n "$ac_eof"; then
35193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35194 ac_eof=`expr $ac_eof + 1`
35197 cat >>$CONFIG_STATUS <<_ACEOF
35198 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35203 s/^/s,@/; s/!/@,|#_!!_#|/
35206 s/'"$ac_delim"'$/,g/; t
35208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35209 ' >>$CONFIG_STATUS <conf$$subs.sed
35210 rm -f conf$$subs.sed
35211 cat >>$CONFIG_STATUS <<_ACEOF
35218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35220 # trailing colons and then remove the whole line if VPATH becomes empty
35221 # (actually we leave an empty line to preserve line numbers).
35222 if test "x$srcdir" = x.; then
35223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35224 s/:*\$(srcdir):*/:/
35225 s/:*\${srcdir}:*/:/
35227 s/^\([^=]*=[ ]*\):*/\1/
35233 cat >>$CONFIG_STATUS <<\_ACEOF
35234 fi # test -n "$CONFIG_FILES"
35237 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35240 :[FHLC]) ac_mode=$ac_tag; continue;;
35242 case $ac_mode$ac_tag in
35244 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35245 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35246 { (exit 1); exit 1; }; };;
35247 :[FH]-) ac_tag=-:-;;
35248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35265 -) ac_f="$tmp/stdin";;
35266 *) # Look for the file first in the build tree, then in the source tree
35267 # (if the path is not absolute). The absolute path cannot be DOS-style,
35268 # because $ac_f cannot contain `:'.
35272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35274 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35275 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35276 { (exit 1); exit 1; }; };;
35278 ac_file_inputs="$ac_file_inputs $ac_f"
35281 # Let's still pretend it is `configure' which instantiates (i.e., don't
35282 # use $as_me), people would be surprised to read:
35283 # /* config.h. Generated by config.status. */
35284 configure_input="Generated from "`IFS=:
35285 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35286 if test x"$ac_file" != x-; then
35287 configure_input="$ac_file. $configure_input"
35288 { echo "$as_me:$LINENO: creating $ac_file" >&5
35289 echo "$as_me: creating $ac_file" >&6;}
35293 *:-:* | *:-) cat >"$tmp/stdin";;
35298 ac_dir=`$as_dirname -- "$ac_file" ||
35299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35300 X"$ac_file" : 'X\(//\)[^/]' \| \
35301 X"$ac_file" : 'X\(//\)$' \| \
35302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35308 /^X\(\/\/\)[^/].*/{
35323 -*) as_dir=./$as_dir;;
35325 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35329 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35330 *) as_qdir=$as_dir;;
35332 as_dirs="'$as_qdir' $as_dirs"
35333 as_dir=`$as_dirname -- "$as_dir" ||
35334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35335 X"$as_dir" : 'X\(//\)[^/]' \| \
35336 X"$as_dir" : 'X\(//\)$' \| \
35337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35343 /^X\(\/\/\)[^/].*/{
35356 test -d "$as_dir" && break
35358 test -z "$as_dirs" || eval "mkdir $as_dirs"
35359 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35360 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35361 { (exit 1); exit 1; }; }; }
35365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35368 # A ".." for each directory in $ac_dir_suffix.
35369 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35370 case $ac_top_builddir_sub in
35371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35375 ac_abs_top_builddir=$ac_pwd
35376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35377 # for backward compatibility:
35378 ac_top_builddir=$ac_top_build_prefix
35381 .) # We are building in place.
35383 ac_top_srcdir=$ac_top_builddir_sub
35384 ac_abs_top_srcdir=$ac_pwd ;;
35385 [\\/]* | ?:[\\/]* ) # Absolute name.
35386 ac_srcdir=$srcdir$ac_dir_suffix;
35387 ac_top_srcdir=$srcdir
35388 ac_abs_top_srcdir=$srcdir ;;
35389 *) # Relative name.
35390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35391 ac_top_srcdir=$ac_top_build_prefix$srcdir
35392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35409 cat >>$CONFIG_STATUS <<\_ACEOF
35410 # If the template does not know about datarootdir, expand it.
35411 # FIXME: This hack should be removed a few years after 2.60.
35412 ac_datarootdir_hack=; ac_datarootdir_seen=
35414 case `sed -n '/datarootdir/ {
35423 ' $ac_file_inputs` in
35424 *datarootdir*) ac_datarootdir_seen=yes;;
35425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35426 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35427 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35429 cat >>$CONFIG_STATUS <<_ACEOF
35430 ac_datarootdir_hack='
35431 s&@datadir@&$datadir&g
35432 s&@docdir@&$docdir&g
35433 s&@infodir@&$infodir&g
35434 s&@localedir@&$localedir&g
35435 s&@mandir@&$mandir&g
35436 s&\\\${datarootdir}&$datarootdir&g' ;;
35440 # Neutralize VPATH when `$srcdir' = `.'.
35441 # Shell code in configure.ac might set extrasub.
35442 # FIXME: do we really want to maintain this feature?
35443 cat >>$CONFIG_STATUS <<_ACEOF
35447 cat >>$CONFIG_STATUS <<\_ACEOF
35449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35450 s&@configure_input@&$configure_input&;t t
35451 s&@top_builddir@&$ac_top_builddir_sub&;t t
35452 s&@srcdir@&$ac_srcdir&;t t
35453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35454 s&@top_srcdir@&$ac_top_srcdir&;t t
35455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35456 s&@builddir@&$ac_builddir&;t t
35457 s&@abs_builddir@&$ac_abs_builddir&;t t
35458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35459 s&@INSTALL@&$ac_INSTALL&;t t
35460 $ac_datarootdir_hack
35461 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35467 which seems to be undefined. Please make sure it is defined." >&5
35468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35469 which seems to be undefined. Please make sure it is defined." >&2;}
35473 -) cat "$tmp/out"; rm -f "$tmp/out";;
35474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35483 # Transform confdefs.h into a sed script `conftest.defines', that
35484 # substitutes the proper values into config.h.in to produce config.h.
35485 rm -f conftest.defines conftest.tail
35486 # First, append a space to every undef/define line, to ease matching.
35487 echo 's/$/ /' >conftest.defines
35488 # Then, protect against being on the right side of a sed subst, or in
35489 # an unquoted here document, in config.status. If some macros were
35490 # called several times there might be several #defines for the same
35491 # symbol, which is useless. But do not sort them, since the last
35492 # AC_DEFINE must be honored.
35493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35494 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35495 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35496 # PARAMS is the parameter list in the macro definition--in most cases, it's
35497 # just an empty string.
35498 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35499 ac_dB='\\)[ (].*,\\1define\\2'
35507 s/^[ ]*#[ ]*define[ ][ ]*//
35512 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35513 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35514 ' >>conftest.defines
35516 # Remove the space that was appended to ease matching.
35517 # Then replace #undef with comments. This is necessary, for
35518 # example, in the case of _POSIX_SOURCE, which is predefined and required
35519 # on some systems where configure will not decide to define it.
35520 # (The regexp can be short, since the line contains either #define or #undef.)
35522 s,^[ #]*u.*,/* & */,' >>conftest.defines
35524 # Break up conftest.defines:
35525 ac_max_sed_lines=50
35527 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35528 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35529 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35531 ac_in='$ac_file_inputs'
35532 ac_out='"$tmp/out1"'
35533 ac_nxt='"$tmp/out2"'
35537 # Write a here document:
35538 cat >>$CONFIG_STATUS <<_ACEOF
35539 # First, check the format of the line:
35540 cat >"\$tmp/defines.sed" <<\\CEOF
35541 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35542 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35546 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35548 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35549 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35550 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35551 grep . conftest.tail >/dev/null || break
35552 rm -f conftest.defines
35553 mv conftest.tail conftest.defines
35555 rm -f conftest.defines conftest.tail
35557 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35558 cat >>$CONFIG_STATUS <<\_ACEOF
35559 if test x"$ac_file" != x-; then
35560 echo "/* $configure_input */" >"$tmp/config.h"
35561 cat "$ac_result" >>"$tmp/config.h"
35562 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35564 echo "$as_me: $ac_file is unchanged" >&6;}
35567 mv "$tmp/config.h" $ac_file
35570 echo "/* $configure_input */"
35576 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35577 echo "$as_me: executing $ac_file commands" >&6;}
35582 case $ac_file$ac_mode in
35583 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35584 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35585 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35586 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35587 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35588 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35589 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35591 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35593 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35595 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35597 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35599 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35601 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35603 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35605 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35612 { (exit 0); exit 0; }
35614 chmod +x $CONFIG_STATUS
35615 ac_clean_files=$ac_clean_files_save
35618 # configure is writing to config.log, and then calls config.status.
35619 # config.status does its own redirection, appending to config.log.
35620 # Unfortunately, on DOS this fails, as config.log is still kept open
35621 # by configure, so config.status won't be able to write to it; its
35622 # output is simply discarded. So we exec the FD to /dev/null,
35623 # effectively closing config.log, so it can be properly (re)opened and
35624 # appended to by config.status. When coming back to configure, we
35625 # need to make the FD available again.
35626 if test "$no_create" != yes; then
35628 ac_config_status_args=
35629 test "$silent" = yes &&
35630 ac_config_status_args="$ac_config_status_args --quiet"
35632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35635 # would make configure fail if this is the last instruction.
35636 $ac_cs_success || { (exit 1); exit 1; }
35640 # CONFIG_SUBDIRS section.
35642 if test "$no_recursion" != yes; then
35644 # Remove --cache-file and --srcdir arguments so they do not pile up.
35645 ac_sub_configure_args=
35647 eval "set x $ac_configure_args"
35651 if test -n "$ac_prev"; then
35656 -cache-file | --cache-file | --cache-fil | --cache-fi \
35657 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35658 ac_prev=cache_file ;;
35659 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35660 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35663 --config-cache | -C)
35665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35675 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35677 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35681 # Always prepend --prefix to ensure using the same prefix
35682 # in subdir configurations.
35683 ac_arg="--prefix=$prefix"
35685 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35687 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35690 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35692 # Do not complain, so a configure script can configure whichever
35693 # parts of a large source tree are present.
35694 test -d "$srcdir/$ac_dir" || continue
35696 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35697 echo "$as_me:$LINENO: $ac_msg" >&5
35701 -*) as_dir=./$as_dir;;
35703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35708 *) as_qdir=$as_dir;;
35710 as_dirs="'$as_qdir' $as_dirs"
35711 as_dir=`$as_dirname -- "$as_dir" ||
35712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35713 X"$as_dir" : 'X\(//\)[^/]' \| \
35714 X"$as_dir" : 'X\(//\)$' \| \
35715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35721 /^X\(\/\/\)[^/].*/{
35734 test -d "$as_dir" && break
35736 test -z "$as_dirs" || eval "mkdir $as_dirs"
35737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35739 { (exit 1); exit 1; }; }; }
35743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35746 # A ".." for each directory in $ac_dir_suffix.
35747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35748 case $ac_top_builddir_sub in
35749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35753 ac_abs_top_builddir=$ac_pwd
35754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35755 # for backward compatibility:
35756 ac_top_builddir=$ac_top_build_prefix
35759 .) # We are building in place.
35761 ac_top_srcdir=$ac_top_builddir_sub
35762 ac_abs_top_srcdir=$ac_pwd ;;
35763 [\\/]* | ?:[\\/]* ) # Absolute name.
35764 ac_srcdir=$srcdir$ac_dir_suffix;
35765 ac_top_srcdir=$srcdir
35766 ac_abs_top_srcdir=$srcdir ;;
35767 *) # Relative name.
35768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35769 ac_top_srcdir=$ac_top_build_prefix$srcdir
35770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35777 # Check for guested configure; otherwise get Cygnus style configure.
35778 if test -f "$ac_srcdir/configure.gnu"; then
35779 ac_sub_configure=$ac_srcdir/configure.gnu
35780 elif test -f "$ac_srcdir/configure"; then
35781 ac_sub_configure=$ac_srcdir/configure
35782 elif test -f "$ac_srcdir/configure.in"; then
35783 # This should be Cygnus configure.
35784 ac_sub_configure=$ac_aux_dir/configure
35786 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35787 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35791 # The recursion is here.
35792 if test -n "$ac_sub_configure"; then
35793 # Make the cache file name correct relative to the subdirectory.
35794 case $cache_file in
35795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35796 *) # Relative name.
35797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35800 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35801 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35802 # The eval makes quoting arguments work.
35803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35805 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35806 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35807 { (exit 1); exit 1; }; }