2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.2svn.
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-2007 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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
833 ENABLE_EXPENSIVE_CHECKS
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
932 ac_precious_vars='build_alias
948 ac_subdirs_all='projects/sample
950 projects/llvm-stacker
956 projects/llvm-poolalloc
958 projects/llvm-kernel'
960 # Initialize some variables set by options.
962 ac_init_version=false
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name=s,x,x,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1067 eval enable_$ac_feature=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086 eval enable_$ac_feature=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1250 -site=* | --site=* | --sit=*)
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1277 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package| sed 's/-/_/g'`
1283 eval with_$ac_package=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1289 { echo "$as_me: error: invalid package name: $ac_package" >&2
1290 { (exit 1); exit 1; }; }
1291 ac_package=`echo $ac_package | sed 's/-/_/g'`
1292 eval with_$ac_package=no ;;
1295 # Obsolete; use --with-x.
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) { echo "$as_me: error: unrecognized option: $ac_option
1313 Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1343 # Be sure to have absolute directory names.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val=\$$ac_var
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
1397 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
1400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429 { (exit 1); exit 1; }; }
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1434 { (exit 1); exit 1; }; }
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of llvm 2.2svn:";;
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-expensive-checks
1537 --enable-debug-runtime
1538 --enable-jit Enable Just In Time Compiling (default is YES)
1539 --enable-doxygen Build doxygen documentation (default is NO)
1540 --enable-threads Use threads if available (default is YES)
1541 --enable-pic Build LLVM with Position Independent Code (default
1543 --enable-targets Build specific host targets:
1544 all,host-only,{target-name} (default=all)
1545 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 --enable-bindings Build specific language bindings:
1548 all,auto,none,{binding-name} (default=auto)
1549 --enable-ltdl-install install libltdl
1550 --enable-shared[=PKGS] build shared libraries
1552 --enable-static[=PKGS] build static libraries
1554 --enable-fast-install[=PKGS]
1555 optimize for fast installation
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 --with-extra-options Specify addtional options to compile LLVM with
1565 --with-tclinclude directory where tcl headers are
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-pic try to use only PIC/non-PIC objects [default=use
1569 --with-tags[=TAGS] include additional configurations [automatic]
1570 --with-udis86=<path> Use udis86 external x86 disassembler library
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1580 CXX C++ compiler command
1581 CXXFLAGS C++ compiler flags
1582 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1583 the first program found out of: `bison -y', `byacc', `yacc'.
1584 YFLAGS The list of arguments that will be passed by default to $YACC.
1585 This script will default YFLAGS to the empty string to avoid a
1586 default value of `-d' given by some make applications.
1587 CXXCPP C++ preprocessor
1588 F77 Fortran 77 compiler command
1589 FFLAGS Fortran 77 compiler flags
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1594 Report bugs to <llvmbugs@cs.uiuc.edu>.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" || continue
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1622 .) # We are building in place.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1655 llvm configure 2.2svn
1656 generated by GNU Autoconf 2.60
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1663 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1667 cat >config.log <<_ACEOF
1668 This file contains any messages produced by compilers while
1669 running configure, to aid debugging if configure makes a mistake.
1671 It was created by llvm $as_me 2.2svn, which was
1672 generated by GNU Autoconf 2.60. Invocation command line was
1684 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1685 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1686 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1687 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1688 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1691 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1693 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1694 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1695 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1696 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1697 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1698 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1699 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 echo "PATH: $as_dir"
1724 # Keep a trace of the command line.
1725 # Strip out --no-create and --no-recursion so they do not pile up.
1726 # Strip out --silent because we don't want to record it for future runs.
1727 # Also quote any args containing shell meta-characters.
1728 # Make two passes to allow for proper duplicate-argument suppression.
1732 ac_must_keep_next=false
1738 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740 | -silent | --silent | --silen | --sile | --sil)
1743 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1749 if test $ac_must_keep_next = true; then
1750 ac_must_keep_next=false # Got value, back to normal.
1753 *=* | --config-cache | -C | -disable-* | --disable-* \
1754 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1755 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1756 | -with-* | --with-* | -without-* | --without-* | --x)
1757 case "$ac_configure_args0 " in
1758 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761 -* ) ac_must_keep_next=true ;;
1764 ac_configure_args="$ac_configure_args '$ac_arg'"
1769 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1770 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772 # When interrupted or exit'd, cleanup temporary files, and complete
1773 # config.log. We remove comments because anyway the quotes in there
1774 # would cause problems or look ugly.
1775 # WARNING: Use '\'' to represent an apostrophe within the trap.
1776 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1777 trap 'exit_status=$?
1778 # Save into config.log some information that might help in debugging.
1783 ## ---------------- ##
1784 ## Cache variables. ##
1785 ## ---------------- ##
1788 # The following way of writing the cache mishandles newlines in values,
1790 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1791 eval ac_val=\$$ac_var
1795 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1796 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1799 _ | IFS | as_nl) ;; #(
1800 *) $as_unset $ac_var ;;
1805 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806 *${as_nl}ac_space=\ *)
1808 "s/'\''/'\''\\\\'\'''\''/g;
1809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820 ## ----------------- ##
1821 ## Output variables. ##
1822 ## ----------------- ##
1825 for ac_var in $ac_subst_vars
1827 eval ac_val=\$$ac_var
1829 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 echo "$ac_var='\''$ac_val'\''"
1835 if test -n "$ac_subst_files"; then
1837 ## ------------------- ##
1838 ## File substitutions. ##
1839 ## ------------------- ##
1842 for ac_var in $ac_subst_files
1844 eval ac_val=\$$ac_var
1846 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 echo "$ac_var='\''$ac_val'\''"
1853 if test -s confdefs.h; then
1863 test "$ac_signal" != 0 &&
1864 echo "$as_me: caught signal $ac_signal"
1865 echo "$as_me: exit $exit_status"
1867 rm -f core *.core core.conftest.* &&
1868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1871 for ac_signal in 1 2 13 15; do
1872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1877 rm -f -r conftest* confdefs.h
1879 # Predefined preprocessor variables.
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 # Let the site file select an alternate cache file if it wants to.
1907 # Prefer explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909 set x "$CONFIG_SITE"
1910 elif test "x$prefix" != xNONE; then
1911 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1913 set x "$ac_default_prefix/share/config.site" \
1914 "$ac_default_prefix/etc/config.site"
1919 if test -r "$ac_site_file"; then
1920 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921 echo "$as_me: loading site script $ac_site_file" >&6;}
1922 sed 's/^/| /' "$ac_site_file" >&5
1927 if test -r "$cache_file"; then
1928 # Some versions of bash will fail to source /dev/null (special
1929 # files actually), so we avoid doing that.
1930 if test -f "$cache_file"; then
1931 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932 echo "$as_me: loading cache $cache_file" >&6;}
1934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935 *) . "./$cache_file";;
1939 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940 echo "$as_me: creating cache $cache_file" >&6;}
1944 # Check that the precious variables saved in the cache have kept the same
1946 ac_cache_corrupted=false
1947 for ac_var in $ac_precious_vars; do
1948 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1949 eval ac_new_set=\$ac_env_${ac_var}_set
1950 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1951 eval ac_new_val=\$ac_env_${ac_var}_value
1952 case $ac_old_set,$ac_new_set in
1954 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1956 ac_cache_corrupted=: ;;
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1963 if test "x$ac_old_val" != "x$ac_new_val"; then
1964 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1965 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1966 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1967 echo "$as_me: former value: $ac_old_val" >&2;}
1968 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1969 echo "$as_me: current value: $ac_new_val" >&2;}
1970 ac_cache_corrupted=:
1973 # Pass precious variables to config.status.
1974 if test "$ac_new_set" = set; then
1976 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1977 *) ac_arg=$ac_var=$ac_new_val ;;
1979 case " $ac_configure_args " in
1980 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1981 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 if $ac_cache_corrupted; then
1986 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1990 { (exit 1); exit 1; }; }
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2034 for ac_dir in autoconf "$srcdir"/autoconf; do
2035 if test -f "$ac_dir/install-sh"; then
2037 ac_install_sh="$ac_aux_dir/install-sh -c"
2039 elif test -f "$ac_dir/install.sh"; then
2041 ac_install_sh="$ac_aux_dir/install.sh -c"
2043 elif test -f "$ac_dir/shtool"; then
2045 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 if test -z "$ac_aux_dir"; then
2050 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2051 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2052 { (exit 1); exit 1; }; }
2055 # These three variables are undocumented and unsupported,
2056 # and are intended to be withdrawn in a future Autoconf release.
2057 # They can cause serious problems if a builder's source tree is in a directory
2058 # whose full name contains unusual characters.
2059 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2060 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2061 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065 if test ${srcdir} != "." ; then
2066 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2067 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2068 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2069 { (exit 1); exit 1; }; }
2073 for i in `ls ${srcdir}/projects`
2075 if test -d ${srcdir}/projects/${i} ; then
2078 sample) subdirs="$subdirs projects/sample"
2080 privbracket) subdirs="$subdirs projects/privbracket"
2082 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2084 llvm-test) subdirs="$subdirs projects/llvm-test"
2086 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2088 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2090 llvm-java) subdirs="$subdirs projects/llvm-java"
2092 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2094 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2096 poolalloc) subdirs="$subdirs projects/poolalloc"
2098 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2101 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2102 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2109 # Make sure we can run config.sub.
2110 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2111 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2112 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2113 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: checking build system type" >&5
2116 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2117 if test "${ac_cv_build+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 ac_build_alias=$build_alias
2121 test "x$ac_build_alias" = x &&
2122 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2123 test "x$ac_build_alias" = x &&
2124 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2125 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2126 { (exit 1); exit 1; }; }
2127 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2128 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2129 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2130 { (exit 1); exit 1; }; }
2133 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2134 echo "${ECHO_T}$ac_cv_build" >&6; }
2135 case $ac_cv_build in
2137 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2138 echo "$as_me: error: invalid value of canonical build" >&2;}
2139 { (exit 1); exit 1; }; };;
2142 ac_save_IFS=$IFS; IFS='-'
2148 # Remember, the first character of IFS is used to create $*,
2149 # except with old shells:
2152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2155 { echo "$as_me:$LINENO: checking host system type" >&5
2156 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2157 if test "${ac_cv_host+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test "x$host_alias" = x; then
2161 ac_cv_host=$ac_cv_build
2163 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2164 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2165 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2166 { (exit 1); exit 1; }; }
2170 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2171 echo "${ECHO_T}$ac_cv_host" >&6; }
2174 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2175 echo "$as_me: error: invalid value of canonical host" >&2;}
2176 { (exit 1); exit 1; }; };;
2179 ac_save_IFS=$IFS; IFS='-'
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2192 { echo "$as_me:$LINENO: checking target system type" >&5
2193 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2194 if test "${ac_cv_target+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 if test "x$target_alias" = x; then
2198 ac_cv_target=$ac_cv_host
2200 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2201 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2202 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2203 { (exit 1); exit 1; }; }
2207 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2208 echo "${ECHO_T}$ac_cv_target" >&6; }
2209 case $ac_cv_target in
2211 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2212 echo "$as_me: error: invalid value of canonical target" >&2;}
2213 { (exit 1); exit 1; }; };;
2215 target=$ac_cv_target
2216 ac_save_IFS=$IFS; IFS='-'
2222 # Remember, the first character of IFS is used to create $*,
2223 # except with old shells:
2226 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2229 # The aliases save the names the user supplied, while $host etc.
2230 # will get canonicalized.
2231 test -n "$target_alias" &&
2232 test "$program_prefix$program_suffix$program_transform_name" = \
2234 program_prefix=${target_alias}-
2236 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2237 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2238 if test "${llvm_cv_os_type+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="AIX"
2246 llvm_cv_platform_type="Unix" ;;
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="IRIX"
2251 llvm_cv_platform_type="Unix" ;;
2253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255 llvm_cv_os_type="Cygwin"
2256 llvm_cv_platform_type="Unix" ;;
2258 llvm_cv_link_all_option="-Wl,-all_load"
2259 llvm_cv_link_all_option="-Wl,-noall_load"
2260 llvm_cv_os_type="Darwin"
2261 llvm_cv_platform_type="Unix" ;;
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="FreeBSD"
2266 llvm_cv_platform_type="Unix" ;;
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="OpenBSD"
2271 llvm_cv_platform_type="Unix" ;;
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="NetBSD"
2276 llvm_cv_platform_type="Unix" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="HP-UX"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Interix"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Linux"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option="-Wl,-z,allextract"
2294 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2295 llvm_cv_os_type="SunOS"
2296 llvm_cv_platform_type="Unix" ;;
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="Win32"
2301 llvm_cv_platform_type="Win32" ;;
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="MingW"
2306 llvm_cv_platform_type="Win32" ;;
2308 llvm_cv_link_all_option=""
2309 llvm_cv_no_link_all_option=""
2310 llvm_cv_os_type="Unknown"
2311 llvm_cv_platform_type="Unknown" ;;
2314 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2315 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2317 if test "$llvm_cv_os_type" = "Unknown" ; then
2318 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2319 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2320 { (exit 1); exit 1; }; }
2326 LINKALL=$llvm_cv_link_all_option
2328 NOLINKALL=$llvm_cv_no_link_all_option
2331 case $llvm_cv_platform_type in
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_UNIX 1
2345 cat >>confdefs.h <<\_ACEOF
2346 #define LLVM_ON_WIN32 1
2356 { echo "$as_me:$LINENO: checking target architecture" >&5
2357 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2358 if test "${llvm_cv_target_arch+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 i?86-*) llvm_cv_target_arch="x86" ;;
2363 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2364 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2365 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2366 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2367 ia64-*) llvm_cv_target_arch="IA64" ;;
2368 arm-*) llvm_cv_target_arch="ARM" ;;
2369 mips-*) llvm_cv_target_arch="Mips" ;;
2370 *) llvm_cv_target_arch="Unknown" ;;
2373 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2374 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2376 if test "$llvm_cv_target_arch" = "Unknown" ; then
2377 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2378 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2381 ARCH=$llvm_cv_target_arch
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2428 if test -z "$ac_cv_prog_CC"; then
2430 # Extract the first word of "gcc", so it can be a program name with args.
2431 set dummy gcc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$ac_ct_CC"; then
2438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_ac_ct_CC="gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2458 if test -n "$ac_ct_CC"; then
2459 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2460 echo "${ECHO_T}$ac_ct_CC" >&6; }
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2466 if test "x$ac_ct_CC" = x; then
2469 case $cross_compiling:$ac_tool_warned in
2471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2472 whose name does not start with the host triplet. If you think this
2473 configuration is useful to you, please write to autoconf@gnu.org." >&5
2474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2477 ac_tool_warned=yes ;;
2485 if test -z "$CC"; then
2486 if test -n "$ac_tool_prefix"; then
2487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2488 set dummy ${ac_tool_prefix}cc; ac_word=$2
2489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491 if test "${ac_cv_prog_CC+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2504 ac_cv_prog_CC="${ac_tool_prefix}cc"
2505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 if test -n "$CC"; then
2516 { echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6; }
2519 { echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6; }
2526 if test -z "$CC"; then
2527 # Extract the first word of "cc", so it can be a program name with args.
2528 set dummy cc; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2546 ac_prog_rejected=yes
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test $ac_prog_rejected = yes; then
2558 # We found a bogon in the path, so make sure we never use it.
2559 set dummy $ac_cv_prog_CC
2561 if test $# != 0; then
2562 # We chose a different compiler from the bogus one.
2563 # However, it has the same basename, so the bogon will be chosen
2564 # first if we set CC to just the basename; use the full file name.
2566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572 if test -n "$CC"; then
2573 { echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6; }
2576 { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2582 if test -z "$CC"; then
2583 if test -n "$ac_tool_prefix"; then
2584 for ac_prog in cl.exe
2586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2590 if test "${ac_cv_prog_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 if test -n "$CC"; then
2615 { echo "$as_me:$LINENO: result: $CC" >&5
2616 echo "${ECHO_T}$CC" >&6; }
2618 { echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6; }
2623 test -n "$CC" && break
2626 if test -z "$CC"; then
2628 for ac_prog in cl.exe
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 if test -n "$ac_ct_CC"; then
2638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_ac_ct_CC="$ac_prog"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658 if test -n "$ac_ct_CC"; then
2659 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660 echo "${ECHO_T}$ac_ct_CC" >&6; }
2662 { echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6; }
2667 test -n "$ac_ct_CC" && break
2670 if test "x$ac_ct_CC" = x; then
2673 case $cross_compiling:$ac_tool_warned in
2675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2676 whose name does not start with the host triplet. If you think this
2677 configuration is useful to you, please write to autoconf@gnu.org." >&5
2678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2681 ac_tool_warned=yes ;;
2690 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2696 # Provide some information about the compiler.
2697 echo "$as_me:$LINENO: checking for C compiler version" >&5
2698 ac_compiler=`set X $ac_compile; echo $2`
2699 { (ac_try="$ac_compiler --version >&5"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler --version >&5") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2709 { (ac_try="$ac_compiler -v >&5"
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compiler -v >&5") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }
2719 { (ac_try="$ac_compiler -V >&5"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compiler -V >&5") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2745 ac_clean_files_save=$ac_clean_files
2746 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2747 # Try to create an executable without -o first, disregard a.out.
2748 # It will help us diagnose broken compilers, and finding out an intuition
2750 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2751 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754 # List of possible output files, starting from the most likely.
2755 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2756 # only as a last resort. b.out is created by i960 compilers.
2757 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2759 # The IRIX 6 linker writes into existing files which may not be
2760 # executable, retaining their permissions. Remove them first so a
2761 # subsequent execution test works.
2763 for ac_file in $ac_files
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2767 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2772 if { (ac_try="$ac_link_default"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_link_default") 2>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; then
2782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2785 # so that the user can short-circuit this test for compilers unknown to
2787 for ac_file in $ac_files
2789 test -f "$ac_file" || continue
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2794 # We found the default executable, but exeext='' is most
2798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2802 # We set ac_cv_exeext here because the later test for it is not
2803 # safe: cross compilers may not add the suffix if given an `-o'
2804 # argument, so we may need to know it at that point already.
2805 # Even if this section looks crufty: it has the advantage of
2812 test "$ac_cv_exeext" = no && ac_cv_exeext=
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2818 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&2;}
2822 { (exit 77); exit 77; }; }
2825 ac_exeext=$ac_cv_exeext
2826 { echo "$as_me:$LINENO: result: $ac_file" >&5
2827 echo "${ECHO_T}$ac_file" >&6; }
2829 # Check that the compiler produces executables we can run. If not, either
2830 # the compiler is broken, or we cross compile.
2831 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2832 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2833 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2834 # If not cross compiling, check that we can run a simple program.
2835 if test "$cross_compiling" != yes; then
2836 if { ac_try='./$ac_file'
2837 { (case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_try") 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2848 if test "$cross_compiling" = maybe; then
2851 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&2;}
2857 { (exit 1); exit 1; }; }
2861 { echo "$as_me:$LINENO: result: yes" >&5
2862 echo "${ECHO_T}yes" >&6; }
2864 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2865 ac_clean_files=$ac_clean_files_save
2866 # Check that the compiler produces executables we can run. If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2869 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2870 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2871 echo "${ECHO_T}$cross_compiling" >&6; }
2873 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2874 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2875 if { (ac_try="$ac_link"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_link") 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2887 # work properly (i.e., refer to `conftest.exe'), while it won't with
2889 for ac_file in conftest.exe conftest conftest.*; do
2890 test -f "$ac_file" || continue
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2900 See \`config.log' for more details." >&5
2901 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2906 rm -f conftest$ac_cv_exeext
2907 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2908 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2910 rm -f conftest.$ac_ext
2911 EXEEXT=$ac_cv_exeext
2913 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2914 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2915 if test "${ac_cv_objext+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.o conftest.obj
2934 if { (ac_try="$ac_compile"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_compile") 2>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; then
2944 for ac_file in conftest.o conftest.obj conftest.*; do
2945 test -f "$ac_file" || continue;
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&2;}
2960 { (exit 1); exit 1; }; }
2963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2965 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2966 echo "${ECHO_T}$ac_cv_objext" >&6; }
2967 OBJEXT=$ac_cv_objext
2969 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2992 rm -f conftest.$ac_objext
2993 if { (ac_try="$ac_compile"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compile") 2>conftest.er1
3001 grep -v '^ *+' conftest.er1 >conftest.err
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; } &&
3016 { ac_try='test -s conftest.$ac_objext'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3038 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3039 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3040 GCC=`test $ac_compiler_gnu = yes && echo yes`
3041 ac_test_CFLAGS=${CFLAGS+set}
3042 ac_save_CFLAGS=$CFLAGS
3043 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3044 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3045 if test "${ac_cv_prog_cc_g+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 ac_save_c_werror_flag=$ac_c_werror_flag
3049 ac_c_werror_flag=yes
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 rm -f conftest.$ac_objext
3068 if { (ac_try="$ac_compile"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3178 rm -f conftest.$ac_objext
3179 if { (ac_try="$ac_compile"
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3187 grep -v '^ *+' conftest.er1 >conftest.err
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_try") 2>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_c_werror_flag=$ac_save_c_werror_flag
3229 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3231 if test "$ac_test_CFLAGS" = set; then
3232 CFLAGS=$ac_save_CFLAGS
3233 elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3240 if test "$GCC" = yes; then
3246 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3247 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_cc_c89+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 ac_cv_prog_cc_c89=no
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3277 s = g (p, va_arg (v,int));
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std. */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296 int test (int i, double x);
3297 struct s1 {int (*f) (int a);};
3298 struct s2 {int (*f) (double a);};
3299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 CC="$ac_save_CC $ac_arg"
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_compile") 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_try") 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_prog_cc_c89=$ac_arg
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3356 rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
3359 rm -f conftest.$ac_ext
3364 case "x$ac_cv_prog_cc_c89" in
3366 { echo "$as_me:$LINENO: result: none needed" >&5
3367 echo "${ECHO_T}none needed" >&6; } ;;
3369 { echo "$as_me:$LINENO: result: unsupported" >&5
3370 echo "${ECHO_T}unsupported" >&6; } ;;
3372 CC="$CC $ac_cv_prog_cc_c89"
3373 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3391 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3392 # On Suns, sometimes $CPP names a directory.
3393 if test -n "$CPP" && test -d "$CPP"; then
3396 if test -z "$CPP"; then
3397 if test "${ac_cv_prog_CPP+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 # Double quotes because CPP needs to be expanded
3401 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 for ac_c_preproc_warn_flag in '' yes
3406 # Use a header file that comes with gcc, so configuring glibc
3407 # with a fresh cross-compiler works.
3408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3409 # <limits.h> exists even on freestanding compilers.
3410 # On the NeXT, cc -E runs the code through the compiler's parser,
3411 # not just through cpp. "Syntax error" is here to catch this case.
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3419 # include <limits.h>
3421 # include <assert.h>
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447 if test -z "$ac_cpp_err"; then
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 # Broken: fails on valid input.
3457 rm -f conftest.err conftest.$ac_ext
3459 # OK, works on sane cases. Now check whether nonexistent headers
3460 # can be detected and how.
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467 #include <ac_nonexistent.h>
3469 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 grep -v '^ *+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_c_preproc_warn_flag
3484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Passes both tests.
3503 rm -f conftest.err conftest.$ac_ext
3506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507 rm -f conftest.err conftest.$ac_ext
3508 if $ac_preproc_ok; then
3520 { echo "$as_me:$LINENO: result: $CPP" >&5
3521 echo "${ECHO_T}$CPP" >&6; }
3523 for ac_c_preproc_warn_flag in '' yes
3525 # Use a header file that comes with gcc, so configuring glibc
3526 # with a fresh cross-compiler works.
3527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3528 # <limits.h> exists even on freestanding compilers.
3529 # On the NeXT, cc -E runs the code through the compiler's parser,
3530 # not just through cpp. "Syntax error" is here to catch this case.
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3538 # include <limits.h>
3540 # include <assert.h>
3544 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 grep -v '^ *+' conftest.er1 >conftest.err
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3566 if test -z "$ac_cpp_err"; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 # Broken: fails on valid input.
3576 rm -f conftest.err conftest.$ac_ext
3578 # OK, works on sane cases. Now check whether nonexistent headers
3579 # can be detected and how.
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <ac_nonexistent.h>
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null; then
3601 if test -s conftest.err; then
3602 ac_cpp_err=$ac_c_preproc_warn_flag
3603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 if test -z "$ac_cpp_err"; then
3611 # Broken: success on invalid input.
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 # Passes both tests.
3622 rm -f conftest.err conftest.$ac_ext
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then
3630 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3631 See \`config.log' for more details." >&5
3632 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&2;}
3634 { (exit 1); exit 1; }; }
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3645 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3646 if test "${ac_cv_path_GREP+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 # Extract the first word of "grep ggrep" to use in msg output
3650 if test -z "$GREP"; then
3651 set dummy grep ggrep; ac_prog_name=$2
3652 if test "${ac_cv_path_GREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 ac_path_GREP_found=false
3656 # Loop through the user's path and test for each of PROGNAME-LIST
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661 test -z "$as_dir" && as_dir=.
3662 for ac_prog in grep ggrep; do
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3665 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3666 # Check for GNU ac_path_GREP and select it if it is found.
3667 # Check for GNU $ac_path_GREP
3668 case `"$ac_path_GREP" --version 2>&1` in
3670 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3676 cat "conftest.in" "conftest.in" >"conftest.tmp"
3677 mv "conftest.tmp" "conftest.in"
3678 cp "conftest.in" "conftest.nl"
3679 echo 'GREP' >> "conftest.nl"
3680 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3682 ac_count=`expr $ac_count + 1`
3683 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3684 # Best one so far, save it but keep looking for a better one
3685 ac_cv_path_GREP="$ac_path_GREP"
3686 ac_path_GREP_max=$ac_count
3688 # 10*(2^10) chars as input seems more than enough
3689 test $ac_count -gt 10 && break
3691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 $ac_path_GREP_found && break 3
3705 GREP="$ac_cv_path_GREP"
3706 if test -z "$GREP"; then
3707 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3708 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3709 { (exit 1); exit 1; }; }
3713 ac_cv_path_GREP=$GREP
3718 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3719 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3720 GREP="$ac_cv_path_GREP"
3723 { echo "$as_me:$LINENO: checking for egrep" >&5
3724 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3725 if test "${ac_cv_path_EGREP+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3729 then ac_cv_path_EGREP="$GREP -E"
3731 # Extract the first word of "egrep" to use in msg output
3732 if test -z "$EGREP"; then
3733 set dummy egrep; ac_prog_name=$2
3734 if test "${ac_cv_path_EGREP+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 ac_path_EGREP_found=false
3738 # Loop through the user's path and test for each of PROGNAME-LIST
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743 test -z "$as_dir" && as_dir=.
3744 for ac_prog in egrep; do
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3747 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3748 # Check for GNU ac_path_EGREP and select it if it is found.
3749 # Check for GNU $ac_path_EGREP
3750 case `"$ac_path_EGREP" --version 2>&1` in
3752 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3758 cat "conftest.in" "conftest.in" >"conftest.tmp"
3759 mv "conftest.tmp" "conftest.in"
3760 cp "conftest.in" "conftest.nl"
3761 echo 'EGREP' >> "conftest.nl"
3762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3764 ac_count=`expr $ac_count + 1`
3765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3766 # Best one so far, save it but keep looking for a better one
3767 ac_cv_path_EGREP="$ac_path_EGREP"
3768 ac_path_EGREP_max=$ac_count
3770 # 10*(2^10) chars as input seems more than enough
3771 test $ac_count -gt 10 && break
3773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777 $ac_path_EGREP_found && break 3
3787 EGREP="$ac_cv_path_EGREP"
3788 if test -z "$EGREP"; then
3789 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3790 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3791 { (exit 1); exit 1; }; }
3795 ac_cv_path_EGREP=$EGREP
3801 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3802 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3803 EGREP="$ac_cv_path_EGREP"
3806 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3808 if test "${ac_cv_header_stdc+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3830 rm -f conftest.$ac_objext
3831 if { (ac_try="$ac_compile"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_compile") 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3845 { (case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_try") 2>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest.$ac_objext'
3855 { (case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_try") 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_header_stdc=yes
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_cv_header_stdc=no
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 if test $ac_cv_header_stdc = yes; then
3875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886 $EGREP "memchr" >/dev/null 2>&1; then
3889 ac_cv_header_stdc=no
3895 if test $ac_cv_header_stdc = yes; then
3896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907 $EGREP "free" >/dev/null 2>&1; then
3910 ac_cv_header_stdc=no
3916 if test $ac_cv_header_stdc = yes; then
3917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3918 if test "$cross_compiling" = yes; then
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3929 #if ((' ' & 0x0FF) == 0x020)
3930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933 # define ISLOWER(c) \
3934 (('a' <= (c) && (c) <= 'i') \
3935 || ('j' <= (c) && (c) <= 'r') \
3936 || ('s' <= (c) && (c) <= 'z'))
3937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3945 for (i = 0; i < 256; i++)
3946 if (XOR (islower (i), ISLOWER (i))
3947 || toupper (i) != TOUPPER (i))
3952 rm -f conftest$ac_exeext
3953 if { (ac_try="$ac_link"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_link") 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3963 { (case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_try") 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3974 echo "$as_me: program exited with status $ac_status" >&5
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3979 ac_cv_header_stdc=no
3981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3988 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3989 if test $ac_cv_header_stdc = yes; then
3991 cat >>confdefs.h <<\_ACEOF
3992 #define STDC_HEADERS 1
3997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4008 inttypes.h stdint.h unistd.h
4010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 $ac_includes_default
4024 #include <$ac_header>
4026 rm -f conftest.$ac_objext
4027 if { (ac_try="$ac_compile"
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_compile") 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try='test -s conftest.$ac_objext'
4051 { (case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_try") 2>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 eval "$as_ac_Header=yes"
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 eval "$as_ac_Header=no"
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_res=`eval echo '${'$as_ac_Header'}'`
4071 { echo "$as_me:$LINENO: result: $ac_res" >&5
4072 echo "${ECHO_T}$ac_res" >&6; }
4073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4074 cat >>confdefs.h <<_ACEOF
4075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4084 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4085 if test "${ac_cv_c_bigendian+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 # See if sys/param.h defines the BYTE_ORDER macro.
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <sys/types.h>
4096 #include <sys/param.h>
4101 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_try") 2>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 # It does; now see whether it defined to BIG_ENDIAN or not.
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4150 #include <sys/types.h>
4151 #include <sys/param.h>
4156 #if BYTE_ORDER != BIG_ENDIAN
4164 rm -f conftest.$ac_objext
4165 if { (ac_try="$ac_compile"
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_compile") 2>conftest.er1
4173 grep -v '^ *+' conftest.er1 >conftest.err
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; } &&
4188 { ac_try='test -s conftest.$ac_objext'
4189 { (case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_try") 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 ac_cv_c_bigendian=yes
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 ac_cv_c_bigendian=no
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 # It does not; compile a test program.
4212 if test "$cross_compiling" = yes; then
4213 # try to guess the endianness by grepping values into an object file
4214 ac_cv_c_bigendian=unknown
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4222 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4223 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4224 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4225 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4226 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230 _ascii (); _ebcdic ();
4235 rm -f conftest.$ac_objext
4236 if { (ac_try="$ac_compile"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_compile") 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4270 ac_cv_c_bigendian=yes
4272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4273 if test "$ac_cv_c_bigendian" = unknown; then
4274 ac_cv_c_bigendian=no
4276 # finding both strings is unlikely to happen, but who knows?
4277 ac_cv_c_bigendian=unknown
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 $ac_includes_default
4300 /* Are we little or big endian? From Harbison&Steele. */
4304 char c[sizeof (long int)];
4307 return u.c[sizeof (long int) - 1] == 1;
4313 rm -f conftest$ac_exeext
4314 if { (ac_try="$ac_link"
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_link") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_c_bigendian=no
4335 echo "$as_me: program exited with status $ac_status" >&5
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4340 ac_cv_c_bigendian=yes
4342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4351 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4352 case $ac_cv_c_bigendian in
4360 { { echo "$as_me:$LINENO: error: unknown endianness
4361 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4362 echo "$as_me: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4364 { (exit 1); exit 1; }; } ;;
4368 if test "$cross_compiling" = yes; then
4369 LLVM_CROSS_COMPILING=1
4372 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4373 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4374 if test "${ac_cv_build_exeext+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4378 ac_cv_build_exeext=.exe
4380 ac_build_prefix=${build_alias}-
4382 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4383 set dummy ${ac_build_prefix}gcc; ac_word=$2
4384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4386 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test -n "$BUILD_CC"; then
4390 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 BUILD_CC=$ac_cv_prog_BUILD_CC
4410 if test -n "$BUILD_CC"; then
4411 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4412 echo "${ECHO_T}$BUILD_CC" >&6; }
4414 { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4419 if test -z "$BUILD_CC"; then
4420 # Extract the first word of "gcc", so it can be a program name with args.
4421 set dummy gcc; ac_word=$2
4422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test -n "$BUILD_CC"; then
4428 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_BUILD_CC="gcc"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 BUILD_CC=$ac_cv_prog_BUILD_CC
4448 if test -n "$BUILD_CC"; then
4449 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4450 echo "${ECHO_T}$BUILD_CC" >&6; }
4452 { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4457 if test -z "$BUILD_CC"; then
4458 # Extract the first word of "cc", so it can be a program name with args.
4459 set dummy cc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$BUILD_CC"; then
4466 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4477 ac_prog_rejected=yes
4480 ac_cv_prog_BUILD_CC="cc"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 if test $ac_prog_rejected = yes; then
4489 # We found a bogon in the path, so make sure we never use it.
4490 set dummy $ac_cv_prog_BUILD_CC
4492 if test $# != 0; then
4493 # We chose a different compiler from the bogus one.
4494 # However, it has the same basename, so the bogon will be chosen
4495 # first if we set BUILD_CC to just the basename; use the full file name.
4497 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4502 BUILD_CC=$ac_cv_prog_BUILD_CC
4503 if test -n "$BUILD_CC"; then
4504 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4505 echo "${ECHO_T}$BUILD_CC" >&6; }
4507 { echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6; }
4514 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4515 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4516 { (exit 1); exit 1; }; }
4517 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 echo 'int main () { return 0; }' > conftest.$ac_ext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4522 (eval $ac_build_link) 2>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; then
4526 for file in conftest.*; do
4528 *.c | *.o | *.obj) ;;
4529 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4534 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4535 { (exit 1); exit 1; }; }
4538 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4543 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4544 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4545 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4546 ac_build_exeext=$BUILD_EXEEXT
4549 LLVM_CROSS_COMPILING=0
4553 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4564 # Check whether --enable-optimized was given.
4565 if test "${enable_optimized+set}" = set; then
4566 enableval=$enable_optimized;
4571 if test ${enableval} = "no" ; then
4575 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4579 # Check whether --enable-assertions was given.
4580 if test "${enable_assertions+set}" = set; then
4581 enableval=$enable_assertions;
4586 if test ${enableval} = "yes" ; then
4590 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4594 # Check whether --enable-expensive-checks was given.
4595 if test "${enable_expensive_checks+set}" = set; then
4596 enableval=$enable_expensive_checks;
4601 if test ${enableval} = "yes" ; then
4602 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4604 EXPENSIVE_CHECKS=yes
4607 ENABLE_EXPENSIVE_CHECKS=
4613 # Check whether --enable-debug-runtime was given.
4614 if test "${enable_debug_runtime+set}" = set; then
4615 enableval=$enable_debug_runtime;
4620 if test ${enableval} = "no" ; then
4624 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4628 # Check whether --enable-jit was given.
4629 if test "${enable_jit+set}" = set; then
4630 enableval=$enable_jit;
4635 if test ${enableval} = "no"
4640 case "$llvm_cv_target_arch" in
4641 x86) TARGET_HAS_JIT=1
4643 Sparc) TARGET_HAS_JIT=0
4645 PowerPC) TARGET_HAS_JIT=1
4647 x86_64) TARGET_HAS_JIT=1
4649 Alpha) TARGET_HAS_JIT=1
4651 IA64) TARGET_HAS_JIT=0
4653 ARM) TARGET_HAS_JIT=0
4655 Mips) TARGET_HAS_JIT=0
4662 # Check whether --enable-doxygen was given.
4663 if test "${enable_doxygen+set}" = set; then
4664 enableval=$enable_doxygen;
4669 case "$enableval" in
4670 yes) ENABLE_DOXYGEN=1
4672 no) ENABLE_DOXYGEN=0
4674 default) ENABLE_DOXYGEN=0
4676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4677 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4681 # Check whether --enable-threads was given.
4682 if test "${enable_threads+set}" = set; then
4683 enableval=$enable_threads;
4688 case "$enableval" in
4689 yes) ENABLE_THREADS=1
4691 no) ENABLE_THREADS=0
4693 default) ENABLE_THREADS=1
4695 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4696 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4697 { (exit 1); exit 1; }; } ;;
4700 cat >>confdefs.h <<_ACEOF
4701 #define ENABLE_THREADS $ENABLE_THREADS
4705 # Check whether --enable-pic was given.
4706 if test "${enable_pic+set}" = set; then
4707 enableval=$enable_pic;
4712 case "$enableval" in
4717 default) ENABLE_PIC=0
4719 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4720 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4721 { (exit 1); exit 1; }; } ;;
4724 cat >>confdefs.h <<_ACEOF
4725 #define ENABLE_PIC $ENABLE_PIC
4730 # Check whether --enable-targets was given.
4731 if test "${enable_targets+set}" = set; then
4732 enableval=$enable_targets;
4737 case "$enableval" in
4738 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4740 case "$llvm_cv_target_arch" in
4741 x86) TARGETS_TO_BUILD="X86" ;;
4742 x86_64) TARGETS_TO_BUILD="X86" ;;
4743 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4744 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4745 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4746 IA64) TARGETS_TO_BUILD="IA64" ;;
4747 ARM) TARGETS_TO_BUILD="ARM" ;;
4748 Mips) TARGETS_TO_BUILD="Mips" ;;
4749 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4750 echo "$as_me: error: Can not set target to build" >&2;}
4751 { (exit 1); exit 1; }; } ;;
4754 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4756 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4757 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4758 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4759 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4760 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4761 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4762 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4763 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4764 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4765 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4766 { (exit 1); exit 1; }; } ;;
4771 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4772 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4775 # Check whether --enable-cbe-printf-a was given.
4776 if test "${enable_cbe_printf_a+set}" = set; then
4777 enableval=$enable_cbe_printf_a;
4782 case "$enableval" in
4783 yes) ENABLE_CBE_PRINTF_A=1
4785 no) ENABLE_CBE_PRINTF_A=0
4787 default) ENABLE_CBE_PRINTF_A=1
4789 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4790 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4791 { (exit 1); exit 1; }; } ;;
4794 cat >>confdefs.h <<_ACEOF
4795 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4800 # Check whether --with-llvmgccdir was given.
4801 if test "${with_llvmgccdir+set}" = set; then
4802 withval=$with_llvmgccdir;
4808 default) WITH_LLVMGCCDIR=default ;;
4809 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4810 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4811 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4816 # Check whether --with-extra-options was given.
4817 if test "${with_extra_options+set}" = set; then
4818 withval=$with_extra_options;
4824 default) EXTRA_OPTIONS= ;;
4825 *) EXTRA_OPTIONS=$withval ;;
4827 EXTRA_OPTIONS=$EXTRA_OPTIONS
4830 # Check whether --enable-bindings was given.
4831 if test "${enable_bindings+set}" = set; then
4832 enableval=$enable_bindings;
4837 BINDINGS_TO_BUILD=""
4838 case "$enableval" in
4839 all | yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4840 all ) BINDINGS_TO_BUILD="ocaml" ;;
4841 none | no) BINDINGS_TO_BUILD="" ;;
4842 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4843 case "$a_binding" in
4844 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4845 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4846 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4847 { (exit 1); exit 1; }; } ;;
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4860 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4861 # On Suns, sometimes $CPP names a directory.
4862 if test -n "$CPP" && test -d "$CPP"; then
4865 if test -z "$CPP"; then
4866 if test "${ac_cv_prog_CPP+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 # Double quotes because CPP needs to be expanded
4870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4873 for ac_c_preproc_warn_flag in '' yes
4875 # Use a header file that comes with gcc, so configuring glibc
4876 # with a fresh cross-compiler works.
4877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 # <limits.h> exists even on freestanding compilers.
4879 # On the NeXT, cc -E runs the code through the compiler's parser,
4880 # not just through cpp. "Syntax error" is here to catch this case.
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4888 # include <limits.h>
4890 # include <assert.h>
4894 if { (ac_try="$ac_cpp conftest.$ac_ext"
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4916 if test -z "$ac_cpp_err"; then
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 # Broken: fails on valid input.
4926 rm -f conftest.err conftest.$ac_ext
4928 # OK, works on sane cases. Now check whether nonexistent headers
4929 # can be detected and how.
4930 cat >conftest.$ac_ext <<_ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 #include <ac_nonexistent.h>
4938 if { (ac_try="$ac_cpp conftest.$ac_ext"
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4946 grep -v '^ *+' conftest.er1 >conftest.err
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } >/dev/null; then
4951 if test -s conftest.err; then
4952 ac_cpp_err=$ac_c_preproc_warn_flag
4953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4960 if test -z "$ac_cpp_err"; then
4961 # Broken: success on invalid input.
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 # Passes both tests.
4972 rm -f conftest.err conftest.$ac_ext
4975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976 rm -f conftest.err conftest.$ac_ext
4977 if $ac_preproc_ok; then
4989 { echo "$as_me:$LINENO: result: $CPP" >&5
4990 echo "${ECHO_T}$CPP" >&6; }
4992 for ac_c_preproc_warn_flag in '' yes
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5007 # include <limits.h>
5009 # include <assert.h>
5013 if { (ac_try="$ac_cpp conftest.$ac_ext"
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_c_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5035 if test -z "$ac_cpp_err"; then
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 # Broken: fails on valid input.
5045 rm -f conftest.err conftest.$ac_ext
5047 # OK, works on sane cases. Now check whether nonexistent headers
5048 # can be detected and how.
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 #include <ac_nonexistent.h>
5057 if { (ac_try="$ac_cpp conftest.$ac_ext"
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null; then
5070 if test -s conftest.err; then
5071 ac_cpp_err=$ac_c_preproc_warn_flag
5072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5079 if test -z "$ac_cpp_err"; then
5080 # Broken: success on invalid input.
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086 # Passes both tests.
5091 rm -f conftest.err conftest.$ac_ext
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then
5099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5100 See \`config.log' for more details." >&5
5101 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5102 See \`config.log' for more details." >&2;}
5103 { (exit 1); exit 1; }; }
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124 if test "${ac_cv_prog_CC+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 if test -n "$CC"; then
5128 ac_cv_prog_CC="$CC" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 if test -n "$CC"; then
5149 { echo "$as_me:$LINENO: result: $CC" >&5
5150 echo "${ECHO_T}$CC" >&6; }
5152 { echo "$as_me:$LINENO: result: no" >&5
5153 echo "${ECHO_T}no" >&6; }
5157 test -n "$CC" && break
5160 if test -z "$CC"; then
5164 # Extract the first word of "$ac_prog", so it can be a program name with args.
5165 set dummy $ac_prog; ac_word=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 if test -n "$ac_ct_CC"; then
5172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ac_ct_CC="$ac_prog"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5192 if test -n "$ac_ct_CC"; then
5193 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5194 echo "${ECHO_T}$ac_ct_CC" >&6; }
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5201 test -n "$ac_ct_CC" && break
5204 if test "x$ac_ct_CC" = x; then
5207 case $cross_compiling:$ac_tool_warned in
5209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5210 whose name does not start with the host triplet. If you think this
5211 configuration is useful to you, please write to autoconf@gnu.org." >&5
5212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5213 whose name does not start with the host triplet. If you think this
5214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5215 ac_tool_warned=yes ;;
5222 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: no acceptable C compiler found in \$PATH
5225 See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; }
5228 # Provide some information about the compiler.
5229 echo "$as_me:$LINENO: checking for C compiler version" >&5
5230 ac_compiler=`set X $ac_compile; echo $2`
5231 { (ac_try="$ac_compiler --version >&5"
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compiler --version >&5") 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 { (ac_try="$ac_compiler -v >&5"
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_compiler -v >&5") 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }
5251 { (ac_try="$ac_compiler -V >&5"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compiler -V >&5") 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5262 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5263 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5264 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 cat >conftest.$ac_ext <<_ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5285 rm -f conftest.$ac_objext
5286 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5300 { (case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_try") 2>&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest.$ac_objext'
5310 { (case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_try") 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5331 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5332 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5333 GCC=`test $ac_compiler_gnu = yes && echo yes`
5334 ac_test_CFLAGS=${CFLAGS+set}
5335 ac_save_CFLAGS=$CFLAGS
5336 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5337 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5338 if test "${ac_cv_prog_cc_g+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 ac_save_c_werror_flag=$ac_c_werror_flag
5342 ac_c_werror_flag=yes
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_compile") 2>conftest.er1
5369 grep -v '^ *+' conftest.er1 >conftest.err
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5375 { (case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_try") 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_try") 2>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
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
5454 ac_c_werror_flag=$ac_save_c_werror_flag
5456 cat >conftest.$ac_ext <<_ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_try") 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_c_werror_flag=$ac_save_c_werror_flag
5522 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5523 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5524 if test "$ac_test_CFLAGS" = set; then
5525 CFLAGS=$ac_save_CFLAGS
5526 elif test $ac_cv_prog_cc_g = yes; then
5527 if test "$GCC" = yes; then
5533 if test "$GCC" = yes; then
5539 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5540 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5541 if test "${ac_cv_prog_cc_c89+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 ac_cv_prog_cc_c89=no
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5554 #include <sys/types.h>
5555 #include <sys/stat.h>
5556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5557 struct buf { int x; };
5558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5559 static char *e (p, i)
5565 static char *f (char * (*g) (char **, int), char **p, ...)
5570 s = g (p, va_arg (v,int));
5575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5576 function prototypes and stuff, but not '\xHH' hex character constants.
5577 These don't provoke an error unfortunately, instead are silently treated
5578 as 'x'. The following induces an error, until -std is added to get
5579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5580 array size at least. It's necessary to write '\x00'==0 to get something
5581 that's true only with -std. */
5582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5585 inside strings and character constants. */
5587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5589 int test (int i, double x);
5590 struct s1 {int (*f) (int a);};
5591 struct s2 {int (*f) (double a);};
5592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5598 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5606 CC="$ac_save_CC $ac_arg"
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1 >conftest.err
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5622 { (case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_try") 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; } &&
5631 { ac_try='test -s conftest.$ac_objext'
5632 { (case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_try") 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_cv_prog_cc_c89=$ac_arg
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5649 rm -f core conftest.err conftest.$ac_objext
5650 test "x$ac_cv_prog_cc_c89" != "xno" && break
5652 rm -f conftest.$ac_ext
5657 case "x$ac_cv_prog_cc_c89" in
5659 { echo "$as_me:$LINENO: result: none needed" >&5
5660 echo "${ECHO_T}none needed" >&6; } ;;
5662 { echo "$as_me:$LINENO: result: unsupported" >&5
5663 echo "${ECHO_T}unsupported" >&6; } ;;
5665 CC="$CC $ac_cv_prog_cc_c89"
5666 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5667 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5672 ac_cpp='$CPP $CPPFLAGS'
5673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678 ac_cpp='$CXXCPP $CPPFLAGS'
5679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 if test -z "$CXX"; then
5683 if test -n "$CCC"; then
5686 if test -n "$ac_tool_prefix"; then
5689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5693 if test "${ac_cv_prog_CXX+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 if test -n "$CXX"; then
5697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 if test -n "$CXX"; then
5718 { echo "$as_me:$LINENO: result: $CXX" >&5
5719 echo "${ECHO_T}$CXX" >&6; }
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5726 test -n "$CXX" && break
5729 if test -z "$CXX"; then
5733 # Extract the first word of "$ac_prog", so it can be a program name with args.
5734 set dummy $ac_prog; ac_word=$2
5735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5737 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 if test -n "$ac_ct_CXX"; then
5741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_CXX="$ac_prog"
5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5761 if test -n "$ac_ct_CXX"; then
5762 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5763 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5765 { echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6; }
5770 test -n "$ac_ct_CXX" && break
5773 if test "x$ac_ct_CXX" = x; then
5776 case $cross_compiling:$ac_tool_warned in
5778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5779 whose name does not start with the host triplet. If you think this
5780 configuration is useful to you, please write to autoconf@gnu.org." >&5
5781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5782 whose name does not start with the host triplet. If you think this
5783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5784 ac_tool_warned=yes ;;
5792 # Provide some information about the compiler.
5793 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5794 ac_compiler=`set X $ac_compile; echo $2`
5795 { (ac_try="$ac_compiler --version >&5"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler --version >&5") 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
5805 { (ac_try="$ac_compiler -v >&5"
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compiler -v >&5") 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }
5815 { (ac_try="$ac_compiler -V >&5"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compiler -V >&5") 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }
5826 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5827 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5828 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5895 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5896 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5897 GXX=`test $ac_compiler_gnu = yes && echo yes`
5898 ac_test_CXXFLAGS=${CXXFLAGS+set}
5899 ac_save_CXXFLAGS=$CXXFLAGS
5900 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5901 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_cxx_g+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5906 ac_cxx_werror_flag=yes
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5939 { (case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_try") 2>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_prog_cxx_g=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
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
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6020 cat >conftest.$ac_ext <<_ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6044 grep -v '^ *+' conftest.er1 >conftest.err
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_prog_cxx_g=yes
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6087 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6088 if test "$ac_test_CXXFLAGS" = set; then
6089 CXXFLAGS=$ac_save_CXXFLAGS
6090 elif test $ac_cv_prog_cxx_g = yes; then
6091 if test "$GXX" = yes; then
6097 if test "$GXX" = yes; then
6104 ac_cpp='$CPP $CPPFLAGS'
6105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6109 { echo "$as_me:$LINENO: checking " >&5
6110 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6111 if test "${ac_cv_has_flex+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 for ac_prog in flex lex
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117 set dummy $ac_prog; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_LEX+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 if test -n "$LEX"; then
6124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_LEX="$ac_prog"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 if test -n "$LEX"; then
6145 { echo "$as_me:$LINENO: result: $LEX" >&5
6146 echo "${ECHO_T}$LEX" >&6; }
6148 { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6153 test -n "$LEX" && break
6155 test -n "$LEX" || LEX=":"
6157 if test -z "$LEXLIB"
6159 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6160 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6161 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 ac_check_lib_save_LIBS=$LIBS
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6173 /* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1 >conftest.err
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6203 { (case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_try") 2>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218 (eval "$ac_try") 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_cv_lib_fl_yywrap=yes
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_cv_lib_fl_yywrap=no
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6234 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6235 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6236 if test $ac_cv_lib_fl_yywrap = yes; then
6239 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6240 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6241 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 ac_check_lib_save_LIBS=$LIBS
6246 cat >conftest.$ac_ext <<_ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6253 /* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (ac_try="$ac_link"
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_link") 2>conftest.er1
6277 grep -v '^ *+' conftest.er1 >conftest.err
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_try") 2>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_try") 2>&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_lib_l_yywrap=yes
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_cv_lib_l_yywrap=no
6310 rm -f core conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312 LIBS=$ac_check_lib_save_LIBS
6314 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6316 if test $ac_cv_lib_l_yywrap = yes; then
6324 if test "x$LEX" != "x:"; then
6325 { echo "$as_me:$LINENO: checking lex output file root" >&5
6326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6327 if test "${ac_cv_prog_lex_root+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 # The minimal lex program is just a single line: %%. But some broken lexes
6331 # (Solaris, I think it was) want two %% lines, so accommodate them.
6332 cat >conftest.l <<_ACEOF
6336 { (ac_try="$LEX conftest.l"
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$LEX conftest.l") 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }
6346 if test -f lex.yy.c; then
6347 ac_cv_prog_lex_root=lex.yy
6348 elif test -f lexyy.c; then
6349 ac_cv_prog_lex_root=lexyy
6351 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6352 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6353 { (exit 1); exit 1; }; }
6356 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6357 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6359 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6361 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6362 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6363 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 # POSIX says lex can declare yytext either as a pointer or an array; the
6367 # default is implementation-dependent. Figure out which it is, since
6368 # not all implementations provide the %pointer and %array declarations.
6369 ac_cv_prog_lex_yytext_pointer=no
6370 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6372 LIBS="$LIBS $LEXLIB"
6373 cat >conftest.$ac_ext <<_ACEOF
6374 `cat $LEX_OUTPUT_ROOT.c`
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (ac_try="$ac_link"
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_link") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6391 { (case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_try") 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try='test -s conftest$ac_exeext'
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_try") 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_prog_lex_yytext_pointer=yes
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6418 rm -f core conftest.err conftest.$ac_objext \
6419 conftest$ac_exeext conftest.$ac_ext
6421 rm -f "${LEX_OUTPUT_ROOT}.c"
6424 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6425 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6426 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6428 cat >>confdefs.h <<\_ACEOF
6429 #define YYTEXT_POINTER 1
6437 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6438 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6439 if test "$LEX" != "flex"; then
6440 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6441 echo "$as_me: error: flex not found but required" >&2;}
6442 { (exit 1); exit 1; }; }
6448 { echo "$as_me:$LINENO: checking " >&5
6449 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6450 if test "${llvm_cv_has_bison+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 for ac_prog in 'bison -y' byacc
6455 # Extract the first word of "$ac_prog", so it can be a program name with args.
6456 set dummy $ac_prog; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_prog_YACC+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 if test -n "$YACC"; then
6463 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_YACC="$ac_prog"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 YACC=$ac_cv_prog_YACC
6483 if test -n "$YACC"; then
6484 { echo "$as_me:$LINENO: result: $YACC" >&5
6485 echo "${ECHO_T}$YACC" >&6; }
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6492 test -n "$YACC" && break
6494 test -n "$YACC" || YACC="yacc"
6497 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6498 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6499 if test "$YACC" != "bison -y"; then
6501 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6502 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6508 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6510 if test "${lt_cv_path_NM+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 if test -n "$NM"; then
6514 # Let the user override the test.
6517 lt_nm_to_check="${ac_tool_prefix}nm"
6518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6519 lt_nm_to_check="$lt_nm_to_check nm"
6521 for lt_tmp_nm in $lt_nm_to_check; do
6522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6525 test -z "$ac_dir" && ac_dir=.
6526 tmp_nm="$ac_dir/$lt_tmp_nm"
6527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6528 # Check to see if the nm accepts a BSD-compat flag.
6529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6530 # nm: unknown option "B" ignored
6531 # Tru64's nm complains that /dev/null is an invalid object file
6532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6533 */dev/null* | *'Invalid file or object type'*)
6534 lt_cv_path_NM="$tmp_nm -B"
6538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6540 lt_cv_path_NM="$tmp_nm -p"
6544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6545 continue # so that we can try to find one that supports BSD flags
6554 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6557 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6558 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6563 { echo "$as_me:$LINENO: checking for GNU make" >&5
6564 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6565 if test "${llvm_cv_gnu_make_command+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 llvm_cv_gnu_make_command=''
6569 for a in "$MAKE" make gmake gnumake ; do
6570 if test -z "$a" ; then continue ; fi ;
6571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6573 llvm_cv_gnu_make_command=$a ;
6578 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6579 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6580 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6584 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6585 echo "${ECHO_T}\"Not found\"" >&6; };
6589 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6590 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6592 if test "$LN_S" = "ln -s"; then
6593 { echo "$as_me:$LINENO: result: yes" >&5
6594 echo "${ECHO_T}yes" >&6; }
6596 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6597 echo "${ECHO_T}no, using $LN_S" >&6; }
6600 # Extract the first word of "cmp", so it can be a program name with args.
6601 set dummy cmp; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_CMP+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6632 if test -n "$CMP"; then
6633 { echo "$as_me:$LINENO: result: $CMP" >&5
6634 echo "${ECHO_T}$CMP" >&6; }
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6641 # Extract the first word of "cp", so it can be a program name with args.
6642 set dummy cp; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_CP+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6673 if test -n "$CP"; then
6674 { echo "$as_me:$LINENO: result: $CP" >&5
6675 echo "${ECHO_T}$CP" >&6; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6682 # Extract the first word of "date", so it can be a program name with args.
6683 set dummy date; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_DATE+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6713 DATE=$ac_cv_path_DATE
6714 if test -n "$DATE"; then
6715 { echo "$as_me:$LINENO: result: $DATE" >&5
6716 echo "${ECHO_T}$DATE" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6723 # Extract the first word of "find", so it can be a program name with args.
6724 set dummy find; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_FIND+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6754 FIND=$ac_cv_path_FIND
6755 if test -n "$FIND"; then
6756 { echo "$as_me:$LINENO: result: $FIND" >&5
6757 echo "${ECHO_T}$FIND" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6764 # Extract the first word of "grep", so it can be a program name with args.
6765 set dummy grep; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_GREP+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6795 GREP=$ac_cv_path_GREP
6796 if test -n "$GREP"; then
6797 { echo "$as_me:$LINENO: result: $GREP" >&5
6798 echo "${ECHO_T}$GREP" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6805 # Extract the first word of "mkdir", so it can be a program name with args.
6806 set dummy mkdir; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_MKDIR+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6836 MKDIR=$ac_cv_path_MKDIR
6837 if test -n "$MKDIR"; then
6838 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6839 echo "${ECHO_T}$MKDIR" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6846 # Extract the first word of "mv", so it can be a program name with args.
6847 set dummy mv; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_MV+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6878 if test -n "$MV"; then
6879 { echo "$as_me:$LINENO: result: $MV" >&5
6880 echo "${ECHO_T}$MV" >&6; }
6882 { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_prog_RANLIB+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 if test -n "$RANLIB"; then
6896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 RANLIB=$ac_cv_prog_RANLIB
6916 if test -n "$RANLIB"; then
6917 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6918 echo "${ECHO_T}$RANLIB" >&6; }
6920 { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6926 if test -z "$ac_cv_prog_RANLIB"; then
6927 ac_ct_RANLIB=$RANLIB
6928 # Extract the first word of "ranlib", so it can be a program name with args.
6929 set dummy ranlib; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 if test -n "$ac_ct_RANLIB"; then
6936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_ac_ct_RANLIB="ranlib"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6956 if test -n "$ac_ct_RANLIB"; then
6957 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6958 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6964 if test "x$ac_ct_RANLIB" = x; then
6967 case $cross_compiling:$ac_tool_warned in
6969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6970 whose name does not start with the host triplet. If you think this
6971 configuration is useful to you, please write to autoconf@gnu.org." >&5
6972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6973 whose name does not start with the host triplet. If you think this
6974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6975 ac_tool_warned=yes ;;
6977 RANLIB=$ac_ct_RANLIB
6980 RANLIB="$ac_cv_prog_RANLIB"
6983 # Extract the first word of "rm", so it can be a program name with args.
6984 set dummy rm; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_path_RM+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7015 if test -n "$RM"; then
7016 { echo "$as_me:$LINENO: result: $RM" >&5
7017 echo "${ECHO_T}$RM" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7024 # Extract the first word of "sed", so it can be a program name with args.
7025 set dummy sed; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_path_SED+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7056 if test -n "$SED"; then
7057 { echo "$as_me:$LINENO: result: $SED" >&5
7058 echo "${ECHO_T}$SED" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7065 # Extract the first word of "tar", so it can be a program name with args.
7066 set dummy tar; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_TAR+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7097 if test -n "$TAR"; then
7098 { echo "$as_me:$LINENO: result: $TAR" >&5
7099 echo "${ECHO_T}$TAR" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7106 # Extract the first word of "pwd", so it can be a program name with args.
7107 set dummy pwd; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_BINPWD+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7137 BINPWD=$ac_cv_path_BINPWD
7138 if test -n "$BINPWD"; then
7139 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7140 echo "${ECHO_T}$BINPWD" >&6; }
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7148 # Extract the first word of "Graphviz", so it can be a program name with args.
7149 set dummy Graphviz; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7179 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7180 if test -n "$GRAPHVIZ"; then
7181 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7182 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7189 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7191 cat >>confdefs.h <<\_ACEOF
7192 #define HAVE_GRAPHVIZ 1
7195 if test "$llvm_cv_os_type" = "MingW" ; then
7196 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7199 cat >>confdefs.h <<_ACEOF
7200 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7204 # Extract the first word of "dot", so it can be a program name with args.
7205 set dummy dot; ac_word=$2
7206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208 if test "${ac_cv_path_DOT+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7236 if test -n "$DOT"; then
7237 { echo "$as_me:$LINENO: result: $DOT" >&5
7238 echo "${ECHO_T}$DOT" >&6; }
7240 { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7245 if test "$DOT" != "echo dot" ; then
7247 cat >>confdefs.h <<\_ACEOF
7251 if test "$llvm_cv_os_type" = "MingW" ; then
7252 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7255 cat >>confdefs.h <<_ACEOF
7256 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7260 for ac_prog in gv gsview32
7262 # Extract the first word of "$ac_prog", so it can be a program name with args.
7263 set dummy $ac_prog; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_GV+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 if test -n "$GV"; then
7294 { echo "$as_me:$LINENO: result: $GV" >&5
7295 echo "${ECHO_T}$GV" >&6; }
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 test -n "$GV" && break
7304 test -n "$GV" || GV="echo gv"
7306 if test "$GV" != "echo gv" ; then
7308 cat >>confdefs.h <<\_ACEOF
7312 if test "$llvm_cv_os_type" = "MingW" ; then
7313 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7316 cat >>confdefs.h <<_ACEOF
7317 #define LLVM_PATH_GV "$GV${EXEEXT}"
7321 # Extract the first word of "dotty", so it can be a program name with args.
7322 set dummy dotty; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_path_DOTTY+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7352 DOTTY=$ac_cv_path_DOTTY
7353 if test -n "$DOTTY"; then
7354 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7355 echo "${ECHO_T}$DOTTY" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7362 if test "$DOTTY" != "echo dotty" ; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_DOTTY 1
7368 if test "$llvm_cv_os_type" = "MingW" ; then
7369 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7372 cat >>confdefs.h <<_ACEOF
7373 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7379 # Extract the first word of "perl", so it can be a program name with args.
7380 set dummy perl; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_PERL+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7410 PERL=$ac_cv_path_PERL
7411 if test -n "$PERL"; then
7412 { echo "$as_me:$LINENO: result: $PERL" >&5
7413 echo "${ECHO_T}$PERL" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7420 if test "$PERL" != "none"; then
7421 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7422 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7423 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7424 { echo "$as_me:$LINENO: result: yes" >&5
7425 echo "${ECHO_T}yes" >&6; }
7428 { echo "$as_me:$LINENO: result: not found" >&5
7429 echo "${ECHO_T}not found" >&6; }
7434 if test x"$PERL" = xnone; then
7437 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7438 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7439 { (exit 1); exit 1; }; }
7445 # Find a good install program. We prefer a C program (faster),
7446 # so one script is as good as another. But avoid the broken or
7447 # incompatible versions:
7448 # SysV /etc/install, /usr/sbin/install
7449 # SunOS /usr/etc/install
7450 # IRIX /sbin/install
7452 # AmigaOS /C/install, which installs bootblocks on floppy discs
7453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7456 # OS/2's system install, which has a completely different semantic
7457 # ./install, which can be erroneously created by make from ./install.sh.
7458 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7459 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7460 if test -z "$INSTALL"; then
7461 if test "${ac_cv_path_install+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 # Account for people who put trailing slashes in PATH elements.
7471 ./ | .// | /cC/* | \
7472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7473 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7476 # OSF1 and SCO ODT 3.0 have their own names for install.
7477 # Don't use installbsd from OSF since it installs stuff as root
7479 for ac_prog in ginstall scoinst install; do
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7482 if test $ac_prog = install &&
7483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7484 # AIX install. It has an incompatible calling convention.
7486 elif test $ac_prog = install &&
7487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7488 # program-specific install script used by HP pwplus--don't use.
7491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7504 if test "${ac_cv_path_install+set}" = set; then
7505 INSTALL=$ac_cv_path_install
7507 # As a last resort, use the slow shell script. Don't cache a
7508 # value for INSTALL within a source directory, because that will
7509 # break other packages using the cache if that directory is
7510 # removed, or if the value is a relative name.
7511 INSTALL=$ac_install_sh
7514 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7515 echo "${ECHO_T}$INSTALL" >&6; }
7517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7518 # It thinks the first close brace ends the variable substitution.
7519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7523 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7526 # Extract the first word of "bzip2", so it can be a program name with args.
7527 set dummy bzip2; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_BZIP2+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7557 BZIP2=$ac_cv_path_BZIP2
7558 if test -n "$BZIP2"; then
7559 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7560 echo "${ECHO_T}$BZIP2" >&6; }
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7567 # Extract the first word of "doxygen", so it can be a program name with args.
7568 set dummy doxygen; ac_word=$2
7569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7598 DOXYGEN=$ac_cv_path_DOXYGEN
7599 if test -n "$DOXYGEN"; then
7600 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7601 echo "${ECHO_T}$DOXYGEN" >&6; }
7603 { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }
7608 # Extract the first word of "groff", so it can be a program name with args.
7609 set dummy groff; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_GROFF+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7639 GROFF=$ac_cv_path_GROFF
7640 if test -n "$GROFF"; then
7641 { echo "$as_me:$LINENO: result: $GROFF" >&5
7642 echo "${ECHO_T}$GROFF" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 # Extract the first word of "gzip", so it can be a program name with args.
7650 set dummy gzip; ac_word=$2
7651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7653 if test "${ac_cv_path_GZIP+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7680 GZIP=$ac_cv_path_GZIP
7681 if test -n "$GZIP"; then
7682 { echo "$as_me:$LINENO: result: $GZIP" >&5
7683 echo "${ECHO_T}$GZIP" >&6; }
7685 { echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6; }
7690 # Extract the first word of "pod2html", so it can be a program name with args.
7691 set dummy pod2html; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_POD2HTML+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7721 POD2HTML=$ac_cv_path_POD2HTML
7722 if test -n "$POD2HTML"; then
7723 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7724 echo "${ECHO_T}$POD2HTML" >&6; }
7726 { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7731 # Extract the first word of "pod2man", so it can be a program name with args.
7732 set dummy pod2man; ac_word=$2
7733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7735 if test "${ac_cv_path_POD2MAN+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7762 POD2MAN=$ac_cv_path_POD2MAN
7763 if test -n "$POD2MAN"; then
7764 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7765 echo "${ECHO_T}$POD2MAN" >&6; }
7767 { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7772 # Extract the first word of "runtest", so it can be a program name with args.
7773 set dummy runtest; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_RUNTEST+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7803 RUNTEST=$ac_cv_path_RUNTEST
7804 if test -n "$RUNTEST"; then
7805 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7806 echo "${ECHO_T}$RUNTEST" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7815 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7816 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7818 # Check whether --with-tclinclude was given.
7819 if test "${with_tclinclude+set}" = set; then
7820 withval=$with_tclinclude; with_tclinclude=${withval}
7825 if test "${ac_cv_path_tclsh+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 if test x"${with_tclinclude}" != x ; then
7830 if test -f ${with_tclinclude}/tclsh ; then
7831 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7832 elif test -f ${with_tclinclude}/src/tclsh ; then
7833 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7835 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7836 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7837 { (exit 1); exit 1; }; }
7841 if test x"${ac_cv_path_tclsh}" = x ; then
7842 { echo "$as_me:$LINENO: result: none" >&5
7843 echo "${ECHO_T}none" >&6; }
7844 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
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_TCLSH+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 TCLSH=$ac_cv_path_TCLSH
7877 if test -n "$TCLSH"; then
7878 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7879 echo "${ECHO_T}$TCLSH" >&6; }
7881 { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7886 test -n "$TCLSH" && break
7889 if test x"${TCLSH}" = x ; then
7890 ac_cv_path_tclsh='';
7892 ac_cv_path_tclsh="${TCLSH}";
7895 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7896 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7897 TCLSH="${ac_cv_path_tclsh}"
7903 # Extract the first word of "zip", so it can be a program name with args.
7904 set dummy zip; ac_word=$2
7905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907 if test "${ac_cv_path_ZIP+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7935 if test -n "$ZIP"; then
7936 { echo "$as_me:$LINENO: result: $ZIP" >&5
7937 echo "${ECHO_T}$ZIP" >&6; }
7939 { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7944 # Extract the first word of "ocamlc", so it can be a program name with args.
7945 set dummy ocamlc; ac_word=$2
7946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948 if test "${ac_cv_path_OCAMLC+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7975 OCAMLC=$ac_cv_path_OCAMLC
7976 if test -n "$OCAMLC"; then
7977 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7978 echo "${ECHO_T}$OCAMLC" >&6; }
7980 { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7985 # Extract the first word of "ocamlopt", so it can be a program name with args.
7986 set dummy ocamlopt; ac_word=$2
7987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7989 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8016 OCAMLOPT=$ac_cv_path_OCAMLOPT
8017 if test -n "$OCAMLOPT"; then
8018 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8019 echo "${ECHO_T}$OCAMLOPT" >&6; }
8021 { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8026 # Extract the first word of "ocamldep", so it can be a program name with args.
8027 set dummy ocamldep; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8057 OCAMLDEP=$ac_cv_path_OCAMLDEP
8058 if test -n "$OCAMLDEP"; then
8059 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8060 echo "${ECHO_T}$OCAMLDEP" >&6; }
8062 { echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6; }
8068 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8069 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8070 if test "${llvm_cv_link_use_r+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080 CFLAGS="$CFLAGS -Wl,-R."
8081 cat >conftest.$ac_ext <<_ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8091 int main() { return 0; }
8096 rm -f conftest.$ac_objext conftest$ac_exeext
8097 if { (ac_try="$ac_link"
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_link") 2>conftest.er1
8105 grep -v '^ *+' conftest.er1 >conftest.err
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8111 { (case "(($ac_try" in
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116 (eval "$ac_try") 2>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; } &&
8120 { ac_try='test -s conftest$ac_exeext'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 llvm_cv_link_use_r=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 llvm_cv_link_use_r=no
8138 rm -f core conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
8142 ac_cpp='$CPP $CPPFLAGS'
8143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8150 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8151 if test "$llvm_cv_link_use_r" = yes ; then
8153 cat >>confdefs.h <<\_ACEOF
8154 #define HAVE_LINK_R 1
8162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164 if test "${ac_cv_c_const+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8177 /* FIXME: Include the comments suggested by Paul. */
8179 /* Ultrix mips cc rejects this. */
8180 typedef int charset[2];
8182 /* SunOS 4.1.1 cc rejects this. */
8183 char const *const *ccp;
8185 /* NEC SVR4.0.2 mips cc rejects this. */
8186 struct point {int x, y;};
8187 static struct point const zero = {0,0};
8188 /* AIX XL C 1.02.0.0 rejects this.
8189 It does not let you subtract one const X* pointer from another in
8190 an arm of an if-expression whose if-part is not a constant
8192 const char *g = "string";
8193 ccp = &g + (g ? g-g : 0);
8194 /* HPUX 7.0 cc rejects these. */
8197 ccp = (char const *const *) p;
8198 { /* SCO 3.2v4 cc rejects this. */
8200 char const *s = 0 ? (char *) 0 : (char const *) 0;
8205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8207 const int *foo = &x[0];
8210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211 typedef const int *iptr;
8215 { /* AIX XL C 1.02.0.0 rejects this saying
8216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217 struct s { int j; const int *ap[3]; };
8218 struct s *b; b->j = 5;
8220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8224 return !x[0] && !zero.x;
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_compile") 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277 if test $ac_cv_c_const = no; then
8279 cat >>confdefs.h <<\_ACEOF
8291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 eval "$as_ac_Header=yes"
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 eval "$as_ac_Header=no"
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 ac_res=`eval echo '${'$as_ac_Header'}'`
8361 { echo "$as_me:$LINENO: result: $ac_res" >&5
8362 echo "${ECHO_T}$ac_res" >&6; }
8363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364 cat >>confdefs.h <<_ACEOF
8365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8368 ac_header_dirent=$ac_hdr; break
8372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373 if test $ac_header_dirent = dirent.h; then
8374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376 if test "${ac_cv_search_opendir+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 ac_func_search_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 /* Override any GCC internal prototype to avoid an error.
8388 Use char because int might match the return type of a GCC
8389 builtin and then its argument prototype would still apply. */
8402 for ac_lib in '' dir; do
8403 if test -z "$ac_lib"; then
8404 ac_res="none required"
8407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (ac_try="$ac_link"
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_link") 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_search_opendir=$ac_res
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8451 rm -f core conftest.err conftest.$ac_objext \
8453 if test "${ac_cv_search_opendir+set}" = set; then
8457 if test "${ac_cv_search_opendir+set}" = set; then
8460 ac_cv_search_opendir=no
8463 LIBS=$ac_func_search_save_LIBS
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467 ac_res=$ac_cv_search_opendir
8468 if test "$ac_res" != no; then
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8474 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476 if test "${ac_cv_search_opendir+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 ac_func_search_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8502 for ac_lib in '' x; do
8503 if test -z "$ac_lib"; then
8504 ac_res="none required"
8507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_link") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_search_opendir=$ac_res
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8551 rm -f core conftest.err conftest.$ac_objext \
8553 if test "${ac_cv_search_opendir+set}" = set; then
8557 if test "${ac_cv_search_opendir+set}" = set; then
8560 ac_cv_search_opendir=no
8563 LIBS=$ac_func_search_save_LIBS
8565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567 ac_res=$ac_cv_search_opendir
8568 if test "$ac_res" != no; then
8569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8576 for ac_header in dlfcn.h
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 ac_res=`eval echo '${'$as_ac_Header'}'`
8586 { echo "$as_me:$LINENO: result: $ac_res" >&5
8587 echo "${ECHO_T}$ac_res" >&6; }
8589 # Is the header compilable?
8590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 $ac_includes_default
8599 #include <$ac_header>
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest.$ac_objext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_header_compiler=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_header_compiler=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6; }
8647 # Is the header present?
8648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <$ac_header>
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } >/dev/null; then
8671 if test -s conftest.err; then
8672 ac_cpp_err=$ac_c_preproc_warn_flag
8673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8680 if test -z "$ac_cpp_err"; then
8681 ac_header_preproc=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 ac_header_preproc=no
8689 rm -f conftest.err conftest.$ac_ext
8690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691 echo "${ECHO_T}$ac_header_preproc" >&6; }
8693 # So? What about this header?
8694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8716 ## ----------------------------------- ##
8717 ## Report this to llvmbugs@cs.uiuc.edu ##
8718 ## ----------------------------------- ##
8720 ) | sed "s/^/$as_me: WARNING: /" >&2
8723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 eval "$as_ac_Header=\$ac_header_preproc"
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8744 # Check whether --enable-ltdl-install was given.
8745 if test "${enable_ltdl_install+set}" = set; then
8746 enableval=$enable_ltdl_install;
8752 if test x"${enable_ltdl_install-no}" != xno; then
8754 INSTALL_LTDL_FALSE='#'
8756 INSTALL_LTDL_TRUE='#'
8762 if test x"${enable_ltdl_convenience-no}" != xno; then
8763 CONVENIENCE_LTDL_TRUE=
8764 CONVENIENCE_LTDL_FALSE='#'
8766 CONVENIENCE_LTDL_TRUE='#'
8767 CONVENIENCE_LTDL_FALSE=
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8774 libname_spec='lib$name'
8782 shlibpath_overrides_runpath=unknown
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789 # if the path contains ";" then we assume it to be the separator
8790 # otherwise default to the standard path separator (i.e. ":") - it is
8791 # assumed that no part of a normal pathname contains ";" but that should
8792 # okay in the real world where ";" in dirpaths is itself problematic.
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811 shlibpath_var=LIBPATH
8813 # AIX 3 has no versioning support, so we append a major version to the name.
8814 soname_spec='${libname}${release}${shared_ext}$major'
8821 hardcode_into_libs=yes
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 supports IA64
8824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825 shlibpath_var=LD_LIBRARY_PATH
8827 # With GCC up to 2.95.x, collect2 would create an import file
8828 # for dependence libraries. The import file would start with
8829 # the line `#! .'. This would cause the generated library to
8830 # depend on `.', always an invalid library. This was fixed in
8831 # development snapshots of GCC prior to 3.0.
8833 aix4 | aix4.[01] | aix4.[01].*)
8834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844 # soname into executable. Probably we can add versioning support to
8845 # collect2, so additional links can be useful in future.
8846 if test "$aix_use_runtimelinking" = yes; then
8847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848 # instead of lib<name>.a to let people know that these are not
8849 # typical AIX shared libraries.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 # We preserve .a as extension for shared libraries through AIX4.2
8853 # and later when we are not doing run time linking.
8854 library_names_spec='${libname}${release}.a $libname.a'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LIBPATH
8862 library_names_spec='$libname.ixlibrary $libname.a'
8863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864 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'
8868 library_names_spec='${libname}${shared_ext}'
8869 dynamic_linker="$host_os ld.so"
8870 shlibpath_var=LIBRARY_PATH
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882 # the default ld.so.conf also contains /usr/contrib/lib and
8883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884 # libtool to hard-code these into programs
8887 cygwin* | mingw* | pw32*)
8888 version_type=windows
8893 case $GCC,$host_os in
8894 yes,cygwin* | yes,mingw* | yes,pw32*)
8895 library_names_spec='$libname.dll.a'
8896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897 postinstall_cmds='base_file=`basename \${file}`~
8898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899 dldir=$destdir/`dirname \$dlpath`~
8900 test -d \$dldir || mkdir -p \$dldir~
8901 $install_prog $dir/$dlname \$dldir/$dlname~
8902 chmod a+x \$dldir/$dlname'
8903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904 dlpath=$dir/\$dldll~
8906 shlibpath_overrides_runpath=yes
8910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8915 # MinGW DLLs use traditional 'lib' prefix
8916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919 # It is most probably a Windows format PATH printed by
8920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921 # path with ; separators, and with drive letters. We can handle the
8922 # drive letters (cygwin fileutils understands them), so leave them,
8923 # especially as we might pass files found there to a mingw objdump,
8924 # which wouldn't understand a cygwinified path. Ahh.
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8931 # pw32 DLLs use 'pw' prefix rather than 'lib'
8932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8941 dynamic_linker='Win32 ld.exe'
8942 # FIXME: first we should search . and the directory the executable is in
8946 darwin* | rhapsody*)
8947 dynamic_linker="$host_os dyld"
8951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952 soname_spec='${libname}${release}${major}$shared_ext'
8953 shlibpath_overrides_runpath=yes
8954 shlibpath_var=DYLD_LIBRARY_PATH
8955 shrext_cmds='.dylib'
8956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957 if test "$GCC" = yes; then
8958 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"`
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8990 freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8997 freebsd[123]*) objformat=aout ;;
9001 version_type=freebsd-$objformat
9002 case $version_type in
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9013 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9018 freebsd3.[01]* | freebsdelf3.[01]*)
9019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9027 freebsd*) # from 4.6 on
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9044 hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9102 irix5* | irix6* | nonstopux*)
9104 nonstopux*) version_type=nonstopux ;;
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 irix5* | nonstopux*)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9144 # This must be Linux ELF.
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
9161 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' ' '`
9162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 dynamic_linker='GNU ld.so'
9190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9223 sys_lib_dlsearch_path_spec="/usr/lib"
9225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228 *) need_version=no ;;
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9235 openbsd2.[89] | openbsd2.[89].*)
9236 shlibpath_overrides_runpath=no
9239 shlibpath_overrides_runpath=yes
9243 shlibpath_overrides_runpath=yes
9248 libname_spec='$name'
9251 library_names_spec='$libname${shared_ext} $libname.a'
9252 dynamic_linker='OS/2 ld.exe'
9253 shlibpath_var=LIBPATH
9256 osf3* | osf4* | osf5*)
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 # ldd complains unless libraries are executable
9277 postinstall_cmds='chmod +x $lib'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 if test "$with_gnu_ld" = yes; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 case $host_vendor in
9299 shlibpath_overrides_runpath=no
9301 export_dynamic_flag_spec='${wl}-Blargedynsym'
9302 runpath_var=LD_RUN_PATH
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9317 if test -d /usr/nec ;then
9319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320 soname_spec='$libname${shared_ext}.$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326 version_type=freebsd-elf
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9333 if test "$with_gnu_ld" = yes; then
9334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335 shlibpath_overrides_runpath=no
9337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338 shlibpath_overrides_runpath=yes
9341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9345 sys_lib_dlsearch_path_spec='/usr/lib'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_shlibext+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 eval libltdl_cv_shlibext=$shrext_cmds
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9381 if test -n "$libltdl_cv_shlibext"; then
9383 cat >>confdefs.h <<_ACEOF
9384 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9390 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 libltdl_cv_shlibpath_var="$shlibpath_var"
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9399 if test -n "$libltdl_cv_shlibpath_var"; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9408 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9409 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_sys_search_path+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9417 if test -n "$libltdl_cv_sys_search_path"; then
9419 for dir in $libltdl_cv_sys_search_path; do
9420 if test -z "$sys_search_path"; then
9421 sys_search_path="$dir"
9423 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9433 { echo "$as_me:$LINENO: checking for objdir" >&5
9434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_objdir+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 libltdl_cv_objdir="$objdir"
9439 if test -n "$objdir"; then
9442 rm -f .libs 2>/dev/null
9443 mkdir .libs 2>/dev/null
9444 if test -d .libs; then
9445 libltdl_cv_objdir=.libs
9447 # MS-DOS does not allow filenames that begin with a dot.
9448 libltdl_cv_objdir=_libs
9450 rmdir .libs 2>/dev/null
9454 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9482 # Transform an extracted symbol line into a proper C declaration
9483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9485 # Transform an extracted symbol line into symbol name and symbol address
9486 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'"
9488 # Define system-specific variables.
9493 cygwin* | mingw* | pw32*)
9494 symcode='[ABCDGISTW]'
9496 hpux*) # Its linker distinguishes data from code symbols
9497 if test "$host_cpu" = ia64; then
9498 symcode='[ABCDEGRST]'
9500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501 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'"
9504 if test "$host_cpu" = ia64; then
9505 symcode='[ABCDGIRSTW]'
9506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507 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'"
9511 symcode='[BCDEGRST]'
9514 symcode='[BCDEGQRST]'
9525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9533 # Handle CRLF in mingw tool chain
9537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9541 # If we're using GNU nm, then use its standard symbol codes.
9542 case `$NM -V 2>&1` in
9543 *GNU* | *'with BFD'*)
9544 symcode='[ABCDGIRSTW]' ;;
9547 # Try without a prefix undercore, then with it.
9548 for ac_symprfx in "" "_"; do
9550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551 symxfrm="\\1 $ac_symprfx\\2 \\2"
9553 # Write the raw and C identifiers.
9554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9556 # Check to see that the pipe works correctly.
9560 cat > conftest.$ac_ext <<EOF
9565 void nm_test_func(){}
9569 int main(){nm_test_var='a';nm_test_func();return(0);}
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; then
9577 # Now try to grab the symbols.
9579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s "$nlist"; then
9584 # Try sorting and uniquifying the output.
9585 if sort "$nlist" | uniq > "$nlist"T; then
9586 mv -f "$nlist"T "$nlist"
9591 # Make sure that we snagged all the symbols we need.
9592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594 cat <<EOF > conftest.$ac_ext
9600 # Now generate the symbol file.
9601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9603 cat <<EOF >> conftest.$ac_ext
9604 #if defined (__STDC__) && __STDC__
9605 # define lt_ptr_t void *
9607 # define lt_ptr_t char *
9611 /* The mapping between symbol names and symbols. */
9616 lt_preloaded_symbols[] =
9619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620 cat <<\EOF >> conftest.$ac_ext
9628 # Now try linking the two files.
9629 mv conftest.$ac_objext conftstm.$ac_objext
9630 lt_save_LIBS="$LIBS"
9631 lt_save_CFLAGS="$CFLAGS"
9632 LIBS="conftstm.$ac_objext"
9633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9641 LIBS="$lt_save_LIBS"
9642 CFLAGS="$lt_save_CFLAGS"
9644 echo "cannot find nm_test_func in $nlist" >&5
9647 echo "cannot find nm_test_var in $nlist" >&5
9650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9653 echo "$progname: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9656 rm -f conftest* conftst*
9658 # Do not use the global_symbol_pipe unless it works.
9659 if test "$pipe_works" = yes; then
9662 lt_cv_sys_global_symbol_pipe=
9668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669 lt_cv_sys_global_symbol_to_cdecl=
9671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9672 { echo "$as_me:$LINENO: result: failed" >&5
9673 echo "${ECHO_T}failed" >&6; }
9675 { echo "$as_me:$LINENO: result: ok" >&5
9676 echo "${ECHO_T}ok" >&6; }
9680 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686 libltdl_cv_preloaded_symbols=yes
9688 libltdl_cv_preloaded_symbols=no
9692 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_PRELOADED_SYMBOLS 1
9705 ac_cpp='$CPP $CPPFLAGS'
9706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9711 { echo "$as_me:$LINENO: checking for shl_load" >&5
9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_shl_load+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724 #define shl_load innocuous_shl_load
9726 /* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char shl_load (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9732 # include <limits.h>
9734 # include <assert.h>
9739 /* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined __stub_shl_load || defined __stub___shl_load
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_func_shl_load=yes
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_cv_func_shl_load=no
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808 if test $ac_cv_func_shl_load = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_SHL_LOAD 1
9815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 ac_check_lib_save_LIBS=$LIBS
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_lib_dld_shl_load=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_lib_dld_shl_load=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892 if test $ac_cv_lib_dld_shl_load = yes; then
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_SHL_LOAD 1
9898 LIBADD_DL="$LIBADD_DL -ldld"
9900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_check_lib_save_LIBS=$LIBS
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_link") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 ac_cv_lib_dl_dlopen=yes
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_cv_lib_dl_dlopen=no
9971 rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_LIBDL 1
9983 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_LIBDL 1
10041 libltdl_cv_func_dlopen="yes"
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lsvld $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_link") 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest$ac_exeext'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_lib_svld_dlopen=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_cv_lib_svld_dlopen=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123 if test $ac_cv_lib_svld_dlopen = yes; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_LIBDL 1
10129 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 ac_check_lib_save_LIBS=$LIBS
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10145 /* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10155 return dld_link ();
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_lib_dld_dld_link=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_lib_dld_dld_link=no
10202 rm -f core conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208 if test $ac_cv_lib_dld_dld_link = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10214 LIBADD_DL="$LIBADD_DL -ldld"
10216 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10229 #define _dyld_func_lookup innocuous__dyld_func_lookup
10231 /* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char _dyld_func_lookup (); below.
10233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234 <limits.h> exists even on freestanding compilers. */
10237 # include <limits.h>
10239 # include <assert.h>
10242 #undef _dyld_func_lookup
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10250 char _dyld_func_lookup ();
10251 /* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10261 return _dyld_func_lookup ();
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_link") 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_func__dyld_func_lookup=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_cv_func__dyld_func_lookup=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313 if test $ac_cv_func__dyld_func_lookup = yes; then
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DYLD 1
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10342 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10344 lt_save_LIBS="$LIBS"
10345 LIBS="$LIBS $LIBADD_DL"
10347 for ac_func in dlerror
10349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10363 #define $ac_func innocuous_$ac_func
10365 /* System header to define __stub macros and hopefully few prototypes,
10366 which can conflict with char $ac_func (); below.
10367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <limits.h> exists even on freestanding compilers. */
10371 # include <limits.h>
10373 # include <assert.h>
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10385 /* The GNU C library defines this for functions which it implements
10386 to always fail with ENOSYS. Some functions are actually named
10387 something starting with __ and the normal name is an alias. */
10388 #if defined __stub_$ac_func || defined __stub___$ac_func
10395 return $ac_func ();
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10445 ac_res=`eval echo '${'$as_ac_var'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 if test `eval echo '${'$as_ac_var'}'` = yes; then
10449 cat >>confdefs.h <<_ACEOF
10450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10456 LIBS="$lt_save_LIBS"
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 ac_cv_sys_symbol_underscore=no
10472 cat > conftest.$ac_ext <<EOF
10473 void nm_test_func(){}
10474 int main(){nm_test_func;return 0;}
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; then
10481 # Now try to grab the symbols.
10482 ac_nlist=conftest.nm
10483 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && test -s "$ac_nlist"; then
10488 # See whether the symbols have a leading underscore.
10489 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490 ac_cv_sys_symbol_underscore=yes
10492 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10495 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10499 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10502 echo "configure: failed program was:" >&5
10508 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10512 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513 if test x"$libltdl_cv_func_dlopen" = xyes ||
10514 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10515 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517 if test "${libltdl_cv_need_uscore+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 libltdl_cv_need_uscore=unknown
10522 LIBS="$LIBS $LIBADD_DL"
10523 if test "$cross_compiling" = yes; then :
10524 libltdl_cv_need_uscore=cross
10526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527 lt_status=$lt_dlunknown
10528 cat > conftest.$ac_ext <<EOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10539 # define LT_DLGLOBAL RTLD_GLOBAL
10542 # define LT_DLGLOBAL DL_GLOBAL
10544 # define LT_DLGLOBAL 0
10548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549 find out it does not work in some platform. */
10550 #ifndef LT_DLLAZY_OR_NOW
10552 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10555 # define LT_DLLAZY_OR_NOW DL_LAZY
10558 # define LT_DLLAZY_OR_NOW RTLD_NOW
10561 # define LT_DLLAZY_OR_NOW DL_NOW
10563 # define LT_DLLAZY_OR_NOW 0
10571 extern "C" void exit (int);
10574 void fnord() { int i=42;}
10577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578 int status = $lt_dlunknown;
10582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584 /* dlclose (self); */
10592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593 (eval $ac_link) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597 (./conftest; exit; ) >&5 2>/dev/null
10599 case x$lt_status in
10600 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10602 x$lt_dlunknown|x*) ;;
10605 # compilation failed
10614 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10619 if test x"$libltdl_cv_need_uscore" = xyes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NEED_USCORE 1
10628 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 # PORTME does your system automatically load deplibs for dlopen?
10634 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635 # For now, we just catch OSes we know something about -- in the
10636 # future, we'll try test this programmatically.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10639 aix3*|aix4.1.*|aix4.2.*)
10640 # Unknown whether this is true for these versions of AIX, but
10641 # we want this `case' here to explicitly catch those versions.
10642 libltdl_cv_sys_dlopen_deplibs=unknown
10645 libltdl_cv_sys_dlopen_deplibs=yes
10648 # Assuming the user has installed a libdl from somewhere, this is true
10649 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650 libltdl_cv_sys_dlopen_deplibs=yes
10652 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653 # GNU and its variants, using gnu ld.so (Glibc)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10657 libltdl_cv_sys_dlopen_deplibs=yes
10660 libltdl_cv_sys_dlopen_deplibs=yes
10662 irix[12345]*|irix6.[01]*)
10663 # Catch all versions of IRIX before 6.2, and indicate that we don't
10664 # know how it worked for any of those versions.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10668 # The case above catches anything before 6.2, and it's known that
10669 # at 6.2 and later dlopen does load deplibs.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10673 libltdl_cv_sys_dlopen_deplibs=yes
10676 libltdl_cv_sys_dlopen_deplibs=yes
10679 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680 # it did *not* use an RPATH in a shared library to find objects the
10681 # library depends on, so we explictly say `no'.
10682 libltdl_cv_sys_dlopen_deplibs=no
10684 osf5.0|osf5.0a|osf5.1)
10685 # dlopen *does* load deplibs and with the right loader patch applied
10686 # it even uses RPATH in a shared library to search for shared objects
10687 # that the library depends on, but there's no easy way to know if that
10688 # patch is installed. Since this is the case, all we can really
10689 # say is unknown -- it depends on the patch being installed. If
10690 # it is, this changes to `yes'. Without it, it would be `no'.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10694 # the two cases above should catch all versions of osf <= 5.1. Read
10695 # the comments above for what we know about them.
10696 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697 # is used to find them so we can finally say `yes'.
10698 libltdl_cv_sys_dlopen_deplibs=yes
10701 libltdl_cv_sys_dlopen_deplibs=yes
10703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10709 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10711 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define LTDL_DLOPEN_DEPLIBS 1
10720 for ac_header in argz.h
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10733 # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 $ac_includes_default
10743 #include <$ac_header>
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_header_compiler=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_header_compiler=no
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789 echo "${ECHO_T}$ac_header_compiler" >&6; }
10791 # Is the header present?
10792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <$ac_header>
10802 if { (ac_try="$ac_cpp conftest.$ac_ext"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10824 if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_header_preproc=no
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10837 # So? What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10860 ## ----------------------------------- ##
10861 ## Report this to llvmbugs@cs.uiuc.edu ##
10862 ## ----------------------------------- ##
10864 ) | sed "s/^/$as_me: WARNING: /" >&2
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 eval "$as_ac_Header=\$ac_header_preproc"
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10889 { echo "$as_me:$LINENO: checking for error_t" >&5
10890 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891 if test "${ac_cv_type_error_t+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10904 typedef error_t ac__type_new_;
10908 if ((ac__type_new_ *) 0)
10910 if (sizeof (ac__type_new_))
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_cv_type_error_t=yes
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10955 ac_cv_type_error_t=no
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962 if test $ac_cv_type_error_t = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_ERROR_T 1
10971 cat >>confdefs.h <<\_ACEOF
10972 #define error_t int
10983 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999 #define $ac_func innocuous_$ac_func
11001 /* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11007 # include <limits.h>
11009 # include <assert.h>
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11031 return $ac_func ();
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 eval "$as_ac_var=no"
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11119 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11133 # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 $ac_includes_default
11143 #include <$ac_header>
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_header_compiler=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <$ac_header>
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11224 if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_preproc=no
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11237 # So? What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 ac_header_preproc=yes
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11260 ## ----------------------------------- ##
11261 ## Report this to llvmbugs@cs.uiuc.edu ##
11262 ## ----------------------------------- ##
11264 ) | sed "s/^/$as_me: WARNING: /" >&2
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 eval "$as_ac_Header=\$ac_header_preproc"
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11292 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11305 # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 #include <$ac_header>
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_compiler=no
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <$ac_header>
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11382 grep -v '^ *+' conftest.er1 >conftest.err
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11396 if test -z "$ac_cpp_err"; then
11397 ac_header_preproc=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_header_preproc=no
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11409 # So? What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc=yes
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11432 ## ----------------------------------- ##
11433 ## Report this to llvmbugs@cs.uiuc.edu ##
11434 ## ----------------------------------- ##
11436 ) | sed "s/^/$as_me: WARNING: /" >&2
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 eval "$as_ac_Header=\$ac_header_preproc"
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452 cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462 for ac_header in string.h strings.h
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11475 # Is the header compilable?
11476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484 $ac_includes_default
11485 #include <$ac_header>
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11496 grep -v '^ *+' conftest.er1 >conftest.err
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_header_compiler=yes
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_header_compiler=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null; then
11557 if test -s conftest.err; then
11558 ac_cpp_err=$ac_c_preproc_warn_flag
11559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566 if test -z "$ac_cpp_err"; then
11567 ac_header_preproc=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_header_preproc=no
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11579 # So? What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11602 ## ----------------------------------- ##
11603 ## Report this to llvmbugs@cs.uiuc.edu ##
11604 ## ----------------------------------- ##
11606 ) | sed "s/^/$as_me: WARNING: /" >&2
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 eval "$as_ac_Header=\$ac_header_preproc"
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 for ac_func in strchr index
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649 #define $ac_func innocuous_$ac_func
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11657 # include <limits.h>
11659 # include <assert.h>
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11671 /* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 return $ac_func ();
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 eval "$as_ac_var=no"
11728 rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 for ac_func in strrchr rindex
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760 #define $ac_func innocuous_$ac_func
11762 /* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11768 # include <limits.h>
11770 # include <assert.h>
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11792 return $ac_func ();
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 eval "$as_ac_var=no"
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846 cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11855 for ac_func in memcpy bcopy
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871 #define $ac_func innocuous_$ac_func
11873 /* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11879 # include <limits.h>
11881 # include <assert.h>
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11893 /* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11903 return $ac_func ();
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 eval "$as_ac_var=no"
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11966 for ac_func in memmove strcmp
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.$ac_ext <<_ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982 #define $ac_func innocuous_$ac_func
11984 /* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char $ac_func (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11990 # include <limits.h>
11992 # include <assert.h>
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12004 /* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
12007 #if defined __stub_$ac_func || defined __stub___$ac_func
12014 return $ac_func ();
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_link") 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 eval "$as_ac_var=no"
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12064 ac_res=`eval echo '${'$as_ac_var'}'`
12065 { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078 for ac_func in closedir opendir readdir
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094 #define $ac_func innocuous_$ac_func
12096 /* System header to define __stub macros and hopefully few prototypes,
12097 which can conflict with char $ac_func (); below.
12098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099 <limits.h> exists even on freestanding compilers. */
12102 # include <limits.h>
12104 # include <assert.h>
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12126 return $ac_func ();
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1 >conftest.err
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
12145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest$ac_exeext'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 eval "$as_ac_var=yes"
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 eval "$as_ac_var=no"
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180 cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12188 # Check whether --enable-shared was given.
12189 if test "${enable_shared+set}" = set; then
12190 enableval=$enable_shared; p=${PACKAGE-default}
12192 yes) enable_shared=yes ;;
12193 no) enable_shared=no ;;
12196 # Look at the argument we got. We use all the common list separators.
12197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12198 for pkg in $enableval; do
12200 if test "X$pkg" = "X$p"; then
12212 # Check whether --enable-static was given.
12213 if test "${enable_static+set}" = set; then
12214 enableval=$enable_static; p=${PACKAGE-default}
12216 yes) enable_static=yes ;;
12217 no) enable_static=no ;;
12220 # Look at the argument we got. We use all the common list separators.
12221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12222 for pkg in $enableval; do
12224 if test "X$pkg" = "X$p"; then
12236 # Check whether --enable-fast-install was given.
12237 if test "${enable_fast_install+set}" = set; then
12238 enableval=$enable_fast_install; p=${PACKAGE-default}
12240 yes) enable_fast_install=yes ;;
12241 no) enable_fast_install=no ;;
12243 enable_fast_install=no
12244 # Look at the argument we got. We use all the common list separators.
12245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12246 for pkg in $enableval; do
12248 if test "X$pkg" = "X$p"; then
12249 enable_fast_install=yes
12256 enable_fast_install=yes
12260 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12261 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12262 if test "${lt_cv_path_SED+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 # Loop through the user's path and test for sed and gsed.
12266 # Then use that list of sed's as ones to test for truncation.
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12271 test -z "$as_dir" && as_dir=.
12272 for lt_ac_prog in sed gsed; do
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12275 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12282 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12283 # along with /bin/sed that truncates output.
12284 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12285 test ! -f $lt_ac_sed && continue
12286 cat /dev/null > conftest.in
12288 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12289 # Check for GNU sed and select it if it is found.
12290 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12291 lt_cv_path_SED=$lt_ac_sed
12295 cat conftest.in conftest.in >conftest.tmp
12296 mv conftest.tmp conftest.in
12297 cp conftest.in conftest.nl
12299 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12300 cmp -s conftest.out conftest.nl || break
12301 # 10000 chars as input seems more than enough
12302 test $lt_ac_count -gt 10 && break
12303 lt_ac_count=`expr $lt_ac_count + 1`
12304 if test $lt_ac_count -gt $lt_ac_max; then
12305 lt_ac_max=$lt_ac_count
12306 lt_cv_path_SED=$lt_ac_sed
12313 SED=$lt_cv_path_SED
12314 { echo "$as_me:$LINENO: result: $SED" >&5
12315 echo "${ECHO_T}$SED" >&6; }
12318 # Check whether --with-gnu-ld was given.
12319 if test "${with_gnu_ld+set}" = set; then
12320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12326 if test "$GCC" = yes; then
12327 # Check if gcc -print-prog-name=ld gives a path.
12328 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12329 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12332 # gcc leaves a trailing carriage return which upsets mingw
12333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12338 # Accept absolute paths.
12340 re_direlt='/[^/][^/]*/\.\./'
12341 # Canonicalize the pathname of ld
12342 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12344 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12346 test -z "$LD" && LD="$ac_prog"
12349 # If it fails, then pretend we aren't using GCC.
12353 # If it is relative, then search for the first ld in PATH.
12354 with_gnu_ld=unknown
12357 elif test "$with_gnu_ld" = yes; then
12358 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12359 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12361 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12362 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12364 if test "${lt_cv_path_LD+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 if test -z "$LD"; then
12368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12369 for ac_dir in $PATH; do
12371 test -z "$ac_dir" && ac_dir=.
12372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12373 lt_cv_path_LD="$ac_dir/$ac_prog"
12374 # Check to see if the program is GNU ld. I'd rather use --version,
12375 # but apparently some variants of GNU ld only accept -v.
12376 # Break only if it was the GNU/non-GNU ld that we prefer.
12377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12378 *GNU* | *'with BFD'*)
12379 test "$with_gnu_ld" != no && break
12382 test "$with_gnu_ld" != yes && break
12389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12393 LD="$lt_cv_path_LD"
12394 if test -n "$LD"; then
12395 { echo "$as_me:$LINENO: result: $LD" >&5
12396 echo "${ECHO_T}$LD" >&6; }
12398 { echo "$as_me:$LINENO: result: no" >&5
12399 echo "${ECHO_T}no" >&6; }
12401 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12402 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12403 { (exit 1); exit 1; }; }
12404 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12405 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12406 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12410 case `$LD -v 2>&1 </dev/null` in
12411 *GNU* | *'with BFD'*)
12412 lt_cv_prog_gnu_ld=yes
12415 lt_cv_prog_gnu_ld=no
12419 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12420 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12421 with_gnu_ld=$lt_cv_prog_gnu_ld
12424 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12425 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12426 if test "${lt_cv_ld_reload_flag+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 lt_cv_ld_reload_flag='-r'
12431 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12432 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12433 reload_flag=$lt_cv_ld_reload_flag
12434 case $reload_flag in
12436 *) reload_flag=" $reload_flag" ;;
12438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12441 if test "$GCC" = yes; then
12442 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12449 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12450 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12451 if test "${lt_cv_deplibs_check_method+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 lt_cv_file_magic_cmd='$MAGIC_CMD'
12455 lt_cv_file_magic_test_file=
12456 lt_cv_deplibs_check_method='unknown'
12457 # Need to set the preceding variable on all platforms that support
12458 # interlibrary dependencies.
12459 # 'none' -- dependencies not supported.
12460 # `unknown' -- same as none, but documents that we really don't know.
12461 # 'pass_all' -- all dependencies passed with no checks.
12462 # 'test_compile' -- check by making test program.
12463 # 'file_magic [[regex]]' -- check by looking for files in library path
12464 # which responds to the $file_magic_cmd with a given extended regex.
12465 # If you have `file' or equivalent on your system and you're not sure
12466 # whether `pass_all' will *always* work, you probably want this one.
12470 lt_cv_deplibs_check_method=pass_all
12474 lt_cv_deplibs_check_method=pass_all
12478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12479 lt_cv_file_magic_cmd='/usr/bin/file -L'
12480 lt_cv_file_magic_test_file=/shlib/libc.so
12484 # func_win32_libid is a shell function defined in ltmain.sh
12485 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12486 lt_cv_file_magic_cmd='func_win32_libid'
12490 # Base MSYS/MinGW do not provide the 'file' command needed by
12491 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12492 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12493 lt_cv_file_magic_cmd='$OBJDUMP -f'
12496 darwin* | rhapsody*)
12497 lt_cv_deplibs_check_method=pass_all
12500 freebsd* | kfreebsd*-gnu | dragonfly*)
12501 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12504 # Not sure whether the presence of OpenBSD here was a mistake.
12505 # Let's accept both of them until this is cleared up.
12506 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12507 lt_cv_file_magic_cmd=/usr/bin/file
12508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12512 lt_cv_deplibs_check_method=pass_all
12517 lt_cv_deplibs_check_method=pass_all
12520 hpux10.20* | hpux11*)
12521 lt_cv_file_magic_cmd=/usr/bin/file
12524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12525 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12528 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]'
12529 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12539 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12543 irix5* | irix6* | nonstopux*)
12545 *-32|*"-32 ") libmagic=32-bit;;
12546 *-n32|*"-n32 ") libmagic=N32;;
12547 *-64|*"-64 ") libmagic=64-bit;;
12548 *) libmagic=never-match;;
12550 lt_cv_deplibs_check_method=pass_all
12553 # This must be Linux ELF.
12555 lt_cv_deplibs_check_method=pass_all
12559 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12568 lt_cv_file_magic_cmd=/usr/bin/file
12569 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12573 lt_cv_deplibs_check_method=unknown
12577 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12584 osf3* | osf4* | osf5*)
12585 lt_cv_deplibs_check_method=pass_all
12589 lt_cv_deplibs_check_method=pass_all
12593 case $host_vendor in
12595 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]'
12596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12599 lt_cv_deplibs_check_method=pass_all
12602 lt_cv_file_magic_cmd='/bin/file'
12603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12606 lt_cv_file_magic_cmd='/bin/file'
12607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12608 lt_cv_file_magic_test_file=/lib/libc.so
12611 lt_cv_deplibs_check_method=pass_all
12614 lt_cv_deplibs_check_method=pass_all
12619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12620 lt_cv_deplibs_check_method=pass_all
12625 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12626 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12627 file_magic_cmd=$lt_cv_file_magic_cmd
12628 deplibs_check_method=$lt_cv_deplibs_check_method
12629 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12633 # If no C compiler was specified, use CC.
12636 # If no C compiler flags were specified, use CFLAGS.
12637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12639 # Allow CC to be a program name with arguments.
12642 # Check whether --enable-libtool-lock was given.
12643 if test "${enable_libtool_lock+set}" = set; then
12644 enableval=$enable_libtool_lock;
12647 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12649 # Some flags need to be propagated to the compiler or linker for good
12653 # Find out which ABI we are using.
12654 echo 'int i;' > conftest.$ac_ext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656 (eval $ac_compile) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; then
12660 case `/usr/bin/file conftest.$ac_objext` in
12662 HPUX_IA64_MODE="32"
12665 HPUX_IA64_MODE="64"
12672 # Find out which ABI we are using.
12673 echo '#line 12673 "configure"' > conftest.$ac_ext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; then
12679 if test "$lt_cv_prog_gnu_ld" = yes; then
12680 case `/usr/bin/file conftest.$ac_objext` in
12682 LD="${LD-ld} -melf32bsmip"
12685 LD="${LD-ld} -melf32bmipn32"
12688 LD="${LD-ld} -melf64bmip"
12692 case `/usr/bin/file conftest.$ac_objext` in
12708 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12709 # Find out which ABI we are using.
12710 echo 'int i;' > conftest.$ac_ext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; then
12716 case `/usr/bin/file conftest.o` in
12720 LD="${LD-ld} -m elf_i386"
12722 ppc64-*linux*|powerpc64-*linux*)
12723 LD="${LD-ld} -m elf32ppclinux"
12726 LD="${LD-ld} -m elf_s390"
12729 LD="${LD-ld} -m elf32_sparc"
12736 LD="${LD-ld} -m elf_x86_64"
12738 ppc*-*linux*|powerpc*-*linux*)
12739 LD="${LD-ld} -m elf64ppc"
12742 LD="${LD-ld} -m elf64_s390"
12745 LD="${LD-ld} -m elf64_sparc"
12755 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12756 SAVE_CFLAGS="$CFLAGS"
12757 CFLAGS="$CFLAGS -belf"
12758 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12759 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12760 if test "${lt_cv_cc_needs_belf+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 ac_cpp='$CPP $CPPFLAGS'
12765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12769 cat >conftest.$ac_ext <<_ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_link") 2>conftest.er1
12793 grep -v '^ *+' conftest.er1 >conftest.err
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest$ac_exeext'
12809 { (case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_try") 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 lt_cv_cc_needs_belf=yes
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 lt_cv_cc_needs_belf=no
12826 rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext conftest.$ac_ext
12829 ac_cpp='$CPP $CPPFLAGS'
12830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12835 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12839 CFLAGS="$SAVE_CFLAGS"
12843 # Find out which ABI we are using.
12844 echo 'int i;' > conftest.$ac_ext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846 (eval $ac_compile) 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; then
12850 case `/usr/bin/file conftest.o` in
12852 case $lt_cv_prog_gnu_ld in
12853 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12854 *) LD="${LD-ld} -64" ;;
12865 need_locks="$enable_libtool_lock"
12870 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12871 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12872 (test "X$CXX" != "Xg++"))) ; then
12874 ac_cpp='$CXXCPP $CPPFLAGS'
12875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12878 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12879 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12880 if test -z "$CXXCPP"; then
12881 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 # Double quotes because CXXCPP needs to be expanded
12885 for CXXCPP in "$CXX -E" "/lib/cpp"
12887 ac_preproc_ok=false
12888 for ac_cxx_preproc_warn_flag in '' yes
12890 # Use a header file that comes with gcc, so configuring glibc
12891 # with a fresh cross-compiler works.
12892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12893 # <limits.h> exists even on freestanding compilers.
12894 # On the NeXT, cc -E runs the code through the compiler's parser,
12895 # not just through cpp. "Syntax error" is here to catch this case.
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12903 # include <limits.h>
12905 # include <assert.h>
12909 if { (ac_try="$ac_cpp conftest.$ac_ext"
12910 case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12917 grep -v '^ *+' conftest.er1 >conftest.err
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } >/dev/null; then
12922 if test -s conftest.err; then
12923 ac_cpp_err=$ac_cxx_preproc_warn_flag
12924 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12931 if test -z "$ac_cpp_err"; then
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 # Broken: fails on valid input.
12941 rm -f conftest.err conftest.$ac_ext
12943 # OK, works on sane cases. Now check whether nonexistent headers
12944 # can be detected and how.
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 #include <ac_nonexistent.h>
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12961 grep -v '^ *+' conftest.er1 >conftest.err
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_cxx_preproc_warn_flag
12968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12975 if test -z "$ac_cpp_err"; then
12976 # Broken: success on invalid input.
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 # Passes both tests.
12987 rm -f conftest.err conftest.$ac_ext
12990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12991 rm -f conftest.err conftest.$ac_ext
12992 if $ac_preproc_ok; then
12997 ac_cv_prog_CXXCPP=$CXXCPP
13000 CXXCPP=$ac_cv_prog_CXXCPP
13002 ac_cv_prog_CXXCPP=$CXXCPP
13004 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13005 echo "${ECHO_T}$CXXCPP" >&6; }
13006 ac_preproc_ok=false
13007 for ac_cxx_preproc_warn_flag in '' yes
13009 # Use a header file that comes with gcc, so configuring glibc
13010 # with a fresh cross-compiler works.
13011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13012 # <limits.h> exists even on freestanding compilers.
13013 # On the NeXT, cc -E runs the code through the compiler's parser,
13014 # not just through cpp. "Syntax error" is here to catch this case.
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 # include <limits.h>
13024 # include <assert.h>
13028 if { (ac_try="$ac_cpp conftest.$ac_ext"
13029 case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13036 grep -v '^ *+' conftest.er1 >conftest.err
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } >/dev/null; then
13041 if test -s conftest.err; then
13042 ac_cpp_err=$ac_cxx_preproc_warn_flag
13043 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13050 if test -z "$ac_cpp_err"; then
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 # Broken: fails on valid input.
13060 rm -f conftest.err conftest.$ac_ext
13062 # OK, works on sane cases. Now check whether nonexistent headers
13063 # can be detected and how.
13064 cat >conftest.$ac_ext <<_ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13070 #include <ac_nonexistent.h>
13072 if { (ac_try="$ac_cpp conftest.$ac_ext"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13080 grep -v '^ *+' conftest.er1 >conftest.err
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } >/dev/null; then
13085 if test -s conftest.err; then
13086 ac_cpp_err=$ac_cxx_preproc_warn_flag
13087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13094 if test -z "$ac_cpp_err"; then
13095 # Broken: success on invalid input.
13098 echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13101 # Passes both tests.
13106 rm -f conftest.err conftest.$ac_ext
13109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13110 rm -f conftest.err conftest.$ac_ext
13111 if $ac_preproc_ok; then
13114 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13115 See \`config.log' for more details." >&5
13116 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13117 See \`config.log' for more details." >&2;}
13118 { (exit 1); exit 1; }; }
13122 ac_cpp='$CXXCPP $CPPFLAGS'
13123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13134 if test -n "$ac_tool_prefix"; then
13135 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
13137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13141 if test "${ac_cv_prog_F77+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 if test -n "$F77"; then
13145 ac_cv_prog_F77="$F77" # Let the user override the test.
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 F77=$ac_cv_prog_F77
13165 if test -n "$F77"; then
13166 { echo "$as_me:$LINENO: result: $F77" >&5
13167 echo "${ECHO_T}$F77" >&6; }
13169 { echo "$as_me:$LINENO: result: no" >&5
13170 echo "${ECHO_T}no" >&6; }
13174 test -n "$F77" && break
13177 if test -z "$F77"; then
13179 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
13181 # Extract the first word of "$ac_prog", so it can be a program name with args.
13182 set dummy $ac_prog; ac_word=$2
13183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13185 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 if test -n "$ac_ct_F77"; then
13189 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
13197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13198 ac_cv_prog_ac_ct_F77="$ac_prog"
13199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13209 if test -n "$ac_ct_F77"; then
13210 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13211 echo "${ECHO_T}$ac_ct_F77" >&6; }
13213 { echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6; }
13218 test -n "$ac_ct_F77" && break
13221 if test "x$ac_ct_F77" = x; then
13224 case $cross_compiling:$ac_tool_warned in
13226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13227 whose name does not start with the host triplet. If you think this
13228 configuration is useful to you, please write to autoconf@gnu.org." >&5
13229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13230 whose name does not start with the host triplet. If you think this
13231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13232 ac_tool_warned=yes ;;
13239 # Provide some information about the compiler.
13240 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13241 ac_compiler=`set X $ac_compile; echo $2`
13242 { (ac_try="$ac_compiler --version >&5"
13243 case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_compiler --version >&5") 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }
13252 { (ac_try="$ac_compiler -v >&5"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_compiler -v >&5") 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }
13262 { (ac_try="$ac_compiler -V >&5"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_compiler -V >&5") 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }
13274 # If we don't use `.F' as extension, the preprocessor is not run on the
13275 # input file. (Note that this only needs to work for GNU compilers.)
13276 ac_save_ext=$ac_ext
13278 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13279 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13280 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
13293 case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_compile") 2>conftest.er1
13300 grep -v '^ *+' conftest.er1 >conftest.err
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13306 { (case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_try") 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_compiler_gnu=yes
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13337 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13338 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13339 ac_ext=$ac_save_ext
13340 ac_test_FFLAGS=${FFLAGS+set}
13341 ac_save_FFLAGS=$FFLAGS
13343 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13344 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13345 if test "${ac_cv_prog_f77_g+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 cat >conftest.$ac_ext <<_ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (ac_try="$ac_compile"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compile") 2>conftest.er1
13363 grep -v '^ *+' conftest.er1 >conftest.err
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; } &&
13378 { ac_try='test -s conftest.$ac_objext'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_prog_f77_g=yes
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ac_cv_prog_f77_g=no
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13400 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13401 if test "$ac_test_FFLAGS" = set; then
13402 FFLAGS=$ac_save_FFLAGS
13403 elif test $ac_cv_prog_f77_g = yes; then
13404 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13410 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13417 G77=`test $ac_compiler_gnu = yes && echo yes`
13419 ac_cpp='$CPP $CPPFLAGS'
13420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13428 # find the maximum length of command line arguments
13429 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 # On DJGPP, this test can blow up pretty badly due to problems in libc
13440 # (any single argument exceeding 2000 bytes causes a buffer overrun
13441 # during glob expansion). Even if it were fixed, the result of this
13442 # check would be larger than it should be.
13443 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13447 # Under GNU Hurd, this test is not required because there is
13448 # no limit to the length of command line arguments.
13449 # Libtool will interpret -1 as no limit whatsoever
13450 lt_cv_sys_max_cmd_len=-1;
13454 # On Win9x/ME, this test blows up -- it succeeds, but takes
13455 # about 5 minutes as the teststring grows exponentially.
13456 # Worse, since 9x/ME are not pre-emptively multitasking,
13457 # you end up with a "frozen" computer, even though with patience
13458 # the test eventually succeeds (with a max line length of 256k).
13459 # Instead, let's just punt: use the minimum linelength reported by
13460 # all of the supported platforms: 8192 (on NT/2K/XP).
13461 lt_cv_sys_max_cmd_len=8192;
13465 # On AmigaOS with pdksh, this test takes hours, literally.
13466 # So we just punt and use a minimum line length of 8192.
13467 lt_cv_sys_max_cmd_len=8192;
13470 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13471 # This has been around since 386BSD, at least. Likely further.
13472 if test -x /sbin/sysctl; then
13473 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13474 elif test -x /usr/sbin/sysctl; then
13475 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13477 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13479 # And add a safety zone
13480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13485 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13486 lt_cv_sys_max_cmd_len=196608
13490 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13491 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13492 # nice to cause kernel panics so lets avoid the loop below.
13493 # First set a reasonable default.
13494 lt_cv_sys_max_cmd_len=16384
13496 if test -x /sbin/sysconfig; then
13497 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13498 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13503 lt_cv_sys_max_cmd_len=102400
13505 sysv5* | sco5v6* | sysv4.2uw2*)
13506 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13507 if test -n "$kargmax"; then
13508 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13510 lt_cv_sys_max_cmd_len=32768
13514 # If test is not a shell built-in, we'll probably end up computing a
13515 # maximum length that is only half of the actual maximum length, but
13517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13518 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13519 = "XX$teststring") >/dev/null 2>&1 &&
13520 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13521 lt_cv_sys_max_cmd_len=$new_result &&
13522 test $i != 17 # 1/2 MB should be enough
13525 teststring=$teststring$teststring
13528 # Add a significant safety factor because C++ compilers can tack on massive
13529 # amounts of additional arguments before passing them to the linker.
13530 # It appears as though 1/2 is a usable value.
13531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13537 if test -n $lt_cv_sys_max_cmd_len ; then
13538 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13541 { echo "$as_me:$LINENO: result: none" >&5
13542 echo "${ECHO_T}none" >&6; }
13548 # Check for command to grab the raw symbol name followed by C symbol from nm.
13549 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13550 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 # These are sane defaults that work on at least a few old systems.
13556 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13558 # Character class describing NM global symbol codes.
13559 symcode='[BCDEGRST]'
13561 # Regexp to match symbols that can be accessed directly from C.
13562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13564 # Transform an extracted symbol line into a proper C declaration
13565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13567 # Transform an extracted symbol line into symbol name and symbol address
13568 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'"
13570 # Define system-specific variables.
13575 cygwin* | mingw* | pw32*)
13576 symcode='[ABCDGISTW]'
13578 hpux*) # Its linker distinguishes data from code symbols
13579 if test "$host_cpu" = ia64; then
13580 symcode='[ABCDEGRST]'
13582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13583 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'"
13586 if test "$host_cpu" = ia64; then
13587 symcode='[ABCDGIRSTW]'
13588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13589 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'"
13592 irix* | nonstopux*)
13593 symcode='[BCDEGRST]'
13596 symcode='[BCDEGQRST]'
13607 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13615 # Handle CRLF in mingw tool chain
13619 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13623 # If we're using GNU nm, then use its standard symbol codes.
13624 case `$NM -V 2>&1` in
13625 *GNU* | *'with BFD'*)
13626 symcode='[ABCDGIRSTW]' ;;
13629 # Try without a prefix undercore, then with it.
13630 for ac_symprfx in "" "_"; do
13632 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13633 symxfrm="\\1 $ac_symprfx\\2 \\2"
13635 # Write the raw and C identifiers.
13636 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13638 # Check to see that the pipe works correctly.
13642 cat > conftest.$ac_ext <<EOF
13647 void nm_test_func(){}
13651 int main(){nm_test_var='a';nm_test_func();return(0);}
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; then
13659 # Now try to grab the symbols.
13661 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13662 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } && test -s "$nlist"; then
13666 # Try sorting and uniquifying the output.
13667 if sort "$nlist" | uniq > "$nlist"T; then
13668 mv -f "$nlist"T "$nlist"
13673 # Make sure that we snagged all the symbols we need.
13674 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13675 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13676 cat <<EOF > conftest.$ac_ext
13682 # Now generate the symbol file.
13683 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13685 cat <<EOF >> conftest.$ac_ext
13686 #if defined (__STDC__) && __STDC__
13687 # define lt_ptr_t void *
13689 # define lt_ptr_t char *
13693 /* The mapping between symbol names and symbols. */
13698 lt_preloaded_symbols[] =
13701 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13702 cat <<\EOF >> conftest.$ac_ext
13710 # Now try linking the two files.
13711 mv conftest.$ac_objext conftstm.$ac_objext
13712 lt_save_LIBS="$LIBS"
13713 lt_save_CFLAGS="$CFLAGS"
13714 LIBS="conftstm.$ac_objext"
13715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13723 LIBS="$lt_save_LIBS"
13724 CFLAGS="$lt_save_CFLAGS"
13726 echo "cannot find nm_test_func in $nlist" >&5
13729 echo "cannot find nm_test_var in $nlist" >&5
13732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13735 echo "$progname: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13738 rm -f conftest* conftst*
13740 # Do not use the global_symbol_pipe unless it works.
13741 if test "$pipe_works" = yes; then
13744 lt_cv_sys_global_symbol_pipe=
13750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13751 lt_cv_sys_global_symbol_to_cdecl=
13753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13754 { echo "$as_me:$LINENO: result: failed" >&5
13755 echo "${ECHO_T}failed" >&6; }
13757 { echo "$as_me:$LINENO: result: ok" >&5
13758 echo "${ECHO_T}ok" >&6; }
13761 { echo "$as_me:$LINENO: checking for objdir" >&5
13762 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13763 if test "${lt_cv_objdir+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 rm -f .libs 2>/dev/null
13767 mkdir .libs 2>/dev/null
13768 if test -d .libs; then
13771 # MS-DOS does not allow filenames that begin with a dot.
13774 rmdir .libs 2>/dev/null
13776 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13777 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13778 objdir=$lt_cv_objdir
13786 # AIX sometimes has problems with the GCC collect2 program. For some
13787 # reason, if we set the COLLECT_NAMES environment variable, the problems
13788 # vanish in a puff of smoke.
13789 if test "X${COLLECT_NAMES+set}" != Xset; then
13791 export COLLECT_NAMES
13796 # Sed substitution that helps us do robust quoting. It backslashifies
13797 # metacharacters that are still active within double-quoted strings.
13798 Xsed='sed -e 1s/^X//'
13799 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13801 # Same as above, but do not quote variable references.
13802 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13804 # Sed substitution to delay expansion of an escaped shell variable in a
13805 # double_quote_subst'ed string.
13806 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13808 # Sed substitution to avoid accidental globbing in evaled expressions
13809 no_glob_subst='s/\*/\\\*/g'
13814 # Global variables:
13815 default_ofile=mklib
13816 can_build_shared=yes
13818 # All known linkers require a `.a' archive for static linking (except MSVC,
13819 # which needs '.lib').
13821 ltmain="$ac_aux_dir/ltmain.sh"
13822 ofile="$default_ofile"
13823 with_gnu_ld="$lt_cv_prog_gnu_ld"
13825 if test -n "$ac_tool_prefix"; then
13826 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13827 set dummy ${ac_tool_prefix}ar; ac_word=$2
13828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13830 if test "${ac_cv_prog_AR+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13833 if test -n "$AR"; then
13834 ac_cv_prog_AR="$AR" # Let the user override the test.
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13843 ac_cv_prog_AR="${ac_tool_prefix}ar"
13844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 if test -n "$AR"; then
13855 { echo "$as_me:$LINENO: result: $AR" >&5
13856 echo "${ECHO_T}$AR" >&6; }
13858 { echo "$as_me:$LINENO: result: no" >&5
13859 echo "${ECHO_T}no" >&6; }
13864 if test -z "$ac_cv_prog_AR"; then
13866 # Extract the first word of "ar", so it can be a program name with args.
13867 set dummy ar; ac_word=$2
13868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13870 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 if test -n "$ac_ct_AR"; then
13874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13883 ac_cv_prog_ac_ct_AR="ar"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13894 if test -n "$ac_ct_AR"; then
13895 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13896 echo "${ECHO_T}$ac_ct_AR" >&6; }
13898 { echo "$as_me:$LINENO: result: no" >&5
13899 echo "${ECHO_T}no" >&6; }
13902 if test "x$ac_ct_AR" = x; then
13905 case $cross_compiling:$ac_tool_warned in
13907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13908 whose name does not start with the host triplet. If you think this
13909 configuration is useful to you, please write to autoconf@gnu.org." >&5
13910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13911 whose name does not start with the host triplet. If you think this
13912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13913 ac_tool_warned=yes ;;
13918 AR="$ac_cv_prog_AR"
13921 if test -n "$ac_tool_prefix"; then
13922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13926 if test "${ac_cv_prog_RANLIB+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 if test -n "$RANLIB"; then
13930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13936 test -z "$as_dir" && as_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
13938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 RANLIB=$ac_cv_prog_RANLIB
13950 if test -n "$RANLIB"; then
13951 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13952 echo "${ECHO_T}$RANLIB" >&6; }
13954 { echo "$as_me:$LINENO: result: no" >&5
13955 echo "${ECHO_T}no" >&6; }
13960 if test -z "$ac_cv_prog_RANLIB"; then
13961 ac_ct_RANLIB=$RANLIB
13962 # Extract the first word of "ranlib", so it can be a program name with args.
13963 set dummy ranlib; ac_word=$2
13964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 if test -n "$ac_ct_RANLIB"; then
13970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973 for as_dir in $PATH
13976 test -z "$as_dir" && as_dir=.
13977 for ac_exec_ext in '' $ac_executable_extensions; do
13978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13979 ac_cv_prog_ac_ct_RANLIB="ranlib"
13980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13990 if test -n "$ac_ct_RANLIB"; then
13991 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13992 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13994 { echo "$as_me:$LINENO: result: no" >&5
13995 echo "${ECHO_T}no" >&6; }
13998 if test "x$ac_ct_RANLIB" = x; then
14001 case $cross_compiling:$ac_tool_warned in
14003 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14004 whose name does not start with the host triplet. If you think this
14005 configuration is useful to you, please write to autoconf@gnu.org." >&5
14006 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14007 whose name does not start with the host triplet. If you think this
14008 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14009 ac_tool_warned=yes ;;
14011 RANLIB=$ac_ct_RANLIB
14014 RANLIB="$ac_cv_prog_RANLIB"
14017 if test -n "$ac_tool_prefix"; then
14018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14019 set dummy ${ac_tool_prefix}strip; ac_word=$2
14020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14022 if test "${ac_cv_prog_STRIP+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 if test -n "$STRIP"; then
14026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14035 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14045 STRIP=$ac_cv_prog_STRIP
14046 if test -n "$STRIP"; then
14047 { echo "$as_me:$LINENO: result: $STRIP" >&5
14048 echo "${ECHO_T}$STRIP" >&6; }
14050 { echo "$as_me:$LINENO: result: no" >&5
14051 echo "${ECHO_T}no" >&6; }
14056 if test -z "$ac_cv_prog_STRIP"; then
14058 # Extract the first word of "strip", so it can be a program name with args.
14059 set dummy strip; ac_word=$2
14060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14062 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 if test -n "$ac_ct_STRIP"; then
14066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14075 ac_cv_prog_ac_ct_STRIP="strip"
14076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14086 if test -n "$ac_ct_STRIP"; then
14087 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14088 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14090 { echo "$as_me:$LINENO: result: no" >&5
14091 echo "${ECHO_T}no" >&6; }
14094 if test "x$ac_ct_STRIP" = x; then
14097 case $cross_compiling:$ac_tool_warned in
14099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14100 whose name does not start with the host triplet. If you think this
14101 configuration is useful to you, please write to autoconf@gnu.org." >&5
14102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14103 whose name does not start with the host triplet. If you think this
14104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14105 ac_tool_warned=yes ;;
14110 STRIP="$ac_cv_prog_STRIP"
14115 old_CFLAGS="$CFLAGS"
14117 # Set sane defaults for various variables
14118 test -z "$AR" && AR=ar
14119 test -z "$AR_FLAGS" && AR_FLAGS=cru
14120 test -z "$AS" && AS=as
14121 test -z "$CC" && CC=cc
14122 test -z "$LTCC" && LTCC=$CC
14123 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14124 test -z "$DLLTOOL" && DLLTOOL=dlltool
14125 test -z "$LD" && LD=ld
14126 test -z "$LN_S" && LN_S="ln -s"
14127 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14128 test -z "$NM" && NM=nm
14129 test -z "$SED" && SED=sed
14130 test -z "$OBJDUMP" && OBJDUMP=objdump
14131 test -z "$RANLIB" && RANLIB=:
14132 test -z "$STRIP" && STRIP=:
14133 test -z "$ac_objext" && ac_objext=o
14135 # Determine commands to create old-style static archives.
14136 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14137 old_postinstall_cmds='chmod 644 $oldlib'
14138 old_postuninstall_cmds=
14140 if test -n "$RANLIB"; then
14143 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14146 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14149 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14152 for cc_temp in $compiler""; do
14154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14160 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14163 # Only perform the check for file, if the check method requires it
14164 case $deplibs_check_method in
14166 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14167 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14168 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14177 lt_save_MAGIC_CMD="$MAGIC_CMD"
14178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14180 for ac_dir in $ac_dummy; do
14182 test -z "$ac_dir" && ac_dir=.
14183 if test -f $ac_dir/${ac_tool_prefix}file; then
14184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14185 if test -n "$file_magic_test_file"; then
14186 case $deplibs_check_method in
14188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14191 $EGREP "$file_magic_regex" > /dev/null; then
14196 *** Warning: the command libtool uses to detect shared libraries,
14197 *** $file_magic_cmd, produces output that libtool cannot recognize.
14198 *** The result is that libtool may fail to recognize shared libraries
14199 *** as such. This will affect the creation of libtool libraries that
14200 *** depend on shared libraries, but programs linked with such libtool
14201 *** libraries will work regardless of this problem. Nevertheless, you
14202 *** may want to report the problem to your system manager and/or to
14203 *** bug-libtool@gnu.org
14213 MAGIC_CMD="$lt_save_MAGIC_CMD"
14218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14219 if test -n "$MAGIC_CMD"; then
14220 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14221 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14223 { echo "$as_me:$LINENO: result: no" >&5
14224 echo "${ECHO_T}no" >&6; }
14227 if test -z "$lt_cv_path_MAGIC_CMD"; then
14228 if test -n "$ac_tool_prefix"; then
14229 { echo "$as_me:$LINENO: checking for file" >&5
14230 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14239 lt_save_MAGIC_CMD="$MAGIC_CMD"
14240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14242 for ac_dir in $ac_dummy; do
14244 test -z "$ac_dir" && ac_dir=.
14245 if test -f $ac_dir/file; then
14246 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14247 if test -n "$file_magic_test_file"; then
14248 case $deplibs_check_method in
14250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14253 $EGREP "$file_magic_regex" > /dev/null; then
14258 *** Warning: the command libtool uses to detect shared libraries,
14259 *** $file_magic_cmd, produces output that libtool cannot recognize.
14260 *** The result is that libtool may fail to recognize shared libraries
14261 *** as such. This will affect the creation of libtool libraries that
14262 *** depend on shared libraries, but programs linked with such libtool
14263 *** libraries will work regardless of this problem. Nevertheless, you
14264 *** may want to report the problem to your system manager and/or to
14265 *** bug-libtool@gnu.org
14275 MAGIC_CMD="$lt_save_MAGIC_CMD"
14280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14281 if test -n "$MAGIC_CMD"; then
14282 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14283 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14285 { echo "$as_me:$LINENO: result: no" >&5
14286 echo "${ECHO_T}no" >&6; }
14299 enable_win32_dll=no
14301 # Check whether --enable-libtool-lock was given.
14302 if test "${enable_libtool_lock+set}" = set; then
14303 enableval=$enable_libtool_lock;
14306 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14309 # Check whether --with-pic was given.
14310 if test "${with_pic+set}" = set; then
14311 withval=$with_pic; pic_mode="$withval"
14316 test -z "$pic_mode" && pic_mode=default
14318 # Use C for the default configuration in the libtool script
14322 ac_cpp='$CPP $CPPFLAGS'
14323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328 # Source file extension for C test sources.
14331 # Object file extension for compiled C test sources.
14335 # Code to be used in simple compile tests
14336 lt_simple_compile_test_code="int some_variable = 0;\n"
14338 # Code to be used in simple link tests
14339 lt_simple_link_test_code='int main(){return(0);}\n'
14342 # If no C compiler was specified, use CC.
14345 # If no C compiler flags were specified, use CFLAGS.
14346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14348 # Allow CC to be a program name with arguments.
14352 # save warnings/boilerplate of simple test code
14353 ac_outfile=conftest.$ac_objext
14354 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14356 _lt_compiler_boilerplate=`cat conftest.err`
14359 ac_outfile=conftest.$ac_objext
14360 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14362 _lt_linker_boilerplate=`cat conftest.err`
14367 lt_prog_compiler_no_builtin_flag=
14369 if test "$GCC" = yes; then
14370 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14373 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14374 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14375 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 lt_cv_prog_compiler_rtti_exceptions=no
14379 ac_outfile=conftest.$ac_objext
14380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14381 lt_compiler_flag="-fno-rtti -fno-exceptions"
14382 # Insert the option either (1) after the last *FLAGS variable, or
14383 # (2) before a word containing "conftest.", or (3) at the end.
14384 # Note that $ac_compile itself does not contain backslashes and begins
14385 # with a dollar sign (not a hyphen), so the echo should work correctly.
14386 # The option is referenced via a variable to avoid confusing sed.
14387 lt_compile=`echo "$ac_compile" | $SED \
14388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390 -e 's:$: $lt_compiler_flag:'`
14391 (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392 (eval "$lt_compile" 2>conftest.err)
14394 cat conftest.err >&5
14395 echo "$as_me:14395: \$? = $ac_status" >&5
14396 if (exit $ac_status) && test -s "$ac_outfile"; then
14397 # The compiler can only warn and ignore the option if not recognized
14398 # So say no if there are warnings other than the usual output.
14399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402 lt_cv_prog_compiler_rtti_exceptions=yes
14408 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14409 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14411 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14412 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14419 lt_prog_compiler_wl=
14420 lt_prog_compiler_pic=
14421 lt_prog_compiler_static=
14423 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14424 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14426 if test "$GCC" = yes; then
14427 lt_prog_compiler_wl='-Wl,'
14428 lt_prog_compiler_static='-static'
14432 # All AIX code is PIC.
14433 if test "$host_cpu" = ia64; then
14434 # AIX 5 now supports IA64 processor
14435 lt_prog_compiler_static='-Bstatic'
14440 # FIXME: we need at least 68020 code to build shared libraries, but
14441 # adding the `-m68020' flag to GCC prevents building anything better,
14443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14446 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14447 # PIC is the default for these OSes.
14450 mingw* | pw32* | os2*)
14451 # This hack is so that the source file can tell whether it is being
14452 # built for inclusion in a dll (and should export symbols for example).
14453 lt_prog_compiler_pic='-DDLL_EXPORT'
14456 darwin* | rhapsody*)
14457 # PIC is the default on this platform
14458 # Common symbols not allowed in MH_DYLIB files
14459 lt_prog_compiler_pic='-fno-common'
14463 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464 # Instead, we relocate shared libraries at runtime.
14468 # Just because we use GCC doesn't mean we suddenly get shared libraries
14469 # on systems that don't support them.
14470 lt_prog_compiler_can_build_shared=no
14475 if test -d /usr/nec; then
14476 lt_prog_compiler_pic=-Kconform_pic
14481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14482 # not for PA HP-UX.
14488 lt_prog_compiler_pic='-fPIC'
14494 lt_prog_compiler_pic='-fPIC'
14498 # PORTME Check for flag to pass linker flags through the system compiler.
14501 lt_prog_compiler_wl='-Wl,'
14502 if test "$host_cpu" = ia64; then
14503 # AIX 5 now supports IA64 processor
14504 lt_prog_compiler_static='-Bstatic'
14506 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14510 # PIC is the default on this platform
14511 # Common symbols not allowed in MH_DYLIB files
14512 case $cc_basename in
14514 lt_prog_compiler_pic='-qnocommon'
14515 lt_prog_compiler_wl='-Wl,'
14520 mingw* | pw32* | os2*)
14521 # This hack is so that the source file can tell whether it is being
14522 # built for inclusion in a dll (and should export symbols for example).
14523 lt_prog_compiler_pic='-DDLL_EXPORT'
14526 hpux9* | hpux10* | hpux11*)
14527 lt_prog_compiler_wl='-Wl,'
14528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14529 # not for PA HP-UX.
14535 lt_prog_compiler_pic='+Z'
14538 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14539 lt_prog_compiler_static='${wl}-a ${wl}archive'
14542 irix5* | irix6* | nonstopux*)
14543 lt_prog_compiler_wl='-Wl,'
14544 # PIC (with -KPIC) is the default.
14545 lt_prog_compiler_static='-non_shared'
14549 lt_prog_compiler_pic='-KPIC'
14550 lt_prog_compiler_static='-Bstatic'
14554 case $cc_basename in
14556 lt_prog_compiler_wl='-Wl,'
14557 lt_prog_compiler_pic='-KPIC'
14558 lt_prog_compiler_static='-static'
14560 pgcc* | pgf77* | pgf90* | pgf95*)
14561 # Portland Group compilers (*not* the Pentium gcc compiler,
14562 # which looks to be a dead project)
14563 lt_prog_compiler_wl='-Wl,'
14564 lt_prog_compiler_pic='-fpic'
14565 lt_prog_compiler_static='-Bstatic'
14568 lt_prog_compiler_wl='-Wl,'
14569 # All Alpha code is PIC.
14570 lt_prog_compiler_static='-non_shared'
14575 osf3* | osf4* | osf5*)
14576 lt_prog_compiler_wl='-Wl,'
14577 # All OSF/1 code is PIC.
14578 lt_prog_compiler_static='-non_shared'
14582 lt_prog_compiler_pic='-KPIC'
14583 lt_prog_compiler_static='-Bstatic'
14584 case $cc_basename in
14585 f77* | f90* | f95*)
14586 lt_prog_compiler_wl='-Qoption ld ';;
14588 lt_prog_compiler_wl='-Wl,';;
14593 lt_prog_compiler_wl='-Qoption ld '
14594 lt_prog_compiler_pic='-PIC'
14595 lt_prog_compiler_static='-Bstatic'
14598 sysv4 | sysv4.2uw2* | sysv4.3*)
14599 lt_prog_compiler_wl='-Wl,'
14600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-Bstatic'
14605 if test -d /usr/nec ;then
14606 lt_prog_compiler_pic='-Kconform_pic'
14607 lt_prog_compiler_static='-Bstatic'
14611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14612 lt_prog_compiler_wl='-Wl,'
14613 lt_prog_compiler_pic='-KPIC'
14614 lt_prog_compiler_static='-Bstatic'
14618 lt_prog_compiler_wl='-Wl,'
14619 lt_prog_compiler_can_build_shared=no
14623 lt_prog_compiler_pic='-pic'
14624 lt_prog_compiler_static='-Bstatic'
14628 lt_prog_compiler_can_build_shared=no
14633 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14634 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14637 # Check to make sure the PIC flag actually works.
14639 if test -n "$lt_prog_compiler_pic"; then
14641 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14642 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14643 if test "${lt_prog_compiler_pic_works+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 lt_prog_compiler_pic_works=no
14647 ac_outfile=conftest.$ac_objext
14648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14650 # Insert the option either (1) after the last *FLAGS variable, or
14651 # (2) before a word containing "conftest.", or (3) at the end.
14652 # Note that $ac_compile itself does not contain backslashes and begins
14653 # with a dollar sign (not a hyphen), so the echo should work correctly.
14654 # The option is referenced via a variable to avoid confusing sed.
14655 lt_compile=`echo "$ac_compile" | $SED \
14656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14658 -e 's:$: $lt_compiler_flag:'`
14659 (eval echo "\"\$as_me:14659: $lt_compile\"" >&5)
14660 (eval "$lt_compile" 2>conftest.err)
14662 cat conftest.err >&5
14663 echo "$as_me:14663: \$? = $ac_status" >&5
14664 if (exit $ac_status) && test -s "$ac_outfile"; then
14665 # The compiler can only warn and ignore the option if not recognized
14666 # So say no if there are warnings other than the usual output.
14667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14670 lt_prog_compiler_pic_works=yes
14676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14677 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14679 if test x"$lt_prog_compiler_pic_works" = xyes; then
14680 case $lt_prog_compiler_pic in
14682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14685 lt_prog_compiler_pic=
14686 lt_prog_compiler_can_build_shared=no
14691 # For platforms which do not support PIC, -DPIC is meaningless:
14693 lt_prog_compiler_pic=
14696 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14701 # Check to make sure the static flag actually works.
14703 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14704 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14705 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14706 if test "${lt_prog_compiler_static_works+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 lt_prog_compiler_static_works=no
14710 save_LDFLAGS="$LDFLAGS"
14711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14712 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14714 # The linker can only warn and ignore the option if not recognized
14715 # So say no if there are warnings
14716 if test -s conftest.err; then
14717 # Append any errors to the config.log.
14718 cat conftest.err 1>&5
14719 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14721 if diff conftest.exp conftest.er2 >/dev/null; then
14722 lt_prog_compiler_static_works=yes
14725 lt_prog_compiler_static_works=yes
14729 LDFLAGS="$save_LDFLAGS"
14732 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14733 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14735 if test x"$lt_prog_compiler_static_works" = xyes; then
14738 lt_prog_compiler_static=
14742 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14743 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14744 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 lt_cv_prog_compiler_c_o=no
14748 $rm -r conftest 2>/dev/null
14752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14754 lt_compiler_flag="-o out/conftest2.$ac_objext"
14755 # Insert the option either (1) after the last *FLAGS variable, or
14756 # (2) before a word containing "conftest.", or (3) at the end.
14757 # Note that $ac_compile itself does not contain backslashes and begins
14758 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
14766 cat out/conftest.err >&5
14767 echo "$as_me:14767: \$? = $ac_status" >&5
14768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14770 # The compiler can only warn and ignore the option if not recognized
14771 # So say no if there are warnings
14772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14775 lt_cv_prog_compiler_c_o=yes
14780 # SGI C++ compiler will create directory out/ii_files/ for
14781 # template instantiation
14782 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14783 $rm out/* && rmdir out
14789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14790 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14793 hard_links="nottested"
14794 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14795 # do not overwrite the value of need_locks provided by the user
14796 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14797 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14802 ln conftest.a conftest.b 2>&5 || hard_links=no
14803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14804 { echo "$as_me:$LINENO: result: $hard_links" >&5
14805 echo "${ECHO_T}$hard_links" >&6; }
14806 if test "$hard_links" = no; then
14807 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14808 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14815 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14816 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14819 allow_undefined_flag=
14820 enable_shared_with_static_runtimes=no
14822 archive_expsym_cmds=
14823 old_archive_From_new_cmds=
14824 old_archive_from_expsyms_cmds=
14825 export_dynamic_flag_spec=
14826 whole_archive_flag_spec=
14827 thread_safe_flag_spec=
14828 hardcode_libdir_flag_spec=
14829 hardcode_libdir_flag_spec_ld=
14830 hardcode_libdir_separator=
14832 hardcode_minus_L=no
14833 hardcode_shlibpath_var=unsupported
14834 link_all_deplibs=unknown
14835 hardcode_automatic=no
14837 module_expsym_cmds=
14838 always_export_symbols=no
14839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14840 # include_expsyms should be a list of space-separated symbols to be *always*
14841 # included in the symbol list
14843 # exclude_expsyms can be an extended regexp of symbols to exclude
14844 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14845 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14846 # as well as any symbol that contains `d'.
14847 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14848 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14849 # platforms (ab)use it in PIC code, but their linkers get confused if
14850 # the symbol is explicitly referenced. Since portable code cannot
14851 # rely on this symbol name, it's probably fine to never include it in
14852 # preloaded symbol tables.
14853 extract_expsyms_cmds=
14854 # Just being paranoid about ensuring that cc_basename is set.
14855 for cc_temp in $compiler""; do
14857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14863 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14866 cygwin* | mingw* | pw32*)
14867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14868 # When not using gcc, we currently assume that we are using
14869 # Microsoft Visual C++.
14870 if test "$GCC" != yes; then
14875 # we just hope/assume this is gcc and not c89 (= MSVC++)
14884 if test "$with_gnu_ld" = yes; then
14885 # If archive_cmds runs LD, not CC, wlarc should be empty
14888 # Set some defaults for GNU ld with shared library support. These
14889 # are reset later if shared libraries are not supported. Putting them
14890 # here allows them to be overridden if necessary.
14891 runpath_var=LD_RUN_PATH
14892 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14893 export_dynamic_flag_spec='${wl}--export-dynamic'
14894 # ancient GNU ld didn't support --whole-archive et. al.
14895 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14896 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14898 whole_archive_flag_spec=
14900 supports_anon_versioning=no
14901 case `$LD -v 2>/dev/null` in
14902 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14903 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14904 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14905 *\ 2.11.*) ;; # other 2.11 versions
14906 *) supports_anon_versioning=yes ;;
14909 # See if GNU ld supports shared libraries.
14911 aix3* | aix4* | aix5*)
14912 # On AIX/PPC, the GNU linker is very broken
14913 if test "$host_cpu" != ia64; then
14917 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14918 *** to be unable to reliably create shared libraries on AIX.
14919 *** Therefore, libtool is disabling shared libraries support. If you
14920 *** really care for shared libraries, you may want to modify your PATH
14921 *** so that a non-GNU linker is found, and then restart.
14928 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)'
14929 hardcode_libdir_flag_spec='-L$libdir'
14930 hardcode_minus_L=yes
14932 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14933 # that the semantics of dynamic libraries on AmigaOS, at least up
14934 # to version 4, is to share data among multiple programs linked
14935 # with the same dynamic library. Since this doesn't match the
14936 # behavior of shared libraries on other platforms, we can't use
14942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943 allow_undefined_flag=unsupported
14944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14945 # support --undefined. This deserves some investigation. FIXME
14946 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952 cygwin* | mingw* | pw32*)
14953 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14954 # as there is no search path for DLLs.
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 allow_undefined_flag=unsupported
14957 always_export_symbols=no
14958 enable_shared_with_static_runtimes=yes
14959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14963 # If the export-symbols file already is a .def file (1st line
14964 # is EXPORTS), use it as is; otherwise, prepend...
14965 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14966 cp $export_symbols $output_objdir/$soname.def;
14968 echo EXPORTS > $output_objdir/$soname.def;
14969 cat $export_symbols >> $output_objdir/$soname.def;
14971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14979 hardcode_shlibpath_var=no
14980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14981 export_dynamic_flag_spec='${wl}-E'
14982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14983 # Instead, shared libraries are loaded at an image base (0x10000000 by
14984 # default) and relocated if they conflict, which is a slow very memory
14985 # consuming and fragmenting process. To avoid this, we pick a random,
14986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14989 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'
14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14995 case $cc_basename,$host_cpu in
14996 pgcc*) # Portland Group C compiler
14997 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'
14998 tmp_addflag=' $pic_flag'
15000 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15001 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'
15002 tmp_addflag=' $pic_flag -Mnomain' ;;
15003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15004 tmp_addflag=' -i_dynamic' ;;
15005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15006 tmp_addflag=' -i_dynamic -nofor_main' ;;
15007 ifc* | ifort*) # Intel Fortran compiler
15008 tmp_addflag=' -nofor_main' ;;
15010 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 if test $supports_anon_versioning = yes; then
15013 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15015 $echo "local: *; };" >> $output_objdir/$libname.ver~
15016 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15025 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15034 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15039 *** create shared libraries on Solaris systems. Therefore, libtool
15040 *** is disabling shared libraries support. We urge you to upgrade GNU
15041 *** binutils to release 2.9.1 or newer. Another option is to modify
15042 *** your PATH or compiler configuration so that the native linker is
15043 *** used, and then restart.
15046 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15055 case `$LD -v 2>&1` in
15056 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15060 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15061 *** reliably create shared libraries on SCO systems. Therefore, libtool
15062 *** is disabling shared libraries support. We urge you to upgrade GNU
15063 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15064 *** your PATH or compiler configuration so that the native linker is
15065 *** used, and then restart.
15070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15082 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084 hardcode_direct=yes
15085 hardcode_shlibpath_var=no
15089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15098 if test "$ld_shlibs" = no; then
15100 hardcode_libdir_flag_spec=
15101 export_dynamic_flag_spec=
15102 whole_archive_flag_spec=
15105 # PORTME fill in a description of your system's linker (not GNU ld)
15108 allow_undefined_flag=unsupported
15109 always_export_symbols=yes
15110 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'
15111 # Note: this linker hardcodes the directories in LIBPATH if there
15112 # are no directories specified by -L.
15113 hardcode_minus_L=yes
15114 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15115 # Neither direct hardcoding nor static linking is supported with a
15117 hardcode_direct=unsupported
15122 if test "$host_cpu" = ia64; then
15123 # On IA64, the linker does run time linking by default, so we don't
15124 # have to do anything special.
15125 aix_use_runtimelinking=no
15126 exp_sym_flag='-Bexport'
15129 # If we're using GNU nm, then we don't want the "-C" option.
15130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15131 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15132 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'
15134 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'
15136 aix_use_runtimelinking=no
15138 # Test if we are trying to use run time linking or normal
15139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15140 # need to do runtime linking.
15141 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15142 for ld_flag in $LDFLAGS; do
15143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15144 aix_use_runtimelinking=yes
15151 exp_sym_flag='-bexport'
15152 no_entry_flag='-bnoentry'
15155 # When large executables or shared objects are built, AIX ld can
15156 # have problems creating the table of contents. If linking a library
15157 # or program results in "error TOC overflow" add -mminimal-toc to
15158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15162 hardcode_direct=yes
15163 hardcode_libdir_separator=':'
15164 link_all_deplibs=yes
15166 if test "$GCC" = yes; then
15167 case $host_os in aix4.[012]|aix4.[012].*)
15168 # We only want to do this on AIX 4.2 and lower, the check
15169 # below for broken collect2 doesn't work under 4.3+
15170 collect2name=`${CC} -print-prog-name=collect2`
15171 if test -f "$collect2name" && \
15172 strings "$collect2name" | grep resolve_lib_name >/dev/null
15174 # We have reworked collect2
15175 hardcode_direct=yes
15177 # We have old collect2
15178 hardcode_direct=unsupported
15179 # It fails to find uninstalled libraries when the uninstalled
15180 # path is not listed in the libpath. Setting hardcode_minus_L
15181 # to unsupported forces relinking
15182 hardcode_minus_L=yes
15183 hardcode_libdir_flag_spec='-L$libdir'
15184 hardcode_libdir_separator=
15188 shared_flag='-shared'
15189 if test "$aix_use_runtimelinking" = yes; then
15190 shared_flag="$shared_flag "'${wl}-G'
15194 if test "$host_cpu" = ia64; then
15195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15196 # chokes on -Wl,-G. The following line is correct:
15199 if test "$aix_use_runtimelinking" = yes; then
15200 shared_flag='${wl}-G'
15202 shared_flag='${wl}-bM:SRE'
15207 # It seems that -bexpall does not export symbols beginning with
15208 # underscore (_), so it is better to generate a list of symbols to export.
15209 always_export_symbols=yes
15210 if test "$aix_use_runtimelinking" = yes; then
15211 # Warning - without using the other runtime loading flags (-brtl),
15212 # -berok will link without error, but may produce a broken library.
15213 allow_undefined_flag='-berok'
15214 # Determine the default libpath from the value encoded in an empty executable.
15215 cat >conftest.$ac_ext <<_ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest$ac_exeext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15267 # Check for a 64-bit object if we didn't find anything.
15268 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; }
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15277 rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15282 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"
15284 if test "$host_cpu" = ia64; then
15285 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15286 allow_undefined_flag="-z nodefs"
15287 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"
15289 # Determine the default libpath from the value encoded in an empty executable.
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (ac_try="$ac_link"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_link") 2>conftest.er1
15314 grep -v '^ *+' conftest.er1 >conftest.err
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_try") 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest$ac_exeext'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15342 # Check for a 64-bit object if we didn't find anything.
15343 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; }
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15357 # Warning - without using the other run time loading flags,
15358 # -berok will link without error, but may produce a broken library.
15359 no_undefined_flag=' ${wl}-bernotok'
15360 allow_undefined_flag=' ${wl}-berok'
15361 # Exported symbols can be pulled into shared objects from archives
15362 whole_archive_flag_spec='$convenience'
15363 archive_cmds_need_lc=yes
15364 # This is similar to how AIX traditionally builds its shared libraries.
15365 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'
15371 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)'
15372 hardcode_libdir_flag_spec='-L$libdir'
15373 hardcode_minus_L=yes
15374 # see comment about different semantics on the GNU ld section
15379 export_dynamic_flag_spec=-rdynamic
15382 cygwin* | mingw* | pw32*)
15383 # When not using gcc, we currently assume that we are using
15384 # Microsoft Visual C++.
15385 # hardcode_libdir_flag_spec is actually meaningless, as there is
15386 # no search path for DLLs.
15387 hardcode_libdir_flag_spec=' '
15388 allow_undefined_flag=unsupported
15389 # Tell ltmain to make .lib files, not .a files.
15391 # Tell ltmain to make .dll files, not .so files.
15393 # FIXME: Setting linknames here is a bad hack.
15394 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15395 # The linker will automatically build a .lib file if we build a DLL.
15396 old_archive_From_new_cmds='true'
15397 # FIXME: Should let the user specify the lib program.
15398 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15399 fix_srcfile_path='`cygpath -w "$srcfile"`'
15400 enable_shared_with_static_runtimes=yes
15403 darwin* | rhapsody*)
15405 rhapsody* | darwin1.[012])
15406 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15409 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15410 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15412 case ${MACOSX_DEPLOYMENT_TARGET} in
15414 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15417 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15423 archive_cmds_need_lc=no
15425 hardcode_automatic=yes
15426 hardcode_shlibpath_var=unsupported
15427 whole_archive_flag_spec=''
15428 link_all_deplibs=yes
15429 if test "$GCC" = yes ; then
15430 output_verbose_link_cmd='echo'
15431 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15432 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15434 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}'
15435 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}'
15437 case $cc_basename in
15439 output_verbose_link_cmd='echo'
15440 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15441 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15443 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}'
15444 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}'
15454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_shlibpath_var=no
15463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15464 # support. Future versions do this automatically, but an explicit c++rt0.o
15465 # does not break anything, and helps significantly (at the cost of a little
15468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15469 hardcode_libdir_flag_spec='-R$libdir'
15470 hardcode_direct=yes
15471 hardcode_shlibpath_var=no
15474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_direct=yes
15478 hardcode_minus_L=yes
15479 hardcode_shlibpath_var=no
15482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15483 freebsd* | kfreebsd*-gnu | dragonfly*)
15484 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15485 hardcode_libdir_flag_spec='-R$libdir'
15486 hardcode_direct=yes
15487 hardcode_shlibpath_var=no
15491 if test "$GCC" = yes; then
15492 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'
15494 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'
15496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15497 hardcode_libdir_separator=:
15498 hardcode_direct=yes
15500 # hardcode_minus_L: Not really in the search PATH,
15501 # but as the default location of the library.
15502 hardcode_minus_L=yes
15503 export_dynamic_flag_spec='${wl}-E'
15507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15512 if test "$with_gnu_ld" = no; then
15513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514 hardcode_libdir_separator=:
15516 hardcode_direct=yes
15517 export_dynamic_flag_spec='${wl}-E'
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L=yes
15526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15529 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15541 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15551 if test "$with_gnu_ld" = no; then
15552 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15553 hardcode_libdir_separator=:
15557 hardcode_libdir_flag_spec_ld='+b $libdir'
15559 hardcode_shlibpath_var=no
15562 hardcode_direct=yes
15563 export_dynamic_flag_spec='${wl}-E'
15565 # hardcode_minus_L: Not really in the search PATH,
15566 # but as the default location of the library.
15567 hardcode_minus_L=yes
15573 irix5* | irix6* | nonstopux*)
15574 if test "$GCC" = yes; then
15575 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'
15577 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'
15578 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15581 hardcode_libdir_separator=:
15582 link_all_deplibs=yes
15586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15589 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15591 hardcode_libdir_flag_spec='-R$libdir'
15592 hardcode_direct=yes
15593 hardcode_shlibpath_var=no
15597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_direct=yes
15599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15600 hardcode_libdir_separator=:
15601 hardcode_shlibpath_var=no
15605 hardcode_direct=yes
15606 hardcode_shlibpath_var=no
15607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15610 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15611 export_dynamic_flag_spec='${wl}-E'
15614 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_libdir_flag_spec='-R$libdir'
15619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15620 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15627 hardcode_libdir_flag_spec='-L$libdir'
15628 hardcode_minus_L=yes
15629 allow_undefined_flag=unsupported
15630 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'
15631 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15635 if test "$GCC" = yes; then
15636 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15637 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'
15639 allow_undefined_flag=' -expect_unresolved \*'
15640 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'
15642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15643 hardcode_libdir_separator=:
15646 osf4* | osf5*) # as osf3* with the addition of -msym flag
15647 if test "$GCC" = yes; then
15648 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15649 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'
15650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15652 allow_undefined_flag=' -expect_unresolved \*'
15653 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'
15654 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15655 $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'
15657 # Both c and cxx compiler support -rpath directly
15658 hardcode_libdir_flag_spec='-rpath $libdir'
15660 hardcode_libdir_separator=:
15664 no_undefined_flag=' -z text'
15665 if test "$GCC" = yes; then
15667 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15669 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15672 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15674 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15676 hardcode_libdir_flag_spec='-R$libdir'
15677 hardcode_shlibpath_var=no
15679 solaris2.[0-5] | solaris2.[0-5].*) ;;
15681 # The compiler driver will combine linker options so we
15682 # cannot just pass the convience library names through
15683 # without $wl, iff we do not link with $LD.
15684 # Luckily, gcc supports the same syntax we need for Sun Studio.
15685 # Supported since Solaris 2.6 (maybe 2.5.1?)
15688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15690 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' ;;
15693 link_all_deplibs=yes
15697 if test "x$host_vendor" = xsequent; then
15698 # Use $CC to link under sequent, because it throws in some extra .o
15699 # files that make .init and .fini sections work.
15700 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15704 hardcode_libdir_flag_spec='-L$libdir'
15705 hardcode_direct=yes
15706 hardcode_minus_L=yes
15707 hardcode_shlibpath_var=no
15711 case $host_vendor in
15713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_direct=yes # is this really true???
15717 ## LD is ld it makes a PLAMLIB
15718 ## CC just makes a GrossModule.
15719 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720 reload_cmds='$CC -r -o $output$reload_objs'
15724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15728 runpath_var='LD_RUN_PATH'
15729 hardcode_shlibpath_var=no
15733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 hardcode_shlibpath_var=no
15735 export_dynamic_flag_spec='-Bexport'
15739 if test -d /usr/nec; then
15740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_shlibpath_var=no
15742 runpath_var=LD_RUN_PATH
15743 hardcode_runpath_var=yes
15748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15749 no_undefined_flag='${wl}-z,text'
15750 archive_cmds_need_lc=no
15751 hardcode_shlibpath_var=no
15752 runpath_var='LD_RUN_PATH'
15754 if test "$GCC" = yes; then
15755 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15759 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15763 sysv5* | sco3.2v5* | sco5v6*)
15764 # Note: We can NOT use -z defs as we might desire, because we do not
15765 # link with -lc, and that would cause any symbols used from libc to
15766 # always be unresolved, which means just about no library would
15767 # ever link correctly. If we're not using GNU ld we use -z text
15768 # though, which does catch some bad symbols but isn't as heavy-handed
15770 no_undefined_flag='${wl}-z,text'
15771 allow_undefined_flag='${wl}-z,nodefs'
15772 archive_cmds_need_lc=no
15773 hardcode_shlibpath_var=no
15774 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15775 hardcode_libdir_separator=':'
15776 link_all_deplibs=yes
15777 export_dynamic_flag_spec='${wl}-Bexport'
15778 runpath_var='LD_RUN_PATH'
15780 if test "$GCC" = yes; then
15781 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15784 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_libdir_flag_spec='-L$libdir'
15792 hardcode_shlibpath_var=no
15801 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15802 echo "${ECHO_T}$ld_shlibs" >&6; }
15803 test "$ld_shlibs" = no && can_build_shared=no
15806 # Do we need to explicitly link libc?
15808 case "x$archive_cmds_need_lc" in
15810 # Assume -lc should be added
15811 archive_cmds_need_lc=yes
15813 if test "$enable_shared" = yes && test "$GCC" = yes; then
15814 case $archive_cmds in
15816 # FIXME: we may have to deal with multi-command sequences.
15819 # Test whether the compiler implicitly links with -lc since on some
15820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15821 # to ld, don't add -lc before -lgcc.
15822 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } 2>conftest.err; then
15834 libobjs=conftest.$ac_objext
15836 wl=$lt_prog_compiler_wl
15837 pic_flag=$lt_prog_compiler_pic
15843 lt_save_allow_undefined_flag=$allow_undefined_flag
15844 allow_undefined_flag=
15845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15846 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }
15851 archive_cmds_need_lc=no
15853 archive_cmds_need_lc=yes
15855 allow_undefined_flag=$lt_save_allow_undefined_flag
15857 cat conftest.err 1>&5
15860 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15861 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15868 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15870 library_names_spec=
15871 libname_spec='lib$name'
15875 postuninstall_cmds=
15879 shlibpath_overrides_runpath=unknown
15881 dynamic_linker="$host_os ld.so"
15882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15883 if test "$GCC" = yes; then
15884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15886 # if the path contains ";" then we assume it to be the separator
15887 # otherwise default to the standard path separator (i.e. ":") - it is
15888 # assumed that no part of a normal pathname contains ";" but that should
15889 # okay in the real world where ";" in dirpaths is itself problematic.
15890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15897 need_lib_prefix=unknown
15898 hardcode_into_libs=no
15900 # when you set need_version to no, make sure it does not cause -set_version
15901 # flags to be left without arguments
15902 need_version=unknown
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15908 shlibpath_var=LIBPATH
15910 # AIX 3 has no versioning support, so we append a major version to the name.
15911 soname_spec='${libname}${release}${shared_ext}$major'
15918 hardcode_into_libs=yes
15919 if test "$host_cpu" = ia64; then
15920 # AIX 5 supports IA64
15921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15922 shlibpath_var=LD_LIBRARY_PATH
15924 # With GCC up to 2.95.x, collect2 would create an import file
15925 # for dependence libraries. The import file would start with
15926 # the line `#! .'. This would cause the generated library to
15927 # depend on `.', always an invalid library. This was fixed in
15928 # development snapshots of GCC prior to 3.0.
15930 aix4 | aix4.[01] | aix4.[01].*)
15931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15936 can_build_shared=no
15940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15941 # soname into executable. Probably we can add versioning support to
15942 # collect2, so additional links can be useful in future.
15943 if test "$aix_use_runtimelinking" = yes; then
15944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15945 # instead of lib<name>.a to let people know that these are not
15946 # typical AIX shared libraries.
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949 # We preserve .a as extension for shared libraries through AIX4.2
15950 # and later when we are not doing run time linking.
15951 library_names_spec='${libname}${release}.a $libname.a'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15954 shlibpath_var=LIBPATH
15959 library_names_spec='$libname.ixlibrary $libname.a'
15960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15961 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'
15965 library_names_spec='${libname}${shared_ext}'
15966 dynamic_linker="$host_os ld.so"
15967 shlibpath_var=LIBRARY_PATH
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15979 # the default ld.so.conf also contains /usr/contrib/lib and
15980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15981 # libtool to hard-code these into programs
15984 cygwin* | mingw* | pw32*)
15985 version_type=windows
15990 case $GCC,$host_os in
15991 yes,cygwin* | yes,mingw* | yes,pw32*)
15992 library_names_spec='$libname.dll.a'
15993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15994 postinstall_cmds='base_file=`basename \${file}`~
15995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15996 dldir=$destdir/`dirname \$dlpath`~
15997 test -d \$dldir || mkdir -p \$dldir~
15998 $install_prog $dir/$dlname \$dldir/$dlname~
15999 chmod a+x \$dldir/$dlname'
16000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16001 dlpath=$dir/\$dldll~
16003 shlibpath_overrides_runpath=yes
16007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16012 # MinGW DLLs use traditional 'lib' prefix
16013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16015 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16016 # It is most probably a Windows format PATH printed by
16017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16018 # path with ; separators, and with drive letters. We can handle the
16019 # drive letters (cygwin fileutils understands them), so leave them,
16020 # especially as we might pass files found there to a mingw objdump,
16021 # which wouldn't understand a cygwinified path. Ahh.
16022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16028 # pw32 DLLs use 'pw' prefix rather than 'lib'
16029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16038 dynamic_linker='Win32 ld.exe'
16039 # FIXME: first we should search . and the directory the executable is in
16043 darwin* | rhapsody*)
16044 dynamic_linker="$host_os dyld"
16045 version_type=darwin
16048 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16049 soname_spec='${libname}${release}${major}$shared_ext'
16050 shlibpath_overrides_runpath=yes
16051 shlibpath_var=DYLD_LIBRARY_PATH
16052 shrext_cmds='.dylib'
16053 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16054 if test "$GCC" = yes; then
16055 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"`
16057 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 shlibpath_var=LD_LIBRARY_PATH
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=no
16083 hardcode_into_libs=yes
16084 dynamic_linker='GNU ld.so'
16087 freebsd* | dragonfly*)
16088 # DragonFly does not have aout. When/if they implement a new
16089 # versioning mechanism, adjust this.
16090 if test -x /usr/bin/objformat; then
16091 objformat=`/usr/bin/objformat`
16094 freebsd[123]*) objformat=aout ;;
16095 *) objformat=elf ;;
16098 version_type=freebsd-$objformat
16099 case $version_type in
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16110 shlibpath_var=LD_LIBRARY_PATH
16113 shlibpath_overrides_runpath=yes
16115 freebsd3.[01]* | freebsdelf3.[01]*)
16116 shlibpath_overrides_runpath=yes
16117 hardcode_into_libs=yes
16119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16121 shlibpath_overrides_runpath=no
16122 hardcode_into_libs=yes
16124 freebsd*) # from 4.6 on
16125 shlibpath_overrides_runpath=yes
16126 hardcode_into_libs=yes
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 hardcode_into_libs=yes
16141 hpux9* | hpux10* | hpux11*)
16142 # Give a soname corresponding to the major version so that dld.sl refuses to
16143 # link against other versions.
16150 hardcode_into_libs=yes
16151 dynamic_linker="$host_os dld.so"
16152 shlibpath_var=LD_LIBRARY_PATH
16153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 if test "X$HPUX_IA64_MODE" = X32; then
16157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16165 hardcode_into_libs=yes
16166 dynamic_linker="$host_os dld.sl"
16167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16176 dynamic_linker="$host_os dld.sl"
16177 shlibpath_var=SHLIB_PATH
16178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16183 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16184 postinstall_cmds='chmod 555 $lib'
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16192 soname_spec='${libname}${release}${shared_ext}$major'
16193 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=no
16196 hardcode_into_libs=yes
16199 irix5* | irix6* | nonstopux*)
16201 nonstopux*) version_type=nonstopux ;;
16203 if test "$lt_cv_prog_gnu_ld" = yes; then
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16214 irix5* | nonstopux*)
16215 libsuff= shlibsuff=
16218 case $LD in # libtool.m4 will add one of these switches to LD
16219 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16220 libsuff= shlibsuff= libmagic=32-bit;;
16221 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16222 libsuff=32 shlibsuff=N32 libmagic=N32;;
16223 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16224 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16225 *) libsuff= shlibsuff= libmagic=never-match;;
16229 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16230 shlibpath_overrides_runpath=no
16231 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16232 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16233 hardcode_into_libs=yes
16236 # No shared lib support for Linux oldld, aout, or coff.
16237 linux*oldld* | linux*aout* | linux*coff*)
16241 # This must be Linux ELF.
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
16248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 shlibpath_overrides_runpath=no
16251 # This implies no fast_install, which is unacceptable.
16252 # Some rework will be needed to allow for fast_install
16253 # before this can be enabled.
16254 hardcode_into_libs=yes
16256 # Append ld.so.conf contents to the search path
16257 if test -f /etc/ld.so.conf; then
16258 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' ' '`
16259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16262 # We used to test for /lib/ld.so.1 and disable shared libraries on
16263 # powerpc, because MkLinux only supported shared libraries with the
16264 # GNU dynamic linker. Since this was broken with cross compilers,
16265 # most powerpc-linux boxes support dynamic linking these days and
16266 # people can always --disable-shared, the test was removed, and we
16267 # assume the GNU/Linux dynamic linker is in use.
16268 dynamic_linker='GNU/Linux ld.so'
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16276 soname_spec='${libname}${release}${shared_ext}$major'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=no
16279 hardcode_into_libs=yes
16280 dynamic_linker='GNU ld.so'
16287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16290 dynamic_linker='NetBSD (a.out) ld.so'
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 dynamic_linker='NetBSD ld.elf_so'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=yes
16298 hardcode_into_libs=yes
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 shlibpath_overrides_runpath=yes
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=yes
16320 sys_lib_dlsearch_path_spec="/usr/lib"
16322 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16324 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16325 *) need_version=no ;;
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16332 openbsd2.[89] | openbsd2.[89].*)
16333 shlibpath_overrides_runpath=no
16336 shlibpath_overrides_runpath=yes
16340 shlibpath_overrides_runpath=yes
16345 libname_spec='$name'
16348 library_names_spec='$libname${shared_ext} $libname.a'
16349 dynamic_linker='OS/2 ld.exe'
16350 shlibpath_var=LIBPATH
16353 osf3* | osf4* | osf5*)
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=yes
16372 hardcode_into_libs=yes
16373 # ldd complains unless libraries are executable
16374 postinstall_cmds='chmod +x $lib'
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 shlibpath_overrides_runpath=yes
16383 if test "$with_gnu_ld" = yes; then
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 case $host_vendor in
16396 shlibpath_overrides_runpath=no
16398 export_dynamic_flag_spec='${wl}-Blargedynsym'
16399 runpath_var=LD_RUN_PATH
16407 shlibpath_overrides_runpath=no
16408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16414 if test -d /usr/nec ;then
16416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16417 soname_spec='$libname${shared_ext}.$major'
16418 shlibpath_var=LD_LIBRARY_PATH
16422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16423 version_type=freebsd-elf
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 hardcode_into_libs=yes
16430 if test "$with_gnu_ld" = yes; then
16431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16432 shlibpath_overrides_runpath=no
16434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16435 shlibpath_overrides_runpath=yes
16438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16442 sys_lib_dlsearch_path_spec='/usr/lib'
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 soname_spec='${libname}${release}${shared_ext}$major'
16449 shlibpath_var=LD_LIBRARY_PATH
16456 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16457 echo "${ECHO_T}$dynamic_linker" >&6; }
16458 test "$dynamic_linker" = no && can_build_shared=no
16460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16461 if test "$GCC" = yes; then
16462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16465 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16466 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16468 if test -n "$hardcode_libdir_flag_spec" || \
16469 test -n "$runpath_var" || \
16470 test "X$hardcode_automatic" = "Xyes" ; then
16472 # We can hardcode non-existant directories.
16473 if test "$hardcode_direct" != no &&
16474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16475 # have to relink, otherwise we might link with an installed library
16476 # when we should be linking with a yet-to-be-installed one
16477 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16478 test "$hardcode_minus_L" != no; then
16479 # Linking always hardcodes the temporary library directory.
16480 hardcode_action=relink
16482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16483 hardcode_action=immediate
16486 # We cannot hardcode anything, or else we can only hardcode existing
16488 hardcode_action=unsupported
16490 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16491 echo "${ECHO_T}$hardcode_action" >&6; }
16493 if test "$hardcode_action" = relink; then
16494 # Fast installation is not supported
16495 enable_fast_install=no
16496 elif test "$shlibpath_overrides_runpath" = yes ||
16497 test "$enable_shared" = no; then
16498 # Fast installation is not necessary
16499 enable_fast_install=needless
16504 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16505 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16506 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16507 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16508 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16509 { echo "$as_me:$LINENO: result: yes" >&5
16510 echo "${ECHO_T}yes" >&6; }
16512 # FIXME - insert some real tests, host_os isn't really good enough
16515 if test -n "$STRIP" ; then
16516 striplib="$STRIP -x"
16517 { echo "$as_me:$LINENO: result: yes" >&5
16518 echo "${ECHO_T}yes" >&6; }
16520 { echo "$as_me:$LINENO: result: no" >&5
16521 echo "${ECHO_T}no" >&6; }
16525 { echo "$as_me:$LINENO: result: no" >&5
16526 echo "${ECHO_T}no" >&6; }
16531 if test "x$enable_dlopen" != xyes; then
16532 enable_dlopen=unknown
16533 enable_dlopen_self=unknown
16534 enable_dlopen_self_static=unknown
16541 lt_cv_dlopen="load_add_on"
16543 lt_cv_dlopen_self=yes
16547 lt_cv_dlopen="LoadLibrary"
16552 lt_cv_dlopen="dlopen"
16557 # if libdl is installed we need to link against it
16558 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16559 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 ac_check_lib_save_LIBS=$LIBS
16565 cat >conftest.$ac_ext <<_ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16572 /* Override any GCC internal prototype to avoid an error.
16573 Use char because int might match the return type of a GCC
16574 builtin and then its argument prototype would still apply. */
16587 rm -f conftest.$ac_objext conftest$ac_exeext
16588 if { (ac_try="$ac_link"
16589 case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_link") 2>conftest.er1
16596 grep -v '^ *+' conftest.er1 >conftest.err
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602 { (case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_try") 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest$ac_exeext'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_cv_lib_dl_dlopen=yes
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16626 ac_cv_lib_dl_dlopen=no
16629 rm -f core conftest.err conftest.$ac_objext \
16630 conftest$ac_exeext conftest.$ac_ext
16631 LIBS=$ac_check_lib_save_LIBS
16633 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16634 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16635 if test $ac_cv_lib_dl_dlopen = yes; then
16636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16639 lt_cv_dlopen="dyld"
16641 lt_cv_dlopen_self=yes
16648 { echo "$as_me:$LINENO: checking for shl_load" >&5
16649 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16650 if test "${ac_cv_func_shl_load+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16661 #define shl_load innocuous_shl_load
16663 /* System header to define __stub macros and hopefully few prototypes,
16664 which can conflict with char shl_load (); below.
16665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16666 <limits.h> exists even on freestanding compilers. */
16669 # include <limits.h>
16671 # include <assert.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. */
16683 /* The GNU C library defines this for functions which it implements
16684 to always fail with ENOSYS. Some functions are actually named
16685 something starting with __ and the normal name is an alias. */
16686 #if defined __stub_shl_load || defined __stub___shl_load
16693 return shl_load ();
16698 rm -f conftest.$ac_objext conftest$ac_exeext
16699 if { (ac_try="$ac_link"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_link") 2>conftest.er1
16707 grep -v '^ *+' conftest.er1 >conftest.err
16709 cat conftest.err >&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
16712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16713 { (case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_try") 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest$ac_exeext'
16723 { (case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_func_shl_load=yes
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_cv_func_shl_load=no
16740 rm -f core conftest.err conftest.$ac_objext \
16741 conftest$ac_exeext conftest.$ac_ext
16743 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16744 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16745 if test $ac_cv_func_shl_load = yes; then
16746 lt_cv_dlopen="shl_load"
16748 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16749 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16750 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 ac_check_lib_save_LIBS=$LIBS
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16772 return shl_load ();
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_lib_dld_shl_load=yes
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_cv_lib_dld_shl_load=no
16819 rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821 LIBS=$ac_check_lib_save_LIBS
16823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16824 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16825 if test $ac_cv_lib_dld_shl_load = yes; then
16826 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16828 { echo "$as_me:$LINENO: checking for dlopen" >&5
16829 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16830 if test "${ac_cv_func_dlopen+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841 #define dlopen innocuous_dlopen
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char dlopen (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16849 # include <limits.h>
16851 # include <assert.h>
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16863 /* The GNU C library defines this for functions which it implements
16864 to always fail with ENOSYS. Some functions are actually named
16865 something starting with __ and the normal name is an alias. */
16866 #if defined __stub_dlopen || defined __stub___dlopen
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16887 grep -v '^ *+' conftest.er1 >conftest.err
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16893 { (case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_try") 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 ac_cv_func_dlopen=yes
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 ac_cv_func_dlopen=no
16920 rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16923 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16924 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16925 if test $ac_cv_func_dlopen = yes; then
16926 lt_cv_dlopen="dlopen"
16928 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16929 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 ac_check_lib_save_LIBS=$LIBS
16935 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest$ac_exeext'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_lib_dl_dlopen=yes
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 ac_cv_lib_dl_dlopen=no
16999 rm -f core conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17001 LIBS=$ac_check_lib_save_LIBS
17003 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17004 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17005 if test $ac_cv_lib_dl_dlopen = yes; then
17006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17008 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17009 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lsvld $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 /* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_try") 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_lib_svld_dlopen=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_lib_svld_dlopen=no
17079 rm -f core conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17081 LIBS=$ac_check_lib_save_LIBS
17083 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17084 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17085 if test $ac_cv_lib_svld_dlopen = yes; then
17086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17088 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17089 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17090 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 ac_check_lib_save_LIBS=$LIBS
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17102 /* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
17112 return dld_link ();
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (ac_try="$ac_link"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_link") 2>conftest.er1
17126 grep -v '^ *+' conftest.er1 >conftest.err
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17132 { (case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_try") 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_try") 2>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17151 ac_cv_lib_dld_dld_link=yes
17153 echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17156 ac_cv_lib_dld_dld_link=no
17159 rm -f core conftest.err conftest.$ac_objext \
17160 conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17163 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17164 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17165 if test $ac_cv_lib_dld_dld_link = yes; then
17166 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17187 if test "x$lt_cv_dlopen" != xno; then
17193 case $lt_cv_dlopen in
17195 save_CPPFLAGS="$CPPFLAGS"
17196 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17198 save_LDFLAGS="$LDFLAGS"
17199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17202 LIBS="$lt_cv_dlopen_libs $LIBS"
17204 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17205 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17206 if test "${lt_cv_dlopen_self+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 if test "$cross_compiling" = yes; then :
17210 lt_cv_dlopen_self=cross
17212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17213 lt_status=$lt_dlunknown
17214 cat > conftest.$ac_ext <<EOF
17215 #line 17215 "configure"
17216 #include "confdefs.h"
17225 # define LT_DLGLOBAL RTLD_GLOBAL
17228 # define LT_DLGLOBAL DL_GLOBAL
17230 # define LT_DLGLOBAL 0
17234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17235 find out it does not work in some platform. */
17236 #ifndef LT_DLLAZY_OR_NOW
17238 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17241 # define LT_DLLAZY_OR_NOW DL_LAZY
17244 # define LT_DLLAZY_OR_NOW RTLD_NOW
17247 # define LT_DLLAZY_OR_NOW DL_NOW
17249 # define LT_DLLAZY_OR_NOW 0
17257 extern "C" void exit (int);
17260 void fnord() { int i=42;}
17263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17264 int status = $lt_dlunknown;
17268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17269 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17270 /* dlclose (self); */
17278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17283 (./conftest; exit; ) >&5 2>/dev/null
17285 case x$lt_status in
17286 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17287 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17288 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17291 # compilation failed
17292 lt_cv_dlopen_self=no
17299 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17300 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17302 if test "x$lt_cv_dlopen_self" = xyes; then
17303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17304 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17305 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17306 if test "${lt_cv_dlopen_self_static+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 if test "$cross_compiling" = yes; then :
17310 lt_cv_dlopen_self_static=cross
17312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17313 lt_status=$lt_dlunknown
17314 cat > conftest.$ac_ext <<EOF
17315 #line 17315 "configure"
17316 #include "confdefs.h"
17325 # define LT_DLGLOBAL RTLD_GLOBAL
17328 # define LT_DLGLOBAL DL_GLOBAL
17330 # define LT_DLGLOBAL 0
17334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17335 find out it does not work in some platform. */
17336 #ifndef LT_DLLAZY_OR_NOW
17338 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17341 # define LT_DLLAZY_OR_NOW DL_LAZY
17344 # define LT_DLLAZY_OR_NOW RTLD_NOW
17347 # define LT_DLLAZY_OR_NOW DL_NOW
17349 # define LT_DLLAZY_OR_NOW 0
17357 extern "C" void exit (int);
17360 void fnord() { int i=42;}
17363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17364 int status = $lt_dlunknown;
17368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17370 /* dlclose (self); */
17378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17383 (./conftest; exit; ) >&5 2>/dev/null
17385 case x$lt_status in
17386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17391 # compilation failed
17392 lt_cv_dlopen_self_static=no
17399 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17400 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17403 CPPFLAGS="$save_CPPFLAGS"
17404 LDFLAGS="$save_LDFLAGS"
17409 case $lt_cv_dlopen_self in
17410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17411 *) enable_dlopen_self=unknown ;;
17414 case $lt_cv_dlopen_self_static in
17415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17416 *) enable_dlopen_self_static=unknown ;;
17421 # Report which library types will actually be built
17422 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17423 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17424 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17425 echo "${ECHO_T}$can_build_shared" >&6; }
17427 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17428 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17429 test "$can_build_shared" = "no" && enable_shared=no
17431 # On AIX, shared libraries and static libraries use the same namespace, and
17432 # are all built from PIC.
17435 test "$enable_shared" = yes && enable_static=no
17436 if test -n "$RANLIB"; then
17437 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17438 postinstall_cmds='$RANLIB $lib'
17443 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17444 test "$enable_shared" = yes && enable_static=no
17448 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17449 echo "${ECHO_T}$enable_shared" >&6; }
17451 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17452 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17453 # Make sure either enable_shared or enable_static is yes.
17454 test "$enable_shared" = yes || enable_static=yes
17455 { echo "$as_me:$LINENO: result: $enable_static" >&5
17456 echo "${ECHO_T}$enable_static" >&6; }
17458 # The else clause should only fire when bootstrapping the
17459 # libtool distribution, otherwise you forgot to ship ltmain.sh
17460 # with your package, and you will get complaints that there are
17461 # no rules to generate ltmain.sh.
17462 if test -f "$ltmain"; then
17463 # See if we are running on zsh, and set the options which allow our commands through
17464 # without removal of \ escapes.
17465 if test -n "${ZSH_VERSION+set}" ; then
17466 setopt NO_GLOB_SUBST
17468 # Now quote all the things that may contain metacharacters while being
17469 # careful not to overquote the AC_SUBSTed values. We take copies of the
17470 # variables and quote the copies for generation of the libtool script.
17471 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17475 deplibs_check_method reload_flag reload_cmds need_locks \
17476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17477 lt_cv_sys_global_symbol_to_c_name_address \
17478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17479 old_postinstall_cmds old_postuninstall_cmds \
17483 lt_prog_compiler_wl \
17484 lt_prog_compiler_pic \
17485 lt_prog_compiler_static \
17486 lt_prog_compiler_no_builtin_flag \
17487 export_dynamic_flag_spec \
17488 thread_safe_flag_spec \
17489 whole_archive_flag_spec \
17490 enable_shared_with_static_runtimes \
17492 old_archive_from_new_cmds \
17497 compiler_lib_search_path \
17499 archive_expsym_cmds \
17501 postuninstall_cmds \
17502 old_archive_from_expsyms_cmds \
17503 allow_undefined_flag \
17504 no_undefined_flag \
17505 export_symbols_cmds \
17506 hardcode_libdir_flag_spec \
17507 hardcode_libdir_flag_spec_ld \
17508 hardcode_libdir_separator \
17509 hardcode_automatic \
17511 module_expsym_cmds \
17512 lt_cv_prog_compiler_c_o \
17514 include_expsyms; do
17517 old_archive_cmds | \
17518 old_archive_from_new_cmds | \
17520 archive_expsym_cmds | \
17522 module_expsym_cmds | \
17523 old_archive_from_expsyms_cmds | \
17524 export_symbols_cmds | \
17525 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17526 postinstall_cmds | postuninstall_cmds | \
17527 old_postinstall_cmds | old_postuninstall_cmds | \
17528 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17529 # Double-quote double-evaled strings.
17530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17539 *'\$0 --fallback-echo"')
17540 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17544 cfgfile="${ofile}T"
17545 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17547 { echo "$as_me:$LINENO: creating $ofile" >&5
17548 echo "$as_me: creating $ofile" >&6;}
17550 cat <<__EOF__ >> "$cfgfile"
17553 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17554 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17555 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17557 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17558 # Free Software Foundation, Inc.
17560 # This file is part of GNU Libtool:
17561 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17563 # This program is free software; you can redistribute it and/or modify
17564 # it under the terms of the GNU General Public License as published by
17565 # the Free Software Foundation; either version 2 of the License, or
17566 # (at your option) any later version.
17568 # This program is distributed in the hope that it will be useful, but
17569 # WITHOUT ANY WARRANTY; without even the implied warranty of
17570 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17571 # General Public License for more details.
17573 # You should have received a copy of the GNU General Public License
17574 # along with this program; if not, write to the Free Software
17575 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17577 # As a special exception to the GNU General Public License, if you
17578 # distribute this file as part of a program that contains a
17579 # configuration script generated by Autoconf, you may include it under
17580 # the same distribution terms that you use for the rest of that program.
17582 # A sed program that does not truncate output.
17585 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17586 Xsed="$SED -e 1s/^X//"
17588 # The HP-UX ksh and POSIX shell print the target directory to stdout
17589 # if CDPATH is set.
17590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17592 # The names of the tagged configurations supported by this script.
17595 # ### BEGIN LIBTOOL CONFIG
17597 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17599 # Shell to use when invoking shell scripts.
17602 # Whether or not to build shared libraries.
17603 build_libtool_libs=$enable_shared
17605 # Whether or not to build static libraries.
17606 build_old_libs=$enable_static
17608 # Whether or not to add -lc for building shared libraries.
17609 build_libtool_need_lc=$archive_cmds_need_lc
17611 # Whether or not to disallow shared libs when runtime libs are static
17612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17614 # Whether or not to optimize for fast installation.
17615 fast_install=$enable_fast_install
17618 host_alias=$host_alias
17622 # The build system.
17623 build_alias=$build_alias
17627 # An echo program that does not interpret backslashes.
17632 AR_FLAGS=$lt_AR_FLAGS
17637 # LTCC compiler flags.
17638 LTCFLAGS=$lt_LTCFLAGS
17640 # A language-specific compiler.
17643 # Is the compiler the GNU C compiler?
17649 # The linker used to build libraries.
17652 # Whether we need hard or soft links.
17655 # A BSD-compatible nm program.
17658 # A symbol stripping program
17661 # Used to examine libraries when file_magic_cmd begins "file"
17662 MAGIC_CMD=$MAGIC_CMD
17664 # Used on cygwin: DLL creation program.
17667 # Used on cygwin: object dumper.
17670 # Used on cygwin: assembler.
17673 # The name of the directory that contains temporary libtool files.
17676 # How to create reloadable object files.
17677 reload_flag=$lt_reload_flag
17678 reload_cmds=$lt_reload_cmds
17680 # How to pass a linker flag through the compiler.
17681 wl=$lt_lt_prog_compiler_wl
17683 # Object file suffix (normally "o").
17684 objext="$ac_objext"
17686 # Old archive suffix (normally "a").
17689 # Shared library suffix (normally ".so").
17690 shrext_cmds='$shrext_cmds'
17692 # Executable file suffix (normally "").
17695 # Additional compiler flags for building library objects.
17696 pic_flag=$lt_lt_prog_compiler_pic
17699 # What is the maximum length of a command?
17700 max_cmd_len=$lt_cv_sys_max_cmd_len
17702 # Does compiler simultaneously support -c and -o options?
17703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17705 # Must we lock files when doing compilation?
17706 need_locks=$lt_need_locks
17708 # Do we need the lib prefix for modules?
17709 need_lib_prefix=$need_lib_prefix
17711 # Do we need a version for libraries?
17712 need_version=$need_version
17714 # Whether dlopen is supported.
17715 dlopen_support=$enable_dlopen
17717 # Whether dlopen of programs is supported.
17718 dlopen_self=$enable_dlopen_self
17720 # Whether dlopen of statically linked programs is supported.
17721 dlopen_self_static=$enable_dlopen_self_static
17723 # Compiler flag to prevent dynamic linking.
17724 link_static_flag=$lt_lt_prog_compiler_static
17726 # Compiler flag to turn off builtin functions.
17727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17729 # Compiler flag to allow reflexive dlopens.
17730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17732 # Compiler flag to generate shared objects directly from archives.
17733 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17735 # Compiler flag to generate thread-safe objects.
17736 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17738 # Library versioning type.
17739 version_type=$version_type
17741 # Format of library name prefix.
17742 libname_spec=$lt_libname_spec
17744 # List of archive names. First name is the real one, the rest are links.
17745 # The last name is the one that the linker finds with -lNAME.
17746 library_names_spec=$lt_library_names_spec
17748 # The coded name of the library, if different from the real name.
17749 soname_spec=$lt_soname_spec
17751 # Commands used to build and install an old-style archive.
17753 old_archive_cmds=$lt_old_archive_cmds
17754 old_postinstall_cmds=$lt_old_postinstall_cmds
17755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17757 # Create an old-style archive from a shared archive.
17758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17760 # Create a temporary old-style archive to link instead of a shared archive.
17761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17763 # Commands used to build and install a shared archive.
17764 archive_cmds=$lt_archive_cmds
17765 archive_expsym_cmds=$lt_archive_expsym_cmds
17766 postinstall_cmds=$lt_postinstall_cmds
17767 postuninstall_cmds=$lt_postuninstall_cmds
17769 # Commands used to build a loadable module (assumed same as above if empty)
17770 module_cmds=$lt_module_cmds
17771 module_expsym_cmds=$lt_module_expsym_cmds
17773 # Commands to strip libraries.
17774 old_striplib=$lt_old_striplib
17775 striplib=$lt_striplib
17777 # Dependencies to place before the objects being linked to create a
17779 predep_objects=$lt_predep_objects
17781 # Dependencies to place after the objects being linked to create a
17783 postdep_objects=$lt_postdep_objects
17785 # Dependencies to place before the objects being linked to create a
17787 predeps=$lt_predeps
17789 # Dependencies to place after the objects being linked to create a
17791 postdeps=$lt_postdeps
17793 # The library search path used internally by the compiler when linking
17794 # a shared library.
17795 compiler_lib_search_path=$lt_compiler_lib_search_path
17797 # Method to check whether dependent libraries are shared objects.
17798 deplibs_check_method=$lt_deplibs_check_method
17800 # Command to use when deplibs_check_method == file_magic.
17801 file_magic_cmd=$lt_file_magic_cmd
17803 # Flag that allows shared libraries with undefined symbols to be built.
17804 allow_undefined_flag=$lt_allow_undefined_flag
17806 # Flag that forces no undefined symbols.
17807 no_undefined_flag=$lt_no_undefined_flag
17809 # Commands used to finish a libtool library installation in a directory.
17810 finish_cmds=$lt_finish_cmds
17812 # Same as above, but a single script fragment to be evaled but not shown.
17813 finish_eval=$lt_finish_eval
17815 # Take the output of nm and produce a listing of raw symbols and C names.
17816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17818 # Transform the output of nm in a proper C declaration
17819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17821 # Transform the output of nm in a C name address pair
17822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17824 # This is the shared library runtime path variable.
17825 runpath_var=$runpath_var
17827 # This is the shared library path variable.
17828 shlibpath_var=$shlibpath_var
17830 # Is shlibpath searched before the hard-coded library search path?
17831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17833 # How to hardcode a shared library path into an executable.
17834 hardcode_action=$hardcode_action
17836 # Whether we should hardcode library paths into libraries.
17837 hardcode_into_libs=$hardcode_into_libs
17839 # Flag to hardcode \$libdir into a binary during linking.
17840 # This must work even if \$libdir does not exist.
17841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17843 # If ld is used when linking, flag to hardcode \$libdir into
17844 # a binary during linking. This must work even if \$libdir does
17846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17848 # Whether we need a single -rpath flag with a separated argument.
17849 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17852 # resulting binary.
17853 hardcode_direct=$hardcode_direct
17855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17856 # resulting binary.
17857 hardcode_minus_L=$hardcode_minus_L
17859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17860 # the resulting binary.
17861 hardcode_shlibpath_var=$hardcode_shlibpath_var
17863 # Set to yes if building a shared library automatically hardcodes DIR into the library
17864 # and all subsequent libraries and executables linked against it.
17865 hardcode_automatic=$hardcode_automatic
17867 # Variables whose values should be saved in libtool wrapper scripts and
17868 # restored at relink time.
17869 variables_saved_for_relink="$variables_saved_for_relink"
17871 # Whether libtool must link a program against all its dependency libraries.
17872 link_all_deplibs=$link_all_deplibs
17874 # Compile-time system search path for libraries
17875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17877 # Run-time system search path for libraries
17878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17880 # Fix the shell variable \$srcfile for the compiler.
17881 fix_srcfile_path="$fix_srcfile_path"
17883 # Set to yes if exported symbols are required.
17884 always_export_symbols=$always_export_symbols
17886 # The commands to list exported symbols.
17887 export_symbols_cmds=$lt_export_symbols_cmds
17889 # The commands to extract the exported symbol list from a shared archive.
17890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17892 # Symbols that should not be listed in the preloaded symbols.
17893 exclude_expsyms=$lt_exclude_expsyms
17895 # Symbols that must always be exported.
17896 include_expsyms=$lt_include_expsyms
17898 # ### END LIBTOOL CONFIG
17905 cat <<\EOF >> "$cfgfile"
17907 # AIX sometimes has problems with the GCC collect2 program. For some
17908 # reason, if we set the COLLECT_NAMES environment variable, the problems
17909 # vanish in a puff of smoke.
17910 if test "X${COLLECT_NAMES+set}" != Xset; then
17912 export COLLECT_NAMES
17918 # We use sed instead of cat because bash on DJGPP gets confused if
17919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17920 # text mode, it properly converts lines to CR/LF. This bash problem
17921 # is reportedly fixed, but why not run on old versions too?
17922 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17924 mv -f "$cfgfile" "$ofile" || \
17925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17929 # If there is no Makefile yet, we rely on a make rule to execute
17930 # `config.status --recheck' to rerun these tests and create the
17931 # libtool script then.
17932 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17933 if test -f "$ltmain_in"; then
17934 test -f Makefile && make "$ltmain"
17940 ac_cpp='$CPP $CPPFLAGS'
17941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17948 # Check whether --with-tags was given.
17949 if test "${with_tags+set}" = set; then
17950 withval=$with_tags; tagnames="$withval"
17954 if test -f "$ltmain" && test -n "$tagnames"; then
17955 if test ! -f "${ofile}"; then
17956 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17957 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17960 if test -z "$LTCC"; then
17961 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17962 if test -z "$LTCC"; then
17963 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17964 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17966 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17967 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17970 if test -z "$LTCFLAGS"; then
17971 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17974 # Extract list of available tagged configurations in $ofile.
17975 # Note that this assumes the entire list is on one line.
17976 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17979 for tagname in $tagnames; do
17981 # Check whether tagname contains only valid characters
17982 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17984 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17985 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17986 { (exit 1); exit 1; }; }
17990 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17992 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17993 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17994 { (exit 1); exit 1; }; }
17997 # Update the list of available tags.
17998 if test -n "$tagname"; then
17999 echo appending configuration tag \"$tagname\" to $ofile
18003 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18004 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18005 (test "X$CXX" != "Xg++"))) ; then
18007 ac_cpp='$CXXCPP $CPPFLAGS'
18008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18015 archive_cmds_need_lc_CXX=no
18016 allow_undefined_flag_CXX=
18017 always_export_symbols_CXX=no
18018 archive_expsym_cmds_CXX=
18019 export_dynamic_flag_spec_CXX=
18020 hardcode_direct_CXX=no
18021 hardcode_libdir_flag_spec_CXX=
18022 hardcode_libdir_flag_spec_ld_CXX=
18023 hardcode_libdir_separator_CXX=
18024 hardcode_minus_L_CXX=no
18025 hardcode_shlibpath_var_CXX=unsupported
18026 hardcode_automatic_CXX=no
18028 module_expsym_cmds_CXX=
18029 link_all_deplibs_CXX=unknown
18030 old_archive_cmds_CXX=$old_archive_cmds
18031 no_undefined_flag_CXX=
18032 whole_archive_flag_spec_CXX=
18033 enable_shared_with_static_runtimes_CXX=no
18035 # Dependencies to place before and after the object being linked:
18036 predep_objects_CXX=
18037 postdep_objects_CXX=
18040 compiler_lib_search_path_CXX=
18042 # Source file extension for C++ test sources.
18045 # Object file extension for compiled C++ test sources.
18049 # Code to be used in simple compile tests
18050 lt_simple_compile_test_code="int some_variable = 0;\n"
18052 # Code to be used in simple link tests
18053 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18057 # If no C compiler was specified, use CC.
18060 # If no C compiler flags were specified, use CFLAGS.
18061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18063 # Allow CC to be a program name with arguments.
18067 # save warnings/boilerplate of simple test code
18068 ac_outfile=conftest.$ac_objext
18069 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18071 _lt_compiler_boilerplate=`cat conftest.err`
18074 ac_outfile=conftest.$ac_objext
18075 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18077 _lt_linker_boilerplate=`cat conftest.err`
18081 # Allow CC to be a program name with arguments.
18086 lt_save_with_gnu_ld=$with_gnu_ld
18087 lt_save_path_LD=$lt_cv_path_LD
18088 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18089 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18091 $as_unset lt_cv_prog_gnu_ld
18093 if test -n "${lt_cv_path_LDCXX+set}"; then
18094 lt_cv_path_LD=$lt_cv_path_LDCXX
18096 $as_unset lt_cv_path_LD
18098 test -z "${LDCXX+set}" || LD=$LDCXX
18102 for cc_temp in $compiler""; do
18104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18113 # We don't want -fno-exception wen compiling C++ code, so set the
18114 # no_builtin_flag separately
18115 if test "$GXX" = yes; then
18116 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18118 lt_prog_compiler_no_builtin_flag_CXX=
18121 if test "$GXX" = yes; then
18122 # Set up default GNU C++ configuration
18125 # Check whether --with-gnu-ld was given.
18126 if test "${with_gnu_ld+set}" = set; then
18127 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18133 if test "$GCC" = yes; then
18134 # Check if gcc -print-prog-name=ld gives a path.
18135 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18136 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18139 # gcc leaves a trailing carriage return which upsets mingw
18140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18145 # Accept absolute paths.
18147 re_direlt='/[^/][^/]*/\.\./'
18148 # Canonicalize the pathname of ld
18149 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18151 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18153 test -z "$LD" && LD="$ac_prog"
18156 # If it fails, then pretend we aren't using GCC.
18160 # If it is relative, then search for the first ld in PATH.
18161 with_gnu_ld=unknown
18164 elif test "$with_gnu_ld" = yes; then
18165 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18166 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18168 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18169 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18171 if test "${lt_cv_path_LD+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 if test -z "$LD"; then
18175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18176 for ac_dir in $PATH; do
18178 test -z "$ac_dir" && ac_dir=.
18179 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18180 lt_cv_path_LD="$ac_dir/$ac_prog"
18181 # Check to see if the program is GNU ld. I'd rather use --version,
18182 # but apparently some variants of GNU ld only accept -v.
18183 # Break only if it was the GNU/non-GNU ld that we prefer.
18184 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18185 *GNU* | *'with BFD'*)
18186 test "$with_gnu_ld" != no && break
18189 test "$with_gnu_ld" != yes && break
18196 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18200 LD="$lt_cv_path_LD"
18201 if test -n "$LD"; then
18202 { echo "$as_me:$LINENO: result: $LD" >&5
18203 echo "${ECHO_T}$LD" >&6; }
18205 { echo "$as_me:$LINENO: result: no" >&5
18206 echo "${ECHO_T}no" >&6; }
18208 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18209 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18210 { (exit 1); exit 1; }; }
18211 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18212 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18213 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18217 case `$LD -v 2>&1 </dev/null` in
18218 *GNU* | *'with BFD'*)
18219 lt_cv_prog_gnu_ld=yes
18222 lt_cv_prog_gnu_ld=no
18226 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18227 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18228 with_gnu_ld=$lt_cv_prog_gnu_ld
18232 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18233 # archiving commands below assume that GNU ld is being used.
18234 if test "$with_gnu_ld" = yes; then
18235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18236 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'
18238 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18239 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18241 # If archive_cmds runs LD, not CC, wlarc should be empty
18242 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18243 # investigate it a little bit more. (MM)
18246 # ancient GNU ld didn't support --whole-archive et. al.
18247 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18248 grep 'no-whole-archive' > /dev/null; then
18249 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18251 whole_archive_flag_spec_CXX=
18257 # A generic and very simple default shared library creation
18258 # command for GNU C++ for the case where it uses the native
18259 # linker, instead of GNU ld. If possible, this setting should
18260 # overridden to take advantage of the native linker features on
18261 # the platform it is being used on.
18262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18265 # Commands to make compiler produce verbose output that lists
18266 # what "hidden" libraries, object files and flags are used when
18267 # linking a shared library.
18268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18276 # PORTME: fill in a description of your system's C++ link characteristics
18277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18282 # FIXME: insert proper C++ library support
18286 if test "$host_cpu" = ia64; then
18287 # On IA64, the linker does run time linking by default, so we don't
18288 # have to do anything special.
18289 aix_use_runtimelinking=no
18290 exp_sym_flag='-Bexport'
18293 aix_use_runtimelinking=no
18295 # Test if we are trying to use run time linking or normal
18296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18297 # need to do runtime linking.
18298 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18299 for ld_flag in $LDFLAGS; do
18302 aix_use_runtimelinking=yes
18310 exp_sym_flag='-bexport'
18311 no_entry_flag='-bnoentry'
18314 # When large executables or shared objects are built, AIX ld can
18315 # have problems creating the table of contents. If linking a library
18316 # or program results in "error TOC overflow" add -mminimal-toc to
18317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18320 archive_cmds_CXX=''
18321 hardcode_direct_CXX=yes
18322 hardcode_libdir_separator_CXX=':'
18323 link_all_deplibs_CXX=yes
18325 if test "$GXX" = yes; then
18326 case $host_os in aix4.[012]|aix4.[012].*)
18327 # We only want to do this on AIX 4.2 and lower, the check
18328 # below for broken collect2 doesn't work under 4.3+
18329 collect2name=`${CC} -print-prog-name=collect2`
18330 if test -f "$collect2name" && \
18331 strings "$collect2name" | grep resolve_lib_name >/dev/null
18333 # We have reworked collect2
18334 hardcode_direct_CXX=yes
18336 # We have old collect2
18337 hardcode_direct_CXX=unsupported
18338 # It fails to find uninstalled libraries when the uninstalled
18339 # path is not listed in the libpath. Setting hardcode_minus_L
18340 # to unsupported forces relinking
18341 hardcode_minus_L_CXX=yes
18342 hardcode_libdir_flag_spec_CXX='-L$libdir'
18343 hardcode_libdir_separator_CXX=
18347 shared_flag='-shared'
18348 if test "$aix_use_runtimelinking" = yes; then
18349 shared_flag="$shared_flag "'${wl}-G'
18353 if test "$host_cpu" = ia64; then
18354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18355 # chokes on -Wl,-G. The following line is correct:
18358 if test "$aix_use_runtimelinking" = yes; then
18359 shared_flag='${wl}-G'
18361 shared_flag='${wl}-bM:SRE'
18366 # It seems that -bexpall does not export symbols beginning with
18367 # underscore (_), so it is better to generate a list of symbols to export.
18368 always_export_symbols_CXX=yes
18369 if test "$aix_use_runtimelinking" = yes; then
18370 # Warning - without using the other runtime loading flags (-brtl),
18371 # -berok will link without error, but may produce a broken library.
18372 allow_undefined_flag_CXX='-berok'
18373 # Determine the default libpath from the value encoded in an empty executable.
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (ac_try="$ac_link"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_link") 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18404 { (case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_try") 2>&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; } &&
18413 { ac_try='test -s conftest$ac_exeext'
18414 { (case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_try") 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18426 # Check for a 64-bit object if we didn't find anything.
18427 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; }
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18436 rm -f core conftest.err conftest.$ac_objext \
18437 conftest$ac_exeext conftest.$ac_ext
18438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18440 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18442 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"
18444 if test "$host_cpu" = ia64; then
18445 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18446 allow_undefined_flag_CXX="-z nodefs"
18447 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"
18449 # Determine the default libpath from the value encoded in an empty executable.
18450 cat >conftest.$ac_ext <<_ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (ac_try="$ac_link"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_link") 2>conftest.er1
18474 grep -v '^ *+' conftest.er1 >conftest.err
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
18479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18480 { (case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_try") 2>&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; } &&
18489 { ac_try='test -s conftest$ac_exeext'
18490 { (case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495 (eval "$ac_try") 2>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; }; then
18500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18502 # Check for a 64-bit object if we didn't find anything.
18503 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; }
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18516 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18517 # Warning - without using the other run time loading flags,
18518 # -berok will link without error, but may produce a broken library.
18519 no_undefined_flag_CXX=' ${wl}-bernotok'
18520 allow_undefined_flag_CXX=' ${wl}-berok'
18521 # Exported symbols can be pulled into shared objects from archives
18522 whole_archive_flag_spec_CXX='$convenience'
18523 archive_cmds_need_lc_CXX=yes
18524 # This is similar to how AIX traditionally builds its shared libraries.
18525 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'
18531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18532 allow_undefined_flag_CXX=unsupported
18533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18534 # support --undefined. This deserves some investigation. FIXME
18535 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18542 case $cc_basename in
18544 # FIXME: insert proper C++ library support
18550 cygwin* | mingw* | pw32*)
18551 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18552 # as there is no search path for DLLs.
18553 hardcode_libdir_flag_spec_CXX='-L$libdir'
18554 allow_undefined_flag_CXX=unsupported
18555 always_export_symbols_CXX=no
18556 enable_shared_with_static_runtimes_CXX=yes
18558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18559 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'
18560 # If the export-symbols file already is a .def file (1st line
18561 # is EXPORTS), use it as is; otherwise, prepend...
18562 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18563 cp $export_symbols $output_objdir/$soname.def;
18565 echo EXPORTS > $output_objdir/$soname.def;
18566 cat $export_symbols >> $output_objdir/$soname.def;
18568 $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'
18573 darwin* | rhapsody*)
18575 rhapsody* | darwin1.[012])
18576 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18580 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18582 case ${MACOSX_DEPLOYMENT_TARGET} in
18584 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18587 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18593 archive_cmds_need_lc_CXX=no
18594 hardcode_direct_CXX=no
18595 hardcode_automatic_CXX=yes
18596 hardcode_shlibpath_var_CXX=unsupported
18597 whole_archive_flag_spec_CXX=''
18598 link_all_deplibs_CXX=yes
18600 if test "$GXX" = yes ; then
18601 lt_int_apple_cc_single_mod=no
18602 output_verbose_link_cmd='echo'
18603 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18604 lt_int_apple_cc_single_mod=yes
18606 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18607 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18609 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'
18611 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18613 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18614 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}'
18616 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}'
18618 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}'
18620 case $cc_basename in
18622 output_verbose_link_cmd='echo'
18623 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'
18624 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18626 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}'
18627 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}'
18637 case $cc_basename in
18639 # FIXME: insert proper C++ library support
18643 # Green Hills C++ Compiler
18644 # FIXME: insert proper C++ library support
18648 # FIXME: insert proper C++ library support
18654 # C++ shared libraries reported to be fairly broken before switch to ELF
18658 archive_cmds_need_lc_CXX=no
18660 freebsd* | kfreebsd*-gnu | dragonfly*)
18661 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18669 hardcode_libdir_separator_CXX=:
18670 export_dynamic_flag_spec_CXX='${wl}-E'
18671 hardcode_direct_CXX=yes
18672 hardcode_minus_L_CXX=yes # Not in the search PATH,
18673 # but as the default
18674 # location of the library.
18676 case $cc_basename in
18678 # FIXME: insert proper C++ library support
18682 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'
18683 # Commands to make compiler produce verbose output that lists
18684 # what "hidden" libraries, object files and flags are used when
18685 # linking a shared library.
18687 # There doesn't appear to be a way to prevent this compiler from
18688 # explicitly linking system object files so we need to strip them
18689 # from the output so that they don't get included in the library
18691 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'
18694 if test "$GXX" = yes; then
18695 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'
18697 # FIXME: insert proper C++ library support
18704 if test $with_gnu_ld = no; then
18705 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18706 hardcode_libdir_separator_CXX=:
18710 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18713 export_dynamic_flag_spec_CXX='${wl}-E'
18719 hardcode_direct_CXX=no
18720 hardcode_shlibpath_var_CXX=no
18723 hardcode_direct_CXX=yes
18724 hardcode_minus_L_CXX=yes # Not in the search PATH,
18725 # but as the default
18726 # location of the library.
18730 case $cc_basename in
18732 # FIXME: insert proper C++ library support
18738 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18741 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18744 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18747 # Commands to make compiler produce verbose output that lists
18748 # what "hidden" libraries, object files and flags are used when
18749 # linking a shared library.
18751 # There doesn't appear to be a way to prevent this compiler from
18752 # explicitly linking system object files so we need to strip them
18753 # from the output so that they don't get included in the library
18755 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'
18758 if test "$GXX" = yes; then
18759 if test $with_gnu_ld = no; then
18762 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18765 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18768 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'
18773 # FIXME: insert proper C++ library support
18780 hardcode_direct_CXX=no
18781 hardcode_shlibpath_var_CXX=no
18782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18783 export_dynamic_flag_spec_CXX='${wl}-E'
18784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18785 # Instead, shared libraries are loaded at an image base (0x10000000 by
18786 # default) and relocated if they conflict, which is a slow very memory
18787 # consuming and fragmenting process. To avoid this, we pick a random,
18788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18790 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'
18791 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'
18794 case $cc_basename in
18797 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'
18799 # Archives containing C++ object files must be created using
18800 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18801 # necessary to make sure instantiated templates are included
18803 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18806 if test "$GXX" = yes; then
18807 if test "$with_gnu_ld" = no; then
18808 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'
18810 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'
18813 link_all_deplibs_CXX=yes
18816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18817 hardcode_libdir_separator_CXX=:
18820 case $cc_basename in
18822 # Kuck and Associates, Inc. (KAI) C++ Compiler
18824 # KCC will only create a shared library if the output file
18825 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18826 # to its proper name (with version) after linking.
18827 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'
18828 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'
18829 # Commands to make compiler produce verbose output that lists
18830 # what "hidden" libraries, object files and flags are used when
18831 # linking a shared library.
18833 # There doesn't appear to be a way to prevent this compiler from
18834 # explicitly linking system object files so we need to strip them
18835 # from the output so that they don't get included in the library
18837 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'
18839 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18842 # Archives containing C++ object files must be created using
18843 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18844 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18849 # version 8.0 and above of icpc choke on multiply defined symbols
18850 # if we add $predep_objects and $postdep_objects, however 7.1 and
18851 # earlier do not add the objects themselves.
18852 case `$CC -V 2>&1` in
18854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18855 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'
18857 *) # Version 8.0 or newer
18860 ia64*) tmp_idyn=' -i_dynamic';;
18862 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18863 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'
18866 archive_cmds_need_lc_CXX=no
18867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18869 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18872 # Portland Group C++ compiler
18873 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18874 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'
18876 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18877 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18878 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'
18882 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18883 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'
18885 runpath_var=LD_RUN_PATH
18886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18887 hardcode_libdir_separator_CXX=:
18889 # Commands to make compiler produce verbose output that lists
18890 # what "hidden" libraries, object files and flags are used when
18891 # linking a shared library.
18893 # There doesn't appear to be a way to prevent this compiler from
18894 # explicitly linking system object files so we need to strip them
18895 # from the output so that they don't get included in the library
18897 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'
18902 # FIXME: insert proper C++ library support
18906 # FIXME: insert proper C++ library support
18910 case $cc_basename in
18912 # FIXME: insert proper C++ library support
18916 # FIXME: insert proper C++ library support
18922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18923 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18925 hardcode_libdir_flag_spec_CXX='-R$libdir'
18926 hardcode_direct_CXX=yes
18927 hardcode_shlibpath_var_CXX=no
18929 # Workaround some broken pre-1.5 toolchains
18930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18933 # C++ shared libraries are fairly broken
18937 hardcode_direct_CXX=yes
18938 hardcode_shlibpath_var_CXX=no
18939 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18942 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18943 export_dynamic_flag_spec_CXX='${wl}-E'
18944 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18946 output_verbose_link_cmd='echo'
18949 case $cc_basename in
18951 # Kuck and Associates, Inc. (KAI) C++ Compiler
18953 # KCC will only create a shared library if the output file
18954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18955 # to its proper name (with version) after linking.
18956 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'
18958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18959 hardcode_libdir_separator_CXX=:
18961 # Archives containing C++ object files must be created using
18962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18967 # Rational C++ 2.4.1
18968 # FIXME: insert proper C++ library support
18972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18973 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'
18975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18976 hardcode_libdir_separator_CXX=:
18978 # Commands to make compiler produce verbose output that lists
18979 # what "hidden" libraries, object files and flags are used when
18980 # linking a shared library.
18982 # There doesn't appear to be a way to prevent this compiler from
18983 # explicitly linking system object files so we need to strip them
18984 # from the output so that they don't get included in the library
18986 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'
18989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18991 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'
18993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18994 hardcode_libdir_separator_CXX=:
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19002 # FIXME: insert proper C++ library support
19009 case $cc_basename in
19011 # Kuck and Associates, Inc. (KAI) C++ Compiler
19013 # KCC will only create a shared library if the output file
19014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19015 # to its proper name (with version) after linking.
19016 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'
19018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19019 hardcode_libdir_separator_CXX=:
19021 # Archives containing C++ object files must be created using
19022 # the KAI C++ compiler.
19023 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19026 # Rational C++ 2.4.1
19027 # FIXME: insert proper C++ library support
19031 allow_undefined_flag_CXX=' -expect_unresolved \*'
19032 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'
19033 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19034 echo "-hidden">> $lib.exp~
19035 $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~
19038 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19039 hardcode_libdir_separator_CXX=:
19041 # Commands to make compiler produce verbose output that lists
19042 # what "hidden" libraries, object files and flags are used when
19043 # linking a shared library.
19045 # There doesn't appear to be a way to prevent this compiler from
19046 # explicitly linking system object files so we need to strip them
19047 # from the output so that they don't get included in the library
19049 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'
19052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19053 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19054 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'
19056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19057 hardcode_libdir_separator_CXX=:
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19065 # FIXME: insert proper C++ library support
19072 # FIXME: insert proper C++ library support
19076 case $cc_basename in
19079 # FIXME: insert proper C++ library support
19084 # FIXME: insert proper C++ library support
19088 # FIXME: insert proper C++ library support
19094 case $cc_basename in
19096 # Sun C++ 4.2, 5.x and Centerline C++
19097 archive_cmds_need_lc_CXX=yes
19098 no_undefined_flag_CXX=' -zdefs'
19099 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19100 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19101 $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'
19103 hardcode_libdir_flag_spec_CXX='-R$libdir'
19104 hardcode_shlibpath_var_CXX=no
19106 solaris2.[0-5] | solaris2.[0-5].*) ;;
19108 # The C++ compiler is used as linker so we must use $wl
19109 # flag to pass the commands to the underlying system
19110 # linker. We must also pass each convience library through
19111 # to the system linker between allextract/defaultextract.
19112 # The C++ compiler will combine linker options so we
19113 # cannot just pass the convience library names through
19115 # Supported since Solaris 2.6 (maybe 2.5.1?)
19116 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'
19119 link_all_deplibs_CXX=yes
19121 output_verbose_link_cmd='echo'
19123 # Archives containing C++ object files must be created using
19124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19125 # necessary to make sure instantiated templates are included
19127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19130 # Green Hills C++ Compiler
19131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19133 # The C++ compiler must be used to create the archive.
19134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19137 # GNU C++ compiler with Solaris linker
19138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19140 if $CC --version | grep -v '^2\.7' > /dev/null; then
19141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19142 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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.
19148 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19153 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19156 # Commands to make compiler produce verbose output that lists
19157 # what "hidden" libraries, object files and flags are used when
19158 # linking a shared library.
19159 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19168 no_undefined_flag_CXX='${wl}-z,text'
19169 archive_cmds_need_lc_CXX=no
19170 hardcode_shlibpath_var_CXX=no
19171 runpath_var='LD_RUN_PATH'
19173 case $cc_basename in
19175 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19176 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19179 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19180 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19184 sysv5* | sco3.2v5* | sco5v6*)
19185 # Note: We can NOT use -z defs as we might desire, because we do not
19186 # link with -lc, and that would cause any symbols used from libc to
19187 # always be unresolved, which means just about no library would
19188 # ever link correctly. If we're not using GNU ld we use -z text
19189 # though, which does catch some bad symbols but isn't as heavy-handed
19191 # For security reasons, it is highly recommended that you always
19192 # use absolute paths for naming shared libraries, and exclude the
19193 # DT_RUNPATH tag from executables and libraries. But doing so
19194 # requires that you compile everything twice, which is a pain.
19195 # So that behaviour is only enabled if SCOABSPATH is set to a
19196 # non-empty value in the environment. Most likely only useful for
19197 # creating official distributions of packages.
19198 # This is a hack until libtool officially supports absolute path
19199 # names for shared libraries.
19200 no_undefined_flag_CXX='${wl}-z,text'
19201 allow_undefined_flag_CXX='${wl}-z,nodefs'
19202 archive_cmds_need_lc_CXX=no
19203 hardcode_shlibpath_var_CXX=no
19204 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19205 hardcode_libdir_separator_CXX=':'
19206 link_all_deplibs_CXX=yes
19207 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19208 runpath_var='LD_RUN_PATH'
19210 case $cc_basename in
19212 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19213 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19216 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19217 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19222 case $cc_basename in
19224 # NonStop-UX NCC 3.20
19225 # FIXME: insert proper C++ library support
19229 # FIXME: insert proper C++ library support
19235 # FIXME: insert proper C++ library support
19239 # FIXME: insert proper C++ library support
19243 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19245 test "$ld_shlibs_CXX" = no && can_build_shared=no
19251 cat > conftest.$ac_ext <<EOF
19255 Foo (void) { a = 0; }
19261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19262 (eval $ac_compile) 2>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; then
19266 # Parse the compiler output and extract the necessary
19267 # objects, libraries and library flags.
19269 # Sentinel used to keep track of whether or not we are before
19270 # the conftest object file.
19271 pre_test_object_deps_done=no
19273 # The `*' in the case matches for architectures that use `case' in
19274 # $output_verbose_cmd can trigger glob expansion during the loop
19275 # eval without this substitution.
19276 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19278 for p in `eval $output_verbose_link_cmd`; do
19282 # Some compilers place space between "-{L,R}" and the path.
19283 # Remove the space.
19284 if test $p = "-L" \
19285 || test $p = "-R"; then
19292 if test "$pre_test_object_deps_done" = no; then
19295 # Internal compiler library paths should come after those
19296 # provided the user. The postdeps already come after the
19297 # user supplied libs so there is no need to process them.
19298 if test -z "$compiler_lib_search_path_CXX"; then
19299 compiler_lib_search_path_CXX="${prev}${p}"
19301 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19304 # The "-l" case would never come before the object being
19305 # linked, so don't bother handling this case.
19308 if test -z "$postdeps_CXX"; then
19309 postdeps_CXX="${prev}${p}"
19311 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19317 # This assumes that the test object file only shows up
19318 # once in the compiler output.
19319 if test "$p" = "conftest.$objext"; then
19320 pre_test_object_deps_done=yes
19324 if test "$pre_test_object_deps_done" = no; then
19325 if test -z "$predep_objects_CXX"; then
19326 predep_objects_CXX="$p"
19328 predep_objects_CXX="$predep_objects_CXX $p"
19331 if test -z "$postdep_objects_CXX"; then
19332 postdep_objects_CXX="$p"
19334 postdep_objects_CXX="$postdep_objects_CXX $p"
19339 *) ;; # Ignore the rest.
19347 echo "libtool.m4: error: problem compiling CXX test program"
19350 $rm -f confest.$objext
19352 # PORTME: override above test on systems where it is broken
19355 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19356 # hack all around it, let's just trust "g++" to DTRT.
19357 predep_objects_CXX=
19358 postdep_objects_CXX=
19363 case $cc_basename in
19365 # Adding this requires a known-good setup of shared libraries for
19366 # Sun compiler versions before 5.6, else PIC objects from an old
19367 # archive will be linked into the output, leading to subtle bugs.
19368 postdeps_CXX='-lCstd -lCrun'
19375 case " $postdeps_CXX " in
19376 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19379 lt_prog_compiler_wl_CXX=
19380 lt_prog_compiler_pic_CXX=
19381 lt_prog_compiler_static_CXX=
19383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19386 # C++ specific cases for pic, static, wl, etc.
19387 if test "$GXX" = yes; then
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 lt_prog_compiler_static_CXX='-static'
19393 # All AIX code is PIC.
19394 if test "$host_cpu" = ia64; then
19395 # AIX 5 now supports IA64 processor
19396 lt_prog_compiler_static_CXX='-Bstatic'
19400 # FIXME: we need at least 68020 code to build shared libraries, but
19401 # adding the `-m68020' flag to GCC prevents building anything better,
19403 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19405 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19406 # PIC is the default for these OSes.
19408 mingw* | os2* | pw32*)
19409 # This hack is so that the source file can tell whether it is being
19410 # built for inclusion in a dll (and should export symbols for example).
19411 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19413 darwin* | rhapsody*)
19414 # PIC is the default on this platform
19415 # Common symbols not allowed in MH_DYLIB files
19416 lt_prog_compiler_pic_CXX='-fno-common'
19419 # DJGPP does not support shared libraries at all
19420 lt_prog_compiler_pic_CXX=
19423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19424 # Instead, we relocate shared libraries at runtime.
19427 if test -d /usr/nec; then
19428 lt_prog_compiler_pic_CXX=-Kconform_pic
19432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19433 # not for PA HP-UX.
19438 lt_prog_compiler_pic_CXX='-fPIC'
19443 lt_prog_compiler_pic_CXX='-fPIC'
19449 # All AIX code is PIC.
19450 if test "$host_cpu" = ia64; then
19451 # AIX 5 now supports IA64 processor
19452 lt_prog_compiler_static_CXX='-Bstatic'
19454 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19458 case $cc_basename in
19460 # Green Hills C++ Compiler
19461 # _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"
19466 # PIC is the default on this platform
19467 # Common symbols not allowed in MH_DYLIB files
19468 case $cc_basename in
19470 lt_prog_compiler_pic_CXX='-qnocommon'
19471 lt_prog_compiler_wl_CXX='-Wl,'
19476 case $cc_basename in
19478 lt_prog_compiler_pic_CXX='-KPIC'
19481 # Green Hills C++ Compiler
19482 lt_prog_compiler_pic_CXX='-pic'
19488 freebsd* | kfreebsd*-gnu | dragonfly*)
19489 # FreeBSD uses GNU C++
19491 hpux9* | hpux10* | hpux11*)
19492 case $cc_basename in
19494 lt_prog_compiler_wl_CXX='-Wl,'
19495 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19496 if test "$host_cpu" != ia64; then
19497 lt_prog_compiler_pic_CXX='+Z'
19501 lt_prog_compiler_wl_CXX='-Wl,'
19502 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19508 lt_prog_compiler_pic_CXX='+Z'
19517 # This is c89, which is MS Visual C++ (no shared libs)
19518 # Anyone wants to do a port?
19520 irix5* | irix6* | nonstopux*)
19521 case $cc_basename in
19523 lt_prog_compiler_wl_CXX='-Wl,'
19524 lt_prog_compiler_static_CXX='-non_shared'
19525 # CC pic flag -KPIC is the default.
19532 case $cc_basename in
19535 lt_prog_compiler_wl_CXX='--backend -Wl,'
19536 lt_prog_compiler_pic_CXX='-fPIC'
19540 lt_prog_compiler_wl_CXX='-Wl,'
19541 lt_prog_compiler_pic_CXX='-KPIC'
19542 lt_prog_compiler_static_CXX='-static'
19545 # Portland Group C++ compiler.
19546 lt_prog_compiler_wl_CXX='-Wl,'
19547 lt_prog_compiler_pic_CXX='-fpic'
19548 lt_prog_compiler_static_CXX='-Bstatic'
19552 # Make sure the PIC flag is empty. It appears that all Alpha
19553 # Linux and Compaq Tru64 Unix objects are PIC.
19554 lt_prog_compiler_pic_CXX=
19555 lt_prog_compiler_static_CXX='-non_shared'
19566 case $cc_basename in
19568 lt_prog_compiler_pic_CXX='-W c,exportall'
19576 osf3* | osf4* | osf5*)
19577 case $cc_basename in
19579 lt_prog_compiler_wl_CXX='--backend -Wl,'
19582 # Rational C++ 2.4.1
19583 lt_prog_compiler_pic_CXX='-pic'
19586 # Digital/Compaq C++
19587 lt_prog_compiler_wl_CXX='-Wl,'
19588 # Make sure the PIC flag is empty. It appears that all Alpha
19589 # Linux and Compaq Tru64 Unix objects are PIC.
19590 lt_prog_compiler_pic_CXX=
19591 lt_prog_compiler_static_CXX='-non_shared'
19600 case $cc_basename in
19602 # Sun C++ 4.2, 5.x and Centerline C++
19603 lt_prog_compiler_pic_CXX='-KPIC'
19604 lt_prog_compiler_static_CXX='-Bstatic'
19605 lt_prog_compiler_wl_CXX='-Qoption ld '
19608 # Green Hills C++ Compiler
19609 lt_prog_compiler_pic_CXX='-PIC'
19616 case $cc_basename in
19619 lt_prog_compiler_pic_CXX='-pic'
19620 lt_prog_compiler_static_CXX='-Bstatic'
19624 lt_prog_compiler_pic_CXX='-pic'
19631 case $cc_basename in
19633 # NonStop-UX NCC 3.20
19634 lt_prog_compiler_pic_CXX='-KPIC'
19640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19641 case $cc_basename in
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_pic_CXX='-KPIC'
19645 lt_prog_compiler_static_CXX='-Bstatic'
19652 lt_prog_compiler_can_build_shared_CXX=no
19657 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19658 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19661 # Check to make sure the PIC flag actually works.
19663 if test -n "$lt_prog_compiler_pic_CXX"; then
19665 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19666 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19667 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 lt_prog_compiler_pic_works_CXX=no
19671 ac_outfile=conftest.$ac_objext
19672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19673 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19674 # Insert the option either (1) after the last *FLAGS variable, or
19675 # (2) before a word containing "conftest.", or (3) at the end.
19676 # Note that $ac_compile itself does not contain backslashes and begins
19677 # with a dollar sign (not a hyphen), so the echo should work correctly.
19678 # The option is referenced via a variable to avoid confusing sed.
19679 lt_compile=`echo "$ac_compile" | $SED \
19680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19682 -e 's:$: $lt_compiler_flag:'`
19683 (eval echo "\"\$as_me:19683: $lt_compile\"" >&5)
19684 (eval "$lt_compile" 2>conftest.err)
19686 cat conftest.err >&5
19687 echo "$as_me:19687: \$? = $ac_status" >&5
19688 if (exit $ac_status) && test -s "$ac_outfile"; then
19689 # The compiler can only warn and ignore the option if not recognized
19690 # So say no if there are warnings other than the usual output.
19691 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19694 lt_prog_compiler_pic_works_CXX=yes
19700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19701 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19703 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19704 case $lt_prog_compiler_pic_CXX in
19706 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19709 lt_prog_compiler_pic_CXX=
19710 lt_prog_compiler_can_build_shared_CXX=no
19715 # For platforms which do not support PIC, -DPIC is meaningless:
19717 lt_prog_compiler_pic_CXX=
19720 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19725 # Check to make sure the static flag actually works.
19727 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19728 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19729 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19730 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 lt_prog_compiler_static_works_CXX=no
19734 save_LDFLAGS="$LDFLAGS"
19735 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19736 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19738 # The linker can only warn and ignore the option if not recognized
19739 # So say no if there are warnings
19740 if test -s conftest.err; then
19741 # Append any errors to the config.log.
19742 cat conftest.err 1>&5
19743 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19745 if diff conftest.exp conftest.er2 >/dev/null; then
19746 lt_prog_compiler_static_works_CXX=yes
19749 lt_prog_compiler_static_works_CXX=yes
19753 LDFLAGS="$save_LDFLAGS"
19756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19757 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19759 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19762 lt_prog_compiler_static_CXX=
19766 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19767 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19768 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 lt_cv_prog_compiler_c_o_CXX=no
19772 $rm -r conftest 2>/dev/null
19776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19778 lt_compiler_flag="-o out/conftest2.$ac_objext"
19779 # Insert the option either (1) after the last *FLAGS variable, or
19780 # (2) before a word containing "conftest.", or (3) at the end.
19781 # Note that $ac_compile itself does not contain backslashes and begins
19782 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
19790 cat out/conftest.err >&5
19791 echo "$as_me:19791: \$? = $ac_status" >&5
19792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19794 # The compiler can only warn and ignore the option if not recognized
19795 # So say no if there are warnings
19796 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19799 lt_cv_prog_compiler_c_o_CXX=yes
19804 # SGI C++ compiler will create directory out/ii_files/ for
19805 # template instantiation
19806 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19807 $rm out/* && rmdir out
19813 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19814 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19817 hard_links="nottested"
19818 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19819 # do not overwrite the value of need_locks provided by the user
19820 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19821 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19826 ln conftest.a conftest.b 2>&5 || hard_links=no
19827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19828 { echo "$as_me:$LINENO: result: $hard_links" >&5
19829 echo "${ECHO_T}$hard_links" >&6; }
19830 if test "$hard_links" = no; then
19831 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19832 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19839 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19840 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19845 # If we're using GNU nm, then we don't want the "-C" option.
19846 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19847 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19848 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'
19850 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'
19854 export_symbols_cmds_CXX="$ltdll_cmds"
19857 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'
19860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19864 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19865 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19866 test "$ld_shlibs_CXX" = no && can_build_shared=no
19869 # Do we need to explicitly link libc?
19871 case "x$archive_cmds_need_lc_CXX" in
19873 # Assume -lc should be added
19874 archive_cmds_need_lc_CXX=yes
19876 if test "$enable_shared" = yes && test "$GCC" = yes; then
19877 case $archive_cmds_CXX in
19879 # FIXME: we may have to deal with multi-command sequences.
19882 # Test whether the compiler implicitly links with -lc since on some
19883 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19884 # to ld, don't add -lc before -lgcc.
19885 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19886 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } 2>conftest.err; then
19897 libobjs=conftest.$ac_objext
19899 wl=$lt_prog_compiler_wl_CXX
19900 pic_flag=$lt_prog_compiler_pic_CXX
19906 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19907 allow_undefined_flag_CXX=
19908 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19909 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }
19914 archive_cmds_need_lc_CXX=no
19916 archive_cmds_need_lc_CXX=yes
19918 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19920 cat conftest.err 1>&5
19923 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19924 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19931 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19932 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19933 library_names_spec=
19934 libname_spec='lib$name'
19938 postuninstall_cmds=
19942 shlibpath_overrides_runpath=unknown
19944 dynamic_linker="$host_os ld.so"
19945 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19946 if test "$GCC" = yes; then
19947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19948 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19949 # if the path contains ";" then we assume it to be the separator
19950 # otherwise default to the standard path separator (i.e. ":") - it is
19951 # assumed that no part of a normal pathname contains ";" but that should
19952 # okay in the real world where ";" in dirpaths is itself problematic.
19953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19960 need_lib_prefix=unknown
19961 hardcode_into_libs=no
19963 # when you set need_version to no, make sure it does not cause -set_version
19964 # flags to be left without arguments
19965 need_version=unknown
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19971 shlibpath_var=LIBPATH
19973 # AIX 3 has no versioning support, so we append a major version to the name.
19974 soname_spec='${libname}${release}${shared_ext}$major'
19981 hardcode_into_libs=yes
19982 if test "$host_cpu" = ia64; then
19983 # AIX 5 supports IA64
19984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19985 shlibpath_var=LD_LIBRARY_PATH
19987 # With GCC up to 2.95.x, collect2 would create an import file
19988 # for dependence libraries. The import file would start with
19989 # the line `#! .'. This would cause the generated library to
19990 # depend on `.', always an invalid library. This was fixed in
19991 # development snapshots of GCC prior to 3.0.
19993 aix4 | aix4.[01] | aix4.[01].*)
19994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19996 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19999 can_build_shared=no
20003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20004 # soname into executable. Probably we can add versioning support to
20005 # collect2, so additional links can be useful in future.
20006 if test "$aix_use_runtimelinking" = yes; then
20007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20008 # instead of lib<name>.a to let people know that these are not
20009 # typical AIX shared libraries.
20010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 # We preserve .a as extension for shared libraries through AIX4.2
20013 # and later when we are not doing run time linking.
20014 library_names_spec='${libname}${release}.a $libname.a'
20015 soname_spec='${libname}${release}${shared_ext}$major'
20017 shlibpath_var=LIBPATH
20022 library_names_spec='$libname.ixlibrary $libname.a'
20023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20024 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'
20028 library_names_spec='${libname}${shared_ext}'
20029 dynamic_linker="$host_os ld.so"
20030 shlibpath_var=LIBRARY_PATH
20036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037 soname_spec='${libname}${release}${shared_ext}$major'
20038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20039 shlibpath_var=LD_LIBRARY_PATH
20040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20042 # the default ld.so.conf also contains /usr/contrib/lib and
20043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20044 # libtool to hard-code these into programs
20047 cygwin* | mingw* | pw32*)
20048 version_type=windows
20053 case $GCC,$host_os in
20054 yes,cygwin* | yes,mingw* | yes,pw32*)
20055 library_names_spec='$libname.dll.a'
20056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20057 postinstall_cmds='base_file=`basename \${file}`~
20058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20059 dldir=$destdir/`dirname \$dlpath`~
20060 test -d \$dldir || mkdir -p \$dldir~
20061 $install_prog $dir/$dlname \$dldir/$dlname~
20062 chmod a+x \$dldir/$dlname'
20063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20064 dlpath=$dir/\$dldll~
20066 shlibpath_overrides_runpath=yes
20070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20072 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20075 # MinGW DLLs use traditional 'lib' prefix
20076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20078 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20079 # It is most probably a Windows format PATH printed by
20080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20081 # path with ; separators, and with drive letters. We can handle the
20082 # drive letters (cygwin fileutils understands them), so leave them,
20083 # especially as we might pass files found there to a mingw objdump,
20084 # which wouldn't understand a cygwinified path. Ahh.
20085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20091 # pw32 DLLs use 'pw' prefix rather than 'lib'
20092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20101 dynamic_linker='Win32 ld.exe'
20102 # FIXME: first we should search . and the directory the executable is in
20106 darwin* | rhapsody*)
20107 dynamic_linker="$host_os dyld"
20108 version_type=darwin
20111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20112 soname_spec='${libname}${release}${major}$shared_ext'
20113 shlibpath_overrides_runpath=yes
20114 shlibpath_var=DYLD_LIBRARY_PATH
20115 shrext_cmds='.dylib'
20116 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20117 if test "$GCC" = yes; then
20118 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"`
20120 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20122 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20130 soname_spec='${libname}${release}${shared_ext}$major'
20131 shlibpath_var=LD_LIBRARY_PATH
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 shlibpath_var=LD_LIBRARY_PATH
20145 shlibpath_overrides_runpath=no
20146 hardcode_into_libs=yes
20147 dynamic_linker='GNU ld.so'
20150 freebsd* | dragonfly*)
20151 # DragonFly does not have aout. When/if they implement a new
20152 # versioning mechanism, adjust this.
20153 if test -x /usr/bin/objformat; then
20154 objformat=`/usr/bin/objformat`
20157 freebsd[123]*) objformat=aout ;;
20158 *) objformat=elf ;;
20161 version_type=freebsd-$objformat
20162 case $version_type in
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20173 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=yes
20178 freebsd3.[01]* | freebsdelf3.[01]*)
20179 shlibpath_overrides_runpath=yes
20180 hardcode_into_libs=yes
20182 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20183 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20184 shlibpath_overrides_runpath=no
20185 hardcode_into_libs=yes
20187 freebsd*) # from 4.6 on
20188 shlibpath_overrides_runpath=yes
20189 hardcode_into_libs=yes
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 hardcode_into_libs=yes
20204 hpux9* | hpux10* | hpux11*)
20205 # Give a soname corresponding to the major version so that dld.sl refuses to
20206 # link against other versions.
20213 hardcode_into_libs=yes
20214 dynamic_linker="$host_os dld.so"
20215 shlibpath_var=LD_LIBRARY_PATH
20216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 if test "X$HPUX_IA64_MODE" = X32; then
20220 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20222 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20228 hardcode_into_libs=yes
20229 dynamic_linker="$host_os dld.sl"
20230 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20239 dynamic_linker="$host_os dld.sl"
20240 shlibpath_var=SHLIB_PATH
20241 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20246 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20247 postinstall_cmds='chmod 555 $lib'
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=no
20259 hardcode_into_libs=yes
20262 irix5* | irix6* | nonstopux*)
20264 nonstopux*) version_type=nonstopux ;;
20266 if test "$lt_cv_prog_gnu_ld" = yes; then
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20277 irix5* | nonstopux*)
20278 libsuff= shlibsuff=
20281 case $LD in # libtool.m4 will add one of these switches to LD
20282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20283 libsuff= shlibsuff= libmagic=32-bit;;
20284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20285 libsuff=32 shlibsuff=N32 libmagic=N32;;
20286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20287 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20288 *) libsuff= shlibsuff= libmagic=never-match;;
20292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20293 shlibpath_overrides_runpath=no
20294 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20295 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20296 hardcode_into_libs=yes
20299 # No shared lib support for Linux oldld, aout, or coff.
20300 linux*oldld* | linux*aout* | linux*coff*)
20304 # This must be Linux ELF.
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20310 soname_spec='${libname}${release}${shared_ext}$major'
20311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20312 shlibpath_var=LD_LIBRARY_PATH
20313 shlibpath_overrides_runpath=no
20314 # This implies no fast_install, which is unacceptable.
20315 # Some rework will be needed to allow for fast_install
20316 # before this can be enabled.
20317 hardcode_into_libs=yes
20319 # Append ld.so.conf contents to the search path
20320 if test -f /etc/ld.so.conf; then
20321 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' ' '`
20322 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20325 # We used to test for /lib/ld.so.1 and disable shared libraries on
20326 # powerpc, because MkLinux only supported shared libraries with the
20327 # GNU dynamic linker. Since this was broken with cross compilers,
20328 # most powerpc-linux boxes support dynamic linking these days and
20329 # people can always --disable-shared, the test was removed, and we
20330 # assume the GNU/Linux dynamic linker is in use.
20331 dynamic_linker='GNU/Linux ld.so'
20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20339 soname_spec='${libname}${release}${shared_ext}$major'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=no
20342 hardcode_into_libs=yes
20343 dynamic_linker='GNU ld.so'
20350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20353 dynamic_linker='NetBSD (a.out) ld.so'
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 dynamic_linker='NetBSD ld.elf_so'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=yes
20361 hardcode_into_libs=yes
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 shlibpath_overrides_runpath=yes
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 shlibpath_overrides_runpath=yes
20383 sys_lib_dlsearch_path_spec="/usr/lib"
20385 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20387 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20388 *) need_version=no ;;
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20395 openbsd2.[89] | openbsd2.[89].*)
20396 shlibpath_overrides_runpath=no
20399 shlibpath_overrides_runpath=yes
20403 shlibpath_overrides_runpath=yes
20408 libname_spec='$name'
20411 library_names_spec='$libname${shared_ext} $libname.a'
20412 dynamic_linker='OS/2 ld.exe'
20413 shlibpath_var=LIBPATH
20416 osf3* | osf4* | osf5*)
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 shlibpath_overrides_runpath=yes
20435 hardcode_into_libs=yes
20436 # ldd complains unless libraries are executable
20437 postinstall_cmds='chmod +x $lib'
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20444 shlibpath_var=LD_LIBRARY_PATH
20445 shlibpath_overrides_runpath=yes
20446 if test "$with_gnu_ld" = yes; then
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 case $host_vendor in
20459 shlibpath_overrides_runpath=no
20461 export_dynamic_flag_spec='${wl}-Blargedynsym'
20462 runpath_var=LD_RUN_PATH
20470 shlibpath_overrides_runpath=no
20471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20477 if test -d /usr/nec ;then
20479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20480 soname_spec='$libname${shared_ext}.$major'
20481 shlibpath_var=LD_LIBRARY_PATH
20485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20486 version_type=freebsd-elf
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 shlibpath_var=LD_LIBRARY_PATH
20492 hardcode_into_libs=yes
20493 if test "$with_gnu_ld" = yes; then
20494 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20495 shlibpath_overrides_runpath=no
20497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20498 shlibpath_overrides_runpath=yes
20501 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20505 sys_lib_dlsearch_path_spec='/usr/lib'
20510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20511 soname_spec='${libname}${release}${shared_ext}$major'
20512 shlibpath_var=LD_LIBRARY_PATH
20519 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20520 echo "${ECHO_T}$dynamic_linker" >&6; }
20521 test "$dynamic_linker" = no && can_build_shared=no
20523 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20524 if test "$GCC" = yes; then
20525 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20528 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20529 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20530 hardcode_action_CXX=
20531 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20532 test -n "$runpath_var_CXX" || \
20533 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20535 # We can hardcode non-existant directories.
20536 if test "$hardcode_direct_CXX" != no &&
20537 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20538 # have to relink, otherwise we might link with an installed library
20539 # when we should be linking with a yet-to-be-installed one
20540 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20541 test "$hardcode_minus_L_CXX" != no; then
20542 # Linking always hardcodes the temporary library directory.
20543 hardcode_action_CXX=relink
20545 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20546 hardcode_action_CXX=immediate
20549 # We cannot hardcode anything, or else we can only hardcode existing
20551 hardcode_action_CXX=unsupported
20553 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20554 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20556 if test "$hardcode_action_CXX" = relink; then
20557 # Fast installation is not supported
20558 enable_fast_install=no
20559 elif test "$shlibpath_overrides_runpath" = yes ||
20560 test "$enable_shared" = no; then
20561 # Fast installation is not necessary
20562 enable_fast_install=needless
20566 # The else clause should only fire when bootstrapping the
20567 # libtool distribution, otherwise you forgot to ship ltmain.sh
20568 # with your package, and you will get complaints that there are
20569 # no rules to generate ltmain.sh.
20570 if test -f "$ltmain"; then
20571 # See if we are running on zsh, and set the options which allow our commands through
20572 # without removal of \ escapes.
20573 if test -n "${ZSH_VERSION+set}" ; then
20574 setopt NO_GLOB_SUBST
20576 # Now quote all the things that may contain metacharacters while being
20577 # careful not to overquote the AC_SUBSTed values. We take copies of the
20578 # variables and quote the copies for generation of the libtool script.
20579 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20581 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20582 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20583 deplibs_check_method reload_flag reload_cmds need_locks \
20584 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20585 lt_cv_sys_global_symbol_to_c_name_address \
20586 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20587 old_postinstall_cmds old_postuninstall_cmds \
20591 lt_prog_compiler_wl_CXX \
20592 lt_prog_compiler_pic_CXX \
20593 lt_prog_compiler_static_CXX \
20594 lt_prog_compiler_no_builtin_flag_CXX \
20595 export_dynamic_flag_spec_CXX \
20596 thread_safe_flag_spec_CXX \
20597 whole_archive_flag_spec_CXX \
20598 enable_shared_with_static_runtimes_CXX \
20599 old_archive_cmds_CXX \
20600 old_archive_from_new_cmds_CXX \
20601 predep_objects_CXX \
20602 postdep_objects_CXX \
20605 compiler_lib_search_path_CXX \
20607 archive_expsym_cmds_CXX \
20608 postinstall_cmds_CXX \
20609 postuninstall_cmds_CXX \
20610 old_archive_from_expsyms_cmds_CXX \
20611 allow_undefined_flag_CXX \
20612 no_undefined_flag_CXX \
20613 export_symbols_cmds_CXX \
20614 hardcode_libdir_flag_spec_CXX \
20615 hardcode_libdir_flag_spec_ld_CXX \
20616 hardcode_libdir_separator_CXX \
20617 hardcode_automatic_CXX \
20619 module_expsym_cmds_CXX \
20620 lt_cv_prog_compiler_c_o_CXX \
20621 exclude_expsyms_CXX \
20622 include_expsyms_CXX; do
20625 old_archive_cmds_CXX | \
20626 old_archive_from_new_cmds_CXX | \
20627 archive_cmds_CXX | \
20628 archive_expsym_cmds_CXX | \
20629 module_cmds_CXX | \
20630 module_expsym_cmds_CXX | \
20631 old_archive_from_expsyms_cmds_CXX | \
20632 export_symbols_cmds_CXX | \
20633 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20634 postinstall_cmds | postuninstall_cmds | \
20635 old_postinstall_cmds | old_postuninstall_cmds | \
20636 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20637 # Double-quote double-evaled strings.
20638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20647 *'\$0 --fallback-echo"')
20648 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20654 cat <<__EOF__ >> "$cfgfile"
20655 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20659 # Shell to use when invoking shell scripts.
20662 # Whether or not to build shared libraries.
20663 build_libtool_libs=$enable_shared
20665 # Whether or not to build static libraries.
20666 build_old_libs=$enable_static
20668 # Whether or not to add -lc for building shared libraries.
20669 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20671 # Whether or not to disallow shared libs when runtime libs are static
20672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20674 # Whether or not to optimize for fast installation.
20675 fast_install=$enable_fast_install
20678 host_alias=$host_alias
20682 # The build system.
20683 build_alias=$build_alias
20687 # An echo program that does not interpret backslashes.
20692 AR_FLAGS=$lt_AR_FLAGS
20697 # LTCC compiler flags.
20698 LTCFLAGS=$lt_LTCFLAGS
20700 # A language-specific compiler.
20701 CC=$lt_compiler_CXX
20703 # Is the compiler the GNU C compiler?
20709 # The linker used to build libraries.
20712 # Whether we need hard or soft links.
20715 # A BSD-compatible nm program.
20718 # A symbol stripping program
20721 # Used to examine libraries when file_magic_cmd begins "file"
20722 MAGIC_CMD=$MAGIC_CMD
20724 # Used on cygwin: DLL creation program.
20727 # Used on cygwin: object dumper.
20730 # Used on cygwin: assembler.
20733 # The name of the directory that contains temporary libtool files.
20736 # How to create reloadable object files.
20737 reload_flag=$lt_reload_flag
20738 reload_cmds=$lt_reload_cmds
20740 # How to pass a linker flag through the compiler.
20741 wl=$lt_lt_prog_compiler_wl_CXX
20743 # Object file suffix (normally "o").
20744 objext="$ac_objext"
20746 # Old archive suffix (normally "a").
20749 # Shared library suffix (normally ".so").
20750 shrext_cmds='$shrext_cmds'
20752 # Executable file suffix (normally "").
20755 # Additional compiler flags for building library objects.
20756 pic_flag=$lt_lt_prog_compiler_pic_CXX
20759 # What is the maximum length of a command?
20760 max_cmd_len=$lt_cv_sys_max_cmd_len
20762 # Does compiler simultaneously support -c and -o options?
20763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20765 # Must we lock files when doing compilation?
20766 need_locks=$lt_need_locks
20768 # Do we need the lib prefix for modules?
20769 need_lib_prefix=$need_lib_prefix
20771 # Do we need a version for libraries?
20772 need_version=$need_version
20774 # Whether dlopen is supported.
20775 dlopen_support=$enable_dlopen
20777 # Whether dlopen of programs is supported.
20778 dlopen_self=$enable_dlopen_self
20780 # Whether dlopen of statically linked programs is supported.
20781 dlopen_self_static=$enable_dlopen_self_static
20783 # Compiler flag to prevent dynamic linking.
20784 link_static_flag=$lt_lt_prog_compiler_static_CXX
20786 # Compiler flag to turn off builtin functions.
20787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20789 # Compiler flag to allow reflexive dlopens.
20790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20792 # Compiler flag to generate shared objects directly from archives.
20793 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20795 # Compiler flag to generate thread-safe objects.
20796 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20798 # Library versioning type.
20799 version_type=$version_type
20801 # Format of library name prefix.
20802 libname_spec=$lt_libname_spec
20804 # List of archive names. First name is the real one, the rest are links.
20805 # The last name is the one that the linker finds with -lNAME.
20806 library_names_spec=$lt_library_names_spec
20808 # The coded name of the library, if different from the real name.
20809 soname_spec=$lt_soname_spec
20811 # Commands used to build and install an old-style archive.
20813 old_archive_cmds=$lt_old_archive_cmds_CXX
20814 old_postinstall_cmds=$lt_old_postinstall_cmds
20815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20817 # Create an old-style archive from a shared archive.
20818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20820 # Create a temporary old-style archive to link instead of a shared archive.
20821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20823 # Commands used to build and install a shared archive.
20824 archive_cmds=$lt_archive_cmds_CXX
20825 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20826 postinstall_cmds=$lt_postinstall_cmds
20827 postuninstall_cmds=$lt_postuninstall_cmds
20829 # Commands used to build a loadable module (assumed same as above if empty)
20830 module_cmds=$lt_module_cmds_CXX
20831 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20833 # Commands to strip libraries.
20834 old_striplib=$lt_old_striplib
20835 striplib=$lt_striplib
20837 # Dependencies to place before the objects being linked to create a
20839 predep_objects=$lt_predep_objects_CXX
20841 # Dependencies to place after the objects being linked to create a
20843 postdep_objects=$lt_postdep_objects_CXX
20845 # Dependencies to place before the objects being linked to create a
20847 predeps=$lt_predeps_CXX
20849 # Dependencies to place after the objects being linked to create a
20851 postdeps=$lt_postdeps_CXX
20853 # The library search path used internally by the compiler when linking
20854 # a shared library.
20855 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20857 # Method to check whether dependent libraries are shared objects.
20858 deplibs_check_method=$lt_deplibs_check_method
20860 # Command to use when deplibs_check_method == file_magic.
20861 file_magic_cmd=$lt_file_magic_cmd
20863 # Flag that allows shared libraries with undefined symbols to be built.
20864 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20866 # Flag that forces no undefined symbols.
20867 no_undefined_flag=$lt_no_undefined_flag_CXX
20869 # Commands used to finish a libtool library installation in a directory.
20870 finish_cmds=$lt_finish_cmds
20872 # Same as above, but a single script fragment to be evaled but not shown.
20873 finish_eval=$lt_finish_eval
20875 # Take the output of nm and produce a listing of raw symbols and C names.
20876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20878 # Transform the output of nm in a proper C declaration
20879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20881 # Transform the output of nm in a C name address pair
20882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20884 # This is the shared library runtime path variable.
20885 runpath_var=$runpath_var
20887 # This is the shared library path variable.
20888 shlibpath_var=$shlibpath_var
20890 # Is shlibpath searched before the hard-coded library search path?
20891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20893 # How to hardcode a shared library path into an executable.
20894 hardcode_action=$hardcode_action_CXX
20896 # Whether we should hardcode library paths into libraries.
20897 hardcode_into_libs=$hardcode_into_libs
20899 # Flag to hardcode \$libdir into a binary during linking.
20900 # This must work even if \$libdir does not exist.
20901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20903 # If ld is used when linking, flag to hardcode \$libdir into
20904 # a binary during linking. This must work even if \$libdir does
20906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20908 # Whether we need a single -rpath flag with a separated argument.
20909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20911 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20912 # resulting binary.
20913 hardcode_direct=$hardcode_direct_CXX
20915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20916 # resulting binary.
20917 hardcode_minus_L=$hardcode_minus_L_CXX
20919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20920 # the resulting binary.
20921 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20923 # Set to yes if building a shared library automatically hardcodes DIR into the library
20924 # and all subsequent libraries and executables linked against it.
20925 hardcode_automatic=$hardcode_automatic_CXX
20927 # Variables whose values should be saved in libtool wrapper scripts and
20928 # restored at relink time.
20929 variables_saved_for_relink="$variables_saved_for_relink"
20931 # Whether libtool must link a program against all its dependency libraries.
20932 link_all_deplibs=$link_all_deplibs_CXX
20934 # Compile-time system search path for libraries
20935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20937 # Run-time system search path for libraries
20938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20940 # Fix the shell variable \$srcfile for the compiler.
20941 fix_srcfile_path="$fix_srcfile_path_CXX"
20943 # Set to yes if exported symbols are required.
20944 always_export_symbols=$always_export_symbols_CXX
20946 # The commands to list exported symbols.
20947 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20949 # The commands to extract the exported symbol list from a shared archive.
20950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20952 # Symbols that should not be listed in the preloaded symbols.
20953 exclude_expsyms=$lt_exclude_expsyms_CXX
20955 # Symbols that must always be exported.
20956 include_expsyms=$lt_include_expsyms_CXX
20958 # ### END LIBTOOL TAG CONFIG: $tagname
20964 # If there is no Makefile yet, we rely on a make rule to execute
20965 # `config.status --recheck' to rerun these tests and create the
20966 # libtool script then.
20967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20968 if test -f "$ltmain_in"; then
20969 test -f Makefile && make "$ltmain"
20975 ac_cpp='$CPP $CPPFLAGS'
20976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20984 with_gnu_ldcxx=$with_gnu_ld
20985 with_gnu_ld=$lt_save_with_gnu_ld
20986 lt_cv_path_LDCXX=$lt_cv_path_LD
20987 lt_cv_path_LD=$lt_save_path_LD
20988 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20989 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20997 if test -n "$F77" && test "X$F77" != "Xno"; then
21000 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21001 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21005 archive_cmds_need_lc_F77=no
21006 allow_undefined_flag_F77=
21007 always_export_symbols_F77=no
21008 archive_expsym_cmds_F77=
21009 export_dynamic_flag_spec_F77=
21010 hardcode_direct_F77=no
21011 hardcode_libdir_flag_spec_F77=
21012 hardcode_libdir_flag_spec_ld_F77=
21013 hardcode_libdir_separator_F77=
21014 hardcode_minus_L_F77=no
21015 hardcode_automatic_F77=no
21017 module_expsym_cmds_F77=
21018 link_all_deplibs_F77=unknown
21019 old_archive_cmds_F77=$old_archive_cmds
21020 no_undefined_flag_F77=
21021 whole_archive_flag_spec_F77=
21022 enable_shared_with_static_runtimes_F77=no
21024 # Source file extension for f77 test sources.
21027 # Object file extension for compiled f77 test sources.
21031 # Code to be used in simple compile tests
21032 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21034 # Code to be used in simple link tests
21035 lt_simple_link_test_code=" program t\n end\n"
21037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21039 # If no C compiler was specified, use CC.
21042 # If no C compiler flags were specified, use CFLAGS.
21043 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21045 # Allow CC to be a program name with arguments.
21049 # save warnings/boilerplate of simple test code
21050 ac_outfile=conftest.$ac_objext
21051 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21053 _lt_compiler_boilerplate=`cat conftest.err`
21056 ac_outfile=conftest.$ac_objext
21057 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21058 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21059 _lt_linker_boilerplate=`cat conftest.err`
21063 # Allow CC to be a program name with arguments.
21068 for cc_temp in $compiler""; do
21070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21076 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21079 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21080 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21081 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21082 echo "${ECHO_T}$can_build_shared" >&6; }
21084 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21085 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21086 test "$can_build_shared" = "no" && enable_shared=no
21088 # On AIX, shared libraries and static libraries use the same namespace, and
21089 # are all built from PIC.
21092 test "$enable_shared" = yes && enable_static=no
21093 if test -n "$RANLIB"; then
21094 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21095 postinstall_cmds='$RANLIB $lib'
21099 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21100 test "$enable_shared" = yes && enable_static=no
21104 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21105 echo "${ECHO_T}$enable_shared" >&6; }
21107 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21108 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21109 # Make sure either enable_shared or enable_static is yes.
21110 test "$enable_shared" = yes || enable_static=yes
21111 { echo "$as_me:$LINENO: result: $enable_static" >&5
21112 echo "${ECHO_T}$enable_static" >&6; }
21117 lt_prog_compiler_wl_F77=
21118 lt_prog_compiler_pic_F77=
21119 lt_prog_compiler_static_F77=
21121 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21122 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21124 if test "$GCC" = yes; then
21125 lt_prog_compiler_wl_F77='-Wl,'
21126 lt_prog_compiler_static_F77='-static'
21130 # All AIX code is PIC.
21131 if test "$host_cpu" = ia64; then
21132 # AIX 5 now supports IA64 processor
21133 lt_prog_compiler_static_F77='-Bstatic'
21138 # FIXME: we need at least 68020 code to build shared libraries, but
21139 # adding the `-m68020' flag to GCC prevents building anything better,
21141 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21145 # PIC is the default for these OSes.
21148 mingw* | pw32* | os2*)
21149 # This hack is so that the source file can tell whether it is being
21150 # built for inclusion in a dll (and should export symbols for example).
21151 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21154 darwin* | rhapsody*)
21155 # PIC is the default on this platform
21156 # Common symbols not allowed in MH_DYLIB files
21157 lt_prog_compiler_pic_F77='-fno-common'
21161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21162 # Instead, we relocate shared libraries at runtime.
21166 # Just because we use GCC doesn't mean we suddenly get shared libraries
21167 # on systems that don't support them.
21168 lt_prog_compiler_can_build_shared_F77=no
21173 if test -d /usr/nec; then
21174 lt_prog_compiler_pic_F77=-Kconform_pic
21179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21180 # not for PA HP-UX.
21186 lt_prog_compiler_pic_F77='-fPIC'
21192 lt_prog_compiler_pic_F77='-fPIC'
21196 # PORTME Check for flag to pass linker flags through the system compiler.
21199 lt_prog_compiler_wl_F77='-Wl,'
21200 if test "$host_cpu" = ia64; then
21201 # AIX 5 now supports IA64 processor
21202 lt_prog_compiler_static_F77='-Bstatic'
21204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21208 # PIC is the default on this platform
21209 # Common symbols not allowed in MH_DYLIB files
21210 case $cc_basename in
21212 lt_prog_compiler_pic_F77='-qnocommon'
21213 lt_prog_compiler_wl_F77='-Wl,'
21218 mingw* | pw32* | os2*)
21219 # This hack is so that the source file can tell whether it is being
21220 # built for inclusion in a dll (and should export symbols for example).
21221 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21224 hpux9* | hpux10* | hpux11*)
21225 lt_prog_compiler_wl_F77='-Wl,'
21226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21227 # not for PA HP-UX.
21233 lt_prog_compiler_pic_F77='+Z'
21236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21237 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21240 irix5* | irix6* | nonstopux*)
21241 lt_prog_compiler_wl_F77='-Wl,'
21242 # PIC (with -KPIC) is the default.
21243 lt_prog_compiler_static_F77='-non_shared'
21247 lt_prog_compiler_pic_F77='-KPIC'
21248 lt_prog_compiler_static_F77='-Bstatic'
21252 case $cc_basename in
21254 lt_prog_compiler_wl_F77='-Wl,'
21255 lt_prog_compiler_pic_F77='-KPIC'
21256 lt_prog_compiler_static_F77='-static'
21258 pgcc* | pgf77* | pgf90* | pgf95*)
21259 # Portland Group compilers (*not* the Pentium gcc compiler,
21260 # which looks to be a dead project)
21261 lt_prog_compiler_wl_F77='-Wl,'
21262 lt_prog_compiler_pic_F77='-fpic'
21263 lt_prog_compiler_static_F77='-Bstatic'
21266 lt_prog_compiler_wl_F77='-Wl,'
21267 # All Alpha code is PIC.
21268 lt_prog_compiler_static_F77='-non_shared'
21273 osf3* | osf4* | osf5*)
21274 lt_prog_compiler_wl_F77='-Wl,'
21275 # All OSF/1 code is PIC.
21276 lt_prog_compiler_static_F77='-non_shared'
21280 lt_prog_compiler_pic_F77='-KPIC'
21281 lt_prog_compiler_static_F77='-Bstatic'
21282 case $cc_basename in
21283 f77* | f90* | f95*)
21284 lt_prog_compiler_wl_F77='-Qoption ld ';;
21286 lt_prog_compiler_wl_F77='-Wl,';;
21291 lt_prog_compiler_wl_F77='-Qoption ld '
21292 lt_prog_compiler_pic_F77='-PIC'
21293 lt_prog_compiler_static_F77='-Bstatic'
21296 sysv4 | sysv4.2uw2* | sysv4.3*)
21297 lt_prog_compiler_wl_F77='-Wl,'
21298 lt_prog_compiler_pic_F77='-KPIC'
21299 lt_prog_compiler_static_F77='-Bstatic'
21303 if test -d /usr/nec ;then
21304 lt_prog_compiler_pic_F77='-Kconform_pic'
21305 lt_prog_compiler_static_F77='-Bstatic'
21309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21310 lt_prog_compiler_wl_F77='-Wl,'
21311 lt_prog_compiler_pic_F77='-KPIC'
21312 lt_prog_compiler_static_F77='-Bstatic'
21316 lt_prog_compiler_wl_F77='-Wl,'
21317 lt_prog_compiler_can_build_shared_F77=no
21321 lt_prog_compiler_pic_F77='-pic'
21322 lt_prog_compiler_static_F77='-Bstatic'
21326 lt_prog_compiler_can_build_shared_F77=no
21331 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21332 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21335 # Check to make sure the PIC flag actually works.
21337 if test -n "$lt_prog_compiler_pic_F77"; then
21339 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21340 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21341 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 lt_prog_compiler_pic_works_F77=no
21345 ac_outfile=conftest.$ac_objext
21346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21347 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21348 # Insert the option either (1) after the last *FLAGS variable, or
21349 # (2) before a word containing "conftest.", or (3) at the end.
21350 # Note that $ac_compile itself does not contain backslashes and begins
21351 # with a dollar sign (not a hyphen), so the echo should work correctly.
21352 # The option is referenced via a variable to avoid confusing sed.
21353 lt_compile=`echo "$ac_compile" | $SED \
21354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21356 -e 's:$: $lt_compiler_flag:'`
21357 (eval echo "\"\$as_me:21357: $lt_compile\"" >&5)
21358 (eval "$lt_compile" 2>conftest.err)
21360 cat conftest.err >&5
21361 echo "$as_me:21361: \$? = $ac_status" >&5
21362 if (exit $ac_status) && test -s "$ac_outfile"; then
21363 # The compiler can only warn and ignore the option if not recognized
21364 # So say no if there are warnings other than the usual output.
21365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21368 lt_prog_compiler_pic_works_F77=yes
21374 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21375 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21377 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21378 case $lt_prog_compiler_pic_F77 in
21380 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21383 lt_prog_compiler_pic_F77=
21384 lt_prog_compiler_can_build_shared_F77=no
21389 # For platforms which do not support PIC, -DPIC is meaningless:
21391 lt_prog_compiler_pic_F77=
21394 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21399 # Check to make sure the static flag actually works.
21401 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21402 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21403 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21404 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 lt_prog_compiler_static_works_F77=no
21408 save_LDFLAGS="$LDFLAGS"
21409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21410 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21412 # The linker can only warn and ignore the option if not recognized
21413 # So say no if there are warnings
21414 if test -s conftest.err; then
21415 # Append any errors to the config.log.
21416 cat conftest.err 1>&5
21417 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21419 if diff conftest.exp conftest.er2 >/dev/null; then
21420 lt_prog_compiler_static_works_F77=yes
21423 lt_prog_compiler_static_works_F77=yes
21427 LDFLAGS="$save_LDFLAGS"
21430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21431 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21433 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21436 lt_prog_compiler_static_F77=
21440 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21441 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21442 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 lt_cv_prog_compiler_c_o_F77=no
21446 $rm -r conftest 2>/dev/null
21450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21452 lt_compiler_flag="-o out/conftest2.$ac_objext"
21453 # Insert the option either (1) after the last *FLAGS variable, or
21454 # (2) before a word containing "conftest.", or (3) at the end.
21455 # Note that $ac_compile itself does not contain backslashes and begins
21456 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
21464 cat out/conftest.err >&5
21465 echo "$as_me:21465: \$? = $ac_status" >&5
21466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21468 # The compiler can only warn and ignore the option if not recognized
21469 # So say no if there are warnings
21470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21473 lt_cv_prog_compiler_c_o_F77=yes
21478 # SGI C++ compiler will create directory out/ii_files/ for
21479 # template instantiation
21480 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21481 $rm out/* && rmdir out
21487 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21488 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21491 hard_links="nottested"
21492 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21493 # do not overwrite the value of need_locks provided by the user
21494 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21495 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21500 ln conftest.a conftest.b 2>&5 || hard_links=no
21501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21502 { echo "$as_me:$LINENO: result: $hard_links" >&5
21503 echo "${ECHO_T}$hard_links" >&6; }
21504 if test "$hard_links" = no; then
21505 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21506 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21513 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21514 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21517 allow_undefined_flag_F77=
21518 enable_shared_with_static_runtimes_F77=no
21520 archive_expsym_cmds_F77=
21521 old_archive_From_new_cmds_F77=
21522 old_archive_from_expsyms_cmds_F77=
21523 export_dynamic_flag_spec_F77=
21524 whole_archive_flag_spec_F77=
21525 thread_safe_flag_spec_F77=
21526 hardcode_libdir_flag_spec_F77=
21527 hardcode_libdir_flag_spec_ld_F77=
21528 hardcode_libdir_separator_F77=
21529 hardcode_direct_F77=no
21530 hardcode_minus_L_F77=no
21531 hardcode_shlibpath_var_F77=unsupported
21532 link_all_deplibs_F77=unknown
21533 hardcode_automatic_F77=no
21535 module_expsym_cmds_F77=
21536 always_export_symbols_F77=no
21537 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21538 # include_expsyms should be a list of space-separated symbols to be *always*
21539 # included in the symbol list
21540 include_expsyms_F77=
21541 # exclude_expsyms can be an extended regexp of symbols to exclude
21542 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21544 # as well as any symbol that contains `d'.
21545 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21547 # platforms (ab)use it in PIC code, but their linkers get confused if
21548 # the symbol is explicitly referenced. Since portable code cannot
21549 # rely on this symbol name, it's probably fine to never include it in
21550 # preloaded symbol tables.
21551 extract_expsyms_cmds=
21552 # Just being paranoid about ensuring that cc_basename is set.
21553 for cc_temp in $compiler""; do
21555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21561 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21564 cygwin* | mingw* | pw32*)
21565 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21566 # When not using gcc, we currently assume that we are using
21567 # Microsoft Visual C++.
21568 if test "$GCC" != yes; then
21573 # we just hope/assume this is gcc and not c89 (= MSVC++)
21582 if test "$with_gnu_ld" = yes; then
21583 # If archive_cmds runs LD, not CC, wlarc should be empty
21586 # Set some defaults for GNU ld with shared library support. These
21587 # are reset later if shared libraries are not supported. Putting them
21588 # here allows them to be overridden if necessary.
21589 runpath_var=LD_RUN_PATH
21590 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21591 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21592 # ancient GNU ld didn't support --whole-archive et. al.
21593 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21594 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21596 whole_archive_flag_spec_F77=
21598 supports_anon_versioning=no
21599 case `$LD -v 2>/dev/null` in
21600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21603 *\ 2.11.*) ;; # other 2.11 versions
21604 *) supports_anon_versioning=yes ;;
21607 # See if GNU ld supports shared libraries.
21609 aix3* | aix4* | aix5*)
21610 # On AIX/PPC, the GNU linker is very broken
21611 if test "$host_cpu" != ia64; then
21615 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21616 *** to be unable to reliably create shared libraries on AIX.
21617 *** Therefore, libtool is disabling shared libraries support. If you
21618 *** really care for shared libraries, you may want to modify your PATH
21619 *** so that a non-GNU linker is found, and then restart.
21626 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)'
21627 hardcode_libdir_flag_spec_F77='-L$libdir'
21628 hardcode_minus_L_F77=yes
21630 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21631 # that the semantics of dynamic libraries on AmigaOS, at least up
21632 # to version 4, is to share data among multiple programs linked
21633 # with the same dynamic library. Since this doesn't match the
21634 # behavior of shared libraries on other platforms, we can't use
21640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21641 allow_undefined_flag_F77=unsupported
21642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21643 # support --undefined. This deserves some investigation. FIXME
21644 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21650 cygwin* | mingw* | pw32*)
21651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21652 # as there is no search path for DLLs.
21653 hardcode_libdir_flag_spec_F77='-L$libdir'
21654 allow_undefined_flag_F77=unsupported
21655 always_export_symbols_F77=no
21656 enable_shared_with_static_runtimes_F77=yes
21657 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21660 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21661 # If the export-symbols file already is a .def file (1st line
21662 # is EXPORTS), use it as is; otherwise, prepend...
21663 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21664 cp $export_symbols $output_objdir/$soname.def;
21666 echo EXPORTS > $output_objdir/$soname.def;
21667 cat $export_symbols >> $output_objdir/$soname.def;
21669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21676 hardcode_direct_F77=no
21677 hardcode_shlibpath_var_F77=no
21678 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21679 export_dynamic_flag_spec_F77='${wl}-E'
21680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21681 # Instead, shared libraries are loaded at an image base (0x10000000 by
21682 # default) and relocated if they conflict, which is a slow very memory
21683 # consuming and fragmenting process. To avoid this, we pick a random,
21684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21685 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21686 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'
21687 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'
21691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21693 case $cc_basename,$host_cpu in
21694 pgcc*) # Portland Group C compiler
21695 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'
21696 tmp_addflag=' $pic_flag'
21698 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21699 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'
21700 tmp_addflag=' $pic_flag -Mnomain' ;;
21701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21702 tmp_addflag=' -i_dynamic' ;;
21703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21704 tmp_addflag=' -i_dynamic -nofor_main' ;;
21705 ifc* | ifort*) # Intel Fortran compiler
21706 tmp_addflag=' -nofor_main' ;;
21708 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21710 if test $supports_anon_versioning = yes; then
21711 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21713 $echo "local: *; };" >> $output_objdir/$libname.ver~
21714 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21723 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21726 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21727 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21732 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21737 *** create shared libraries on Solaris systems. Therefore, libtool
21738 *** is disabling shared libraries support. We urge you to upgrade GNU
21739 *** binutils to release 2.9.1 or newer. Another option is to modify
21740 *** your PATH or compiler configuration so that the native linker is
21741 *** used, and then restart.
21744 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21753 case `$LD -v 2>&1` in
21754 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21758 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21759 *** reliably create shared libraries on SCO systems. Therefore, libtool
21760 *** is disabling shared libraries support. We urge you to upgrade GNU
21761 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21762 *** your PATH or compiler configuration so that the native linker is
21763 *** used, and then restart.
21768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21769 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21771 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21780 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21782 hardcode_direct_F77=yes
21783 hardcode_shlibpath_var_F77=no
21787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21788 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21789 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21796 if test "$ld_shlibs_F77" = no; then
21798 hardcode_libdir_flag_spec_F77=
21799 export_dynamic_flag_spec_F77=
21800 whole_archive_flag_spec_F77=
21803 # PORTME fill in a description of your system's linker (not GNU ld)
21806 allow_undefined_flag_F77=unsupported
21807 always_export_symbols_F77=yes
21808 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'
21809 # Note: this linker hardcodes the directories in LIBPATH if there
21810 # are no directories specified by -L.
21811 hardcode_minus_L_F77=yes
21812 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21813 # Neither direct hardcoding nor static linking is supported with a
21815 hardcode_direct_F77=unsupported
21820 if test "$host_cpu" = ia64; then
21821 # On IA64, the linker does run time linking by default, so we don't
21822 # have to do anything special.
21823 aix_use_runtimelinking=no
21824 exp_sym_flag='-Bexport'
21827 # If we're using GNU nm, then we don't want the "-C" option.
21828 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21829 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21830 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'
21832 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'
21834 aix_use_runtimelinking=no
21836 # Test if we are trying to use run time linking or normal
21837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21838 # need to do runtime linking.
21839 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21840 for ld_flag in $LDFLAGS; do
21841 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21842 aix_use_runtimelinking=yes
21849 exp_sym_flag='-bexport'
21850 no_entry_flag='-bnoentry'
21853 # When large executables or shared objects are built, AIX ld can
21854 # have problems creating the table of contents. If linking a library
21855 # or program results in "error TOC overflow" add -mminimal-toc to
21856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21859 archive_cmds_F77=''
21860 hardcode_direct_F77=yes
21861 hardcode_libdir_separator_F77=':'
21862 link_all_deplibs_F77=yes
21864 if test "$GCC" = yes; then
21865 case $host_os in aix4.[012]|aix4.[012].*)
21866 # We only want to do this on AIX 4.2 and lower, the check
21867 # below for broken collect2 doesn't work under 4.3+
21868 collect2name=`${CC} -print-prog-name=collect2`
21869 if test -f "$collect2name" && \
21870 strings "$collect2name" | grep resolve_lib_name >/dev/null
21872 # We have reworked collect2
21873 hardcode_direct_F77=yes
21875 # We have old collect2
21876 hardcode_direct_F77=unsupported
21877 # It fails to find uninstalled libraries when the uninstalled
21878 # path is not listed in the libpath. Setting hardcode_minus_L
21879 # to unsupported forces relinking
21880 hardcode_minus_L_F77=yes
21881 hardcode_libdir_flag_spec_F77='-L$libdir'
21882 hardcode_libdir_separator_F77=
21886 shared_flag='-shared'
21887 if test "$aix_use_runtimelinking" = yes; then
21888 shared_flag="$shared_flag "'${wl}-G'
21892 if test "$host_cpu" = ia64; then
21893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21894 # chokes on -Wl,-G. The following line is correct:
21897 if test "$aix_use_runtimelinking" = yes; then
21898 shared_flag='${wl}-G'
21900 shared_flag='${wl}-bM:SRE'
21905 # It seems that -bexpall does not export symbols beginning with
21906 # underscore (_), so it is better to generate a list of symbols to export.
21907 always_export_symbols_F77=yes
21908 if test "$aix_use_runtimelinking" = yes; then
21909 # Warning - without using the other runtime loading flags (-brtl),
21910 # -berok will link without error, but may produce a broken library.
21911 allow_undefined_flag_F77='-berok'
21912 # Determine the default libpath from the value encoded in an empty executable.
21913 cat >conftest.$ac_ext <<_ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_link") 2>conftest.er1
21927 grep -v '^ *+' conftest.er1 >conftest.err
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } &&
21932 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21933 { (case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_try") 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest$ac_exeext'
21943 { (case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_try") 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21955 # Check for a 64-bit object if we didn't find anything.
21956 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; }
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21965 rm -f core conftest.err conftest.$ac_objext \
21966 conftest$ac_exeext conftest.$ac_ext
21967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21969 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21970 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"
21972 if test "$host_cpu" = ia64; then
21973 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21974 allow_undefined_flag_F77="-z nodefs"
21975 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"
21977 # Determine the default libpath from the value encoded in an empty executable.
21978 cat >conftest.$ac_ext <<_ACEOF
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_link") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21998 { (case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_try") 2>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest$ac_exeext'
22008 { (case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_try") 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22020 # Check for a 64-bit object if we didn't find anything.
22021 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; }
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22030 rm -f core conftest.err conftest.$ac_objext \
22031 conftest$ac_exeext conftest.$ac_ext
22032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22034 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22035 # Warning - without using the other run time loading flags,
22036 # -berok will link without error, but may produce a broken library.
22037 no_undefined_flag_F77=' ${wl}-bernotok'
22038 allow_undefined_flag_F77=' ${wl}-berok'
22039 # Exported symbols can be pulled into shared objects from archives
22040 whole_archive_flag_spec_F77='$convenience'
22041 archive_cmds_need_lc_F77=yes
22042 # This is similar to how AIX traditionally builds its shared libraries.
22043 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'
22049 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)'
22050 hardcode_libdir_flag_spec_F77='-L$libdir'
22051 hardcode_minus_L_F77=yes
22052 # see comment about different semantics on the GNU ld section
22057 export_dynamic_flag_spec_F77=-rdynamic
22060 cygwin* | mingw* | pw32*)
22061 # When not using gcc, we currently assume that we are using
22062 # Microsoft Visual C++.
22063 # hardcode_libdir_flag_spec is actually meaningless, as there is
22064 # no search path for DLLs.
22065 hardcode_libdir_flag_spec_F77=' '
22066 allow_undefined_flag_F77=unsupported
22067 # Tell ltmain to make .lib files, not .a files.
22069 # Tell ltmain to make .dll files, not .so files.
22071 # FIXME: Setting linknames here is a bad hack.
22072 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22073 # The linker will automatically build a .lib file if we build a DLL.
22074 old_archive_From_new_cmds_F77='true'
22075 # FIXME: Should let the user specify the lib program.
22076 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22077 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22078 enable_shared_with_static_runtimes_F77=yes
22081 darwin* | rhapsody*)
22083 rhapsody* | darwin1.[012])
22084 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22087 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22088 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22090 case ${MACOSX_DEPLOYMENT_TARGET} in
22092 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22095 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22101 archive_cmds_need_lc_F77=no
22102 hardcode_direct_F77=no
22103 hardcode_automatic_F77=yes
22104 hardcode_shlibpath_var_F77=unsupported
22105 whole_archive_flag_spec_F77=''
22106 link_all_deplibs_F77=yes
22107 if test "$GCC" = yes ; then
22108 output_verbose_link_cmd='echo'
22109 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22110 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22112 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}'
22113 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}'
22115 case $cc_basename in
22117 output_verbose_link_cmd='echo'
22118 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22119 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22121 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}'
22122 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}'
22132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22133 hardcode_libdir_flag_spec_F77='-L$libdir'
22134 hardcode_shlibpath_var_F77=no
22141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22142 # support. Future versions do this automatically, but an explicit c++rt0.o
22143 # does not break anything, and helps significantly (at the cost of a little
22146 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22147 hardcode_libdir_flag_spec_F77='-R$libdir'
22148 hardcode_direct_F77=yes
22149 hardcode_shlibpath_var_F77=no
22152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22154 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22155 hardcode_direct_F77=yes
22156 hardcode_minus_L_F77=yes
22157 hardcode_shlibpath_var_F77=no
22160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22161 freebsd* | kfreebsd*-gnu | dragonfly*)
22162 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22163 hardcode_libdir_flag_spec_F77='-R$libdir'
22164 hardcode_direct_F77=yes
22165 hardcode_shlibpath_var_F77=no
22169 if test "$GCC" = yes; then
22170 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'
22172 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'
22174 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22175 hardcode_libdir_separator_F77=:
22176 hardcode_direct_F77=yes
22178 # hardcode_minus_L: Not really in the search PATH,
22179 # but as the default location of the library.
22180 hardcode_minus_L_F77=yes
22181 export_dynamic_flag_spec_F77='${wl}-E'
22185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22186 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22188 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22190 if test "$with_gnu_ld" = no; then
22191 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22192 hardcode_libdir_separator_F77=:
22194 hardcode_direct_F77=yes
22195 export_dynamic_flag_spec_F77='${wl}-E'
22197 # hardcode_minus_L: Not really in the search PATH,
22198 # but as the default location of the library.
22199 hardcode_minus_L_F77=yes
22204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22207 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22210 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22213 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22219 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22222 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22225 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22229 if test "$with_gnu_ld" = no; then
22230 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22231 hardcode_libdir_separator_F77=:
22235 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22236 hardcode_direct_F77=no
22237 hardcode_shlibpath_var_F77=no
22240 hardcode_direct_F77=yes
22241 export_dynamic_flag_spec_F77='${wl}-E'
22243 # hardcode_minus_L: Not really in the search PATH,
22244 # but as the default location of the library.
22245 hardcode_minus_L_F77=yes
22251 irix5* | irix6* | nonstopux*)
22252 if test "$GCC" = yes; then
22253 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'
22255 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'
22256 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22258 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22259 hardcode_libdir_separator_F77=:
22260 link_all_deplibs_F77=yes
22264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22265 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22267 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22269 hardcode_libdir_flag_spec_F77='-R$libdir'
22270 hardcode_direct_F77=yes
22271 hardcode_shlibpath_var_F77=no
22275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22276 hardcode_direct_F77=yes
22277 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22278 hardcode_libdir_separator_F77=:
22279 hardcode_shlibpath_var_F77=no
22283 hardcode_direct_F77=yes
22284 hardcode_shlibpath_var_F77=no
22285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22286 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22287 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22288 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22289 export_dynamic_flag_spec_F77='${wl}-E'
22292 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22294 hardcode_libdir_flag_spec_F77='-R$libdir'
22297 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22298 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22305 hardcode_libdir_flag_spec_F77='-L$libdir'
22306 hardcode_minus_L_F77=yes
22307 allow_undefined_flag_F77=unsupported
22308 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'
22309 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22313 if test "$GCC" = yes; then
22314 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22315 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'
22317 allow_undefined_flag_F77=' -expect_unresolved \*'
22318 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'
22320 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22321 hardcode_libdir_separator_F77=:
22324 osf4* | osf5*) # as osf3* with the addition of -msym flag
22325 if test "$GCC" = yes; then
22326 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22327 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'
22328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22330 allow_undefined_flag_F77=' -expect_unresolved \*'
22331 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'
22332 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~
22333 $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'
22335 # Both c and cxx compiler support -rpath directly
22336 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22338 hardcode_libdir_separator_F77=:
22342 no_undefined_flag_F77=' -z text'
22343 if test "$GCC" = yes; then
22345 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22346 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22347 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22350 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22351 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22354 hardcode_libdir_flag_spec_F77='-R$libdir'
22355 hardcode_shlibpath_var_F77=no
22357 solaris2.[0-5] | solaris2.[0-5].*) ;;
22359 # The compiler driver will combine linker options so we
22360 # cannot just pass the convience library names through
22361 # without $wl, iff we do not link with $LD.
22362 # Luckily, gcc supports the same syntax we need for Sun Studio.
22363 # Supported since Solaris 2.6 (maybe 2.5.1?)
22366 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22368 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' ;;
22371 link_all_deplibs_F77=yes
22375 if test "x$host_vendor" = xsequent; then
22376 # Use $CC to link under sequent, because it throws in some extra .o
22377 # files that make .init and .fini sections work.
22378 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22380 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22382 hardcode_libdir_flag_spec_F77='-L$libdir'
22383 hardcode_direct_F77=yes
22384 hardcode_minus_L_F77=yes
22385 hardcode_shlibpath_var_F77=no
22389 case $host_vendor in
22391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22392 hardcode_direct_F77=yes # is this really true???
22395 ## LD is ld it makes a PLAMLIB
22396 ## CC just makes a GrossModule.
22397 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22398 reload_cmds_F77='$CC -r -o $output$reload_objs'
22399 hardcode_direct_F77=no
22402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22403 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22406 runpath_var='LD_RUN_PATH'
22407 hardcode_shlibpath_var_F77=no
22411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22412 hardcode_shlibpath_var_F77=no
22413 export_dynamic_flag_spec_F77='-Bexport'
22417 if test -d /usr/nec; then
22418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22419 hardcode_shlibpath_var_F77=no
22420 runpath_var=LD_RUN_PATH
22421 hardcode_runpath_var=yes
22426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22427 no_undefined_flag_F77='${wl}-z,text'
22428 archive_cmds_need_lc_F77=no
22429 hardcode_shlibpath_var_F77=no
22430 runpath_var='LD_RUN_PATH'
22432 if test "$GCC" = yes; then
22433 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22434 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22436 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22437 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22441 sysv5* | sco3.2v5* | sco5v6*)
22442 # Note: We can NOT use -z defs as we might desire, because we do not
22443 # link with -lc, and that would cause any symbols used from libc to
22444 # always be unresolved, which means just about no library would
22445 # ever link correctly. If we're not using GNU ld we use -z text
22446 # though, which does catch some bad symbols but isn't as heavy-handed
22448 no_undefined_flag_F77='${wl}-z,text'
22449 allow_undefined_flag_F77='${wl}-z,nodefs'
22450 archive_cmds_need_lc_F77=no
22451 hardcode_shlibpath_var_F77=no
22452 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22453 hardcode_libdir_separator_F77=':'
22454 link_all_deplibs_F77=yes
22455 export_dynamic_flag_spec_F77='${wl}-Bexport'
22456 runpath_var='LD_RUN_PATH'
22458 if test "$GCC" = yes; then
22459 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22460 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22462 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469 hardcode_libdir_flag_spec_F77='-L$libdir'
22470 hardcode_shlibpath_var_F77=no
22479 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22480 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22481 test "$ld_shlibs_F77" = no && can_build_shared=no
22484 # Do we need to explicitly link libc?
22486 case "x$archive_cmds_need_lc_F77" in
22488 # Assume -lc should be added
22489 archive_cmds_need_lc_F77=yes
22491 if test "$enable_shared" = yes && test "$GCC" = yes; then
22492 case $archive_cmds_F77 in
22494 # FIXME: we may have to deal with multi-command sequences.
22497 # Test whether the compiler implicitly links with -lc since on some
22498 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22499 # to ld, don't add -lc before -lgcc.
22500 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22501 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } 2>conftest.err; then
22512 libobjs=conftest.$ac_objext
22514 wl=$lt_prog_compiler_wl_F77
22515 pic_flag=$lt_prog_compiler_pic_F77
22521 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22522 allow_undefined_flag_F77=
22523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22524 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }
22529 archive_cmds_need_lc_F77=no
22531 archive_cmds_need_lc_F77=yes
22533 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22535 cat conftest.err 1>&5
22538 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22539 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22546 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22548 library_names_spec=
22549 libname_spec='lib$name'
22553 postuninstall_cmds=
22557 shlibpath_overrides_runpath=unknown
22559 dynamic_linker="$host_os ld.so"
22560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22561 if test "$GCC" = yes; then
22562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22564 # if the path contains ";" then we assume it to be the separator
22565 # otherwise default to the standard path separator (i.e. ":") - it is
22566 # assumed that no part of a normal pathname contains ";" but that should
22567 # okay in the real world where ";" in dirpaths is itself problematic.
22568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22575 need_lib_prefix=unknown
22576 hardcode_into_libs=no
22578 # when you set need_version to no, make sure it does not cause -set_version
22579 # flags to be left without arguments
22580 need_version=unknown
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22586 shlibpath_var=LIBPATH
22588 # AIX 3 has no versioning support, so we append a major version to the name.
22589 soname_spec='${libname}${release}${shared_ext}$major'
22596 hardcode_into_libs=yes
22597 if test "$host_cpu" = ia64; then
22598 # AIX 5 supports IA64
22599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22600 shlibpath_var=LD_LIBRARY_PATH
22602 # With GCC up to 2.95.x, collect2 would create an import file
22603 # for dependence libraries. The import file would start with
22604 # the line `#! .'. This would cause the generated library to
22605 # depend on `.', always an invalid library. This was fixed in
22606 # development snapshots of GCC prior to 3.0.
22608 aix4 | aix4.[01] | aix4.[01].*)
22609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22614 can_build_shared=no
22618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22619 # soname into executable. Probably we can add versioning support to
22620 # collect2, so additional links can be useful in future.
22621 if test "$aix_use_runtimelinking" = yes; then
22622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22623 # instead of lib<name>.a to let people know that these are not
22624 # typical AIX shared libraries.
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22627 # We preserve .a as extension for shared libraries through AIX4.2
22628 # and later when we are not doing run time linking.
22629 library_names_spec='${libname}${release}.a $libname.a'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22632 shlibpath_var=LIBPATH
22637 library_names_spec='$libname.ixlibrary $libname.a'
22638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22639 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'
22643 library_names_spec='${libname}${shared_ext}'
22644 dynamic_linker="$host_os ld.so"
22645 shlibpath_var=LIBRARY_PATH
22651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22652 soname_spec='${libname}${release}${shared_ext}$major'
22653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22654 shlibpath_var=LD_LIBRARY_PATH
22655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22657 # the default ld.so.conf also contains /usr/contrib/lib and
22658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22659 # libtool to hard-code these into programs
22662 cygwin* | mingw* | pw32*)
22663 version_type=windows
22668 case $GCC,$host_os in
22669 yes,cygwin* | yes,mingw* | yes,pw32*)
22670 library_names_spec='$libname.dll.a'
22671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22672 postinstall_cmds='base_file=`basename \${file}`~
22673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22674 dldir=$destdir/`dirname \$dlpath`~
22675 test -d \$dldir || mkdir -p \$dldir~
22676 $install_prog $dir/$dlname \$dldir/$dlname~
22677 chmod a+x \$dldir/$dlname'
22678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22679 dlpath=$dir/\$dldll~
22681 shlibpath_overrides_runpath=yes
22685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22690 # MinGW DLLs use traditional 'lib' prefix
22691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22694 # It is most probably a Windows format PATH printed by
22695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22696 # path with ; separators, and with drive letters. We can handle the
22697 # drive letters (cygwin fileutils understands them), so leave them,
22698 # especially as we might pass files found there to a mingw objdump,
22699 # which wouldn't understand a cygwinified path. Ahh.
22700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22706 # pw32 DLLs use 'pw' prefix rather than 'lib'
22707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22716 dynamic_linker='Win32 ld.exe'
22717 # FIXME: first we should search . and the directory the executable is in
22721 darwin* | rhapsody*)
22722 dynamic_linker="$host_os dyld"
22723 version_type=darwin
22726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22727 soname_spec='${libname}${release}${major}$shared_ext'
22728 shlibpath_overrides_runpath=yes
22729 shlibpath_var=DYLD_LIBRARY_PATH
22730 shrext_cmds='.dylib'
22731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22732 if test "$GCC" = yes; then
22733 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"`
22735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22745 soname_spec='${libname}${release}${shared_ext}$major'
22746 shlibpath_var=LD_LIBRARY_PATH
22757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22758 soname_spec='${libname}${release}${shared_ext}$major'
22759 shlibpath_var=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath=no
22761 hardcode_into_libs=yes
22762 dynamic_linker='GNU ld.so'
22765 freebsd* | dragonfly*)
22766 # DragonFly does not have aout. When/if they implement a new
22767 # versioning mechanism, adjust this.
22768 if test -x /usr/bin/objformat; then
22769 objformat=`/usr/bin/objformat`
22772 freebsd[123]*) objformat=aout ;;
22773 *) objformat=elf ;;
22776 version_type=freebsd-$objformat
22777 case $version_type in
22779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22788 shlibpath_var=LD_LIBRARY_PATH
22791 shlibpath_overrides_runpath=yes
22793 freebsd3.[01]* | freebsdelf3.[01]*)
22794 shlibpath_overrides_runpath=yes
22795 hardcode_into_libs=yes
22797 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22798 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22799 shlibpath_overrides_runpath=no
22800 hardcode_into_libs=yes
22802 freebsd*) # from 4.6 on
22803 shlibpath_overrides_runpath=yes
22804 hardcode_into_libs=yes
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22814 soname_spec='${libname}${release}${shared_ext}$major'
22815 shlibpath_var=LD_LIBRARY_PATH
22816 hardcode_into_libs=yes
22819 hpux9* | hpux10* | hpux11*)
22820 # Give a soname corresponding to the major version so that dld.sl refuses to
22821 # link against other versions.
22828 hardcode_into_libs=yes
22829 dynamic_linker="$host_os dld.so"
22830 shlibpath_var=LD_LIBRARY_PATH
22831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 if test "X$HPUX_IA64_MODE" = X32; then
22835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22843 hardcode_into_libs=yes
22844 dynamic_linker="$host_os dld.sl"
22845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22854 dynamic_linker="$host_os dld.sl"
22855 shlibpath_var=SHLIB_PATH
22856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22861 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22862 postinstall_cmds='chmod 555 $lib'
22869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22870 soname_spec='${libname}${release}${shared_ext}$major'
22871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=no
22874 hardcode_into_libs=yes
22877 irix5* | irix6* | nonstopux*)
22879 nonstopux*) version_type=nonstopux ;;
22881 if test "$lt_cv_prog_gnu_ld" = yes; then
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22892 irix5* | nonstopux*)
22893 libsuff= shlibsuff=
22896 case $LD in # libtool.m4 will add one of these switches to LD
22897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22898 libsuff= shlibsuff= libmagic=32-bit;;
22899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22900 libsuff=32 shlibsuff=N32 libmagic=N32;;
22901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22903 *) libsuff= shlibsuff= libmagic=never-match;;
22907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22908 shlibpath_overrides_runpath=no
22909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22911 hardcode_into_libs=yes
22914 # No shared lib support for Linux oldld, aout, or coff.
22915 linux*oldld* | linux*aout* | linux*coff*)
22919 # This must be Linux ELF.
22924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22925 soname_spec='${libname}${release}${shared_ext}$major'
22926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22927 shlibpath_var=LD_LIBRARY_PATH
22928 shlibpath_overrides_runpath=no
22929 # This implies no fast_install, which is unacceptable.
22930 # Some rework will be needed to allow for fast_install
22931 # before this can be enabled.
22932 hardcode_into_libs=yes
22934 # Append ld.so.conf contents to the search path
22935 if test -f /etc/ld.so.conf; then
22936 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' ' '`
22937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22940 # We used to test for /lib/ld.so.1 and disable shared libraries on
22941 # powerpc, because MkLinux only supported shared libraries with the
22942 # GNU dynamic linker. Since this was broken with cross compilers,
22943 # most powerpc-linux boxes support dynamic linking these days and
22944 # people can always --disable-shared, the test was removed, and we
22945 # assume the GNU/Linux dynamic linker is in use.
22946 dynamic_linker='GNU/Linux ld.so'
22953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22954 soname_spec='${libname}${release}${shared_ext}$major'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 shlibpath_overrides_runpath=no
22957 hardcode_into_libs=yes
22958 dynamic_linker='GNU ld.so'
22965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22968 dynamic_linker='NetBSD (a.out) ld.so'
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22971 soname_spec='${libname}${release}${shared_ext}$major'
22972 dynamic_linker='NetBSD ld.elf_so'
22974 shlibpath_var=LD_LIBRARY_PATH
22975 shlibpath_overrides_runpath=yes
22976 hardcode_into_libs=yes
22981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 shlibpath_overrides_runpath=yes
22990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22991 soname_spec='${libname}${release}${shared_ext}$major'
22992 shlibpath_var=LD_LIBRARY_PATH
22993 shlibpath_overrides_runpath=yes
22998 sys_lib_dlsearch_path_spec="/usr/lib"
23000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23002 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23003 *) need_version=no ;;
23005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23007 shlibpath_var=LD_LIBRARY_PATH
23008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23010 openbsd2.[89] | openbsd2.[89].*)
23011 shlibpath_overrides_runpath=no
23014 shlibpath_overrides_runpath=yes
23018 shlibpath_overrides_runpath=yes
23023 libname_spec='$name'
23026 library_names_spec='$libname${shared_ext} $libname.a'
23027 dynamic_linker='OS/2 ld.exe'
23028 shlibpath_var=LIBPATH
23031 osf3* | osf4* | osf5*)
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23037 shlibpath_var=LD_LIBRARY_PATH
23038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23047 soname_spec='${libname}${release}${shared_ext}$major'
23048 shlibpath_var=LD_LIBRARY_PATH
23049 shlibpath_overrides_runpath=yes
23050 hardcode_into_libs=yes
23051 # ldd complains unless libraries are executable
23052 postinstall_cmds='chmod +x $lib'
23057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23059 shlibpath_var=LD_LIBRARY_PATH
23060 shlibpath_overrides_runpath=yes
23061 if test "$with_gnu_ld" = yes; then
23069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23070 soname_spec='${libname}${release}${shared_ext}$major'
23071 shlibpath_var=LD_LIBRARY_PATH
23072 case $host_vendor in
23074 shlibpath_overrides_runpath=no
23076 export_dynamic_flag_spec='${wl}-Blargedynsym'
23077 runpath_var=LD_RUN_PATH
23085 shlibpath_overrides_runpath=no
23086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23092 if test -d /usr/nec ;then
23094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23095 soname_spec='$libname${shared_ext}.$major'
23096 shlibpath_var=LD_LIBRARY_PATH
23100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23101 version_type=freebsd-elf
23104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23105 soname_spec='${libname}${release}${shared_ext}$major'
23106 shlibpath_var=LD_LIBRARY_PATH
23107 hardcode_into_libs=yes
23108 if test "$with_gnu_ld" = yes; then
23109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23110 shlibpath_overrides_runpath=no
23112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23113 shlibpath_overrides_runpath=yes
23116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23120 sys_lib_dlsearch_path_spec='/usr/lib'
23125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23126 soname_spec='${libname}${release}${shared_ext}$major'
23127 shlibpath_var=LD_LIBRARY_PATH
23134 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23135 echo "${ECHO_T}$dynamic_linker" >&6; }
23136 test "$dynamic_linker" = no && can_build_shared=no
23138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23139 if test "$GCC" = yes; then
23140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23143 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23145 hardcode_action_F77=
23146 if test -n "$hardcode_libdir_flag_spec_F77" || \
23147 test -n "$runpath_var_F77" || \
23148 test "X$hardcode_automatic_F77" = "Xyes" ; then
23150 # We can hardcode non-existant directories.
23151 if test "$hardcode_direct_F77" != no &&
23152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23153 # have to relink, otherwise we might link with an installed library
23154 # when we should be linking with a yet-to-be-installed one
23155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23156 test "$hardcode_minus_L_F77" != no; then
23157 # Linking always hardcodes the temporary library directory.
23158 hardcode_action_F77=relink
23160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23161 hardcode_action_F77=immediate
23164 # We cannot hardcode anything, or else we can only hardcode existing
23166 hardcode_action_F77=unsupported
23168 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23169 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23171 if test "$hardcode_action_F77" = relink; then
23172 # Fast installation is not supported
23173 enable_fast_install=no
23174 elif test "$shlibpath_overrides_runpath" = yes ||
23175 test "$enable_shared" = no; then
23176 # Fast installation is not necessary
23177 enable_fast_install=needless
23181 # The else clause should only fire when bootstrapping the
23182 # libtool distribution, otherwise you forgot to ship ltmain.sh
23183 # with your package, and you will get complaints that there are
23184 # no rules to generate ltmain.sh.
23185 if test -f "$ltmain"; then
23186 # See if we are running on zsh, and set the options which allow our commands through
23187 # without removal of \ escapes.
23188 if test -n "${ZSH_VERSION+set}" ; then
23189 setopt NO_GLOB_SUBST
23191 # Now quote all the things that may contain metacharacters while being
23192 # careful not to overquote the AC_SUBSTed values. We take copies of the
23193 # variables and quote the copies for generation of the libtool script.
23194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23198 deplibs_check_method reload_flag reload_cmds need_locks \
23199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23200 lt_cv_sys_global_symbol_to_c_name_address \
23201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23202 old_postinstall_cmds old_postuninstall_cmds \
23206 lt_prog_compiler_wl_F77 \
23207 lt_prog_compiler_pic_F77 \
23208 lt_prog_compiler_static_F77 \
23209 lt_prog_compiler_no_builtin_flag_F77 \
23210 export_dynamic_flag_spec_F77 \
23211 thread_safe_flag_spec_F77 \
23212 whole_archive_flag_spec_F77 \
23213 enable_shared_with_static_runtimes_F77 \
23214 old_archive_cmds_F77 \
23215 old_archive_from_new_cmds_F77 \
23216 predep_objects_F77 \
23217 postdep_objects_F77 \
23220 compiler_lib_search_path_F77 \
23222 archive_expsym_cmds_F77 \
23223 postinstall_cmds_F77 \
23224 postuninstall_cmds_F77 \
23225 old_archive_from_expsyms_cmds_F77 \
23226 allow_undefined_flag_F77 \
23227 no_undefined_flag_F77 \
23228 export_symbols_cmds_F77 \
23229 hardcode_libdir_flag_spec_F77 \
23230 hardcode_libdir_flag_spec_ld_F77 \
23231 hardcode_libdir_separator_F77 \
23232 hardcode_automatic_F77 \
23234 module_expsym_cmds_F77 \
23235 lt_cv_prog_compiler_c_o_F77 \
23236 exclude_expsyms_F77 \
23237 include_expsyms_F77; do
23240 old_archive_cmds_F77 | \
23241 old_archive_from_new_cmds_F77 | \
23242 archive_cmds_F77 | \
23243 archive_expsym_cmds_F77 | \
23244 module_cmds_F77 | \
23245 module_expsym_cmds_F77 | \
23246 old_archive_from_expsyms_cmds_F77 | \
23247 export_symbols_cmds_F77 | \
23248 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23249 postinstall_cmds | postuninstall_cmds | \
23250 old_postinstall_cmds | old_postuninstall_cmds | \
23251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23252 # Double-quote double-evaled strings.
23253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23262 *'\$0 --fallback-echo"')
23263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23269 cat <<__EOF__ >> "$cfgfile"
23270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23274 # Shell to use when invoking shell scripts.
23277 # Whether or not to build shared libraries.
23278 build_libtool_libs=$enable_shared
23280 # Whether or not to build static libraries.
23281 build_old_libs=$enable_static
23283 # Whether or not to add -lc for building shared libraries.
23284 build_libtool_need_lc=$archive_cmds_need_lc_F77
23286 # Whether or not to disallow shared libs when runtime libs are static
23287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23289 # Whether or not to optimize for fast installation.
23290 fast_install=$enable_fast_install
23293 host_alias=$host_alias
23297 # The build system.
23298 build_alias=$build_alias
23302 # An echo program that does not interpret backslashes.
23307 AR_FLAGS=$lt_AR_FLAGS
23312 # LTCC compiler flags.
23313 LTCFLAGS=$lt_LTCFLAGS
23315 # A language-specific compiler.
23316 CC=$lt_compiler_F77
23318 # Is the compiler the GNU C compiler?
23324 # The linker used to build libraries.
23327 # Whether we need hard or soft links.
23330 # A BSD-compatible nm program.
23333 # A symbol stripping program
23336 # Used to examine libraries when file_magic_cmd begins "file"
23337 MAGIC_CMD=$MAGIC_CMD
23339 # Used on cygwin: DLL creation program.
23342 # Used on cygwin: object dumper.
23345 # Used on cygwin: assembler.
23348 # The name of the directory that contains temporary libtool files.
23351 # How to create reloadable object files.
23352 reload_flag=$lt_reload_flag
23353 reload_cmds=$lt_reload_cmds
23355 # How to pass a linker flag through the compiler.
23356 wl=$lt_lt_prog_compiler_wl_F77
23358 # Object file suffix (normally "o").
23359 objext="$ac_objext"
23361 # Old archive suffix (normally "a").
23364 # Shared library suffix (normally ".so").
23365 shrext_cmds='$shrext_cmds'
23367 # Executable file suffix (normally "").
23370 # Additional compiler flags for building library objects.
23371 pic_flag=$lt_lt_prog_compiler_pic_F77
23374 # What is the maximum length of a command?
23375 max_cmd_len=$lt_cv_sys_max_cmd_len
23377 # Does compiler simultaneously support -c and -o options?
23378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23380 # Must we lock files when doing compilation?
23381 need_locks=$lt_need_locks
23383 # Do we need the lib prefix for modules?
23384 need_lib_prefix=$need_lib_prefix
23386 # Do we need a version for libraries?
23387 need_version=$need_version
23389 # Whether dlopen is supported.
23390 dlopen_support=$enable_dlopen
23392 # Whether dlopen of programs is supported.
23393 dlopen_self=$enable_dlopen_self
23395 # Whether dlopen of statically linked programs is supported.
23396 dlopen_self_static=$enable_dlopen_self_static
23398 # Compiler flag to prevent dynamic linking.
23399 link_static_flag=$lt_lt_prog_compiler_static_F77
23401 # Compiler flag to turn off builtin functions.
23402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23404 # Compiler flag to allow reflexive dlopens.
23405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23407 # Compiler flag to generate shared objects directly from archives.
23408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23410 # Compiler flag to generate thread-safe objects.
23411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23413 # Library versioning type.
23414 version_type=$version_type
23416 # Format of library name prefix.
23417 libname_spec=$lt_libname_spec
23419 # List of archive names. First name is the real one, the rest are links.
23420 # The last name is the one that the linker finds with -lNAME.
23421 library_names_spec=$lt_library_names_spec
23423 # The coded name of the library, if different from the real name.
23424 soname_spec=$lt_soname_spec
23426 # Commands used to build and install an old-style archive.
23428 old_archive_cmds=$lt_old_archive_cmds_F77
23429 old_postinstall_cmds=$lt_old_postinstall_cmds
23430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23432 # Create an old-style archive from a shared archive.
23433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23435 # Create a temporary old-style archive to link instead of a shared archive.
23436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23438 # Commands used to build and install a shared archive.
23439 archive_cmds=$lt_archive_cmds_F77
23440 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23441 postinstall_cmds=$lt_postinstall_cmds
23442 postuninstall_cmds=$lt_postuninstall_cmds
23444 # Commands used to build a loadable module (assumed same as above if empty)
23445 module_cmds=$lt_module_cmds_F77
23446 module_expsym_cmds=$lt_module_expsym_cmds_F77
23448 # Commands to strip libraries.
23449 old_striplib=$lt_old_striplib
23450 striplib=$lt_striplib
23452 # Dependencies to place before the objects being linked to create a
23454 predep_objects=$lt_predep_objects_F77
23456 # Dependencies to place after the objects being linked to create a
23458 postdep_objects=$lt_postdep_objects_F77
23460 # Dependencies to place before the objects being linked to create a
23462 predeps=$lt_predeps_F77
23464 # Dependencies to place after the objects being linked to create a
23466 postdeps=$lt_postdeps_F77
23468 # The library search path used internally by the compiler when linking
23469 # a shared library.
23470 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23472 # Method to check whether dependent libraries are shared objects.
23473 deplibs_check_method=$lt_deplibs_check_method
23475 # Command to use when deplibs_check_method == file_magic.
23476 file_magic_cmd=$lt_file_magic_cmd
23478 # Flag that allows shared libraries with undefined symbols to be built.
23479 allow_undefined_flag=$lt_allow_undefined_flag_F77
23481 # Flag that forces no undefined symbols.
23482 no_undefined_flag=$lt_no_undefined_flag_F77
23484 # Commands used to finish a libtool library installation in a directory.
23485 finish_cmds=$lt_finish_cmds
23487 # Same as above, but a single script fragment to be evaled but not shown.
23488 finish_eval=$lt_finish_eval
23490 # Take the output of nm and produce a listing of raw symbols and C names.
23491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23493 # Transform the output of nm in a proper C declaration
23494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23496 # Transform the output of nm in a C name address pair
23497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23499 # This is the shared library runtime path variable.
23500 runpath_var=$runpath_var
23502 # This is the shared library path variable.
23503 shlibpath_var=$shlibpath_var
23505 # Is shlibpath searched before the hard-coded library search path?
23506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23508 # How to hardcode a shared library path into an executable.
23509 hardcode_action=$hardcode_action_F77
23511 # Whether we should hardcode library paths into libraries.
23512 hardcode_into_libs=$hardcode_into_libs
23514 # Flag to hardcode \$libdir into a binary during linking.
23515 # This must work even if \$libdir does not exist.
23516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23518 # If ld is used when linking, flag to hardcode \$libdir into
23519 # a binary during linking. This must work even if \$libdir does
23521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23523 # Whether we need a single -rpath flag with a separated argument.
23524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23527 # resulting binary.
23528 hardcode_direct=$hardcode_direct_F77
23530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23531 # resulting binary.
23532 hardcode_minus_L=$hardcode_minus_L_F77
23534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23535 # the resulting binary.
23536 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23538 # Set to yes if building a shared library automatically hardcodes DIR into the library
23539 # and all subsequent libraries and executables linked against it.
23540 hardcode_automatic=$hardcode_automatic_F77
23542 # Variables whose values should be saved in libtool wrapper scripts and
23543 # restored at relink time.
23544 variables_saved_for_relink="$variables_saved_for_relink"
23546 # Whether libtool must link a program against all its dependency libraries.
23547 link_all_deplibs=$link_all_deplibs_F77
23549 # Compile-time system search path for libraries
23550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23552 # Run-time system search path for libraries
23553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23555 # Fix the shell variable \$srcfile for the compiler.
23556 fix_srcfile_path="$fix_srcfile_path_F77"
23558 # Set to yes if exported symbols are required.
23559 always_export_symbols=$always_export_symbols_F77
23561 # The commands to list exported symbols.
23562 export_symbols_cmds=$lt_export_symbols_cmds_F77
23564 # The commands to extract the exported symbol list from a shared archive.
23565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23567 # Symbols that should not be listed in the preloaded symbols.
23568 exclude_expsyms=$lt_exclude_expsyms_F77
23570 # Symbols that must always be exported.
23571 include_expsyms=$lt_include_expsyms_F77
23573 # ### END LIBTOOL TAG CONFIG: $tagname
23579 # If there is no Makefile yet, we rely on a make rule to execute
23580 # `config.status --recheck' to rerun these tests and create the
23581 # libtool script then.
23582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23583 if test -f "$ltmain_in"; then
23584 test -f Makefile && make "$ltmain"
23590 ac_cpp='$CPP $CPPFLAGS'
23591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23603 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23605 ac_cpp='$CPP $CPPFLAGS'
23606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23611 # Source file extension for Java test sources.
23614 # Object file extension for compiled Java test sources.
23618 # Code to be used in simple compile tests
23619 lt_simple_compile_test_code="class foo {}\n"
23621 # Code to be used in simple link tests
23622 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23626 # If no C compiler was specified, use CC.
23629 # If no C compiler flags were specified, use CFLAGS.
23630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23632 # Allow CC to be a program name with arguments.
23636 # save warnings/boilerplate of simple test code
23637 ac_outfile=conftest.$ac_objext
23638 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23640 _lt_compiler_boilerplate=`cat conftest.err`
23643 ac_outfile=conftest.$ac_objext
23644 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23646 _lt_linker_boilerplate=`cat conftest.err`
23650 # Allow CC to be a program name with arguments.
23655 for cc_temp in $compiler""; do
23657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23666 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23667 archive_cmds_need_lc_GCJ=no
23669 old_archive_cmds_GCJ=$old_archive_cmds
23672 lt_prog_compiler_no_builtin_flag_GCJ=
23674 if test "$GCC" = yes; then
23675 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23678 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23683 lt_cv_prog_compiler_rtti_exceptions=no
23684 ac_outfile=conftest.$ac_objext
23685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23686 lt_compiler_flag="-fno-rtti -fno-exceptions"
23687 # Insert the option either (1) after the last *FLAGS variable, or
23688 # (2) before a word containing "conftest.", or (3) at the end.
23689 # Note that $ac_compile itself does not contain backslashes and begins
23690 # with a dollar sign (not a hyphen), so the echo should work correctly.
23691 # The option is referenced via a variable to avoid confusing sed.
23692 lt_compile=`echo "$ac_compile" | $SED \
23693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23695 -e 's:$: $lt_compiler_flag:'`
23696 (eval echo "\"\$as_me:23696: $lt_compile\"" >&5)
23697 (eval "$lt_compile" 2>conftest.err)
23699 cat conftest.err >&5
23700 echo "$as_me:23700: \$? = $ac_status" >&5
23701 if (exit $ac_status) && test -s "$ac_outfile"; then
23702 # The compiler can only warn and ignore the option if not recognized
23703 # So say no if there are warnings other than the usual output.
23704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23707 lt_cv_prog_compiler_rtti_exceptions=yes
23713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23717 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23724 lt_prog_compiler_wl_GCJ=
23725 lt_prog_compiler_pic_GCJ=
23726 lt_prog_compiler_static_GCJ=
23728 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23731 if test "$GCC" = yes; then
23732 lt_prog_compiler_wl_GCJ='-Wl,'
23733 lt_prog_compiler_static_GCJ='-static'
23737 # All AIX code is PIC.
23738 if test "$host_cpu" = ia64; then
23739 # AIX 5 now supports IA64 processor
23740 lt_prog_compiler_static_GCJ='-Bstatic'
23745 # FIXME: we need at least 68020 code to build shared libraries, but
23746 # adding the `-m68020' flag to GCC prevents building anything better,
23748 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23751 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23752 # PIC is the default for these OSes.
23755 mingw* | pw32* | os2*)
23756 # This hack is so that the source file can tell whether it is being
23757 # built for inclusion in a dll (and should export symbols for example).
23758 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23761 darwin* | rhapsody*)
23762 # PIC is the default on this platform
23763 # Common symbols not allowed in MH_DYLIB files
23764 lt_prog_compiler_pic_GCJ='-fno-common'
23768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23769 # Instead, we relocate shared libraries at runtime.
23773 # Just because we use GCC doesn't mean we suddenly get shared libraries
23774 # on systems that don't support them.
23775 lt_prog_compiler_can_build_shared_GCJ=no
23780 if test -d /usr/nec; then
23781 lt_prog_compiler_pic_GCJ=-Kconform_pic
23786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23787 # not for PA HP-UX.
23793 lt_prog_compiler_pic_GCJ='-fPIC'
23799 lt_prog_compiler_pic_GCJ='-fPIC'
23803 # PORTME Check for flag to pass linker flags through the system compiler.
23806 lt_prog_compiler_wl_GCJ='-Wl,'
23807 if test "$host_cpu" = ia64; then
23808 # AIX 5 now supports IA64 processor
23809 lt_prog_compiler_static_GCJ='-Bstatic'
23811 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23815 # PIC is the default on this platform
23816 # Common symbols not allowed in MH_DYLIB files
23817 case $cc_basename in
23819 lt_prog_compiler_pic_GCJ='-qnocommon'
23820 lt_prog_compiler_wl_GCJ='-Wl,'
23825 mingw* | pw32* | os2*)
23826 # This hack is so that the source file can tell whether it is being
23827 # built for inclusion in a dll (and should export symbols for example).
23828 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23831 hpux9* | hpux10* | hpux11*)
23832 lt_prog_compiler_wl_GCJ='-Wl,'
23833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23834 # not for PA HP-UX.
23840 lt_prog_compiler_pic_GCJ='+Z'
23843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23844 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23847 irix5* | irix6* | nonstopux*)
23848 lt_prog_compiler_wl_GCJ='-Wl,'
23849 # PIC (with -KPIC) is the default.
23850 lt_prog_compiler_static_GCJ='-non_shared'
23854 lt_prog_compiler_pic_GCJ='-KPIC'
23855 lt_prog_compiler_static_GCJ='-Bstatic'
23859 case $cc_basename in
23861 lt_prog_compiler_wl_GCJ='-Wl,'
23862 lt_prog_compiler_pic_GCJ='-KPIC'
23863 lt_prog_compiler_static_GCJ='-static'
23865 pgcc* | pgf77* | pgf90* | pgf95*)
23866 # Portland Group compilers (*not* the Pentium gcc compiler,
23867 # which looks to be a dead project)
23868 lt_prog_compiler_wl_GCJ='-Wl,'
23869 lt_prog_compiler_pic_GCJ='-fpic'
23870 lt_prog_compiler_static_GCJ='-Bstatic'
23873 lt_prog_compiler_wl_GCJ='-Wl,'
23874 # All Alpha code is PIC.
23875 lt_prog_compiler_static_GCJ='-non_shared'
23880 osf3* | osf4* | osf5*)
23881 lt_prog_compiler_wl_GCJ='-Wl,'
23882 # All OSF/1 code is PIC.
23883 lt_prog_compiler_static_GCJ='-non_shared'
23887 lt_prog_compiler_pic_GCJ='-KPIC'
23888 lt_prog_compiler_static_GCJ='-Bstatic'
23889 case $cc_basename in
23890 f77* | f90* | f95*)
23891 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23893 lt_prog_compiler_wl_GCJ='-Wl,';;
23898 lt_prog_compiler_wl_GCJ='-Qoption ld '
23899 lt_prog_compiler_pic_GCJ='-PIC'
23900 lt_prog_compiler_static_GCJ='-Bstatic'
23903 sysv4 | sysv4.2uw2* | sysv4.3*)
23904 lt_prog_compiler_wl_GCJ='-Wl,'
23905 lt_prog_compiler_pic_GCJ='-KPIC'
23906 lt_prog_compiler_static_GCJ='-Bstatic'
23910 if test -d /usr/nec ;then
23911 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23912 lt_prog_compiler_static_GCJ='-Bstatic'
23916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23917 lt_prog_compiler_wl_GCJ='-Wl,'
23918 lt_prog_compiler_pic_GCJ='-KPIC'
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23923 lt_prog_compiler_wl_GCJ='-Wl,'
23924 lt_prog_compiler_can_build_shared_GCJ=no
23928 lt_prog_compiler_pic_GCJ='-pic'
23929 lt_prog_compiler_static_GCJ='-Bstatic'
23933 lt_prog_compiler_can_build_shared_GCJ=no
23938 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23939 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23942 # Check to make sure the PIC flag actually works.
23944 if test -n "$lt_prog_compiler_pic_GCJ"; then
23946 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23947 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23948 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23949 echo $ECHO_N "(cached) $ECHO_C" >&6
23951 lt_prog_compiler_pic_works_GCJ=no
23952 ac_outfile=conftest.$ac_objext
23953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23954 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23955 # Insert the option either (1) after the last *FLAGS variable, or
23956 # (2) before a word containing "conftest.", or (3) at the end.
23957 # Note that $ac_compile itself does not contain backslashes and begins
23958 # with a dollar sign (not a hyphen), so the echo should work correctly.
23959 # The option is referenced via a variable to avoid confusing sed.
23960 lt_compile=`echo "$ac_compile" | $SED \
23961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23963 -e 's:$: $lt_compiler_flag:'`
23964 (eval echo "\"\$as_me:23964: $lt_compile\"" >&5)
23965 (eval "$lt_compile" 2>conftest.err)
23967 cat conftest.err >&5
23968 echo "$as_me:23968: \$? = $ac_status" >&5
23969 if (exit $ac_status) && test -s "$ac_outfile"; then
23970 # The compiler can only warn and ignore the option if not recognized
23971 # So say no if there are warnings other than the usual output.
23972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23975 lt_prog_compiler_pic_works_GCJ=yes
23981 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23982 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23984 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23985 case $lt_prog_compiler_pic_GCJ in
23987 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23990 lt_prog_compiler_pic_GCJ=
23991 lt_prog_compiler_can_build_shared_GCJ=no
23996 # For platforms which do not support PIC, -DPIC is meaningless:
23998 lt_prog_compiler_pic_GCJ=
24001 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24006 # Check to make sure the static flag actually works.
24008 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24009 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24010 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24011 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24014 lt_prog_compiler_static_works_GCJ=no
24015 save_LDFLAGS="$LDFLAGS"
24016 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24017 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24019 # The linker can only warn and ignore the option if not recognized
24020 # So say no if there are warnings
24021 if test -s conftest.err; then
24022 # Append any errors to the config.log.
24023 cat conftest.err 1>&5
24024 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24026 if diff conftest.exp conftest.er2 >/dev/null; then
24027 lt_prog_compiler_static_works_GCJ=yes
24030 lt_prog_compiler_static_works_GCJ=yes
24034 LDFLAGS="$save_LDFLAGS"
24037 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24038 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24040 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24043 lt_prog_compiler_static_GCJ=
24047 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24049 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 lt_cv_prog_compiler_c_o_GCJ=no
24053 $rm -r conftest 2>/dev/null
24057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24059 lt_compiler_flag="-o out/conftest2.$ac_objext"
24060 # Insert the option either (1) after the last *FLAGS variable, or
24061 # (2) before a word containing "conftest.", or (3) at the end.
24062 # Note that $ac_compile itself does not contain backslashes and begins
24063 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
24071 cat out/conftest.err >&5
24072 echo "$as_me:24072: \$? = $ac_status" >&5
24073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24075 # The compiler can only warn and ignore the option if not recognized
24076 # So say no if there are warnings
24077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24080 lt_cv_prog_compiler_c_o_GCJ=yes
24085 # SGI C++ compiler will create directory out/ii_files/ for
24086 # template instantiation
24087 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24088 $rm out/* && rmdir out
24094 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24095 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24098 hard_links="nottested"
24099 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24100 # do not overwrite the value of need_locks provided by the user
24101 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24102 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24107 ln conftest.a conftest.b 2>&5 || hard_links=no
24108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24109 { echo "$as_me:$LINENO: result: $hard_links" >&5
24110 echo "${ECHO_T}$hard_links" >&6; }
24111 if test "$hard_links" = no; then
24112 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24113 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24120 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24121 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24124 allow_undefined_flag_GCJ=
24125 enable_shared_with_static_runtimes_GCJ=no
24127 archive_expsym_cmds_GCJ=
24128 old_archive_From_new_cmds_GCJ=
24129 old_archive_from_expsyms_cmds_GCJ=
24130 export_dynamic_flag_spec_GCJ=
24131 whole_archive_flag_spec_GCJ=
24132 thread_safe_flag_spec_GCJ=
24133 hardcode_libdir_flag_spec_GCJ=
24134 hardcode_libdir_flag_spec_ld_GCJ=
24135 hardcode_libdir_separator_GCJ=
24136 hardcode_direct_GCJ=no
24137 hardcode_minus_L_GCJ=no
24138 hardcode_shlibpath_var_GCJ=unsupported
24139 link_all_deplibs_GCJ=unknown
24140 hardcode_automatic_GCJ=no
24142 module_expsym_cmds_GCJ=
24143 always_export_symbols_GCJ=no
24144 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24145 # include_expsyms should be a list of space-separated symbols to be *always*
24146 # included in the symbol list
24147 include_expsyms_GCJ=
24148 # exclude_expsyms can be an extended regexp of symbols to exclude
24149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24151 # as well as any symbol that contains `d'.
24152 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24154 # platforms (ab)use it in PIC code, but their linkers get confused if
24155 # the symbol is explicitly referenced. Since portable code cannot
24156 # rely on this symbol name, it's probably fine to never include it in
24157 # preloaded symbol tables.
24158 extract_expsyms_cmds=
24159 # Just being paranoid about ensuring that cc_basename is set.
24160 for cc_temp in $compiler""; do
24162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24171 cygwin* | mingw* | pw32*)
24172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24173 # When not using gcc, we currently assume that we are using
24174 # Microsoft Visual C++.
24175 if test "$GCC" != yes; then
24180 # we just hope/assume this is gcc and not c89 (= MSVC++)
24189 if test "$with_gnu_ld" = yes; then
24190 # If archive_cmds runs LD, not CC, wlarc should be empty
24193 # Set some defaults for GNU ld with shared library support. These
24194 # are reset later if shared libraries are not supported. Putting them
24195 # here allows them to be overridden if necessary.
24196 runpath_var=LD_RUN_PATH
24197 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24198 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24199 # ancient GNU ld didn't support --whole-archive et. al.
24200 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24201 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24203 whole_archive_flag_spec_GCJ=
24205 supports_anon_versioning=no
24206 case `$LD -v 2>/dev/null` in
24207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24210 *\ 2.11.*) ;; # other 2.11 versions
24211 *) supports_anon_versioning=yes ;;
24214 # See if GNU ld supports shared libraries.
24216 aix3* | aix4* | aix5*)
24217 # On AIX/PPC, the GNU linker is very broken
24218 if test "$host_cpu" != ia64; then
24222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24223 *** to be unable to reliably create shared libraries on AIX.
24224 *** Therefore, libtool is disabling shared libraries support. If you
24225 *** really care for shared libraries, you may want to modify your PATH
24226 *** so that a non-GNU linker is found, and then restart.
24233 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)'
24234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24235 hardcode_minus_L_GCJ=yes
24237 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24238 # that the semantics of dynamic libraries on AmigaOS, at least up
24239 # to version 4, is to share data among multiple programs linked
24240 # with the same dynamic library. Since this doesn't match the
24241 # behavior of shared libraries on other platforms, we can't use
24247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24248 allow_undefined_flag_GCJ=unsupported
24249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24250 # support --undefined. This deserves some investigation. FIXME
24251 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24257 cygwin* | mingw* | pw32*)
24258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24259 # as there is no search path for DLLs.
24260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24261 allow_undefined_flag_GCJ=unsupported
24262 always_export_symbols_GCJ=no
24263 enable_shared_with_static_runtimes_GCJ=yes
24264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24266 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24267 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24268 # If the export-symbols file already is a .def file (1st line
24269 # is EXPORTS), use it as is; otherwise, prepend...
24270 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24271 cp $export_symbols $output_objdir/$soname.def;
24273 echo EXPORTS > $output_objdir/$soname.def;
24274 cat $export_symbols >> $output_objdir/$soname.def;
24276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24283 hardcode_direct_GCJ=no
24284 hardcode_shlibpath_var_GCJ=no
24285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24286 export_dynamic_flag_spec_GCJ='${wl}-E'
24287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24288 # Instead, shared libraries are loaded at an image base (0x10000000 by
24289 # default) and relocated if they conflict, which is a slow very memory
24290 # consuming and fragmenting process. To avoid this, we pick a random,
24291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24293 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'
24294 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'
24298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24300 case $cc_basename,$host_cpu in
24301 pgcc*) # Portland Group C compiler
24302 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'
24303 tmp_addflag=' $pic_flag'
24305 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24306 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'
24307 tmp_addflag=' $pic_flag -Mnomain' ;;
24308 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24309 tmp_addflag=' -i_dynamic' ;;
24310 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24311 tmp_addflag=' -i_dynamic -nofor_main' ;;
24312 ifc* | ifort*) # Intel Fortran compiler
24313 tmp_addflag=' -nofor_main' ;;
24315 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24317 if test $supports_anon_versioning = yes; then
24318 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24320 $echo "local: *; };" >> $output_objdir/$libname.ver~
24321 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24330 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24333 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24334 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24339 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24343 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24344 *** create shared libraries on Solaris systems. Therefore, libtool
24345 *** is disabling shared libraries support. We urge you to upgrade GNU
24346 *** binutils to release 2.9.1 or newer. Another option is to modify
24347 *** your PATH or compiler configuration so that the native linker is
24348 *** used, and then restart.
24351 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24352 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24353 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24360 case `$LD -v 2>&1` in
24361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24365 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24366 *** reliably create shared libraries on SCO systems. Therefore, libtool
24367 *** is disabling shared libraries support. We urge you to upgrade GNU
24368 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24369 *** your PATH or compiler configuration so that the native linker is
24370 *** used, and then restart.
24375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24376 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24377 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24378 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24387 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24389 hardcode_direct_GCJ=yes
24390 hardcode_shlibpath_var_GCJ=no
24394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24396 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24403 if test "$ld_shlibs_GCJ" = no; then
24405 hardcode_libdir_flag_spec_GCJ=
24406 export_dynamic_flag_spec_GCJ=
24407 whole_archive_flag_spec_GCJ=
24410 # PORTME fill in a description of your system's linker (not GNU ld)
24413 allow_undefined_flag_GCJ=unsupported
24414 always_export_symbols_GCJ=yes
24415 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'
24416 # Note: this linker hardcodes the directories in LIBPATH if there
24417 # are no directories specified by -L.
24418 hardcode_minus_L_GCJ=yes
24419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24420 # Neither direct hardcoding nor static linking is supported with a
24422 hardcode_direct_GCJ=unsupported
24427 if test "$host_cpu" = ia64; then
24428 # On IA64, the linker does run time linking by default, so we don't
24429 # have to do anything special.
24430 aix_use_runtimelinking=no
24431 exp_sym_flag='-Bexport'
24434 # If we're using GNU nm, then we don't want the "-C" option.
24435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24436 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24437 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'
24439 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'
24441 aix_use_runtimelinking=no
24443 # Test if we are trying to use run time linking or normal
24444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24445 # need to do runtime linking.
24446 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24447 for ld_flag in $LDFLAGS; do
24448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24449 aix_use_runtimelinking=yes
24456 exp_sym_flag='-bexport'
24457 no_entry_flag='-bnoentry'
24460 # When large executables or shared objects are built, AIX ld can
24461 # have problems creating the table of contents. If linking a library
24462 # or program results in "error TOC overflow" add -mminimal-toc to
24463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24466 archive_cmds_GCJ=''
24467 hardcode_direct_GCJ=yes
24468 hardcode_libdir_separator_GCJ=':'
24469 link_all_deplibs_GCJ=yes
24471 if test "$GCC" = yes; then
24472 case $host_os in aix4.[012]|aix4.[012].*)
24473 # We only want to do this on AIX 4.2 and lower, the check
24474 # below for broken collect2 doesn't work under 4.3+
24475 collect2name=`${CC} -print-prog-name=collect2`
24476 if test -f "$collect2name" && \
24477 strings "$collect2name" | grep resolve_lib_name >/dev/null
24479 # We have reworked collect2
24480 hardcode_direct_GCJ=yes
24482 # We have old collect2
24483 hardcode_direct_GCJ=unsupported
24484 # It fails to find uninstalled libraries when the uninstalled
24485 # path is not listed in the libpath. Setting hardcode_minus_L
24486 # to unsupported forces relinking
24487 hardcode_minus_L_GCJ=yes
24488 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24489 hardcode_libdir_separator_GCJ=
24493 shared_flag='-shared'
24494 if test "$aix_use_runtimelinking" = yes; then
24495 shared_flag="$shared_flag "'${wl}-G'
24499 if test "$host_cpu" = ia64; then
24500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24501 # chokes on -Wl,-G. The following line is correct:
24504 if test "$aix_use_runtimelinking" = yes; then
24505 shared_flag='${wl}-G'
24507 shared_flag='${wl}-bM:SRE'
24512 # It seems that -bexpall does not export symbols beginning with
24513 # underscore (_), so it is better to generate a list of symbols to export.
24514 always_export_symbols_GCJ=yes
24515 if test "$aix_use_runtimelinking" = yes; then
24516 # Warning - without using the other runtime loading flags (-brtl),
24517 # -berok will link without error, but may produce a broken library.
24518 allow_undefined_flag_GCJ='-berok'
24519 # Determine the default libpath from the value encoded in an empty executable.
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24535 rm -f conftest.$ac_objext conftest$ac_exeext
24536 if { (ac_try="$ac_link"
24537 case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542 (eval "$ac_link") 2>conftest.er1
24544 grep -v '^ *+' conftest.er1 >conftest.err
24546 cat conftest.err >&5
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } &&
24549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24550 { (case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_try") 2>&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; } &&
24559 { ac_try='test -s conftest$ac_exeext'
24560 { (case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565 (eval "$ac_try") 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24572 # Check for a 64-bit object if we didn't find anything.
24573 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; }
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24582 rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24586 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24587 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"
24589 if test "$host_cpu" = ia64; then
24590 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24591 allow_undefined_flag_GCJ="-z nodefs"
24592 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"
24594 # Determine the default libpath from the value encoded in an empty executable.
24595 cat >conftest.$ac_ext <<_ACEOF
24598 cat confdefs.h >>conftest.$ac_ext
24599 cat >>conftest.$ac_ext <<_ACEOF
24600 /* end confdefs.h. */
24610 rm -f conftest.$ac_objext conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24617 (eval "$ac_link") 2>conftest.er1
24619 grep -v '^ *+' conftest.er1 >conftest.err
24621 cat conftest.err >&5
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); } &&
24624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24625 { (case "(($ac_try" in
24626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627 *) ac_try_echo=$ac_try;;
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630 (eval "$ac_try") 2>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest$ac_exeext'
24635 { (case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_try") 2>&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); }; }; then
24645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24647 # Check for a 64-bit object if we didn't find anything.
24648 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; }
24651 echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24657 rm -f core conftest.err conftest.$ac_objext \
24658 conftest$ac_exeext conftest.$ac_ext
24659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24661 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24662 # Warning - without using the other run time loading flags,
24663 # -berok will link without error, but may produce a broken library.
24664 no_undefined_flag_GCJ=' ${wl}-bernotok'
24665 allow_undefined_flag_GCJ=' ${wl}-berok'
24666 # Exported symbols can be pulled into shared objects from archives
24667 whole_archive_flag_spec_GCJ='$convenience'
24668 archive_cmds_need_lc_GCJ=yes
24669 # This is similar to how AIX traditionally builds its shared libraries.
24670 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'
24676 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)'
24677 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24678 hardcode_minus_L_GCJ=yes
24679 # see comment about different semantics on the GNU ld section
24684 export_dynamic_flag_spec_GCJ=-rdynamic
24687 cygwin* | mingw* | pw32*)
24688 # When not using gcc, we currently assume that we are using
24689 # Microsoft Visual C++.
24690 # hardcode_libdir_flag_spec is actually meaningless, as there is
24691 # no search path for DLLs.
24692 hardcode_libdir_flag_spec_GCJ=' '
24693 allow_undefined_flag_GCJ=unsupported
24694 # Tell ltmain to make .lib files, not .a files.
24696 # Tell ltmain to make .dll files, not .so files.
24698 # FIXME: Setting linknames here is a bad hack.
24699 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24700 # The linker will automatically build a .lib file if we build a DLL.
24701 old_archive_From_new_cmds_GCJ='true'
24702 # FIXME: Should let the user specify the lib program.
24703 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24704 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24705 enable_shared_with_static_runtimes_GCJ=yes
24708 darwin* | rhapsody*)
24710 rhapsody* | darwin1.[012])
24711 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24715 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24717 case ${MACOSX_DEPLOYMENT_TARGET} in
24719 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24722 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24728 archive_cmds_need_lc_GCJ=no
24729 hardcode_direct_GCJ=no
24730 hardcode_automatic_GCJ=yes
24731 hardcode_shlibpath_var_GCJ=unsupported
24732 whole_archive_flag_spec_GCJ=''
24733 link_all_deplibs_GCJ=yes
24734 if test "$GCC" = yes ; then
24735 output_verbose_link_cmd='echo'
24736 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24737 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24739 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}'
24740 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}'
24742 case $cc_basename in
24744 output_verbose_link_cmd='echo'
24745 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24746 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24748 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}'
24749 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}'
24759 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761 hardcode_shlibpath_var_GCJ=no
24768 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24769 # support. Future versions do this automatically, but an explicit c++rt0.o
24770 # does not break anything, and helps significantly (at the cost of a little
24773 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24775 hardcode_direct_GCJ=yes
24776 hardcode_shlibpath_var_GCJ=no
24779 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24781 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24782 hardcode_direct_GCJ=yes
24783 hardcode_minus_L_GCJ=yes
24784 hardcode_shlibpath_var_GCJ=no
24787 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24788 freebsd* | kfreebsd*-gnu | dragonfly*)
24789 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24790 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24791 hardcode_direct_GCJ=yes
24792 hardcode_shlibpath_var_GCJ=no
24796 if test "$GCC" = yes; then
24797 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'
24799 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'
24801 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24802 hardcode_libdir_separator_GCJ=:
24803 hardcode_direct_GCJ=yes
24805 # hardcode_minus_L: Not really in the search PATH,
24806 # but as the default location of the library.
24807 hardcode_minus_L_GCJ=yes
24808 export_dynamic_flag_spec_GCJ='${wl}-E'
24812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24813 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24815 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24817 if test "$with_gnu_ld" = no; then
24818 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24819 hardcode_libdir_separator_GCJ=:
24821 hardcode_direct_GCJ=yes
24822 export_dynamic_flag_spec_GCJ='${wl}-E'
24824 # hardcode_minus_L: Not really in the search PATH,
24825 # but as the default location of the library.
24826 hardcode_minus_L_GCJ=yes
24831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24834 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24837 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24840 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24846 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24849 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24852 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24856 if test "$with_gnu_ld" = no; then
24857 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24858 hardcode_libdir_separator_GCJ=:
24862 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24863 hardcode_direct_GCJ=no
24864 hardcode_shlibpath_var_GCJ=no
24867 hardcode_direct_GCJ=yes
24868 export_dynamic_flag_spec_GCJ='${wl}-E'
24870 # hardcode_minus_L: Not really in the search PATH,
24871 # but as the default location of the library.
24872 hardcode_minus_L_GCJ=yes
24878 irix5* | irix6* | nonstopux*)
24879 if test "$GCC" = yes; then
24880 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'
24882 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'
24883 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24886 hardcode_libdir_separator_GCJ=:
24887 link_all_deplibs_GCJ=yes
24891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24894 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24896 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24897 hardcode_direct_GCJ=yes
24898 hardcode_shlibpath_var_GCJ=no
24902 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24903 hardcode_direct_GCJ=yes
24904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24905 hardcode_libdir_separator_GCJ=:
24906 hardcode_shlibpath_var_GCJ=no
24910 hardcode_direct_GCJ=yes
24911 hardcode_shlibpath_var_GCJ=no
24912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24913 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24914 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24916 export_dynamic_flag_spec_GCJ='${wl}-E'
24919 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24920 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24921 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24924 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24925 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24933 hardcode_minus_L_GCJ=yes
24934 allow_undefined_flag_GCJ=unsupported
24935 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'
24936 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24940 if test "$GCC" = yes; then
24941 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24942 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'
24944 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24945 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'
24947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24948 hardcode_libdir_separator_GCJ=:
24951 osf4* | osf5*) # as osf3* with the addition of -msym flag
24952 if test "$GCC" = yes; then
24953 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24954 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'
24955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24957 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24958 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'
24959 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~
24960 $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'
24962 # Both c and cxx compiler support -rpath directly
24963 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24965 hardcode_libdir_separator_GCJ=:
24969 no_undefined_flag_GCJ=' -z text'
24970 if test "$GCC" = yes; then
24972 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24973 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24974 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24977 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24978 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24982 hardcode_shlibpath_var_GCJ=no
24984 solaris2.[0-5] | solaris2.[0-5].*) ;;
24986 # The compiler driver will combine linker options so we
24987 # cannot just pass the convience library names through
24988 # without $wl, iff we do not link with $LD.
24989 # Luckily, gcc supports the same syntax we need for Sun Studio.
24990 # Supported since Solaris 2.6 (maybe 2.5.1?)
24993 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24995 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' ;;
24998 link_all_deplibs_GCJ=yes
25002 if test "x$host_vendor" = xsequent; then
25003 # Use $CC to link under sequent, because it throws in some extra .o
25004 # files that make .init and .fini sections work.
25005 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25007 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25010 hardcode_direct_GCJ=yes
25011 hardcode_minus_L_GCJ=yes
25012 hardcode_shlibpath_var_GCJ=no
25016 case $host_vendor in
25018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25019 hardcode_direct_GCJ=yes # is this really true???
25022 ## LD is ld it makes a PLAMLIB
25023 ## CC just makes a GrossModule.
25024 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25025 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25026 hardcode_direct_GCJ=no
25029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25030 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25033 runpath_var='LD_RUN_PATH'
25034 hardcode_shlibpath_var_GCJ=no
25038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25039 hardcode_shlibpath_var_GCJ=no
25040 export_dynamic_flag_spec_GCJ='-Bexport'
25044 if test -d /usr/nec; then
25045 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25046 hardcode_shlibpath_var_GCJ=no
25047 runpath_var=LD_RUN_PATH
25048 hardcode_runpath_var=yes
25053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25054 no_undefined_flag_GCJ='${wl}-z,text'
25055 archive_cmds_need_lc_GCJ=no
25056 hardcode_shlibpath_var_GCJ=no
25057 runpath_var='LD_RUN_PATH'
25059 if test "$GCC" = yes; then
25060 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25061 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25063 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25064 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25068 sysv5* | sco3.2v5* | sco5v6*)
25069 # Note: We can NOT use -z defs as we might desire, because we do not
25070 # link with -lc, and that would cause any symbols used from libc to
25071 # always be unresolved, which means just about no library would
25072 # ever link correctly. If we're not using GNU ld we use -z text
25073 # though, which does catch some bad symbols but isn't as heavy-handed
25075 no_undefined_flag_GCJ='${wl}-z,text'
25076 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25077 archive_cmds_need_lc_GCJ=no
25078 hardcode_shlibpath_var_GCJ=no
25079 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25080 hardcode_libdir_separator_GCJ=':'
25081 link_all_deplibs_GCJ=yes
25082 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25083 runpath_var='LD_RUN_PATH'
25085 if test "$GCC" = yes; then
25086 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25087 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25089 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25090 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25097 hardcode_shlibpath_var_GCJ=no
25106 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25107 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25108 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25111 # Do we need to explicitly link libc?
25113 case "x$archive_cmds_need_lc_GCJ" in
25115 # Assume -lc should be added
25116 archive_cmds_need_lc_GCJ=yes
25118 if test "$enable_shared" = yes && test "$GCC" = yes; then
25119 case $archive_cmds_GCJ in
25121 # FIXME: we may have to deal with multi-command sequences.
25124 # Test whether the compiler implicitly links with -lc since on some
25125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25126 # to ld, don't add -lc before -lgcc.
25127 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25128 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25133 (eval $ac_compile) 2>&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } 2>conftest.err; then
25139 libobjs=conftest.$ac_objext
25141 wl=$lt_prog_compiler_wl_GCJ
25142 pic_flag=$lt_prog_compiler_pic_GCJ
25148 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25149 allow_undefined_flag_GCJ=
25150 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25151 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }
25156 archive_cmds_need_lc_GCJ=no
25158 archive_cmds_need_lc_GCJ=yes
25160 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25162 cat conftest.err 1>&5
25165 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25166 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25173 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25174 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25175 library_names_spec=
25176 libname_spec='lib$name'
25180 postuninstall_cmds=
25184 shlibpath_overrides_runpath=unknown
25186 dynamic_linker="$host_os ld.so"
25187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25188 if test "$GCC" = yes; then
25189 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25190 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25191 # if the path contains ";" then we assume it to be the separator
25192 # otherwise default to the standard path separator (i.e. ":") - it is
25193 # assumed that no part of a normal pathname contains ";" but that should
25194 # okay in the real world where ";" in dirpaths is itself problematic.
25195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25200 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25202 need_lib_prefix=unknown
25203 hardcode_into_libs=no
25205 # when you set need_version to no, make sure it does not cause -set_version
25206 # flags to be left without arguments
25207 need_version=unknown
25212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25213 shlibpath_var=LIBPATH
25215 # AIX 3 has no versioning support, so we append a major version to the name.
25216 soname_spec='${libname}${release}${shared_ext}$major'
25223 hardcode_into_libs=yes
25224 if test "$host_cpu" = ia64; then
25225 # AIX 5 supports IA64
25226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25227 shlibpath_var=LD_LIBRARY_PATH
25229 # With GCC up to 2.95.x, collect2 would create an import file
25230 # for dependence libraries. The import file would start with
25231 # the line `#! .'. This would cause the generated library to
25232 # depend on `.', always an invalid library. This was fixed in
25233 # development snapshots of GCC prior to 3.0.
25235 aix4 | aix4.[01] | aix4.[01].*)
25236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25238 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25241 can_build_shared=no
25245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25246 # soname into executable. Probably we can add versioning support to
25247 # collect2, so additional links can be useful in future.
25248 if test "$aix_use_runtimelinking" = yes; then
25249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25250 # instead of lib<name>.a to let people know that these are not
25251 # typical AIX shared libraries.
25252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25254 # We preserve .a as extension for shared libraries through AIX4.2
25255 # and later when we are not doing run time linking.
25256 library_names_spec='${libname}${release}.a $libname.a'
25257 soname_spec='${libname}${release}${shared_ext}$major'
25259 shlibpath_var=LIBPATH
25264 library_names_spec='$libname.ixlibrary $libname.a'
25265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25266 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'
25270 library_names_spec='${libname}${shared_ext}'
25271 dynamic_linker="$host_os ld.so"
25272 shlibpath_var=LIBRARY_PATH
25278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25279 soname_spec='${libname}${release}${shared_ext}$major'
25280 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25281 shlibpath_var=LD_LIBRARY_PATH
25282 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25283 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25284 # the default ld.so.conf also contains /usr/contrib/lib and
25285 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25286 # libtool to hard-code these into programs
25289 cygwin* | mingw* | pw32*)
25290 version_type=windows
25295 case $GCC,$host_os in
25296 yes,cygwin* | yes,mingw* | yes,pw32*)
25297 library_names_spec='$libname.dll.a'
25298 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25299 postinstall_cmds='base_file=`basename \${file}`~
25300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25301 dldir=$destdir/`dirname \$dlpath`~
25302 test -d \$dldir || mkdir -p \$dldir~
25303 $install_prog $dir/$dlname \$dldir/$dlname~
25304 chmod a+x \$dldir/$dlname'
25305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25306 dlpath=$dir/\$dldll~
25308 shlibpath_overrides_runpath=yes
25312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25314 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25317 # MinGW DLLs use traditional 'lib' prefix
25318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25321 # It is most probably a Windows format PATH printed by
25322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25323 # path with ; separators, and with drive letters. We can handle the
25324 # drive letters (cygwin fileutils understands them), so leave them,
25325 # especially as we might pass files found there to a mingw objdump,
25326 # which wouldn't understand a cygwinified path. Ahh.
25327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25333 # pw32 DLLs use 'pw' prefix rather than 'lib'
25334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25343 dynamic_linker='Win32 ld.exe'
25344 # FIXME: first we should search . and the directory the executable is in
25348 darwin* | rhapsody*)
25349 dynamic_linker="$host_os dyld"
25350 version_type=darwin
25353 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25354 soname_spec='${libname}${release}${major}$shared_ext'
25355 shlibpath_overrides_runpath=yes
25356 shlibpath_var=DYLD_LIBRARY_PATH
25357 shrext_cmds='.dylib'
25358 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25359 if test "$GCC" = yes; then
25360 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"`
25362 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25372 soname_spec='${libname}${release}${shared_ext}$major'
25373 shlibpath_var=LD_LIBRARY_PATH
25384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25385 soname_spec='${libname}${release}${shared_ext}$major'
25386 shlibpath_var=LD_LIBRARY_PATH
25387 shlibpath_overrides_runpath=no
25388 hardcode_into_libs=yes
25389 dynamic_linker='GNU ld.so'
25392 freebsd* | dragonfly*)
25393 # DragonFly does not have aout. When/if they implement a new
25394 # versioning mechanism, adjust this.
25395 if test -x /usr/bin/objformat; then
25396 objformat=`/usr/bin/objformat`
25399 freebsd[123]*) objformat=aout ;;
25400 *) objformat=elf ;;
25403 version_type=freebsd-$objformat
25404 case $version_type in
25406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25415 shlibpath_var=LD_LIBRARY_PATH
25418 shlibpath_overrides_runpath=yes
25420 freebsd3.[01]* | freebsdelf3.[01]*)
25421 shlibpath_overrides_runpath=yes
25422 hardcode_into_libs=yes
25424 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25425 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25426 shlibpath_overrides_runpath=no
25427 hardcode_into_libs=yes
25429 freebsd*) # from 4.6 on
25430 shlibpath_overrides_runpath=yes
25431 hardcode_into_libs=yes
25440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25441 soname_spec='${libname}${release}${shared_ext}$major'
25442 shlibpath_var=LD_LIBRARY_PATH
25443 hardcode_into_libs=yes
25446 hpux9* | hpux10* | hpux11*)
25447 # Give a soname corresponding to the major version so that dld.sl refuses to
25448 # link against other versions.
25455 hardcode_into_libs=yes
25456 dynamic_linker="$host_os dld.so"
25457 shlibpath_var=LD_LIBRARY_PATH
25458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25460 soname_spec='${libname}${release}${shared_ext}$major'
25461 if test "X$HPUX_IA64_MODE" = X32; then
25462 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25464 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25470 hardcode_into_libs=yes
25471 dynamic_linker="$host_os dld.sl"
25472 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25481 dynamic_linker="$host_os dld.sl"
25482 shlibpath_var=SHLIB_PATH
25483 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25485 soname_spec='${libname}${release}${shared_ext}$major'
25488 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25489 postinstall_cmds='chmod 555 $lib'
25496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25497 soname_spec='${libname}${release}${shared_ext}$major'
25498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 shlibpath_overrides_runpath=no
25501 hardcode_into_libs=yes
25504 irix5* | irix6* | nonstopux*)
25506 nonstopux*) version_type=nonstopux ;;
25508 if test "$lt_cv_prog_gnu_ld" = yes; then
25516 soname_spec='${libname}${release}${shared_ext}$major'
25517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25519 irix5* | nonstopux*)
25520 libsuff= shlibsuff=
25523 case $LD in # libtool.m4 will add one of these switches to LD
25524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25525 libsuff= shlibsuff= libmagic=32-bit;;
25526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25527 libsuff=32 shlibsuff=N32 libmagic=N32;;
25528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25530 *) libsuff= shlibsuff= libmagic=never-match;;
25534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25535 shlibpath_overrides_runpath=no
25536 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25537 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25538 hardcode_into_libs=yes
25541 # No shared lib support for Linux oldld, aout, or coff.
25542 linux*oldld* | linux*aout* | linux*coff*)
25546 # This must be Linux ELF.
25551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25552 soname_spec='${libname}${release}${shared_ext}$major'
25553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25554 shlibpath_var=LD_LIBRARY_PATH
25555 shlibpath_overrides_runpath=no
25556 # This implies no fast_install, which is unacceptable.
25557 # Some rework will be needed to allow for fast_install
25558 # before this can be enabled.
25559 hardcode_into_libs=yes
25561 # Append ld.so.conf contents to the search path
25562 if test -f /etc/ld.so.conf; then
25563 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' ' '`
25564 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25567 # We used to test for /lib/ld.so.1 and disable shared libraries on
25568 # powerpc, because MkLinux only supported shared libraries with the
25569 # GNU dynamic linker. Since this was broken with cross compilers,
25570 # most powerpc-linux boxes support dynamic linking these days and
25571 # people can always --disable-shared, the test was removed, and we
25572 # assume the GNU/Linux dynamic linker is in use.
25573 dynamic_linker='GNU/Linux ld.so'
25580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25581 soname_spec='${libname}${release}${shared_ext}$major'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 shlibpath_overrides_runpath=no
25584 hardcode_into_libs=yes
25585 dynamic_linker='GNU ld.so'
25592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25595 dynamic_linker='NetBSD (a.out) ld.so'
25597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25598 soname_spec='${libname}${release}${shared_ext}$major'
25599 dynamic_linker='NetBSD ld.elf_so'
25601 shlibpath_var=LD_LIBRARY_PATH
25602 shlibpath_overrides_runpath=yes
25603 hardcode_into_libs=yes
25608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25609 shlibpath_var=LD_LIBRARY_PATH
25610 shlibpath_overrides_runpath=yes
25617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25618 soname_spec='${libname}${release}${shared_ext}$major'
25619 shlibpath_var=LD_LIBRARY_PATH
25620 shlibpath_overrides_runpath=yes
25625 sys_lib_dlsearch_path_spec="/usr/lib"
25627 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25629 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25630 *) need_version=no ;;
25632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25634 shlibpath_var=LD_LIBRARY_PATH
25635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25637 openbsd2.[89] | openbsd2.[89].*)
25638 shlibpath_overrides_runpath=no
25641 shlibpath_overrides_runpath=yes
25645 shlibpath_overrides_runpath=yes
25650 libname_spec='$name'
25653 library_names_spec='$libname${shared_ext} $libname.a'
25654 dynamic_linker='OS/2 ld.exe'
25655 shlibpath_var=LIBPATH
25658 osf3* | osf4* | osf5*)
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25664 shlibpath_var=LD_LIBRARY_PATH
25665 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25666 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25674 soname_spec='${libname}${release}${shared_ext}$major'
25675 shlibpath_var=LD_LIBRARY_PATH
25676 shlibpath_overrides_runpath=yes
25677 hardcode_into_libs=yes
25678 # ldd complains unless libraries are executable
25679 postinstall_cmds='chmod +x $lib'
25684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25686 shlibpath_var=LD_LIBRARY_PATH
25687 shlibpath_overrides_runpath=yes
25688 if test "$with_gnu_ld" = yes; then
25696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25697 soname_spec='${libname}${release}${shared_ext}$major'
25698 shlibpath_var=LD_LIBRARY_PATH
25699 case $host_vendor in
25701 shlibpath_overrides_runpath=no
25703 export_dynamic_flag_spec='${wl}-Blargedynsym'
25704 runpath_var=LD_RUN_PATH
25712 shlibpath_overrides_runpath=no
25713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25719 if test -d /usr/nec ;then
25721 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25722 soname_spec='$libname${shared_ext}.$major'
25723 shlibpath_var=LD_LIBRARY_PATH
25727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25728 version_type=freebsd-elf
25731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25732 soname_spec='${libname}${release}${shared_ext}$major'
25733 shlibpath_var=LD_LIBRARY_PATH
25734 hardcode_into_libs=yes
25735 if test "$with_gnu_ld" = yes; then
25736 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25737 shlibpath_overrides_runpath=no
25739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25740 shlibpath_overrides_runpath=yes
25743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25747 sys_lib_dlsearch_path_spec='/usr/lib'
25752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25753 soname_spec='${libname}${release}${shared_ext}$major'
25754 shlibpath_var=LD_LIBRARY_PATH
25761 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25762 echo "${ECHO_T}$dynamic_linker" >&6; }
25763 test "$dynamic_linker" = no && can_build_shared=no
25765 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25766 if test "$GCC" = yes; then
25767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25770 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25771 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25772 hardcode_action_GCJ=
25773 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25774 test -n "$runpath_var_GCJ" || \
25775 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25777 # We can hardcode non-existant directories.
25778 if test "$hardcode_direct_GCJ" != no &&
25779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25780 # have to relink, otherwise we might link with an installed library
25781 # when we should be linking with a yet-to-be-installed one
25782 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25783 test "$hardcode_minus_L_GCJ" != no; then
25784 # Linking always hardcodes the temporary library directory.
25785 hardcode_action_GCJ=relink
25787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25788 hardcode_action_GCJ=immediate
25791 # We cannot hardcode anything, or else we can only hardcode existing
25793 hardcode_action_GCJ=unsupported
25795 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25796 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25798 if test "$hardcode_action_GCJ" = relink; then
25799 # Fast installation is not supported
25800 enable_fast_install=no
25801 elif test "$shlibpath_overrides_runpath" = yes ||
25802 test "$enable_shared" = no; then
25803 # Fast installation is not necessary
25804 enable_fast_install=needless
25808 # The else clause should only fire when bootstrapping the
25809 # libtool distribution, otherwise you forgot to ship ltmain.sh
25810 # with your package, and you will get complaints that there are
25811 # no rules to generate ltmain.sh.
25812 if test -f "$ltmain"; then
25813 # See if we are running on zsh, and set the options which allow our commands through
25814 # without removal of \ escapes.
25815 if test -n "${ZSH_VERSION+set}" ; then
25816 setopt NO_GLOB_SUBST
25818 # Now quote all the things that may contain metacharacters while being
25819 # careful not to overquote the AC_SUBSTed values. We take copies of the
25820 # variables and quote the copies for generation of the libtool script.
25821 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25825 deplibs_check_method reload_flag reload_cmds need_locks \
25826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25827 lt_cv_sys_global_symbol_to_c_name_address \
25828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25829 old_postinstall_cmds old_postuninstall_cmds \
25833 lt_prog_compiler_wl_GCJ \
25834 lt_prog_compiler_pic_GCJ \
25835 lt_prog_compiler_static_GCJ \
25836 lt_prog_compiler_no_builtin_flag_GCJ \
25837 export_dynamic_flag_spec_GCJ \
25838 thread_safe_flag_spec_GCJ \
25839 whole_archive_flag_spec_GCJ \
25840 enable_shared_with_static_runtimes_GCJ \
25841 old_archive_cmds_GCJ \
25842 old_archive_from_new_cmds_GCJ \
25843 predep_objects_GCJ \
25844 postdep_objects_GCJ \
25847 compiler_lib_search_path_GCJ \
25849 archive_expsym_cmds_GCJ \
25850 postinstall_cmds_GCJ \
25851 postuninstall_cmds_GCJ \
25852 old_archive_from_expsyms_cmds_GCJ \
25853 allow_undefined_flag_GCJ \
25854 no_undefined_flag_GCJ \
25855 export_symbols_cmds_GCJ \
25856 hardcode_libdir_flag_spec_GCJ \
25857 hardcode_libdir_flag_spec_ld_GCJ \
25858 hardcode_libdir_separator_GCJ \
25859 hardcode_automatic_GCJ \
25861 module_expsym_cmds_GCJ \
25862 lt_cv_prog_compiler_c_o_GCJ \
25863 exclude_expsyms_GCJ \
25864 include_expsyms_GCJ; do
25867 old_archive_cmds_GCJ | \
25868 old_archive_from_new_cmds_GCJ | \
25869 archive_cmds_GCJ | \
25870 archive_expsym_cmds_GCJ | \
25871 module_cmds_GCJ | \
25872 module_expsym_cmds_GCJ | \
25873 old_archive_from_expsyms_cmds_GCJ | \
25874 export_symbols_cmds_GCJ | \
25875 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25876 postinstall_cmds | postuninstall_cmds | \
25877 old_postinstall_cmds | old_postuninstall_cmds | \
25878 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25879 # Double-quote double-evaled strings.
25880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25889 *'\$0 --fallback-echo"')
25890 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25896 cat <<__EOF__ >> "$cfgfile"
25897 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25901 # Shell to use when invoking shell scripts.
25904 # Whether or not to build shared libraries.
25905 build_libtool_libs=$enable_shared
25907 # Whether or not to build static libraries.
25908 build_old_libs=$enable_static
25910 # Whether or not to add -lc for building shared libraries.
25911 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25913 # Whether or not to disallow shared libs when runtime libs are static
25914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25916 # Whether or not to optimize for fast installation.
25917 fast_install=$enable_fast_install
25920 host_alias=$host_alias
25924 # The build system.
25925 build_alias=$build_alias
25929 # An echo program that does not interpret backslashes.
25934 AR_FLAGS=$lt_AR_FLAGS
25939 # LTCC compiler flags.
25940 LTCFLAGS=$lt_LTCFLAGS
25942 # A language-specific compiler.
25943 CC=$lt_compiler_GCJ
25945 # Is the compiler the GNU C compiler?
25951 # The linker used to build libraries.
25954 # Whether we need hard or soft links.
25957 # A BSD-compatible nm program.
25960 # A symbol stripping program
25963 # Used to examine libraries when file_magic_cmd begins "file"
25964 MAGIC_CMD=$MAGIC_CMD
25966 # Used on cygwin: DLL creation program.
25969 # Used on cygwin: object dumper.
25972 # Used on cygwin: assembler.
25975 # The name of the directory that contains temporary libtool files.
25978 # How to create reloadable object files.
25979 reload_flag=$lt_reload_flag
25980 reload_cmds=$lt_reload_cmds
25982 # How to pass a linker flag through the compiler.
25983 wl=$lt_lt_prog_compiler_wl_GCJ
25985 # Object file suffix (normally "o").
25986 objext="$ac_objext"
25988 # Old archive suffix (normally "a").
25991 # Shared library suffix (normally ".so").
25992 shrext_cmds='$shrext_cmds'
25994 # Executable file suffix (normally "").
25997 # Additional compiler flags for building library objects.
25998 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26001 # What is the maximum length of a command?
26002 max_cmd_len=$lt_cv_sys_max_cmd_len
26004 # Does compiler simultaneously support -c and -o options?
26005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26007 # Must we lock files when doing compilation?
26008 need_locks=$lt_need_locks
26010 # Do we need the lib prefix for modules?
26011 need_lib_prefix=$need_lib_prefix
26013 # Do we need a version for libraries?
26014 need_version=$need_version
26016 # Whether dlopen is supported.
26017 dlopen_support=$enable_dlopen
26019 # Whether dlopen of programs is supported.
26020 dlopen_self=$enable_dlopen_self
26022 # Whether dlopen of statically linked programs is supported.
26023 dlopen_self_static=$enable_dlopen_self_static
26025 # Compiler flag to prevent dynamic linking.
26026 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26028 # Compiler flag to turn off builtin functions.
26029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26031 # Compiler flag to allow reflexive dlopens.
26032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26034 # Compiler flag to generate shared objects directly from archives.
26035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26037 # Compiler flag to generate thread-safe objects.
26038 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26040 # Library versioning type.
26041 version_type=$version_type
26043 # Format of library name prefix.
26044 libname_spec=$lt_libname_spec
26046 # List of archive names. First name is the real one, the rest are links.
26047 # The last name is the one that the linker finds with -lNAME.
26048 library_names_spec=$lt_library_names_spec
26050 # The coded name of the library, if different from the real name.
26051 soname_spec=$lt_soname_spec
26053 # Commands used to build and install an old-style archive.
26055 old_archive_cmds=$lt_old_archive_cmds_GCJ
26056 old_postinstall_cmds=$lt_old_postinstall_cmds
26057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26059 # Create an old-style archive from a shared archive.
26060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26062 # Create a temporary old-style archive to link instead of a shared archive.
26063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26065 # Commands used to build and install a shared archive.
26066 archive_cmds=$lt_archive_cmds_GCJ
26067 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26068 postinstall_cmds=$lt_postinstall_cmds
26069 postuninstall_cmds=$lt_postuninstall_cmds
26071 # Commands used to build a loadable module (assumed same as above if empty)
26072 module_cmds=$lt_module_cmds_GCJ
26073 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26075 # Commands to strip libraries.
26076 old_striplib=$lt_old_striplib
26077 striplib=$lt_striplib
26079 # Dependencies to place before the objects being linked to create a
26081 predep_objects=$lt_predep_objects_GCJ
26083 # Dependencies to place after the objects being linked to create a
26085 postdep_objects=$lt_postdep_objects_GCJ
26087 # Dependencies to place before the objects being linked to create a
26089 predeps=$lt_predeps_GCJ
26091 # Dependencies to place after the objects being linked to create a
26093 postdeps=$lt_postdeps_GCJ
26095 # The library search path used internally by the compiler when linking
26096 # a shared library.
26097 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26099 # Method to check whether dependent libraries are shared objects.
26100 deplibs_check_method=$lt_deplibs_check_method
26102 # Command to use when deplibs_check_method == file_magic.
26103 file_magic_cmd=$lt_file_magic_cmd
26105 # Flag that allows shared libraries with undefined symbols to be built.
26106 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26108 # Flag that forces no undefined symbols.
26109 no_undefined_flag=$lt_no_undefined_flag_GCJ
26111 # Commands used to finish a libtool library installation in a directory.
26112 finish_cmds=$lt_finish_cmds
26114 # Same as above, but a single script fragment to be evaled but not shown.
26115 finish_eval=$lt_finish_eval
26117 # Take the output of nm and produce a listing of raw symbols and C names.
26118 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26120 # Transform the output of nm in a proper C declaration
26121 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26123 # Transform the output of nm in a C name address pair
26124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26126 # This is the shared library runtime path variable.
26127 runpath_var=$runpath_var
26129 # This is the shared library path variable.
26130 shlibpath_var=$shlibpath_var
26132 # Is shlibpath searched before the hard-coded library search path?
26133 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26135 # How to hardcode a shared library path into an executable.
26136 hardcode_action=$hardcode_action_GCJ
26138 # Whether we should hardcode library paths into libraries.
26139 hardcode_into_libs=$hardcode_into_libs
26141 # Flag to hardcode \$libdir into a binary during linking.
26142 # This must work even if \$libdir does not exist.
26143 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26145 # If ld is used when linking, flag to hardcode \$libdir into
26146 # a binary during linking. This must work even if \$libdir does
26148 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26150 # Whether we need a single -rpath flag with a separated argument.
26151 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26153 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26154 # resulting binary.
26155 hardcode_direct=$hardcode_direct_GCJ
26157 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26158 # resulting binary.
26159 hardcode_minus_L=$hardcode_minus_L_GCJ
26161 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26162 # the resulting binary.
26163 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26165 # Set to yes if building a shared library automatically hardcodes DIR into the library
26166 # and all subsequent libraries and executables linked against it.
26167 hardcode_automatic=$hardcode_automatic_GCJ
26169 # Variables whose values should be saved in libtool wrapper scripts and
26170 # restored at relink time.
26171 variables_saved_for_relink="$variables_saved_for_relink"
26173 # Whether libtool must link a program against all its dependency libraries.
26174 link_all_deplibs=$link_all_deplibs_GCJ
26176 # Compile-time system search path for libraries
26177 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26179 # Run-time system search path for libraries
26180 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26182 # Fix the shell variable \$srcfile for the compiler.
26183 fix_srcfile_path="$fix_srcfile_path_GCJ"
26185 # Set to yes if exported symbols are required.
26186 always_export_symbols=$always_export_symbols_GCJ
26188 # The commands to list exported symbols.
26189 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26191 # The commands to extract the exported symbol list from a shared archive.
26192 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26194 # Symbols that should not be listed in the preloaded symbols.
26195 exclude_expsyms=$lt_exclude_expsyms_GCJ
26197 # Symbols that must always be exported.
26198 include_expsyms=$lt_include_expsyms_GCJ
26200 # ### END LIBTOOL TAG CONFIG: $tagname
26206 # If there is no Makefile yet, we rely on a make rule to execute
26207 # `config.status --recheck' to rerun these tests and create the
26208 # libtool script then.
26209 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26210 if test -f "$ltmain_in"; then
26211 test -f Makefile && make "$ltmain"
26217 ac_cpp='$CPP $CPPFLAGS'
26218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26231 ac_cpp='$CPP $CPPFLAGS'
26232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26237 # Source file extension for RC test sources.
26240 # Object file extension for compiled RC test sources.
26244 # Code to be used in simple compile tests
26245 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26247 # Code to be used in simple link tests
26248 lt_simple_link_test_code="$lt_simple_compile_test_code"
26250 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26252 # If no C compiler was specified, use CC.
26255 # If no C compiler flags were specified, use CFLAGS.
26256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26258 # Allow CC to be a program name with arguments.
26262 # save warnings/boilerplate of simple test code
26263 ac_outfile=conftest.$ac_objext
26264 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26266 _lt_compiler_boilerplate=`cat conftest.err`
26269 ac_outfile=conftest.$ac_objext
26270 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26272 _lt_linker_boilerplate=`cat conftest.err`
26276 # Allow CC to be a program name with arguments.
26281 for cc_temp in $compiler""; do
26283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26291 lt_cv_prog_compiler_c_o_RC=yes
26293 # The else clause should only fire when bootstrapping the
26294 # libtool distribution, otherwise you forgot to ship ltmain.sh
26295 # with your package, and you will get complaints that there are
26296 # no rules to generate ltmain.sh.
26297 if test -f "$ltmain"; then
26298 # See if we are running on zsh, and set the options which allow our commands through
26299 # without removal of \ escapes.
26300 if test -n "${ZSH_VERSION+set}" ; then
26301 setopt NO_GLOB_SUBST
26303 # Now quote all the things that may contain metacharacters while being
26304 # careful not to overquote the AC_SUBSTed values. We take copies of the
26305 # variables and quote the copies for generation of the libtool script.
26306 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26308 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26309 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26310 deplibs_check_method reload_flag reload_cmds need_locks \
26311 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26312 lt_cv_sys_global_symbol_to_c_name_address \
26313 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26314 old_postinstall_cmds old_postuninstall_cmds \
26318 lt_prog_compiler_wl_RC \
26319 lt_prog_compiler_pic_RC \
26320 lt_prog_compiler_static_RC \
26321 lt_prog_compiler_no_builtin_flag_RC \
26322 export_dynamic_flag_spec_RC \
26323 thread_safe_flag_spec_RC \
26324 whole_archive_flag_spec_RC \
26325 enable_shared_with_static_runtimes_RC \
26326 old_archive_cmds_RC \
26327 old_archive_from_new_cmds_RC \
26328 predep_objects_RC \
26329 postdep_objects_RC \
26332 compiler_lib_search_path_RC \
26334 archive_expsym_cmds_RC \
26335 postinstall_cmds_RC \
26336 postuninstall_cmds_RC \
26337 old_archive_from_expsyms_cmds_RC \
26338 allow_undefined_flag_RC \
26339 no_undefined_flag_RC \
26340 export_symbols_cmds_RC \
26341 hardcode_libdir_flag_spec_RC \
26342 hardcode_libdir_flag_spec_ld_RC \
26343 hardcode_libdir_separator_RC \
26344 hardcode_automatic_RC \
26346 module_expsym_cmds_RC \
26347 lt_cv_prog_compiler_c_o_RC \
26348 exclude_expsyms_RC \
26349 include_expsyms_RC; do
26352 old_archive_cmds_RC | \
26353 old_archive_from_new_cmds_RC | \
26354 archive_cmds_RC | \
26355 archive_expsym_cmds_RC | \
26357 module_expsym_cmds_RC | \
26358 old_archive_from_expsyms_cmds_RC | \
26359 export_symbols_cmds_RC | \
26360 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26361 postinstall_cmds | postuninstall_cmds | \
26362 old_postinstall_cmds | old_postuninstall_cmds | \
26363 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26364 # Double-quote double-evaled strings.
26365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26374 *'\$0 --fallback-echo"')
26375 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26381 cat <<__EOF__ >> "$cfgfile"
26382 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26386 # Shell to use when invoking shell scripts.
26389 # Whether or not to build shared libraries.
26390 build_libtool_libs=$enable_shared
26392 # Whether or not to build static libraries.
26393 build_old_libs=$enable_static
26395 # Whether or not to add -lc for building shared libraries.
26396 build_libtool_need_lc=$archive_cmds_need_lc_RC
26398 # Whether or not to disallow shared libs when runtime libs are static
26399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26401 # Whether or not to optimize for fast installation.
26402 fast_install=$enable_fast_install
26405 host_alias=$host_alias
26409 # The build system.
26410 build_alias=$build_alias
26414 # An echo program that does not interpret backslashes.
26419 AR_FLAGS=$lt_AR_FLAGS
26424 # LTCC compiler flags.
26425 LTCFLAGS=$lt_LTCFLAGS
26427 # A language-specific compiler.
26430 # Is the compiler the GNU C compiler?
26436 # The linker used to build libraries.
26439 # Whether we need hard or soft links.
26442 # A BSD-compatible nm program.
26445 # A symbol stripping program
26448 # Used to examine libraries when file_magic_cmd begins "file"
26449 MAGIC_CMD=$MAGIC_CMD
26451 # Used on cygwin: DLL creation program.
26454 # Used on cygwin: object dumper.
26457 # Used on cygwin: assembler.
26460 # The name of the directory that contains temporary libtool files.
26463 # How to create reloadable object files.
26464 reload_flag=$lt_reload_flag
26465 reload_cmds=$lt_reload_cmds
26467 # How to pass a linker flag through the compiler.
26468 wl=$lt_lt_prog_compiler_wl_RC
26470 # Object file suffix (normally "o").
26471 objext="$ac_objext"
26473 # Old archive suffix (normally "a").
26476 # Shared library suffix (normally ".so").
26477 shrext_cmds='$shrext_cmds'
26479 # Executable file suffix (normally "").
26482 # Additional compiler flags for building library objects.
26483 pic_flag=$lt_lt_prog_compiler_pic_RC
26486 # What is the maximum length of a command?
26487 max_cmd_len=$lt_cv_sys_max_cmd_len
26489 # Does compiler simultaneously support -c and -o options?
26490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26492 # Must we lock files when doing compilation?
26493 need_locks=$lt_need_locks
26495 # Do we need the lib prefix for modules?
26496 need_lib_prefix=$need_lib_prefix
26498 # Do we need a version for libraries?
26499 need_version=$need_version
26501 # Whether dlopen is supported.
26502 dlopen_support=$enable_dlopen
26504 # Whether dlopen of programs is supported.
26505 dlopen_self=$enable_dlopen_self
26507 # Whether dlopen of statically linked programs is supported.
26508 dlopen_self_static=$enable_dlopen_self_static
26510 # Compiler flag to prevent dynamic linking.
26511 link_static_flag=$lt_lt_prog_compiler_static_RC
26513 # Compiler flag to turn off builtin functions.
26514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26516 # Compiler flag to allow reflexive dlopens.
26517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26519 # Compiler flag to generate shared objects directly from archives.
26520 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26522 # Compiler flag to generate thread-safe objects.
26523 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26525 # Library versioning type.
26526 version_type=$version_type
26528 # Format of library name prefix.
26529 libname_spec=$lt_libname_spec
26531 # List of archive names. First name is the real one, the rest are links.
26532 # The last name is the one that the linker finds with -lNAME.
26533 library_names_spec=$lt_library_names_spec
26535 # The coded name of the library, if different from the real name.
26536 soname_spec=$lt_soname_spec
26538 # Commands used to build and install an old-style archive.
26540 old_archive_cmds=$lt_old_archive_cmds_RC
26541 old_postinstall_cmds=$lt_old_postinstall_cmds
26542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26544 # Create an old-style archive from a shared archive.
26545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26547 # Create a temporary old-style archive to link instead of a shared archive.
26548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26550 # Commands used to build and install a shared archive.
26551 archive_cmds=$lt_archive_cmds_RC
26552 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26553 postinstall_cmds=$lt_postinstall_cmds
26554 postuninstall_cmds=$lt_postuninstall_cmds
26556 # Commands used to build a loadable module (assumed same as above if empty)
26557 module_cmds=$lt_module_cmds_RC
26558 module_expsym_cmds=$lt_module_expsym_cmds_RC
26560 # Commands to strip libraries.
26561 old_striplib=$lt_old_striplib
26562 striplib=$lt_striplib
26564 # Dependencies to place before the objects being linked to create a
26566 predep_objects=$lt_predep_objects_RC
26568 # Dependencies to place after the objects being linked to create a
26570 postdep_objects=$lt_postdep_objects_RC
26572 # Dependencies to place before the objects being linked to create a
26574 predeps=$lt_predeps_RC
26576 # Dependencies to place after the objects being linked to create a
26578 postdeps=$lt_postdeps_RC
26580 # The library search path used internally by the compiler when linking
26581 # a shared library.
26582 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26584 # Method to check whether dependent libraries are shared objects.
26585 deplibs_check_method=$lt_deplibs_check_method
26587 # Command to use when deplibs_check_method == file_magic.
26588 file_magic_cmd=$lt_file_magic_cmd
26590 # Flag that allows shared libraries with undefined symbols to be built.
26591 allow_undefined_flag=$lt_allow_undefined_flag_RC
26593 # Flag that forces no undefined symbols.
26594 no_undefined_flag=$lt_no_undefined_flag_RC
26596 # Commands used to finish a libtool library installation in a directory.
26597 finish_cmds=$lt_finish_cmds
26599 # Same as above, but a single script fragment to be evaled but not shown.
26600 finish_eval=$lt_finish_eval
26602 # Take the output of nm and produce a listing of raw symbols and C names.
26603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26605 # Transform the output of nm in a proper C declaration
26606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26608 # Transform the output of nm in a C name address pair
26609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26611 # This is the shared library runtime path variable.
26612 runpath_var=$runpath_var
26614 # This is the shared library path variable.
26615 shlibpath_var=$shlibpath_var
26617 # Is shlibpath searched before the hard-coded library search path?
26618 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26620 # How to hardcode a shared library path into an executable.
26621 hardcode_action=$hardcode_action_RC
26623 # Whether we should hardcode library paths into libraries.
26624 hardcode_into_libs=$hardcode_into_libs
26626 # Flag to hardcode \$libdir into a binary during linking.
26627 # This must work even if \$libdir does not exist.
26628 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26630 # If ld is used when linking, flag to hardcode \$libdir into
26631 # a binary during linking. This must work even if \$libdir does
26633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26635 # Whether we need a single -rpath flag with a separated argument.
26636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26638 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26639 # resulting binary.
26640 hardcode_direct=$hardcode_direct_RC
26642 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26643 # resulting binary.
26644 hardcode_minus_L=$hardcode_minus_L_RC
26646 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26647 # the resulting binary.
26648 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26650 # Set to yes if building a shared library automatically hardcodes DIR into the library
26651 # and all subsequent libraries and executables linked against it.
26652 hardcode_automatic=$hardcode_automatic_RC
26654 # Variables whose values should be saved in libtool wrapper scripts and
26655 # restored at relink time.
26656 variables_saved_for_relink="$variables_saved_for_relink"
26658 # Whether libtool must link a program against all its dependency libraries.
26659 link_all_deplibs=$link_all_deplibs_RC
26661 # Compile-time system search path for libraries
26662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26664 # Run-time system search path for libraries
26665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26667 # Fix the shell variable \$srcfile for the compiler.
26668 fix_srcfile_path="$fix_srcfile_path_RC"
26670 # Set to yes if exported symbols are required.
26671 always_export_symbols=$always_export_symbols_RC
26673 # The commands to list exported symbols.
26674 export_symbols_cmds=$lt_export_symbols_cmds_RC
26676 # The commands to extract the exported symbol list from a shared archive.
26677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26679 # Symbols that should not be listed in the preloaded symbols.
26680 exclude_expsyms=$lt_exclude_expsyms_RC
26682 # Symbols that must always be exported.
26683 include_expsyms=$lt_include_expsyms_RC
26685 # ### END LIBTOOL TAG CONFIG: $tagname
26691 # If there is no Makefile yet, we rely on a make rule to execute
26692 # `config.status --recheck' to rerun these tests and create the
26693 # libtool script then.
26694 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26695 if test -f "$ltmain_in"; then
26696 test -f Makefile && make "$ltmain"
26702 ac_cpp='$CPP $CPPFLAGS'
26703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26712 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26713 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26714 { (exit 1); exit 1; }; }
26718 # Append the new tag name to the list of available tags.
26719 if test -n "$tagname" ; then
26720 available_tags="$available_tags $tagname"
26726 # Now substitute the updated list of available tags.
26727 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26728 mv "${ofile}T" "$ofile"
26732 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26733 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26734 { (exit 1); exit 1; }; }
26740 # This can be used to rebuild libtool when needed
26741 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26743 # Always use our own libtool.
26744 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26746 # Prevent multiple expansion
26768 if test "$lt_cv_dlopen_self" = "yes" ; then
26770 cat >>confdefs.h <<\_ACEOF
26771 #define CAN_DLOPEN_SELF 1
26776 if test "$WITH_LLVMGCCDIR" = "default" ; then
26777 LLVMGCC="llvm-gcc${EXEEXT}"
26778 LLVMGXX="llvm-g++${EXEEXT}"
26779 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26780 set dummy $LLVMGCC; ac_word=$2
26781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26783 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26788 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26792 for as_dir in $PATH
26795 test -z "$as_dir" && as_dir=.
26796 for ac_exec_ext in '' $ac_executable_extensions; do
26797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26798 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26809 LLVMGCC=$ac_cv_path_LLVMGCC
26810 if test -n "$LLVMGCC"; then
26811 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26812 echo "${ECHO_T}$LLVMGCC" >&6; }
26814 { echo "$as_me:$LINENO: result: no" >&5
26815 echo "${ECHO_T}no" >&6; }
26819 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26820 set dummy $LLVMGXX; ac_word=$2
26821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26823 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26824 echo $ECHO_N "(cached) $ECHO_C" >&6
26828 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26832 for as_dir in $PATH
26835 test -z "$as_dir" && as_dir=.
26836 for ac_exec_ext in '' $ac_executable_extensions; do
26837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26838 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26849 LLVMGXX=$ac_cv_path_LLVMGXX
26850 if test -n "$LLVMGXX"; then
26851 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26852 echo "${ECHO_T}$LLVMGXX" >&6; }
26854 { echo "$as_me:$LINENO: result: no" >&5
26855 echo "${ECHO_T}no" >&6; }
26860 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26861 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26868 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26869 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26882 if test "$GCC" != "yes" && test "$ICC" != "yes"
26884 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26885 echo "$as_me: error: gcc|icc required but not found" >&2;}
26886 { (exit 1); exit 1; }; }
26889 if test "$GXX" != "yes" && test "$IXX" != "yes"
26891 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26892 echo "$as_me: error: g++|icc required but not found" >&2;}
26893 { (exit 1); exit 1; }; }
26896 if test "$GCC" = "yes"
26898 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26899 if test "$gccmajor" -lt "3"
26901 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26902 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26903 { (exit 1); exit 1; }; }
26907 if test -z "$llvm_cv_gnu_make_command"
26909 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26910 echo "$as_me: error: GNU Make required but not found" >&2;}
26911 { (exit 1); exit 1; }; }
26914 { echo "$as_me:$LINENO: result: ok" >&5
26915 echo "${ECHO_T}ok" >&6; }
26919 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26920 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26921 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 ac_check_lib_save_LIBS=$LIBS
26926 cat >conftest.$ac_ext <<_ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h. */
26933 /* Override any GCC internal prototype to avoid an error.
26934 Use char because int might match the return type of a GCC
26935 builtin and then its argument prototype would still apply. */
26943 return elf_begin ();
26948 rm -f conftest.$ac_objext conftest$ac_exeext
26949 if { (ac_try="$ac_link"
26950 case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_link") 2>conftest.er1
26957 grep -v '^ *+' conftest.er1 >conftest.err
26959 cat conftest.err >&5
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); } &&
26962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26963 { (case "(($ac_try" in
26964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965 *) ac_try_echo=$ac_try;;
26967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968 (eval "$ac_try") 2>&5
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; } &&
26972 { ac_try='test -s conftest$ac_exeext'
26973 { (case "(($ac_try" in
26974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975 *) ac_try_echo=$ac_try;;
26977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978 (eval "$ac_try") 2>&5
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); }; }; then
26982 ac_cv_lib_elf_elf_begin=yes
26984 echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.$ac_ext >&5
26987 ac_cv_lib_elf_elf_begin=no
26990 rm -f core conftest.err conftest.$ac_objext \
26991 conftest$ac_exeext conftest.$ac_ext
26992 LIBS=$ac_check_lib_save_LIBS
26994 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26995 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26996 if test $ac_cv_lib_elf_elf_begin = yes; then
26997 cat >>confdefs.h <<_ACEOF
26998 #define HAVE_LIBELF 1
27006 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27007 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27008 if test "${ac_cv_lib_m_sin+set}" = set; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27011 ac_check_lib_save_LIBS=$LIBS
27013 cat >conftest.$ac_ext <<_ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27020 /* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27035 rm -f conftest.$ac_objext conftest$ac_exeext
27036 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27044 grep -v '^ *+' conftest.er1 >conftest.err
27046 cat conftest.err >&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } &&
27049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27050 { (case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055 (eval "$ac_try") 2>&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; } &&
27059 { ac_try='test -s conftest$ac_exeext'
27060 { (case "(($ac_try" in
27061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062 *) ac_try_echo=$ac_try;;
27064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065 (eval "$ac_try") 2>&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
27069 ac_cv_lib_m_sin=yes
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27077 rm -f core conftest.err conftest.$ac_objext \
27078 conftest$ac_exeext conftest.$ac_ext
27079 LIBS=$ac_check_lib_save_LIBS
27081 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27082 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27083 if test $ac_cv_lib_m_sin = yes; then
27084 cat >>confdefs.h <<_ACEOF
27085 #define HAVE_LIBM 1
27092 if test "$llvm_cv_os_type" = "MingW" ; then
27094 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27095 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27096 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27099 ac_check_lib_save_LIBS=$LIBS
27100 LIBS="-limagehlp $LIBS"
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (ac_try="$ac_link"
27119 case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_link") 2>conftest.er1
27126 grep -v '^ *+' conftest.er1 >conftest.err
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } &&
27131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_cv_lib_imagehlp_main=yes
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_cv_lib_imagehlp_main=no
27159 rm -f core conftest.err conftest.$ac_objext \
27160 conftest$ac_exeext conftest.$ac_ext
27161 LIBS=$ac_check_lib_save_LIBS
27163 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27164 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27165 if test $ac_cv_lib_imagehlp_main = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167 #define HAVE_LIBIMAGEHLP 1
27170 LIBS="-limagehlp $LIBS"
27175 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27176 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27177 if test "${ac_cv_lib_psapi_main+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27180 ac_check_lib_save_LIBS=$LIBS
27181 LIBS="-lpsapi $LIBS"
27182 cat >conftest.$ac_ext <<_ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27198 rm -f conftest.$ac_objext conftest$ac_exeext
27199 if { (ac_try="$ac_link"
27200 case "(($ac_try" in
27201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202 *) ac_try_echo=$ac_try;;
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205 (eval "$ac_link") 2>conftest.er1
27207 grep -v '^ *+' conftest.er1 >conftest.err
27209 cat conftest.err >&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } &&
27212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27213 { (case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_try") 2>&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; } &&
27222 { ac_try='test -s conftest$ac_exeext'
27223 { (case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228 (eval "$ac_try") 2>&5
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; }; then
27232 ac_cv_lib_psapi_main=yes
27234 echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27237 ac_cv_lib_psapi_main=no
27240 rm -f core conftest.err conftest.$ac_objext \
27241 conftest$ac_exeext conftest.$ac_ext
27242 LIBS=$ac_check_lib_save_LIBS
27244 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27245 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27246 if test $ac_cv_lib_psapi_main = yes; then
27247 cat >>confdefs.h <<_ACEOF
27248 #define HAVE_LIBPSAPI 1
27251 LIBS="-lpsapi $LIBS"
27257 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27258 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27259 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27262 ac_func_search_save_LIBS=$LIBS
27263 cat >conftest.$ac_ext <<_ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h. */
27270 /* Override any GCC internal prototype to avoid an error.
27271 Use char because int might match the return type of a GCC
27272 builtin and then its argument prototype would still apply. */
27280 return lt_dlopen ();
27285 for ac_lib in '' ltdl; do
27286 if test -z "$ac_lib"; then
27287 ac_res="none required"
27290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27292 rm -f conftest.$ac_objext conftest$ac_exeext
27293 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27301 grep -v '^ *+' conftest.er1 >conftest.err
27303 cat conftest.err >&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } &&
27306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27307 { (case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_try") 2>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; } &&
27316 { ac_try='test -s conftest$ac_exeext'
27317 { (case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_try") 2>&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; }; then
27326 ac_cv_search_lt_dlopen=$ac_res
27328 echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27334 rm -f core conftest.err conftest.$ac_objext \
27336 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27340 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27343 ac_cv_search_lt_dlopen=no
27345 rm conftest.$ac_ext
27346 LIBS=$ac_func_search_save_LIBS
27348 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27349 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27350 ac_res=$ac_cv_search_lt_dlopen
27351 if test "$ac_res" != no; then
27352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27354 cat >>confdefs.h <<\_ACEOF
27355 #define HAVE_LT_DLOPEN 1
27359 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27360 not be available" >&5
27361 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27362 not be available" >&2;}
27366 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27367 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27368 if test "${ac_cv_search_dlopen+set}" = set; then
27369 echo $ECHO_N "(cached) $ECHO_C" >&6
27371 ac_func_search_save_LIBS=$LIBS
27372 cat >conftest.$ac_ext <<_ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h. */
27379 /* Override any GCC internal prototype to avoid an error.
27380 Use char because int might match the return type of a GCC
27381 builtin and then its argument prototype would still apply. */
27394 for ac_lib in '' dl; do
27395 if test -z "$ac_lib"; then
27396 ac_res="none required"
27399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27401 rm -f conftest.$ac_objext conftest$ac_exeext
27402 if { (ac_try="$ac_link"
27403 case "(($ac_try" in
27404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27405 *) ac_try_echo=$ac_try;;
27407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27408 (eval "$ac_link") 2>conftest.er1
27410 grep -v '^ *+' conftest.er1 >conftest.err
27412 cat conftest.err >&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); } &&
27415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27416 { (case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_try") 2>&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; } &&
27425 { ac_try='test -s conftest$ac_exeext'
27426 { (case "(($ac_try" in
27427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_try") 2>&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; }; then
27435 ac_cv_search_dlopen=$ac_res
27437 echo "$as_me: failed program was:" >&5
27438 sed 's/^/| /' conftest.$ac_ext >&5
27443 rm -f core conftest.err conftest.$ac_objext \
27445 if test "${ac_cv_search_dlopen+set}" = set; then
27449 if test "${ac_cv_search_dlopen+set}" = set; then
27452 ac_cv_search_dlopen=no
27454 rm conftest.$ac_ext
27455 LIBS=$ac_func_search_save_LIBS
27457 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27458 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27459 ac_res=$ac_cv_search_dlopen
27460 if test "$ac_res" != no; then
27461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27463 cat >>confdefs.h <<\_ACEOF
27464 #define HAVE_DLOPEN 1
27468 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27469 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27473 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27474 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27475 if test "${ac_cv_search_mallinfo+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27478 ac_func_search_save_LIBS=$LIBS
27479 cat >conftest.$ac_ext <<_ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h. */
27486 /* Override any GCC internal prototype to avoid an error.
27487 Use char because int might match the return type of a GCC
27488 builtin and then its argument prototype would still apply. */
27496 return mallinfo ();
27501 for ac_lib in '' malloc; do
27502 if test -z "$ac_lib"; then
27503 ac_res="none required"
27506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27508 rm -f conftest.$ac_objext conftest$ac_exeext
27509 if { (ac_try="$ac_link"
27510 case "(($ac_try" in
27511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512 *) ac_try_echo=$ac_try;;
27514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515 (eval "$ac_link") 2>conftest.er1
27517 grep -v '^ *+' conftest.er1 >conftest.err
27519 cat conftest.err >&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } &&
27522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27523 { (case "(($ac_try" in
27524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27525 *) ac_try_echo=$ac_try;;
27527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27528 (eval "$ac_try") 2>&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; } &&
27532 { ac_try='test -s conftest$ac_exeext'
27533 { (case "(($ac_try" in
27534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535 *) ac_try_echo=$ac_try;;
27537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538 (eval "$ac_try") 2>&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; }; then
27542 ac_cv_search_mallinfo=$ac_res
27544 echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27550 rm -f core conftest.err conftest.$ac_objext \
27552 if test "${ac_cv_search_mallinfo+set}" = set; then
27556 if test "${ac_cv_search_mallinfo+set}" = set; then
27559 ac_cv_search_mallinfo=no
27561 rm conftest.$ac_ext
27562 LIBS=$ac_func_search_save_LIBS
27564 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27565 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27566 ac_res=$ac_cv_search_mallinfo
27567 if test "$ac_res" != no; then
27568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27570 cat >>confdefs.h <<\_ACEOF
27571 #define HAVE_MALLINFO 1
27577 if test "$ENABLE_THREADS" -eq 1 ; then
27579 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27580 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27581 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27582 echo $ECHO_N "(cached) $ECHO_C" >&6
27584 ac_check_lib_save_LIBS=$LIBS
27585 LIBS="-lpthread $LIBS"
27586 cat >conftest.$ac_ext <<_ACEOF
27589 cat confdefs.h >>conftest.$ac_ext
27590 cat >>conftest.$ac_ext <<_ACEOF
27591 /* end confdefs.h. */
27593 /* Override any GCC internal prototype to avoid an error.
27594 Use char because int might match the return type of a GCC
27595 builtin and then its argument prototype would still apply. */
27599 char pthread_mutex_init ();
27603 return pthread_mutex_init ();
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (ac_try="$ac_link"
27610 case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_link") 2>conftest.er1
27617 grep -v '^ *+' conftest.er1 >conftest.err
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } &&
27622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27623 { (case "(($ac_try" in
27624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625 *) ac_try_echo=$ac_try;;
27627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27628 (eval "$ac_try") 2>&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
27633 { (case "(($ac_try" in
27634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635 *) ac_try_echo=$ac_try;;
27637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638 (eval "$ac_try") 2>&5
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 ac_cv_lib_pthread_pthread_mutex_init=yes
27644 echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27647 ac_cv_lib_pthread_pthread_mutex_init=no
27650 rm -f core conftest.err conftest.$ac_objext \
27651 conftest$ac_exeext conftest.$ac_ext
27652 LIBS=$ac_check_lib_save_LIBS
27654 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27655 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27656 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27657 cat >>confdefs.h <<_ACEOF
27658 #define HAVE_LIBPTHREAD 1
27661 LIBS="-lpthread $LIBS"
27665 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27666 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27667 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27670 ac_func_search_save_LIBS=$LIBS
27671 cat >conftest.$ac_ext <<_ACEOF
27674 cat confdefs.h >>conftest.$ac_ext
27675 cat >>conftest.$ac_ext <<_ACEOF
27676 /* end confdefs.h. */
27678 /* Override any GCC internal prototype to avoid an error.
27679 Use char because int might match the return type of a GCC
27680 builtin and then its argument prototype would still apply. */
27684 char pthread_mutex_lock ();
27688 return pthread_mutex_lock ();
27693 for ac_lib in '' pthread; do
27694 if test -z "$ac_lib"; then
27695 ac_res="none required"
27698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27700 rm -f conftest.$ac_objext conftest$ac_exeext
27701 if { (ac_try="$ac_link"
27702 case "(($ac_try" in
27703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704 *) ac_try_echo=$ac_try;;
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707 (eval "$ac_link") 2>conftest.er1
27709 grep -v '^ *+' conftest.er1 >conftest.err
27711 cat conftest.err >&5
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); } &&
27714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27715 { (case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720 (eval "$ac_try") 2>&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
27724 { ac_try='test -s conftest$ac_exeext'
27725 { (case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27730 (eval "$ac_try") 2>&5
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
27734 ac_cv_search_pthread_mutex_lock=$ac_res
27736 echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27742 rm -f core conftest.err conftest.$ac_objext \
27744 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27748 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27751 ac_cv_search_pthread_mutex_lock=no
27753 rm conftest.$ac_ext
27754 LIBS=$ac_func_search_save_LIBS
27756 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27757 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27758 ac_res=$ac_cv_search_pthread_mutex_lock
27759 if test "$ac_res" != no; then
27760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27762 cat >>confdefs.h <<\_ACEOF
27763 #define HAVE_PTHREAD_MUTEX_LOCK 1
27771 # Check whether --with-udis86 was given.
27772 if test "${with_udis86+set}" = set; then
27773 withval=$with_udis86;
27778 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27781 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27782 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27783 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27784 echo $ECHO_N "(cached) $ECHO_C" >&6
27786 ac_check_lib_save_LIBS=$LIBS
27787 LIBS="-ludis86 $LIBS"
27788 cat >conftest.$ac_ext <<_ACEOF
27791 cat confdefs.h >>conftest.$ac_ext
27792 cat >>conftest.$ac_ext <<_ACEOF
27793 /* end confdefs.h. */
27795 /* Override any GCC internal prototype to avoid an error.
27796 Use char because int might match the return type of a GCC
27797 builtin and then its argument prototype would still apply. */
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_link") 2>conftest.er1
27819 grep -v '^ *+' conftest.er1 >conftest.err
27821 cat conftest.err >&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); } &&
27824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27825 { (case "(($ac_try" in
27826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827 *) ac_try_echo=$ac_try;;
27829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830 (eval "$ac_try") 2>&5
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); }; } &&
27834 { ac_try='test -s conftest$ac_exeext'
27835 { (case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840 (eval "$ac_try") 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; }; then
27844 ac_cv_lib_udis86_ud_init=yes
27846 echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27849 ac_cv_lib_udis86_ud_init=no
27852 rm -f core conftest.err conftest.$ac_objext \
27853 conftest$ac_exeext conftest.$ac_ext
27854 LIBS=$ac_check_lib_save_LIBS
27856 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27857 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27858 if test $ac_cv_lib_udis86_ud_init = yes; then
27859 cat >>confdefs.h <<_ACEOF
27860 #define HAVE_LIBUDIS86 1
27863 LIBS="-ludis86 $LIBS"
27867 echo "Error! You need to have libudis86 around."
27879 cat >>confdefs.h <<_ACEOF
27880 #define USE_UDIS86 $USE_UDIS86
27890 ac_header_dirent=no
27891 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27892 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27893 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27894 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27896 echo $ECHO_N "(cached) $ECHO_C" >&6
27898 cat >conftest.$ac_ext <<_ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h. */
27904 #include <sys/types.h>
27916 rm -f conftest.$ac_objext
27917 if { (ac_try="$ac_compile"
27918 case "(($ac_try" in
27919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920 *) ac_try_echo=$ac_try;;
27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923 (eval "$ac_compile") 2>conftest.er1
27925 grep -v '^ *+' conftest.er1 >conftest.err
27927 cat conftest.err >&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); } &&
27930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27931 { (case "(($ac_try" in
27932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27933 *) ac_try_echo=$ac_try;;
27935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27936 (eval "$ac_try") 2>&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); }; } &&
27940 { ac_try='test -s conftest.$ac_objext'
27941 { (case "(($ac_try" in
27942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943 *) ac_try_echo=$ac_try;;
27945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946 (eval "$ac_try") 2>&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); }; }; then
27950 eval "$as_ac_Header=yes"
27952 echo "$as_me: failed program was:" >&5
27953 sed 's/^/| /' conftest.$ac_ext >&5
27955 eval "$as_ac_Header=no"
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27960 ac_res=`eval echo '${'$as_ac_Header'}'`
27961 { echo "$as_me:$LINENO: result: $ac_res" >&5
27962 echo "${ECHO_T}$ac_res" >&6; }
27963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27968 ac_header_dirent=$ac_hdr; break
27972 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27973 if test $ac_header_dirent = dirent.h; then
27974 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27975 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27976 if test "${ac_cv_search_opendir+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27979 ac_func_search_save_LIBS=$LIBS
27980 cat >conftest.$ac_ext <<_ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h. */
27987 /* Override any GCC internal prototype to avoid an error.
27988 Use char because int might match the return type of a GCC
27989 builtin and then its argument prototype would still apply. */
28002 for ac_lib in '' dir; do
28003 if test -z "$ac_lib"; then
28004 ac_res="none required"
28007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28009 rm -f conftest.$ac_objext conftest$ac_exeext
28010 if { (ac_try="$ac_link"
28011 case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_link") 2>conftest.er1
28018 grep -v '^ *+' conftest.er1 >conftest.err
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } &&
28023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28024 { (case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029 (eval "$ac_try") 2>&5
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); }; } &&
28033 { ac_try='test -s conftest$ac_exeext'
28034 { (case "(($ac_try" in
28035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036 *) ac_try_echo=$ac_try;;
28038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039 (eval "$ac_try") 2>&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; }; then
28043 ac_cv_search_opendir=$ac_res
28045 echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28051 rm -f core conftest.err conftest.$ac_objext \
28053 if test "${ac_cv_search_opendir+set}" = set; then
28057 if test "${ac_cv_search_opendir+set}" = set; then
28060 ac_cv_search_opendir=no
28062 rm conftest.$ac_ext
28063 LIBS=$ac_func_search_save_LIBS
28065 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28066 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28067 ac_res=$ac_cv_search_opendir
28068 if test "$ac_res" != no; then
28069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28074 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28076 if test "${ac_cv_search_opendir+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28079 ac_func_search_save_LIBS=$LIBS
28080 cat >conftest.$ac_ext <<_ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h. */
28087 /* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
28102 for ac_lib in '' x; do
28103 if test -z "$ac_lib"; then
28104 ac_res="none required"
28107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28109 rm -f conftest.$ac_objext conftest$ac_exeext
28110 if { (ac_try="$ac_link"
28111 case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116 (eval "$ac_link") 2>conftest.er1
28118 grep -v '^ *+' conftest.er1 >conftest.err
28120 cat conftest.err >&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } &&
28123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28124 { (case "(($ac_try" in
28125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126 *) ac_try_echo=$ac_try;;
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129 (eval "$ac_try") 2>&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; } &&
28133 { ac_try='test -s conftest$ac_exeext'
28134 { (case "(($ac_try" in
28135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136 *) ac_try_echo=$ac_try;;
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139 (eval "$ac_try") 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
28143 ac_cv_search_opendir=$ac_res
28145 echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28151 rm -f core conftest.err conftest.$ac_objext \
28153 if test "${ac_cv_search_opendir+set}" = set; then
28157 if test "${ac_cv_search_opendir+set}" = set; then
28160 ac_cv_search_opendir=no
28162 rm conftest.$ac_ext
28163 LIBS=$ac_func_search_save_LIBS
28165 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28166 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28167 ac_res=$ac_cv_search_opendir
28168 if test "$ac_res" != no; then
28169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28175 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28176 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28177 if test "${ac_cv_header_mmap_anon+set}" = set; then
28178 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 ac_cpp='$CPP $CPPFLAGS'
28182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28186 cat >conftest.$ac_ext <<_ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h. */
28192 #include <sys/mman.h>
28193 #include <unistd.h>
28198 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28203 rm -f conftest.$ac_objext
28204 if { (ac_try="$ac_compile"
28205 case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_compile") 2>conftest.er1
28212 grep -v '^ *+' conftest.er1 >conftest.err
28214 cat conftest.err >&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); } &&
28217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218 { (case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223 (eval "$ac_try") 2>&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; } &&
28227 { ac_try='test -s conftest.$ac_objext'
28228 { (case "(($ac_try" in
28229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230 *) ac_try_echo=$ac_try;;
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28237 ac_cv_header_mmap_anon=yes
28239 echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28242 ac_cv_header_mmap_anon=no
28245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28247 ac_cpp='$CPP $CPPFLAGS'
28248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28254 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28255 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28256 if test "$ac_cv_header_mmap_anon" = yes; then
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_MMAP_ANONYMOUS 1
28264 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28265 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28266 if test "${ac_cv_header_stat_broken+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 cat >conftest.$ac_ext <<_ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28275 #include <sys/types.h>
28276 #include <sys/stat.h>
28278 #if defined S_ISBLK && defined S_IFDIR
28279 # if S_ISBLK (S_IFDIR)
28284 #if defined S_ISBLK && defined S_IFCHR
28285 # if S_ISBLK (S_IFCHR)
28290 #if defined S_ISLNK && defined S_IFREG
28291 # if S_ISLNK (S_IFREG)
28296 #if defined S_ISSOCK && defined S_IFREG
28297 # if S_ISSOCK (S_IFREG)
28303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28304 $EGREP "You lose" >/dev/null 2>&1; then
28305 ac_cv_header_stat_broken=yes
28307 ac_cv_header_stat_broken=no
28312 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28313 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28314 if test $ac_cv_header_stat_broken = yes; then
28316 cat >>confdefs.h <<\_ACEOF
28317 #define STAT_MACROS_BROKEN 1
28322 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28323 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28324 if test "${ac_cv_header_stdc+set}" = set; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28327 cat >conftest.$ac_ext <<_ACEOF
28330 cat confdefs.h >>conftest.$ac_ext
28331 cat >>conftest.$ac_ext <<_ACEOF
28332 /* end confdefs.h. */
28333 #include <stdlib.h>
28334 #include <stdarg.h>
28335 #include <string.h>
28346 rm -f conftest.$ac_objext
28347 if { (ac_try="$ac_compile"
28348 case "(($ac_try" in
28349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353 (eval "$ac_compile") 2>conftest.er1
28355 grep -v '^ *+' conftest.er1 >conftest.err
28357 cat conftest.err >&5
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); } &&
28360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28361 { (case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_try") 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; } &&
28370 { ac_try='test -s conftest.$ac_objext'
28371 { (case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376 (eval "$ac_try") 2>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
28380 ac_cv_header_stdc=yes
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28385 ac_cv_header_stdc=no
28388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28390 if test $ac_cv_header_stdc = yes; then
28391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28392 cat >conftest.$ac_ext <<_ACEOF
28395 cat confdefs.h >>conftest.$ac_ext
28396 cat >>conftest.$ac_ext <<_ACEOF
28397 /* end confdefs.h. */
28398 #include <string.h>
28401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28402 $EGREP "memchr" >/dev/null 2>&1; then
28405 ac_cv_header_stdc=no
28411 if test $ac_cv_header_stdc = yes; then
28412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28413 cat >conftest.$ac_ext <<_ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h. */
28419 #include <stdlib.h>
28422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28423 $EGREP "free" >/dev/null 2>&1; then
28426 ac_cv_header_stdc=no
28432 if test $ac_cv_header_stdc = yes; then
28433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28434 if test "$cross_compiling" = yes; then
28437 cat >conftest.$ac_ext <<_ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h. */
28444 #include <stdlib.h>
28445 #if ((' ' & 0x0FF) == 0x020)
28446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28449 # define ISLOWER(c) \
28450 (('a' <= (c) && (c) <= 'i') \
28451 || ('j' <= (c) && (c) <= 'r') \
28452 || ('s' <= (c) && (c) <= 'z'))
28453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28461 for (i = 0; i < 256; i++)
28462 if (XOR (islower (i), ISLOWER (i))
28463 || toupper (i) != TOUPPER (i))
28468 rm -f conftest$ac_exeext
28469 if { (ac_try="$ac_link"
28470 case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_link") 2>&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28479 { (case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_try") 2>&5
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
28490 echo "$as_me: program exited with status $ac_status" >&5
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28494 ( exit $ac_status )
28495 ac_cv_header_stdc=no
28497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28503 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28504 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28505 if test $ac_cv_header_stdc = yes; then
28507 cat >>confdefs.h <<\_ACEOF
28508 #define STDC_HEADERS 1
28513 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28514 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28515 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28516 echo $ECHO_N "(cached) $ECHO_C" >&6
28518 cat >conftest.$ac_ext <<_ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28524 #include <sys/types.h>
28525 #include <sys/wait.h>
28526 #ifndef WEXITSTATUS
28527 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28530 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28538 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28543 rm -f conftest.$ac_objext
28544 if { (ac_try="$ac_compile"
28545 case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_compile") 2>conftest.er1
28552 grep -v '^ *+' conftest.er1 >conftest.err
28554 cat conftest.err >&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); } &&
28557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28558 { (case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563 (eval "$ac_try") 2>&5
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; } &&
28567 { ac_try='test -s conftest.$ac_objext'
28568 { (case "(($ac_try" in
28569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28570 *) ac_try_echo=$ac_try;;
28572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28573 (eval "$ac_try") 2>&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
28577 ac_cv_header_sys_wait_h=yes
28579 echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28582 ac_cv_header_sys_wait_h=no
28585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28587 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28588 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28589 if test $ac_cv_header_sys_wait_h = yes; then
28591 cat >>confdefs.h <<\_ACEOF
28592 #define HAVE_SYS_WAIT_H 1
28597 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28598 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28599 if test "${ac_cv_header_time+set}" = set; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28602 cat >conftest.$ac_ext <<_ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h. */
28608 #include <sys/types.h>
28609 #include <sys/time.h>
28615 if ((struct tm *) 0)
28621 rm -f conftest.$ac_objext
28622 if { (ac_try="$ac_compile"
28623 case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_compile") 2>conftest.er1
28630 grep -v '^ *+' conftest.er1 >conftest.err
28632 cat conftest.err >&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } &&
28635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28636 { (case "(($ac_try" in
28637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638 *) ac_try_echo=$ac_try;;
28640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641 (eval "$ac_try") 2>&5
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
28645 { ac_try='test -s conftest.$ac_objext'
28646 { (case "(($ac_try" in
28647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648 *) ac_try_echo=$ac_try;;
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651 (eval "$ac_try") 2>&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; }; then
28655 ac_cv_header_time=yes
28657 echo "$as_me: failed program was:" >&5
28658 sed 's/^/| /' conftest.$ac_ext >&5
28660 ac_cv_header_time=no
28663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28665 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28666 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28667 if test $ac_cv_header_time = yes; then
28669 cat >>confdefs.h <<\_ACEOF
28670 #define TIME_WITH_SYS_TIME 1
28682 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 ac_res=`eval echo '${'$as_ac_Header'}'`
28692 { echo "$as_me:$LINENO: result: $ac_res" >&5
28693 echo "${ECHO_T}$ac_res" >&6; }
28695 # Is the header compilable?
28696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28698 cat >conftest.$ac_ext <<_ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28704 $ac_includes_default
28705 #include <$ac_header>
28707 rm -f conftest.$ac_objext
28708 if { (ac_try="$ac_compile"
28709 case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_compile") 2>conftest.er1
28716 grep -v '^ *+' conftest.er1 >conftest.err
28718 cat conftest.err >&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } &&
28721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28722 { (case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_try") 2>&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); }; } &&
28731 { ac_try='test -s conftest.$ac_objext'
28732 { (case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737 (eval "$ac_try") 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741 ac_header_compiler=yes
28743 echo "$as_me: failed program was:" >&5
28744 sed 's/^/| /' conftest.$ac_ext >&5
28746 ac_header_compiler=no
28749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28751 echo "${ECHO_T}$ac_header_compiler" >&6; }
28753 # Is the header present?
28754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28756 cat >conftest.$ac_ext <<_ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h. */
28762 #include <$ac_header>
28764 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28772 grep -v '^ *+' conftest.er1 >conftest.err
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } >/dev/null; then
28777 if test -s conftest.err; then
28778 ac_cpp_err=$ac_c_preproc_warn_flag
28779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28786 if test -z "$ac_cpp_err"; then
28787 ac_header_preproc=yes
28789 echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28792 ac_header_preproc=no
28795 rm -f conftest.err conftest.$ac_ext
28796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28797 echo "${ECHO_T}$ac_header_preproc" >&6; }
28799 # So? What about this header?
28800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28806 ac_header_preproc=yes
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28822 ## ----------------------------------- ##
28823 ## Report this to llvmbugs@cs.uiuc.edu ##
28824 ## ----------------------------------- ##
28826 ) | sed "s/^/$as_me: WARNING: /" >&2
28829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
28834 eval "$as_ac_Header=\$ac_header_preproc"
28836 ac_res=`eval echo '${'$as_ac_Header'}'`
28837 { echo "$as_me:$LINENO: result: $ac_res" >&5
28838 echo "${ECHO_T}$ac_res" >&6; }
28841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842 cat >>confdefs.h <<_ACEOF
28843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28856 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28863 echo $ECHO_N "(cached) $ECHO_C" >&6
28865 ac_res=`eval echo '${'$as_ac_Header'}'`
28866 { echo "$as_me:$LINENO: result: $ac_res" >&5
28867 echo "${ECHO_T}$ac_res" >&6; }
28869 # Is the header compilable?
28870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28872 cat >conftest.$ac_ext <<_ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h. */
28878 $ac_includes_default
28879 #include <$ac_header>
28881 rm -f conftest.$ac_objext
28882 if { (ac_try="$ac_compile"
28883 case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_compile") 2>conftest.er1
28890 grep -v '^ *+' conftest.er1 >conftest.err
28892 cat conftest.err >&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } &&
28895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28896 { (case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_try") 2>&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; } &&
28905 { ac_try='test -s conftest.$ac_objext'
28906 { (case "(($ac_try" in
28907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28908 *) ac_try_echo=$ac_try;;
28910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28911 (eval "$ac_try") 2>&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 ac_header_compiler=yes
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28920 ac_header_compiler=no
28923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28925 echo "${ECHO_T}$ac_header_compiler" >&6; }
28927 # Is the header present?
28928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28930 cat >conftest.$ac_ext <<_ACEOF
28933 cat confdefs.h >>conftest.$ac_ext
28934 cat >>conftest.$ac_ext <<_ACEOF
28935 /* end confdefs.h. */
28936 #include <$ac_header>
28938 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
28946 grep -v '^ *+' conftest.er1 >conftest.err
28948 cat conftest.err >&5
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } >/dev/null; then
28951 if test -s conftest.err; then
28952 ac_cpp_err=$ac_c_preproc_warn_flag
28953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28960 if test -z "$ac_cpp_err"; then
28961 ac_header_preproc=yes
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28966 ac_header_preproc=no
28969 rm -f conftest.err conftest.$ac_ext
28970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28971 echo "${ECHO_T}$ac_header_preproc" >&6; }
28973 # So? What about this header?
28974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28980 ac_header_preproc=yes
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28996 ## ----------------------------------- ##
28997 ## Report this to llvmbugs@cs.uiuc.edu ##
28998 ## ----------------------------------- ##
29000 ) | sed "s/^/$as_me: WARNING: /" >&2
29003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29008 eval "$as_ac_Header=\$ac_header_preproc"
29010 ac_res=`eval echo '${'$as_ac_Header'}'`
29011 { echo "$as_me:$LINENO: result: $ac_res" >&5
29012 echo "${ECHO_T}$ac_res" >&6; }
29015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29016 cat >>confdefs.h <<_ACEOF
29017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29025 for ac_header in windows.h
29027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29034 ac_res=`eval echo '${'$as_ac_Header'}'`
29035 { echo "$as_me:$LINENO: result: $ac_res" >&5
29036 echo "${ECHO_T}$ac_res" >&6; }
29038 # Is the header compilable?
29039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29041 cat >conftest.$ac_ext <<_ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h. */
29047 $ac_includes_default
29048 #include <$ac_header>
29050 rm -f conftest.$ac_objext
29051 if { (ac_try="$ac_compile"
29052 case "(($ac_try" in
29053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054 *) ac_try_echo=$ac_try;;
29056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29057 (eval "$ac_compile") 2>conftest.er1
29059 grep -v '^ *+' conftest.er1 >conftest.err
29061 cat conftest.err >&5
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); } &&
29064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29065 { (case "(($ac_try" in
29066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067 *) ac_try_echo=$ac_try;;
29069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070 (eval "$ac_try") 2>&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; } &&
29074 { ac_try='test -s conftest.$ac_objext'
29075 { (case "(($ac_try" in
29076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29077 *) ac_try_echo=$ac_try;;
29079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29080 (eval "$ac_try") 2>&5
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; }; then
29084 ac_header_compiler=yes
29086 echo "$as_me: failed program was:" >&5
29087 sed 's/^/| /' conftest.$ac_ext >&5
29089 ac_header_compiler=no
29092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29094 echo "${ECHO_T}$ac_header_compiler" >&6; }
29096 # Is the header present?
29097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29105 #include <$ac_header>
29107 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
29115 grep -v '^ *+' conftest.er1 >conftest.err
29117 cat conftest.err >&5
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } >/dev/null; then
29120 if test -s conftest.err; then
29121 ac_cpp_err=$ac_c_preproc_warn_flag
29122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29129 if test -z "$ac_cpp_err"; then
29130 ac_header_preproc=yes
29132 echo "$as_me: failed program was:" >&5
29133 sed 's/^/| /' conftest.$ac_ext >&5
29135 ac_header_preproc=no
29138 rm -f conftest.err conftest.$ac_ext
29139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29140 echo "${ECHO_T}$ac_header_preproc" >&6; }
29142 # So? What about this header?
29143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29149 ac_header_preproc=yes
29152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29165 ## ----------------------------------- ##
29166 ## Report this to llvmbugs@cs.uiuc.edu ##
29167 ## ----------------------------------- ##
29169 ) | sed "s/^/$as_me: WARNING: /" >&2
29172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29175 echo $ECHO_N "(cached) $ECHO_C" >&6
29177 eval "$as_ac_Header=\$ac_header_preproc"
29179 ac_res=`eval echo '${'$as_ac_Header'}'`
29180 { echo "$as_me:$LINENO: result: $ac_res" >&5
29181 echo "${ECHO_T}$ac_res" >&6; }
29184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29185 cat >>confdefs.h <<_ACEOF
29186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29197 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29206 ac_res=`eval echo '${'$as_ac_Header'}'`
29207 { echo "$as_me:$LINENO: result: $ac_res" >&5
29208 echo "${ECHO_T}$ac_res" >&6; }
29210 # Is the header compilable?
29211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29213 cat >conftest.$ac_ext <<_ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h. */
29219 $ac_includes_default
29220 #include <$ac_header>
29222 rm -f conftest.$ac_objext
29223 if { (ac_try="$ac_compile"
29224 case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229 (eval "$ac_compile") 2>conftest.er1
29231 grep -v '^ *+' conftest.er1 >conftest.err
29233 cat conftest.err >&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } &&
29236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237 { (case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_try") 2>&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest.$ac_objext'
29247 { (case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_try") 2>&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
29256 ac_header_compiler=yes
29258 echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29261 ac_header_compiler=no
29264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29266 echo "${ECHO_T}$ac_header_compiler" >&6; }
29268 # Is the header present?
29269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29271 cat >conftest.$ac_ext <<_ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h. */
29277 #include <$ac_header>
29279 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
29287 grep -v '^ *+' conftest.er1 >conftest.err
29289 cat conftest.err >&5
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); } >/dev/null; then
29292 if test -s conftest.err; then
29293 ac_cpp_err=$ac_c_preproc_warn_flag
29294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29301 if test -z "$ac_cpp_err"; then
29302 ac_header_preproc=yes
29304 echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29307 ac_header_preproc=no
29310 rm -f conftest.err conftest.$ac_ext
29311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29312 echo "${ECHO_T}$ac_header_preproc" >&6; }
29314 # So? What about this header?
29315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29321 ac_header_preproc=yes
29324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29337 ## ----------------------------------- ##
29338 ## Report this to llvmbugs@cs.uiuc.edu ##
29339 ## ----------------------------------- ##
29341 ) | sed "s/^/$as_me: WARNING: /" >&2
29344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29347 echo $ECHO_N "(cached) $ECHO_C" >&6
29349 eval "$as_ac_Header=\$ac_header_preproc"
29351 ac_res=`eval echo '${'$as_ac_Header'}'`
29352 { echo "$as_me:$LINENO: result: $ac_res" >&5
29353 echo "${ECHO_T}$ac_res" >&6; }
29356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29357 cat >>confdefs.h <<_ACEOF
29358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29368 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29375 echo $ECHO_N "(cached) $ECHO_C" >&6
29377 ac_res=`eval echo '${'$as_ac_Header'}'`
29378 { echo "$as_me:$LINENO: result: $ac_res" >&5
29379 echo "${ECHO_T}$ac_res" >&6; }
29381 # Is the header compilable?
29382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29384 cat >conftest.$ac_ext <<_ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h. */
29390 $ac_includes_default
29391 #include <$ac_header>
29393 rm -f conftest.$ac_objext
29394 if { (ac_try="$ac_compile"
29395 case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_compile") 2>conftest.er1
29402 grep -v '^ *+' conftest.er1 >conftest.err
29404 cat conftest.err >&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
29407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29408 { (case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_try") 2>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; } &&
29417 { ac_try='test -s conftest.$ac_objext'
29418 { (case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_try") 2>&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; }; then
29427 ac_header_compiler=yes
29429 echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29432 ac_header_compiler=no
29435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29437 echo "${ECHO_T}$ac_header_compiler" >&6; }
29439 # Is the header present?
29440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29442 cat >conftest.$ac_ext <<_ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h. */
29448 #include <$ac_header>
29450 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
29458 grep -v '^ *+' conftest.er1 >conftest.err
29460 cat conftest.err >&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } >/dev/null; then
29463 if test -s conftest.err; then
29464 ac_cpp_err=$ac_c_preproc_warn_flag
29465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29472 if test -z "$ac_cpp_err"; then
29473 ac_header_preproc=yes
29475 echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29478 ac_header_preproc=no
29481 rm -f conftest.err conftest.$ac_ext
29482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29483 echo "${ECHO_T}$ac_header_preproc" >&6; }
29485 # So? What about this header?
29486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29492 ac_header_preproc=yes
29495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29508 ## ----------------------------------- ##
29509 ## Report this to llvmbugs@cs.uiuc.edu ##
29510 ## ----------------------------------- ##
29512 ) | sed "s/^/$as_me: WARNING: /" >&2
29515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29518 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 eval "$as_ac_Header=\$ac_header_preproc"
29522 ac_res=`eval echo '${'$as_ac_Header'}'`
29523 { echo "$as_me:$LINENO: result: $ac_res" >&5
29524 echo "${ECHO_T}$ac_res" >&6; }
29527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29528 cat >>confdefs.h <<_ACEOF
29529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29536 if test "$ENABLE_THREADS" -eq 1 ; then
29538 for ac_header in pthread.h
29540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29547 ac_res=`eval echo '${'$as_ac_Header'}'`
29548 { echo "$as_me:$LINENO: result: $ac_res" >&5
29549 echo "${ECHO_T}$ac_res" >&6; }
29551 # Is the header compilable?
29552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29554 cat >conftest.$ac_ext <<_ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h. */
29560 $ac_includes_default
29561 #include <$ac_header>
29563 rm -f conftest.$ac_objext
29564 if { (ac_try="$ac_compile"
29565 case "(($ac_try" in
29566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567 *) ac_try_echo=$ac_try;;
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570 (eval "$ac_compile") 2>conftest.er1
29572 grep -v '^ *+' conftest.er1 >conftest.err
29574 cat conftest.err >&5
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); } &&
29577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29578 { (case "(($ac_try" in
29579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; } &&
29587 { ac_try='test -s conftest.$ac_objext'
29588 { (case "(($ac_try" in
29589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590 *) ac_try_echo=$ac_try;;
29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593 (eval "$ac_try") 2>&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; }; then
29597 ac_header_compiler=yes
29599 echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29602 ac_header_compiler=no
29605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29607 echo "${ECHO_T}$ac_header_compiler" >&6; }
29609 # Is the header present?
29610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29612 cat >conftest.$ac_ext <<_ACEOF
29615 cat confdefs.h >>conftest.$ac_ext
29616 cat >>conftest.$ac_ext <<_ACEOF
29617 /* end confdefs.h. */
29618 #include <$ac_header>
29620 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
29628 grep -v '^ *+' conftest.er1 >conftest.err
29630 cat conftest.err >&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } >/dev/null; then
29633 if test -s conftest.err; then
29634 ac_cpp_err=$ac_c_preproc_warn_flag
29635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29642 if test -z "$ac_cpp_err"; then
29643 ac_header_preproc=yes
29645 echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29648 ac_header_preproc=no
29651 rm -f conftest.err conftest.$ac_ext
29652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653 echo "${ECHO_T}$ac_header_preproc" >&6; }
29655 # So? What about this header?
29656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29662 ac_header_preproc=yes
29665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29678 ## ----------------------------------- ##
29679 ## Report this to llvmbugs@cs.uiuc.edu ##
29680 ## ----------------------------------- ##
29682 ) | sed "s/^/$as_me: WARNING: /" >&2
29685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29690 eval "$as_ac_Header=\$ac_header_preproc"
29692 ac_res=`eval echo '${'$as_ac_Header'}'`
29693 { echo "$as_me:$LINENO: result: $ac_res" >&5
29694 echo "${ECHO_T}$ac_res" >&6; }
29697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29698 cat >>confdefs.h <<_ACEOF
29699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29717 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29718 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29719 if test "${ac_cv_huge_val_sanity+set}" = set; then
29720 echo $ECHO_N "(cached) $ECHO_C" >&6
29724 ac_cpp='$CXXCPP $CPPFLAGS'
29725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29730 if test "$cross_compiling" = yes; then
29731 ac_cv_huge_val_sanity=yes
29733 cat >conftest.$ac_ext <<_ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h. */
29743 double x = HUGE_VAL; return x != x;
29748 rm -f conftest$ac_exeext
29749 if { (ac_try="$ac_link"
29750 case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_link") 2>&5
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29759 { (case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_try") 2>&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; }; then
29768 ac_cv_huge_val_sanity=yes
29770 echo "$as_me: program exited with status $ac_status" >&5
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29774 ( exit $ac_status )
29775 ac_cv_huge_val_sanity=no
29777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29782 ac_cpp='$CPP $CPPFLAGS'
29783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29789 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29790 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29791 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29794 { echo "$as_me:$LINENO: checking for pid_t" >&5
29795 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29796 if test "${ac_cv_type_pid_t+set}" = set; then
29797 echo $ECHO_N "(cached) $ECHO_C" >&6
29799 cat >conftest.$ac_ext <<_ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h. */
29805 $ac_includes_default
29806 typedef pid_t ac__type_new_;
29810 if ((ac__type_new_ *) 0)
29812 if (sizeof (ac__type_new_))
29818 rm -f conftest.$ac_objext
29819 if { (ac_try="$ac_compile"
29820 case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_compile") 2>conftest.er1
29827 grep -v '^ *+' conftest.er1 >conftest.err
29829 cat conftest.err >&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } &&
29832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29833 { (case "(($ac_try" in
29834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835 *) ac_try_echo=$ac_try;;
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_try") 2>&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; } &&
29842 { ac_try='test -s conftest.$ac_objext'
29843 { (case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_try") 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29852 ac_cv_type_pid_t=yes
29854 echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29857 ac_cv_type_pid_t=no
29860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29862 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29863 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29864 if test $ac_cv_type_pid_t = yes; then
29868 cat >>confdefs.h <<_ACEOF
29874 { echo "$as_me:$LINENO: checking for size_t" >&5
29875 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29876 if test "${ac_cv_type_size_t+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29879 cat >conftest.$ac_ext <<_ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h. */
29885 $ac_includes_default
29886 typedef size_t ac__type_new_;
29890 if ((ac__type_new_ *) 0)
29892 if (sizeof (ac__type_new_))
29898 rm -f conftest.$ac_objext
29899 if { (ac_try="$ac_compile"
29900 case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_compile") 2>conftest.er1
29907 grep -v '^ *+' conftest.er1 >conftest.err
29909 cat conftest.err >&5
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
29912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913 { (case "(($ac_try" in
29914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915 *) ac_try_echo=$ac_try;;
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918 (eval "$ac_try") 2>&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
29923 { (case "(($ac_try" in
29924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925 *) ac_try_echo=$ac_try;;
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928 (eval "$ac_try") 2>&5
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; }; then
29932 ac_cv_type_size_t=yes
29934 echo "$as_me: failed program was:" >&5
29935 sed 's/^/| /' conftest.$ac_ext >&5
29937 ac_cv_type_size_t=no
29940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29942 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29943 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29944 if test $ac_cv_type_size_t = yes; then
29948 cat >>confdefs.h <<_ACEOF
29949 #define size_t unsigned int
29954 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29955 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29956 if test "${ac_cv_type_signal+set}" = set; then
29957 echo $ECHO_N "(cached) $ECHO_C" >&6
29959 cat >conftest.$ac_ext <<_ACEOF
29962 cat confdefs.h >>conftest.$ac_ext
29963 cat >>conftest.$ac_ext <<_ACEOF
29964 /* end confdefs.h. */
29965 #include <sys/types.h>
29966 #include <signal.h>
29971 return *(signal (0, 0)) (0) == 1;
29976 rm -f conftest.$ac_objext
29977 if { (ac_try="$ac_compile"
29978 case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_compile") 2>conftest.er1
29985 grep -v '^ *+' conftest.er1 >conftest.err
29987 cat conftest.err >&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); } &&
29990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29991 { (case "(($ac_try" in
29992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993 *) ac_try_echo=$ac_try;;
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996 (eval "$ac_try") 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest.$ac_objext'
30001 { (case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_try") 2>&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30010 ac_cv_type_signal=int
30012 echo "$as_me: failed program was:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30015 ac_cv_type_signal=void
30018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30020 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30021 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30023 cat >>confdefs.h <<_ACEOF
30024 #define RETSIGTYPE $ac_cv_type_signal
30028 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30029 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30030 if test "${ac_cv_struct_tm+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30033 cat >conftest.$ac_ext <<_ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h. */
30039 #include <sys/types.h>
30045 struct tm *tp; tp->tm_sec;
30050 rm -f conftest.$ac_objext
30051 if { (ac_try="$ac_compile"
30052 case "(($ac_try" in
30053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054 *) ac_try_echo=$ac_try;;
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057 (eval "$ac_compile") 2>conftest.er1
30059 grep -v '^ *+' conftest.er1 >conftest.err
30061 cat conftest.err >&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } &&
30064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30065 { (case "(($ac_try" in
30066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30067 *) ac_try_echo=$ac_try;;
30069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_try") 2>&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; } &&
30074 { ac_try='test -s conftest.$ac_objext'
30075 { (case "(($ac_try" in
30076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077 *) ac_try_echo=$ac_try;;
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080 (eval "$ac_try") 2>&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); }; }; then
30084 ac_cv_struct_tm=time.h
30086 echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30089 ac_cv_struct_tm=sys/time.h
30092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30094 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30095 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30096 if test $ac_cv_struct_tm = sys/time.h; then
30098 cat >>confdefs.h <<\_ACEOF
30099 #define TM_IN_SYS_TIME 1
30104 { echo "$as_me:$LINENO: checking for int64_t" >&5
30105 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30106 if test "${ac_cv_type_int64_t+set}" = set; then
30107 echo $ECHO_N "(cached) $ECHO_C" >&6
30109 cat >conftest.$ac_ext <<_ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h. */
30115 $ac_includes_default
30116 typedef int64_t ac__type_new_;
30120 if ((ac__type_new_ *) 0)
30122 if (sizeof (ac__type_new_))
30128 rm -f conftest.$ac_objext
30129 if { (ac_try="$ac_compile"
30130 case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_compile") 2>conftest.er1
30137 grep -v '^ *+' conftest.er1 >conftest.err
30139 cat conftest.err >&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } &&
30142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30143 { (case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148 (eval "$ac_try") 2>&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest.$ac_objext'
30153 { (case "(($ac_try" in
30154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155 *) ac_try_echo=$ac_try;;
30157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158 (eval "$ac_try") 2>&5
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; }; then
30162 ac_cv_type_int64_t=yes
30164 echo "$as_me: failed program was:" >&5
30165 sed 's/^/| /' conftest.$ac_ext >&5
30167 ac_cv_type_int64_t=no
30170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30172 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30173 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30174 if test $ac_cv_type_int64_t = yes; then
30176 cat >>confdefs.h <<_ACEOF
30177 #define HAVE_INT64_T 1
30182 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30183 echo "$as_me: error: Type int64_t required but not found" >&2;}
30184 { (exit 1); exit 1; }; }
30187 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30188 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30189 if test "${ac_cv_type_uint64_t+set}" = set; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 cat >conftest.$ac_ext <<_ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30198 $ac_includes_default
30199 typedef uint64_t ac__type_new_;
30203 if ((ac__type_new_ *) 0)
30205 if (sizeof (ac__type_new_))
30211 rm -f conftest.$ac_objext
30212 if { (ac_try="$ac_compile"
30213 case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30218 (eval "$ac_compile") 2>conftest.er1
30220 grep -v '^ *+' conftest.er1 >conftest.err
30222 cat conftest.err >&5
30223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224 (exit $ac_status); } &&
30225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30226 { (case "(($ac_try" in
30227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228 *) ac_try_echo=$ac_try;;
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231 (eval "$ac_try") 2>&5
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); }; } &&
30235 { ac_try='test -s conftest.$ac_objext'
30236 { (case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_try") 2>&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; }; then
30245 ac_cv_type_uint64_t=yes
30247 echo "$as_me: failed program was:" >&5
30248 sed 's/^/| /' conftest.$ac_ext >&5
30250 ac_cv_type_uint64_t=no
30253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30255 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30256 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30257 if test $ac_cv_type_uint64_t = yes; then
30259 cat >>confdefs.h <<_ACEOF
30260 #define HAVE_UINT64_T 1
30265 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30266 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30267 if test "${ac_cv_type_u_int64_t+set}" = set; then
30268 echo $ECHO_N "(cached) $ECHO_C" >&6
30270 cat >conftest.$ac_ext <<_ACEOF
30273 cat confdefs.h >>conftest.$ac_ext
30274 cat >>conftest.$ac_ext <<_ACEOF
30275 /* end confdefs.h. */
30276 $ac_includes_default
30277 typedef u_int64_t ac__type_new_;
30281 if ((ac__type_new_ *) 0)
30283 if (sizeof (ac__type_new_))
30289 rm -f conftest.$ac_objext
30290 if { (ac_try="$ac_compile"
30291 case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_compile") 2>conftest.er1
30298 grep -v '^ *+' conftest.er1 >conftest.err
30300 cat conftest.err >&5
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
30303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30304 { (case "(($ac_try" in
30305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306 *) ac_try_echo=$ac_try;;
30308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309 (eval "$ac_try") 2>&5
30311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312 (exit $ac_status); }; } &&
30313 { ac_try='test -s conftest.$ac_objext'
30314 { (case "(($ac_try" in
30315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316 *) ac_try_echo=$ac_try;;
30318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319 (eval "$ac_try") 2>&5
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); }; }; then
30323 ac_cv_type_u_int64_t=yes
30325 echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30328 ac_cv_type_u_int64_t=no
30331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30333 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30334 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30335 if test $ac_cv_type_u_int64_t = yes; then
30337 cat >>confdefs.h <<_ACEOF
30338 #define HAVE_U_INT64_T 1
30343 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30344 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30345 { (exit 1); exit 1; }; }
30359 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30367 cat >conftest.$ac_ext <<_ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h. */
30373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30375 #define $ac_func innocuous_$ac_func
30377 /* System header to define __stub macros and hopefully few prototypes,
30378 which can conflict with char $ac_func (); below.
30379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30380 <limits.h> exists even on freestanding compilers. */
30383 # include <limits.h>
30385 # include <assert.h>
30390 /* Override any GCC internal prototype to avoid an error.
30391 Use char because int might match the return type of a GCC
30392 builtin and then its argument prototype would still apply. */
30397 /* The GNU C library defines this for functions which it implements
30398 to always fail with ENOSYS. Some functions are actually named
30399 something starting with __ and the normal name is an alias. */
30400 #if defined __stub_$ac_func || defined __stub___$ac_func
30407 return $ac_func ();
30412 rm -f conftest.$ac_objext conftest$ac_exeext
30413 if { (ac_try="$ac_link"
30414 case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_link") 2>conftest.er1
30421 grep -v '^ *+' conftest.er1 >conftest.err
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } &&
30426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30427 { (case "(($ac_try" in
30428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429 *) ac_try_echo=$ac_try;;
30431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_try") 2>&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; } &&
30436 { ac_try='test -s conftest$ac_exeext'
30437 { (case "(($ac_try" in
30438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439 *) ac_try_echo=$ac_try;;
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442 (eval "$ac_try") 2>&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30446 eval "$as_ac_var=yes"
30448 echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30451 eval "$as_ac_var=no"
30454 rm -f core conftest.err conftest.$ac_objext \
30455 conftest$ac_exeext conftest.$ac_ext
30457 ac_res=`eval echo '${'$as_ac_var'}'`
30458 { echo "$as_me:$LINENO: result: $ac_res" >&5
30459 echo "${ECHO_T}$ac_res" >&6; }
30460 if test `eval echo '${'$as_ac_var'}'` = yes; then
30461 cat >>confdefs.h <<_ACEOF
30462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30472 for ac_func in powf fmodf strtof round
30474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30480 cat >conftest.$ac_ext <<_ACEOF
30483 cat confdefs.h >>conftest.$ac_ext
30484 cat >>conftest.$ac_ext <<_ACEOF
30485 /* end confdefs.h. */
30486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30488 #define $ac_func innocuous_$ac_func
30490 /* System header to define __stub macros and hopefully few prototypes,
30491 which can conflict with char $ac_func (); below.
30492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30493 <limits.h> exists even on freestanding compilers. */
30496 # include <limits.h>
30498 # include <assert.h>
30503 /* Override any GCC internal prototype to avoid an error.
30504 Use char because int might match the return type of a GCC
30505 builtin and then its argument prototype would still apply. */
30510 /* The GNU C library defines this for functions which it implements
30511 to always fail with ENOSYS. Some functions are actually named
30512 something starting with __ and the normal name is an alias. */
30513 #if defined __stub_$ac_func || defined __stub___$ac_func
30520 return $ac_func ();
30525 rm -f conftest.$ac_objext conftest$ac_exeext
30526 if { (ac_try="$ac_link"
30527 case "(($ac_try" in
30528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529 *) ac_try_echo=$ac_try;;
30531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532 (eval "$ac_link") 2>conftest.er1
30534 grep -v '^ *+' conftest.er1 >conftest.err
30536 cat conftest.err >&5
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); } &&
30539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30540 { (case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_try") 2>&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; } &&
30549 { ac_try='test -s conftest$ac_exeext'
30550 { (case "(($ac_try" in
30551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552 *) ac_try_echo=$ac_try;;
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555 (eval "$ac_try") 2>&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; }; then
30559 eval "$as_ac_var=yes"
30561 echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30564 eval "$as_ac_var=no"
30567 rm -f core conftest.err conftest.$ac_objext \
30568 conftest$ac_exeext conftest.$ac_ext
30570 ac_res=`eval echo '${'$as_ac_var'}'`
30571 { echo "$as_me:$LINENO: result: $ac_res" >&5
30572 echo "${ECHO_T}$ac_res" >&6; }
30573 if test `eval echo '${'$as_ac_var'}'` = yes; then
30574 cat >>confdefs.h <<_ACEOF
30575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30592 echo $ECHO_N "(cached) $ECHO_C" >&6
30594 cat >conftest.$ac_ext <<_ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h. */
30600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30602 #define $ac_func innocuous_$ac_func
30604 /* System header to define __stub macros and hopefully few prototypes,
30605 which can conflict with char $ac_func (); below.
30606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30607 <limits.h> exists even on freestanding compilers. */
30610 # include <limits.h>
30612 # include <assert.h>
30617 /* Override any GCC internal prototype to avoid an error.
30618 Use char because int might match the return type of a GCC
30619 builtin and then its argument prototype would still apply. */
30624 /* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627 #if defined __stub_$ac_func || defined __stub___$ac_func
30634 return $ac_func ();
30639 rm -f conftest.$ac_objext conftest$ac_exeext
30640 if { (ac_try="$ac_link"
30641 case "(($ac_try" in
30642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30643 *) ac_try_echo=$ac_try;;
30645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30646 (eval "$ac_link") 2>conftest.er1
30648 grep -v '^ *+' conftest.er1 >conftest.err
30650 cat conftest.err >&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
30653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30654 { (case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_try") 2>&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest$ac_exeext'
30664 { (case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669 (eval "$ac_try") 2>&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); }; }; then
30673 eval "$as_ac_var=yes"
30675 echo "$as_me: failed program was:" >&5
30676 sed 's/^/| /' conftest.$ac_ext >&5
30678 eval "$as_ac_var=no"
30681 rm -f core conftest.err conftest.$ac_objext \
30682 conftest$ac_exeext conftest.$ac_ext
30684 ac_res=`eval echo '${'$as_ac_var'}'`
30685 { echo "$as_me:$LINENO: result: $ac_res" >&5
30686 echo "${ECHO_T}$ac_res" >&6; }
30687 if test `eval echo '${'$as_ac_var'}'` = yes; then
30688 cat >>confdefs.h <<_ACEOF
30689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698 for ac_func in isatty mkdtemp mkstemp
30700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30704 echo $ECHO_N "(cached) $ECHO_C" >&6
30706 cat >conftest.$ac_ext <<_ACEOF
30709 cat confdefs.h >>conftest.$ac_ext
30710 cat >>conftest.$ac_ext <<_ACEOF
30711 /* end confdefs.h. */
30712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30714 #define $ac_func innocuous_$ac_func
30716 /* System header to define __stub macros and hopefully few prototypes,
30717 which can conflict with char $ac_func (); below.
30718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30719 <limits.h> exists even on freestanding compilers. */
30722 # include <limits.h>
30724 # include <assert.h>
30729 /* Override any GCC internal prototype to avoid an error.
30730 Use char because int might match the return type of a GCC
30731 builtin and then its argument prototype would still apply. */
30736 /* The GNU C library defines this for functions which it implements
30737 to always fail with ENOSYS. Some functions are actually named
30738 something starting with __ and the normal name is an alias. */
30739 #if defined __stub_$ac_func || defined __stub___$ac_func
30746 return $ac_func ();
30751 rm -f conftest.$ac_objext conftest$ac_exeext
30752 if { (ac_try="$ac_link"
30753 case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_link") 2>conftest.er1
30760 grep -v '^ *+' conftest.er1 >conftest.err
30762 cat conftest.err >&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); } &&
30765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30766 { (case "(($ac_try" in
30767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768 *) ac_try_echo=$ac_try;;
30770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771 (eval "$ac_try") 2>&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; } &&
30775 { ac_try='test -s conftest$ac_exeext'
30776 { (case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_try") 2>&5
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; }; then
30785 eval "$as_ac_var=yes"
30787 echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30790 eval "$as_ac_var=no"
30793 rm -f core conftest.err conftest.$ac_objext \
30794 conftest$ac_exeext conftest.$ac_ext
30796 ac_res=`eval echo '${'$as_ac_var'}'`
30797 { echo "$as_me:$LINENO: result: $ac_res" >&5
30798 echo "${ECHO_T}$ac_res" >&6; }
30799 if test `eval echo '${'$as_ac_var'}'` = yes; then
30800 cat >>confdefs.h <<_ACEOF
30801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30814 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30820 echo $ECHO_N "(cached) $ECHO_C" >&6
30822 cat >conftest.$ac_ext <<_ACEOF
30825 cat confdefs.h >>conftest.$ac_ext
30826 cat >>conftest.$ac_ext <<_ACEOF
30827 /* end confdefs.h. */
30828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30830 #define $ac_func innocuous_$ac_func
30832 /* System header to define __stub macros and hopefully few prototypes,
30833 which can conflict with char $ac_func (); below.
30834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30835 <limits.h> exists even on freestanding compilers. */
30838 # include <limits.h>
30840 # include <assert.h>
30845 /* Override any GCC internal prototype to avoid an error.
30846 Use char because int might match the return type of a GCC
30847 builtin and then its argument prototype would still apply. */
30852 /* The GNU C library defines this for functions which it implements
30853 to always fail with ENOSYS. Some functions are actually named
30854 something starting with __ and the normal name is an alias. */
30855 #if defined __stub_$ac_func || defined __stub___$ac_func
30862 return $ac_func ();
30867 rm -f conftest.$ac_objext conftest$ac_exeext
30868 if { (ac_try="$ac_link"
30869 case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_link") 2>conftest.er1
30876 grep -v '^ *+' conftest.er1 >conftest.err
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } &&
30881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30882 { (case "(($ac_try" in
30883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884 *) ac_try_echo=$ac_try;;
30886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30887 (eval "$ac_try") 2>&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest$ac_exeext'
30892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
30901 eval "$as_ac_var=yes"
30903 echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30906 eval "$as_ac_var=no"
30909 rm -f core conftest.err conftest.$ac_objext \
30910 conftest$ac_exeext conftest.$ac_ext
30912 ac_res=`eval echo '${'$as_ac_var'}'`
30913 { echo "$as_me:$LINENO: result: $ac_res" >&5
30914 echo "${ECHO_T}$ac_res" >&6; }
30915 if test `eval echo '${'$as_ac_var'}'` = yes; then
30916 cat >>confdefs.h <<_ACEOF
30917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30927 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30933 echo $ECHO_N "(cached) $ECHO_C" >&6
30935 cat >conftest.$ac_ext <<_ACEOF
30938 cat confdefs.h >>conftest.$ac_ext
30939 cat >>conftest.$ac_ext <<_ACEOF
30940 /* end confdefs.h. */
30941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30943 #define $ac_func innocuous_$ac_func
30945 /* System header to define __stub macros and hopefully few prototypes,
30946 which can conflict with char $ac_func (); below.
30947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30948 <limits.h> exists even on freestanding compilers. */
30951 # include <limits.h>
30953 # include <assert.h>
30958 /* Override any GCC internal prototype to avoid an error.
30959 Use char because int might match the return type of a GCC
30960 builtin and then its argument prototype would still apply. */
30965 /* The GNU C library defines this for functions which it implements
30966 to always fail with ENOSYS. Some functions are actually named
30967 something starting with __ and the normal name is an alias. */
30968 #if defined __stub_$ac_func || defined __stub___$ac_func
30975 return $ac_func ();
30980 rm -f conftest.$ac_objext conftest$ac_exeext
30981 if { (ac_try="$ac_link"
30982 case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_link") 2>conftest.er1
30989 grep -v '^ *+' conftest.er1 >conftest.err
30991 cat conftest.err >&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } &&
30994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30995 { (case "(($ac_try" in
30996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997 *) ac_try_echo=$ac_try;;
30999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000 (eval "$ac_try") 2>&5
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; } &&
31004 { ac_try='test -s conftest$ac_exeext'
31005 { (case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_try") 2>&5
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; }; then
31014 eval "$as_ac_var=yes"
31016 echo "$as_me: failed program was:" >&5
31017 sed 's/^/| /' conftest.$ac_ext >&5
31019 eval "$as_ac_var=no"
31022 rm -f core conftest.err conftest.$ac_objext \
31023 conftest$ac_exeext conftest.$ac_ext
31025 ac_res=`eval echo '${'$as_ac_var'}'`
31026 { echo "$as_me:$LINENO: result: $ac_res" >&5
31027 echo "${ECHO_T}$ac_res" >&6; }
31028 if test `eval echo '${'$as_ac_var'}'` = yes; then
31029 cat >>confdefs.h <<_ACEOF
31030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31040 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31046 echo $ECHO_N "(cached) $ECHO_C" >&6
31048 cat >conftest.$ac_ext <<_ACEOF
31051 cat confdefs.h >>conftest.$ac_ext
31052 cat >>conftest.$ac_ext <<_ACEOF
31053 /* end confdefs.h. */
31054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31056 #define $ac_func innocuous_$ac_func
31058 /* System header to define __stub macros and hopefully few prototypes,
31059 which can conflict with char $ac_func (); below.
31060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31061 <limits.h> exists even on freestanding compilers. */
31064 # include <limits.h>
31066 # include <assert.h>
31071 /* Override any GCC internal prototype to avoid an error.
31072 Use char because int might match the return type of a GCC
31073 builtin and then its argument prototype would still apply. */
31078 /* The GNU C library defines this for functions which it implements
31079 to always fail with ENOSYS. Some functions are actually named
31080 something starting with __ and the normal name is an alias. */
31081 #if defined __stub_$ac_func || defined __stub___$ac_func
31088 return $ac_func ();
31093 rm -f conftest.$ac_objext conftest$ac_exeext
31094 if { (ac_try="$ac_link"
31095 case "(($ac_try" in
31096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31097 *) ac_try_echo=$ac_try;;
31099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31100 (eval "$ac_link") 2>conftest.er1
31102 grep -v '^ *+' conftest.er1 >conftest.err
31104 cat conftest.err >&5
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } &&
31107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31108 { (case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_try") 2>&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; } &&
31117 { ac_try='test -s conftest$ac_exeext'
31118 { (case "(($ac_try" in
31119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120 *) ac_try_echo=$ac_try;;
31122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123 (eval "$ac_try") 2>&5
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; }; then
31127 eval "$as_ac_var=yes"
31129 echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31132 eval "$as_ac_var=no"
31135 rm -f core conftest.err conftest.$ac_objext \
31136 conftest$ac_exeext conftest.$ac_ext
31138 ac_res=`eval echo '${'$as_ac_var'}'`
31139 { echo "$as_me:$LINENO: result: $ac_res" >&5
31140 echo "${ECHO_T}$ac_res" >&6; }
31141 if test `eval echo '${'$as_ac_var'}'` = yes; then
31142 cat >>confdefs.h <<_ACEOF
31143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31149 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31150 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31151 if test "${llvm_cv_c_printf_a+set}" = set; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31155 ac_cpp='$CPP $CPPFLAGS'
31156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31160 if test "$cross_compiling" = yes; then
31161 llvmac_cv_c_printf_a=no
31163 cat >conftest.$ac_ext <<_ACEOF
31167 cat confdefs.h >>conftest.$ac_ext
31168 cat >>conftest.$ac_ext <<_ACEOF
31169 /* end confdefs.h. */
31172 #include <stdlib.h>
31178 volatile double A, B;
31182 sprintf(Buffer, "%a", A);
31186 if (A != 0x1.999999999999ap-4)
31193 rm -f conftest$ac_exeext
31194 if { (ac_try="$ac_link"
31195 case "(($ac_try" in
31196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31197 *) ac_try_echo=$ac_try;;
31199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31200 (eval "$ac_link") 2>&5
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31204 { (case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_try") 2>&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; }; then
31213 llvm_cv_c_printf_a=yes
31215 echo "$as_me: program exited with status $ac_status" >&5
31216 echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31219 ( exit $ac_status )
31220 llvmac_cv_c_printf_a=no
31222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31227 ac_cpp='$CPP $CPPFLAGS'
31228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31233 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31234 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31235 if test "$llvm_cv_c_printf_a" = "yes"; then
31237 cat >>confdefs.h <<\_ACEOF
31238 #define HAVE_PRINTF_A 1
31243 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31244 # for constant arguments. Useless!
31245 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31246 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31247 if test "${ac_cv_working_alloca_h+set}" = set; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
31250 cat >conftest.$ac_ext <<_ACEOF
31253 cat confdefs.h >>conftest.$ac_ext
31254 cat >>conftest.$ac_ext <<_ACEOF
31255 /* end confdefs.h. */
31256 #include <alloca.h>
31260 char *p = (char *) alloca (2 * sizeof (int));
31266 rm -f conftest.$ac_objext conftest$ac_exeext
31267 if { (ac_try="$ac_link"
31268 case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273 (eval "$ac_link") 2>conftest.er1
31275 grep -v '^ *+' conftest.er1 >conftest.err
31277 cat conftest.err >&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } &&
31280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
31290 { ac_try='test -s conftest$ac_exeext'
31291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
31300 ac_cv_working_alloca_h=yes
31302 echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31305 ac_cv_working_alloca_h=no
31308 rm -f core conftest.err conftest.$ac_objext \
31309 conftest$ac_exeext conftest.$ac_ext
31311 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31312 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31313 if test $ac_cv_working_alloca_h = yes; then
31315 cat >>confdefs.h <<\_ACEOF
31316 #define HAVE_ALLOCA_H 1
31321 { echo "$as_me:$LINENO: checking for alloca" >&5
31322 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31323 if test "${ac_cv_func_alloca_works+set}" = set; then
31324 echo $ECHO_N "(cached) $ECHO_C" >&6
31326 cat >conftest.$ac_ext <<_ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31333 # define alloca __builtin_alloca
31336 # include <malloc.h>
31337 # define alloca _alloca
31340 # include <alloca.h>
31345 # ifndef alloca /* predefined by HP cc +Olibcalls */
31356 char *p = (char *) alloca (1);
31362 rm -f conftest.$ac_objext conftest$ac_exeext
31363 if { (ac_try="$ac_link"
31364 case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_link") 2>conftest.er1
31371 grep -v '^ *+' conftest.er1 >conftest.err
31373 cat conftest.err >&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } &&
31376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31377 { (case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; } &&
31386 { ac_try='test -s conftest$ac_exeext'
31387 { (case "(($ac_try" in
31388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389 *) ac_try_echo=$ac_try;;
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392 (eval "$ac_try") 2>&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 ac_cv_func_alloca_works=yes
31398 echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31401 ac_cv_func_alloca_works=no
31404 rm -f core conftest.err conftest.$ac_objext \
31405 conftest$ac_exeext conftest.$ac_ext
31407 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31410 if test $ac_cv_func_alloca_works = yes; then
31412 cat >>confdefs.h <<\_ACEOF
31413 #define HAVE_ALLOCA 1
31417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31418 # that cause trouble. Some versions do not even contain alloca or
31419 # contain a buggy version. If you still want to use their alloca,
31420 # use ar to extract alloca.o from them instead of compiling alloca.c.
31422 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31424 cat >>confdefs.h <<\_ACEOF
31429 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31431 if test "${ac_cv_os_cray+set}" = set; then
31432 echo $ECHO_N "(cached) $ECHO_C" >&6
31434 cat >conftest.$ac_ext <<_ACEOF
31437 cat confdefs.h >>conftest.$ac_ext
31438 cat >>conftest.$ac_ext <<_ACEOF
31439 /* end confdefs.h. */
31440 #if defined CRAY && ! defined CRAY2
31447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31448 $EGREP "webecray" >/dev/null 2>&1; then
31456 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31457 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31458 if test $ac_cv_os_cray = yes; then
31459 for ac_func in _getb67 GETB67 getb67; do
31460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31466 cat >conftest.$ac_ext <<_ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h. */
31472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31474 #define $ac_func innocuous_$ac_func
31476 /* System header to define __stub macros and hopefully few prototypes,
31477 which can conflict with char $ac_func (); below.
31478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31479 <limits.h> exists even on freestanding compilers. */
31482 # include <limits.h>
31484 # include <assert.h>
31489 /* Override any GCC internal prototype to avoid an error.
31490 Use char because int might match the return type of a GCC
31491 builtin and then its argument prototype would still apply. */
31496 /* The GNU C library defines this for functions which it implements
31497 to always fail with ENOSYS. Some functions are actually named
31498 something starting with __ and the normal name is an alias. */
31499 #if defined __stub_$ac_func || defined __stub___$ac_func
31506 return $ac_func ();
31511 rm -f conftest.$ac_objext conftest$ac_exeext
31512 if { (ac_try="$ac_link"
31513 case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_link") 2>conftest.er1
31520 grep -v '^ *+' conftest.er1 >conftest.err
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 eval "$as_ac_var=yes"
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 eval "$as_ac_var=no"
31553 rm -f core conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
31556 ac_res=`eval echo '${'$as_ac_var'}'`
31557 { echo "$as_me:$LINENO: result: $ac_res" >&5
31558 echo "${ECHO_T}$ac_res" >&6; }
31559 if test `eval echo '${'$as_ac_var'}'` = yes; then
31561 cat >>confdefs.h <<_ACEOF
31562 #define CRAY_STACKSEG_END $ac_func
31571 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31572 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31573 if test "${ac_cv_c_stack_direction+set}" = set; then
31574 echo $ECHO_N "(cached) $ECHO_C" >&6
31576 if test "$cross_compiling" = yes; then
31577 ac_cv_c_stack_direction=0
31579 cat >conftest.$ac_ext <<_ACEOF
31582 cat confdefs.h >>conftest.$ac_ext
31583 cat >>conftest.$ac_ext <<_ACEOF
31584 /* end confdefs.h. */
31585 $ac_includes_default
31587 find_stack_direction ()
31589 static char *addr = 0;
31594 return find_stack_direction ();
31597 return (&dummy > addr) ? 1 : -1;
31603 return find_stack_direction () < 0;
31606 rm -f conftest$ac_exeext
31607 if { (ac_try="$ac_link"
31608 case "(($ac_try" in
31609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610 *) ac_try_echo=$ac_try;;
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_link") 2>&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31617 { (case "(($ac_try" in
31618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619 *) ac_try_echo=$ac_try;;
31621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622 (eval "$ac_try") 2>&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; }; then
31626 ac_cv_c_stack_direction=1
31628 echo "$as_me: program exited with status $ac_status" >&5
31629 echo "$as_me: failed program was:" >&5
31630 sed 's/^/| /' conftest.$ac_ext >&5
31632 ( exit $ac_status )
31633 ac_cv_c_stack_direction=-1
31635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31640 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31641 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31643 cat >>confdefs.h <<_ACEOF
31644 #define STACK_DIRECTION $ac_cv_c_stack_direction
31651 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31652 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31653 if test "${ac_cv_func_rand48+set}" = set; then
31654 echo $ECHO_N "(cached) $ECHO_C" >&6
31657 ac_cpp='$CXXCPP $CPPFLAGS'
31658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31662 cat >conftest.$ac_ext <<_ACEOF
31665 cat confdefs.h >>conftest.$ac_ext
31666 cat >>conftest.$ac_ext <<_ACEOF
31667 /* end confdefs.h. */
31668 #include <stdlib.h>
31672 srand48(0);lrand48();drand48();
31677 rm -f conftest.$ac_objext
31678 if { (ac_try="$ac_compile"
31679 case "(($ac_try" in
31680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681 *) ac_try_echo=$ac_try;;
31683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684 (eval "$ac_compile") 2>conftest.er1
31686 grep -v '^ *+' conftest.er1 >conftest.err
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
31691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31692 { (case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_try") 2>&5
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; } &&
31701 { ac_try='test -s conftest.$ac_objext'
31702 { (case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 (eval "$ac_try") 2>&5
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; }; then
31711 ac_cv_func_rand48=yes
31713 echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31716 ac_cv_func_rand48=no
31719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31721 ac_cpp='$CPP $CPPFLAGS'
31722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31727 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31728 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31730 if test "$ac_cv_func_rand48" = "yes" ; then
31732 cat >>confdefs.h <<\_ACEOF
31733 #define HAVE_RAND48 1
31739 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31740 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31741 if test "${ac_cv_cxx_namespaces+set}" = set; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31745 ac_cpp='$CXXCPP $CPPFLAGS'
31746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31750 cat >conftest.$ac_ext <<_ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h. */
31756 namespace Outer { namespace Inner { int i = 0; }}
31760 using namespace Outer::Inner; return i;
31765 rm -f conftest.$ac_objext
31766 if { (ac_try="$ac_compile"
31767 case "(($ac_try" in
31768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769 *) ac_try_echo=$ac_try;;
31771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31772 (eval "$ac_compile") 2>conftest.er1
31774 grep -v '^ *+' conftest.er1 >conftest.err
31776 cat conftest.err >&5
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); } &&
31779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31780 { (case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_try") 2>&5
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; } &&
31789 { ac_try='test -s conftest.$ac_objext'
31790 { (case "(($ac_try" in
31791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792 *) ac_try_echo=$ac_try;;
31794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795 (eval "$ac_try") 2>&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798 (exit $ac_status); }; }; then
31799 ac_cv_cxx_namespaces=yes
31801 echo "$as_me: failed program was:" >&5
31802 sed 's/^/| /' conftest.$ac_ext >&5
31804 ac_cv_cxx_namespaces=no
31807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31809 ac_cpp='$CPP $CPPFLAGS'
31810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31816 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31817 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31818 if test "$ac_cv_cxx_namespaces" = yes; then
31820 cat >>confdefs.h <<\_ACEOF
31821 #define HAVE_NAMESPACES
31826 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31827 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31828 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31829 echo $ECHO_N "(cached) $ECHO_C" >&6
31833 ac_cpp='$CXXCPP $CPPFLAGS'
31834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31838 cat >conftest.$ac_ext <<_ACEOF
31841 cat confdefs.h >>conftest.$ac_ext
31842 cat >>conftest.$ac_ext <<_ACEOF
31843 /* end confdefs.h. */
31844 #include <ext/hash_map>
31845 #ifdef HAVE_NAMESPACES
31846 using namespace std;
31851 hash_map<int, int> t;
31856 rm -f conftest.$ac_objext
31857 if { (ac_try="$ac_compile"
31858 case "(($ac_try" in
31859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31860 *) ac_try_echo=$ac_try;;
31862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31863 (eval "$ac_compile") 2>conftest.er1
31865 grep -v '^ *+' conftest.er1 >conftest.err
31867 cat conftest.err >&5
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); } &&
31870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31871 { (case "(($ac_try" in
31872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873 *) ac_try_echo=$ac_try;;
31875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31876 (eval "$ac_try") 2>&5
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; } &&
31880 { ac_try='test -s conftest.$ac_objext'
31881 { (case "(($ac_try" in
31882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883 *) ac_try_echo=$ac_try;;
31885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886 (eval "$ac_try") 2>&5
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; }; then
31890 ac_cv_cxx_have_std_ext_hash_map=yes
31892 echo "$as_me: failed program was:" >&5
31893 sed 's/^/| /' conftest.$ac_ext >&5
31895 ac_cv_cxx_have_std_ext_hash_map=no
31898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31900 ac_cpp='$CPP $CPPFLAGS'
31901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31906 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31907 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31908 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31911 cat >>confdefs.h <<\_ACEOF
31912 #define HAVE_STD_EXT_HASH_MAP 1
31917 cat >>confdefs.h <<\_ACEOF
31918 #define HAVE_STD_EXT_HASH_MAP 0
31923 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31924 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31925 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31926 echo $ECHO_N "(cached) $ECHO_C" >&6
31930 ac_cpp='$CXXCPP $CPPFLAGS'
31931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31935 cat >conftest.$ac_ext <<_ACEOF
31938 cat confdefs.h >>conftest.$ac_ext
31939 cat >>conftest.$ac_ext <<_ACEOF
31940 /* end confdefs.h. */
31941 #include <ext/hash_map>
31942 #ifdef HAVE_NAMESPACES
31943 using namespace __gnu_cxx;
31948 hash_map<int,int> t;
31953 rm -f conftest.$ac_objext
31954 if { (ac_try="$ac_compile"
31955 case "(($ac_try" in
31956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957 *) ac_try_echo=$ac_try;;
31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960 (eval "$ac_compile") 2>conftest.er1
31962 grep -v '^ *+' conftest.er1 >conftest.err
31964 cat conftest.err >&5
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
31967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31968 { (case "(($ac_try" in
31969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31970 *) ac_try_echo=$ac_try;;
31972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31973 (eval "$ac_try") 2>&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; } &&
31977 { ac_try='test -s conftest.$ac_objext'
31978 { (case "(($ac_try" in
31979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980 *) ac_try_echo=$ac_try;;
31982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983 (eval "$ac_try") 2>&5
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); }; }; then
31987 ac_cv_cxx_have_gnu_ext_hash_map=yes
31989 echo "$as_me: failed program was:" >&5
31990 sed 's/^/| /' conftest.$ac_ext >&5
31992 ac_cv_cxx_have_gnu_ext_hash_map=no
31995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31997 ac_cpp='$CPP $CPPFLAGS'
31998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32003 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32004 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32005 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32008 cat >>confdefs.h <<\_ACEOF
32009 #define HAVE_GNU_EXT_HASH_MAP 1
32014 cat >>confdefs.h <<\_ACEOF
32015 #define HAVE_GNU_EXT_HASH_MAP 0
32020 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32021 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32022 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32027 ac_cpp='$CXXCPP $CPPFLAGS'
32028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32032 cat >conftest.$ac_ext <<_ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h. */
32038 #include <hash_map>
32042 hash_map<int,int> t;
32047 rm -f conftest.$ac_objext
32048 if { (ac_try="$ac_compile"
32049 case "(($ac_try" in
32050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051 *) ac_try_echo=$ac_try;;
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054 (eval "$ac_compile") 2>conftest.er1
32056 grep -v '^ *+' conftest.er1 >conftest.err
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } &&
32061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32062 { (case "(($ac_try" in
32063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32064 *) ac_try_echo=$ac_try;;
32066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32067 (eval "$ac_try") 2>&5
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); }; } &&
32071 { ac_try='test -s conftest.$ac_objext'
32072 { (case "(($ac_try" in
32073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074 *) ac_try_echo=$ac_try;;
32076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077 (eval "$ac_try") 2>&5
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; }; then
32081 ac_cv_cxx_have_global_hash_map=yes
32083 echo "$as_me: failed program was:" >&5
32084 sed 's/^/| /' conftest.$ac_ext >&5
32086 ac_cv_cxx_have_global_hash_map=no
32089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32091 ac_cpp='$CPP $CPPFLAGS'
32092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32097 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32098 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32099 if test "$ac_cv_cxx_have_global_hash_map" = yes
32102 cat >>confdefs.h <<\_ACEOF
32103 #define HAVE_GLOBAL_HASH_MAP 1
32108 cat >>confdefs.h <<\_ACEOF
32109 #define HAVE_GLOBAL_HASH_MAP 0
32114 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32115 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32116 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32117 echo $ECHO_N "(cached) $ECHO_C" >&6
32121 ac_cpp='$CXXCPP $CPPFLAGS'
32122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32126 cat >conftest.$ac_ext <<_ACEOF
32129 cat confdefs.h >>conftest.$ac_ext
32130 cat >>conftest.$ac_ext <<_ACEOF
32131 /* end confdefs.h. */
32132 #include <ext/hash_set>
32133 #ifdef HAVE_NAMESPACES
32134 using namespace std;
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_compile") 2>conftest.er1
32153 grep -v '^ *+' conftest.er1 >conftest.err
32155 cat conftest.err >&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } &&
32158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32159 { (case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_try") 2>&5
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; } &&
32168 { ac_try='test -s conftest.$ac_objext'
32169 { (case "(($ac_try" in
32170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174 (eval "$ac_try") 2>&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; }; then
32178 ac_cv_cxx_have_std_ext_hash_set=yes
32180 echo "$as_me: failed program was:" >&5
32181 sed 's/^/| /' conftest.$ac_ext >&5
32183 ac_cv_cxx_have_std_ext_hash_set=no
32186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32188 ac_cpp='$CPP $CPPFLAGS'
32189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32194 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32195 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32196 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32199 cat >>confdefs.h <<\_ACEOF
32200 #define HAVE_STD_EXT_HASH_SET 1
32205 cat >>confdefs.h <<\_ACEOF
32206 #define HAVE_STD_EXT_HASH_SET 0
32211 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32212 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32213 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32214 echo $ECHO_N "(cached) $ECHO_C" >&6
32218 ac_cpp='$CXXCPP $CPPFLAGS'
32219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32223 cat >conftest.$ac_ext <<_ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h. */
32229 #include <ext/hash_set>
32230 #ifdef HAVE_NAMESPACES
32231 using namespace __gnu_cxx;
32241 rm -f conftest.$ac_objext
32242 if { (ac_try="$ac_compile"
32243 case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_compile") 2>conftest.er1
32250 grep -v '^ *+' conftest.er1 >conftest.err
32252 cat conftest.err >&5
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } &&
32255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; } &&
32265 { ac_try='test -s conftest.$ac_objext'
32266 { (case "(($ac_try" in
32267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271 (eval "$ac_try") 2>&5
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; }; then
32275 ac_cv_cxx_have_gnu_ext_hash_set=yes
32277 echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32280 ac_cv_cxx_have_gnu_ext_hash_set=no
32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32285 ac_cpp='$CPP $CPPFLAGS'
32286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32291 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32292 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32293 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32296 cat >>confdefs.h <<\_ACEOF
32297 #define HAVE_GNU_EXT_HASH_SET 1
32302 cat >>confdefs.h <<\_ACEOF
32303 #define HAVE_GNU_EXT_HASH_SET 0
32308 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32309 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32310 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32315 ac_cpp='$CXXCPP $CPPFLAGS'
32316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32320 cat >conftest.$ac_ext <<_ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h. */
32326 #include <hash_set>
32330 hash_set<int> t; return 0;
32335 rm -f conftest.$ac_objext
32336 if { (ac_try="$ac_compile"
32337 case "(($ac_try" in
32338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339 *) ac_try_echo=$ac_try;;
32341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342 (eval "$ac_compile") 2>conftest.er1
32344 grep -v '^ *+' conftest.er1 >conftest.err
32346 cat conftest.err >&5
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); } &&
32349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32350 { (case "(($ac_try" in
32351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352 *) ac_try_echo=$ac_try;;
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355 (eval "$ac_try") 2>&5
32357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); }; } &&
32359 { ac_try='test -s conftest.$ac_objext'
32360 { (case "(($ac_try" in
32361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362 *) ac_try_echo=$ac_try;;
32364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365 (eval "$ac_try") 2>&5
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; }; then
32369 ac_cv_cxx_have_global_hash_set=yes
32371 echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32374 ac_cv_cxx_have_global_hash_set=no
32377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32379 ac_cpp='$CPP $CPPFLAGS'
32380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32385 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32386 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32387 if test "$ac_cv_cxx_have_global_hash_set" = yes
32390 cat >>confdefs.h <<\_ACEOF
32391 #define HAVE_GLOBAL_HASH_SET 1
32396 cat >>confdefs.h <<\_ACEOF
32397 #define HAVE_GLOBAL_HASH_SET 0
32402 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32403 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32404 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32409 ac_cpp='$CXXCPP $CPPFLAGS'
32410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414 cat >conftest.$ac_ext <<_ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h. */
32420 #include <iterator>
32421 #ifdef HAVE_NAMESPACES
32422 using namespace std;
32427 iterator<int,int,int> t; return 0;
32432 rm -f conftest.$ac_objext
32433 if { (ac_try="$ac_compile"
32434 case "(($ac_try" in
32435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436 *) ac_try_echo=$ac_try;;
32438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32439 (eval "$ac_compile") 2>conftest.er1
32441 grep -v '^ *+' conftest.er1 >conftest.err
32443 cat conftest.err >&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } &&
32446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32447 { (case "(($ac_try" in
32448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_try") 2>&5
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); }; } &&
32456 { ac_try='test -s conftest.$ac_objext'
32457 { (case "(($ac_try" in
32458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32459 *) ac_try_echo=$ac_try;;
32461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32462 (eval "$ac_try") 2>&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); }; }; then
32466 ac_cv_cxx_have_std_iterator=yes
32468 echo "$as_me: failed program was:" >&5
32469 sed 's/^/| /' conftest.$ac_ext >&5
32471 ac_cv_cxx_have_std_iterator=no
32474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32476 ac_cpp='$CPP $CPPFLAGS'
32477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32483 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32484 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32485 if test "$ac_cv_cxx_have_std_iterator" = yes
32488 cat >>confdefs.h <<\_ACEOF
32489 #define HAVE_STD_ITERATOR 1
32494 cat >>confdefs.h <<\_ACEOF
32495 #define HAVE_STD_ITERATOR 0
32500 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32501 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32502 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32503 echo $ECHO_N "(cached) $ECHO_C" >&6
32507 ac_cpp='$CXXCPP $CPPFLAGS'
32508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32512 cat >conftest.$ac_ext <<_ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h. */
32518 #include <iterator>
32519 #ifdef HAVE_NAMESPACES
32520 using namespace std;
32525 bidirectional_iterator<int,int> t; return 0;
32530 rm -f conftest.$ac_objext
32531 if { (ac_try="$ac_compile"
32532 case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_compile") 2>conftest.er1
32539 grep -v '^ *+' conftest.er1 >conftest.err
32541 cat conftest.err >&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } &&
32544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32545 { (case "(($ac_try" in
32546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547 *) ac_try_echo=$ac_try;;
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550 (eval "$ac_try") 2>&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); }; } &&
32554 { ac_try='test -s conftest.$ac_objext'
32555 { (case "(($ac_try" in
32556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557 *) ac_try_echo=$ac_try;;
32559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560 (eval "$ac_try") 2>&5
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; }; then
32564 ac_cv_cxx_have_bi_iterator=yes
32566 echo "$as_me: failed program was:" >&5
32567 sed 's/^/| /' conftest.$ac_ext >&5
32569 ac_cv_cxx_have_bi_iterator=no
32572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32574 ac_cpp='$CPP $CPPFLAGS'
32575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32581 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32582 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32583 if test "$ac_cv_cxx_have_bi_iterator" = yes
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_BI_ITERATOR 1
32592 cat >>confdefs.h <<\_ACEOF
32593 #define HAVE_BI_ITERATOR 0
32598 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32599 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32600 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
32605 ac_cpp='$CXXCPP $CPPFLAGS'
32606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32610 cat >conftest.$ac_ext <<_ACEOF
32613 cat confdefs.h >>conftest.$ac_ext
32614 cat >>conftest.$ac_ext <<_ACEOF
32615 /* end confdefs.h. */
32616 #include <iterator>
32617 #ifdef HAVE_NAMESPACES
32618 using namespace std;
32623 forward_iterator<int,int> t; return 0;
32628 rm -f conftest.$ac_objext
32629 if { (ac_try="$ac_compile"
32630 case "(($ac_try" in
32631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_compile") 2>conftest.er1
32637 grep -v '^ *+' conftest.er1 >conftest.err
32639 cat conftest.err >&5
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); } &&
32642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32643 { (case "(($ac_try" in
32644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645 *) ac_try_echo=$ac_try;;
32647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32648 (eval "$ac_try") 2>&5
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; } &&
32652 { ac_try='test -s conftest.$ac_objext'
32653 { (case "(($ac_try" in
32654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32655 *) ac_try_echo=$ac_try;;
32657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658 (eval "$ac_try") 2>&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); }; }; then
32662 ac_cv_cxx_have_fwd_iterator=yes
32664 echo "$as_me: failed program was:" >&5
32665 sed 's/^/| /' conftest.$ac_ext >&5
32667 ac_cv_cxx_have_fwd_iterator=no
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32672 ac_cpp='$CPP $CPPFLAGS'
32673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32679 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32680 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32681 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32684 cat >>confdefs.h <<\_ACEOF
32685 #define HAVE_FWD_ITERATOR 1
32690 cat >>confdefs.h <<\_ACEOF
32691 #define HAVE_FWD_ITERATOR 0
32697 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32698 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32699 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32700 echo $ECHO_N "(cached) $ECHO_C" >&6
32703 ac_cpp='$CXXCPP $CPPFLAGS'
32704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32708 cat >conftest.$ac_ext <<_ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h. */
32723 rm -f conftest.$ac_objext
32724 if { (ac_try="$ac_compile"
32725 case "(($ac_try" in
32726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32727 *) ac_try_echo=$ac_try;;
32729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32730 (eval "$ac_compile") 2>conftest.er1
32732 grep -v '^ *+' conftest.er1 >conftest.err
32734 cat conftest.err >&5
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } &&
32737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32738 { (case "(($ac_try" in
32739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740 *) ac_try_echo=$ac_try;;
32742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743 (eval "$ac_try") 2>&5
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; } &&
32747 { ac_try='test -s conftest.$ac_objext'
32748 { (case "(($ac_try" in
32749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750 *) ac_try_echo=$ac_try;;
32752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753 (eval "$ac_try") 2>&5
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); }; }; then
32757 ac_cv_func_isnan_in_math_h=yes
32759 echo "$as_me: failed program was:" >&5
32760 sed 's/^/| /' conftest.$ac_ext >&5
32762 ac_cv_func_isnan_in_math_h=no
32765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32767 ac_cpp='$CPP $CPPFLAGS'
32768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32773 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32774 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32777 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32779 cat >>confdefs.h <<\_ACEOF
32780 #define HAVE_ISNAN_IN_MATH_H 1
32785 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32786 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32787 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32788 echo $ECHO_N "(cached) $ECHO_C" >&6
32791 ac_cpp='$CXXCPP $CPPFLAGS'
32792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32796 cat >conftest.$ac_ext <<_ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32811 rm -f conftest.$ac_objext
32812 if { (ac_try="$ac_compile"
32813 case "(($ac_try" in
32814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32815 *) ac_try_echo=$ac_try;;
32817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32818 (eval "$ac_compile") 2>conftest.er1
32820 grep -v '^ *+' conftest.er1 >conftest.err
32822 cat conftest.err >&5
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); } &&
32825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32826 { (case "(($ac_try" in
32827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32828 *) ac_try_echo=$ac_try;;
32830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32831 (eval "$ac_try") 2>&5
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); }; } &&
32835 { ac_try='test -s conftest.$ac_objext'
32836 { (case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_try") 2>&5
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); }; }; then
32845 ac_cv_func_isnan_in_cmath=yes
32847 echo "$as_me: failed program was:" >&5
32848 sed 's/^/| /' conftest.$ac_ext >&5
32850 ac_cv_func_isnan_in_cmath=no
32853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32855 ac_cpp='$CPP $CPPFLAGS'
32856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32861 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32862 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32864 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32866 cat >>confdefs.h <<\_ACEOF
32867 #define HAVE_ISNAN_IN_CMATH 1
32872 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32873 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32874 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32875 echo $ECHO_N "(cached) $ECHO_C" >&6
32878 ac_cpp='$CXXCPP $CPPFLAGS'
32879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32883 cat >conftest.$ac_ext <<_ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h. */
32893 float f; std::isnan(f);
32898 rm -f conftest.$ac_objext
32899 if { (ac_try="$ac_compile"
32900 case "(($ac_try" in
32901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32902 *) ac_try_echo=$ac_try;;
32904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32905 (eval "$ac_compile") 2>conftest.er1
32907 grep -v '^ *+' conftest.er1 >conftest.err
32909 cat conftest.err >&5
32910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911 (exit $ac_status); } &&
32912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32913 { (case "(($ac_try" in
32914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32915 *) ac_try_echo=$ac_try;;
32917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32918 (eval "$ac_try") 2>&5
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; } &&
32922 { ac_try='test -s conftest.$ac_objext'
32923 { (case "(($ac_try" in
32924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925 *) ac_try_echo=$ac_try;;
32927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928 (eval "$ac_try") 2>&5
32930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32931 (exit $ac_status); }; }; then
32932 ac_cv_func_std_isnan_in_cmath=yes
32934 echo "$as_me: failed program was:" >&5
32935 sed 's/^/| /' conftest.$ac_ext >&5
32937 ac_cv_func_std_isnan_in_cmath=no
32940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32942 ac_cpp='$CPP $CPPFLAGS'
32943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32948 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32949 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32951 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32953 cat >>confdefs.h <<\_ACEOF
32954 #define HAVE_STD_ISNAN_IN_CMATH 1
32960 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32961 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32962 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32963 echo $ECHO_N "(cached) $ECHO_C" >&6
32966 ac_cpp='$CXXCPP $CPPFLAGS'
32967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32971 cat >conftest.$ac_ext <<_ACEOF
32974 cat confdefs.h >>conftest.$ac_ext
32975 cat >>conftest.$ac_ext <<_ACEOF
32976 /* end confdefs.h. */
32986 rm -f conftest.$ac_objext
32987 if { (ac_try="$ac_compile"
32988 case "(($ac_try" in
32989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990 *) ac_try_echo=$ac_try;;
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993 (eval "$ac_compile") 2>conftest.er1
32995 grep -v '^ *+' conftest.er1 >conftest.err
32997 cat conftest.err >&5
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); } &&
33000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33001 { (case "(($ac_try" in
33002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003 *) ac_try_echo=$ac_try;;
33005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006 (eval "$ac_try") 2>&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; } &&
33010 { ac_try='test -s conftest.$ac_objext'
33011 { (case "(($ac_try" in
33012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013 *) ac_try_echo=$ac_try;;
33015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016 (eval "$ac_try") 2>&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33020 ac_cv_func_isinf_in_math_h=yes
33022 echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33025 ac_cv_func_isinf_in_math_h=no
33028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33030 ac_cpp='$CPP $CPPFLAGS'
33031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33036 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33037 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33039 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33041 cat >>confdefs.h <<\_ACEOF
33042 #define HAVE_ISINF_IN_MATH_H 1
33047 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33048 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33049 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33050 echo $ECHO_N "(cached) $ECHO_C" >&6
33053 ac_cpp='$CXXCPP $CPPFLAGS'
33054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33058 cat >conftest.$ac_ext <<_ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h. */
33073 rm -f conftest.$ac_objext
33074 if { (ac_try="$ac_compile"
33075 case "(($ac_try" in
33076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33077 *) ac_try_echo=$ac_try;;
33079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33080 (eval "$ac_compile") 2>conftest.er1
33082 grep -v '^ *+' conftest.er1 >conftest.err
33084 cat conftest.err >&5
33085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086 (exit $ac_status); } &&
33087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33088 { (case "(($ac_try" in
33089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090 *) ac_try_echo=$ac_try;;
33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_try") 2>&5
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; } &&
33097 { ac_try='test -s conftest.$ac_objext'
33098 { (case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_try") 2>&5
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); }; }; then
33107 ac_cv_func_isinf_in_cmath=yes
33109 echo "$as_me: failed program was:" >&5
33110 sed 's/^/| /' conftest.$ac_ext >&5
33112 ac_cv_func_isinf_in_cmath=no
33115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33117 ac_cpp='$CPP $CPPFLAGS'
33118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33123 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33124 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33126 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33128 cat >>confdefs.h <<\_ACEOF
33129 #define HAVE_ISINF_IN_CMATH 1
33134 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33135 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33136 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33137 echo $ECHO_N "(cached) $ECHO_C" >&6
33140 ac_cpp='$CXXCPP $CPPFLAGS'
33141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33145 cat >conftest.$ac_ext <<_ACEOF
33148 cat confdefs.h >>conftest.$ac_ext
33149 cat >>conftest.$ac_ext <<_ACEOF
33150 /* end confdefs.h. */
33155 float f; std::isinf(f)}
33160 rm -f conftest.$ac_objext
33161 if { (ac_try="$ac_compile"
33162 case "(($ac_try" in
33163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164 *) ac_try_echo=$ac_try;;
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167 (eval "$ac_compile") 2>conftest.er1
33169 grep -v '^ *+' conftest.er1 >conftest.err
33171 cat conftest.err >&5
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); } &&
33174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33175 { (case "(($ac_try" in
33176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33177 *) ac_try_echo=$ac_try;;
33179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33180 (eval "$ac_try") 2>&5
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); }; } &&
33184 { ac_try='test -s conftest.$ac_objext'
33185 { (case "(($ac_try" in
33186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33187 *) ac_try_echo=$ac_try;;
33189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33190 (eval "$ac_try") 2>&5
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; }; then
33194 ac_cv_func_std_isinf_in_cmath=yes
33196 echo "$as_me: failed program was:" >&5
33197 sed 's/^/| /' conftest.$ac_ext >&5
33199 ac_cv_func_std_isinf_in_cmath=no
33202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33204 ac_cpp='$CPP $CPPFLAGS'
33205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33210 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33211 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33213 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33215 cat >>confdefs.h <<\_ACEOF
33216 #define HAVE_STD_ISINF_IN_CMATH 1
33221 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33222 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33223 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33224 echo $ECHO_N "(cached) $ECHO_C" >&6
33227 ac_cpp='$CXXCPP $CPPFLAGS'
33228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33232 cat >conftest.$ac_ext <<_ACEOF
33235 cat confdefs.h >>conftest.$ac_ext
33236 cat >>conftest.$ac_ext <<_ACEOF
33237 /* end confdefs.h. */
33238 #include <ieeefp.h>
33242 float f; finite(f);
33247 rm -f conftest.$ac_objext
33248 if { (ac_try="$ac_compile"
33249 case "(($ac_try" in
33250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251 *) ac_try_echo=$ac_try;;
33253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254 (eval "$ac_compile") 2>conftest.er1
33256 grep -v '^ *+' conftest.er1 >conftest.err
33258 cat conftest.err >&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); } &&
33261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33262 { (case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_try") 2>&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; } &&
33271 { ac_try='test -s conftest.$ac_objext'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; }; then
33281 ac_cv_func_finite_in_ieeefp_h=yes
33283 echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.$ac_ext >&5
33286 ac_cv_func_finite_in_ieeefp_h=no
33289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33291 ac_cpp='$CPP $CPPFLAGS'
33292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33297 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33298 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33300 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33302 cat >>confdefs.h <<\_ACEOF
33303 #define HAVE_FINITE_IN_IEEEFP_H 1
33310 if test "$llvm_cv_platform_type" = "Unix" ; then
33313 for ac_header in stdlib.h unistd.h
33315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33320 echo $ECHO_N "(cached) $ECHO_C" >&6
33322 ac_res=`eval echo '${'$as_ac_Header'}'`
33323 { echo "$as_me:$LINENO: result: $ac_res" >&5
33324 echo "${ECHO_T}$ac_res" >&6; }
33326 # Is the header compilable?
33327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33329 cat >conftest.$ac_ext <<_ACEOF
33332 cat confdefs.h >>conftest.$ac_ext
33333 cat >>conftest.$ac_ext <<_ACEOF
33334 /* end confdefs.h. */
33335 $ac_includes_default
33336 #include <$ac_header>
33338 rm -f conftest.$ac_objext
33339 if { (ac_try="$ac_compile"
33340 case "(($ac_try" in
33341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342 *) ac_try_echo=$ac_try;;
33344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345 (eval "$ac_compile") 2>conftest.er1
33347 grep -v '^ *+' conftest.er1 >conftest.err
33349 cat conftest.err >&5
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } &&
33352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33353 { (case "(($ac_try" in
33354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355 *) ac_try_echo=$ac_try;;
33357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358 (eval "$ac_try") 2>&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; } &&
33362 { ac_try='test -s conftest.$ac_objext'
33363 { (case "(($ac_try" in
33364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365 *) ac_try_echo=$ac_try;;
33367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368 (eval "$ac_try") 2>&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; }; then
33372 ac_header_compiler=yes
33374 echo "$as_me: failed program was:" >&5
33375 sed 's/^/| /' conftest.$ac_ext >&5
33377 ac_header_compiler=no
33380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33382 echo "${ECHO_T}$ac_header_compiler" >&6; }
33384 # Is the header present?
33385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33387 cat >conftest.$ac_ext <<_ACEOF
33390 cat confdefs.h >>conftest.$ac_ext
33391 cat >>conftest.$ac_ext <<_ACEOF
33392 /* end confdefs.h. */
33393 #include <$ac_header>
33395 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
33403 grep -v '^ *+' conftest.er1 >conftest.err
33405 cat conftest.err >&5
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } >/dev/null; then
33408 if test -s conftest.err; then
33409 ac_cpp_err=$ac_c_preproc_warn_flag
33410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33417 if test -z "$ac_cpp_err"; then
33418 ac_header_preproc=yes
33420 echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.$ac_ext >&5
33423 ac_header_preproc=no
33426 rm -f conftest.err conftest.$ac_ext
33427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33428 echo "${ECHO_T}$ac_header_preproc" >&6; }
33430 # So? What about this header?
33431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33437 ac_header_preproc=yes
33440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33453 ## ----------------------------------- ##
33454 ## Report this to llvmbugs@cs.uiuc.edu ##
33455 ## ----------------------------------- ##
33457 ) | sed "s/^/$as_me: WARNING: /" >&2
33460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33463 echo $ECHO_N "(cached) $ECHO_C" >&6
33465 eval "$as_ac_Header=\$ac_header_preproc"
33467 ac_res=`eval echo '${'$as_ac_Header'}'`
33468 { echo "$as_me:$LINENO: result: $ac_res" >&5
33469 echo "${ECHO_T}$ac_res" >&6; }
33472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33473 cat >>confdefs.h <<_ACEOF
33474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33482 for ac_func in getpagesize
33484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33490 cat >conftest.$ac_ext <<_ACEOF
33493 cat confdefs.h >>conftest.$ac_ext
33494 cat >>conftest.$ac_ext <<_ACEOF
33495 /* end confdefs.h. */
33496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33498 #define $ac_func innocuous_$ac_func
33500 /* System header to define __stub macros and hopefully few prototypes,
33501 which can conflict with char $ac_func (); below.
33502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33503 <limits.h> exists even on freestanding compilers. */
33506 # include <limits.h>
33508 # include <assert.h>
33513 /* Override any GCC internal prototype to avoid an error.
33514 Use char because int might match the return type of a GCC
33515 builtin and then its argument prototype would still apply. */
33520 /* The GNU C library defines this for functions which it implements
33521 to always fail with ENOSYS. Some functions are actually named
33522 something starting with __ and the normal name is an alias. */
33523 #if defined __stub_$ac_func || defined __stub___$ac_func
33530 return $ac_func ();
33535 rm -f conftest.$ac_objext conftest$ac_exeext
33536 if { (ac_try="$ac_link"
33537 case "(($ac_try" in
33538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33539 *) ac_try_echo=$ac_try;;
33541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33542 (eval "$ac_link") 2>conftest.er1
33544 grep -v '^ *+' conftest.er1 >conftest.err
33546 cat conftest.err >&5
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); } &&
33549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33550 { (case "(($ac_try" in
33551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552 *) ac_try_echo=$ac_try;;
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555 (eval "$ac_try") 2>&5
33557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558 (exit $ac_status); }; } &&
33559 { ac_try='test -s conftest$ac_exeext'
33560 { (case "(($ac_try" in
33561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33562 *) ac_try_echo=$ac_try;;
33564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33565 (eval "$ac_try") 2>&5
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); }; }; then
33569 eval "$as_ac_var=yes"
33571 echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33574 eval "$as_ac_var=no"
33577 rm -f core conftest.err conftest.$ac_objext \
33578 conftest$ac_exeext conftest.$ac_ext
33580 ac_res=`eval echo '${'$as_ac_var'}'`
33581 { echo "$as_me:$LINENO: result: $ac_res" >&5
33582 echo "${ECHO_T}$ac_res" >&6; }
33583 if test `eval echo '${'$as_ac_var'}'` = yes; then
33584 cat >>confdefs.h <<_ACEOF
33585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33591 { echo "$as_me:$LINENO: checking for working mmap" >&5
33592 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33593 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33594 echo $ECHO_N "(cached) $ECHO_C" >&6
33596 if test "$cross_compiling" = yes; then
33597 ac_cv_func_mmap_fixed_mapped=no
33599 cat >conftest.$ac_ext <<_ACEOF
33602 cat confdefs.h >>conftest.$ac_ext
33603 cat >>conftest.$ac_ext <<_ACEOF
33604 /* end confdefs.h. */
33605 $ac_includes_default
33606 /* malloc might have been renamed as rpl_malloc. */
33609 /* Thanks to Mike Haertel and Jim Avera for this test.
33610 Here is a matrix of mmap possibilities:
33611 mmap private not fixed
33612 mmap private fixed at somewhere currently unmapped
33613 mmap private fixed at somewhere already mapped
33614 mmap shared not fixed
33615 mmap shared fixed at somewhere currently unmapped
33616 mmap shared fixed at somewhere already mapped
33617 For private mappings, we should verify that changes cannot be read()
33618 back from the file, nor mmap's back from the file at a different
33619 address. (There have been systems where private was not correctly
33620 implemented like the infamous i386 svr4.0, and systems where the
33621 VM page cache was not coherent with the file system buffer cache
33622 like early versions of FreeBSD and possibly contemporary NetBSD.)
33623 For shared mappings, we should conversely verify that changes get
33624 propagated back to all the places they're supposed to be.
33626 Grep wants private fixed already mapped.
33627 The main things grep needs to know about mmap are:
33628 * does it exist and is it safe to write into the mmap'd area
33629 * how to use it (BSD variants) */
33632 #include <sys/mman.h>
33634 #if !STDC_HEADERS && !HAVE_STDLIB_H
33638 /* This mess was copied from the GNU getpagesize.h. */
33639 #if !HAVE_GETPAGESIZE
33640 /* Assume that all systems that can run configure have sys/param.h. */
33641 # if !HAVE_SYS_PARAM_H
33642 # define HAVE_SYS_PARAM_H 1
33645 # ifdef _SC_PAGESIZE
33646 # define getpagesize() sysconf(_SC_PAGESIZE)
33647 # else /* no _SC_PAGESIZE */
33648 # if HAVE_SYS_PARAM_H
33649 # include <sys/param.h>
33650 # ifdef EXEC_PAGESIZE
33651 # define getpagesize() EXEC_PAGESIZE
33652 # else /* no EXEC_PAGESIZE */
33654 # define getpagesize() NBPG * CLSIZE
33657 # endif /* no CLSIZE */
33658 # else /* no NBPG */
33660 # define getpagesize() NBPC
33661 # else /* no NBPC */
33663 # define getpagesize() PAGESIZE
33664 # endif /* PAGESIZE */
33665 # endif /* no NBPC */
33666 # endif /* no NBPG */
33667 # endif /* no EXEC_PAGESIZE */
33668 # else /* no HAVE_SYS_PARAM_H */
33669 # define getpagesize() 8192 /* punt totally */
33670 # endif /* no HAVE_SYS_PARAM_H */
33671 # endif /* no _SC_PAGESIZE */
33673 #endif /* no HAVE_GETPAGESIZE */
33678 char *data, *data2, *data3;
33682 pagesize = getpagesize ();
33684 /* First, make a file with some known garbage in it. */
33685 data = (char *) malloc (pagesize);
33688 for (i = 0; i < pagesize; ++i)
33689 *(data + i) = rand ();
33691 fd = creat ("conftest.mmap", 0600);
33694 if (write (fd, data, pagesize) != pagesize)
33698 /* Next, try to mmap the file at a fixed address which already has
33699 something else allocated at it. If we can, also make sure that
33700 we see the same garbage. */
33701 fd = open ("conftest.mmap", O_RDWR);
33704 data2 = (char *) malloc (2 * pagesize);
33707 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33708 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33709 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33711 for (i = 0; i < pagesize; ++i)
33712 if (*(data + i) != *(data2 + i))
33715 /* Finally, make sure that changes to the mapped area do not
33716 percolate back to the file as seen by read(). (This is a bug on
33717 some variants of i386 svr4.0.) */
33718 for (i = 0; i < pagesize; ++i)
33719 *(data2 + i) = *(data2 + i) + 1;
33720 data3 = (char *) malloc (pagesize);
33723 if (read (fd, data3, pagesize) != pagesize)
33725 for (i = 0; i < pagesize; ++i)
33726 if (*(data + i) != *(data3 + i))
33732 rm -f conftest$ac_exeext
33733 if { (ac_try="$ac_link"
33734 case "(($ac_try" in
33735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736 *) ac_try_echo=$ac_try;;
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739 (eval "$ac_link") 2>&5
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33743 { (case "(($ac_try" in
33744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745 *) ac_try_echo=$ac_try;;
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748 (eval "$ac_try") 2>&5
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; }; then
33752 ac_cv_func_mmap_fixed_mapped=yes
33754 echo "$as_me: program exited with status $ac_status" >&5
33755 echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33758 ( exit $ac_status )
33759 ac_cv_func_mmap_fixed_mapped=no
33761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33766 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33767 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33768 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33770 cat >>confdefs.h <<\_ACEOF
33771 #define HAVE_MMAP 1
33775 rm -f conftest.mmap
33777 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33778 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33779 if test "${ac_cv_func_mmap_file+set}" = set; then
33780 echo $ECHO_N "(cached) $ECHO_C" >&6
33783 ac_cpp='$CPP $CPPFLAGS'
33784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33788 if test "$cross_compiling" = yes; then
33789 ac_cv_func_mmap_file=no
33791 cat >conftest.$ac_ext <<_ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h. */
33799 #include <sys/types.h>
33800 #include <sys/mman.h>
33808 fd = creat ("foo",0777);
33809 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33811 return (fd != (int) MAP_FAILED);
33816 rm -f conftest$ac_exeext
33817 if { (ac_try="$ac_link"
33818 case "(($ac_try" in
33819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33820 *) ac_try_echo=$ac_try;;
33822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33823 (eval "$ac_link") 2>&5
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33827 { (case "(($ac_try" in
33828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829 *) ac_try_echo=$ac_try;;
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_try") 2>&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); }; }; then
33836 ac_cv_func_mmap_file=yes
33838 echo "$as_me: program exited with status $ac_status" >&5
33839 echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33842 ( exit $ac_status )
33843 ac_cv_func_mmap_file=no
33845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33850 ac_cpp='$CPP $CPPFLAGS'
33851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33857 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33858 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33859 if test "$ac_cv_func_mmap_file" = yes; then
33861 cat >>confdefs.h <<\_ACEOF
33862 #define HAVE_MMAP_FILE
33869 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33870 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33871 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33872 echo $ECHO_N "(cached) $ECHO_C" >&6
33874 if test "$llvm_cv_os_type" = "Interix" ; then
33875 ac_cv_need_dev_zero_for_mmap=yes
33877 ac_cv_need_dev_zero_for_mmap=no
33881 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33882 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33883 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33885 cat >>confdefs.h <<\_ACEOF
33886 #define NEED_DEV_ZERO_FOR_MMAP 1
33891 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33893 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33894 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33896 if test "$ac_cv_func_mmap_file" = "no"
33898 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33899 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33905 for ac_func in __dso_handle
33907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33911 echo $ECHO_N "(cached) $ECHO_C" >&6
33913 cat >conftest.$ac_ext <<_ACEOF
33916 cat confdefs.h >>conftest.$ac_ext
33917 cat >>conftest.$ac_ext <<_ACEOF
33918 /* end confdefs.h. */
33919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33921 #define $ac_func innocuous_$ac_func
33923 /* System header to define __stub macros and hopefully few prototypes,
33924 which can conflict with char $ac_func (); below.
33925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33926 <limits.h> exists even on freestanding compilers. */
33929 # include <limits.h>
33931 # include <assert.h>
33936 /* Override any GCC internal prototype to avoid an error.
33937 Use char because int might match the return type of a GCC
33938 builtin and then its argument prototype would still apply. */
33943 /* The GNU C library defines this for functions which it implements
33944 to always fail with ENOSYS. Some functions are actually named
33945 something starting with __ and the normal name is an alias. */
33946 #if defined __stub_$ac_func || defined __stub___$ac_func
33953 return $ac_func ();
33958 rm -f conftest.$ac_objext conftest$ac_exeext
33959 if { (ac_try="$ac_link"
33960 case "(($ac_try" in
33961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33962 *) ac_try_echo=$ac_try;;
33964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33965 (eval "$ac_link") 2>conftest.er1
33967 grep -v '^ *+' conftest.er1 >conftest.err
33969 cat conftest.err >&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); } &&
33972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33973 { (case "(($ac_try" in
33974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975 *) ac_try_echo=$ac_try;;
33977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978 (eval "$ac_try") 2>&5
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; } &&
33982 { ac_try='test -s conftest$ac_exeext'
33983 { (case "(($ac_try" in
33984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985 *) ac_try_echo=$ac_try;;
33987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988 (eval "$ac_try") 2>&5
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; }; then
33992 eval "$as_ac_var=yes"
33994 echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33997 eval "$as_ac_var=no"
34000 rm -f core conftest.err conftest.$ac_objext \
34001 conftest$ac_exeext conftest.$ac_ext
34003 ac_res=`eval echo '${'$as_ac_var'}'`
34004 { echo "$as_me:$LINENO: result: $ac_res" >&5
34005 echo "${ECHO_T}$ac_res" >&6; }
34006 if test `eval echo '${'$as_ac_var'}'` = yes; then
34007 cat >>confdefs.h <<_ACEOF
34008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34015 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34016 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34017 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34018 echo $ECHO_N "(cached) $ECHO_C" >&6
34020 llvm_cv_llvmgcc_sanity="no"
34021 if test -x "$LLVMGCC" ; then
34022 cp /dev/null conftest.c
34023 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34024 grep 'target datalayout =' > /dev/null 2>&1
34025 if test $? -eq 0 ; then
34026 llvm_cv_llvmgcc_sanity="yes"
34031 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34032 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34034 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34035 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34036 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34037 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34038 LLVMCC1=$llvmcc1path
34040 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34041 LLVMCC1PLUS=$llvmcc1pluspath
34043 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34044 LLVMGCCDIR=$llvmgccdir
34046 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34047 LLVMGCCLIBEXEC=$llvmgcclibexec
34049 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34050 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34051 LLVMGCC_VERSION=$llvmgccversion
34053 LLVMGCC_MAJVERS=$llvmgccmajvers
34055 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34056 LLVMGCC_LANGS=$llvmgcclangs
34058 { echo "$as_me:$LINENO: result: ok" >&5
34059 echo "${ECHO_T}ok" >&6; }
34062 SHLIBEXT=$libltdl_cv_shlibext
34065 # Translate the various configuration directories and other basic
34066 # information into substitutions that will end up in Makefile.config.in
34067 # that these configured values can be used by the makefiles
34068 if test "${prefix}" = "NONE" ; then
34069 prefix="/usr/local"
34071 eval LLVM_PREFIX="${prefix}";
34072 eval LLVM_BINDIR="${prefix}/bin";
34073 eval LLVM_LIBDIR="${prefix}/lib";
34074 eval LLVM_DATADIR="${prefix}/share/llvm";
34075 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34076 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34077 eval LLVM_INCLUDEDIR="${prefix}/include";
34078 eval LLVM_INFODIR="${prefix}/info";
34079 eval LLVM_MANDIR="${prefix}/man";
34080 LLVM_CONFIGTIME=`date`
34092 # Place the various directores into the config.h file as #defines so that we
34093 # can know about the installation paths within LLVM.
34095 cat >>confdefs.h <<_ACEOF
34096 #define LLVM_PREFIX "$LLVM_PREFIX"
34100 cat >>confdefs.h <<_ACEOF
34101 #define LLVM_BINDIR "$LLVM_BINDIR"
34105 cat >>confdefs.h <<_ACEOF
34106 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34110 cat >>confdefs.h <<_ACEOF
34111 #define LLVM_DATADIR "$LLVM_DATADIR"
34115 cat >>confdefs.h <<_ACEOF
34116 #define LLVM_DATADIR "$LLVM_DOCSDIR"
34120 cat >>confdefs.h <<_ACEOF
34121 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34125 cat >>confdefs.h <<_ACEOF
34126 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34130 cat >>confdefs.h <<_ACEOF
34131 #define LLVM_INFODIR "$LLVM_INFODIR"
34135 cat >>confdefs.h <<_ACEOF
34136 #define LLVM_MANDIR "$LLVM_MANDIR"
34140 cat >>confdefs.h <<_ACEOF
34141 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34145 # Determine which bindings to build.
34146 if test "$BINDINGS_TO_BUILD" = auto ; then
34147 BINDINGS_TO_BUILD=""
34148 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34149 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34152 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34155 # This isn't really configurey, but it avoids having to repeat the list in
34161 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34163 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34165 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34167 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34169 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34172 ac_config_files="$ac_config_files Makefile.config"
34175 ac_config_files="$ac_config_files llvm.spec"
34178 ac_config_files="$ac_config_files docs/doxygen.cfg"
34181 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34184 ac_config_commands="$ac_config_commands setup"
34186 ac_config_commands="$ac_config_commands Makefile"
34189 ac_config_commands="$ac_config_commands Makefile.common"
34192 ac_config_commands="$ac_config_commands examples/Makefile"
34195 ac_config_commands="$ac_config_commands lib/Makefile"
34198 ac_config_commands="$ac_config_commands runtime/Makefile"
34201 ac_config_commands="$ac_config_commands test/Makefile"
34204 ac_config_commands="$ac_config_commands test/Makefile.tests"
34207 ac_config_commands="$ac_config_commands tools/Makefile"
34210 ac_config_commands="$ac_config_commands utils/Makefile"
34213 ac_config_commands="$ac_config_commands projects/Makefile"
34216 ac_config_commands="$ac_config_commands bindings/Makefile"
34219 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34223 cat >confcache <<\_ACEOF
34224 # This file is a shell script that caches the results of configure
34225 # tests run on this system so they can be shared between configure
34226 # scripts and configure runs, see configure's option --config-cache.
34227 # It is not useful on other systems. If it contains results you don't
34228 # want to keep, you may remove or edit it.
34230 # config.status only pays attention to the cache file if you give it
34231 # the --recheck option to rerun configure.
34233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34235 # following values.
34239 # The following way of writing the cache mishandles newlines in values,
34240 # but we know of no workaround that is simple, portable, and efficient.
34241 # So, we kill variables containing newlines.
34242 # Ultrix sh set writes to stderr and can't be redirected directly,
34243 # and sets the high bit in the cache file unless we assign to the vars.
34245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34246 eval ac_val=\$$ac_var
34250 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34251 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34254 _ | IFS | as_nl) ;; #(
34255 *) $as_unset $ac_var ;;
34261 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34262 *${as_nl}ac_space=\ *)
34263 # `set' does not quote correctly, so add quotes (double-quote
34264 # substitution turns \\\\ into \\, and sed turns \\ into \).
34267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34270 # `set' quotes correctly as required by POSIX, so do not add quotes.
34271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34284 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34285 if test -w "$cache_file"; then
34286 test "x$cache_file" != "x/dev/null" &&
34287 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34288 echo "$as_me: updating cache $cache_file" >&6;}
34289 cat confcache >$cache_file
34291 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34292 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34298 # Let make expand exec_prefix.
34299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34301 DEFS=-DHAVE_CONFIG_H
34305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34306 # 1. Remove the extension, and $U if already installed.
34307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34308 ac_i=`echo "$ac_i" | sed "$ac_script"`
34309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34310 # will be set to the directory where LIBOBJS objects are built.
34311 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34312 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34314 LIBOBJS=$ac_libobjs
34316 LTLIBOBJS=$ac_ltlibobjs
34319 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34320 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34321 Usually this means the macro was only invoked conditionally." >&5
34322 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34323 Usually this means the macro was only invoked conditionally." >&2;}
34324 { (exit 1); exit 1; }; }
34326 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34327 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34328 Usually this means the macro was only invoked conditionally." >&5
34329 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34330 Usually this means the macro was only invoked conditionally." >&2;}
34331 { (exit 1); exit 1; }; }
34334 : ${CONFIG_STATUS=./config.status}
34335 ac_clean_files_save=$ac_clean_files
34336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34339 cat >$CONFIG_STATUS <<_ACEOF
34341 # Generated by $as_me.
34342 # Run this file to recreate the current configuration.
34343 # Compiler output produced by configure, useful for debugging
34344 # configure, is in config.log if it exists.
34347 ac_cs_recheck=false
34349 SHELL=\${CONFIG_SHELL-$SHELL}
34352 cat >>$CONFIG_STATUS <<\_ACEOF
34353 ## --------------------- ##
34354 ## M4sh Initialization. ##
34355 ## --------------------- ##
34357 # Be Bourne compatible
34358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34362 # is contrary to our usage. Disable this feature.
34363 alias -g '${1+"$@"}'='"$@"'
34364 setopt NO_GLOB_SUBST
34366 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34368 BIN_SH=xpg4; export BIN_SH # for Tru64
34369 DUALCASE=1; export DUALCASE # for MKS sh
34373 # Avoid depending upon Character Ranges.
34374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34377 as_cr_digits='0123456789'
34378 as_cr_alnum=$as_cr_Letters$as_cr_digits
34380 # The user is always right.
34381 if test "${PATH_SEPARATOR+set}" != set; then
34382 echo "#! /bin/sh" >conf$$.sh
34383 echo "exit 0" >>conf$$.sh
34385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34393 # Support unset when possible.
34394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34402 # We need space, tab and new line, in precisely that order. Quoting is
34403 # there to prevent editors from complaining about space-tab.
34404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34405 # splitting by setting IFS to empty value.)
34410 # Find who we are. Look in the path if we contain no directory separator.
34412 *[\\/]* ) as_myself=$0 ;;
34413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34414 for as_dir in $PATH
34417 test -z "$as_dir" && as_dir=.
34418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34424 # We did not find ourselves, most probably we were run as `sh COMMAND'
34425 # in which case we are not to be found in the path.
34426 if test "x$as_myself" = x; then
34429 if test ! -f "$as_myself"; then
34430 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34431 { (exit 1); exit 1; }
34434 # Work around bugs in pre-3.0 UWIN ksh.
34435 for as_var in ENV MAIL MAILPATH
34436 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34444 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34445 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34446 LC_TELEPHONE LC_TIME
34448 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34449 eval $as_var=C; export $as_var
34451 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34455 # Required to use basename.
34456 if expr a : '\(a\)' >/dev/null 2>&1 &&
34457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34464 as_basename=basename
34470 # Name of the executable.
34471 as_me=`$as_basename -- "$0" ||
34472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34473 X"$0" : 'X\(//\)$' \| \
34474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34476 sed '/^.*\/\([^/][^/]*\)\/*$/{
34495 as_lineno_1=$LINENO
34496 as_lineno_2=$LINENO
34497 test "x$as_lineno_1" != "x$as_lineno_2" &&
34498 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34501 # uniformly replaced by the line number. The first 'sed' inserts a
34502 # line-number line after each line using $LINENO; the second 'sed'
34503 # does the real work. The second script uses 'N' to pair each
34504 # line-number line with the line containing $LINENO, and appends
34505 # trailing '-' during substitution so that $LINENO is not a special
34506 # case at line end.
34507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34508 # scripts with optimization help from Paolo Bonzini. Blame Lee
34509 # E. McMahon (1931-1989) for sed's syntax. :-)
34521 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34524 ' >$as_me.lineno &&
34525 chmod +x "$as_me.lineno" ||
34526 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34527 { (exit 1); exit 1; }; }
34529 # Don't try to exec as it changes $[0], causing all sort of problems
34530 # (the dirname of $[0] is not the place where we might find the
34531 # original and so on. Autoconf is especially sensitive to this).
34532 . "./$as_me.lineno"
34533 # Exit status is that of the last command.
34538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34544 ECHO_C= ECHO_N= ECHO_T=
34545 case `echo -n x` in
34547 case `echo 'x\c'` in
34548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34555 if expr a : '\(a\)' >/dev/null 2>&1 &&
34556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34562 rm -f conf$$ conf$$.exe conf$$.file
34563 if test -d conf$$.dir; then
34564 rm -f conf$$.dir/conf$$.file
34570 if ln -s conf$$.file conf$$ 2>/dev/null; then
34572 # ... but there are two gotchas:
34573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34575 # In both cases, we have to default to `cp -p'.
34576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34578 elif ln conf$$.file conf$$ 2>/dev/null; then
34583 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34584 rmdir conf$$.dir 2>/dev/null
34586 if mkdir -p . 2>/dev/null; then
34589 test -d ./-p && rmdir ./-p
34593 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34594 # systems may use methods other than mode bits to determine executability.
34595 cat >conf$$.file <<_ASEOF
34599 chmod +x conf$$.file
34600 if test -x conf$$.file >/dev/null 2>&1; then
34601 as_executable_p="test -x"
34607 # Sed expression to map a string onto a valid CPP name.
34608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34610 # Sed expression to map a string onto a valid variable name.
34611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34616 # Save the log message, to keep $[0] and so on meaningful, and to
34617 # report actual input values of CONFIG_FILES etc. instead of their
34618 # values after options handling.
34620 This file was extended by llvm $as_me 2.2svn, which was
34621 generated by GNU Autoconf 2.60. Invocation command line was
34623 CONFIG_FILES = $CONFIG_FILES
34624 CONFIG_HEADERS = $CONFIG_HEADERS
34625 CONFIG_LINKS = $CONFIG_LINKS
34626 CONFIG_COMMANDS = $CONFIG_COMMANDS
34629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34634 cat >>$CONFIG_STATUS <<_ACEOF
34635 # Files that config.status was made for.
34636 config_files="$ac_config_files"
34637 config_headers="$ac_config_headers"
34638 config_commands="$ac_config_commands"
34642 cat >>$CONFIG_STATUS <<\_ACEOF
34644 \`$as_me' instantiates files from templates according to the
34645 current configuration.
34647 Usage: $0 [OPTIONS] [FILE]...
34649 -h, --help print this help, then exit
34650 -V, --version print version number, then exit
34651 -q, --quiet do not print progress messages
34652 -d, --debug don't remove temporary files
34653 --recheck update $as_me by reconfiguring in the same conditions
34654 --file=FILE[:TEMPLATE]
34655 instantiate the configuration file FILE
34656 --header=FILE[:TEMPLATE]
34657 instantiate the configuration header FILE
34659 Configuration files:
34662 Configuration headers:
34665 Configuration commands:
34668 Report bugs to <bug-autoconf@gnu.org>."
34671 cat >>$CONFIG_STATUS <<_ACEOF
34673 llvm config.status 2.2svn
34674 configured by $0, generated by GNU Autoconf 2.60,
34675 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34677 Copyright (C) 2006 Free Software Foundation, Inc.
34678 This config.status script is free software; the Free Software Foundation
34679 gives unlimited permission to copy, distribute and modify it."
34686 cat >>$CONFIG_STATUS <<\_ACEOF
34687 # If no file are specified by the user, then we need to provide default
34688 # value. By we need to know if files were specified by the user.
34694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34695 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34706 # Handling of the options.
34707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34710 echo "$ac_cs_version"; exit ;;
34711 --debug | --debu | --deb | --de | --d | -d )
34713 --file | --fil | --fi | --f )
34715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34716 ac_need_defaults=false;;
34717 --header | --heade | --head | --hea )
34719 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34720 ac_need_defaults=false;;
34722 # Conflict between --help and --header
34723 { echo "$as_me: error: ambiguous option: $1
34724 Try \`$0 --help' for more information." >&2
34725 { (exit 1); exit 1; }; };;
34726 --help | --hel | -h )
34727 echo "$ac_cs_usage"; exit ;;
34728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34732 # This is an error.
34733 -*) { echo "$as_me: error: unrecognized option: $1
34734 Try \`$0 --help' for more information." >&2
34735 { (exit 1); exit 1; }; } ;;
34737 *) ac_config_targets="$ac_config_targets $1"
34738 ac_need_defaults=false ;;
34744 ac_configure_extra_args=
34746 if $ac_cs_silent; then
34748 ac_configure_extra_args="$ac_configure_extra_args --silent"
34752 cat >>$CONFIG_STATUS <<_ACEOF
34753 if \$ac_cs_recheck; then
34754 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34755 CONFIG_SHELL=$SHELL
34756 export CONFIG_SHELL
34757 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34761 cat >>$CONFIG_STATUS <<\_ACEOF
34765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34766 ## Running $as_me. ##
34772 cat >>$CONFIG_STATUS <<_ACEOF
34776 llvm_src="${srcdir}"
34780 cat >>$CONFIG_STATUS <<\_ACEOF
34782 # Handling of arguments.
34783 for ac_config_target in $ac_config_targets
34785 case $ac_config_target in
34786 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34787 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34788 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34789 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34790 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34791 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34792 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34793 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34794 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34795 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34796 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34797 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34798 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34799 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34800 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34801 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34802 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34803 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34804 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34805 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34806 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34807 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34809 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34810 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34811 { (exit 1); exit 1; }; };;
34816 # If the user did not use the arguments to specify the items to instantiate,
34817 # then the envvar interface is used. Set only those that are not.
34818 # We use the long form for the default assignment because of an extremely
34819 # bizarre bug on SunOS 4.1.3.
34820 if $ac_need_defaults; then
34821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34826 # Have a temporary directory for convenience. Make it in the build tree
34827 # simply because there is no reason against having it here, and in addition,
34828 # creating and moving files from /tmp can sometimes cause problems.
34829 # Hook for its removal unless debugging.
34830 # Note that there is a small window in which the directory will not be cleaned:
34831 # after its creation but before its name has been assigned to `$tmp'.
34835 trap 'exit_status=$?
34836 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34838 trap '{ (exit 1); exit 1; }' 1 2 13 15
34840 # Create a (secure) tmp directory for tmp files.
34843 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34844 test -n "$tmp" && test -d "$tmp"
34847 tmp=./conf$$-$RANDOM
34848 (umask 077 && mkdir "$tmp")
34851 echo "$me: cannot create a temporary directory in ." >&2
34852 { (exit 1); exit 1; }
34856 # Set up the sed scripts for CONFIG_FILES section.
34859 # No need to generate the scripts if there are no CONFIG_FILES.
34860 # This happens for instance when ./config.status config.h
34861 if test -n "$CONFIG_FILES"; then
34868 for ac_last_try in false false false false false :; do
34869 cat >conf$$subs.sed <<_ACEOF
34870 SHELL!$SHELL$ac_delim
34871 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34872 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34873 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34874 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34875 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34876 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34877 exec_prefix!$exec_prefix$ac_delim
34878 prefix!$prefix$ac_delim
34879 program_transform_name!$program_transform_name$ac_delim
34880 bindir!$bindir$ac_delim
34881 sbindir!$sbindir$ac_delim
34882 libexecdir!$libexecdir$ac_delim
34883 datarootdir!$datarootdir$ac_delim
34884 datadir!$datadir$ac_delim
34885 sysconfdir!$sysconfdir$ac_delim
34886 sharedstatedir!$sharedstatedir$ac_delim
34887 localstatedir!$localstatedir$ac_delim
34888 includedir!$includedir$ac_delim
34889 oldincludedir!$oldincludedir$ac_delim
34890 docdir!$docdir$ac_delim
34891 infodir!$infodir$ac_delim
34892 htmldir!$htmldir$ac_delim
34893 dvidir!$dvidir$ac_delim
34894 pdfdir!$pdfdir$ac_delim
34895 psdir!$psdir$ac_delim
34896 libdir!$libdir$ac_delim
34897 localedir!$localedir$ac_delim
34898 mandir!$mandir$ac_delim
34899 DEFS!$DEFS$ac_delim
34900 ECHO_C!$ECHO_C$ac_delim
34901 ECHO_N!$ECHO_N$ac_delim
34902 ECHO_T!$ECHO_T$ac_delim
34903 LIBS!$LIBS$ac_delim
34904 build_alias!$build_alias$ac_delim
34905 host_alias!$host_alias$ac_delim
34906 target_alias!$target_alias$ac_delim
34907 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34908 subdirs!$subdirs$ac_delim
34909 build!$build$ac_delim
34910 build_cpu!$build_cpu$ac_delim
34911 build_vendor!$build_vendor$ac_delim
34912 build_os!$build_os$ac_delim
34913 host!$host$ac_delim
34914 host_cpu!$host_cpu$ac_delim
34915 host_vendor!$host_vendor$ac_delim
34916 host_os!$host_os$ac_delim
34917 target!$target$ac_delim
34918 target_cpu!$target_cpu$ac_delim
34919 target_vendor!$target_vendor$ac_delim
34920 target_os!$target_os$ac_delim
34922 LINKALL!$LINKALL$ac_delim
34923 NOLINKALL!$NOLINKALL$ac_delim
34924 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34925 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34926 ARCH!$ARCH$ac_delim
34927 ENDIAN!$ENDIAN$ac_delim
34929 CFLAGS!$CFLAGS$ac_delim
34930 LDFLAGS!$LDFLAGS$ac_delim
34931 CPPFLAGS!$CPPFLAGS$ac_delim
34932 ac_ct_CC!$ac_ct_CC$ac_delim
34933 EXEEXT!$EXEEXT$ac_delim
34934 OBJEXT!$OBJEXT$ac_delim
34936 GREP!$GREP$ac_delim
34937 EGREP!$EGREP$ac_delim
34938 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34939 BUILD_CC!$BUILD_CC$ac_delim
34940 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34941 CVSBUILD!$CVSBUILD$ac_delim
34942 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34943 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34944 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34945 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34946 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34948 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34949 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34950 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34951 ENABLE_PIC!$ENABLE_PIC$ac_delim
34952 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34953 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34954 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34956 CXXFLAGS!$CXXFLAGS$ac_delim
34957 ac_ct_CXX!$ac_ct_CXX$ac_delim
34959 LEXLIB!$LEXLIB$ac_delim
34960 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34961 FLEX!$FLEX$ac_delim
34962 YACC!$YACC$ac_delim
34963 YFLAGS!$YFLAGS$ac_delim
34964 BISON!$BISON$ac_delim
34966 ifGNUmake!$ifGNUmake$ac_delim
34969 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34971 elif $ac_last_try; then
34972 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34973 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34974 { (exit 1); exit 1; }; }
34976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34980 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34981 if test -n "$ac_eof"; then
34982 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34983 ac_eof=`expr $ac_eof + 1`
34986 cat >>$CONFIG_STATUS <<_ACEOF
34987 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34991 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34992 s/^/s,@/; s/!/@,|#_!!_#|/
34995 s/'"$ac_delim"'$/,g/; t
34997 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34998 ' >>$CONFIG_STATUS <conf$$subs.sed
34999 rm -f conf$$subs.sed
35000 cat >>$CONFIG_STATUS <<_ACEOF
35006 for ac_last_try in false false false false false :; do
35007 cat >conf$$subs.sed <<_ACEOF
35008 LN_S!$LN_S$ac_delim
35011 DATE!$DATE$ac_delim
35012 FIND!$FIND$ac_delim
35013 MKDIR!$MKDIR$ac_delim
35015 RANLIB!$RANLIB$ac_delim
35019 BINPWD!$BINPWD$ac_delim
35020 GRAPHVIZ!$GRAPHVIZ$ac_delim
35023 DOTTY!$DOTTY$ac_delim
35024 PERL!$PERL$ac_delim
35025 HAVE_PERL!$HAVE_PERL$ac_delim
35026 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35027 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35028 INSTALL_DATA!$INSTALL_DATA$ac_delim
35029 BZIP2!$BZIP2$ac_delim
35030 DOXYGEN!$DOXYGEN$ac_delim
35031 GROFF!$GROFF$ac_delim
35032 GZIP!$GZIP$ac_delim
35033 POD2HTML!$POD2HTML$ac_delim
35034 POD2MAN!$POD2MAN$ac_delim
35035 RUNTEST!$RUNTEST$ac_delim
35036 TCLSH!$TCLSH$ac_delim
35038 OCAMLC!$OCAMLC$ac_delim
35039 OCAMLOPT!$OCAMLOPT$ac_delim
35040 OCAMLDEP!$OCAMLDEP$ac_delim
35041 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35042 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35043 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35044 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35045 LIBADD_DL!$LIBADD_DL$ac_delim
35046 ECHO!$ECHO$ac_delim
35048 STRIP!$STRIP$ac_delim
35049 CXXCPP!$CXXCPP$ac_delim
35051 FFLAGS!$FFLAGS$ac_delim
35052 ac_ct_F77!$ac_ct_F77$ac_delim
35053 LIBTOOL!$LIBTOOL$ac_delim
35054 LLVMGCC!$LLVMGCC$ac_delim
35055 LLVMGXX!$LLVMGXX$ac_delim
35056 USE_UDIS86!$USE_UDIS86$ac_delim
35057 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35058 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35059 ALLOCA!$ALLOCA$ac_delim
35060 MMAP_FILE!$MMAP_FILE$ac_delim
35061 LLVMCC1!$LLVMCC1$ac_delim
35062 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35063 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35064 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35065 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35066 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35067 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35068 SHLIBEXT!$SHLIBEXT$ac_delim
35069 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35070 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35071 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35072 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35073 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35074 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35075 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35076 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35077 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35078 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35079 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35080 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35081 LIBOBJS!$LIBOBJS$ac_delim
35082 LTLIBOBJS!$LTLIBOBJS$ac_delim
35085 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
35087 elif $ac_last_try; then
35088 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35089 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35090 { (exit 1); exit 1; }; }
35092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35096 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35097 if test -n "$ac_eof"; then
35098 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35099 ac_eof=`expr $ac_eof + 1`
35102 cat >>$CONFIG_STATUS <<_ACEOF
35103 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35107 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35108 s/^/s,@/; s/!/@,|#_!!_#|/
35111 s/'"$ac_delim"'$/,g/; t
35113 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35114 ' >>$CONFIG_STATUS <conf$$subs.sed
35115 rm -f conf$$subs.sed
35116 cat >>$CONFIG_STATUS <<_ACEOF
35123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35125 # trailing colons and then remove the whole line if VPATH becomes empty
35126 # (actually we leave an empty line to preserve line numbers).
35127 if test "x$srcdir" = x.; then
35128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35129 s/:*\$(srcdir):*/:/
35130 s/:*\${srcdir}:*/:/
35132 s/^\([^=]*=[ ]*\):*/\1/
35138 cat >>$CONFIG_STATUS <<\_ACEOF
35139 fi # test -n "$CONFIG_FILES"
35142 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35145 :[FHLC]) ac_mode=$ac_tag; continue;;
35147 case $ac_mode$ac_tag in
35149 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35150 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35151 { (exit 1); exit 1; }; };;
35152 :[FH]-) ac_tag=-:-;;
35153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35170 -) ac_f="$tmp/stdin";;
35171 *) # Look for the file first in the build tree, then in the source tree
35172 # (if the path is not absolute). The absolute path cannot be DOS-style,
35173 # because $ac_f cannot contain `:'.
35177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35179 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35180 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35181 { (exit 1); exit 1; }; };;
35183 ac_file_inputs="$ac_file_inputs $ac_f"
35186 # Let's still pretend it is `configure' which instantiates (i.e., don't
35187 # use $as_me), people would be surprised to read:
35188 # /* config.h. Generated by config.status. */
35189 configure_input="Generated from "`IFS=:
35190 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35191 if test x"$ac_file" != x-; then
35192 configure_input="$ac_file. $configure_input"
35193 { echo "$as_me:$LINENO: creating $ac_file" >&5
35194 echo "$as_me: creating $ac_file" >&6;}
35198 *:-:* | *:-) cat >"$tmp/stdin";;
35203 ac_dir=`$as_dirname -- "$ac_file" ||
35204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35205 X"$ac_file" : 'X\(//\)[^/]' \| \
35206 X"$ac_file" : 'X\(//\)$' \| \
35207 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35213 /^X\(\/\/\)[^/].*/{
35228 -*) as_dir=./$as_dir;;
35230 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35234 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35235 *) as_qdir=$as_dir;;
35237 as_dirs="'$as_qdir' $as_dirs"
35238 as_dir=`$as_dirname -- "$as_dir" ||
35239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35240 X"$as_dir" : 'X\(//\)[^/]' \| \
35241 X"$as_dir" : 'X\(//\)$' \| \
35242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35248 /^X\(\/\/\)[^/].*/{
35261 test -d "$as_dir" && break
35263 test -z "$as_dirs" || eval "mkdir $as_dirs"
35264 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35265 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35266 { (exit 1); exit 1; }; }; }
35270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35273 # A ".." for each directory in $ac_dir_suffix.
35274 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35275 case $ac_top_builddir_sub in
35276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35280 ac_abs_top_builddir=$ac_pwd
35281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35282 # for backward compatibility:
35283 ac_top_builddir=$ac_top_build_prefix
35286 .) # We are building in place.
35288 ac_top_srcdir=$ac_top_builddir_sub
35289 ac_abs_top_srcdir=$ac_pwd ;;
35290 [\\/]* | ?:[\\/]* ) # Absolute name.
35291 ac_srcdir=$srcdir$ac_dir_suffix;
35292 ac_top_srcdir=$srcdir
35293 ac_abs_top_srcdir=$srcdir ;;
35294 *) # Relative name.
35295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35296 ac_top_srcdir=$ac_top_build_prefix$srcdir
35297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35314 cat >>$CONFIG_STATUS <<\_ACEOF
35315 # If the template does not know about datarootdir, expand it.
35316 # FIXME: This hack should be removed a few years after 2.60.
35317 ac_datarootdir_hack=; ac_datarootdir_seen=
35319 case `sed -n '/datarootdir/ {
35328 ' $ac_file_inputs` in
35329 *datarootdir*) ac_datarootdir_seen=yes;;
35330 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35331 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35332 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35334 cat >>$CONFIG_STATUS <<_ACEOF
35335 ac_datarootdir_hack='
35336 s&@datadir@&$datadir&g
35337 s&@docdir@&$docdir&g
35338 s&@infodir@&$infodir&g
35339 s&@localedir@&$localedir&g
35340 s&@mandir@&$mandir&g
35341 s&\\\${datarootdir}&$datarootdir&g' ;;
35345 # Neutralize VPATH when `$srcdir' = `.'.
35346 # Shell code in configure.ac might set extrasub.
35347 # FIXME: do we really want to maintain this feature?
35348 cat >>$CONFIG_STATUS <<_ACEOF
35352 cat >>$CONFIG_STATUS <<\_ACEOF
35354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35355 s&@configure_input@&$configure_input&;t t
35356 s&@top_builddir@&$ac_top_builddir_sub&;t t
35357 s&@srcdir@&$ac_srcdir&;t t
35358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35359 s&@top_srcdir@&$ac_top_srcdir&;t t
35360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35361 s&@builddir@&$ac_builddir&;t t
35362 s&@abs_builddir@&$ac_abs_builddir&;t t
35363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35364 s&@INSTALL@&$ac_INSTALL&;t t
35365 $ac_datarootdir_hack
35366 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35369 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35371 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35372 which seems to be undefined. Please make sure it is defined." >&5
35373 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35374 which seems to be undefined. Please make sure it is defined." >&2;}
35378 -) cat "$tmp/out"; rm -f "$tmp/out";;
35379 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35388 # Transform confdefs.h into a sed script `conftest.defines', that
35389 # substitutes the proper values into config.h.in to produce config.h.
35390 rm -f conftest.defines conftest.tail
35391 # First, append a space to every undef/define line, to ease matching.
35392 echo 's/$/ /' >conftest.defines
35393 # Then, protect against being on the right side of a sed subst, or in
35394 # an unquoted here document, in config.status. If some macros were
35395 # called several times there might be several #defines for the same
35396 # symbol, which is useless. But do not sort them, since the last
35397 # AC_DEFINE must be honored.
35398 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35399 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35400 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35401 # PARAMS is the parameter list in the macro definition--in most cases, it's
35402 # just an empty string.
35403 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35404 ac_dB='\\)[ (].*,\\1define\\2'
35412 s/^[ ]*#[ ]*define[ ][ ]*//
35417 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35418 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35419 ' >>conftest.defines
35421 # Remove the space that was appended to ease matching.
35422 # Then replace #undef with comments. This is necessary, for
35423 # example, in the case of _POSIX_SOURCE, which is predefined and required
35424 # on some systems where configure will not decide to define it.
35425 # (The regexp can be short, since the line contains either #define or #undef.)
35427 s,^[ #]*u.*,/* & */,' >>conftest.defines
35429 # Break up conftest.defines:
35430 ac_max_sed_lines=50
35432 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35433 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35434 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35436 ac_in='$ac_file_inputs'
35437 ac_out='"$tmp/out1"'
35438 ac_nxt='"$tmp/out2"'
35442 # Write a here document:
35443 cat >>$CONFIG_STATUS <<_ACEOF
35444 # First, check the format of the line:
35445 cat >"\$tmp/defines.sed" <<\\CEOF
35446 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35447 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35451 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35453 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35454 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35455 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35456 grep . conftest.tail >/dev/null || break
35457 rm -f conftest.defines
35458 mv conftest.tail conftest.defines
35460 rm -f conftest.defines conftest.tail
35462 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35463 cat >>$CONFIG_STATUS <<\_ACEOF
35464 if test x"$ac_file" != x-; then
35465 echo "/* $configure_input */" >"$tmp/config.h"
35466 cat "$ac_result" >>"$tmp/config.h"
35467 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35468 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35469 echo "$as_me: $ac_file is unchanged" >&6;}
35472 mv "$tmp/config.h" $ac_file
35475 echo "/* $configure_input */"
35481 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35482 echo "$as_me: executing $ac_file commands" >&6;}
35487 case $ac_file$ac_mode in
35488 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35489 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35490 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35491 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35492 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35493 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35494 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35495 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35496 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35497 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35498 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35499 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35500 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35501 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35502 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35503 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35504 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35505 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35506 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35507 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35508 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35509 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35510 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35511 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35517 { (exit 0); exit 0; }
35519 chmod +x $CONFIG_STATUS
35520 ac_clean_files=$ac_clean_files_save
35523 # configure is writing to config.log, and then calls config.status.
35524 # config.status does its own redirection, appending to config.log.
35525 # Unfortunately, on DOS this fails, as config.log is still kept open
35526 # by configure, so config.status won't be able to write to it; its
35527 # output is simply discarded. So we exec the FD to /dev/null,
35528 # effectively closing config.log, so it can be properly (re)opened and
35529 # appended to by config.status. When coming back to configure, we
35530 # need to make the FD available again.
35531 if test "$no_create" != yes; then
35533 ac_config_status_args=
35534 test "$silent" = yes &&
35535 ac_config_status_args="$ac_config_status_args --quiet"
35537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35540 # would make configure fail if this is the last instruction.
35541 $ac_cs_success || { (exit 1); exit 1; }
35545 # CONFIG_SUBDIRS section.
35547 if test "$no_recursion" != yes; then
35549 # Remove --cache-file and --srcdir arguments so they do not pile up.
35550 ac_sub_configure_args=
35552 eval "set x $ac_configure_args"
35556 if test -n "$ac_prev"; then
35561 -cache-file | --cache-file | --cache-fil | --cache-fi \
35562 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35563 ac_prev=cache_file ;;
35564 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35565 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35568 --config-cache | -C)
35570 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35572 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35574 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35576 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35580 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35582 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35586 # Always prepend --prefix to ensure using the same prefix
35587 # in subdir configurations.
35588 ac_arg="--prefix=$prefix"
35590 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35592 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35595 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35597 # Do not complain, so a configure script can configure whichever
35598 # parts of a large source tree are present.
35599 test -d "$srcdir/$ac_dir" || continue
35601 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35602 echo "$as_me:$LINENO: $ac_msg" >&5
35606 -*) as_dir=./$as_dir;;
35608 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35612 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35613 *) as_qdir=$as_dir;;
35615 as_dirs="'$as_qdir' $as_dirs"
35616 as_dir=`$as_dirname -- "$as_dir" ||
35617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35618 X"$as_dir" : 'X\(//\)[^/]' \| \
35619 X"$as_dir" : 'X\(//\)$' \| \
35620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35626 /^X\(\/\/\)[^/].*/{
35639 test -d "$as_dir" && break
35641 test -z "$as_dirs" || eval "mkdir $as_dirs"
35642 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35643 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35644 { (exit 1); exit 1; }; }; }
35648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35651 # A ".." for each directory in $ac_dir_suffix.
35652 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35653 case $ac_top_builddir_sub in
35654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35658 ac_abs_top_builddir=$ac_pwd
35659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35660 # for backward compatibility:
35661 ac_top_builddir=$ac_top_build_prefix
35664 .) # We are building in place.
35666 ac_top_srcdir=$ac_top_builddir_sub
35667 ac_abs_top_srcdir=$ac_pwd ;;
35668 [\\/]* | ?:[\\/]* ) # Absolute name.
35669 ac_srcdir=$srcdir$ac_dir_suffix;
35670 ac_top_srcdir=$srcdir
35671 ac_abs_top_srcdir=$srcdir ;;
35672 *) # Relative name.
35673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35674 ac_top_srcdir=$ac_top_build_prefix$srcdir
35675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35682 # Check for guested configure; otherwise get Cygnus style configure.
35683 if test -f "$ac_srcdir/configure.gnu"; then
35684 ac_sub_configure=$ac_srcdir/configure.gnu
35685 elif test -f "$ac_srcdir/configure"; then
35686 ac_sub_configure=$ac_srcdir/configure
35687 elif test -f "$ac_srcdir/configure.in"; then
35688 # This should be Cygnus configure.
35689 ac_sub_configure=$ac_aux_dir/configure
35691 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35692 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35696 # The recursion is here.
35697 if test -n "$ac_sub_configure"; then
35698 # Make the cache file name correct relative to the subdirectory.
35699 case $cache_file in
35700 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35701 *) # Relative name.
35702 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35705 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35706 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35707 # The eval makes quoting arguments work.
35708 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35709 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35710 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35711 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35712 { (exit 1); exit 1; }; }