2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.3svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.3svn'
719 PACKAGE_STRING='llvm 2.3svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
833 ENABLE_EXPENSIVE_CHECKS
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
933 ac_precious_vars='build_alias
949 ac_subdirs_all='projects/sample
951 projects/llvm-stacker
957 projects/llvm-poolalloc
959 projects/llvm-kernel'
961 # Initialize some variables set by options.
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name=s,x,x,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068 eval enable_$ac_feature=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1251 -site=* | --site=* | --sit=*)
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
1293 eval with_$ac_package=no ;;
1296 # Obsolete; use --with-x.
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1344 # Be sure to have absolute directory names.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures llvm 2.3svn to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of llvm 2.3svn:";;
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-expensive-checks
1538 --enable-debug-runtime
1539 --enable-jit Enable Just In Time Compiling (default is YES)
1540 --enable-doxygen Build doxygen documentation (default is NO)
1541 --enable-threads Use threads if available (default is YES)
1542 --enable-pic Build LLVM with Position Independent Code (default
1544 --enable-targets Build specific host targets:
1545 all,host-only,{target-name} (default=all)
1546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
1550 --enable-ltdl-install install libltdl
1551 --enable-shared[=PKGS] build shared libraries
1553 --enable-static[=PKGS] build static libraries
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1565 --with-llvmgcc Specify location of llvm-gcc driver (default
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1569 --with-extra-options Specify addtional options to compile LLVM with
1570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1572 --with-tclinclude directory where tcl headers are
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1576 --with-tags[=TAGS] include additional configurations [automatic]
1577 --with-udis86=<path> Use udis86 external x86 disassembler library
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
1589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
1594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" || continue
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1629 .) # We are building in place.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1662 llvm configure 2.3svn
1663 generated by GNU Autoconf 2.60
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1670 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1678 It was created by llvm $as_me 2.3svn, which was
1679 generated by GNU Autoconf 2.60. Invocation command line was
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_must_keep_next=false
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 -* ) ac_must_keep_next=true ;;
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1795 # The following way of writing the cache mishandles newlines in values,
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1832 for ac_var in $ac_subst_vars
1834 eval ac_val=\$$ac_var
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 echo "$ac_var='\''$ac_val'\''"
1842 if test -n "$ac_subst_files"; then
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1849 for ac_var in $ac_subst_files
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1860 if test -s confdefs.h; then
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878 for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1886 # Predefined preprocessor variables.
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
1926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1934 if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 echo "$as_me: creating cache $cache_file" >&6;}
1951 # Check that the precious variables saved in the cache have kept the same
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
1959 case $ac_old_set,$ac_new_set in
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
1971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1974 echo "$as_me: former value: $ac_old_val" >&2;}
1975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1976 echo "$as_me: current value: $ac_new_val" >&2;}
1977 ac_cache_corrupted=:
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 *) ac_arg=$ac_var=$ac_new_val ;;
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 elif test -f "$ac_dir/install.sh"; then
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 elif test -f "$ac_dir/shtool"; then
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 if test -z "$ac_aux_dir"; then
2057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072 if test ${srcdir} != "." ; then
2073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
2080 for i in `ls ${srcdir}/projects`
2082 if test -d ${srcdir}/projects/${i} ; then
2085 sample) subdirs="$subdirs projects/sample"
2087 privbracket) subdirs="$subdirs projects/privbracket"
2089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091 llvm-test) subdirs="$subdirs projects/llvm-test"
2093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2097 llvm-java) subdirs="$subdirs projects/llvm-java"
2099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103 poolalloc) subdirs="$subdirs projects/poolalloc"
2105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120 { (exit 1); exit 1; }; }
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2149 ac_save_IFS=$IFS; IFS='-'
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2186 ac_save_IFS=$IFS; IFS='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199 { echo "$as_me:$LINENO: checking target system type" >&5
2200 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210 { (exit 1); exit 1; }; }
2214 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6; }
2216 case $ac_cv_target in
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219 echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2222 target=$ac_cv_target
2223 ac_save_IFS=$IFS; IFS='-'
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2233 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2236 # The aliases save the names the user supplied, while $host etc.
2237 # will get canonicalized.
2238 test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2241 program_prefix=${target_alias}-
2243 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245 if test "${llvm_cv_os_type+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,-all_load"
2266 llvm_cv_no_link_all_option="-Wl,-noall_load"
2267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="HP-UX"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="Interix"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="Linux"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,-z,allextract"
2301 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2302 llvm_cv_os_type="SunOS"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="Win32"
2308 llvm_cv_platform_type="Win32" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="MingW"
2313 llvm_cv_platform_type="Win32" ;;
2315 llvm_cv_link_all_option=""
2316 llvm_cv_no_link_all_option=""
2317 llvm_cv_os_type="Unknown"
2318 llvm_cv_platform_type="Unknown" ;;
2321 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2324 if test "$llvm_cv_os_type" = "Unknown" ; then
2325 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2327 { (exit 1); exit 1; }; }
2333 LINKALL=$llvm_cv_link_all_option
2335 NOLINKALL=$llvm_cv_no_link_all_option
2338 case $llvm_cv_platform_type in
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_UNIX 1
2352 cat >>confdefs.h <<\_ACEOF
2353 #define LLVM_ON_WIN32 1
2363 { echo "$as_me:$LINENO: checking target architecture" >&5
2364 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2365 if test "${llvm_cv_target_arch+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 i?86-*) llvm_cv_target_arch="x86" ;;
2370 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2371 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2372 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2373 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2374 ia64-*) llvm_cv_target_arch="IA64" ;;
2375 arm-*) llvm_cv_target_arch="ARM" ;;
2376 mips-*) llvm_cv_target_arch="Mips" ;;
2377 *) llvm_cv_target_arch="Unknown" ;;
2380 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2383 if test "$llvm_cv_target_arch" = "Unknown" ; then
2384 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2388 ARCH=$llvm_cv_target_arch
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 if test -n "$CC"; then
2426 { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2435 if test -z "$ac_cv_prog_CC"; then
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_ac_ct_CC="gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2473 if test "x$ac_ct_CC" = x; then
2476 case $cross_compiling:$ac_tool_warned in
2478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet. If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet. If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2492 if test -z "$CC"; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CC="${ac_tool_prefix}cc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 if test -n "$CC"; then
2523 { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2533 if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535 set dummy cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 if test -n "$CC"; then
2580 { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2589 if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
2591 for ac_prog in cl.exe
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2630 test -n "$CC" && break
2633 if test -z "$CC"; then
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2674 test -n "$ac_ct_CC" && break
2677 if test "x$ac_ct_CC" = x; then
2680 case $cross_compiling:$ac_tool_warned in
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2697 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2703 # Provide some information about the compiler.
2704 echo "$as_me:$LINENO: checking for C compiler version" >&5
2705 ac_compiler=`set X $ac_compile; echo $2`
2706 { (ac_try="$ac_compiler --version >&5"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
2716 { (ac_try="$ac_compiler -v >&5"
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2726 { (ac_try="$ac_compiler -V >&5"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 ac_clean_files_save=$ac_clean_files
2753 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2754 # Try to create an executable without -o first, disregard a.out.
2755 # It will help us diagnose broken compilers, and finding out an intuition
2757 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761 # List of possible output files, starting from the most likely.
2762 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763 # only as a last resort. b.out is created by i960 compilers.
2764 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766 # The IRIX 6 linker writes into existing files which may not be
2767 # executable, retaining their permissions. Remove them first so a
2768 # subsequent execution test works.
2770 for ac_file in $ac_files
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2779 if { (ac_try="$ac_link_default"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_link_default") 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2794 for ac_file in $ac_files
2796 test -f "$ac_file" || continue
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2801 # We found the default executable, but exeext='' is most
2805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
2832 ac_exeext=$ac_cv_exeext
2833 { echo "$as_me:$LINENO: result: $ac_file" >&5
2834 echo "${ECHO_T}$ac_file" >&6; }
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 if test "$cross_compiling" = maybe; then
2858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
2951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047 GCC=`test $ac_compiler_gnu = yes && echo yes`
3048 ac_test_CFLAGS=${CFLAGS+set}
3049 ac_save_CFLAGS=$CFLAGS
3050 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_cc_g+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3247 if test "$GCC" = yes; then
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 ac_cv_prog_cc_c89=no
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3284 s = g (p, va_arg (v,int));
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
3292 as 'x'. The following induces an error, until -std is added to get
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
3295 that's true only with -std. */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_prog_cc_c89=$ac_arg
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 rm -f conftest.$ac_ext
3371 case "x$ac_cv_prog_cc_c89" in
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3399 # On Suns, sometimes $CPP names a directory.
3400 if test -n "$CPP" && test -d "$CPP"; then
3403 if test -z "$CPP"; then
3404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3411 for ac_c_preproc_warn_flag in '' yes
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3426 # include <limits.h>
3428 # include <assert.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 # Broken: fails on valid input.
3464 rm -f conftest.err conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether nonexistent headers
3467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #include <ac_nonexistent.h>
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498 if test -z "$ac_cpp_err"; then
3499 # Broken: success on invalid input.
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Passes both tests.
3510 rm -f conftest.err conftest.$ac_ext
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3527 { echo "$as_me:$LINENO: result: $CPP" >&5
3528 echo "${ECHO_T}$CPP" >&6; }
3530 for ac_c_preproc_warn_flag in '' yes
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3545 # include <limits.h>
3547 # include <assert.h>
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 if test -z "$ac_cpp_err"; then
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Broken: fails on valid input.
3583 rm -f conftest.err conftest.$ac_ext
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <ac_nonexistent.h>
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3617 if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 $ac_path_GREP_found && break 3
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3720 ac_cv_path_GREP=$GREP
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3738 # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3784 $ac_path_EGREP_found && break 3
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3802 ac_cv_path_EGREP=$EGREP
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_header_stdc=yes
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 ac_cv_header_stdc=no
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "memchr" >/dev/null 2>&1; then
3896 ac_cv_header_stdc=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 $EGREP "free" >/dev/null 2>&1; then
3917 ac_cv_header_stdc=no
3923 if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3936 #if ((' ' & 0x0FF) == 0x020)
3937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940 # define ISLOWER(c) \
3941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
3944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
3954 || toupper (i) != TOUPPER (i))
3959 rm -f conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_header_stdc=no
3988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4031 #include <$ac_header>
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_Header=yes"
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 eval "$as_ac_Header=no"
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092 if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 # See if sys/param.h defines the BYTE_ORDER macro.
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <sys/types.h>
4103 #include <sys/param.h>
4108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 # It does; now see whether it defined to BIG_ENDIAN or not.
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <sys/types.h>
4158 #include <sys/param.h>
4163 #if BYTE_ORDER != BIG_ENDIAN
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_c_bigendian=yes
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_c_bigendian=no
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 # It does not; compile a test program.
4219 if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4237 _ascii (); _ebcdic ();
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277 ac_cv_c_bigendian=yes
4279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 cat >conftest.$ac_ext <<_ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4307 /* Are we little or big endian? From Harbison&Steele. */
4311 char c[sizeof (long int)];
4314 return u.c[sizeof (long int) - 1] == 1;
4320 rm -f conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_c_bigendian=no
4342 echo "$as_me: program exited with status $ac_status" >&5
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4347 ac_cv_c_bigendian=yes
4349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359 case $ac_cv_c_bigendian in
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4375 if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4379 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381 if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4387 ac_build_prefix=${build_alias}-
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4487 ac_cv_prog_BUILD_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4509 BUILD_CC=$ac_cv_prog_BUILD_CC
4510 if test -n "$BUILD_CC"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512 echo "${ECHO_T}$BUILD_CC" >&6; }
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529 (eval $ac_build_link) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 for file in conftest.*; do
4535 *.c | *.o | *.obj) ;;
4536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4550 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553 ac_build_exeext=$BUILD_EXEEXT
4556 LLVM_CROSS_COMPILING=0
4560 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4571 # Check whether --enable-optimized was given.
4572 if test "${enable_optimized+set}" = set; then
4573 enableval=$enable_optimized;
4578 if test ${enableval} = "no" ; then
4582 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4586 # Check whether --enable-assertions was given.
4587 if test "${enable_assertions+set}" = set; then
4588 enableval=$enable_assertions;
4593 if test ${enableval} = "yes" ; then
4597 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4601 # Check whether --enable-expensive-checks was given.
4602 if test "${enable_expensive_checks+set}" = set; then
4603 enableval=$enable_expensive_checks;
4608 if test ${enableval} = "yes" ; then
4609 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4611 EXPENSIVE_CHECKS=yes
4614 ENABLE_EXPENSIVE_CHECKS=
4620 # Check whether --enable-debug-runtime was given.
4621 if test "${enable_debug_runtime+set}" = set; then
4622 enableval=$enable_debug_runtime;
4627 if test ${enableval} = "no" ; then
4631 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4635 # Check whether --enable-jit was given.
4636 if test "${enable_jit+set}" = set; then
4637 enableval=$enable_jit;
4642 if test ${enableval} = "no"
4647 case "$llvm_cv_target_arch" in
4648 x86) TARGET_HAS_JIT=1
4650 Sparc) TARGET_HAS_JIT=0
4652 PowerPC) TARGET_HAS_JIT=1
4654 x86_64) TARGET_HAS_JIT=1
4656 Alpha) TARGET_HAS_JIT=1
4658 IA64) TARGET_HAS_JIT=0
4660 ARM) TARGET_HAS_JIT=0
4662 Mips) TARGET_HAS_JIT=0
4669 # Check whether --enable-doxygen was given.
4670 if test "${enable_doxygen+set}" = set; then
4671 enableval=$enable_doxygen;
4676 case "$enableval" in
4677 yes) ENABLE_DOXYGEN=1
4679 no) ENABLE_DOXYGEN=0
4681 default) ENABLE_DOXYGEN=0
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4688 # Check whether --enable-threads was given.
4689 if test "${enable_threads+set}" = set; then
4690 enableval=$enable_threads;
4695 case "$enableval" in
4696 yes) ENABLE_THREADS=1
4698 no) ENABLE_THREADS=0
4700 default) ENABLE_THREADS=1
4702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4707 cat >>confdefs.h <<_ACEOF
4708 #define ENABLE_THREADS $ENABLE_THREADS
4712 # Check whether --enable-pic was given.
4713 if test "${enable_pic+set}" = set; then
4714 enableval=$enable_pic;
4719 case "$enableval" in
4724 default) ENABLE_PIC=0
4726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4731 cat >>confdefs.h <<_ACEOF
4732 #define ENABLE_PIC $ENABLE_PIC
4737 # Check whether --enable-targets was given.
4738 if test "${enable_targets+set}" = set; then
4739 enableval=$enable_targets;
4744 case "$enableval" in
4745 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
4747 case "$llvm_cv_target_arch" in
4748 x86) TARGETS_TO_BUILD="X86" ;;
4749 x86_64) TARGETS_TO_BUILD="X86" ;;
4750 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4751 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4753 IA64) TARGETS_TO_BUILD="IA64" ;;
4754 ARM) TARGETS_TO_BUILD="ARM" ;;
4755 Mips) TARGETS_TO_BUILD="Mips" ;;
4756 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4757 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4758 echo "$as_me: error: Can not set target to build" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4762 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4764 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4767 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4768 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4769 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4770 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4771 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4772 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4773 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4774 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4775 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4776 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4777 { (exit 1); exit 1; }; } ;;
4782 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4785 # Check whether --enable-cbe-printf-a was given.
4786 if test "${enable_cbe_printf_a+set}" = set; then
4787 enableval=$enable_cbe_printf_a;
4792 case "$enableval" in
4793 yes) ENABLE_CBE_PRINTF_A=1
4795 no) ENABLE_CBE_PRINTF_A=0
4797 default) ENABLE_CBE_PRINTF_A=1
4799 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4800 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4801 { (exit 1); exit 1; }; } ;;
4804 cat >>confdefs.h <<_ACEOF
4805 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4810 # Check whether --with-llvmgccdir was given.
4811 if test "${with_llvmgccdir+set}" = set; then
4812 withval=$with_llvmgccdir;
4818 default) WITH_LLVMGCCDIR=default ;;
4819 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4820 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4821 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4822 { (exit 1); exit 1; }; } ;;
4826 # Check whether --with-llvmgcc was given.
4827 if test "${with_llvmgcc+set}" = set; then
4828 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4834 # Check whether --with-llvmgxx was given.
4835 if test "${with_llvmgxx+set}" = set; then
4836 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4841 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4842 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4843 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4844 { (exit 1); exit 1; }; };
4847 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4848 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4849 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4850 { (exit 1); exit 1; }; };
4854 # Check whether --with-extra-options was given.
4855 if test "${with_extra_options+set}" = set; then
4856 withval=$with_extra_options;
4862 default) EXTRA_OPTIONS= ;;
4863 *) EXTRA_OPTIONS=$withval ;;
4865 EXTRA_OPTIONS=$EXTRA_OPTIONS
4868 # Check whether --enable-bindings was given.
4869 if test "${enable_bindings+set}" = set; then
4870 enableval=$enable_bindings;
4875 BINDINGS_TO_BUILD=""
4876 case "$enableval" in
4877 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4878 all ) BINDINGS_TO_BUILD="ocaml" ;;
4879 none | no) BINDINGS_TO_BUILD="" ;;
4880 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4881 case "$a_binding" in
4882 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4883 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4884 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4885 { (exit 1); exit 1; }; } ;;
4892 # Check whether --with-ocaml-libdir was given.
4893 if test "${with_ocaml_libdir+set}" = set; then
4894 withval=$with_ocaml_libdir;
4900 auto) with_ocaml_libdir="$withval" ;;
4901 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4902 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4903 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4915 # On Suns, sometimes $CPP names a directory.
4916 if test -n "$CPP" && test -d "$CPP"; then
4919 if test -z "$CPP"; then
4920 if test "${ac_cv_prog_CPP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 # Double quotes because CPP needs to be expanded
4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4927 for ac_c_preproc_warn_flag in '' yes
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4942 # include <limits.h>
4944 # include <assert.h>
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } >/dev/null; then
4961 if test -s conftest.err; then
4962 ac_cpp_err=$ac_c_preproc_warn_flag
4963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4970 if test -z "$ac_cpp_err"; then
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Broken: fails on valid input.
4980 rm -f conftest.err conftest.$ac_ext
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4992 if { (ac_try="$ac_cpp conftest.$ac_ext"
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_c_preproc_warn_flag
5007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5014 if test -z "$ac_cpp_err"; then
5015 # Broken: success on invalid input.
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 # Passes both tests.
5026 rm -f conftest.err conftest.$ac_ext
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then
5043 { echo "$as_me:$LINENO: result: $CPP" >&5
5044 echo "${ECHO_T}$CPP" >&6; }
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5061 # include <limits.h>
5063 # include <assert.h>
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5089 if test -z "$ac_cpp_err"; then
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 # Broken: fails on valid input.
5099 rm -f conftest.err conftest.$ac_ext
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <ac_nonexistent.h>
5111 if { (ac_try="$ac_cpp conftest.$ac_ext"
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5133 if test -z "$ac_cpp_err"; then
5134 # Broken: success on invalid input.
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 # Passes both tests.
5145 rm -f conftest.err conftest.$ac_ext
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5156 See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171 if test -n "$ac_tool_prefix"; then
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_prog_CC+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 if test -n "$CC"; then
5182 ac_cv_prog_CC="$CC" # Let the user override the test.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 if test -n "$CC"; then
5203 { echo "$as_me:$LINENO: result: $CC" >&5
5204 echo "${ECHO_T}$CC" >&6; }
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5211 test -n "$CC" && break
5214 if test -z "$CC"; then
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_CC="$ac_prog"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246 if test -n "$ac_ct_CC"; then
5247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5248 echo "${ECHO_T}$ac_ct_CC" >&6; }
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5255 test -n "$ac_ct_CC" && break
5258 if test "x$ac_ct_CC" = x; then
5261 case $cross_compiling:$ac_tool_warned in
5263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5264 whose name does not start with the host triplet. If you think this
5265 configuration is useful to you, please write to autoconf@gnu.org." >&5
5266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5267 whose name does not start with the host triplet. If you think this
5268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5269 ac_tool_warned=yes ;;
5276 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5277 See \`config.log' for more details." >&5
5278 echo "$as_me: error: no acceptable C compiler found in \$PATH
5279 See \`config.log' for more details." >&2;}
5280 { (exit 1); exit 1; }; }
5282 # Provide some information about the compiler.
5283 echo "$as_me:$LINENO: checking for C compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (ac_try="$ac_compiler --version >&5"
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler --version >&5") 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (ac_try="$ac_compiler -v >&5"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -v >&5") 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (ac_try="$ac_compiler -V >&5"
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -V >&5") 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5316 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354 { (case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_try") 2>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5385 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5386 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5387 GCC=`test $ac_compiler_gnu = yes && echo yes`
5388 ac_test_CFLAGS=${CFLAGS+set}
5389 ac_save_CFLAGS=$CFLAGS
5390 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5392 if test "${ac_cv_prog_cc_g+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_save_c_werror_flag=$ac_c_werror_flag
5396 ac_c_werror_flag=yes
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_try") 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_try") 2>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_c_werror_flag=$ac_save_c_werror_flag
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest.$ac_objext'
5550 { (case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5578 if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580 elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5587 if test "$GCC" = yes; then
5593 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5594 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5595 if test "${ac_cv_prog_cc_c89+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 ac_cv_prog_cc_c89=no
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5608 #include <sys/types.h>
5609 #include <sys/stat.h>
5610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5611 struct buf { int x; };
5612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5613 static char *e (p, i)
5619 static char *f (char * (*g) (char **, int), char **p, ...)
5624 s = g (p, va_arg (v,int));
5629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5630 function prototypes and stuff, but not '\xHH' hex character constants.
5631 These don't provoke an error unfortunately, instead are silently treated
5632 as 'x'. The following induces an error, until -std is added to get
5633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5634 array size at least. It's necessary to write '\x00'==0 to get something
5635 that's true only with -std. */
5636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5639 inside strings and character constants. */
5641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5643 int test (int i, double x);
5644 struct s1 {int (*f) (int a);};
5645 struct s2 {int (*f) (double a);};
5646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5660 CC="$ac_save_CC $ac_arg"
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_prog_cc_c89=$ac_arg
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f core conftest.err conftest.$ac_objext
5704 test "x$ac_cv_prog_cc_c89" != "xno" && break
5706 rm -f conftest.$ac_ext
5711 case "x$ac_cv_prog_cc_c89" in
5713 { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5716 { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5719 CC="$CC $ac_cv_prog_cc_c89"
5720 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 if test -z "$CXX"; then
5737 if test -n "$CCC"; then
5740 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747 if test "${ac_cv_prog_CXX+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test -n "$CXX"; then
5751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 if test -n "$CXX"; then
5772 { echo "$as_me:$LINENO: result: $CXX" >&5
5773 echo "${ECHO_T}$CXX" >&6; }
5775 { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5780 test -n "$CXX" && break
5783 if test -z "$CXX"; then
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -n "$ac_ct_CXX"; then
5795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_ac_ct_CXX="$ac_prog"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5815 if test -n "$ac_ct_CXX"; then
5816 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5817 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5824 test -n "$ac_ct_CXX" && break
5827 if test "x$ac_ct_CXX" = x; then
5830 case $cross_compiling:$ac_tool_warned in
5832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5833 whose name does not start with the host triplet. If you think this
5834 configuration is useful to you, please write to autoconf@gnu.org." >&5
5835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5836 whose name does not start with the host triplet. If you think this
5837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5838 ac_tool_warned=yes ;;
5846 # Provide some information about the compiler.
5847 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5848 ac_compiler=`set X $ac_compile; echo $2`
5849 { (ac_try="$ac_compiler --version >&5"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compiler --version >&5") 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }
5859 { (ac_try="$ac_compiler -v >&5"
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compiler -v >&5") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }
5869 { (ac_try="$ac_compiler -V >&5"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compiler -V >&5") 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5880 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5881 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5882 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5950 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5951 GXX=`test $ac_compiler_gnu = yes && echo yes`
5952 ac_test_CXXFLAGS=${CXXFLAGS+set}
5953 ac_save_CXXFLAGS=$CXXFLAGS
5954 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5955 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5956 if test "${ac_cv_prog_cxx_g+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5960 ac_cxx_werror_flag=yes
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_prog_cxx_g=yes
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6048 { (case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_try") 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_try") 2>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6074 cat >conftest.$ac_ext <<_ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6104 { (case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_try") 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_prog_cxx_g=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6140 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6141 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6142 if test "$ac_test_CXXFLAGS" = set; then
6143 CXXFLAGS=$ac_save_CXXFLAGS
6144 elif test $ac_cv_prog_cxx_g = yes; then
6145 if test "$GXX" = yes; then
6151 if test "$GXX" = yes; then
6158 ac_cpp='$CPP $CPPFLAGS'
6159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163 { echo "$as_me:$LINENO: checking " >&5
6164 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6165 if test "${ac_cv_has_flex+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 for ac_prog in flex lex
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_LEX+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$LEX"; then
6178 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_LEX="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 if test -n "$LEX"; then
6199 { echo "$as_me:$LINENO: result: $LEX" >&5
6200 echo "${ECHO_T}$LEX" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6207 test -n "$LEX" && break
6209 test -n "$LEX" || LEX=":"
6211 if test -z "$LEXLIB"
6213 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6214 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6215 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_check_lib_save_LIBS=$LIBS
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6227 /* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_lib_fl_yywrap=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_cv_lib_fl_yywrap=no
6284 rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286 LIBS=$ac_check_lib_save_LIBS
6288 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6289 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6290 if test $ac_cv_lib_fl_yywrap = yes; then
6293 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6294 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6295 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_check_lib_save_LIBS=$LIBS
6300 cat >conftest.$ac_ext <<_ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6307 /* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6322 rm -f conftest.$ac_objext conftest$ac_exeext
6323 if { (ac_try="$ac_link"
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_link") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_l_yywrap=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_lib_l_yywrap=no
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_check_lib_save_LIBS
6368 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6369 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6370 if test $ac_cv_lib_l_yywrap = yes; then
6378 if test "x$LEX" != "x:"; then
6379 { echo "$as_me:$LINENO: checking lex output file root" >&5
6380 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6381 if test "${ac_cv_prog_lex_root+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 # The minimal lex program is just a single line: %%. But some broken lexes
6385 # (Solaris, I think it was) want two %% lines, so accommodate them.
6386 cat >conftest.l <<_ACEOF
6390 { (ac_try="$LEX conftest.l"
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$LEX conftest.l") 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }
6400 if test -f lex.yy.c; then
6401 ac_cv_prog_lex_root=lex.yy
6402 elif test -f lexyy.c; then
6403 ac_cv_prog_lex_root=lexyy
6405 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6406 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6407 { (exit 1); exit 1; }; }
6410 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6411 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6413 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6415 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6416 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 # POSIX says lex can declare yytext either as a pointer or an array; the
6421 # default is implementation-dependent. Figure out which it is, since
6422 # not all implementations provide the %pointer and %array declarations.
6423 ac_cv_prog_lex_yytext_pointer=no
6424 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6426 LIBS="$LIBS $LEXLIB"
6427 cat >conftest.$ac_ext <<_ACEOF
6428 `cat $LEX_OUTPUT_ROOT.c`
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (ac_try="$ac_link"
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_link") 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_try") 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_prog_lex_yytext_pointer=yes
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6472 rm -f core conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6475 rm -f "${LEX_OUTPUT_ROOT}.c"
6478 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6479 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6480 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6482 cat >>confdefs.h <<\_ACEOF
6483 #define YYTEXT_POINTER 1
6491 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6492 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6493 if test "$LEX" != "flex"; then
6494 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6495 echo "$as_me: error: flex not found but required" >&2;}
6496 { (exit 1); exit 1; }; }
6502 { echo "$as_me:$LINENO: checking " >&5
6503 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6504 if test "${llvm_cv_has_bison+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 for ac_prog in 'bison -y' byacc
6509 # Extract the first word of "$ac_prog", so it can be a program name with args.
6510 set dummy $ac_prog; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_YACC+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test -n "$YACC"; then
6517 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_YACC="$ac_prog"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 YACC=$ac_cv_prog_YACC
6537 if test -n "$YACC"; then
6538 { echo "$as_me:$LINENO: result: $YACC" >&5
6539 echo "${ECHO_T}$YACC" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6546 test -n "$YACC" && break
6548 test -n "$YACC" || YACC="yacc"
6551 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6552 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6553 if test "$YACC" != "bison -y"; then
6555 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6556 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6562 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6563 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6564 if test "${lt_cv_path_NM+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 if test -n "$NM"; then
6568 # Let the user override the test.
6571 lt_nm_to_check="${ac_tool_prefix}nm"
6572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6573 lt_nm_to_check="$lt_nm_to_check nm"
6575 for lt_tmp_nm in $lt_nm_to_check; do
6576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6579 test -z "$ac_dir" && ac_dir=.
6580 tmp_nm="$ac_dir/$lt_tmp_nm"
6581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6582 # Check to see if the nm accepts a BSD-compat flag.
6583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6584 # nm: unknown option "B" ignored
6585 # Tru64's nm complains that /dev/null is an invalid object file
6586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6587 */dev/null* | *'Invalid file or object type'*)
6588 lt_cv_path_NM="$tmp_nm -B"
6592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6594 lt_cv_path_NM="$tmp_nm -p"
6598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6599 continue # so that we can try to find one that supports BSD flags
6608 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6611 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6612 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6617 { echo "$as_me:$LINENO: checking for GNU make" >&5
6618 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6619 if test "${llvm_cv_gnu_make_command+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 llvm_cv_gnu_make_command=''
6623 for a in "$MAKE" make gmake gnumake ; do
6624 if test -z "$a" ; then continue ; fi ;
6625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6627 llvm_cv_gnu_make_command=$a ;
6632 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6633 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6638 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6639 echo "${ECHO_T}\"Not found\"" >&6; };
6643 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6646 if test "$LN_S" = "ln -s"; then
6647 { echo "$as_me:$LINENO: result: yes" >&5
6648 echo "${ECHO_T}yes" >&6; }
6650 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6651 echo "${ECHO_T}no, using $LN_S" >&6; }
6654 # Extract the first word of "cmp", so it can be a program name with args.
6655 set dummy cmp; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_CMP+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6686 if test -n "$CMP"; then
6687 { echo "$as_me:$LINENO: result: $CMP" >&5
6688 echo "${ECHO_T}$CMP" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 # Extract the first word of "cp", so it can be a program name with args.
6696 set dummy cp; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_CP+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6727 if test -n "$CP"; then
6728 { echo "$as_me:$LINENO: result: $CP" >&5
6729 echo "${ECHO_T}$CP" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 # Extract the first word of "date", so it can be a program name with args.
6737 set dummy date; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_DATE+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6767 DATE=$ac_cv_path_DATE
6768 if test -n "$DATE"; then
6769 { echo "$as_me:$LINENO: result: $DATE" >&5
6770 echo "${ECHO_T}$DATE" >&6; }
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6777 # Extract the first word of "find", so it can be a program name with args.
6778 set dummy find; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_path_FIND+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6808 FIND=$ac_cv_path_FIND
6809 if test -n "$FIND"; then
6810 { echo "$as_me:$LINENO: result: $FIND" >&5
6811 echo "${ECHO_T}$FIND" >&6; }
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6818 # Extract the first word of "grep", so it can be a program name with args.
6819 set dummy grep; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_GREP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6849 GREP=$ac_cv_path_GREP
6850 if test -n "$GREP"; then
6851 { echo "$as_me:$LINENO: result: $GREP" >&5
6852 echo "${ECHO_T}$GREP" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6859 # Extract the first word of "mkdir", so it can be a program name with args.
6860 set dummy mkdir; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_MKDIR+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6890 MKDIR=$ac_cv_path_MKDIR
6891 if test -n "$MKDIR"; then
6892 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6893 echo "${ECHO_T}$MKDIR" >&6; }
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6900 # Extract the first word of "mv", so it can be a program name with args.
6901 set dummy mv; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_MV+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6932 if test -n "$MV"; then
6933 { echo "$as_me:$LINENO: result: $MV" >&5
6934 echo "${ECHO_T}$MV" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_RANLIB+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 if test -n "$RANLIB"; then
6950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 RANLIB=$ac_cv_prog_RANLIB
6970 if test -n "$RANLIB"; then
6971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6972 echo "${ECHO_T}$RANLIB" >&6; }
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6980 if test -z "$ac_cv_prog_RANLIB"; then
6981 ac_ct_RANLIB=$RANLIB
6982 # Extract the first word of "ranlib", so it can be a program name with args.
6983 set dummy ranlib; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 if test -n "$ac_ct_RANLIB"; then
6990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_ac_ct_RANLIB="ranlib"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7010 if test -n "$ac_ct_RANLIB"; then
7011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7018 if test "x$ac_ct_RANLIB" = x; then
7021 case $cross_compiling:$ac_tool_warned in
7023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7024 whose name does not start with the host triplet. If you think this
7025 configuration is useful to you, please write to autoconf@gnu.org." >&5
7026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet. If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7029 ac_tool_warned=yes ;;
7031 RANLIB=$ac_ct_RANLIB
7034 RANLIB="$ac_cv_prog_RANLIB"
7037 # Extract the first word of "rm", so it can be a program name with args.
7038 set dummy rm; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_RM+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7069 if test -n "$RM"; then
7070 { echo "$as_me:$LINENO: result: $RM" >&5
7071 echo "${ECHO_T}$RM" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 # Extract the first word of "sed", so it can be a program name with args.
7079 set dummy sed; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_SED+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7110 if test -n "$SED"; then
7111 { echo "$as_me:$LINENO: result: $SED" >&5
7112 echo "${ECHO_T}$SED" >&6; }
7114 { echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6; }
7119 # Extract the first word of "tar", so it can be a program name with args.
7120 set dummy tar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_TAR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7151 if test -n "$TAR"; then
7152 { echo "$as_me:$LINENO: result: $TAR" >&5
7153 echo "${ECHO_T}$TAR" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 # Extract the first word of "pwd", so it can be a program name with args.
7161 set dummy pwd; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_BINPWD+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7191 BINPWD=$ac_cv_path_BINPWD
7192 if test -n "$BINPWD"; then
7193 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7194 echo "${ECHO_T}$BINPWD" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "Graphviz", so it can be a program name with args.
7203 set dummy Graphviz; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7233 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7234 if test -n "$GRAPHVIZ"; then
7235 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7236 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_GRAPHVIZ 1
7249 if test "$llvm_cv_os_type" = "MingW" ; then
7250 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7253 cat >>confdefs.h <<_ACEOF
7254 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7258 # Extract the first word of "dot", so it can be a program name with args.
7259 set dummy dot; ac_word=$2
7260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262 if test "${ac_cv_path_DOT+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7290 if test -n "$DOT"; then
7291 { echo "$as_me:$LINENO: result: $DOT" >&5
7292 echo "${ECHO_T}$DOT" >&6; }
7294 { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7299 if test "$DOT" != "echo dot" ; then
7301 cat >>confdefs.h <<\_ACEOF
7305 if test "$llvm_cv_os_type" = "MingW" ; then
7306 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7309 cat >>confdefs.h <<_ACEOF
7310 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7314 for ac_prog in gv gsview32
7316 # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_path_GV+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 if test -n "$GV"; then
7348 { echo "$as_me:$LINENO: result: $GV" >&5
7349 echo "${ECHO_T}$GV" >&6; }
7351 { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7356 test -n "$GV" && break
7358 test -n "$GV" || GV="echo gv"
7360 if test "$GV" != "echo gv" ; then
7362 cat >>confdefs.h <<\_ACEOF
7366 if test "$llvm_cv_os_type" = "MingW" ; then
7367 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7370 cat >>confdefs.h <<_ACEOF
7371 #define LLVM_PATH_GV "$GV${EXEEXT}"
7375 # Extract the first word of "dotty", so it can be a program name with args.
7376 set dummy dotty; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_DOTTY+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7406 DOTTY=$ac_cv_path_DOTTY
7407 if test -n "$DOTTY"; then
7408 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7409 echo "${ECHO_T}$DOTTY" >&6; }
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7416 if test "$DOTTY" != "echo dotty" ; then
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_DOTTY 1
7422 if test "$llvm_cv_os_type" = "MingW" ; then
7423 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426 cat >>confdefs.h <<_ACEOF
7427 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7433 # Extract the first word of "perl", so it can be a program name with args.
7434 set dummy perl; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_PERL+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7464 PERL=$ac_cv_path_PERL
7465 if test -n "$PERL"; then
7466 { echo "$as_me:$LINENO: result: $PERL" >&5
7467 echo "${ECHO_T}$PERL" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7474 if test "$PERL" != "none"; then
7475 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7476 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7477 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7478 { echo "$as_me:$LINENO: result: yes" >&5
7479 echo "${ECHO_T}yes" >&6; }
7482 { echo "$as_me:$LINENO: result: not found" >&5
7483 echo "${ECHO_T}not found" >&6; }
7488 if test x"$PERL" = xnone; then
7491 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7492 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7493 { (exit 1); exit 1; }; }
7499 # Find a good install program. We prefer a C program (faster),
7500 # so one script is as good as another. But avoid the broken or
7501 # incompatible versions:
7502 # SysV /etc/install, /usr/sbin/install
7503 # SunOS /usr/etc/install
7504 # IRIX /sbin/install
7506 # AmigaOS /C/install, which installs bootblocks on floppy discs
7507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7510 # OS/2's system install, which has a completely different semantic
7511 # ./install, which can be erroneously created by make from ./install.sh.
7512 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7513 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7514 if test -z "$INSTALL"; then
7515 if test "${ac_cv_path_install+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 # Account for people who put trailing slashes in PATH elements.
7525 ./ | .// | /cC/* | \
7526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7527 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7530 # OSF1 and SCO ODT 3.0 have their own names for install.
7531 # Don't use installbsd from OSF since it installs stuff as root
7533 for ac_prog in ginstall scoinst install; do
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7536 if test $ac_prog = install &&
7537 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7538 # AIX install. It has an incompatible calling convention.
7540 elif test $ac_prog = install &&
7541 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7542 # program-specific install script used by HP pwplus--don't use.
7545 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7558 if test "${ac_cv_path_install+set}" = set; then
7559 INSTALL=$ac_cv_path_install
7561 # As a last resort, use the slow shell script. Don't cache a
7562 # value for INSTALL within a source directory, because that will
7563 # break other packages using the cache if that directory is
7564 # removed, or if the value is a relative name.
7565 INSTALL=$ac_install_sh
7568 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7569 echo "${ECHO_T}$INSTALL" >&6; }
7571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7572 # It thinks the first close brace ends the variable substitution.
7573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7580 # Extract the first word of "bzip2", so it can be a program name with args.
7581 set dummy bzip2; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_BZIP2+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 BZIP2=$ac_cv_path_BZIP2
7611 if test -n "$BZIP2"; then
7612 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7613 echo "${ECHO_T}$BZIP2" >&6; }
7615 { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7620 # Extract the first word of "doxygen", so it can be a program name with args.
7621 set dummy doxygen; ac_word=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 DOXYGEN=$ac_cv_path_DOXYGEN
7651 if test -n "$DOXYGEN"; then
7652 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7653 echo "${ECHO_T}$DOXYGEN" >&6; }
7655 { echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6; }
7660 # Extract the first word of "groff", so it can be a program name with args.
7661 set dummy groff; ac_word=$2
7662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_GROFF+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 GROFF=$ac_cv_path_GROFF
7691 if test -n "$GROFF"; then
7692 { echo "$as_me:$LINENO: result: $GROFF" >&5
7693 echo "${ECHO_T}$GROFF" >&6; }
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 # Extract the first word of "gzip", so it can be a program name with args.
7701 set dummy gzip; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_path_GZIP+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 GZIP=$ac_cv_path_GZIP
7731 if test -n "$GZIP"; then
7732 { echo "$as_me:$LINENO: result: $GZIP" >&5
7733 echo "${ECHO_T}$GZIP" >&6; }
7735 { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7740 # Extract the first word of "pod2html", so it can be a program name with args.
7741 set dummy pod2html; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_path_POD2HTML+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 POD2HTML=$ac_cv_path_POD2HTML
7771 if test -n "$POD2HTML"; then
7772 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7773 echo "${ECHO_T}$POD2HTML" >&6; }
7775 { echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6; }
7780 # Extract the first word of "pod2man", so it can be a program name with args.
7781 set dummy pod2man; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_path_POD2MAN+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 POD2MAN=$ac_cv_path_POD2MAN
7811 if test -n "$POD2MAN"; then
7812 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7813 echo "${ECHO_T}$POD2MAN" >&6; }
7815 { echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6; }
7820 # Extract the first word of "runtest", so it can be a program name with args.
7821 set dummy runtest; ac_word=$2
7822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824 if test "${ac_cv_path_RUNTEST+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 RUNTEST=$ac_cv_path_RUNTEST
7851 if test -n "$RUNTEST"; then
7852 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7853 echo "${ECHO_T}$RUNTEST" >&6; }
7855 { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7862 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7863 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7865 # Check whether --with-tclinclude was given.
7866 if test "${with_tclinclude+set}" = set; then
7867 withval=$with_tclinclude; with_tclinclude=${withval}
7872 if test "${ac_cv_path_tclsh+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 if test x"${with_tclinclude}" != x ; then
7877 if test -f ${with_tclinclude}/tclsh ; then
7878 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7879 elif test -f ${with_tclinclude}/src/tclsh ; then
7880 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7882 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7883 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7884 { (exit 1); exit 1; }; }
7888 if test x"${ac_cv_path_tclsh}" = x ; then
7889 { echo "$as_me:$LINENO: result: none" >&5
7890 echo "${ECHO_T}none" >&6; }
7891 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
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7897 if test "${ac_cv_path_TCLSH+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7912 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 TCLSH=$ac_cv_path_TCLSH
7924 if test -n "$TCLSH"; then
7925 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7926 echo "${ECHO_T}$TCLSH" >&6; }
7928 { echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6; }
7933 test -n "$TCLSH" && break
7936 if test x"${TCLSH}" = x ; then
7937 ac_cv_path_tclsh='';
7939 ac_cv_path_tclsh="${TCLSH}";
7942 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7943 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7944 TCLSH="${ac_cv_path_tclsh}"
7950 # Extract the first word of "zip", so it can be a program name with args.
7951 set dummy zip; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_path_ZIP+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 if test -n "$ZIP"; then
7982 { echo "$as_me:$LINENO: result: $ZIP" >&5
7983 echo "${ECHO_T}$ZIP" >&6; }
7985 { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7990 for ac_prog in ocamlc.opt ocamlc
7992 # Extract the first word of "$ac_prog", so it can be a program name with args.
7993 set dummy $ac_prog; ac_word=$2
7994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7996 if test "${ac_cv_path_OCAMLC+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 OCAMLC=$ac_cv_path_OCAMLC
8023 if test -n "$OCAMLC"; then
8024 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8025 echo "${ECHO_T}$OCAMLC" >&6; }
8027 { echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6; }
8032 test -n "$OCAMLC" && break
8035 for ac_prog in ocamlopt.opt ocamlopt
8037 # Extract the first word of "$ac_prog", so it can be a program name with args.
8038 set dummy $ac_prog; ac_word=$2
8039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8041 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 OCAMLOPT=$ac_cv_path_OCAMLOPT
8068 if test -n "$OCAMLOPT"; then
8069 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8070 echo "${ECHO_T}$OCAMLOPT" >&6; }
8072 { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8077 test -n "$OCAMLOPT" && break
8080 for ac_prog in ocamldep.opt ocamldep
8082 # Extract the first word of "$ac_prog", so it can be a program name with args.
8083 set dummy $ac_prog; ac_word=$2
8084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8086 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 OCAMLDEP=$ac_cv_path_OCAMLDEP
8113 if test -n "$OCAMLDEP"; then
8114 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8115 echo "${ECHO_T}$OCAMLDEP" >&6; }
8117 { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8122 test -n "$OCAMLDEP" && break
8126 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8127 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8128 if test "${llvm_cv_link_use_r+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 ac_cpp='$CPP $CPPFLAGS'
8133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138 CFLAGS="$CFLAGS -Wl,-R."
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8149 int main() { return 0; }
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>conftest.er1
8163 grep -v '^ *+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8169 { (case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_try") 2>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 llvm_cv_link_use_r=yes
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 llvm_cv_link_use_r=no
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8200 ac_cpp='$CPP $CPPFLAGS'
8201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8207 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8208 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8209 if test "$llvm_cv_link_use_r" = yes ; then
8211 cat >>confdefs.h <<\_ACEOF
8212 #define HAVE_LINK_R 1
8220 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8222 if test "${ac_cv_c_const+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 cat >conftest.$ac_ext <<_ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8235 /* FIXME: Include the comments suggested by Paul. */
8237 /* Ultrix mips cc rejects this. */
8238 typedef int charset[2];
8240 /* SunOS 4.1.1 cc rejects this. */
8241 char const *const *ccp;
8243 /* NEC SVR4.0.2 mips cc rejects this. */
8244 struct point {int x, y;};
8245 static struct point const zero = {0,0};
8246 /* AIX XL C 1.02.0.0 rejects this.
8247 It does not let you subtract one const X* pointer from another in
8248 an arm of an if-expression whose if-part is not a constant
8250 const char *g = "string";
8251 ccp = &g + (g ? g-g : 0);
8252 /* HPUX 7.0 cc rejects these. */
8255 ccp = (char const *const *) p;
8256 { /* SCO 3.2v4 cc rejects this. */
8258 char const *s = 0 ? (char *) 0 : (char const *) 0;
8263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8265 const int *foo = &x[0];
8268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8269 typedef const int *iptr;
8273 { /* AIX XL C 1.02.0.0 rejects this saying
8274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8275 struct s { int j; const int *ap[3]; };
8276 struct s *b; b->j = 5;
8278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8282 return !x[0] && !zero.x;
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8334 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8335 if test $ac_cv_c_const = no; then
8337 cat >>confdefs.h <<\_ACEOF
8349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8350 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8351 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 #include <sys/types.h>
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_try") 2>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest.$ac_objext'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 eval "$as_ac_Header=yes"
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 eval "$as_ac_Header=no"
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 ac_res=`eval echo '${'$as_ac_Header'}'`
8419 { echo "$as_me:$LINENO: result: $ac_res" >&5
8420 echo "${ECHO_T}$ac_res" >&6; }
8421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8426 ac_header_dirent=$ac_hdr; break
8430 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8431 if test $ac_header_dirent = dirent.h; then
8432 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8433 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8434 if test "${ac_cv_search_opendir+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 ac_func_search_save_LIBS=$LIBS
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8445 /* Override any GCC internal prototype to avoid an error.
8446 Use char because int might match the return type of a GCC
8447 builtin and then its argument prototype would still apply. */
8460 for ac_lib in '' dir; do
8461 if test -z "$ac_lib"; then
8462 ac_res="none required"
8465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_link") 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8482 { (case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_try") 2>&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_search_opendir=$ac_res
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8509 rm -f core conftest.err conftest.$ac_objext \
8511 if test "${ac_cv_search_opendir+set}" = set; then
8515 if test "${ac_cv_search_opendir+set}" = set; then
8518 ac_cv_search_opendir=no
8521 LIBS=$ac_func_search_save_LIBS
8523 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8524 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8525 ac_res=$ac_cv_search_opendir
8526 if test "$ac_res" != no; then
8527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8532 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8533 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8534 if test "${ac_cv_search_opendir+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 ac_func_search_save_LIBS=$LIBS
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8545 /* Override any GCC internal prototype to avoid an error.
8546 Use char because int might match the return type of a GCC
8547 builtin and then its argument prototype would still apply. */
8560 for ac_lib in '' x; do
8561 if test -z "$ac_lib"; then
8562 ac_res="none required"
8565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (ac_try="$ac_link"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_link") 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_search_opendir=$ac_res
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8609 rm -f core conftest.err conftest.$ac_objext \
8611 if test "${ac_cv_search_opendir+set}" = set; then
8615 if test "${ac_cv_search_opendir+set}" = set; then
8618 ac_cv_search_opendir=no
8621 LIBS=$ac_func_search_save_LIBS
8623 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8624 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8625 ac_res=$ac_cv_search_opendir
8626 if test "$ac_res" != no; then
8627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8634 for ac_header in dlfcn.h
8636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 ac_res=`eval echo '${'$as_ac_Header'}'`
8644 { echo "$as_me:$LINENO: result: $ac_res" >&5
8645 echo "${ECHO_T}$ac_res" >&6; }
8647 # Is the header compilable?
8648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8649 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
8657 #include <$ac_header>
8659 rm -f conftest.$ac_objext
8660 if { (ac_try="$ac_compile"
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666 (eval "$ac_compile") 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_try") 2>&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest.$ac_objext'
8684 { (case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_try") 2>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_header_compiler=yes
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ac_header_compiler=no
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8703 echo "${ECHO_T}$ac_header_compiler" >&6; }
8705 # Is the header present?
8706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8708 cat >conftest.$ac_ext <<_ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 #include <$ac_header>
8716 if { (ac_try="$ac_cpp conftest.$ac_ext"
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev/null; then
8729 if test -s conftest.err; then
8730 ac_cpp_err=$ac_c_preproc_warn_flag
8731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8738 if test -z "$ac_cpp_err"; then
8739 ac_header_preproc=yes
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_header_preproc=no
8747 rm -f conftest.err conftest.$ac_ext
8748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6; }
8751 # So? What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758 ac_header_preproc=yes
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774 ## ----------------------------------- ##
8775 ## Report this to llvmbugs@cs.uiuc.edu ##
8776 ## ----------------------------------- ##
8778 ) | sed "s/^/$as_me: WARNING: /" >&2
8781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 eval "$as_ac_Header=\$ac_header_preproc"
8788 ac_res=`eval echo '${'$as_ac_Header'}'`
8789 { echo "$as_me:$LINENO: result: $ac_res" >&5
8790 echo "${ECHO_T}$ac_res" >&6; }
8793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8794 cat >>confdefs.h <<_ACEOF
8795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8802 # Check whether --enable-ltdl-install was given.
8803 if test "${enable_ltdl_install+set}" = set; then
8804 enableval=$enable_ltdl_install;
8810 if test x"${enable_ltdl_install-no}" != xno; then
8812 INSTALL_LTDL_FALSE='#'
8814 INSTALL_LTDL_TRUE='#'
8820 if test x"${enable_ltdl_convenience-no}" != xno; then
8821 CONVENIENCE_LTDL_TRUE=
8822 CONVENIENCE_LTDL_FALSE='#'
8824 CONVENIENCE_LTDL_TRUE='#'
8825 CONVENIENCE_LTDL_FALSE=
8829 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8832 libname_spec='lib$name'
8840 shlibpath_overrides_runpath=unknown
8842 dynamic_linker="$host_os ld.so"
8843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8844 if test "$GCC" = yes; then
8845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8846 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8847 # if the path contains ";" then we assume it to be the separator
8848 # otherwise default to the standard path separator (i.e. ":") - it is
8849 # assumed that no part of a normal pathname contains ";" but that should
8850 # okay in the real world where ";" in dirpaths is itself problematic.
8851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8858 need_lib_prefix=unknown
8859 hardcode_into_libs=no
8861 # when you set need_version to no, make sure it does not cause -set_version
8862 # flags to be left without arguments
8863 need_version=unknown
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8869 shlibpath_var=LIBPATH
8871 # AIX 3 has no versioning support, so we append a major version to the name.
8872 soname_spec='${libname}${release}${shared_ext}$major'
8879 hardcode_into_libs=yes
8880 if test "$host_cpu" = ia64; then
8881 # AIX 5 supports IA64
8882 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8883 shlibpath_var=LD_LIBRARY_PATH
8885 # With GCC up to 2.95.x, collect2 would create an import file
8886 # for dependence libraries. The import file would start with
8887 # the line `#! .'. This would cause the generated library to
8888 # depend on `.', always an invalid library. This was fixed in
8889 # development snapshots of GCC prior to 3.0.
8891 aix4 | aix4.[01] | aix4.[01].*)
8892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8894 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8901 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8902 # soname into executable. Probably we can add versioning support to
8903 # collect2, so additional links can be useful in future.
8904 if test "$aix_use_runtimelinking" = yes; then
8905 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8906 # instead of lib<name>.a to let people know that these are not
8907 # typical AIX shared libraries.
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 # We preserve .a as extension for shared libraries through AIX4.2
8911 # and later when we are not doing run time linking.
8912 library_names_spec='${libname}${release}.a $libname.a'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8915 shlibpath_var=LIBPATH
8920 library_names_spec='$libname.ixlibrary $libname.a'
8921 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8922 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'
8926 library_names_spec='${libname}${shared_ext}'
8927 dynamic_linker="$host_os ld.so"
8928 shlibpath_var=LIBRARY_PATH
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8940 # the default ld.so.conf also contains /usr/contrib/lib and
8941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8942 # libtool to hard-code these into programs
8945 cygwin* | mingw* | pw32*)
8946 version_type=windows
8951 case $GCC,$host_os in
8952 yes,cygwin* | yes,mingw* | yes,pw32*)
8953 library_names_spec='$libname.dll.a'
8954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8955 postinstall_cmds='base_file=`basename \${file}`~
8956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8957 dldir=$destdir/`dirname \$dlpath`~
8958 test -d \$dldir || mkdir -p \$dldir~
8959 $install_prog $dir/$dlname \$dldir/$dlname~
8960 chmod a+x \$dldir/$dlname'
8961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8962 dlpath=$dir/\$dldll~
8964 shlibpath_overrides_runpath=yes
8968 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8969 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8973 # MinGW DLLs use traditional 'lib' prefix
8974 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8976 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8977 # It is most probably a Windows format PATH printed by
8978 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8979 # path with ; separators, and with drive letters. We can handle the
8980 # drive letters (cygwin fileutils understands them), so leave them,
8981 # especially as we might pass files found there to a mingw objdump,
8982 # which wouldn't understand a cygwinified path. Ahh.
8983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8989 # pw32 DLLs use 'pw' prefix rather than 'lib'
8990 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8999 dynamic_linker='Win32 ld.exe'
9000 # FIXME: first we should search . and the directory the executable is in
9004 darwin* | rhapsody*)
9005 dynamic_linker="$host_os dyld"
9009 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9010 soname_spec='${libname}${release}${major}$shared_ext'
9011 shlibpath_overrides_runpath=yes
9012 shlibpath_var=DYLD_LIBRARY_PATH
9013 shrext_cmds='.dylib'
9014 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9015 if test "$GCC" = yes; then
9016 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"`
9018 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 shlibpath_var=LD_LIBRARY_PATH
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9045 dynamic_linker='GNU ld.so'
9048 freebsd* | dragonfly*)
9049 # DragonFly does not have aout. When/if they implement a new
9050 # versioning mechanism, adjust this.
9051 if test -x /usr/bin/objformat; then
9052 objformat=`/usr/bin/objformat`
9055 freebsd[123]*) objformat=aout ;;
9059 version_type=freebsd-$objformat
9060 case $version_type in
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9071 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes
9076 freebsd3.[01]* | freebsdelf3.[01]*)
9077 shlibpath_overrides_runpath=yes
9078 hardcode_into_libs=yes
9080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9082 shlibpath_overrides_runpath=no
9083 hardcode_into_libs=yes
9085 freebsd*) # from 4.6 on
9086 shlibpath_overrides_runpath=yes
9087 hardcode_into_libs=yes
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 hardcode_into_libs=yes
9102 hpux9* | hpux10* | hpux11*)
9103 # Give a soname corresponding to the major version so that dld.sl refuses to
9104 # link against other versions.
9111 hardcode_into_libs=yes
9112 dynamic_linker="$host_os dld.so"
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 if test "X$HPUX_IA64_MODE" = X32; then
9118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9126 hardcode_into_libs=yes
9127 dynamic_linker="$host_os dld.sl"
9128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9137 dynamic_linker="$host_os dld.sl"
9138 shlibpath_var=SHLIB_PATH
9139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9145 postinstall_cmds='chmod 555 $lib'
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=no
9157 hardcode_into_libs=yes
9160 irix5* | irix6* | nonstopux*)
9162 nonstopux*) version_type=nonstopux ;;
9164 if test "$lt_cv_prog_gnu_ld" = yes; then
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9175 irix5* | nonstopux*)
9179 case $LD in # libtool.m4 will add one of these switches to LD
9180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9181 libsuff= shlibsuff= libmagic=32-bit;;
9182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9183 libsuff=32 shlibsuff=N32 libmagic=N32;;
9184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9186 *) libsuff= shlibsuff= libmagic=never-match;;
9190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9191 shlibpath_overrides_runpath=no
9192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9194 hardcode_into_libs=yes
9197 # No shared lib support for Linux oldld, aout, or coff.
9198 linux*oldld* | linux*aout* | linux*coff*)
9202 # This must be Linux ELF.
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=no
9212 # This implies no fast_install, which is unacceptable.
9213 # Some rework will be needed to allow for fast_install
9214 # before this can be enabled.
9215 hardcode_into_libs=yes
9217 # Append ld.so.conf contents to the search path
9218 if test -f /etc/ld.so.conf; then
9219 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' ' '`
9220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9223 # We used to test for /lib/ld.so.1 and disable shared libraries on
9224 # powerpc, because MkLinux only supported shared libraries with the
9225 # GNU dynamic linker. Since this was broken with cross compilers,
9226 # most powerpc-linux boxes support dynamic linking these days and
9227 # people can always --disable-shared, the test was removed, and we
9228 # assume the GNU/Linux dynamic linker is in use.
9229 dynamic_linker='GNU/Linux ld.so'
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=no
9240 hardcode_into_libs=yes
9241 dynamic_linker='GNU ld.so'
9248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9251 dynamic_linker='NetBSD (a.out) ld.so'
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 dynamic_linker='NetBSD ld.elf_so'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9259 hardcode_into_libs=yes
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=yes
9281 sys_lib_dlsearch_path_spec="/usr/lib"
9283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9286 *) need_version=no ;;
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9293 openbsd2.[89] | openbsd2.[89].*)
9294 shlibpath_overrides_runpath=no
9297 shlibpath_overrides_runpath=yes
9301 shlibpath_overrides_runpath=yes
9306 libname_spec='$name'
9309 library_names_spec='$libname${shared_ext} $libname.a'
9310 dynamic_linker='OS/2 ld.exe'
9311 shlibpath_var=LIBPATH
9314 osf3* | osf4* | osf5*)
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 shlibpath_overrides_runpath=yes
9333 hardcode_into_libs=yes
9334 # ldd complains unless libraries are executable
9335 postinstall_cmds='chmod +x $lib'
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=yes
9344 if test "$with_gnu_ld" = yes; then
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 case $host_vendor in
9357 shlibpath_overrides_runpath=no
9359 export_dynamic_flag_spec='${wl}-Blargedynsym'
9360 runpath_var=LD_RUN_PATH
9368 shlibpath_overrides_runpath=no
9369 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9375 if test -d /usr/nec ;then
9377 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9378 soname_spec='$libname${shared_ext}.$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9384 version_type=freebsd-elf
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 hardcode_into_libs=yes
9391 if test "$with_gnu_ld" = yes; then
9392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9393 shlibpath_overrides_runpath=no
9395 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9396 shlibpath_overrides_runpath=yes
9399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9403 sys_lib_dlsearch_path_spec='/usr/lib'
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9417 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9418 echo "${ECHO_T}$dynamic_linker" >&6; }
9419 test "$dynamic_linker" = no && can_build_shared=no
9421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9422 if test "$GCC" = yes; then
9423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9427 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9428 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9429 if test "${libltdl_cv_shlibext+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 eval libltdl_cv_shlibext=$shrext_cmds
9437 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9438 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9439 if test -n "$libltdl_cv_shlibext"; then
9441 cat >>confdefs.h <<_ACEOF
9442 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9448 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9449 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9450 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 libltdl_cv_shlibpath_var="$shlibpath_var"
9455 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9456 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9457 if test -n "$libltdl_cv_shlibpath_var"; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9466 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9467 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9468 if test "${libltdl_cv_sys_search_path+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9473 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9474 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9475 if test -n "$libltdl_cv_sys_search_path"; then
9477 for dir in $libltdl_cv_sys_search_path; do
9478 if test -z "$sys_search_path"; then
9479 sys_search_path="$dir"
9481 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9485 cat >>confdefs.h <<_ACEOF
9486 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9491 { echo "$as_me:$LINENO: checking for objdir" >&5
9492 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9493 if test "${libltdl_cv_objdir+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 libltdl_cv_objdir="$objdir"
9497 if test -n "$objdir"; then
9500 rm -f .libs 2>/dev/null
9501 mkdir .libs 2>/dev/null
9502 if test -d .libs; then
9503 libltdl_cv_objdir=.libs
9505 # MS-DOS does not allow filenames that begin with a dot.
9506 libltdl_cv_objdir=_libs
9508 rmdir .libs 2>/dev/null
9512 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9513 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9515 cat >>confdefs.h <<_ACEOF
9516 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9524 # Check for command to grab the raw symbol name followed by C symbol from nm.
9525 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9526 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9527 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 # These are sane defaults that work on at least a few old systems.
9532 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9534 # Character class describing NM global symbol codes.
9535 symcode='[BCDEGRST]'
9537 # Regexp to match symbols that can be accessed directly from C.
9538 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9540 # Transform an extracted symbol line into a proper C declaration
9541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9543 # Transform an extracted symbol line into symbol name and symbol address
9544 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'"
9546 # Define system-specific variables.
9551 cygwin* | mingw* | pw32*)
9552 symcode='[ABCDGISTW]'
9554 hpux*) # Its linker distinguishes data from code symbols
9555 if test "$host_cpu" = ia64; then
9556 symcode='[ABCDEGRST]'
9558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9559 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'"
9562 if test "$host_cpu" = ia64; then
9563 symcode='[ABCDGIRSTW]'
9564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9565 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'"
9569 symcode='[BCDEGRST]'
9572 symcode='[BCDEGQRST]'
9583 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9591 # Handle CRLF in mingw tool chain
9595 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9599 # If we're using GNU nm, then use its standard symbol codes.
9600 case `$NM -V 2>&1` in
9601 *GNU* | *'with BFD'*)
9602 symcode='[ABCDGIRSTW]' ;;
9605 # Try without a prefix undercore, then with it.
9606 for ac_symprfx in "" "_"; do
9608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9609 symxfrm="\\1 $ac_symprfx\\2 \\2"
9611 # Write the raw and C identifiers.
9612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9614 # Check to see that the pipe works correctly.
9618 cat > conftest.$ac_ext <<EOF
9623 void nm_test_func(){}
9627 int main(){nm_test_var='a';nm_test_func();return(0);}
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; then
9635 # Now try to grab the symbols.
9637 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9638 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && test -s "$nlist"; then
9642 # Try sorting and uniquifying the output.
9643 if sort "$nlist" | uniq > "$nlist"T; then
9644 mv -f "$nlist"T "$nlist"
9649 # Make sure that we snagged all the symbols we need.
9650 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9651 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9652 cat <<EOF > conftest.$ac_ext
9658 # Now generate the symbol file.
9659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9661 cat <<EOF >> conftest.$ac_ext
9662 #if defined (__STDC__) && __STDC__
9663 # define lt_ptr_t void *
9665 # define lt_ptr_t char *
9669 /* The mapping between symbol names and symbols. */
9674 lt_preloaded_symbols[] =
9677 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9678 cat <<\EOF >> conftest.$ac_ext
9686 # Now try linking the two files.
9687 mv conftest.$ac_objext conftstm.$ac_objext
9688 lt_save_LIBS="$LIBS"
9689 lt_save_CFLAGS="$CFLAGS"
9690 LIBS="conftstm.$ac_objext"
9691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693 (eval $ac_link) 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9699 LIBS="$lt_save_LIBS"
9700 CFLAGS="$lt_save_CFLAGS"
9702 echo "cannot find nm_test_func in $nlist" >&5
9705 echo "cannot find nm_test_var in $nlist" >&5
9708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9711 echo "$progname: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9714 rm -f conftest* conftst*
9716 # Do not use the global_symbol_pipe unless it works.
9717 if test "$pipe_works" = yes; then
9720 lt_cv_sys_global_symbol_pipe=
9726 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9727 lt_cv_sys_global_symbol_to_cdecl=
9729 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9730 { echo "$as_me:$LINENO: result: failed" >&5
9731 echo "${ECHO_T}failed" >&6; }
9733 { echo "$as_me:$LINENO: result: ok" >&5
9734 echo "${ECHO_T}ok" >&6; }
9738 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9739 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9740 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9744 libltdl_cv_preloaded_symbols=yes
9746 libltdl_cv_preloaded_symbols=no
9750 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9751 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9752 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_PRELOADED_SYMBOLS 1
9763 ac_cpp='$CPP $CPPFLAGS'
9764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9769 { echo "$as_me:$LINENO: checking for shl_load" >&5
9770 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9771 if test "${ac_cv_func_shl_load+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9782 #define shl_load innocuous_shl_load
9784 /* System header to define __stub macros and hopefully few prototypes,
9785 which can conflict with char shl_load (); below.
9786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9787 <limits.h> exists even on freestanding compilers. */
9790 # include <limits.h>
9792 # include <assert.h>
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9804 /* The GNU C library defines this for functions which it implements
9805 to always fail with ENOSYS. Some functions are actually named
9806 something starting with __ and the normal name is an alias. */
9807 #if defined __stub_shl_load || defined __stub___shl_load
9819 rm -f conftest.$ac_objext conftest$ac_exeext
9820 if { (ac_try="$ac_link"
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_link") 2>conftest.er1
9828 grep -v '^ *+' conftest.er1 >conftest.err
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try='test -s conftest$ac_exeext'
9844 { (case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_try") 2>&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_func_shl_load=yes
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_func_shl_load=no
9861 rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9864 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9866 if test $ac_cv_func_shl_load = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_SHL_LOAD 1
9873 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9874 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 ac_check_lib_save_LIBS=$LIBS
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9887 /* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_lib_dld_shl_load=yes
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 ac_cv_lib_dld_shl_load=no
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9950 if test $ac_cv_lib_dld_shl_load = yes; then
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_SHL_LOAD 1
9956 LIBADD_DL="$LIBADD_DL -ldld"
9958 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_check_lib_save_LIBS=$LIBS
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_dl_dlopen=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_lib_dl_dlopen=no
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10034 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10035 if test $ac_cv_lib_dl_dlopen = yes; then
10037 cat >>confdefs.h <<\_ACEOF
10038 #define HAVE_LIBDL 1
10041 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 # include <dlfcn.h>
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (ac_try="$ac_link"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_link") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1 >conftest.err
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_LIBDL 1
10099 libltdl_cv_func_dlopen="yes"
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10104 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10105 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10106 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-lsvld $LIBS"
10111 cat >conftest.$ac_ext <<_ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_svld_dlopen=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_cv_lib_svld_dlopen=no
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10181 if test $ac_cv_lib_svld_dlopen = yes; then
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_LIBDL 1
10187 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10189 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 ac_check_lib_save_LIBS=$LIBS
10196 cat >conftest.$ac_ext <<_ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10213 return dld_link ();
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
10227 grep -v '^ *+' conftest.er1 >conftest.err
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10233 { (case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_try") 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest$ac_exeext'
10243 { (case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_try") 2>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 ac_cv_lib_dld_dld_link=yes
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ac_cv_lib_dld_dld_link=no
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10265 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10266 if test $ac_cv_lib_dld_dld_link = yes; then
10268 cat >>confdefs.h <<\_ACEOF
10272 LIBADD_DL="$LIBADD_DL -ldld"
10274 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10275 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10276 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10287 #define _dyld_func_lookup innocuous__dyld_func_lookup
10289 /* System header to define __stub macros and hopefully few prototypes,
10290 which can conflict with char _dyld_func_lookup (); below.
10291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292 <limits.h> exists even on freestanding compilers. */
10295 # include <limits.h>
10297 # include <assert.h>
10300 #undef _dyld_func_lookup
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10308 char _dyld_func_lookup ();
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10319 return _dyld_func_lookup ();
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339 { (case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_try") 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_func__dyld_func_lookup=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_cv_func__dyld_func_lookup=no
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10369 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10370 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10371 if test $ac_cv_func__dyld_func_lookup = yes; then
10373 cat >>confdefs.h <<\_ACEOF
10374 #define HAVE_DYLD 1
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10400 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10402 lt_save_LIBS="$LIBS"
10403 LIBS="$LIBS $LIBADD_DL"
10405 for ac_func in dlerror
10407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10421 #define $ac_func innocuous_$ac_func
10423 /* System header to define __stub macros and hopefully few prototypes,
10424 which can conflict with char $ac_func (); below.
10425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10426 <limits.h> exists even on freestanding compilers. */
10429 # include <limits.h>
10431 # include <assert.h>
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10443 /* The GNU C library defines this for functions which it implements
10444 to always fail with ENOSYS. Some functions are actually named
10445 something starting with __ and the normal name is an alias. */
10446 #if defined __stub_$ac_func || defined __stub___$ac_func
10453 return $ac_func ();
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
10467 grep -v '^ *+' conftest.er1 >conftest.err
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } &&
10472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10473 { (case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_try") 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest$ac_exeext'
10483 { (case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_try") 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 eval "$as_ac_var=yes"
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 eval "$as_ac_var=no"
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10503 ac_res=`eval echo '${'$as_ac_var'}'`
10504 { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10506 if test `eval echo '${'$as_ac_var'}'` = yes; then
10507 cat >>confdefs.h <<_ACEOF
10508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10514 LIBS="$lt_save_LIBS"
10517 ac_cpp='$CPP $CPPFLAGS'
10518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10524 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10525 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10526 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 ac_cv_sys_symbol_underscore=no
10530 cat > conftest.$ac_ext <<EOF
10531 void nm_test_func(){}
10532 int main(){nm_test_func;return 0;}
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; then
10539 # Now try to grab the symbols.
10540 ac_nlist=conftest.nm
10541 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10542 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && test -s "$ac_nlist"; then
10546 # See whether the symbols have a leading underscore.
10547 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10548 ac_cv_sys_symbol_underscore=yes
10550 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10553 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10557 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10560 echo "configure: failed program was:" >&5
10566 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10567 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10570 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10571 if test x"$libltdl_cv_func_dlopen" = xyes ||
10572 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10573 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10574 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10575 if test "${libltdl_cv_need_uscore+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 libltdl_cv_need_uscore=unknown
10580 LIBS="$LIBS $LIBADD_DL"
10581 if test "$cross_compiling" = yes; then :
10582 libltdl_cv_need_uscore=cross
10584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10585 lt_status=$lt_dlunknown
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10597 # define LT_DLGLOBAL RTLD_GLOBAL
10600 # define LT_DLGLOBAL DL_GLOBAL
10602 # define LT_DLGLOBAL 0
10606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10607 find out it does not work in some platform. */
10608 #ifndef LT_DLLAZY_OR_NOW
10610 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10613 # define LT_DLLAZY_OR_NOW DL_LAZY
10616 # define LT_DLLAZY_OR_NOW RTLD_NOW
10619 # define LT_DLLAZY_OR_NOW DL_NOW
10621 # define LT_DLLAZY_OR_NOW 0
10629 extern "C" void exit (int);
10632 void fnord() { int i=42;}
10635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10636 int status = $lt_dlunknown;
10640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10642 /* dlclose (self); */
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10655 (./conftest; exit; ) >&5 2>/dev/null
10657 case x$lt_status in
10658 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10659 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10660 x$lt_dlunknown|x*) ;;
10663 # compilation failed
10672 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10673 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10677 if test x"$libltdl_cv_need_uscore" = xyes; then
10679 cat >>confdefs.h <<\_ACEOF
10680 #define NEED_USCORE 1
10686 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10687 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10688 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 # PORTME does your system automatically load deplibs for dlopen?
10692 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10693 # For now, we just catch OSes we know something about -- in the
10694 # future, we'll try test this programmatically.
10695 libltdl_cv_sys_dlopen_deplibs=unknown
10697 aix3*|aix4.1.*|aix4.2.*)
10698 # Unknown whether this is true for these versions of AIX, but
10699 # we want this `case' here to explicitly catch those versions.
10700 libltdl_cv_sys_dlopen_deplibs=unknown
10703 libltdl_cv_sys_dlopen_deplibs=yes
10706 # Assuming the user has installed a libdl from somewhere, this is true
10707 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10708 libltdl_cv_sys_dlopen_deplibs=yes
10710 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10711 # GNU and its variants, using gnu ld.so (Glibc)
10712 libltdl_cv_sys_dlopen_deplibs=yes
10715 libltdl_cv_sys_dlopen_deplibs=yes
10718 libltdl_cv_sys_dlopen_deplibs=yes
10720 irix[12345]*|irix6.[01]*)
10721 # Catch all versions of IRIX before 6.2, and indicate that we don't
10722 # know how it worked for any of those versions.
10723 libltdl_cv_sys_dlopen_deplibs=unknown
10726 # The case above catches anything before 6.2, and it's known that
10727 # at 6.2 and later dlopen does load deplibs.
10728 libltdl_cv_sys_dlopen_deplibs=yes
10731 libltdl_cv_sys_dlopen_deplibs=yes
10734 libltdl_cv_sys_dlopen_deplibs=yes
10737 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10738 # it did *not* use an RPATH in a shared library to find objects the
10739 # library depends on, so we explictly say `no'.
10740 libltdl_cv_sys_dlopen_deplibs=no
10742 osf5.0|osf5.0a|osf5.1)
10743 # dlopen *does* load deplibs and with the right loader patch applied
10744 # it even uses RPATH in a shared library to search for shared objects
10745 # that the library depends on, but there's no easy way to know if that
10746 # patch is installed. Since this is the case, all we can really
10747 # say is unknown -- it depends on the patch being installed. If
10748 # it is, this changes to `yes'. Without it, it would be `no'.
10749 libltdl_cv_sys_dlopen_deplibs=unknown
10752 # the two cases above should catch all versions of osf <= 5.1. Read
10753 # the comments above for what we know about them.
10754 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10755 # is used to find them so we can finally say `yes'.
10756 libltdl_cv_sys_dlopen_deplibs=yes
10759 libltdl_cv_sys_dlopen_deplibs=yes
10761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10762 libltdl_cv_sys_dlopen_deplibs=yes
10767 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10768 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10769 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10771 cat >>confdefs.h <<\_ACEOF
10772 #define LTDL_DLOPEN_DEPLIBS 1
10778 for ac_header in argz.h
10780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 ac_res=`eval echo '${'$as_ac_Header'}'`
10788 { echo "$as_me:$LINENO: result: $ac_res" >&5
10789 echo "${ECHO_T}$ac_res" >&6; }
10791 # Is the header compilable?
10792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10793 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10801 #include <$ac_header>
10803 rm -f conftest.$ac_objext
10804 if { (ac_try="$ac_compile"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_compile") 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818 { (case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_try") 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest.$ac_objext'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_header_compiler=yes
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_header_compiler=no
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847 echo "${ECHO_T}$ac_header_compiler" >&6; }
10849 # Is the header present?
10850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <$ac_header>
10860 if { (ac_try="$ac_cpp conftest.$ac_ext"
10861 case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10868 grep -v '^ *+' conftest.er1 >conftest.err
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } >/dev/null; then
10873 if test -s conftest.err; then
10874 ac_cpp_err=$ac_c_preproc_warn_flag
10875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10882 if test -z "$ac_cpp_err"; then
10883 ac_header_preproc=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_header_preproc=no
10891 rm -f conftest.err conftest.$ac_ext
10892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 echo "${ECHO_T}$ac_header_preproc" >&6; }
10895 # So? What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc=yes
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10918 ## ----------------------------------- ##
10919 ## Report this to llvmbugs@cs.uiuc.edu ##
10920 ## ----------------------------------- ##
10922 ) | sed "s/^/$as_me: WARNING: /" >&2
10925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 eval "$as_ac_Header=\$ac_header_preproc"
10932 ac_res=`eval echo '${'$as_ac_Header'}'`
10933 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934 echo "${ECHO_T}$ac_res" >&6; }
10937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10947 { echo "$as_me:$LINENO: checking for error_t" >&5
10948 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10949 if test "${ac_cv_type_error_t+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 cat >conftest.$ac_ext <<_ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10962 typedef error_t ac__type_new_;
10966 if ((ac__type_new_ *) 0)
10968 if (sizeof (ac__type_new_))
10974 rm -f conftest.$ac_objext
10975 if { (ac_try="$ac_compile"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_compile") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest.$ac_objext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_type_error_t=yes
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_cv_type_error_t=no
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11019 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11020 if test $ac_cv_type_error_t = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_ERROR_T 1
11029 cat >>confdefs.h <<\_ACEOF
11030 #define error_t int
11041 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11057 #define $ac_func innocuous_$ac_func
11059 /* System header to define __stub macros and hopefully few prototypes,
11060 which can conflict with char $ac_func (); below.
11061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062 <limits.h> exists even on freestanding compilers. */
11065 # include <limits.h>
11067 # include <assert.h>
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11079 /* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
11082 #if defined __stub_$ac_func || defined __stub___$ac_func
11089 return $ac_func ();
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (ac_try="$ac_link"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_link") 2>conftest.er1
11103 grep -v '^ *+' conftest.er1 >conftest.err
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
11108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11109 { (case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_try") 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 eval "$as_ac_var=yes"
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 eval "$as_ac_var=no"
11136 rm -f core conftest.err conftest.$ac_objext \
11137 conftest$ac_exeext conftest.$ac_ext
11139 ac_res=`eval echo '${'$as_ac_var'}'`
11140 { echo "$as_me:$LINENO: result: $ac_res" >&5
11141 echo "${ECHO_T}$ac_res" >&6; }
11142 if test `eval echo '${'$as_ac_var'}'` = yes; then
11143 cat >>confdefs.h <<_ACEOF
11144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11177 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 ac_res=`eval echo '${'$as_ac_Header'}'`
11188 { echo "$as_me:$LINENO: result: $ac_res" >&5
11189 echo "${ECHO_T}$ac_res" >&6; }
11191 # Is the header compilable?
11192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11193 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11201 #include <$ac_header>
11203 rm -f conftest.$ac_objext
11204 if { (ac_try="$ac_compile"
11205 case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11212 grep -v '^ *+' conftest.er1 >conftest.err
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11218 { (case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_try") 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; } &&
11227 { ac_try='test -s conftest.$ac_objext'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_header_compiler=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_header_compiler=no
11245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11247 echo "${ECHO_T}$ac_header_compiler" >&6; }
11249 # Is the header present?
11250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11252 cat >conftest.$ac_ext <<_ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 #include <$ac_header>
11260 if { (ac_try="$ac_cpp conftest.$ac_ext"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11268 grep -v '^ *+' conftest.er1 >conftest.err
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } >/dev/null; then
11273 if test -s conftest.err; then
11274 ac_cpp_err=$ac_c_preproc_warn_flag
11275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11282 if test -z "$ac_cpp_err"; then
11283 ac_header_preproc=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_header_preproc=no
11291 rm -f conftest.err conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11293 echo "${ECHO_T}$ac_header_preproc" >&6; }
11295 # So? What about this header?
11296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11302 ac_header_preproc=yes
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11318 ## ----------------------------------- ##
11319 ## Report this to llvmbugs@cs.uiuc.edu ##
11320 ## ----------------------------------- ##
11322 ) | sed "s/^/$as_me: WARNING: /" >&2
11325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 eval "$as_ac_Header=\$ac_header_preproc"
11332 ac_res=`eval echo '${'$as_ac_Header'}'`
11333 { echo "$as_me:$LINENO: result: $ac_res" >&5
11334 echo "${ECHO_T}$ac_res" >&6; }
11337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11338 cat >>confdefs.h <<_ACEOF
11339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11363 # Is the header compilable?
11364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11373 #include <$ac_header>
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_compiler=no
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <$ac_header>
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } >/dev/null; then
11445 if test -s conftest.err; then
11446 ac_cpp_err=$ac_c_preproc_warn_flag
11447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11454 if test -z "$ac_cpp_err"; then
11455 ac_header_preproc=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_preproc=no
11463 rm -f conftest.err conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6; }
11467 # So? What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11474 ac_header_preproc=yes
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11490 ## ----------------------------------- ##
11491 ## Report this to llvmbugs@cs.uiuc.edu ##
11492 ## ----------------------------------- ##
11494 ) | sed "s/^/$as_me: WARNING: /" >&2
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 eval "$as_ac_Header=\$ac_header_preproc"
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11520 for ac_header in string.h strings.h
11522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 ac_res=`eval echo '${'$as_ac_Header'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11533 # Is the header compilable?
11534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11535 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11543 #include <$ac_header>
11545 rm -f conftest.$ac_objext
11546 if { (ac_try="$ac_compile"
11547 case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_compile") 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560 { (case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_try") 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_header_compiler=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_compiler=no
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6; }
11591 # Is the header present?
11592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11594 cat >conftest.$ac_ext <<_ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <$ac_header>
11602 if { (ac_try="$ac_cpp conftest.$ac_ext"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11610 grep -v '^ *+' conftest.er1 >conftest.err
11612 cat conftest.err >&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } >/dev/null; then
11615 if test -s conftest.err; then
11616 ac_cpp_err=$ac_c_preproc_warn_flag
11617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11624 if test -z "$ac_cpp_err"; then
11625 ac_header_preproc=yes
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_header_preproc=no
11633 rm -f conftest.err conftest.$ac_ext
11634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635 echo "${ECHO_T}$ac_header_preproc" >&6; }
11637 # So? What about this header?
11638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11644 ac_header_preproc=yes
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11660 ## ----------------------------------- ##
11661 ## Report this to llvmbugs@cs.uiuc.edu ##
11662 ## ----------------------------------- ##
11664 ) | sed "s/^/$as_me: WARNING: /" >&2
11667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 eval "$as_ac_Header=\$ac_header_preproc"
11674 ac_res=`eval echo '${'$as_ac_Header'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11691 for ac_func in strchr index
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 cat >conftest.$ac_ext <<_ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11707 #define $ac_func innocuous_$ac_func
11709 /* System header to define __stub macros and hopefully few prototypes,
11710 which can conflict with char $ac_func (); below.
11711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712 <limits.h> exists even on freestanding compilers. */
11715 # include <limits.h>
11717 # include <assert.h>
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11729 /* The GNU C library defines this for functions which it implements
11730 to always fail with ENOSYS. Some functions are actually named
11731 something starting with __ and the normal name is an alias. */
11732 #if defined __stub_$ac_func || defined __stub___$ac_func
11739 return $ac_func ();
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_link") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_try") 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 eval "$as_ac_var=yes"
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 eval "$as_ac_var=no"
11786 rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11789 ac_res=`eval echo '${'$as_ac_var'}'`
11790 { echo "$as_me:$LINENO: result: $ac_res" >&5
11791 echo "${ECHO_T}$ac_res" >&6; }
11792 if test `eval echo '${'$as_ac_var'}'` = yes; then
11793 cat >>confdefs.h <<_ACEOF
11794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11802 for ac_func in strrchr rindex
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11818 #define $ac_func innocuous_$ac_func
11820 /* System header to define __stub macros and hopefully few prototypes,
11821 which can conflict with char $ac_func (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11826 # include <limits.h>
11828 # include <assert.h>
11833 /* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
11840 /* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843 #if defined __stub_$ac_func || defined __stub___$ac_func
11850 return $ac_func ();
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (ac_try="$ac_link"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_link") 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11870 { (case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_try") 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_try") 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 eval "$as_ac_var=yes"
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 eval "$as_ac_var=no"
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11900 ac_res=`eval echo '${'$as_ac_var'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 if test `eval echo '${'$as_ac_var'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11913 for ac_func in memcpy bcopy
11915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11929 #define $ac_func innocuous_$ac_func
11931 /* System header to define __stub macros and hopefully few prototypes,
11932 which can conflict with char $ac_func (); below.
11933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 <limits.h> exists even on freestanding compilers. */
11937 # include <limits.h>
11939 # include <assert.h>
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11951 /* The GNU C library defines this for functions which it implements
11952 to always fail with ENOSYS. Some functions are actually named
11953 something starting with __ and the normal name is an alias. */
11954 #if defined __stub_$ac_func || defined __stub___$ac_func
11961 return $ac_func ();
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_link") 2>conftest.er1
11975 grep -v '^ *+' conftest.er1 >conftest.err
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 eval "$as_ac_var=yes"
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 eval "$as_ac_var=no"
12008 rm -f core conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12011 ac_res=`eval echo '${'$as_ac_var'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12014 if test `eval echo '${'$as_ac_var'}'` = yes; then
12015 cat >>confdefs.h <<_ACEOF
12016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12024 for ac_func in memmove strcmp
12026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040 #define $ac_func innocuous_$ac_func
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char $ac_func (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12048 # include <limits.h>
12050 # include <assert.h>
12055 /* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12062 /* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
12065 #if defined __stub_$ac_func || defined __stub___$ac_func
12072 return $ac_func ();
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (ac_try="$ac_link"
12079 case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>conftest.er1
12086 grep -v '^ *+' conftest.er1 >conftest.err
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 eval "$as_ac_var=yes"
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12116 eval "$as_ac_var=no"
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12122 ac_res=`eval echo '${'$as_ac_var'}'`
12123 { echo "$as_me:$LINENO: result: $ac_res" >&5
12124 echo "${ECHO_T}$ac_res" >&6; }
12125 if test `eval echo '${'$as_ac_var'}'` = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12136 for ac_func in closedir opendir readdir
12138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 cat >conftest.$ac_ext <<_ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12152 #define $ac_func innocuous_$ac_func
12154 /* System header to define __stub macros and hopefully few prototypes,
12155 which can conflict with char $ac_func (); below.
12156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157 <limits.h> exists even on freestanding compilers. */
12160 # include <limits.h>
12162 # include <assert.h>
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12174 /* The GNU C library defines this for functions which it implements
12175 to always fail with ENOSYS. Some functions are actually named
12176 something starting with __ and the normal name is an alias. */
12177 #if defined __stub_$ac_func || defined __stub___$ac_func
12184 return $ac_func ();
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (ac_try="$ac_link"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_link") 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 eval "$as_ac_var=yes"
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 eval "$as_ac_var=no"
12231 rm -f core conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12234 ac_res=`eval echo '${'$as_ac_var'}'`
12235 { echo "$as_me:$LINENO: result: $ac_res" >&5
12236 echo "${ECHO_T}$ac_res" >&6; }
12237 if test `eval echo '${'$as_ac_var'}'` = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 # Check whether --enable-shared was given.
12247 if test "${enable_shared+set}" = set; then
12248 enableval=$enable_shared; p=${PACKAGE-default}
12250 yes) enable_shared=yes ;;
12251 no) enable_shared=no ;;
12254 # Look at the argument we got. We use all the common list separators.
12255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256 for pkg in $enableval; do
12258 if test "X$pkg" = "X$p"; then
12270 # Check whether --enable-static was given.
12271 if test "${enable_static+set}" = set; then
12272 enableval=$enable_static; p=${PACKAGE-default}
12274 yes) enable_static=yes ;;
12275 no) enable_static=no ;;
12278 # Look at the argument we got. We use all the common list separators.
12279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12280 for pkg in $enableval; do
12282 if test "X$pkg" = "X$p"; then
12294 # Check whether --enable-fast-install was given.
12295 if test "${enable_fast_install+set}" = set; then
12296 enableval=$enable_fast_install; p=${PACKAGE-default}
12298 yes) enable_fast_install=yes ;;
12299 no) enable_fast_install=no ;;
12301 enable_fast_install=no
12302 # Look at the argument we got. We use all the common list separators.
12303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12304 for pkg in $enableval; do
12306 if test "X$pkg" = "X$p"; then
12307 enable_fast_install=yes
12314 enable_fast_install=yes
12318 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12319 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12320 if test "${lt_cv_path_SED+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 # Loop through the user's path and test for sed and gsed.
12324 # Then use that list of sed's as ones to test for truncation.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12329 test -z "$as_dir" && as_dir=.
12330 for lt_ac_prog in sed gsed; do
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12333 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12340 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12341 # along with /bin/sed that truncates output.
12342 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12343 test ! -f $lt_ac_sed && continue
12344 cat /dev/null > conftest.in
12346 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12347 # Check for GNU sed and select it if it is found.
12348 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12349 lt_cv_path_SED=$lt_ac_sed
12353 cat conftest.in conftest.in >conftest.tmp
12354 mv conftest.tmp conftest.in
12355 cp conftest.in conftest.nl
12357 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12358 cmp -s conftest.out conftest.nl || break
12359 # 10000 chars as input seems more than enough
12360 test $lt_ac_count -gt 10 && break
12361 lt_ac_count=`expr $lt_ac_count + 1`
12362 if test $lt_ac_count -gt $lt_ac_max; then
12363 lt_ac_max=$lt_ac_count
12364 lt_cv_path_SED=$lt_ac_sed
12371 SED=$lt_cv_path_SED
12372 { echo "$as_me:$LINENO: result: $SED" >&5
12373 echo "${ECHO_T}$SED" >&6; }
12376 # Check whether --with-gnu-ld was given.
12377 if test "${with_gnu_ld+set}" = set; then
12378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12384 if test "$GCC" = yes; then
12385 # Check if gcc -print-prog-name=ld gives a path.
12386 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12387 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12390 # gcc leaves a trailing carriage return which upsets mingw
12391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12396 # Accept absolute paths.
12398 re_direlt='/[^/][^/]*/\.\./'
12399 # Canonicalize the pathname of ld
12400 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12401 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12402 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12404 test -z "$LD" && LD="$ac_prog"
12407 # If it fails, then pretend we aren't using GCC.
12411 # If it is relative, then search for the first ld in PATH.
12412 with_gnu_ld=unknown
12415 elif test "$with_gnu_ld" = yes; then
12416 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12417 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12419 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12420 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12422 if test "${lt_cv_path_LD+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 if test -z "$LD"; then
12426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12427 for ac_dir in $PATH; do
12429 test -z "$ac_dir" && ac_dir=.
12430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12431 lt_cv_path_LD="$ac_dir/$ac_prog"
12432 # Check to see if the program is GNU ld. I'd rather use --version,
12433 # but apparently some variants of GNU ld only accept -v.
12434 # Break only if it was the GNU/non-GNU ld that we prefer.
12435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12436 *GNU* | *'with BFD'*)
12437 test "$with_gnu_ld" != no && break
12440 test "$with_gnu_ld" != yes && break
12447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12451 LD="$lt_cv_path_LD"
12452 if test -n "$LD"; then
12453 { echo "$as_me:$LINENO: result: $LD" >&5
12454 echo "${ECHO_T}$LD" >&6; }
12456 { echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6; }
12459 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12460 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12461 { (exit 1); exit 1; }; }
12462 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12463 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12464 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12468 case `$LD -v 2>&1 </dev/null` in
12469 *GNU* | *'with BFD'*)
12470 lt_cv_prog_gnu_ld=yes
12473 lt_cv_prog_gnu_ld=no
12477 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12478 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12479 with_gnu_ld=$lt_cv_prog_gnu_ld
12482 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12483 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12484 if test "${lt_cv_ld_reload_flag+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 lt_cv_ld_reload_flag='-r'
12489 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12490 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12491 reload_flag=$lt_cv_ld_reload_flag
12492 case $reload_flag in
12494 *) reload_flag=" $reload_flag" ;;
12496 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12499 if test "$GCC" = yes; then
12500 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12507 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12508 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12509 if test "${lt_cv_deplibs_check_method+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 lt_cv_file_magic_cmd='$MAGIC_CMD'
12513 lt_cv_file_magic_test_file=
12514 lt_cv_deplibs_check_method='unknown'
12515 # Need to set the preceding variable on all platforms that support
12516 # interlibrary dependencies.
12517 # 'none' -- dependencies not supported.
12518 # `unknown' -- same as none, but documents that we really don't know.
12519 # 'pass_all' -- all dependencies passed with no checks.
12520 # 'test_compile' -- check by making test program.
12521 # 'file_magic [[regex]]' -- check by looking for files in library path
12522 # which responds to the $file_magic_cmd with a given extended regex.
12523 # If you have `file' or equivalent on your system and you're not sure
12524 # whether `pass_all' will *always* work, you probably want this one.
12528 lt_cv_deplibs_check_method=pass_all
12532 lt_cv_deplibs_check_method=pass_all
12536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12537 lt_cv_file_magic_cmd='/usr/bin/file -L'
12538 lt_cv_file_magic_test_file=/shlib/libc.so
12542 # func_win32_libid is a shell function defined in ltmain.sh
12543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12544 lt_cv_file_magic_cmd='func_win32_libid'
12548 # Base MSYS/MinGW do not provide the 'file' command needed by
12549 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12550 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12551 lt_cv_file_magic_cmd='$OBJDUMP -f'
12554 darwin* | rhapsody*)
12555 lt_cv_deplibs_check_method=pass_all
12558 freebsd* | kfreebsd*-gnu | dragonfly*)
12559 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12562 # Not sure whether the presence of OpenBSD here was a mistake.
12563 # Let's accept both of them until this is cleared up.
12564 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12565 lt_cv_file_magic_cmd=/usr/bin/file
12566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12570 lt_cv_deplibs_check_method=pass_all
12575 lt_cv_deplibs_check_method=pass_all
12578 hpux10.20* | hpux11*)
12579 lt_cv_file_magic_cmd=/usr/bin/file
12582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12583 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12586 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]'
12587 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12597 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12601 irix5* | irix6* | nonstopux*)
12603 *-32|*"-32 ") libmagic=32-bit;;
12604 *-n32|*"-n32 ") libmagic=N32;;
12605 *-64|*"-64 ") libmagic=64-bit;;
12606 *) libmagic=never-match;;
12608 lt_cv_deplibs_check_method=pass_all
12611 # This must be Linux ELF.
12613 lt_cv_deplibs_check_method=pass_all
12617 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12626 lt_cv_file_magic_cmd=/usr/bin/file
12627 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12631 lt_cv_deplibs_check_method=unknown
12635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12642 osf3* | osf4* | osf5*)
12643 lt_cv_deplibs_check_method=pass_all
12647 lt_cv_deplibs_check_method=pass_all
12651 case $host_vendor in
12653 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]'
12654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12657 lt_cv_deplibs_check_method=pass_all
12660 lt_cv_file_magic_cmd='/bin/file'
12661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12664 lt_cv_file_magic_cmd='/bin/file'
12665 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12666 lt_cv_file_magic_test_file=/lib/libc.so
12669 lt_cv_deplibs_check_method=pass_all
12672 lt_cv_deplibs_check_method=pass_all
12677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12678 lt_cv_deplibs_check_method=pass_all
12683 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12684 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12685 file_magic_cmd=$lt_cv_file_magic_cmd
12686 deplibs_check_method=$lt_cv_deplibs_check_method
12687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12691 # If no C compiler was specified, use CC.
12694 # If no C compiler flags were specified, use CFLAGS.
12695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12697 # Allow CC to be a program name with arguments.
12700 # Check whether --enable-libtool-lock was given.
12701 if test "${enable_libtool_lock+set}" = set; then
12702 enableval=$enable_libtool_lock;
12705 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12707 # Some flags need to be propagated to the compiler or linker for good
12711 # Find out which ABI we are using.
12712 echo 'int i;' > conftest.$ac_ext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; then
12718 case `/usr/bin/file conftest.$ac_objext` in
12720 HPUX_IA64_MODE="32"
12723 HPUX_IA64_MODE="64"
12730 # Find out which ABI we are using.
12731 echo '#line 12731 "configure"' > conftest.$ac_ext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; then
12737 if test "$lt_cv_prog_gnu_ld" = yes; then
12738 case `/usr/bin/file conftest.$ac_objext` in
12740 LD="${LD-ld} -melf32bsmip"
12743 LD="${LD-ld} -melf32bmipn32"
12746 LD="${LD-ld} -melf64bmip"
12750 case `/usr/bin/file conftest.$ac_objext` in
12766 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12767 # Find out which ABI we are using.
12768 echo 'int i;' > conftest.$ac_ext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; then
12774 case `/usr/bin/file conftest.o` in
12778 LD="${LD-ld} -m elf_i386"
12780 ppc64-*linux*|powerpc64-*linux*)
12781 LD="${LD-ld} -m elf32ppclinux"
12784 LD="${LD-ld} -m elf_s390"
12787 LD="${LD-ld} -m elf32_sparc"
12794 LD="${LD-ld} -m elf_x86_64"
12796 ppc*-*linux*|powerpc*-*linux*)
12797 LD="${LD-ld} -m elf64ppc"
12800 LD="${LD-ld} -m elf64_s390"
12803 LD="${LD-ld} -m elf64_sparc"
12813 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12814 SAVE_CFLAGS="$CFLAGS"
12815 CFLAGS="$CFLAGS -belf"
12816 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12817 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12818 if test "${lt_cv_cc_needs_belf+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 ac_cpp='$CPP $CPPFLAGS'
12823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 lt_cv_cc_needs_belf=yes
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 lt_cv_cc_needs_belf=no
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12887 ac_cpp='$CPP $CPPFLAGS'
12888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12893 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12894 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12895 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12896 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12897 CFLAGS="$SAVE_CFLAGS"
12901 # Find out which ABI we are using.
12902 echo 'int i;' > conftest.$ac_ext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; then
12908 case `/usr/bin/file conftest.o` in
12910 case $lt_cv_prog_gnu_ld in
12911 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12912 *) LD="${LD-ld} -64" ;;
12923 need_locks="$enable_libtool_lock"
12928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12930 (test "X$CXX" != "Xg++"))) ; then
12932 ac_cpp='$CXXCPP $CPPFLAGS'
12933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12936 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12937 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12938 if test -z "$CXXCPP"; then
12939 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 # Double quotes because CXXCPP needs to be expanded
12943 for CXXCPP in "$CXX -E" "/lib/cpp"
12945 ac_preproc_ok=false
12946 for ac_cxx_preproc_warn_flag in '' yes
12948 # Use a header file that comes with gcc, so configuring glibc
12949 # with a fresh cross-compiler works.
12950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951 # <limits.h> exists even on freestanding compilers.
12952 # On the NeXT, cc -E runs the code through the compiler's parser,
12953 # not just through cpp. "Syntax error" is here to catch this case.
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 # include <limits.h>
12963 # include <assert.h>
12967 if { (ac_try="$ac_cpp conftest.$ac_ext"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } >/dev/null; then
12980 if test -s conftest.err; then
12981 ac_cpp_err=$ac_cxx_preproc_warn_flag
12982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12989 if test -z "$ac_cpp_err"; then
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 # Broken: fails on valid input.
12999 rm -f conftest.err conftest.$ac_ext
13001 # OK, works on sane cases. Now check whether nonexistent headers
13002 # can be detected and how.
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 #include <ac_nonexistent.h>
13011 if { (ac_try="$ac_cpp conftest.$ac_ext"
13012 case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13019 grep -v '^ *+' conftest.er1 >conftest.err
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } >/dev/null; then
13024 if test -s conftest.err; then
13025 ac_cpp_err=$ac_cxx_preproc_warn_flag
13026 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13033 if test -z "$ac_cpp_err"; then
13034 # Broken: success on invalid input.
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 # Passes both tests.
13045 rm -f conftest.err conftest.$ac_ext
13048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13049 rm -f conftest.err conftest.$ac_ext
13050 if $ac_preproc_ok; then
13055 ac_cv_prog_CXXCPP=$CXXCPP
13058 CXXCPP=$ac_cv_prog_CXXCPP
13060 ac_cv_prog_CXXCPP=$CXXCPP
13062 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13063 echo "${ECHO_T}$CXXCPP" >&6; }
13064 ac_preproc_ok=false
13065 for ac_cxx_preproc_warn_flag in '' yes
13067 # Use a header file that comes with gcc, so configuring glibc
13068 # with a fresh cross-compiler works.
13069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13070 # <limits.h> exists even on freestanding compilers.
13071 # On the NeXT, cc -E runs the code through the compiler's parser,
13072 # not just through cpp. "Syntax error" is here to catch this case.
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13080 # include <limits.h>
13082 # include <assert.h>
13086 if { (ac_try="$ac_cpp conftest.$ac_ext"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_cxx_preproc_warn_flag
13101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13108 if test -z "$ac_cpp_err"; then
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 # Broken: fails on valid input.
13118 rm -f conftest.err conftest.$ac_ext
13120 # OK, works on sane cases. Now check whether nonexistent headers
13121 # can be detected and how.
13122 cat >conftest.$ac_ext <<_ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 #include <ac_nonexistent.h>
13130 if { (ac_try="$ac_cpp conftest.$ac_ext"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13138 grep -v '^ *+' conftest.er1 >conftest.err
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } >/dev/null; then
13143 if test -s conftest.err; then
13144 ac_cpp_err=$ac_cxx_preproc_warn_flag
13145 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13152 if test -z "$ac_cpp_err"; then
13153 # Broken: success on invalid input.
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 # Passes both tests.
13164 rm -f conftest.err conftest.$ac_ext
13167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13168 rm -f conftest.err conftest.$ac_ext
13169 if $ac_preproc_ok; then
13172 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13173 See \`config.log' for more details." >&5
13174 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13175 See \`config.log' for more details." >&2;}
13176 { (exit 1); exit 1; }; }
13180 ac_cpp='$CXXCPP $CPPFLAGS'
13181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13192 if test -n "$ac_tool_prefix"; then
13193 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
13195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13199 if test "${ac_cv_prog_F77+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 if test -n "$F77"; then
13203 ac_cv_prog_F77="$F77" # Let the user override the test.
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13212 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 F77=$ac_cv_prog_F77
13223 if test -n "$F77"; then
13224 { echo "$as_me:$LINENO: result: $F77" >&5
13225 echo "${ECHO_T}$F77" >&6; }
13227 { echo "$as_me:$LINENO: result: no" >&5
13228 echo "${ECHO_T}no" >&6; }
13232 test -n "$F77" && break
13235 if test -z "$F77"; then
13237 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
13239 # Extract the first word of "$ac_prog", so it can be a program name with args.
13240 set dummy $ac_prog; ac_word=$2
13241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 if test -n "$ac_ct_F77"; then
13247 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13256 ac_cv_prog_ac_ct_F77="$ac_prog"
13257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13267 if test -n "$ac_ct_F77"; then
13268 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13269 echo "${ECHO_T}$ac_ct_F77" >&6; }
13271 { echo "$as_me:$LINENO: result: no" >&5
13272 echo "${ECHO_T}no" >&6; }
13276 test -n "$ac_ct_F77" && break
13279 if test "x$ac_ct_F77" = x; then
13282 case $cross_compiling:$ac_tool_warned in
13284 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13285 whose name does not start with the host triplet. If you think this
13286 configuration is useful to you, please write to autoconf@gnu.org." >&5
13287 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13288 whose name does not start with the host triplet. If you think this
13289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13290 ac_tool_warned=yes ;;
13297 # Provide some information about the compiler.
13298 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13299 ac_compiler=`set X $ac_compile; echo $2`
13300 { (ac_try="$ac_compiler --version >&5"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_compiler --version >&5") 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }
13310 { (ac_try="$ac_compiler -v >&5"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_compiler -v >&5") 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }
13320 { (ac_try="$ac_compiler -V >&5"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compiler -V >&5") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }
13332 # If we don't use `.F' as extension, the preprocessor is not run on the
13333 # input file. (Note that this only needs to work for GNU compilers.)
13334 ac_save_ext=$ac_ext
13336 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13337 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13338 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13349 rm -f conftest.$ac_objext
13350 if { (ac_try="$ac_compile"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_compile") 2>conftest.er1
13358 grep -v '^ *+' conftest.er1 >conftest.err
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest.$ac_objext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_compiler_gnu=yes
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13395 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13396 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13397 ac_ext=$ac_save_ext
13398 ac_test_FFLAGS=${FFLAGS+set}
13399 ac_save_FFLAGS=$FFLAGS
13401 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13402 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13403 if test "${ac_cv_prog_f77_g+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 cat >conftest.$ac_ext <<_ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_prog_f77_g=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_cv_prog_f77_g=no
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13458 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13459 if test "$ac_test_FFLAGS" = set; then
13460 FFLAGS=$ac_save_FFLAGS
13461 elif test $ac_cv_prog_f77_g = yes; then
13462 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13468 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13475 G77=`test $ac_compiler_gnu = yes && echo yes`
13477 ac_cpp='$CPP $CPPFLAGS'
13478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13484 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13486 # find the maximum length of command line arguments
13487 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13488 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13489 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 # On DJGPP, this test can blow up pretty badly due to problems in libc
13498 # (any single argument exceeding 2000 bytes causes a buffer overrun
13499 # during glob expansion). Even if it were fixed, the result of this
13500 # check would be larger than it should be.
13501 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13505 # Under GNU Hurd, this test is not required because there is
13506 # no limit to the length of command line arguments.
13507 # Libtool will interpret -1 as no limit whatsoever
13508 lt_cv_sys_max_cmd_len=-1;
13512 # On Win9x/ME, this test blows up -- it succeeds, but takes
13513 # about 5 minutes as the teststring grows exponentially.
13514 # Worse, since 9x/ME are not pre-emptively multitasking,
13515 # you end up with a "frozen" computer, even though with patience
13516 # the test eventually succeeds (with a max line length of 256k).
13517 # Instead, let's just punt: use the minimum linelength reported by
13518 # all of the supported platforms: 8192 (on NT/2K/XP).
13519 lt_cv_sys_max_cmd_len=8192;
13523 # On AmigaOS with pdksh, this test takes hours, literally.
13524 # So we just punt and use a minimum line length of 8192.
13525 lt_cv_sys_max_cmd_len=8192;
13528 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13529 # This has been around since 386BSD, at least. Likely further.
13530 if test -x /sbin/sysctl; then
13531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13532 elif test -x /usr/sbin/sysctl; then
13533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13537 # And add a safety zone
13538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13544 lt_cv_sys_max_cmd_len=196608
13548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13550 # nice to cause kernel panics so lets avoid the loop below.
13551 # First set a reasonable default.
13552 lt_cv_sys_max_cmd_len=16384
13554 if test -x /sbin/sysconfig; then
13555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13561 lt_cv_sys_max_cmd_len=102400
13563 sysv5* | sco5v6* | sysv4.2uw2*)
13564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13565 if test -n "$kargmax"; then
13566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13568 lt_cv_sys_max_cmd_len=32768
13572 # If test is not a shell built-in, we'll probably end up computing a
13573 # maximum length that is only half of the actual maximum length, but
13575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13576 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13577 = "XX$teststring") >/dev/null 2>&1 &&
13578 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13579 lt_cv_sys_max_cmd_len=$new_result &&
13580 test $i != 17 # 1/2 MB should be enough
13583 teststring=$teststring$teststring
13586 # Add a significant safety factor because C++ compilers can tack on massive
13587 # amounts of additional arguments before passing them to the linker.
13588 # It appears as though 1/2 is a usable value.
13589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13595 if test -n $lt_cv_sys_max_cmd_len ; then
13596 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13597 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13599 { echo "$as_me:$LINENO: result: none" >&5
13600 echo "${ECHO_T}none" >&6; }
13606 # Check for command to grab the raw symbol name followed by C symbol from nm.
13607 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13608 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 # These are sane defaults that work on at least a few old systems.
13614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13616 # Character class describing NM global symbol codes.
13617 symcode='[BCDEGRST]'
13619 # Regexp to match symbols that can be accessed directly from C.
13620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13622 # Transform an extracted symbol line into a proper C declaration
13623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13625 # Transform an extracted symbol line into symbol name and symbol address
13626 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'"
13628 # Define system-specific variables.
13633 cygwin* | mingw* | pw32*)
13634 symcode='[ABCDGISTW]'
13636 hpux*) # Its linker distinguishes data from code symbols
13637 if test "$host_cpu" = ia64; then
13638 symcode='[ABCDEGRST]'
13640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13641 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'"
13644 if test "$host_cpu" = ia64; then
13645 symcode='[ABCDGIRSTW]'
13646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13647 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'"
13650 irix* | nonstopux*)
13651 symcode='[BCDEGRST]'
13654 symcode='[BCDEGQRST]'
13665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13673 # Handle CRLF in mingw tool chain
13677 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13681 # If we're using GNU nm, then use its standard symbol codes.
13682 case `$NM -V 2>&1` in
13683 *GNU* | *'with BFD'*)
13684 symcode='[ABCDGIRSTW]' ;;
13687 # Try without a prefix undercore, then with it.
13688 for ac_symprfx in "" "_"; do
13690 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13691 symxfrm="\\1 $ac_symprfx\\2 \\2"
13693 # Write the raw and C identifiers.
13694 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13696 # Check to see that the pipe works correctly.
13700 cat > conftest.$ac_ext <<EOF
13705 void nm_test_func(){}
13709 int main(){nm_test_var='a';nm_test_func();return(0);}
13712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; then
13717 # Now try to grab the symbols.
13719 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13720 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } && test -s "$nlist"; then
13724 # Try sorting and uniquifying the output.
13725 if sort "$nlist" | uniq > "$nlist"T; then
13726 mv -f "$nlist"T "$nlist"
13731 # Make sure that we snagged all the symbols we need.
13732 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13733 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13734 cat <<EOF > conftest.$ac_ext
13740 # Now generate the symbol file.
13741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13743 cat <<EOF >> conftest.$ac_ext
13744 #if defined (__STDC__) && __STDC__
13745 # define lt_ptr_t void *
13747 # define lt_ptr_t char *
13751 /* The mapping between symbol names and symbols. */
13756 lt_preloaded_symbols[] =
13759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13760 cat <<\EOF >> conftest.$ac_ext
13768 # Now try linking the two files.
13769 mv conftest.$ac_objext conftstm.$ac_objext
13770 lt_save_LIBS="$LIBS"
13771 lt_save_CFLAGS="$CFLAGS"
13772 LIBS="conftstm.$ac_objext"
13773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13781 LIBS="$lt_save_LIBS"
13782 CFLAGS="$lt_save_CFLAGS"
13784 echo "cannot find nm_test_func in $nlist" >&5
13787 echo "cannot find nm_test_var in $nlist" >&5
13790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13793 echo "$progname: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13796 rm -f conftest* conftst*
13798 # Do not use the global_symbol_pipe unless it works.
13799 if test "$pipe_works" = yes; then
13802 lt_cv_sys_global_symbol_pipe=
13808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13809 lt_cv_sys_global_symbol_to_cdecl=
13811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13812 { echo "$as_me:$LINENO: result: failed" >&5
13813 echo "${ECHO_T}failed" >&6; }
13815 { echo "$as_me:$LINENO: result: ok" >&5
13816 echo "${ECHO_T}ok" >&6; }
13819 { echo "$as_me:$LINENO: checking for objdir" >&5
13820 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13821 if test "${lt_cv_objdir+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 rm -f .libs 2>/dev/null
13825 mkdir .libs 2>/dev/null
13826 if test -d .libs; then
13829 # MS-DOS does not allow filenames that begin with a dot.
13832 rmdir .libs 2>/dev/null
13834 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13835 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13836 objdir=$lt_cv_objdir
13844 # AIX sometimes has problems with the GCC collect2 program. For some
13845 # reason, if we set the COLLECT_NAMES environment variable, the problems
13846 # vanish in a puff of smoke.
13847 if test "X${COLLECT_NAMES+set}" != Xset; then
13849 export COLLECT_NAMES
13854 # Sed substitution that helps us do robust quoting. It backslashifies
13855 # metacharacters that are still active within double-quoted strings.
13856 Xsed='sed -e 1s/^X//'
13857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13859 # Same as above, but do not quote variable references.
13860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13862 # Sed substitution to delay expansion of an escaped shell variable in a
13863 # double_quote_subst'ed string.
13864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13866 # Sed substitution to avoid accidental globbing in evaled expressions
13867 no_glob_subst='s/\*/\\\*/g'
13872 # Global variables:
13873 default_ofile=mklib
13874 can_build_shared=yes
13876 # All known linkers require a `.a' archive for static linking (except MSVC,
13877 # which needs '.lib').
13879 ltmain="$ac_aux_dir/ltmain.sh"
13880 ofile="$default_ofile"
13881 with_gnu_ld="$lt_cv_prog_gnu_ld"
13883 if test -n "$ac_tool_prefix"; then
13884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13885 set dummy ${ac_tool_prefix}ar; ac_word=$2
13886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13888 if test "${ac_cv_prog_AR+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 if test -n "$AR"; then
13892 ac_cv_prog_AR="$AR" # Let the user override the test.
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13898 test -z "$as_dir" && as_dir=.
13899 for ac_exec_ext in '' $ac_executable_extensions; do
13900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13901 ac_cv_prog_AR="${ac_tool_prefix}ar"
13902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13912 if test -n "$AR"; then
13913 { echo "$as_me:$LINENO: result: $AR" >&5
13914 echo "${ECHO_T}$AR" >&6; }
13916 { echo "$as_me:$LINENO: result: no" >&5
13917 echo "${ECHO_T}no" >&6; }
13922 if test -z "$ac_cv_prog_AR"; then
13924 # Extract the first word of "ar", so it can be a program name with args.
13925 set dummy ar; ac_word=$2
13926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 if test -n "$ac_ct_AR"; then
13932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13941 ac_cv_prog_ac_ct_AR="ar"
13942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13952 if test -n "$ac_ct_AR"; then
13953 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13954 echo "${ECHO_T}$ac_ct_AR" >&6; }
13956 { echo "$as_me:$LINENO: result: no" >&5
13957 echo "${ECHO_T}no" >&6; }
13960 if test "x$ac_ct_AR" = x; then
13963 case $cross_compiling:$ac_tool_warned in
13965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13966 whose name does not start with the host triplet. If you think this
13967 configuration is useful to you, please write to autoconf@gnu.org." >&5
13968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13969 whose name does not start with the host triplet. If you think this
13970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13971 ac_tool_warned=yes ;;
13976 AR="$ac_cv_prog_AR"
13979 if test -n "$ac_tool_prefix"; then
13980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13984 if test "${ac_cv_prog_RANLIB+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 if test -n "$RANLIB"; then
13988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
13996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14007 RANLIB=$ac_cv_prog_RANLIB
14008 if test -n "$RANLIB"; then
14009 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14010 echo "${ECHO_T}$RANLIB" >&6; }
14012 { echo "$as_me:$LINENO: result: no" >&5
14013 echo "${ECHO_T}no" >&6; }
14018 if test -z "$ac_cv_prog_RANLIB"; then
14019 ac_ct_RANLIB=$RANLIB
14020 # Extract the first word of "ranlib", so it can be a program name with args.
14021 set dummy ranlib; ac_word=$2
14022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 if test -n "$ac_ct_RANLIB"; then
14028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14034 test -z "$as_dir" && as_dir=.
14035 for ac_exec_ext in '' $ac_executable_extensions; do
14036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14037 ac_cv_prog_ac_ct_RANLIB="ranlib"
14038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14048 if test -n "$ac_ct_RANLIB"; then
14049 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14050 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14052 { echo "$as_me:$LINENO: result: no" >&5
14053 echo "${ECHO_T}no" >&6; }
14056 if test "x$ac_ct_RANLIB" = x; then
14059 case $cross_compiling:$ac_tool_warned in
14061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14062 whose name does not start with the host triplet. If you think this
14063 configuration is useful to you, please write to autoconf@gnu.org." >&5
14064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14065 whose name does not start with the host triplet. If you think this
14066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14067 ac_tool_warned=yes ;;
14069 RANLIB=$ac_ct_RANLIB
14072 RANLIB="$ac_cv_prog_RANLIB"
14075 if test -n "$ac_tool_prefix"; then
14076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14077 set dummy ${ac_tool_prefix}strip; ac_word=$2
14078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14080 if test "${ac_cv_prog_STRIP+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 if test -n "$STRIP"; then
14084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 STRIP=$ac_cv_prog_STRIP
14104 if test -n "$STRIP"; then
14105 { echo "$as_me:$LINENO: result: $STRIP" >&5
14106 echo "${ECHO_T}$STRIP" >&6; }
14108 { echo "$as_me:$LINENO: result: no" >&5
14109 echo "${ECHO_T}no" >&6; }
14114 if test -z "$ac_cv_prog_STRIP"; then
14116 # Extract the first word of "strip", so it can be a program name with args.
14117 set dummy strip; ac_word=$2
14118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14120 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 if test -n "$ac_ct_STRIP"; then
14124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127 for as_dir in $PATH
14130 test -z "$as_dir" && as_dir=.
14131 for ac_exec_ext in '' $ac_executable_extensions; do
14132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14133 ac_cv_prog_ac_ct_STRIP="strip"
14134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14144 if test -n "$ac_ct_STRIP"; then
14145 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14146 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14148 { echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6; }
14152 if test "x$ac_ct_STRIP" = x; then
14155 case $cross_compiling:$ac_tool_warned in
14157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14158 whose name does not start with the host triplet. If you think this
14159 configuration is useful to you, please write to autoconf@gnu.org." >&5
14160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14161 whose name does not start with the host triplet. If you think this
14162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14163 ac_tool_warned=yes ;;
14168 STRIP="$ac_cv_prog_STRIP"
14173 old_CFLAGS="$CFLAGS"
14175 # Set sane defaults for various variables
14176 test -z "$AR" && AR=ar
14177 test -z "$AR_FLAGS" && AR_FLAGS=cru
14178 test -z "$AS" && AS=as
14179 test -z "$CC" && CC=cc
14180 test -z "$LTCC" && LTCC=$CC
14181 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14182 test -z "$DLLTOOL" && DLLTOOL=dlltool
14183 test -z "$LD" && LD=ld
14184 test -z "$LN_S" && LN_S="ln -s"
14185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14186 test -z "$NM" && NM=nm
14187 test -z "$SED" && SED=sed
14188 test -z "$OBJDUMP" && OBJDUMP=objdump
14189 test -z "$RANLIB" && RANLIB=:
14190 test -z "$STRIP" && STRIP=:
14191 test -z "$ac_objext" && ac_objext=o
14193 # Determine commands to create old-style static archives.
14194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14195 old_postinstall_cmds='chmod 644 $oldlib'
14196 old_postuninstall_cmds=
14198 if test -n "$RANLIB"; then
14201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14207 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14210 for cc_temp in $compiler""; do
14212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14218 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14221 # Only perform the check for file, if the check method requires it
14222 case $deplibs_check_method in
14224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14225 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14226 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14235 lt_save_MAGIC_CMD="$MAGIC_CMD"
14236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14238 for ac_dir in $ac_dummy; do
14240 test -z "$ac_dir" && ac_dir=.
14241 if test -f $ac_dir/${ac_tool_prefix}file; then
14242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14243 if test -n "$file_magic_test_file"; then
14244 case $deplibs_check_method in
14246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14249 $EGREP "$file_magic_regex" > /dev/null; then
14254 *** Warning: the command libtool uses to detect shared libraries,
14255 *** $file_magic_cmd, produces output that libtool cannot recognize.
14256 *** The result is that libtool may fail to recognize shared libraries
14257 *** as such. This will affect the creation of libtool libraries that
14258 *** depend on shared libraries, but programs linked with such libtool
14259 *** libraries will work regardless of this problem. Nevertheless, you
14260 *** may want to report the problem to your system manager and/or to
14261 *** bug-libtool@gnu.org
14271 MAGIC_CMD="$lt_save_MAGIC_CMD"
14276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14277 if test -n "$MAGIC_CMD"; then
14278 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14281 { echo "$as_me:$LINENO: result: no" >&5
14282 echo "${ECHO_T}no" >&6; }
14285 if test -z "$lt_cv_path_MAGIC_CMD"; then
14286 if test -n "$ac_tool_prefix"; then
14287 { echo "$as_me:$LINENO: checking for file" >&5
14288 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14297 lt_save_MAGIC_CMD="$MAGIC_CMD"
14298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14300 for ac_dir in $ac_dummy; do
14302 test -z "$ac_dir" && ac_dir=.
14303 if test -f $ac_dir/file; then
14304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14305 if test -n "$file_magic_test_file"; then
14306 case $deplibs_check_method in
14308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14311 $EGREP "$file_magic_regex" > /dev/null; then
14316 *** Warning: the command libtool uses to detect shared libraries,
14317 *** $file_magic_cmd, produces output that libtool cannot recognize.
14318 *** The result is that libtool may fail to recognize shared libraries
14319 *** as such. This will affect the creation of libtool libraries that
14320 *** depend on shared libraries, but programs linked with such libtool
14321 *** libraries will work regardless of this problem. Nevertheless, you
14322 *** may want to report the problem to your system manager and/or to
14323 *** bug-libtool@gnu.org
14333 MAGIC_CMD="$lt_save_MAGIC_CMD"
14338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14339 if test -n "$MAGIC_CMD"; then
14340 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14341 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14343 { echo "$as_me:$LINENO: result: no" >&5
14344 echo "${ECHO_T}no" >&6; }
14357 enable_win32_dll=no
14359 # Check whether --enable-libtool-lock was given.
14360 if test "${enable_libtool_lock+set}" = set; then
14361 enableval=$enable_libtool_lock;
14364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14367 # Check whether --with-pic was given.
14368 if test "${with_pic+set}" = set; then
14369 withval=$with_pic; pic_mode="$withval"
14374 test -z "$pic_mode" && pic_mode=default
14376 # Use C for the default configuration in the libtool script
14380 ac_cpp='$CPP $CPPFLAGS'
14381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14386 # Source file extension for C test sources.
14389 # Object file extension for compiled C test sources.
14393 # Code to be used in simple compile tests
14394 lt_simple_compile_test_code="int some_variable = 0;\n"
14396 # Code to be used in simple link tests
14397 lt_simple_link_test_code='int main(){return(0);}\n'
14400 # If no C compiler was specified, use CC.
14403 # If no C compiler flags were specified, use CFLAGS.
14404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14406 # Allow CC to be a program name with arguments.
14410 # save warnings/boilerplate of simple test code
14411 ac_outfile=conftest.$ac_objext
14412 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14414 _lt_compiler_boilerplate=`cat conftest.err`
14417 ac_outfile=conftest.$ac_objext
14418 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14420 _lt_linker_boilerplate=`cat conftest.err`
14425 lt_prog_compiler_no_builtin_flag=
14427 if test "$GCC" = yes; then
14428 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14431 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14432 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 lt_cv_prog_compiler_rtti_exceptions=no
14437 ac_outfile=conftest.$ac_objext
14438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14439 lt_compiler_flag="-fno-rtti -fno-exceptions"
14440 # Insert the option either (1) after the last *FLAGS variable, or
14441 # (2) before a word containing "conftest.", or (3) at the end.
14442 # Note that $ac_compile itself does not contain backslashes and begins
14443 # with a dollar sign (not a hyphen), so the echo should work correctly.
14444 # The option is referenced via a variable to avoid confusing sed.
14445 lt_compile=`echo "$ac_compile" | $SED \
14446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14448 -e 's:$: $lt_compiler_flag:'`
14449 (eval echo "\"\$as_me:14449: $lt_compile\"" >&5)
14450 (eval "$lt_compile" 2>conftest.err)
14452 cat conftest.err >&5
14453 echo "$as_me:14453: \$? = $ac_status" >&5
14454 if (exit $ac_status) && test -s "$ac_outfile"; then
14455 # The compiler can only warn and ignore the option if not recognized
14456 # So say no if there are warnings other than the usual output.
14457 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14460 lt_cv_prog_compiler_rtti_exceptions=yes
14466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14467 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14477 lt_prog_compiler_wl=
14478 lt_prog_compiler_pic=
14479 lt_prog_compiler_static=
14481 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14482 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14484 if test "$GCC" = yes; then
14485 lt_prog_compiler_wl='-Wl,'
14486 lt_prog_compiler_static='-static'
14490 # All AIX code is PIC.
14491 if test "$host_cpu" = ia64; then
14492 # AIX 5 now supports IA64 processor
14493 lt_prog_compiler_static='-Bstatic'
14498 # FIXME: we need at least 68020 code to build shared libraries, but
14499 # adding the `-m68020' flag to GCC prevents building anything better,
14501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14504 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14505 # PIC is the default for these OSes.
14508 mingw* | pw32* | os2*)
14509 # This hack is so that the source file can tell whether it is being
14510 # built for inclusion in a dll (and should export symbols for example).
14511 lt_prog_compiler_pic='-DDLL_EXPORT'
14514 darwin* | rhapsody*)
14515 # PIC is the default on this platform
14516 # Common symbols not allowed in MH_DYLIB files
14517 lt_prog_compiler_pic='-fno-common'
14521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14522 # Instead, we relocate shared libraries at runtime.
14526 # Just because we use GCC doesn't mean we suddenly get shared libraries
14527 # on systems that don't support them.
14528 lt_prog_compiler_can_build_shared=no
14533 if test -d /usr/nec; then
14534 lt_prog_compiler_pic=-Kconform_pic
14539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14540 # not for PA HP-UX.
14546 lt_prog_compiler_pic='-fPIC'
14552 lt_prog_compiler_pic='-fPIC'
14556 # PORTME Check for flag to pass linker flags through the system compiler.
14559 lt_prog_compiler_wl='-Wl,'
14560 if test "$host_cpu" = ia64; then
14561 # AIX 5 now supports IA64 processor
14562 lt_prog_compiler_static='-Bstatic'
14564 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14568 # PIC is the default on this platform
14569 # Common symbols not allowed in MH_DYLIB files
14570 case $cc_basename in
14572 lt_prog_compiler_pic='-qnocommon'
14573 lt_prog_compiler_wl='-Wl,'
14578 mingw* | pw32* | os2*)
14579 # This hack is so that the source file can tell whether it is being
14580 # built for inclusion in a dll (and should export symbols for example).
14581 lt_prog_compiler_pic='-DDLL_EXPORT'
14584 hpux9* | hpux10* | hpux11*)
14585 lt_prog_compiler_wl='-Wl,'
14586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587 # not for PA HP-UX.
14593 lt_prog_compiler_pic='+Z'
14596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14597 lt_prog_compiler_static='${wl}-a ${wl}archive'
14600 irix5* | irix6* | nonstopux*)
14601 lt_prog_compiler_wl='-Wl,'
14602 # PIC (with -KPIC) is the default.
14603 lt_prog_compiler_static='-non_shared'
14607 lt_prog_compiler_pic='-KPIC'
14608 lt_prog_compiler_static='-Bstatic'
14612 case $cc_basename in
14614 lt_prog_compiler_wl='-Wl,'
14615 lt_prog_compiler_pic='-KPIC'
14616 lt_prog_compiler_static='-static'
14618 pgcc* | pgf77* | pgf90* | pgf95*)
14619 # Portland Group compilers (*not* the Pentium gcc compiler,
14620 # which looks to be a dead project)
14621 lt_prog_compiler_wl='-Wl,'
14622 lt_prog_compiler_pic='-fpic'
14623 lt_prog_compiler_static='-Bstatic'
14626 lt_prog_compiler_wl='-Wl,'
14627 # All Alpha code is PIC.
14628 lt_prog_compiler_static='-non_shared'
14633 osf3* | osf4* | osf5*)
14634 lt_prog_compiler_wl='-Wl,'
14635 # All OSF/1 code is PIC.
14636 lt_prog_compiler_static='-non_shared'
14640 lt_prog_compiler_pic='-KPIC'
14641 lt_prog_compiler_static='-Bstatic'
14642 case $cc_basename in
14643 f77* | f90* | f95*)
14644 lt_prog_compiler_wl='-Qoption ld ';;
14646 lt_prog_compiler_wl='-Wl,';;
14651 lt_prog_compiler_wl='-Qoption ld '
14652 lt_prog_compiler_pic='-PIC'
14653 lt_prog_compiler_static='-Bstatic'
14656 sysv4 | sysv4.2uw2* | sysv4.3*)
14657 lt_prog_compiler_wl='-Wl,'
14658 lt_prog_compiler_pic='-KPIC'
14659 lt_prog_compiler_static='-Bstatic'
14663 if test -d /usr/nec ;then
14664 lt_prog_compiler_pic='-Kconform_pic'
14665 lt_prog_compiler_static='-Bstatic'
14669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14670 lt_prog_compiler_wl='-Wl,'
14671 lt_prog_compiler_pic='-KPIC'
14672 lt_prog_compiler_static='-Bstatic'
14676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_can_build_shared=no
14681 lt_prog_compiler_pic='-pic'
14682 lt_prog_compiler_static='-Bstatic'
14686 lt_prog_compiler_can_build_shared=no
14691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14692 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14695 # Check to make sure the PIC flag actually works.
14697 if test -n "$lt_prog_compiler_pic"; then
14699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14701 if test "${lt_prog_compiler_pic_works+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 lt_prog_compiler_pic_works=no
14705 ac_outfile=conftest.$ac_objext
14706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14707 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14708 # Insert the option either (1) after the last *FLAGS variable, or
14709 # (2) before a word containing "conftest.", or (3) at the end.
14710 # Note that $ac_compile itself does not contain backslashes and begins
14711 # with a dollar sign (not a hyphen), so the echo should work correctly.
14712 # The option is referenced via a variable to avoid confusing sed.
14713 lt_compile=`echo "$ac_compile" | $SED \
14714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14716 -e 's:$: $lt_compiler_flag:'`
14717 (eval echo "\"\$as_me:14717: $lt_compile\"" >&5)
14718 (eval "$lt_compile" 2>conftest.err)
14720 cat conftest.err >&5
14721 echo "$as_me:14721: \$? = $ac_status" >&5
14722 if (exit $ac_status) && test -s "$ac_outfile"; then
14723 # The compiler can only warn and ignore the option if not recognized
14724 # So say no if there are warnings other than the usual output.
14725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14728 lt_prog_compiler_pic_works=yes
14734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14735 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14737 if test x"$lt_prog_compiler_pic_works" = xyes; then
14738 case $lt_prog_compiler_pic in
14740 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14743 lt_prog_compiler_pic=
14744 lt_prog_compiler_can_build_shared=no
14749 # For platforms which do not support PIC, -DPIC is meaningless:
14751 lt_prog_compiler_pic=
14754 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14759 # Check to make sure the static flag actually works.
14761 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14764 if test "${lt_prog_compiler_static_works+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 lt_prog_compiler_static_works=no
14768 save_LDFLAGS="$LDFLAGS"
14769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14770 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14772 # The linker can only warn and ignore the option if not recognized
14773 # So say no if there are warnings
14774 if test -s conftest.err; then
14775 # Append any errors to the config.log.
14776 cat conftest.err 1>&5
14777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779 if diff conftest.exp conftest.er2 >/dev/null; then
14780 lt_prog_compiler_static_works=yes
14783 lt_prog_compiler_static_works=yes
14787 LDFLAGS="$save_LDFLAGS"
14790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14791 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14793 if test x"$lt_prog_compiler_static_works" = xyes; then
14796 lt_prog_compiler_static=
14800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14802 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 lt_cv_prog_compiler_c_o=no
14806 $rm -r conftest 2>/dev/null
14810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14812 lt_compiler_flag="-o out/conftest2.$ac_objext"
14813 # Insert the option either (1) after the last *FLAGS variable, or
14814 # (2) before a word containing "conftest.", or (3) at the end.
14815 # Note that $ac_compile itself does not contain backslashes and begins
14816 # with a dollar sign (not a hyphen), so the echo should work correctly.
14817 lt_compile=`echo "$ac_compile" | $SED \
14818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820 -e 's:$: $lt_compiler_flag:'`
14821 (eval echo "\"\$as_me:14821: $lt_compile\"" >&5)
14822 (eval "$lt_compile" 2>out/conftest.err)
14824 cat out/conftest.err >&5
14825 echo "$as_me:14825: \$? = $ac_status" >&5
14826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14828 # The compiler can only warn and ignore the option if not recognized
14829 # So say no if there are warnings
14830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14833 lt_cv_prog_compiler_c_o=yes
14838 # SGI C++ compiler will create directory out/ii_files/ for
14839 # template instantiation
14840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14841 $rm out/* && rmdir out
14847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14851 hard_links="nottested"
14852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14853 # do not overwrite the value of need_locks provided by the user
14854 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14860 ln conftest.a conftest.b 2>&5 || hard_links=no
14861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14862 { echo "$as_me:$LINENO: result: $hard_links" >&5
14863 echo "${ECHO_T}$hard_links" >&6; }
14864 if test "$hard_links" = no; then
14865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14877 allow_undefined_flag=
14878 enable_shared_with_static_runtimes=no
14880 archive_expsym_cmds=
14881 old_archive_From_new_cmds=
14882 old_archive_from_expsyms_cmds=
14883 export_dynamic_flag_spec=
14884 whole_archive_flag_spec=
14885 thread_safe_flag_spec=
14886 hardcode_libdir_flag_spec=
14887 hardcode_libdir_flag_spec_ld=
14888 hardcode_libdir_separator=
14890 hardcode_minus_L=no
14891 hardcode_shlibpath_var=unsupported
14892 link_all_deplibs=unknown
14893 hardcode_automatic=no
14895 module_expsym_cmds=
14896 always_export_symbols=no
14897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14898 # include_expsyms should be a list of space-separated symbols to be *always*
14899 # included in the symbol list
14901 # exclude_expsyms can be an extended regexp of symbols to exclude
14902 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14904 # as well as any symbol that contains `d'.
14905 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14907 # platforms (ab)use it in PIC code, but their linkers get confused if
14908 # the symbol is explicitly referenced. Since portable code cannot
14909 # rely on this symbol name, it's probably fine to never include it in
14910 # preloaded symbol tables.
14911 extract_expsyms_cmds=
14912 # Just being paranoid about ensuring that cc_basename is set.
14913 for cc_temp in $compiler""; do
14915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14924 cygwin* | mingw* | pw32*)
14925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14926 # When not using gcc, we currently assume that we are using
14927 # Microsoft Visual C++.
14928 if test "$GCC" != yes; then
14933 # we just hope/assume this is gcc and not c89 (= MSVC++)
14942 if test "$with_gnu_ld" = yes; then
14943 # If archive_cmds runs LD, not CC, wlarc should be empty
14946 # Set some defaults for GNU ld with shared library support. These
14947 # are reset later if shared libraries are not supported. Putting them
14948 # here allows them to be overridden if necessary.
14949 runpath_var=LD_RUN_PATH
14950 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14951 export_dynamic_flag_spec='${wl}--export-dynamic'
14952 # ancient GNU ld didn't support --whole-archive et. al.
14953 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14956 whole_archive_flag_spec=
14958 supports_anon_versioning=no
14959 case `$LD -v 2>/dev/null` in
14960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14963 *\ 2.11.*) ;; # other 2.11 versions
14964 *) supports_anon_versioning=yes ;;
14967 # See if GNU ld supports shared libraries.
14969 aix3* | aix4* | aix5*)
14970 # On AIX/PPC, the GNU linker is very broken
14971 if test "$host_cpu" != ia64; then
14975 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14976 *** to be unable to reliably create shared libraries on AIX.
14977 *** Therefore, libtool is disabling shared libraries support. If you
14978 *** really care for shared libraries, you may want to modify your PATH
14979 *** so that a non-GNU linker is found, and then restart.
14986 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)'
14987 hardcode_libdir_flag_spec='-L$libdir'
14988 hardcode_minus_L=yes
14990 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14991 # that the semantics of dynamic libraries on AmigaOS, at least up
14992 # to version 4, is to share data among multiple programs linked
14993 # with the same dynamic library. Since this doesn't match the
14994 # behavior of shared libraries on other platforms, we can't use
15000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15001 allow_undefined_flag=unsupported
15002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15003 # support --undefined. This deserves some investigation. FIXME
15004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010 cygwin* | mingw* | pw32*)
15011 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15012 # as there is no search path for DLLs.
15013 hardcode_libdir_flag_spec='-L$libdir'
15014 allow_undefined_flag=unsupported
15015 always_export_symbols=no
15016 enable_shared_with_static_runtimes=yes
15017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15019 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15021 # If the export-symbols file already is a .def file (1st line
15022 # is EXPORTS), use it as is; otherwise, prepend...
15023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024 cp $export_symbols $output_objdir/$soname.def;
15026 echo EXPORTS > $output_objdir/$soname.def;
15027 cat $export_symbols >> $output_objdir/$soname.def;
15029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15037 hardcode_shlibpath_var=no
15038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15039 export_dynamic_flag_spec='${wl}-E'
15040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15041 # Instead, shared libraries are loaded at an image base (0x10000000 by
15042 # default) and relocated if they conflict, which is a slow very memory
15043 # consuming and fragmenting process. To avoid this, we pick a random,
15044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15047 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'
15051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15053 case $cc_basename,$host_cpu in
15054 pgcc*) # Portland Group C compiler
15055 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15056 tmp_addflag=' $pic_flag'
15058 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15059 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'
15060 tmp_addflag=' $pic_flag -Mnomain' ;;
15061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15062 tmp_addflag=' -i_dynamic' ;;
15063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15064 tmp_addflag=' -i_dynamic -nofor_main' ;;
15065 ifc* | ifort*) # Intel Fortran compiler
15066 tmp_addflag=' -nofor_main' ;;
15068 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15070 if test $supports_anon_versioning = yes; then
15071 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15073 $echo "local: *; };" >> $output_objdir/$libname.ver~
15074 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15092 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15097 *** create shared libraries on Solaris systems. Therefore, libtool
15098 *** is disabling shared libraries support. We urge you to upgrade GNU
15099 *** binutils to release 2.9.1 or newer. Another option is to modify
15100 *** your PATH or compiler configuration so that the native linker is
15101 *** used, and then restart.
15104 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15113 case `$LD -v 2>&1` in
15114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15119 *** reliably create shared libraries on SCO systems. Therefore, libtool
15120 *** is disabling shared libraries support. We urge you to upgrade GNU
15121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15122 *** your PATH or compiler configuration so that the native linker is
15123 *** used, and then restart.
15128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15129 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15142 hardcode_direct=yes
15143 hardcode_shlibpath_var=no
15147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15156 if test "$ld_shlibs" = no; then
15158 hardcode_libdir_flag_spec=
15159 export_dynamic_flag_spec=
15160 whole_archive_flag_spec=
15163 # PORTME fill in a description of your system's linker (not GNU ld)
15166 allow_undefined_flag=unsupported
15167 always_export_symbols=yes
15168 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'
15169 # Note: this linker hardcodes the directories in LIBPATH if there
15170 # are no directories specified by -L.
15171 hardcode_minus_L=yes
15172 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15173 # Neither direct hardcoding nor static linking is supported with a
15175 hardcode_direct=unsupported
15180 if test "$host_cpu" = ia64; then
15181 # On IA64, the linker does run time linking by default, so we don't
15182 # have to do anything special.
15183 aix_use_runtimelinking=no
15184 exp_sym_flag='-Bexport'
15187 # If we're using GNU nm, then we don't want the "-C" option.
15188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15189 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15190 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'
15192 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'
15194 aix_use_runtimelinking=no
15196 # Test if we are trying to use run time linking or normal
15197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15198 # need to do runtime linking.
15199 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15200 for ld_flag in $LDFLAGS; do
15201 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15202 aix_use_runtimelinking=yes
15209 exp_sym_flag='-bexport'
15210 no_entry_flag='-bnoentry'
15213 # When large executables or shared objects are built, AIX ld can
15214 # have problems creating the table of contents. If linking a library
15215 # or program results in "error TOC overflow" add -mminimal-toc to
15216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15220 hardcode_direct=yes
15221 hardcode_libdir_separator=':'
15222 link_all_deplibs=yes
15224 if test "$GCC" = yes; then
15225 case $host_os in aix4.[012]|aix4.[012].*)
15226 # We only want to do this on AIX 4.2 and lower, the check
15227 # below for broken collect2 doesn't work under 4.3+
15228 collect2name=`${CC} -print-prog-name=collect2`
15229 if test -f "$collect2name" && \
15230 strings "$collect2name" | grep resolve_lib_name >/dev/null
15232 # We have reworked collect2
15233 hardcode_direct=yes
15235 # We have old collect2
15236 hardcode_direct=unsupported
15237 # It fails to find uninstalled libraries when the uninstalled
15238 # path is not listed in the libpath. Setting hardcode_minus_L
15239 # to unsupported forces relinking
15240 hardcode_minus_L=yes
15241 hardcode_libdir_flag_spec='-L$libdir'
15242 hardcode_libdir_separator=
15246 shared_flag='-shared'
15247 if test "$aix_use_runtimelinking" = yes; then
15248 shared_flag="$shared_flag "'${wl}-G'
15252 if test "$host_cpu" = ia64; then
15253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15254 # chokes on -Wl,-G. The following line is correct:
15257 if test "$aix_use_runtimelinking" = yes; then
15258 shared_flag='${wl}-G'
15260 shared_flag='${wl}-bM:SRE'
15265 # It seems that -bexpall does not export symbols beginning with
15266 # underscore (_), so it is better to generate a list of symbols to export.
15267 always_export_symbols=yes
15268 if test "$aix_use_runtimelinking" = yes; then
15269 # Warning - without using the other runtime loading flags (-brtl),
15270 # -berok will link without error, but may produce a broken library.
15271 allow_undefined_flag='-berok'
15272 # Determine the default libpath from the value encoded in an empty executable.
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>conftest.er1
15297 grep -v '^ *+' conftest.er1 >conftest.err
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; } &&
15312 { ac_try='test -s conftest$ac_exeext'
15313 { (case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_try") 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15323 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15325 # Check for a 64-bit object if we didn't find anything.
15326 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; }
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15335 rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
15337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15339 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15340 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"
15342 if test "$host_cpu" = ia64; then
15343 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15344 allow_undefined_flag="-z nodefs"
15345 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"
15347 # Determine the default libpath from the value encoded in an empty executable.
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
15372 grep -v '^ *+' conftest.er1 >conftest.err
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378 { (case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_try") 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } &&
15387 { ac_try='test -s conftest$ac_exeext'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15400 # Check for a 64-bit object if we didn't find anything.
15401 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; }
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15410 rm -f core conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15414 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15415 # Warning - without using the other run time loading flags,
15416 # -berok will link without error, but may produce a broken library.
15417 no_undefined_flag=' ${wl}-bernotok'
15418 allow_undefined_flag=' ${wl}-berok'
15419 # Exported symbols can be pulled into shared objects from archives
15420 whole_archive_flag_spec='$convenience'
15421 archive_cmds_need_lc=yes
15422 # This is similar to how AIX traditionally builds its shared libraries.
15423 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'
15429 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)'
15430 hardcode_libdir_flag_spec='-L$libdir'
15431 hardcode_minus_L=yes
15432 # see comment about different semantics on the GNU ld section
15437 export_dynamic_flag_spec=-rdynamic
15440 cygwin* | mingw* | pw32*)
15441 # When not using gcc, we currently assume that we are using
15442 # Microsoft Visual C++.
15443 # hardcode_libdir_flag_spec is actually meaningless, as there is
15444 # no search path for DLLs.
15445 hardcode_libdir_flag_spec=' '
15446 allow_undefined_flag=unsupported
15447 # Tell ltmain to make .lib files, not .a files.
15449 # Tell ltmain to make .dll files, not .so files.
15451 # FIXME: Setting linknames here is a bad hack.
15452 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15453 # The linker will automatically build a .lib file if we build a DLL.
15454 old_archive_From_new_cmds='true'
15455 # FIXME: Should let the user specify the lib program.
15456 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15457 fix_srcfile_path='`cygpath -w "$srcfile"`'
15458 enable_shared_with_static_runtimes=yes
15461 darwin* | rhapsody*)
15463 rhapsody* | darwin1.[012])
15464 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15467 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15468 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15470 case ${MACOSX_DEPLOYMENT_TARGET} in
15472 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15475 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15481 archive_cmds_need_lc=no
15483 hardcode_automatic=yes
15484 hardcode_shlibpath_var=unsupported
15485 whole_archive_flag_spec=''
15486 link_all_deplibs=yes
15487 if test "$GCC" = yes ; then
15488 output_verbose_link_cmd='echo'
15489 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15490 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15492 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}'
15493 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}'
15495 case $cc_basename in
15497 output_verbose_link_cmd='echo'
15498 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15499 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15501 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}'
15502 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}'
15512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_libdir_flag_spec='-L$libdir'
15514 hardcode_shlibpath_var=no
15521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15522 # support. Future versions do this automatically, but an explicit c++rt0.o
15523 # does not break anything, and helps significantly (at the cost of a little
15526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15527 hardcode_libdir_flag_spec='-R$libdir'
15528 hardcode_direct=yes
15529 hardcode_shlibpath_var=no
15532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15535 hardcode_direct=yes
15536 hardcode_minus_L=yes
15537 hardcode_shlibpath_var=no
15540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15541 freebsd* | kfreebsd*-gnu | dragonfly*)
15542 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15543 hardcode_libdir_flag_spec='-R$libdir'
15544 hardcode_direct=yes
15545 hardcode_shlibpath_var=no
15549 if test "$GCC" = yes; then
15550 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'
15552 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'
15554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15555 hardcode_libdir_separator=:
15556 hardcode_direct=yes
15558 # hardcode_minus_L: Not really in the search PATH,
15559 # but as the default location of the library.
15560 hardcode_minus_L=yes
15561 export_dynamic_flag_spec='${wl}-E'
15565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15570 if test "$with_gnu_ld" = no; then
15571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15572 hardcode_libdir_separator=:
15574 hardcode_direct=yes
15575 export_dynamic_flag_spec='${wl}-E'
15577 # hardcode_minus_L: Not really in the search PATH,
15578 # but as the default location of the library.
15579 hardcode_minus_L=yes
15584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15609 if test "$with_gnu_ld" = no; then
15610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15611 hardcode_libdir_separator=:
15615 hardcode_libdir_flag_spec_ld='+b $libdir'
15617 hardcode_shlibpath_var=no
15620 hardcode_direct=yes
15621 export_dynamic_flag_spec='${wl}-E'
15623 # hardcode_minus_L: Not really in the search PATH,
15624 # but as the default location of the library.
15625 hardcode_minus_L=yes
15631 irix5* | irix6* | nonstopux*)
15632 if test "$GCC" = yes; then
15633 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'
15635 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'
15636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15639 hardcode_libdir_separator=:
15640 link_all_deplibs=yes
15644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15647 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15649 hardcode_libdir_flag_spec='-R$libdir'
15650 hardcode_direct=yes
15651 hardcode_shlibpath_var=no
15655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656 hardcode_direct=yes
15657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15658 hardcode_libdir_separator=:
15659 hardcode_shlibpath_var=no
15663 hardcode_direct=yes
15664 hardcode_shlibpath_var=no
15665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15667 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15669 export_dynamic_flag_spec='${wl}-E'
15672 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15674 hardcode_libdir_flag_spec='-R$libdir'
15677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15685 hardcode_libdir_flag_spec='-L$libdir'
15686 hardcode_minus_L=yes
15687 allow_undefined_flag=unsupported
15688 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'
15689 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15693 if test "$GCC" = yes; then
15694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15695 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'
15697 allow_undefined_flag=' -expect_unresolved \*'
15698 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'
15700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15701 hardcode_libdir_separator=:
15704 osf4* | osf5*) # as osf3* with the addition of -msym flag
15705 if test "$GCC" = yes; then
15706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15707 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'
15708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15710 allow_undefined_flag=' -expect_unresolved \*'
15711 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'
15712 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15713 $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'
15715 # Both c and cxx compiler support -rpath directly
15716 hardcode_libdir_flag_spec='-rpath $libdir'
15718 hardcode_libdir_separator=:
15722 no_undefined_flag=' -z text'
15723 if test "$GCC" = yes; then
15725 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15727 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15730 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15732 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15734 hardcode_libdir_flag_spec='-R$libdir'
15735 hardcode_shlibpath_var=no
15737 solaris2.[0-5] | solaris2.[0-5].*) ;;
15739 # The compiler driver will combine linker options so we
15740 # cannot just pass the convience library names through
15741 # without $wl, iff we do not link with $LD.
15742 # Luckily, gcc supports the same syntax we need for Sun Studio.
15743 # Supported since Solaris 2.6 (maybe 2.5.1?)
15746 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15748 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' ;;
15751 link_all_deplibs=yes
15755 if test "x$host_vendor" = xsequent; then
15756 # Use $CC to link under sequent, because it throws in some extra .o
15757 # files that make .init and .fini sections work.
15758 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15760 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15762 hardcode_libdir_flag_spec='-L$libdir'
15763 hardcode_direct=yes
15764 hardcode_minus_L=yes
15765 hardcode_shlibpath_var=no
15769 case $host_vendor in
15771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_direct=yes # is this really true???
15775 ## LD is ld it makes a PLAMLIB
15776 ## CC just makes a GrossModule.
15777 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15778 reload_cmds='$CC -r -o $output$reload_objs'
15782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15786 runpath_var='LD_RUN_PATH'
15787 hardcode_shlibpath_var=no
15791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792 hardcode_shlibpath_var=no
15793 export_dynamic_flag_spec='-Bexport'
15797 if test -d /usr/nec; then
15798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799 hardcode_shlibpath_var=no
15800 runpath_var=LD_RUN_PATH
15801 hardcode_runpath_var=yes
15806 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15807 no_undefined_flag='${wl}-z,text'
15808 archive_cmds_need_lc=no
15809 hardcode_shlibpath_var=no
15810 runpath_var='LD_RUN_PATH'
15812 if test "$GCC" = yes; then
15813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15821 sysv5* | sco3.2v5* | sco5v6*)
15822 # Note: We can NOT use -z defs as we might desire, because we do not
15823 # link with -lc, and that would cause any symbols used from libc to
15824 # always be unresolved, which means just about no library would
15825 # ever link correctly. If we're not using GNU ld we use -z text
15826 # though, which does catch some bad symbols but isn't as heavy-handed
15828 no_undefined_flag='${wl}-z,text'
15829 allow_undefined_flag='${wl}-z,nodefs'
15830 archive_cmds_need_lc=no
15831 hardcode_shlibpath_var=no
15832 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15833 hardcode_libdir_separator=':'
15834 link_all_deplibs=yes
15835 export_dynamic_flag_spec='${wl}-Bexport'
15836 runpath_var='LD_RUN_PATH'
15838 if test "$GCC" = yes; then
15839 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15842 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_libdir_flag_spec='-L$libdir'
15850 hardcode_shlibpath_var=no
15859 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15860 echo "${ECHO_T}$ld_shlibs" >&6; }
15861 test "$ld_shlibs" = no && can_build_shared=no
15864 # Do we need to explicitly link libc?
15866 case "x$archive_cmds_need_lc" in
15868 # Assume -lc should be added
15869 archive_cmds_need_lc=yes
15871 if test "$enable_shared" = yes && test "$GCC" = yes; then
15872 case $archive_cmds in
15874 # FIXME: we may have to deal with multi-command sequences.
15877 # Test whether the compiler implicitly links with -lc since on some
15878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15879 # to ld, don't add -lc before -lgcc.
15880 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15881 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } 2>conftest.err; then
15892 libobjs=conftest.$ac_objext
15894 wl=$lt_prog_compiler_wl
15895 pic_flag=$lt_prog_compiler_pic
15901 lt_save_allow_undefined_flag=$allow_undefined_flag
15902 allow_undefined_flag=
15903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15904 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }
15909 archive_cmds_need_lc=no
15911 archive_cmds_need_lc=yes
15913 allow_undefined_flag=$lt_save_allow_undefined_flag
15915 cat conftest.err 1>&5
15918 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15919 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15928 library_names_spec=
15929 libname_spec='lib$name'
15933 postuninstall_cmds=
15937 shlibpath_overrides_runpath=unknown
15939 dynamic_linker="$host_os ld.so"
15940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15941 if test "$GCC" = yes; then
15942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15944 # if the path contains ";" then we assume it to be the separator
15945 # otherwise default to the standard path separator (i.e. ":") - it is
15946 # assumed that no part of a normal pathname contains ";" but that should
15947 # okay in the real world where ";" in dirpaths is itself problematic.
15948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15955 need_lib_prefix=unknown
15956 hardcode_into_libs=no
15958 # when you set need_version to no, make sure it does not cause -set_version
15959 # flags to be left without arguments
15960 need_version=unknown
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15966 shlibpath_var=LIBPATH
15968 # AIX 3 has no versioning support, so we append a major version to the name.
15969 soname_spec='${libname}${release}${shared_ext}$major'
15976 hardcode_into_libs=yes
15977 if test "$host_cpu" = ia64; then
15978 # AIX 5 supports IA64
15979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15980 shlibpath_var=LD_LIBRARY_PATH
15982 # With GCC up to 2.95.x, collect2 would create an import file
15983 # for dependence libraries. The import file would start with
15984 # the line `#! .'. This would cause the generated library to
15985 # depend on `.', always an invalid library. This was fixed in
15986 # development snapshots of GCC prior to 3.0.
15988 aix4 | aix4.[01] | aix4.[01].*)
15989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15994 can_build_shared=no
15998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15999 # soname into executable. Probably we can add versioning support to
16000 # collect2, so additional links can be useful in future.
16001 if test "$aix_use_runtimelinking" = yes; then
16002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16003 # instead of lib<name>.a to let people know that these are not
16004 # typical AIX shared libraries.
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16007 # We preserve .a as extension for shared libraries through AIX4.2
16008 # and later when we are not doing run time linking.
16009 library_names_spec='${libname}${release}.a $libname.a'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16012 shlibpath_var=LIBPATH
16017 library_names_spec='$libname.ixlibrary $libname.a'
16018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16019 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'
16023 library_names_spec='${libname}${shared_ext}'
16024 dynamic_linker="$host_os ld.so"
16025 shlibpath_var=LIBRARY_PATH
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16037 # the default ld.so.conf also contains /usr/contrib/lib and
16038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16039 # libtool to hard-code these into programs
16042 cygwin* | mingw* | pw32*)
16043 version_type=windows
16048 case $GCC,$host_os in
16049 yes,cygwin* | yes,mingw* | yes,pw32*)
16050 library_names_spec='$libname.dll.a'
16051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16052 postinstall_cmds='base_file=`basename \${file}`~
16053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16054 dldir=$destdir/`dirname \$dlpath`~
16055 test -d \$dldir || mkdir -p \$dldir~
16056 $install_prog $dir/$dlname \$dldir/$dlname~
16057 chmod a+x \$dldir/$dlname'
16058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16059 dlpath=$dir/\$dldll~
16061 shlibpath_overrides_runpath=yes
16065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16066 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16067 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16070 # MinGW DLLs use traditional 'lib' prefix
16071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16073 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16074 # It is most probably a Windows format PATH printed by
16075 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16076 # path with ; separators, and with drive letters. We can handle the
16077 # drive letters (cygwin fileutils understands them), so leave them,
16078 # especially as we might pass files found there to a mingw objdump,
16079 # which wouldn't understand a cygwinified path. Ahh.
16080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16086 # pw32 DLLs use 'pw' prefix rather than 'lib'
16087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16096 dynamic_linker='Win32 ld.exe'
16097 # FIXME: first we should search . and the directory the executable is in
16101 darwin* | rhapsody*)
16102 dynamic_linker="$host_os dyld"
16103 version_type=darwin
16106 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16107 soname_spec='${libname}${release}${major}$shared_ext'
16108 shlibpath_overrides_runpath=yes
16109 shlibpath_var=DYLD_LIBRARY_PATH
16110 shrext_cmds='.dylib'
16111 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16112 if test "$GCC" = yes; then
16113 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"`
16115 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16125 soname_spec='${libname}${release}${shared_ext}$major'
16126 shlibpath_var=LD_LIBRARY_PATH
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16142 dynamic_linker='GNU ld.so'
16145 freebsd* | dragonfly*)
16146 # DragonFly does not have aout. When/if they implement a new
16147 # versioning mechanism, adjust this.
16148 if test -x /usr/bin/objformat; then
16149 objformat=`/usr/bin/objformat`
16152 freebsd[123]*) objformat=aout ;;
16153 *) objformat=elf ;;
16156 version_type=freebsd-$objformat
16157 case $version_type in
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16168 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes
16173 freebsd3.[01]* | freebsdelf3.[01]*)
16174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16179 shlibpath_overrides_runpath=no
16180 hardcode_into_libs=yes
16182 freebsd*) # from 4.6 on
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 hardcode_into_libs=yes
16199 hpux9* | hpux10* | hpux11*)
16200 # Give a soname corresponding to the major version so that dld.sl refuses to
16201 # link against other versions.
16208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.so"
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 if test "X$HPUX_IA64_MODE" = X32; then
16215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16223 hardcode_into_libs=yes
16224 dynamic_linker="$host_os dld.sl"
16225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=SHLIB_PATH
16236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242 postinstall_cmds='chmod 555 $lib'
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 shlibpath_overrides_runpath=no
16254 hardcode_into_libs=yes
16257 irix5* | irix6* | nonstopux*)
16259 nonstopux*) version_type=nonstopux ;;
16261 if test "$lt_cv_prog_gnu_ld" = yes; then
16269 soname_spec='${libname}${release}${shared_ext}$major'
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16272 irix5* | nonstopux*)
16273 libsuff= shlibsuff=
16276 case $LD in # libtool.m4 will add one of these switches to LD
16277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16278 libsuff= shlibsuff= libmagic=32-bit;;
16279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16280 libsuff=32 shlibsuff=N32 libmagic=N32;;
16281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16283 *) libsuff= shlibsuff= libmagic=never-match;;
16287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16288 shlibpath_overrides_runpath=no
16289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16291 hardcode_into_libs=yes
16294 # No shared lib support for Linux oldld, aout, or coff.
16295 linux*oldld* | linux*aout* | linux*coff*)
16299 # This must be Linux ELF.
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 shlibpath_overrides_runpath=no
16309 # This implies no fast_install, which is unacceptable.
16310 # Some rework will be needed to allow for fast_install
16311 # before this can be enabled.
16312 hardcode_into_libs=yes
16314 # Append ld.so.conf contents to the search path
16315 if test -f /etc/ld.so.conf; then
16316 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' ' '`
16317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16320 # We used to test for /lib/ld.so.1 and disable shared libraries on
16321 # powerpc, because MkLinux only supported shared libraries with the
16322 # GNU dynamic linker. Since this was broken with cross compilers,
16323 # most powerpc-linux boxes support dynamic linking these days and
16324 # people can always --disable-shared, the test was removed, and we
16325 # assume the GNU/Linux dynamic linker is in use.
16326 dynamic_linker='GNU/Linux ld.so'
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 shlibpath_overrides_runpath=no
16337 hardcode_into_libs=yes
16338 dynamic_linker='GNU ld.so'
16345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348 dynamic_linker='NetBSD (a.out) ld.so'
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16351 soname_spec='${libname}${release}${shared_ext}$major'
16352 dynamic_linker='NetBSD ld.elf_so'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=yes
16356 hardcode_into_libs=yes
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=yes
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16371 soname_spec='${libname}${release}${shared_ext}$major'
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16378 sys_lib_dlsearch_path_spec="/usr/lib"
16380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16383 *) need_version=no ;;
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16390 openbsd2.[89] | openbsd2.[89].*)
16391 shlibpath_overrides_runpath=no
16394 shlibpath_overrides_runpath=yes
16398 shlibpath_overrides_runpath=yes
16403 libname_spec='$name'
16406 library_names_spec='$libname${shared_ext} $libname.a'
16407 dynamic_linker='OS/2 ld.exe'
16408 shlibpath_var=LIBPATH
16411 osf3* | osf4* | osf5*)
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=yes
16430 hardcode_into_libs=yes
16431 # ldd complains unless libraries are executable
16432 postinstall_cmds='chmod +x $lib'
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 shlibpath_overrides_runpath=yes
16441 if test "$with_gnu_ld" = yes; then
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450 soname_spec='${libname}${release}${shared_ext}$major'
16451 shlibpath_var=LD_LIBRARY_PATH
16452 case $host_vendor in
16454 shlibpath_overrides_runpath=no
16456 export_dynamic_flag_spec='${wl}-Blargedynsym'
16457 runpath_var=LD_RUN_PATH
16465 shlibpath_overrides_runpath=no
16466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16472 if test -d /usr/nec ;then
16474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16475 soname_spec='$libname${shared_ext}.$major'
16476 shlibpath_var=LD_LIBRARY_PATH
16480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16481 version_type=freebsd-elf
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485 soname_spec='${libname}${release}${shared_ext}$major'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 hardcode_into_libs=yes
16488 if test "$with_gnu_ld" = yes; then
16489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16490 shlibpath_overrides_runpath=no
16492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16493 shlibpath_overrides_runpath=yes
16496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16500 sys_lib_dlsearch_path_spec='/usr/lib'
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 shlibpath_var=LD_LIBRARY_PATH
16514 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16515 echo "${ECHO_T}$dynamic_linker" >&6; }
16516 test "$dynamic_linker" = no && can_build_shared=no
16518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16519 if test "$GCC" = yes; then
16520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16523 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16524 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16526 if test -n "$hardcode_libdir_flag_spec" || \
16527 test -n "$runpath_var" || \
16528 test "X$hardcode_automatic" = "Xyes" ; then
16530 # We can hardcode non-existant directories.
16531 if test "$hardcode_direct" != no &&
16532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16533 # have to relink, otherwise we might link with an installed library
16534 # when we should be linking with a yet-to-be-installed one
16535 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16536 test "$hardcode_minus_L" != no; then
16537 # Linking always hardcodes the temporary library directory.
16538 hardcode_action=relink
16540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16541 hardcode_action=immediate
16544 # We cannot hardcode anything, or else we can only hardcode existing
16546 hardcode_action=unsupported
16548 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16549 echo "${ECHO_T}$hardcode_action" >&6; }
16551 if test "$hardcode_action" = relink; then
16552 # Fast installation is not supported
16553 enable_fast_install=no
16554 elif test "$shlibpath_overrides_runpath" = yes ||
16555 test "$enable_shared" = no; then
16556 # Fast installation is not necessary
16557 enable_fast_install=needless
16562 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16563 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16564 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16565 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16566 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16567 { echo "$as_me:$LINENO: result: yes" >&5
16568 echo "${ECHO_T}yes" >&6; }
16570 # FIXME - insert some real tests, host_os isn't really good enough
16573 if test -n "$STRIP" ; then
16574 striplib="$STRIP -x"
16575 { echo "$as_me:$LINENO: result: yes" >&5
16576 echo "${ECHO_T}yes" >&6; }
16578 { echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6; }
16583 { echo "$as_me:$LINENO: result: no" >&5
16584 echo "${ECHO_T}no" >&6; }
16589 if test "x$enable_dlopen" != xyes; then
16590 enable_dlopen=unknown
16591 enable_dlopen_self=unknown
16592 enable_dlopen_self_static=unknown
16599 lt_cv_dlopen="load_add_on"
16601 lt_cv_dlopen_self=yes
16605 lt_cv_dlopen="LoadLibrary"
16610 lt_cv_dlopen="dlopen"
16615 # if libdl is installed we need to link against it
16616 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16617 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 ac_check_lib_save_LIBS=$LIBS
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16630 /* Override any GCC internal prototype to avoid an error.
16631 Use char because int might match the return type of a GCC
16632 builtin and then its argument prototype would still apply. */
16645 rm -f conftest.$ac_objext conftest$ac_exeext
16646 if { (ac_try="$ac_link"
16647 case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_link") 2>conftest.er1
16654 grep -v '^ *+' conftest.er1 >conftest.err
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest$ac_exeext'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_lib_dl_dlopen=yes
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 ac_cv_lib_dl_dlopen=no
16687 rm -f core conftest.err conftest.$ac_objext \
16688 conftest$ac_exeext conftest.$ac_ext
16689 LIBS=$ac_check_lib_save_LIBS
16691 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16692 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16693 if test $ac_cv_lib_dl_dlopen = yes; then
16694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16697 lt_cv_dlopen="dyld"
16699 lt_cv_dlopen_self=yes
16706 { echo "$as_me:$LINENO: checking for shl_load" >&5
16707 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16708 if test "${ac_cv_func_shl_load+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16719 #define shl_load innocuous_shl_load
16721 /* System header to define __stub macros and hopefully few prototypes,
16722 which can conflict with char shl_load (); below.
16723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16724 <limits.h> exists even on freestanding compilers. */
16727 # include <limits.h>
16729 # include <assert.h>
16734 /* Override any GCC internal prototype to avoid an error.
16735 Use char because int might match the return type of a GCC
16736 builtin and then its argument prototype would still apply. */
16741 /* The GNU C library defines this for functions which it implements
16742 to always fail with ENOSYS. Some functions are actually named
16743 something starting with __ and the normal name is an alias. */
16744 #if defined __stub_shl_load || defined __stub___shl_load
16751 return shl_load ();
16756 rm -f conftest.$ac_objext conftest$ac_exeext
16757 if { (ac_try="$ac_link"
16758 case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_link") 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest$ac_exeext'
16781 { (case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_try") 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
16790 ac_cv_func_shl_load=yes
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 ac_cv_func_shl_load=no
16798 rm -f core conftest.err conftest.$ac_objext \
16799 conftest$ac_exeext conftest.$ac_ext
16801 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16802 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16803 if test $ac_cv_func_shl_load = yes; then
16804 lt_cv_dlopen="shl_load"
16806 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16807 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16808 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 ac_check_lib_save_LIBS=$LIBS
16813 cat >conftest.$ac_ext <<_ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16820 /* Override any GCC internal prototype to avoid an error.
16821 Use char because int might match the return type of a GCC
16822 builtin and then its argument prototype would still apply. */
16830 return shl_load ();
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (ac_try="$ac_link"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_link") 2>conftest.er1
16844 grep -v '^ *+' conftest.er1 >conftest.err
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest$ac_exeext'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 ac_cv_lib_dld_shl_load=yes
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 ac_cv_lib_dld_shl_load=no
16877 rm -f core conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
16879 LIBS=$ac_check_lib_save_LIBS
16881 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16882 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16883 if test $ac_cv_lib_dld_shl_load = yes; then
16884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16886 { echo "$as_me:$LINENO: checking for dlopen" >&5
16887 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16888 if test "${ac_cv_func_dlopen+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16899 #define dlopen innocuous_dlopen
16901 /* System header to define __stub macros and hopefully few prototypes,
16902 which can conflict with char dlopen (); below.
16903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16904 <limits.h> exists even on freestanding compilers. */
16907 # include <limits.h>
16909 # include <assert.h>
16914 /* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16921 /* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924 #if defined __stub_dlopen || defined __stub___dlopen
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (ac_try="$ac_link"
16938 case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_link") 2>conftest.er1
16945 grep -v '^ *+' conftest.er1 >conftest.err
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16951 { (case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest$ac_exeext'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_func_dlopen=yes
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 ac_cv_func_dlopen=no
16978 rm -f core conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16981 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16982 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16983 if test $ac_cv_func_dlopen = yes; then
16984 lt_cv_dlopen="dlopen"
16986 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 ac_check_lib_save_LIBS=$LIBS
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (ac_try="$ac_link"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_link") 2>conftest.er1
17024 grep -v '^ *+' conftest.er1 >conftest.err
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } &&
17029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17030 { (case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_try") 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest$ac_exeext'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_lib_dl_dlopen=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_cv_lib_dl_dlopen=no
17057 rm -f core conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059 LIBS=$ac_check_lib_save_LIBS
17061 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17063 if test $ac_cv_lib_dl_dlopen = yes; then
17064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17066 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 ac_check_lib_save_LIBS=$LIBS
17072 LIBS="-lsvld $LIBS"
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17080 /* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17104 grep -v '^ *+' conftest.er1 >conftest.err
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
17109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest$ac_exeext'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_cv_lib_svld_dlopen=yes
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 ac_cv_lib_svld_dlopen=no
17137 rm -f core conftest.err conftest.$ac_objext \
17138 conftest$ac_exeext conftest.$ac_ext
17139 LIBS=$ac_check_lib_save_LIBS
17141 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17143 if test $ac_cv_lib_svld_dlopen = yes; then
17144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17146 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17147 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17148 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 ac_check_lib_save_LIBS=$LIBS
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17170 return dld_link ();
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_cv_lib_dld_dld_link=yes
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 ac_cv_lib_dld_dld_link=no
17217 rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17221 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17223 if test $ac_cv_lib_dld_dld_link = yes; then
17224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17245 if test "x$lt_cv_dlopen" != xno; then
17251 case $lt_cv_dlopen in
17253 save_CPPFLAGS="$CPPFLAGS"
17254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17256 save_LDFLAGS="$LDFLAGS"
17257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17260 LIBS="$lt_cv_dlopen_libs $LIBS"
17262 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17264 if test "${lt_cv_dlopen_self+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 if test "$cross_compiling" = yes; then :
17268 lt_cv_dlopen_self=cross
17270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17271 lt_status=$lt_dlunknown
17272 cat > conftest.$ac_ext <<EOF
17273 #line 17273 "configure"
17274 #include "confdefs.h"
17283 # define LT_DLGLOBAL RTLD_GLOBAL
17286 # define LT_DLGLOBAL DL_GLOBAL
17288 # define LT_DLGLOBAL 0
17292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17293 find out it does not work in some platform. */
17294 #ifndef LT_DLLAZY_OR_NOW
17296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17299 # define LT_DLLAZY_OR_NOW DL_LAZY
17302 # define LT_DLLAZY_OR_NOW RTLD_NOW
17305 # define LT_DLLAZY_OR_NOW DL_NOW
17307 # define LT_DLLAZY_OR_NOW 0
17315 extern "C" void exit (int);
17318 void fnord() { int i=42;}
17321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17322 int status = $lt_dlunknown;
17326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17328 /* dlclose (self); */
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337 (eval $ac_link) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17341 (./conftest; exit; ) >&5 2>/dev/null
17343 case x$lt_status in
17344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17349 # compilation failed
17350 lt_cv_dlopen_self=no
17357 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17358 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17360 if test "x$lt_cv_dlopen_self" = xyes; then
17361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17362 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17363 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17364 if test "${lt_cv_dlopen_self_static+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 if test "$cross_compiling" = yes; then :
17368 lt_cv_dlopen_self_static=cross
17370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17371 lt_status=$lt_dlunknown
17372 cat > conftest.$ac_ext <<EOF
17373 #line 17373 "configure"
17374 #include "confdefs.h"
17383 # define LT_DLGLOBAL RTLD_GLOBAL
17386 # define LT_DLGLOBAL DL_GLOBAL
17388 # define LT_DLGLOBAL 0
17392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17393 find out it does not work in some platform. */
17394 #ifndef LT_DLLAZY_OR_NOW
17396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17399 # define LT_DLLAZY_OR_NOW DL_LAZY
17402 # define LT_DLLAZY_OR_NOW RTLD_NOW
17405 # define LT_DLLAZY_OR_NOW DL_NOW
17407 # define LT_DLLAZY_OR_NOW 0
17415 extern "C" void exit (int);
17418 void fnord() { int i=42;}
17421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17422 int status = $lt_dlunknown;
17426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17428 /* dlclose (self); */
17436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17441 (./conftest; exit; ) >&5 2>/dev/null
17443 case x$lt_status in
17444 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17445 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17446 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17449 # compilation failed
17450 lt_cv_dlopen_self_static=no
17457 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17458 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17461 CPPFLAGS="$save_CPPFLAGS"
17462 LDFLAGS="$save_LDFLAGS"
17467 case $lt_cv_dlopen_self in
17468 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17469 *) enable_dlopen_self=unknown ;;
17472 case $lt_cv_dlopen_self_static in
17473 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17474 *) enable_dlopen_self_static=unknown ;;
17479 # Report which library types will actually be built
17480 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17481 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17482 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17483 echo "${ECHO_T}$can_build_shared" >&6; }
17485 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17486 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17487 test "$can_build_shared" = "no" && enable_shared=no
17489 # On AIX, shared libraries and static libraries use the same namespace, and
17490 # are all built from PIC.
17493 test "$enable_shared" = yes && enable_static=no
17494 if test -n "$RANLIB"; then
17495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17496 postinstall_cmds='$RANLIB $lib'
17501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17502 test "$enable_shared" = yes && enable_static=no
17506 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17507 echo "${ECHO_T}$enable_shared" >&6; }
17509 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17510 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17511 # Make sure either enable_shared or enable_static is yes.
17512 test "$enable_shared" = yes || enable_static=yes
17513 { echo "$as_me:$LINENO: result: $enable_static" >&5
17514 echo "${ECHO_T}$enable_static" >&6; }
17516 # The else clause should only fire when bootstrapping the
17517 # libtool distribution, otherwise you forgot to ship ltmain.sh
17518 # with your package, and you will get complaints that there are
17519 # no rules to generate ltmain.sh.
17520 if test -f "$ltmain"; then
17521 # See if we are running on zsh, and set the options which allow our commands through
17522 # without removal of \ escapes.
17523 if test -n "${ZSH_VERSION+set}" ; then
17524 setopt NO_GLOB_SUBST
17526 # Now quote all the things that may contain metacharacters while being
17527 # careful not to overquote the AC_SUBSTed values. We take copies of the
17528 # variables and quote the copies for generation of the libtool script.
17529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17533 deplibs_check_method reload_flag reload_cmds need_locks \
17534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17535 lt_cv_sys_global_symbol_to_c_name_address \
17536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17537 old_postinstall_cmds old_postuninstall_cmds \
17541 lt_prog_compiler_wl \
17542 lt_prog_compiler_pic \
17543 lt_prog_compiler_static \
17544 lt_prog_compiler_no_builtin_flag \
17545 export_dynamic_flag_spec \
17546 thread_safe_flag_spec \
17547 whole_archive_flag_spec \
17548 enable_shared_with_static_runtimes \
17550 old_archive_from_new_cmds \
17555 compiler_lib_search_path \
17557 archive_expsym_cmds \
17559 postuninstall_cmds \
17560 old_archive_from_expsyms_cmds \
17561 allow_undefined_flag \
17562 no_undefined_flag \
17563 export_symbols_cmds \
17564 hardcode_libdir_flag_spec \
17565 hardcode_libdir_flag_spec_ld \
17566 hardcode_libdir_separator \
17567 hardcode_automatic \
17569 module_expsym_cmds \
17570 lt_cv_prog_compiler_c_o \
17572 include_expsyms; do
17575 old_archive_cmds | \
17576 old_archive_from_new_cmds | \
17578 archive_expsym_cmds | \
17580 module_expsym_cmds | \
17581 old_archive_from_expsyms_cmds | \
17582 export_symbols_cmds | \
17583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17584 postinstall_cmds | postuninstall_cmds | \
17585 old_postinstall_cmds | old_postuninstall_cmds | \
17586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17587 # Double-quote double-evaled strings.
17588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17597 *'\$0 --fallback-echo"')
17598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17602 cfgfile="${ofile}T"
17603 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17605 { echo "$as_me:$LINENO: creating $ofile" >&5
17606 echo "$as_me: creating $ofile" >&6;}
17608 cat <<__EOF__ >> "$cfgfile"
17611 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17612 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17613 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17615 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17616 # Free Software Foundation, Inc.
17618 # This file is part of GNU Libtool:
17619 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17621 # This program is free software; you can redistribute it and/or modify
17622 # it under the terms of the GNU General Public License as published by
17623 # the Free Software Foundation; either version 2 of the License, or
17624 # (at your option) any later version.
17626 # This program is distributed in the hope that it will be useful, but
17627 # WITHOUT ANY WARRANTY; without even the implied warranty of
17628 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17629 # General Public License for more details.
17631 # You should have received a copy of the GNU General Public License
17632 # along with this program; if not, write to the Free Software
17633 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17635 # As a special exception to the GNU General Public License, if you
17636 # distribute this file as part of a program that contains a
17637 # configuration script generated by Autoconf, you may include it under
17638 # the same distribution terms that you use for the rest of that program.
17640 # A sed program that does not truncate output.
17643 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17644 Xsed="$SED -e 1s/^X//"
17646 # The HP-UX ksh and POSIX shell print the target directory to stdout
17647 # if CDPATH is set.
17648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17650 # The names of the tagged configurations supported by this script.
17653 # ### BEGIN LIBTOOL CONFIG
17655 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17657 # Shell to use when invoking shell scripts.
17660 # Whether or not to build shared libraries.
17661 build_libtool_libs=$enable_shared
17663 # Whether or not to build static libraries.
17664 build_old_libs=$enable_static
17666 # Whether or not to add -lc for building shared libraries.
17667 build_libtool_need_lc=$archive_cmds_need_lc
17669 # Whether or not to disallow shared libs when runtime libs are static
17670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17672 # Whether or not to optimize for fast installation.
17673 fast_install=$enable_fast_install
17676 host_alias=$host_alias
17680 # The build system.
17681 build_alias=$build_alias
17685 # An echo program that does not interpret backslashes.
17690 AR_FLAGS=$lt_AR_FLAGS
17695 # LTCC compiler flags.
17696 LTCFLAGS=$lt_LTCFLAGS
17698 # A language-specific compiler.
17701 # Is the compiler the GNU C compiler?
17707 # The linker used to build libraries.
17710 # Whether we need hard or soft links.
17713 # A BSD-compatible nm program.
17716 # A symbol stripping program
17719 # Used to examine libraries when file_magic_cmd begins "file"
17720 MAGIC_CMD=$MAGIC_CMD
17722 # Used on cygwin: DLL creation program.
17725 # Used on cygwin: object dumper.
17728 # Used on cygwin: assembler.
17731 # The name of the directory that contains temporary libtool files.
17734 # How to create reloadable object files.
17735 reload_flag=$lt_reload_flag
17736 reload_cmds=$lt_reload_cmds
17738 # How to pass a linker flag through the compiler.
17739 wl=$lt_lt_prog_compiler_wl
17741 # Object file suffix (normally "o").
17742 objext="$ac_objext"
17744 # Old archive suffix (normally "a").
17747 # Shared library suffix (normally ".so").
17748 shrext_cmds='$shrext_cmds'
17750 # Executable file suffix (normally "").
17753 # Additional compiler flags for building library objects.
17754 pic_flag=$lt_lt_prog_compiler_pic
17757 # What is the maximum length of a command?
17758 max_cmd_len=$lt_cv_sys_max_cmd_len
17760 # Does compiler simultaneously support -c and -o options?
17761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17763 # Must we lock files when doing compilation?
17764 need_locks=$lt_need_locks
17766 # Do we need the lib prefix for modules?
17767 need_lib_prefix=$need_lib_prefix
17769 # Do we need a version for libraries?
17770 need_version=$need_version
17772 # Whether dlopen is supported.
17773 dlopen_support=$enable_dlopen
17775 # Whether dlopen of programs is supported.
17776 dlopen_self=$enable_dlopen_self
17778 # Whether dlopen of statically linked programs is supported.
17779 dlopen_self_static=$enable_dlopen_self_static
17781 # Compiler flag to prevent dynamic linking.
17782 link_static_flag=$lt_lt_prog_compiler_static
17784 # Compiler flag to turn off builtin functions.
17785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17787 # Compiler flag to allow reflexive dlopens.
17788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17790 # Compiler flag to generate shared objects directly from archives.
17791 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17793 # Compiler flag to generate thread-safe objects.
17794 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17796 # Library versioning type.
17797 version_type=$version_type
17799 # Format of library name prefix.
17800 libname_spec=$lt_libname_spec
17802 # List of archive names. First name is the real one, the rest are links.
17803 # The last name is the one that the linker finds with -lNAME.
17804 library_names_spec=$lt_library_names_spec
17806 # The coded name of the library, if different from the real name.
17807 soname_spec=$lt_soname_spec
17809 # Commands used to build and install an old-style archive.
17811 old_archive_cmds=$lt_old_archive_cmds
17812 old_postinstall_cmds=$lt_old_postinstall_cmds
17813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17815 # Create an old-style archive from a shared archive.
17816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17818 # Create a temporary old-style archive to link instead of a shared archive.
17819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17821 # Commands used to build and install a shared archive.
17822 archive_cmds=$lt_archive_cmds
17823 archive_expsym_cmds=$lt_archive_expsym_cmds
17824 postinstall_cmds=$lt_postinstall_cmds
17825 postuninstall_cmds=$lt_postuninstall_cmds
17827 # Commands used to build a loadable module (assumed same as above if empty)
17828 module_cmds=$lt_module_cmds
17829 module_expsym_cmds=$lt_module_expsym_cmds
17831 # Commands to strip libraries.
17832 old_striplib=$lt_old_striplib
17833 striplib=$lt_striplib
17835 # Dependencies to place before the objects being linked to create a
17837 predep_objects=$lt_predep_objects
17839 # Dependencies to place after the objects being linked to create a
17841 postdep_objects=$lt_postdep_objects
17843 # Dependencies to place before the objects being linked to create a
17845 predeps=$lt_predeps
17847 # Dependencies to place after the objects being linked to create a
17849 postdeps=$lt_postdeps
17851 # The library search path used internally by the compiler when linking
17852 # a shared library.
17853 compiler_lib_search_path=$lt_compiler_lib_search_path
17855 # Method to check whether dependent libraries are shared objects.
17856 deplibs_check_method=$lt_deplibs_check_method
17858 # Command to use when deplibs_check_method == file_magic.
17859 file_magic_cmd=$lt_file_magic_cmd
17861 # Flag that allows shared libraries with undefined symbols to be built.
17862 allow_undefined_flag=$lt_allow_undefined_flag
17864 # Flag that forces no undefined symbols.
17865 no_undefined_flag=$lt_no_undefined_flag
17867 # Commands used to finish a libtool library installation in a directory.
17868 finish_cmds=$lt_finish_cmds
17870 # Same as above, but a single script fragment to be evaled but not shown.
17871 finish_eval=$lt_finish_eval
17873 # Take the output of nm and produce a listing of raw symbols and C names.
17874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17876 # Transform the output of nm in a proper C declaration
17877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17879 # Transform the output of nm in a C name address pair
17880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17882 # This is the shared library runtime path variable.
17883 runpath_var=$runpath_var
17885 # This is the shared library path variable.
17886 shlibpath_var=$shlibpath_var
17888 # Is shlibpath searched before the hard-coded library search path?
17889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17891 # How to hardcode a shared library path into an executable.
17892 hardcode_action=$hardcode_action
17894 # Whether we should hardcode library paths into libraries.
17895 hardcode_into_libs=$hardcode_into_libs
17897 # Flag to hardcode \$libdir into a binary during linking.
17898 # This must work even if \$libdir does not exist.
17899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17901 # If ld is used when linking, flag to hardcode \$libdir into
17902 # a binary during linking. This must work even if \$libdir does
17904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17906 # Whether we need a single -rpath flag with a separated argument.
17907 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17909 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17910 # resulting binary.
17911 hardcode_direct=$hardcode_direct
17913 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17914 # resulting binary.
17915 hardcode_minus_L=$hardcode_minus_L
17917 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17918 # the resulting binary.
17919 hardcode_shlibpath_var=$hardcode_shlibpath_var
17921 # Set to yes if building a shared library automatically hardcodes DIR into the library
17922 # and all subsequent libraries and executables linked against it.
17923 hardcode_automatic=$hardcode_automatic
17925 # Variables whose values should be saved in libtool wrapper scripts and
17926 # restored at relink time.
17927 variables_saved_for_relink="$variables_saved_for_relink"
17929 # Whether libtool must link a program against all its dependency libraries.
17930 link_all_deplibs=$link_all_deplibs
17932 # Compile-time system search path for libraries
17933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17935 # Run-time system search path for libraries
17936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17938 # Fix the shell variable \$srcfile for the compiler.
17939 fix_srcfile_path="$fix_srcfile_path"
17941 # Set to yes if exported symbols are required.
17942 always_export_symbols=$always_export_symbols
17944 # The commands to list exported symbols.
17945 export_symbols_cmds=$lt_export_symbols_cmds
17947 # The commands to extract the exported symbol list from a shared archive.
17948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17950 # Symbols that should not be listed in the preloaded symbols.
17951 exclude_expsyms=$lt_exclude_expsyms
17953 # Symbols that must always be exported.
17954 include_expsyms=$lt_include_expsyms
17956 # ### END LIBTOOL CONFIG
17963 cat <<\EOF >> "$cfgfile"
17965 # AIX sometimes has problems with the GCC collect2 program. For some
17966 # reason, if we set the COLLECT_NAMES environment variable, the problems
17967 # vanish in a puff of smoke.
17968 if test "X${COLLECT_NAMES+set}" != Xset; then
17970 export COLLECT_NAMES
17976 # We use sed instead of cat because bash on DJGPP gets confused if
17977 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17978 # text mode, it properly converts lines to CR/LF. This bash problem
17979 # is reportedly fixed, but why not run on old versions too?
17980 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17982 mv -f "$cfgfile" "$ofile" || \
17983 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17987 # If there is no Makefile yet, we rely on a make rule to execute
17988 # `config.status --recheck' to rerun these tests and create the
17989 # libtool script then.
17990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17991 if test -f "$ltmain_in"; then
17992 test -f Makefile && make "$ltmain"
17998 ac_cpp='$CPP $CPPFLAGS'
17999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18006 # Check whether --with-tags was given.
18007 if test "${with_tags+set}" = set; then
18008 withval=$with_tags; tagnames="$withval"
18012 if test -f "$ltmain" && test -n "$tagnames"; then
18013 if test ! -f "${ofile}"; then
18014 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18015 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18018 if test -z "$LTCC"; then
18019 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18020 if test -z "$LTCC"; then
18021 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18022 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18025 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18028 if test -z "$LTCFLAGS"; then
18029 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18032 # Extract list of available tagged configurations in $ofile.
18033 # Note that this assumes the entire list is on one line.
18034 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18037 for tagname in $tagnames; do
18039 # Check whether tagname contains only valid characters
18040 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18042 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18043 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18044 { (exit 1); exit 1; }; }
18048 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18050 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18051 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18052 { (exit 1); exit 1; }; }
18055 # Update the list of available tags.
18056 if test -n "$tagname"; then
18057 echo appending configuration tag \"$tagname\" to $ofile
18061 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18062 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18063 (test "X$CXX" != "Xg++"))) ; then
18065 ac_cpp='$CXXCPP $CPPFLAGS'
18066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18073 archive_cmds_need_lc_CXX=no
18074 allow_undefined_flag_CXX=
18075 always_export_symbols_CXX=no
18076 archive_expsym_cmds_CXX=
18077 export_dynamic_flag_spec_CXX=
18078 hardcode_direct_CXX=no
18079 hardcode_libdir_flag_spec_CXX=
18080 hardcode_libdir_flag_spec_ld_CXX=
18081 hardcode_libdir_separator_CXX=
18082 hardcode_minus_L_CXX=no
18083 hardcode_shlibpath_var_CXX=unsupported
18084 hardcode_automatic_CXX=no
18086 module_expsym_cmds_CXX=
18087 link_all_deplibs_CXX=unknown
18088 old_archive_cmds_CXX=$old_archive_cmds
18089 no_undefined_flag_CXX=
18090 whole_archive_flag_spec_CXX=
18091 enable_shared_with_static_runtimes_CXX=no
18093 # Dependencies to place before and after the object being linked:
18094 predep_objects_CXX=
18095 postdep_objects_CXX=
18098 compiler_lib_search_path_CXX=
18100 # Source file extension for C++ test sources.
18103 # Object file extension for compiled C++ test sources.
18107 # Code to be used in simple compile tests
18108 lt_simple_compile_test_code="int some_variable = 0;\n"
18110 # Code to be used in simple link tests
18111 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18115 # If no C compiler was specified, use CC.
18118 # If no C compiler flags were specified, use CFLAGS.
18119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18121 # Allow CC to be a program name with arguments.
18125 # save warnings/boilerplate of simple test code
18126 ac_outfile=conftest.$ac_objext
18127 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18129 _lt_compiler_boilerplate=`cat conftest.err`
18132 ac_outfile=conftest.$ac_objext
18133 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18135 _lt_linker_boilerplate=`cat conftest.err`
18139 # Allow CC to be a program name with arguments.
18144 lt_save_with_gnu_ld=$with_gnu_ld
18145 lt_save_path_LD=$lt_cv_path_LD
18146 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18147 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18149 $as_unset lt_cv_prog_gnu_ld
18151 if test -n "${lt_cv_path_LDCXX+set}"; then
18152 lt_cv_path_LD=$lt_cv_path_LDCXX
18154 $as_unset lt_cv_path_LD
18156 test -z "${LDCXX+set}" || LD=$LDCXX
18160 for cc_temp in $compiler""; do
18162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18171 # We don't want -fno-exception wen compiling C++ code, so set the
18172 # no_builtin_flag separately
18173 if test "$GXX" = yes; then
18174 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18176 lt_prog_compiler_no_builtin_flag_CXX=
18179 if test "$GXX" = yes; then
18180 # Set up default GNU C++ configuration
18183 # Check whether --with-gnu-ld was given.
18184 if test "${with_gnu_ld+set}" = set; then
18185 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18191 if test "$GCC" = yes; then
18192 # Check if gcc -print-prog-name=ld gives a path.
18193 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18194 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18197 # gcc leaves a trailing carriage return which upsets mingw
18198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18203 # Accept absolute paths.
18205 re_direlt='/[^/][^/]*/\.\./'
18206 # Canonicalize the pathname of ld
18207 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18209 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18211 test -z "$LD" && LD="$ac_prog"
18214 # If it fails, then pretend we aren't using GCC.
18218 # If it is relative, then search for the first ld in PATH.
18219 with_gnu_ld=unknown
18222 elif test "$with_gnu_ld" = yes; then
18223 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18224 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18226 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18227 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18229 if test "${lt_cv_path_LD+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 if test -z "$LD"; then
18233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18234 for ac_dir in $PATH; do
18236 test -z "$ac_dir" && ac_dir=.
18237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18238 lt_cv_path_LD="$ac_dir/$ac_prog"
18239 # Check to see if the program is GNU ld. I'd rather use --version,
18240 # but apparently some variants of GNU ld only accept -v.
18241 # Break only if it was the GNU/non-GNU ld that we prefer.
18242 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18243 *GNU* | *'with BFD'*)
18244 test "$with_gnu_ld" != no && break
18247 test "$with_gnu_ld" != yes && break
18254 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18258 LD="$lt_cv_path_LD"
18259 if test -n "$LD"; then
18260 { echo "$as_me:$LINENO: result: $LD" >&5
18261 echo "${ECHO_T}$LD" >&6; }
18263 { echo "$as_me:$LINENO: result: no" >&5
18264 echo "${ECHO_T}no" >&6; }
18266 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18267 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18268 { (exit 1); exit 1; }; }
18269 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18270 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18271 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18274 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18275 case `$LD -v 2>&1 </dev/null` in
18276 *GNU* | *'with BFD'*)
18277 lt_cv_prog_gnu_ld=yes
18280 lt_cv_prog_gnu_ld=no
18284 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18285 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18286 with_gnu_ld=$lt_cv_prog_gnu_ld
18290 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18291 # archiving commands below assume that GNU ld is being used.
18292 if test "$with_gnu_ld" = yes; then
18293 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18294 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'
18296 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18299 # If archive_cmds runs LD, not CC, wlarc should be empty
18300 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18301 # investigate it a little bit more. (MM)
18304 # ancient GNU ld didn't support --whole-archive et. al.
18305 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18306 grep 'no-whole-archive' > /dev/null; then
18307 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18309 whole_archive_flag_spec_CXX=
18315 # A generic and very simple default shared library creation
18316 # command for GNU C++ for the case where it uses the native
18317 # linker, instead of GNU ld. If possible, this setting should
18318 # overridden to take advantage of the native linker features on
18319 # the platform it is being used on.
18320 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18323 # Commands to make compiler produce verbose output that lists
18324 # what "hidden" libraries, object files and flags are used when
18325 # linking a shared library.
18326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18334 # PORTME: fill in a description of your system's C++ link characteristics
18335 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18340 # FIXME: insert proper C++ library support
18344 if test "$host_cpu" = ia64; then
18345 # On IA64, the linker does run time linking by default, so we don't
18346 # have to do anything special.
18347 aix_use_runtimelinking=no
18348 exp_sym_flag='-Bexport'
18351 aix_use_runtimelinking=no
18353 # Test if we are trying to use run time linking or normal
18354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18355 # need to do runtime linking.
18356 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18357 for ld_flag in $LDFLAGS; do
18360 aix_use_runtimelinking=yes
18368 exp_sym_flag='-bexport'
18369 no_entry_flag='-bnoentry'
18372 # When large executables or shared objects are built, AIX ld can
18373 # have problems creating the table of contents. If linking a library
18374 # or program results in "error TOC overflow" add -mminimal-toc to
18375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18378 archive_cmds_CXX=''
18379 hardcode_direct_CXX=yes
18380 hardcode_libdir_separator_CXX=':'
18381 link_all_deplibs_CXX=yes
18383 if test "$GXX" = yes; then
18384 case $host_os in aix4.[012]|aix4.[012].*)
18385 # We only want to do this on AIX 4.2 and lower, the check
18386 # below for broken collect2 doesn't work under 4.3+
18387 collect2name=`${CC} -print-prog-name=collect2`
18388 if test -f "$collect2name" && \
18389 strings "$collect2name" | grep resolve_lib_name >/dev/null
18391 # We have reworked collect2
18392 hardcode_direct_CXX=yes
18394 # We have old collect2
18395 hardcode_direct_CXX=unsupported
18396 # It fails to find uninstalled libraries when the uninstalled
18397 # path is not listed in the libpath. Setting hardcode_minus_L
18398 # to unsupported forces relinking
18399 hardcode_minus_L_CXX=yes
18400 hardcode_libdir_flag_spec_CXX='-L$libdir'
18401 hardcode_libdir_separator_CXX=
18405 shared_flag='-shared'
18406 if test "$aix_use_runtimelinking" = yes; then
18407 shared_flag="$shared_flag "'${wl}-G'
18411 if test "$host_cpu" = ia64; then
18412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18413 # chokes on -Wl,-G. The following line is correct:
18416 if test "$aix_use_runtimelinking" = yes; then
18417 shared_flag='${wl}-G'
18419 shared_flag='${wl}-bM:SRE'
18424 # It seems that -bexpall does not export symbols beginning with
18425 # underscore (_), so it is better to generate a list of symbols to export.
18426 always_export_symbols_CXX=yes
18427 if test "$aix_use_runtimelinking" = yes; then
18428 # Warning - without using the other runtime loading flags (-brtl),
18429 # -berok will link without error, but may produce a broken library.
18430 allow_undefined_flag_CXX='-berok'
18431 # Determine the default libpath from the value encoded in an empty executable.
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (ac_try="$ac_link"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_link") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest$ac_exeext'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18484 # Check for a 64-bit object if we didn't find anything.
18485 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; }
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18494 rm -f core conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18500 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"
18502 if test "$host_cpu" = ia64; then
18503 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18504 allow_undefined_flag_CXX="-z nodefs"
18505 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"
18507 # Determine the default libpath from the value encoded in an empty executable.
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18560 # Check for a 64-bit object if we didn't find anything.
18561 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; }
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18570 rm -f core conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18574 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18575 # Warning - without using the other run time loading flags,
18576 # -berok will link without error, but may produce a broken library.
18577 no_undefined_flag_CXX=' ${wl}-bernotok'
18578 allow_undefined_flag_CXX=' ${wl}-berok'
18579 # Exported symbols can be pulled into shared objects from archives
18580 whole_archive_flag_spec_CXX='$convenience'
18581 archive_cmds_need_lc_CXX=yes
18582 # This is similar to how AIX traditionally builds its shared libraries.
18583 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'
18589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18590 allow_undefined_flag_CXX=unsupported
18591 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18592 # support --undefined. This deserves some investigation. FIXME
18593 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18600 case $cc_basename in
18602 # FIXME: insert proper C++ library support
18608 cygwin* | mingw* | pw32*)
18609 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18610 # as there is no search path for DLLs.
18611 hardcode_libdir_flag_spec_CXX='-L$libdir'
18612 allow_undefined_flag_CXX=unsupported
18613 always_export_symbols_CXX=no
18614 enable_shared_with_static_runtimes_CXX=yes
18616 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18617 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'
18618 # If the export-symbols file already is a .def file (1st line
18619 # is EXPORTS), use it as is; otherwise, prepend...
18620 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18621 cp $export_symbols $output_objdir/$soname.def;
18623 echo EXPORTS > $output_objdir/$soname.def;
18624 cat $export_symbols >> $output_objdir/$soname.def;
18626 $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'
18631 darwin* | rhapsody*)
18633 rhapsody* | darwin1.[012])
18634 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18637 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18640 case ${MACOSX_DEPLOYMENT_TARGET} in
18642 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18645 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18651 archive_cmds_need_lc_CXX=no
18652 hardcode_direct_CXX=no
18653 hardcode_automatic_CXX=yes
18654 hardcode_shlibpath_var_CXX=unsupported
18655 whole_archive_flag_spec_CXX=''
18656 link_all_deplibs_CXX=yes
18658 if test "$GXX" = yes ; then
18659 lt_int_apple_cc_single_mod=no
18660 output_verbose_link_cmd='echo'
18661 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18662 lt_int_apple_cc_single_mod=yes
18664 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18665 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18667 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'
18669 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18671 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18672 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}'
18674 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}'
18676 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}'
18678 case $cc_basename in
18680 output_verbose_link_cmd='echo'
18681 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'
18682 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18683 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18684 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}'
18685 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}'
18695 case $cc_basename in
18697 # FIXME: insert proper C++ library support
18701 # Green Hills C++ Compiler
18702 # FIXME: insert proper C++ library support
18706 # FIXME: insert proper C++ library support
18712 # C++ shared libraries reported to be fairly broken before switch to ELF
18716 archive_cmds_need_lc_CXX=no
18718 freebsd* | kfreebsd*-gnu | dragonfly*)
18719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18727 hardcode_libdir_separator_CXX=:
18728 export_dynamic_flag_spec_CXX='${wl}-E'
18729 hardcode_direct_CXX=yes
18730 hardcode_minus_L_CXX=yes # Not in the search PATH,
18731 # but as the default
18732 # location of the library.
18734 case $cc_basename in
18736 # FIXME: insert proper C++ library support
18740 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'
18741 # Commands to make compiler produce verbose output that lists
18742 # what "hidden" libraries, object files and flags are used when
18743 # linking a shared library.
18745 # There doesn't appear to be a way to prevent this compiler from
18746 # explicitly linking system object files so we need to strip them
18747 # from the output so that they don't get included in the library
18749 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'
18752 if test "$GXX" = yes; then
18753 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'
18755 # FIXME: insert proper C++ library support
18762 if test $with_gnu_ld = no; then
18763 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18764 hardcode_libdir_separator_CXX=:
18768 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18771 export_dynamic_flag_spec_CXX='${wl}-E'
18777 hardcode_direct_CXX=no
18778 hardcode_shlibpath_var_CXX=no
18781 hardcode_direct_CXX=yes
18782 hardcode_minus_L_CXX=yes # Not in the search PATH,
18783 # but as the default
18784 # location of the library.
18788 case $cc_basename in
18790 # FIXME: insert proper C++ library support
18796 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18799 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18805 # Commands to make compiler produce verbose output that lists
18806 # what "hidden" libraries, object files and flags are used when
18807 # linking a shared library.
18809 # There doesn't appear to be a way to prevent this compiler from
18810 # explicitly linking system object files so we need to strip them
18811 # from the output so that they don't get included in the library
18813 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'
18816 if test "$GXX" = yes; then
18817 if test $with_gnu_ld = no; then
18820 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18823 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18826 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'
18831 # FIXME: insert proper C++ library support
18838 hardcode_direct_CXX=no
18839 hardcode_shlibpath_var_CXX=no
18840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18841 export_dynamic_flag_spec_CXX='${wl}-E'
18842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18843 # Instead, shared libraries are loaded at an image base (0x10000000 by
18844 # default) and relocated if they conflict, which is a slow very memory
18845 # consuming and fragmenting process. To avoid this, we pick a random,
18846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18848 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'
18849 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'
18852 case $cc_basename in
18855 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'
18857 # Archives containing C++ object files must be created using
18858 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18859 # necessary to make sure instantiated templates are included
18861 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18864 if test "$GXX" = yes; then
18865 if test "$with_gnu_ld" = no; then
18866 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'
18868 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'
18871 link_all_deplibs_CXX=yes
18874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18875 hardcode_libdir_separator_CXX=:
18878 case $cc_basename in
18880 # Kuck and Associates, Inc. (KAI) C++ Compiler
18882 # KCC will only create a shared library if the output file
18883 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18884 # to its proper name (with version) after linking.
18885 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'
18886 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'
18887 # Commands to make compiler produce verbose output that lists
18888 # what "hidden" libraries, object files and flags are used when
18889 # linking a shared library.
18891 # There doesn't appear to be a way to prevent this compiler from
18892 # explicitly linking system object files so we need to strip them
18893 # from the output so that they don't get included in the library
18895 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'
18897 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18900 # Archives containing C++ object files must be created using
18901 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18902 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18907 # version 8.0 and above of icpc choke on multiply defined symbols
18908 # if we add $predep_objects and $postdep_objects, however 7.1 and
18909 # earlier do not add the objects themselves.
18910 case `$CC -V 2>&1` in
18912 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18913 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'
18915 *) # Version 8.0 or newer
18918 ia64*) tmp_idyn=' -i_dynamic';;
18920 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18921 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'
18924 archive_cmds_need_lc_CXX=no
18925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18927 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18930 # Portland Group C++ compiler
18931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18932 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'
18934 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18936 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'
18940 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18941 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'
18943 runpath_var=LD_RUN_PATH
18944 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18945 hardcode_libdir_separator_CXX=:
18947 # Commands to make compiler produce verbose output that lists
18948 # what "hidden" libraries, object files and flags are used when
18949 # linking a shared library.
18951 # There doesn't appear to be a way to prevent this compiler from
18952 # explicitly linking system object files so we need to strip them
18953 # from the output so that they don't get included in the library
18955 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'
18960 # FIXME: insert proper C++ library support
18964 # FIXME: insert proper C++ library support
18968 case $cc_basename in
18970 # FIXME: insert proper C++ library support
18974 # FIXME: insert proper C++ library support
18980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18981 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18983 hardcode_libdir_flag_spec_CXX='-R$libdir'
18984 hardcode_direct_CXX=yes
18985 hardcode_shlibpath_var_CXX=no
18987 # Workaround some broken pre-1.5 toolchains
18988 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18991 # C++ shared libraries are fairly broken
18995 hardcode_direct_CXX=yes
18996 hardcode_shlibpath_var_CXX=no
18997 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19000 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19001 export_dynamic_flag_spec_CXX='${wl}-E'
19002 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19004 output_verbose_link_cmd='echo'
19007 case $cc_basename in
19009 # Kuck and Associates, Inc. (KAI) C++ Compiler
19011 # KCC will only create a shared library if the output file
19012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19013 # to its proper name (with version) after linking.
19014 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'
19016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19017 hardcode_libdir_separator_CXX=:
19019 # Archives containing C++ object files must be created using
19020 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19021 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19025 # Rational C++ 2.4.1
19026 # FIXME: insert proper C++ library support
19030 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19031 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'
19033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19034 hardcode_libdir_separator_CXX=:
19036 # Commands to make compiler produce verbose output that lists
19037 # what "hidden" libraries, object files and flags are used when
19038 # linking a shared library.
19040 # There doesn't appear to be a way to prevent this compiler from
19041 # explicitly linking system object files so we need to strip them
19042 # from the output so that they don't get included in the library
19044 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'
19047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19049 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'
19051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19052 hardcode_libdir_separator_CXX=:
19054 # Commands to make compiler produce verbose output that lists
19055 # what "hidden" libraries, object files and flags are used when
19056 # linking a shared library.
19057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19060 # FIXME: insert proper C++ library support
19067 case $cc_basename in
19069 # Kuck and Associates, Inc. (KAI) C++ Compiler
19071 # KCC will only create a shared library if the output file
19072 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19073 # to its proper name (with version) after linking.
19074 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'
19076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19077 hardcode_libdir_separator_CXX=:
19079 # Archives containing C++ object files must be created using
19080 # the KAI C++ compiler.
19081 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19084 # Rational C++ 2.4.1
19085 # FIXME: insert proper C++ library support
19089 allow_undefined_flag_CXX=' -expect_unresolved \*'
19090 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'
19091 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19092 echo "-hidden">> $lib.exp~
19093 $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~
19096 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19097 hardcode_libdir_separator_CXX=:
19099 # Commands to make compiler produce verbose output that lists
19100 # what "hidden" libraries, object files and flags are used when
19101 # linking a shared library.
19103 # There doesn't appear to be a way to prevent this compiler from
19104 # explicitly linking system object files so we need to strip them
19105 # from the output so that they don't get included in the library
19107 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'
19110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19112 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'
19114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19117 # Commands to make compiler produce verbose output that lists
19118 # what "hidden" libraries, object files and flags are used when
19119 # linking a shared library.
19120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19123 # FIXME: insert proper C++ library support
19130 # FIXME: insert proper C++ library support
19134 case $cc_basename in
19137 # FIXME: insert proper C++ library support
19142 # FIXME: insert proper C++ library support
19146 # FIXME: insert proper C++ library support
19152 case $cc_basename in
19154 # Sun C++ 4.2, 5.x and Centerline C++
19155 archive_cmds_need_lc_CXX=yes
19156 no_undefined_flag_CXX=' -zdefs'
19157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19159 $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'
19161 hardcode_libdir_flag_spec_CXX='-R$libdir'
19162 hardcode_shlibpath_var_CXX=no
19164 solaris2.[0-5] | solaris2.[0-5].*) ;;
19166 # The C++ compiler is used as linker so we must use $wl
19167 # flag to pass the commands to the underlying system
19168 # linker. We must also pass each convience library through
19169 # to the system linker between allextract/defaultextract.
19170 # The C++ compiler will combine linker options so we
19171 # cannot just pass the convience library names through
19173 # Supported since Solaris 2.6 (maybe 2.5.1?)
19174 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'
19177 link_all_deplibs_CXX=yes
19179 output_verbose_link_cmd='echo'
19181 # Archives containing C++ object files must be created using
19182 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19183 # necessary to make sure instantiated templates are included
19185 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19188 # Green Hills C++ Compiler
19189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19191 # The C++ compiler must be used to create the archive.
19192 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19195 # GNU C++ compiler with Solaris linker
19196 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19197 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19198 if $CC --version | grep -v '^2\.7' > /dev/null; then
19199 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19200 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19201 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19203 # Commands to make compiler produce verbose output that lists
19204 # what "hidden" libraries, object files and flags are used when
19205 # linking a shared library.
19206 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19208 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19210 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19211 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19212 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19214 # Commands to make compiler produce verbose output that lists
19215 # what "hidden" libraries, object files and flags are used when
19216 # linking a shared library.
19217 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19220 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19225 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19226 no_undefined_flag_CXX='${wl}-z,text'
19227 archive_cmds_need_lc_CXX=no
19228 hardcode_shlibpath_var_CXX=no
19229 runpath_var='LD_RUN_PATH'
19231 case $cc_basename in
19233 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19237 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19242 sysv5* | sco3.2v5* | sco5v6*)
19243 # Note: We can NOT use -z defs as we might desire, because we do not
19244 # link with -lc, and that would cause any symbols used from libc to
19245 # always be unresolved, which means just about no library would
19246 # ever link correctly. If we're not using GNU ld we use -z text
19247 # though, which does catch some bad symbols but isn't as heavy-handed
19249 # For security reasons, it is highly recommended that you always
19250 # use absolute paths for naming shared libraries, and exclude the
19251 # DT_RUNPATH tag from executables and libraries. But doing so
19252 # requires that you compile everything twice, which is a pain.
19253 # So that behaviour is only enabled if SCOABSPATH is set to a
19254 # non-empty value in the environment. Most likely only useful for
19255 # creating official distributions of packages.
19256 # This is a hack until libtool officially supports absolute path
19257 # names for shared libraries.
19258 no_undefined_flag_CXX='${wl}-z,text'
19259 allow_undefined_flag_CXX='${wl}-z,nodefs'
19260 archive_cmds_need_lc_CXX=no
19261 hardcode_shlibpath_var_CXX=no
19262 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19263 hardcode_libdir_separator_CXX=':'
19264 link_all_deplibs_CXX=yes
19265 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19266 runpath_var='LD_RUN_PATH'
19268 case $cc_basename in
19270 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19271 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19274 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19275 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19280 case $cc_basename in
19282 # NonStop-UX NCC 3.20
19283 # FIXME: insert proper C++ library support
19287 # FIXME: insert proper C++ library support
19293 # FIXME: insert proper C++ library support
19297 # FIXME: insert proper C++ library support
19301 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19302 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19303 test "$ld_shlibs_CXX" = no && can_build_shared=no
19309 cat > conftest.$ac_ext <<EOF
19313 Foo (void) { a = 0; }
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; then
19324 # Parse the compiler output and extract the necessary
19325 # objects, libraries and library flags.
19327 # Sentinel used to keep track of whether or not we are before
19328 # the conftest object file.
19329 pre_test_object_deps_done=no
19331 # The `*' in the case matches for architectures that use `case' in
19332 # $output_verbose_cmd can trigger glob expansion during the loop
19333 # eval without this substitution.
19334 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19336 for p in `eval $output_verbose_link_cmd`; do
19340 # Some compilers place space between "-{L,R}" and the path.
19341 # Remove the space.
19342 if test $p = "-L" \
19343 || test $p = "-R"; then
19350 if test "$pre_test_object_deps_done" = no; then
19353 # Internal compiler library paths should come after those
19354 # provided the user. The postdeps already come after the
19355 # user supplied libs so there is no need to process them.
19356 if test -z "$compiler_lib_search_path_CXX"; then
19357 compiler_lib_search_path_CXX="${prev}${p}"
19359 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19362 # The "-l" case would never come before the object being
19363 # linked, so don't bother handling this case.
19366 if test -z "$postdeps_CXX"; then
19367 postdeps_CXX="${prev}${p}"
19369 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19375 # This assumes that the test object file only shows up
19376 # once in the compiler output.
19377 if test "$p" = "conftest.$objext"; then
19378 pre_test_object_deps_done=yes
19382 if test "$pre_test_object_deps_done" = no; then
19383 if test -z "$predep_objects_CXX"; then
19384 predep_objects_CXX="$p"
19386 predep_objects_CXX="$predep_objects_CXX $p"
19389 if test -z "$postdep_objects_CXX"; then
19390 postdep_objects_CXX="$p"
19392 postdep_objects_CXX="$postdep_objects_CXX $p"
19397 *) ;; # Ignore the rest.
19405 echo "libtool.m4: error: problem compiling CXX test program"
19408 $rm -f confest.$objext
19410 # PORTME: override above test on systems where it is broken
19413 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19414 # hack all around it, let's just trust "g++" to DTRT.
19415 predep_objects_CXX=
19416 postdep_objects_CXX=
19421 case $cc_basename in
19423 # Adding this requires a known-good setup of shared libraries for
19424 # Sun compiler versions before 5.6, else PIC objects from an old
19425 # archive will be linked into the output, leading to subtle bugs.
19426 postdeps_CXX='-lCstd -lCrun'
19433 case " $postdeps_CXX " in
19434 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19437 lt_prog_compiler_wl_CXX=
19438 lt_prog_compiler_pic_CXX=
19439 lt_prog_compiler_static_CXX=
19441 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19442 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19444 # C++ specific cases for pic, static, wl, etc.
19445 if test "$GXX" = yes; then
19446 lt_prog_compiler_wl_CXX='-Wl,'
19447 lt_prog_compiler_static_CXX='-static'
19451 # All AIX code is PIC.
19452 if test "$host_cpu" = ia64; then
19453 # AIX 5 now supports IA64 processor
19454 lt_prog_compiler_static_CXX='-Bstatic'
19458 # FIXME: we need at least 68020 code to build shared libraries, but
19459 # adding the `-m68020' flag to GCC prevents building anything better,
19461 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19463 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19464 # PIC is the default for these OSes.
19466 mingw* | os2* | pw32*)
19467 # This hack is so that the source file can tell whether it is being
19468 # built for inclusion in a dll (and should export symbols for example).
19469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19471 darwin* | rhapsody*)
19472 # PIC is the default on this platform
19473 # Common symbols not allowed in MH_DYLIB files
19474 lt_prog_compiler_pic_CXX='-fno-common'
19477 # DJGPP does not support shared libraries at all
19478 lt_prog_compiler_pic_CXX=
19481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19482 # Instead, we relocate shared libraries at runtime.
19485 if test -d /usr/nec; then
19486 lt_prog_compiler_pic_CXX=-Kconform_pic
19490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19491 # not for PA HP-UX.
19496 lt_prog_compiler_pic_CXX='-fPIC'
19501 lt_prog_compiler_pic_CXX='-fPIC'
19507 # All AIX code is PIC.
19508 if test "$host_cpu" = ia64; then
19509 # AIX 5 now supports IA64 processor
19510 lt_prog_compiler_static_CXX='-Bstatic'
19512 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19516 case $cc_basename in
19518 # Green Hills C++ Compiler
19519 # _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"
19524 # PIC is the default on this platform
19525 # Common symbols not allowed in MH_DYLIB files
19526 case $cc_basename in
19528 lt_prog_compiler_pic_CXX='-qnocommon'
19529 lt_prog_compiler_wl_CXX='-Wl,'
19534 case $cc_basename in
19536 lt_prog_compiler_pic_CXX='-KPIC'
19539 # Green Hills C++ Compiler
19540 lt_prog_compiler_pic_CXX='-pic'
19546 freebsd* | kfreebsd*-gnu | dragonfly*)
19547 # FreeBSD uses GNU C++
19549 hpux9* | hpux10* | hpux11*)
19550 case $cc_basename in
19552 lt_prog_compiler_wl_CXX='-Wl,'
19553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19554 if test "$host_cpu" != ia64; then
19555 lt_prog_compiler_pic_CXX='+Z'
19559 lt_prog_compiler_wl_CXX='-Wl,'
19560 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19566 lt_prog_compiler_pic_CXX='+Z'
19575 # This is c89, which is MS Visual C++ (no shared libs)
19576 # Anyone wants to do a port?
19578 irix5* | irix6* | nonstopux*)
19579 case $cc_basename in
19581 lt_prog_compiler_wl_CXX='-Wl,'
19582 lt_prog_compiler_static_CXX='-non_shared'
19583 # CC pic flag -KPIC is the default.
19590 case $cc_basename in
19593 lt_prog_compiler_wl_CXX='--backend -Wl,'
19594 lt_prog_compiler_pic_CXX='-fPIC'
19598 lt_prog_compiler_wl_CXX='-Wl,'
19599 lt_prog_compiler_pic_CXX='-KPIC'
19600 lt_prog_compiler_static_CXX='-static'
19603 # Portland Group C++ compiler.
19604 lt_prog_compiler_wl_CXX='-Wl,'
19605 lt_prog_compiler_pic_CXX='-fpic'
19606 lt_prog_compiler_static_CXX='-Bstatic'
19610 # Make sure the PIC flag is empty. It appears that all Alpha
19611 # Linux and Compaq Tru64 Unix objects are PIC.
19612 lt_prog_compiler_pic_CXX=
19613 lt_prog_compiler_static_CXX='-non_shared'
19624 case $cc_basename in
19626 lt_prog_compiler_pic_CXX='-W c,exportall'
19634 osf3* | osf4* | osf5*)
19635 case $cc_basename in
19637 lt_prog_compiler_wl_CXX='--backend -Wl,'
19640 # Rational C++ 2.4.1
19641 lt_prog_compiler_pic_CXX='-pic'
19644 # Digital/Compaq C++
19645 lt_prog_compiler_wl_CXX='-Wl,'
19646 # Make sure the PIC flag is empty. It appears that all Alpha
19647 # Linux and Compaq Tru64 Unix objects are PIC.
19648 lt_prog_compiler_pic_CXX=
19649 lt_prog_compiler_static_CXX='-non_shared'
19658 case $cc_basename in
19660 # Sun C++ 4.2, 5.x and Centerline C++
19661 lt_prog_compiler_pic_CXX='-KPIC'
19662 lt_prog_compiler_static_CXX='-Bstatic'
19663 lt_prog_compiler_wl_CXX='-Qoption ld '
19666 # Green Hills C++ Compiler
19667 lt_prog_compiler_pic_CXX='-PIC'
19674 case $cc_basename in
19677 lt_prog_compiler_pic_CXX='-pic'
19678 lt_prog_compiler_static_CXX='-Bstatic'
19682 lt_prog_compiler_pic_CXX='-pic'
19689 case $cc_basename in
19691 # NonStop-UX NCC 3.20
19692 lt_prog_compiler_pic_CXX='-KPIC'
19698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19699 case $cc_basename in
19701 lt_prog_compiler_wl_CXX='-Wl,'
19702 lt_prog_compiler_pic_CXX='-KPIC'
19703 lt_prog_compiler_static_CXX='-Bstatic'
19710 lt_prog_compiler_can_build_shared_CXX=no
19715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19716 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19719 # Check to make sure the PIC flag actually works.
19721 if test -n "$lt_prog_compiler_pic_CXX"; then
19723 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19725 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 lt_prog_compiler_pic_works_CXX=no
19729 ac_outfile=conftest.$ac_objext
19730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19732 # Insert the option either (1) after the last *FLAGS variable, or
19733 # (2) before a word containing "conftest.", or (3) at the end.
19734 # Note that $ac_compile itself does not contain backslashes and begins
19735 # with a dollar sign (not a hyphen), so the echo should work correctly.
19736 # The option is referenced via a variable to avoid confusing sed.
19737 lt_compile=`echo "$ac_compile" | $SED \
19738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19740 -e 's:$: $lt_compiler_flag:'`
19741 (eval echo "\"\$as_me:19741: $lt_compile\"" >&5)
19742 (eval "$lt_compile" 2>conftest.err)
19744 cat conftest.err >&5
19745 echo "$as_me:19745: \$? = $ac_status" >&5
19746 if (exit $ac_status) && test -s "$ac_outfile"; then
19747 # The compiler can only warn and ignore the option if not recognized
19748 # So say no if there are warnings other than the usual output.
19749 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19752 lt_prog_compiler_pic_works_CXX=yes
19758 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19759 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19761 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19762 case $lt_prog_compiler_pic_CXX in
19764 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19767 lt_prog_compiler_pic_CXX=
19768 lt_prog_compiler_can_build_shared_CXX=no
19773 # For platforms which do not support PIC, -DPIC is meaningless:
19775 lt_prog_compiler_pic_CXX=
19778 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19783 # Check to make sure the static flag actually works.
19785 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19786 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19787 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19788 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 lt_prog_compiler_static_works_CXX=no
19792 save_LDFLAGS="$LDFLAGS"
19793 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19794 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19795 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19796 # The linker can only warn and ignore the option if not recognized
19797 # So say no if there are warnings
19798 if test -s conftest.err; then
19799 # Append any errors to the config.log.
19800 cat conftest.err 1>&5
19801 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19803 if diff conftest.exp conftest.er2 >/dev/null; then
19804 lt_prog_compiler_static_works_CXX=yes
19807 lt_prog_compiler_static_works_CXX=yes
19811 LDFLAGS="$save_LDFLAGS"
19814 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19815 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19817 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19820 lt_prog_compiler_static_CXX=
19824 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19825 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19826 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 lt_cv_prog_compiler_c_o_CXX=no
19830 $rm -r conftest 2>/dev/null
19834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19836 lt_compiler_flag="-o out/conftest2.$ac_objext"
19837 # Insert the option either (1) after the last *FLAGS variable, or
19838 # (2) before a word containing "conftest.", or (3) at the end.
19839 # Note that $ac_compile itself does not contain backslashes and begins
19840 # with a dollar sign (not a hyphen), so the echo should work correctly.
19841 lt_compile=`echo "$ac_compile" | $SED \
19842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19844 -e 's:$: $lt_compiler_flag:'`
19845 (eval echo "\"\$as_me:19845: $lt_compile\"" >&5)
19846 (eval "$lt_compile" 2>out/conftest.err)
19848 cat out/conftest.err >&5
19849 echo "$as_me:19849: \$? = $ac_status" >&5
19850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19852 # The compiler can only warn and ignore the option if not recognized
19853 # So say no if there are warnings
19854 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19857 lt_cv_prog_compiler_c_o_CXX=yes
19862 # SGI C++ compiler will create directory out/ii_files/ for
19863 # template instantiation
19864 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19865 $rm out/* && rmdir out
19871 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19872 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19875 hard_links="nottested"
19876 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19877 # do not overwrite the value of need_locks provided by the user
19878 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19879 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19884 ln conftest.a conftest.b 2>&5 || hard_links=no
19885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19886 { echo "$as_me:$LINENO: result: $hard_links" >&5
19887 echo "${ECHO_T}$hard_links" >&6; }
19888 if test "$hard_links" = no; then
19889 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19890 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19897 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19898 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19903 # If we're using GNU nm, then we don't want the "-C" option.
19904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19905 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19906 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'
19908 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'
19912 export_symbols_cmds_CXX="$ltdll_cmds"
19915 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'
19918 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19922 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19923 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19924 test "$ld_shlibs_CXX" = no && can_build_shared=no
19927 # Do we need to explicitly link libc?
19929 case "x$archive_cmds_need_lc_CXX" in
19931 # Assume -lc should be added
19932 archive_cmds_need_lc_CXX=yes
19934 if test "$enable_shared" = yes && test "$GCC" = yes; then
19935 case $archive_cmds_CXX in
19937 # FIXME: we may have to deal with multi-command sequences.
19940 # Test whether the compiler implicitly links with -lc since on some
19941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19942 # to ld, don't add -lc before -lgcc.
19943 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19949 (eval $ac_compile) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } 2>conftest.err; then
19955 libobjs=conftest.$ac_objext
19957 wl=$lt_prog_compiler_wl_CXX
19958 pic_flag=$lt_prog_compiler_pic_CXX
19964 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19965 allow_undefined_flag_CXX=
19966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19967 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }
19972 archive_cmds_need_lc_CXX=no
19974 archive_cmds_need_lc_CXX=yes
19976 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19978 cat conftest.err 1>&5
19981 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19982 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19989 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19991 library_names_spec=
19992 libname_spec='lib$name'
19996 postuninstall_cmds=
20000 shlibpath_overrides_runpath=unknown
20002 dynamic_linker="$host_os ld.so"
20003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20004 if test "$GCC" = yes; then
20005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20007 # if the path contains ";" then we assume it to be the separator
20008 # otherwise default to the standard path separator (i.e. ":") - it is
20009 # assumed that no part of a normal pathname contains ";" but that should
20010 # okay in the real world where ";" in dirpaths is itself problematic.
20011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20018 need_lib_prefix=unknown
20019 hardcode_into_libs=no
20021 # when you set need_version to no, make sure it does not cause -set_version
20022 # flags to be left without arguments
20023 need_version=unknown
20028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20029 shlibpath_var=LIBPATH
20031 # AIX 3 has no versioning support, so we append a major version to the name.
20032 soname_spec='${libname}${release}${shared_ext}$major'
20039 hardcode_into_libs=yes
20040 if test "$host_cpu" = ia64; then
20041 # AIX 5 supports IA64
20042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20043 shlibpath_var=LD_LIBRARY_PATH
20045 # With GCC up to 2.95.x, collect2 would create an import file
20046 # for dependence libraries. The import file would start with
20047 # the line `#! .'. This would cause the generated library to
20048 # depend on `.', always an invalid library. This was fixed in
20049 # development snapshots of GCC prior to 3.0.
20051 aix4 | aix4.[01] | aix4.[01].*)
20052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20057 can_build_shared=no
20061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20062 # soname into executable. Probably we can add versioning support to
20063 # collect2, so additional links can be useful in future.
20064 if test "$aix_use_runtimelinking" = yes; then
20065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20066 # instead of lib<name>.a to let people know that these are not
20067 # typical AIX shared libraries.
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20070 # We preserve .a as extension for shared libraries through AIX4.2
20071 # and later when we are not doing run time linking.
20072 library_names_spec='${libname}${release}.a $libname.a'
20073 soname_spec='${libname}${release}${shared_ext}$major'
20075 shlibpath_var=LIBPATH
20080 library_names_spec='$libname.ixlibrary $libname.a'
20081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20082 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'
20086 library_names_spec='${libname}${shared_ext}'
20087 dynamic_linker="$host_os ld.so"
20088 shlibpath_var=LIBRARY_PATH
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20095 soname_spec='${libname}${release}${shared_ext}$major'
20096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20097 shlibpath_var=LD_LIBRARY_PATH
20098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20100 # the default ld.so.conf also contains /usr/contrib/lib and
20101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20102 # libtool to hard-code these into programs
20105 cygwin* | mingw* | pw32*)
20106 version_type=windows
20111 case $GCC,$host_os in
20112 yes,cygwin* | yes,mingw* | yes,pw32*)
20113 library_names_spec='$libname.dll.a'
20114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20115 postinstall_cmds='base_file=`basename \${file}`~
20116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20117 dldir=$destdir/`dirname \$dlpath`~
20118 test -d \$dldir || mkdir -p \$dldir~
20119 $install_prog $dir/$dlname \$dldir/$dlname~
20120 chmod a+x \$dldir/$dlname'
20121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20122 dlpath=$dir/\$dldll~
20124 shlibpath_overrides_runpath=yes
20128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20133 # MinGW DLLs use traditional 'lib' prefix
20134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20137 # It is most probably a Windows format PATH printed by
20138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20139 # path with ; separators, and with drive letters. We can handle the
20140 # drive letters (cygwin fileutils understands them), so leave them,
20141 # especially as we might pass files found there to a mingw objdump,
20142 # which wouldn't understand a cygwinified path. Ahh.
20143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20149 # pw32 DLLs use 'pw' prefix rather than 'lib'
20150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20159 dynamic_linker='Win32 ld.exe'
20160 # FIXME: first we should search . and the directory the executable is in
20164 darwin* | rhapsody*)
20165 dynamic_linker="$host_os dyld"
20166 version_type=darwin
20169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20170 soname_spec='${libname}${release}${major}$shared_ext'
20171 shlibpath_overrides_runpath=yes
20172 shlibpath_var=DYLD_LIBRARY_PATH
20173 shrext_cmds='.dylib'
20174 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20175 if test "$GCC" = yes; then
20176 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"`
20178 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 shlibpath_var=LD_LIBRARY_PATH
20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20201 soname_spec='${libname}${release}${shared_ext}$major'
20202 shlibpath_var=LD_LIBRARY_PATH
20203 shlibpath_overrides_runpath=no
20204 hardcode_into_libs=yes
20205 dynamic_linker='GNU ld.so'
20208 freebsd* | dragonfly*)
20209 # DragonFly does not have aout. When/if they implement a new
20210 # versioning mechanism, adjust this.
20211 if test -x /usr/bin/objformat; then
20212 objformat=`/usr/bin/objformat`
20215 freebsd[123]*) objformat=aout ;;
20216 *) objformat=elf ;;
20219 version_type=freebsd-$objformat
20220 case $version_type in
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20231 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes
20236 freebsd3.[01]* | freebsdelf3.[01]*)
20237 shlibpath_overrides_runpath=yes
20238 hardcode_into_libs=yes
20240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20242 shlibpath_overrides_runpath=no
20243 hardcode_into_libs=yes
20245 freebsd*) # from 4.6 on
20246 shlibpath_overrides_runpath=yes
20247 hardcode_into_libs=yes
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20257 soname_spec='${libname}${release}${shared_ext}$major'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 hardcode_into_libs=yes
20262 hpux9* | hpux10* | hpux11*)
20263 # Give a soname corresponding to the major version so that dld.sl refuses to
20264 # link against other versions.
20271 hardcode_into_libs=yes
20272 dynamic_linker="$host_os dld.so"
20273 shlibpath_var=LD_LIBRARY_PATH
20274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 if test "X$HPUX_IA64_MODE" = X32; then
20278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20286 hardcode_into_libs=yes
20287 dynamic_linker="$host_os dld.sl"
20288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20297 dynamic_linker="$host_os dld.sl"
20298 shlibpath_var=SHLIB_PATH
20299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20305 postinstall_cmds='chmod 555 $lib'
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 shlibpath_overrides_runpath=no
20317 hardcode_into_libs=yes
20320 irix5* | irix6* | nonstopux*)
20322 nonstopux*) version_type=nonstopux ;;
20324 if test "$lt_cv_prog_gnu_ld" = yes; then
20332 soname_spec='${libname}${release}${shared_ext}$major'
20333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20335 irix5* | nonstopux*)
20336 libsuff= shlibsuff=
20339 case $LD in # libtool.m4 will add one of these switches to LD
20340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20341 libsuff= shlibsuff= libmagic=32-bit;;
20342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20343 libsuff=32 shlibsuff=N32 libmagic=N32;;
20344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20346 *) libsuff= shlibsuff= libmagic=never-match;;
20350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20351 shlibpath_overrides_runpath=no
20352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20354 hardcode_into_libs=yes
20357 # No shared lib support for Linux oldld, aout, or coff.
20358 linux*oldld* | linux*aout* | linux*coff*)
20362 # This must be Linux ELF.
20367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20368 soname_spec='${libname}${release}${shared_ext}$major'
20369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 shlibpath_overrides_runpath=no
20372 # This implies no fast_install, which is unacceptable.
20373 # Some rework will be needed to allow for fast_install
20374 # before this can be enabled.
20375 hardcode_into_libs=yes
20377 # Append ld.so.conf contents to the search path
20378 if test -f /etc/ld.so.conf; then
20379 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' ' '`
20380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20383 # We used to test for /lib/ld.so.1 and disable shared libraries on
20384 # powerpc, because MkLinux only supported shared libraries with the
20385 # GNU dynamic linker. Since this was broken with cross compilers,
20386 # most powerpc-linux boxes support dynamic linking these days and
20387 # people can always --disable-shared, the test was removed, and we
20388 # assume the GNU/Linux dynamic linker is in use.
20389 dynamic_linker='GNU/Linux ld.so'
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 shlibpath_overrides_runpath=no
20400 hardcode_into_libs=yes
20401 dynamic_linker='GNU ld.so'
20408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20411 dynamic_linker='NetBSD (a.out) ld.so'
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 dynamic_linker='NetBSD ld.elf_so'
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=yes
20419 hardcode_into_libs=yes
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 shlibpath_var=LD_LIBRARY_PATH
20426 shlibpath_overrides_runpath=yes
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 shlibpath_overrides_runpath=yes
20441 sys_lib_dlsearch_path_spec="/usr/lib"
20443 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20445 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20446 *) need_version=no ;;
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20453 openbsd2.[89] | openbsd2.[89].*)
20454 shlibpath_overrides_runpath=no
20457 shlibpath_overrides_runpath=yes
20461 shlibpath_overrides_runpath=yes
20466 libname_spec='$name'
20469 library_names_spec='$libname${shared_ext} $libname.a'
20470 dynamic_linker='OS/2 ld.exe'
20471 shlibpath_var=LIBPATH
20474 osf3* | osf4* | osf5*)
20478 soname_spec='${libname}${release}${shared_ext}$major'
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 shlibpath_var=LD_LIBRARY_PATH
20492 shlibpath_overrides_runpath=yes
20493 hardcode_into_libs=yes
20494 # ldd complains unless libraries are executable
20495 postinstall_cmds='chmod +x $lib'
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=yes
20504 if test "$with_gnu_ld" = yes; then
20512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 soname_spec='${libname}${release}${shared_ext}$major'
20514 shlibpath_var=LD_LIBRARY_PATH
20515 case $host_vendor in
20517 shlibpath_overrides_runpath=no
20519 export_dynamic_flag_spec='${wl}-Blargedynsym'
20520 runpath_var=LD_RUN_PATH
20528 shlibpath_overrides_runpath=no
20529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20535 if test -d /usr/nec ;then
20537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20538 soname_spec='$libname${shared_ext}.$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20544 version_type=freebsd-elf
20547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20548 soname_spec='${libname}${release}${shared_ext}$major'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 hardcode_into_libs=yes
20551 if test "$with_gnu_ld" = yes; then
20552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20553 shlibpath_overrides_runpath=no
20555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20556 shlibpath_overrides_runpath=yes
20559 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20563 sys_lib_dlsearch_path_spec='/usr/lib'
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569 soname_spec='${libname}${release}${shared_ext}$major'
20570 shlibpath_var=LD_LIBRARY_PATH
20577 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20578 echo "${ECHO_T}$dynamic_linker" >&6; }
20579 test "$dynamic_linker" = no && can_build_shared=no
20581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20582 if test "$GCC" = yes; then
20583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20586 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20587 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20588 hardcode_action_CXX=
20589 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20590 test -n "$runpath_var_CXX" || \
20591 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20593 # We can hardcode non-existant directories.
20594 if test "$hardcode_direct_CXX" != no &&
20595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20596 # have to relink, otherwise we might link with an installed library
20597 # when we should be linking with a yet-to-be-installed one
20598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20599 test "$hardcode_minus_L_CXX" != no; then
20600 # Linking always hardcodes the temporary library directory.
20601 hardcode_action_CXX=relink
20603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20604 hardcode_action_CXX=immediate
20607 # We cannot hardcode anything, or else we can only hardcode existing
20609 hardcode_action_CXX=unsupported
20611 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20612 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20614 if test "$hardcode_action_CXX" = relink; then
20615 # Fast installation is not supported
20616 enable_fast_install=no
20617 elif test "$shlibpath_overrides_runpath" = yes ||
20618 test "$enable_shared" = no; then
20619 # Fast installation is not necessary
20620 enable_fast_install=needless
20624 # The else clause should only fire when bootstrapping the
20625 # libtool distribution, otherwise you forgot to ship ltmain.sh
20626 # with your package, and you will get complaints that there are
20627 # no rules to generate ltmain.sh.
20628 if test -f "$ltmain"; then
20629 # See if we are running on zsh, and set the options which allow our commands through
20630 # without removal of \ escapes.
20631 if test -n "${ZSH_VERSION+set}" ; then
20632 setopt NO_GLOB_SUBST
20634 # Now quote all the things that may contain metacharacters while being
20635 # careful not to overquote the AC_SUBSTed values. We take copies of the
20636 # variables and quote the copies for generation of the libtool script.
20637 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20641 deplibs_check_method reload_flag reload_cmds need_locks \
20642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20643 lt_cv_sys_global_symbol_to_c_name_address \
20644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20645 old_postinstall_cmds old_postuninstall_cmds \
20649 lt_prog_compiler_wl_CXX \
20650 lt_prog_compiler_pic_CXX \
20651 lt_prog_compiler_static_CXX \
20652 lt_prog_compiler_no_builtin_flag_CXX \
20653 export_dynamic_flag_spec_CXX \
20654 thread_safe_flag_spec_CXX \
20655 whole_archive_flag_spec_CXX \
20656 enable_shared_with_static_runtimes_CXX \
20657 old_archive_cmds_CXX \
20658 old_archive_from_new_cmds_CXX \
20659 predep_objects_CXX \
20660 postdep_objects_CXX \
20663 compiler_lib_search_path_CXX \
20665 archive_expsym_cmds_CXX \
20666 postinstall_cmds_CXX \
20667 postuninstall_cmds_CXX \
20668 old_archive_from_expsyms_cmds_CXX \
20669 allow_undefined_flag_CXX \
20670 no_undefined_flag_CXX \
20671 export_symbols_cmds_CXX \
20672 hardcode_libdir_flag_spec_CXX \
20673 hardcode_libdir_flag_spec_ld_CXX \
20674 hardcode_libdir_separator_CXX \
20675 hardcode_automatic_CXX \
20677 module_expsym_cmds_CXX \
20678 lt_cv_prog_compiler_c_o_CXX \
20679 exclude_expsyms_CXX \
20680 include_expsyms_CXX; do
20683 old_archive_cmds_CXX | \
20684 old_archive_from_new_cmds_CXX | \
20685 archive_cmds_CXX | \
20686 archive_expsym_cmds_CXX | \
20687 module_cmds_CXX | \
20688 module_expsym_cmds_CXX | \
20689 old_archive_from_expsyms_cmds_CXX | \
20690 export_symbols_cmds_CXX | \
20691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20692 postinstall_cmds | postuninstall_cmds | \
20693 old_postinstall_cmds | old_postuninstall_cmds | \
20694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20695 # Double-quote double-evaled strings.
20696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20705 *'\$0 --fallback-echo"')
20706 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20712 cat <<__EOF__ >> "$cfgfile"
20713 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20717 # Shell to use when invoking shell scripts.
20720 # Whether or not to build shared libraries.
20721 build_libtool_libs=$enable_shared
20723 # Whether or not to build static libraries.
20724 build_old_libs=$enable_static
20726 # Whether or not to add -lc for building shared libraries.
20727 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20729 # Whether or not to disallow shared libs when runtime libs are static
20730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20732 # Whether or not to optimize for fast installation.
20733 fast_install=$enable_fast_install
20736 host_alias=$host_alias
20740 # The build system.
20741 build_alias=$build_alias
20745 # An echo program that does not interpret backslashes.
20750 AR_FLAGS=$lt_AR_FLAGS
20755 # LTCC compiler flags.
20756 LTCFLAGS=$lt_LTCFLAGS
20758 # A language-specific compiler.
20759 CC=$lt_compiler_CXX
20761 # Is the compiler the GNU C compiler?
20767 # The linker used to build libraries.
20770 # Whether we need hard or soft links.
20773 # A BSD-compatible nm program.
20776 # A symbol stripping program
20779 # Used to examine libraries when file_magic_cmd begins "file"
20780 MAGIC_CMD=$MAGIC_CMD
20782 # Used on cygwin: DLL creation program.
20785 # Used on cygwin: object dumper.
20788 # Used on cygwin: assembler.
20791 # The name of the directory that contains temporary libtool files.
20794 # How to create reloadable object files.
20795 reload_flag=$lt_reload_flag
20796 reload_cmds=$lt_reload_cmds
20798 # How to pass a linker flag through the compiler.
20799 wl=$lt_lt_prog_compiler_wl_CXX
20801 # Object file suffix (normally "o").
20802 objext="$ac_objext"
20804 # Old archive suffix (normally "a").
20807 # Shared library suffix (normally ".so").
20808 shrext_cmds='$shrext_cmds'
20810 # Executable file suffix (normally "").
20813 # Additional compiler flags for building library objects.
20814 pic_flag=$lt_lt_prog_compiler_pic_CXX
20817 # What is the maximum length of a command?
20818 max_cmd_len=$lt_cv_sys_max_cmd_len
20820 # Does compiler simultaneously support -c and -o options?
20821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20823 # Must we lock files when doing compilation?
20824 need_locks=$lt_need_locks
20826 # Do we need the lib prefix for modules?
20827 need_lib_prefix=$need_lib_prefix
20829 # Do we need a version for libraries?
20830 need_version=$need_version
20832 # Whether dlopen is supported.
20833 dlopen_support=$enable_dlopen
20835 # Whether dlopen of programs is supported.
20836 dlopen_self=$enable_dlopen_self
20838 # Whether dlopen of statically linked programs is supported.
20839 dlopen_self_static=$enable_dlopen_self_static
20841 # Compiler flag to prevent dynamic linking.
20842 link_static_flag=$lt_lt_prog_compiler_static_CXX
20844 # Compiler flag to turn off builtin functions.
20845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20847 # Compiler flag to allow reflexive dlopens.
20848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20850 # Compiler flag to generate shared objects directly from archives.
20851 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20853 # Compiler flag to generate thread-safe objects.
20854 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20856 # Library versioning type.
20857 version_type=$version_type
20859 # Format of library name prefix.
20860 libname_spec=$lt_libname_spec
20862 # List of archive names. First name is the real one, the rest are links.
20863 # The last name is the one that the linker finds with -lNAME.
20864 library_names_spec=$lt_library_names_spec
20866 # The coded name of the library, if different from the real name.
20867 soname_spec=$lt_soname_spec
20869 # Commands used to build and install an old-style archive.
20871 old_archive_cmds=$lt_old_archive_cmds_CXX
20872 old_postinstall_cmds=$lt_old_postinstall_cmds
20873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20875 # Create an old-style archive from a shared archive.
20876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20878 # Create a temporary old-style archive to link instead of a shared archive.
20879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20881 # Commands used to build and install a shared archive.
20882 archive_cmds=$lt_archive_cmds_CXX
20883 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20884 postinstall_cmds=$lt_postinstall_cmds
20885 postuninstall_cmds=$lt_postuninstall_cmds
20887 # Commands used to build a loadable module (assumed same as above if empty)
20888 module_cmds=$lt_module_cmds_CXX
20889 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20891 # Commands to strip libraries.
20892 old_striplib=$lt_old_striplib
20893 striplib=$lt_striplib
20895 # Dependencies to place before the objects being linked to create a
20897 predep_objects=$lt_predep_objects_CXX
20899 # Dependencies to place after the objects being linked to create a
20901 postdep_objects=$lt_postdep_objects_CXX
20903 # Dependencies to place before the objects being linked to create a
20905 predeps=$lt_predeps_CXX
20907 # Dependencies to place after the objects being linked to create a
20909 postdeps=$lt_postdeps_CXX
20911 # The library search path used internally by the compiler when linking
20912 # a shared library.
20913 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20915 # Method to check whether dependent libraries are shared objects.
20916 deplibs_check_method=$lt_deplibs_check_method
20918 # Command to use when deplibs_check_method == file_magic.
20919 file_magic_cmd=$lt_file_magic_cmd
20921 # Flag that allows shared libraries with undefined symbols to be built.
20922 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20924 # Flag that forces no undefined symbols.
20925 no_undefined_flag=$lt_no_undefined_flag_CXX
20927 # Commands used to finish a libtool library installation in a directory.
20928 finish_cmds=$lt_finish_cmds
20930 # Same as above, but a single script fragment to be evaled but not shown.
20931 finish_eval=$lt_finish_eval
20933 # Take the output of nm and produce a listing of raw symbols and C names.
20934 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20936 # Transform the output of nm in a proper C declaration
20937 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20939 # Transform the output of nm in a C name address pair
20940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20942 # This is the shared library runtime path variable.
20943 runpath_var=$runpath_var
20945 # This is the shared library path variable.
20946 shlibpath_var=$shlibpath_var
20948 # Is shlibpath searched before the hard-coded library search path?
20949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20951 # How to hardcode a shared library path into an executable.
20952 hardcode_action=$hardcode_action_CXX
20954 # Whether we should hardcode library paths into libraries.
20955 hardcode_into_libs=$hardcode_into_libs
20957 # Flag to hardcode \$libdir into a binary during linking.
20958 # This must work even if \$libdir does not exist.
20959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20961 # If ld is used when linking, flag to hardcode \$libdir into
20962 # a binary during linking. This must work even if \$libdir does
20964 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20966 # Whether we need a single -rpath flag with a separated argument.
20967 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20969 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20970 # resulting binary.
20971 hardcode_direct=$hardcode_direct_CXX
20973 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20974 # resulting binary.
20975 hardcode_minus_L=$hardcode_minus_L_CXX
20977 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20978 # the resulting binary.
20979 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20981 # Set to yes if building a shared library automatically hardcodes DIR into the library
20982 # and all subsequent libraries and executables linked against it.
20983 hardcode_automatic=$hardcode_automatic_CXX
20985 # Variables whose values should be saved in libtool wrapper scripts and
20986 # restored at relink time.
20987 variables_saved_for_relink="$variables_saved_for_relink"
20989 # Whether libtool must link a program against all its dependency libraries.
20990 link_all_deplibs=$link_all_deplibs_CXX
20992 # Compile-time system search path for libraries
20993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20995 # Run-time system search path for libraries
20996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20998 # Fix the shell variable \$srcfile for the compiler.
20999 fix_srcfile_path="$fix_srcfile_path_CXX"
21001 # Set to yes if exported symbols are required.
21002 always_export_symbols=$always_export_symbols_CXX
21004 # The commands to list exported symbols.
21005 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21007 # The commands to extract the exported symbol list from a shared archive.
21008 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21010 # Symbols that should not be listed in the preloaded symbols.
21011 exclude_expsyms=$lt_exclude_expsyms_CXX
21013 # Symbols that must always be exported.
21014 include_expsyms=$lt_include_expsyms_CXX
21016 # ### END LIBTOOL TAG CONFIG: $tagname
21022 # If there is no Makefile yet, we rely on a make rule to execute
21023 # `config.status --recheck' to rerun these tests and create the
21024 # libtool script then.
21025 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21026 if test -f "$ltmain_in"; then
21027 test -f Makefile && make "$ltmain"
21033 ac_cpp='$CPP $CPPFLAGS'
21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21042 with_gnu_ldcxx=$with_gnu_ld
21043 with_gnu_ld=$lt_save_with_gnu_ld
21044 lt_cv_path_LDCXX=$lt_cv_path_LD
21045 lt_cv_path_LD=$lt_save_path_LD
21046 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21047 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21055 if test -n "$F77" && test "X$F77" != "Xno"; then
21058 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21059 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21063 archive_cmds_need_lc_F77=no
21064 allow_undefined_flag_F77=
21065 always_export_symbols_F77=no
21066 archive_expsym_cmds_F77=
21067 export_dynamic_flag_spec_F77=
21068 hardcode_direct_F77=no
21069 hardcode_libdir_flag_spec_F77=
21070 hardcode_libdir_flag_spec_ld_F77=
21071 hardcode_libdir_separator_F77=
21072 hardcode_minus_L_F77=no
21073 hardcode_automatic_F77=no
21075 module_expsym_cmds_F77=
21076 link_all_deplibs_F77=unknown
21077 old_archive_cmds_F77=$old_archive_cmds
21078 no_undefined_flag_F77=
21079 whole_archive_flag_spec_F77=
21080 enable_shared_with_static_runtimes_F77=no
21082 # Source file extension for f77 test sources.
21085 # Object file extension for compiled f77 test sources.
21089 # Code to be used in simple compile tests
21090 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21092 # Code to be used in simple link tests
21093 lt_simple_link_test_code=" program t\n end\n"
21095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21097 # If no C compiler was specified, use CC.
21100 # If no C compiler flags were specified, use CFLAGS.
21101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21103 # Allow CC to be a program name with arguments.
21107 # save warnings/boilerplate of simple test code
21108 ac_outfile=conftest.$ac_objext
21109 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21111 _lt_compiler_boilerplate=`cat conftest.err`
21114 ac_outfile=conftest.$ac_objext
21115 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21117 _lt_linker_boilerplate=`cat conftest.err`
21121 # Allow CC to be a program name with arguments.
21126 for cc_temp in $compiler""; do
21128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21137 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21138 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21139 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21140 echo "${ECHO_T}$can_build_shared" >&6; }
21142 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21143 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21144 test "$can_build_shared" = "no" && enable_shared=no
21146 # On AIX, shared libraries and static libraries use the same namespace, and
21147 # are all built from PIC.
21150 test "$enable_shared" = yes && enable_static=no
21151 if test -n "$RANLIB"; then
21152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21153 postinstall_cmds='$RANLIB $lib'
21157 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21158 test "$enable_shared" = yes && enable_static=no
21162 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21163 echo "${ECHO_T}$enable_shared" >&6; }
21165 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21166 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21167 # Make sure either enable_shared or enable_static is yes.
21168 test "$enable_shared" = yes || enable_static=yes
21169 { echo "$as_me:$LINENO: result: $enable_static" >&5
21170 echo "${ECHO_T}$enable_static" >&6; }
21175 lt_prog_compiler_wl_F77=
21176 lt_prog_compiler_pic_F77=
21177 lt_prog_compiler_static_F77=
21179 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21180 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21182 if test "$GCC" = yes; then
21183 lt_prog_compiler_wl_F77='-Wl,'
21184 lt_prog_compiler_static_F77='-static'
21188 # All AIX code is PIC.
21189 if test "$host_cpu" = ia64; then
21190 # AIX 5 now supports IA64 processor
21191 lt_prog_compiler_static_F77='-Bstatic'
21196 # FIXME: we need at least 68020 code to build shared libraries, but
21197 # adding the `-m68020' flag to GCC prevents building anything better,
21199 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21202 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21203 # PIC is the default for these OSes.
21206 mingw* | pw32* | os2*)
21207 # This hack is so that the source file can tell whether it is being
21208 # built for inclusion in a dll (and should export symbols for example).
21209 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21212 darwin* | rhapsody*)
21213 # PIC is the default on this platform
21214 # Common symbols not allowed in MH_DYLIB files
21215 lt_prog_compiler_pic_F77='-fno-common'
21219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21220 # Instead, we relocate shared libraries at runtime.
21224 # Just because we use GCC doesn't mean we suddenly get shared libraries
21225 # on systems that don't support them.
21226 lt_prog_compiler_can_build_shared_F77=no
21231 if test -d /usr/nec; then
21232 lt_prog_compiler_pic_F77=-Kconform_pic
21237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21238 # not for PA HP-UX.
21244 lt_prog_compiler_pic_F77='-fPIC'
21250 lt_prog_compiler_pic_F77='-fPIC'
21254 # PORTME Check for flag to pass linker flags through the system compiler.
21257 lt_prog_compiler_wl_F77='-Wl,'
21258 if test "$host_cpu" = ia64; then
21259 # AIX 5 now supports IA64 processor
21260 lt_prog_compiler_static_F77='-Bstatic'
21262 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21266 # PIC is the default on this platform
21267 # Common symbols not allowed in MH_DYLIB files
21268 case $cc_basename in
21270 lt_prog_compiler_pic_F77='-qnocommon'
21271 lt_prog_compiler_wl_F77='-Wl,'
21276 mingw* | pw32* | os2*)
21277 # This hack is so that the source file can tell whether it is being
21278 # built for inclusion in a dll (and should export symbols for example).
21279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21282 hpux9* | hpux10* | hpux11*)
21283 lt_prog_compiler_wl_F77='-Wl,'
21284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21285 # not for PA HP-UX.
21291 lt_prog_compiler_pic_F77='+Z'
21294 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21295 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21298 irix5* | irix6* | nonstopux*)
21299 lt_prog_compiler_wl_F77='-Wl,'
21300 # PIC (with -KPIC) is the default.
21301 lt_prog_compiler_static_F77='-non_shared'
21305 lt_prog_compiler_pic_F77='-KPIC'
21306 lt_prog_compiler_static_F77='-Bstatic'
21310 case $cc_basename in
21312 lt_prog_compiler_wl_F77='-Wl,'
21313 lt_prog_compiler_pic_F77='-KPIC'
21314 lt_prog_compiler_static_F77='-static'
21316 pgcc* | pgf77* | pgf90* | pgf95*)
21317 # Portland Group compilers (*not* the Pentium gcc compiler,
21318 # which looks to be a dead project)
21319 lt_prog_compiler_wl_F77='-Wl,'
21320 lt_prog_compiler_pic_F77='-fpic'
21321 lt_prog_compiler_static_F77='-Bstatic'
21324 lt_prog_compiler_wl_F77='-Wl,'
21325 # All Alpha code is PIC.
21326 lt_prog_compiler_static_F77='-non_shared'
21331 osf3* | osf4* | osf5*)
21332 lt_prog_compiler_wl_F77='-Wl,'
21333 # All OSF/1 code is PIC.
21334 lt_prog_compiler_static_F77='-non_shared'
21338 lt_prog_compiler_pic_F77='-KPIC'
21339 lt_prog_compiler_static_F77='-Bstatic'
21340 case $cc_basename in
21341 f77* | f90* | f95*)
21342 lt_prog_compiler_wl_F77='-Qoption ld ';;
21344 lt_prog_compiler_wl_F77='-Wl,';;
21349 lt_prog_compiler_wl_F77='-Qoption ld '
21350 lt_prog_compiler_pic_F77='-PIC'
21351 lt_prog_compiler_static_F77='-Bstatic'
21354 sysv4 | sysv4.2uw2* | sysv4.3*)
21355 lt_prog_compiler_wl_F77='-Wl,'
21356 lt_prog_compiler_pic_F77='-KPIC'
21357 lt_prog_compiler_static_F77='-Bstatic'
21361 if test -d /usr/nec ;then
21362 lt_prog_compiler_pic_F77='-Kconform_pic'
21363 lt_prog_compiler_static_F77='-Bstatic'
21367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21368 lt_prog_compiler_wl_F77='-Wl,'
21369 lt_prog_compiler_pic_F77='-KPIC'
21370 lt_prog_compiler_static_F77='-Bstatic'
21374 lt_prog_compiler_wl_F77='-Wl,'
21375 lt_prog_compiler_can_build_shared_F77=no
21379 lt_prog_compiler_pic_F77='-pic'
21380 lt_prog_compiler_static_F77='-Bstatic'
21384 lt_prog_compiler_can_build_shared_F77=no
21389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21390 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21393 # Check to make sure the PIC flag actually works.
21395 if test -n "$lt_prog_compiler_pic_F77"; then
21397 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21398 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21399 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 lt_prog_compiler_pic_works_F77=no
21403 ac_outfile=conftest.$ac_objext
21404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21405 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21406 # Insert the option either (1) after the last *FLAGS variable, or
21407 # (2) before a word containing "conftest.", or (3) at the end.
21408 # Note that $ac_compile itself does not contain backslashes and begins
21409 # with a dollar sign (not a hyphen), so the echo should work correctly.
21410 # The option is referenced via a variable to avoid confusing sed.
21411 lt_compile=`echo "$ac_compile" | $SED \
21412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21414 -e 's:$: $lt_compiler_flag:'`
21415 (eval echo "\"\$as_me:21415: $lt_compile\"" >&5)
21416 (eval "$lt_compile" 2>conftest.err)
21418 cat conftest.err >&5
21419 echo "$as_me:21419: \$? = $ac_status" >&5
21420 if (exit $ac_status) && test -s "$ac_outfile"; then
21421 # The compiler can only warn and ignore the option if not recognized
21422 # So say no if there are warnings other than the usual output.
21423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21426 lt_prog_compiler_pic_works_F77=yes
21432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21433 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21435 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21436 case $lt_prog_compiler_pic_F77 in
21438 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21441 lt_prog_compiler_pic_F77=
21442 lt_prog_compiler_can_build_shared_F77=no
21447 # For platforms which do not support PIC, -DPIC is meaningless:
21449 lt_prog_compiler_pic_F77=
21452 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21457 # Check to make sure the static flag actually works.
21459 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21460 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21461 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21462 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 lt_prog_compiler_static_works_F77=no
21466 save_LDFLAGS="$LDFLAGS"
21467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21468 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21470 # The linker can only warn and ignore the option if not recognized
21471 # So say no if there are warnings
21472 if test -s conftest.err; then
21473 # Append any errors to the config.log.
21474 cat conftest.err 1>&5
21475 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21477 if diff conftest.exp conftest.er2 >/dev/null; then
21478 lt_prog_compiler_static_works_F77=yes
21481 lt_prog_compiler_static_works_F77=yes
21485 LDFLAGS="$save_LDFLAGS"
21488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21489 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21491 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21494 lt_prog_compiler_static_F77=
21498 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21499 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21500 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 lt_cv_prog_compiler_c_o_F77=no
21504 $rm -r conftest 2>/dev/null
21508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21510 lt_compiler_flag="-o out/conftest2.$ac_objext"
21511 # Insert the option either (1) after the last *FLAGS variable, or
21512 # (2) before a word containing "conftest.", or (3) at the end.
21513 # Note that $ac_compile itself does not contain backslashes and begins
21514 # with a dollar sign (not a hyphen), so the echo should work correctly.
21515 lt_compile=`echo "$ac_compile" | $SED \
21516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21518 -e 's:$: $lt_compiler_flag:'`
21519 (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
21520 (eval "$lt_compile" 2>out/conftest.err)
21522 cat out/conftest.err >&5
21523 echo "$as_me:21523: \$? = $ac_status" >&5
21524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21526 # The compiler can only warn and ignore the option if not recognized
21527 # So say no if there are warnings
21528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21531 lt_cv_prog_compiler_c_o_F77=yes
21536 # SGI C++ compiler will create directory out/ii_files/ for
21537 # template instantiation
21538 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21539 $rm out/* && rmdir out
21545 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21546 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21549 hard_links="nottested"
21550 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21551 # do not overwrite the value of need_locks provided by the user
21552 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21553 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21558 ln conftest.a conftest.b 2>&5 || hard_links=no
21559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21560 { echo "$as_me:$LINENO: result: $hard_links" >&5
21561 echo "${ECHO_T}$hard_links" >&6; }
21562 if test "$hard_links" = no; then
21563 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21564 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21571 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21575 allow_undefined_flag_F77=
21576 enable_shared_with_static_runtimes_F77=no
21578 archive_expsym_cmds_F77=
21579 old_archive_From_new_cmds_F77=
21580 old_archive_from_expsyms_cmds_F77=
21581 export_dynamic_flag_spec_F77=
21582 whole_archive_flag_spec_F77=
21583 thread_safe_flag_spec_F77=
21584 hardcode_libdir_flag_spec_F77=
21585 hardcode_libdir_flag_spec_ld_F77=
21586 hardcode_libdir_separator_F77=
21587 hardcode_direct_F77=no
21588 hardcode_minus_L_F77=no
21589 hardcode_shlibpath_var_F77=unsupported
21590 link_all_deplibs_F77=unknown
21591 hardcode_automatic_F77=no
21593 module_expsym_cmds_F77=
21594 always_export_symbols_F77=no
21595 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21596 # include_expsyms should be a list of space-separated symbols to be *always*
21597 # included in the symbol list
21598 include_expsyms_F77=
21599 # exclude_expsyms can be an extended regexp of symbols to exclude
21600 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21601 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21602 # as well as any symbol that contains `d'.
21603 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21604 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21605 # platforms (ab)use it in PIC code, but their linkers get confused if
21606 # the symbol is explicitly referenced. Since portable code cannot
21607 # rely on this symbol name, it's probably fine to never include it in
21608 # preloaded symbol tables.
21609 extract_expsyms_cmds=
21610 # Just being paranoid about ensuring that cc_basename is set.
21611 for cc_temp in $compiler""; do
21613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21619 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21622 cygwin* | mingw* | pw32*)
21623 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21624 # When not using gcc, we currently assume that we are using
21625 # Microsoft Visual C++.
21626 if test "$GCC" != yes; then
21631 # we just hope/assume this is gcc and not c89 (= MSVC++)
21640 if test "$with_gnu_ld" = yes; then
21641 # If archive_cmds runs LD, not CC, wlarc should be empty
21644 # Set some defaults for GNU ld with shared library support. These
21645 # are reset later if shared libraries are not supported. Putting them
21646 # here allows them to be overridden if necessary.
21647 runpath_var=LD_RUN_PATH
21648 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21649 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21650 # ancient GNU ld didn't support --whole-archive et. al.
21651 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21652 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21654 whole_archive_flag_spec_F77=
21656 supports_anon_versioning=no
21657 case `$LD -v 2>/dev/null` in
21658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21661 *\ 2.11.*) ;; # other 2.11 versions
21662 *) supports_anon_versioning=yes ;;
21665 # See if GNU ld supports shared libraries.
21667 aix3* | aix4* | aix5*)
21668 # On AIX/PPC, the GNU linker is very broken
21669 if test "$host_cpu" != ia64; then
21673 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21674 *** to be unable to reliably create shared libraries on AIX.
21675 *** Therefore, libtool is disabling shared libraries support. If you
21676 *** really care for shared libraries, you may want to modify your PATH
21677 *** so that a non-GNU linker is found, and then restart.
21684 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)'
21685 hardcode_libdir_flag_spec_F77='-L$libdir'
21686 hardcode_minus_L_F77=yes
21688 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21689 # that the semantics of dynamic libraries on AmigaOS, at least up
21690 # to version 4, is to share data among multiple programs linked
21691 # with the same dynamic library. Since this doesn't match the
21692 # behavior of shared libraries on other platforms, we can't use
21698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21699 allow_undefined_flag_F77=unsupported
21700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21701 # support --undefined. This deserves some investigation. FIXME
21702 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21708 cygwin* | mingw* | pw32*)
21709 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21710 # as there is no search path for DLLs.
21711 hardcode_libdir_flag_spec_F77='-L$libdir'
21712 allow_undefined_flag_F77=unsupported
21713 always_export_symbols_F77=no
21714 enable_shared_with_static_runtimes_F77=yes
21715 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21717 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21718 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21719 # If the export-symbols file already is a .def file (1st line
21720 # is EXPORTS), use it as is; otherwise, prepend...
21721 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21722 cp $export_symbols $output_objdir/$soname.def;
21724 echo EXPORTS > $output_objdir/$soname.def;
21725 cat $export_symbols >> $output_objdir/$soname.def;
21727 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21734 hardcode_direct_F77=no
21735 hardcode_shlibpath_var_F77=no
21736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21737 export_dynamic_flag_spec_F77='${wl}-E'
21738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21739 # Instead, shared libraries are loaded at an image base (0x10000000 by
21740 # default) and relocated if they conflict, which is a slow very memory
21741 # consuming and fragmenting process. To avoid this, we pick a random,
21742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21743 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21744 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'
21745 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'
21749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21751 case $cc_basename,$host_cpu in
21752 pgcc*) # Portland Group C compiler
21753 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21754 tmp_addflag=' $pic_flag'
21756 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21757 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'
21758 tmp_addflag=' $pic_flag -Mnomain' ;;
21759 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21760 tmp_addflag=' -i_dynamic' ;;
21761 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21762 tmp_addflag=' -i_dynamic -nofor_main' ;;
21763 ifc* | ifort*) # Intel Fortran compiler
21764 tmp_addflag=' -nofor_main' ;;
21766 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21768 if test $supports_anon_versioning = yes; then
21769 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21771 $echo "local: *; };" >> $output_objdir/$libname.ver~
21772 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21781 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21784 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21785 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21790 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21795 *** create shared libraries on Solaris systems. Therefore, libtool
21796 *** is disabling shared libraries support. We urge you to upgrade GNU
21797 *** binutils to release 2.9.1 or newer. Another option is to modify
21798 *** your PATH or compiler configuration so that the native linker is
21799 *** used, and then restart.
21802 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21803 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21804 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21811 case `$LD -v 2>&1` in
21812 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21817 *** reliably create shared libraries on SCO systems. Therefore, libtool
21818 *** is disabling shared libraries support. We urge you to upgrade GNU
21819 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21820 *** your PATH or compiler configuration so that the native linker is
21821 *** used, and then restart.
21826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21827 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21838 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21840 hardcode_direct_F77=yes
21841 hardcode_shlibpath_var_F77=no
21845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21854 if test "$ld_shlibs_F77" = no; then
21856 hardcode_libdir_flag_spec_F77=
21857 export_dynamic_flag_spec_F77=
21858 whole_archive_flag_spec_F77=
21861 # PORTME fill in a description of your system's linker (not GNU ld)
21864 allow_undefined_flag_F77=unsupported
21865 always_export_symbols_F77=yes
21866 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'
21867 # Note: this linker hardcodes the directories in LIBPATH if there
21868 # are no directories specified by -L.
21869 hardcode_minus_L_F77=yes
21870 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21871 # Neither direct hardcoding nor static linking is supported with a
21873 hardcode_direct_F77=unsupported
21878 if test "$host_cpu" = ia64; then
21879 # On IA64, the linker does run time linking by default, so we don't
21880 # have to do anything special.
21881 aix_use_runtimelinking=no
21882 exp_sym_flag='-Bexport'
21885 # If we're using GNU nm, then we don't want the "-C" option.
21886 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21887 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21888 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'
21890 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'
21892 aix_use_runtimelinking=no
21894 # Test if we are trying to use run time linking or normal
21895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21896 # need to do runtime linking.
21897 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21898 for ld_flag in $LDFLAGS; do
21899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21900 aix_use_runtimelinking=yes
21907 exp_sym_flag='-bexport'
21908 no_entry_flag='-bnoentry'
21911 # When large executables or shared objects are built, AIX ld can
21912 # have problems creating the table of contents. If linking a library
21913 # or program results in "error TOC overflow" add -mminimal-toc to
21914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21917 archive_cmds_F77=''
21918 hardcode_direct_F77=yes
21919 hardcode_libdir_separator_F77=':'
21920 link_all_deplibs_F77=yes
21922 if test "$GCC" = yes; then
21923 case $host_os in aix4.[012]|aix4.[012].*)
21924 # We only want to do this on AIX 4.2 and lower, the check
21925 # below for broken collect2 doesn't work under 4.3+
21926 collect2name=`${CC} -print-prog-name=collect2`
21927 if test -f "$collect2name" && \
21928 strings "$collect2name" | grep resolve_lib_name >/dev/null
21930 # We have reworked collect2
21931 hardcode_direct_F77=yes
21933 # We have old collect2
21934 hardcode_direct_F77=unsupported
21935 # It fails to find uninstalled libraries when the uninstalled
21936 # path is not listed in the libpath. Setting hardcode_minus_L
21937 # to unsupported forces relinking
21938 hardcode_minus_L_F77=yes
21939 hardcode_libdir_flag_spec_F77='-L$libdir'
21940 hardcode_libdir_separator_F77=
21944 shared_flag='-shared'
21945 if test "$aix_use_runtimelinking" = yes; then
21946 shared_flag="$shared_flag "'${wl}-G'
21950 if test "$host_cpu" = ia64; then
21951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21952 # chokes on -Wl,-G. The following line is correct:
21955 if test "$aix_use_runtimelinking" = yes; then
21956 shared_flag='${wl}-G'
21958 shared_flag='${wl}-bM:SRE'
21963 # It seems that -bexpall does not export symbols beginning with
21964 # underscore (_), so it is better to generate a list of symbols to export.
21965 always_export_symbols_F77=yes
21966 if test "$aix_use_runtimelinking" = yes; then
21967 # Warning - without using the other runtime loading flags (-brtl),
21968 # -berok will link without error, but may produce a broken library.
21969 allow_undefined_flag_F77='-berok'
21970 # Determine the default libpath from the value encoded in an empty executable.
21971 cat >conftest.$ac_ext <<_ACEOF
21976 rm -f conftest.$ac_objext conftest$ac_exeext
21977 if { (ac_try="$ac_link"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_link") 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } &&
21990 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21991 { (case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest$ac_exeext'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22013 # Check for a 64-bit object if we didn't find anything.
22014 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; }
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22023 rm -f core conftest.err conftest.$ac_objext \
22024 conftest$ac_exeext conftest.$ac_ext
22025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22027 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22028 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"
22030 if test "$host_cpu" = ia64; then
22031 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22032 allow_undefined_flag_F77="-z nodefs"
22033 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"
22035 # Determine the default libpath from the value encoded in an empty executable.
22036 cat >conftest.$ac_ext <<_ACEOF
22041 rm -f conftest.$ac_objext conftest$ac_exeext
22042 if { (ac_try="$ac_link"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_link") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; } &&
22065 { ac_try='test -s conftest$ac_exeext'
22066 { (case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_try") 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22076 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22078 # Check for a 64-bit object if we didn't find anything.
22079 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; }
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22092 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22093 # Warning - without using the other run time loading flags,
22094 # -berok will link without error, but may produce a broken library.
22095 no_undefined_flag_F77=' ${wl}-bernotok'
22096 allow_undefined_flag_F77=' ${wl}-berok'
22097 # Exported symbols can be pulled into shared objects from archives
22098 whole_archive_flag_spec_F77='$convenience'
22099 archive_cmds_need_lc_F77=yes
22100 # This is similar to how AIX traditionally builds its shared libraries.
22101 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'
22107 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)'
22108 hardcode_libdir_flag_spec_F77='-L$libdir'
22109 hardcode_minus_L_F77=yes
22110 # see comment about different semantics on the GNU ld section
22115 export_dynamic_flag_spec_F77=-rdynamic
22118 cygwin* | mingw* | pw32*)
22119 # When not using gcc, we currently assume that we are using
22120 # Microsoft Visual C++.
22121 # hardcode_libdir_flag_spec is actually meaningless, as there is
22122 # no search path for DLLs.
22123 hardcode_libdir_flag_spec_F77=' '
22124 allow_undefined_flag_F77=unsupported
22125 # Tell ltmain to make .lib files, not .a files.
22127 # Tell ltmain to make .dll files, not .so files.
22129 # FIXME: Setting linknames here is a bad hack.
22130 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22131 # The linker will automatically build a .lib file if we build a DLL.
22132 old_archive_From_new_cmds_F77='true'
22133 # FIXME: Should let the user specify the lib program.
22134 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22135 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22136 enable_shared_with_static_runtimes_F77=yes
22139 darwin* | rhapsody*)
22141 rhapsody* | darwin1.[012])
22142 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22145 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22146 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22148 case ${MACOSX_DEPLOYMENT_TARGET} in
22150 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22153 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22159 archive_cmds_need_lc_F77=no
22160 hardcode_direct_F77=no
22161 hardcode_automatic_F77=yes
22162 hardcode_shlibpath_var_F77=unsupported
22163 whole_archive_flag_spec_F77=''
22164 link_all_deplibs_F77=yes
22165 if test "$GCC" = yes ; then
22166 output_verbose_link_cmd='echo'
22167 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22168 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22170 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}'
22171 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}'
22173 case $cc_basename in
22175 output_verbose_link_cmd='echo'
22176 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22177 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22178 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22179 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}'
22180 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}'
22190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_libdir_flag_spec_F77='-L$libdir'
22192 hardcode_shlibpath_var_F77=no
22199 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22200 # support. Future versions do this automatically, but an explicit c++rt0.o
22201 # does not break anything, and helps significantly (at the cost of a little
22204 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22205 hardcode_libdir_flag_spec_F77='-R$libdir'
22206 hardcode_direct_F77=yes
22207 hardcode_shlibpath_var_F77=no
22210 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22212 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22213 hardcode_direct_F77=yes
22214 hardcode_minus_L_F77=yes
22215 hardcode_shlibpath_var_F77=no
22218 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22219 freebsd* | kfreebsd*-gnu | dragonfly*)
22220 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22221 hardcode_libdir_flag_spec_F77='-R$libdir'
22222 hardcode_direct_F77=yes
22223 hardcode_shlibpath_var_F77=no
22227 if test "$GCC" = yes; then
22228 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'
22230 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'
22232 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22233 hardcode_libdir_separator_F77=:
22234 hardcode_direct_F77=yes
22236 # hardcode_minus_L: Not really in the search PATH,
22237 # but as the default location of the library.
22238 hardcode_minus_L_F77=yes
22239 export_dynamic_flag_spec_F77='${wl}-E'
22243 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22244 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22246 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22248 if test "$with_gnu_ld" = no; then
22249 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22250 hardcode_libdir_separator_F77=:
22252 hardcode_direct_F77=yes
22253 export_dynamic_flag_spec_F77='${wl}-E'
22255 # hardcode_minus_L: Not really in the search PATH,
22256 # but as the default location of the library.
22257 hardcode_minus_L_F77=yes
22262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22265 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22268 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22271 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22277 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22280 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22283 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22287 if test "$with_gnu_ld" = no; then
22288 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22289 hardcode_libdir_separator_F77=:
22293 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22294 hardcode_direct_F77=no
22295 hardcode_shlibpath_var_F77=no
22298 hardcode_direct_F77=yes
22299 export_dynamic_flag_spec_F77='${wl}-E'
22301 # hardcode_minus_L: Not really in the search PATH,
22302 # but as the default location of the library.
22303 hardcode_minus_L_F77=yes
22309 irix5* | irix6* | nonstopux*)
22310 if test "$GCC" = yes; then
22311 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'
22313 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'
22314 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22317 hardcode_libdir_separator_F77=:
22318 link_all_deplibs_F77=yes
22322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22323 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22325 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22327 hardcode_libdir_flag_spec_F77='-R$libdir'
22328 hardcode_direct_F77=yes
22329 hardcode_shlibpath_var_F77=no
22333 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22334 hardcode_direct_F77=yes
22335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22336 hardcode_libdir_separator_F77=:
22337 hardcode_shlibpath_var_F77=no
22341 hardcode_direct_F77=yes
22342 hardcode_shlibpath_var_F77=no
22343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22344 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22345 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22346 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22347 export_dynamic_flag_spec_F77='${wl}-E'
22350 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22351 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22352 hardcode_libdir_flag_spec_F77='-R$libdir'
22355 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22356 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22363 hardcode_libdir_flag_spec_F77='-L$libdir'
22364 hardcode_minus_L_F77=yes
22365 allow_undefined_flag_F77=unsupported
22366 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'
22367 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22371 if test "$GCC" = yes; then
22372 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22373 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'
22375 allow_undefined_flag_F77=' -expect_unresolved \*'
22376 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'
22378 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22379 hardcode_libdir_separator_F77=:
22382 osf4* | osf5*) # as osf3* with the addition of -msym flag
22383 if test "$GCC" = yes; then
22384 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22385 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'
22386 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22388 allow_undefined_flag_F77=' -expect_unresolved \*'
22389 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'
22390 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~
22391 $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'
22393 # Both c and cxx compiler support -rpath directly
22394 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22396 hardcode_libdir_separator_F77=:
22400 no_undefined_flag_F77=' -z text'
22401 if test "$GCC" = yes; then
22403 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22404 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22405 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22408 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22409 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22410 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22412 hardcode_libdir_flag_spec_F77='-R$libdir'
22413 hardcode_shlibpath_var_F77=no
22415 solaris2.[0-5] | solaris2.[0-5].*) ;;
22417 # The compiler driver will combine linker options so we
22418 # cannot just pass the convience library names through
22419 # without $wl, iff we do not link with $LD.
22420 # Luckily, gcc supports the same syntax we need for Sun Studio.
22421 # Supported since Solaris 2.6 (maybe 2.5.1?)
22424 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22426 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' ;;
22429 link_all_deplibs_F77=yes
22433 if test "x$host_vendor" = xsequent; then
22434 # Use $CC to link under sequent, because it throws in some extra .o
22435 # files that make .init and .fini sections work.
22436 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22438 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22440 hardcode_libdir_flag_spec_F77='-L$libdir'
22441 hardcode_direct_F77=yes
22442 hardcode_minus_L_F77=yes
22443 hardcode_shlibpath_var_F77=no
22447 case $host_vendor in
22449 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22450 hardcode_direct_F77=yes # is this really true???
22453 ## LD is ld it makes a PLAMLIB
22454 ## CC just makes a GrossModule.
22455 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22456 reload_cmds_F77='$CC -r -o $output$reload_objs'
22457 hardcode_direct_F77=no
22460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22461 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22464 runpath_var='LD_RUN_PATH'
22465 hardcode_shlibpath_var_F77=no
22469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22470 hardcode_shlibpath_var_F77=no
22471 export_dynamic_flag_spec_F77='-Bexport'
22475 if test -d /usr/nec; then
22476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22477 hardcode_shlibpath_var_F77=no
22478 runpath_var=LD_RUN_PATH
22479 hardcode_runpath_var=yes
22484 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22485 no_undefined_flag_F77='${wl}-z,text'
22486 archive_cmds_need_lc_F77=no
22487 hardcode_shlibpath_var_F77=no
22488 runpath_var='LD_RUN_PATH'
22490 if test "$GCC" = yes; then
22491 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22492 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22494 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22495 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22499 sysv5* | sco3.2v5* | sco5v6*)
22500 # Note: We can NOT use -z defs as we might desire, because we do not
22501 # link with -lc, and that would cause any symbols used from libc to
22502 # always be unresolved, which means just about no library would
22503 # ever link correctly. If we're not using GNU ld we use -z text
22504 # though, which does catch some bad symbols but isn't as heavy-handed
22506 no_undefined_flag_F77='${wl}-z,text'
22507 allow_undefined_flag_F77='${wl}-z,nodefs'
22508 archive_cmds_need_lc_F77=no
22509 hardcode_shlibpath_var_F77=no
22510 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22511 hardcode_libdir_separator_F77=':'
22512 link_all_deplibs_F77=yes
22513 export_dynamic_flag_spec_F77='${wl}-Bexport'
22514 runpath_var='LD_RUN_PATH'
22516 if test "$GCC" = yes; then
22517 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22518 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22520 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22521 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527 hardcode_libdir_flag_spec_F77='-L$libdir'
22528 hardcode_shlibpath_var_F77=no
22537 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22538 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22539 test "$ld_shlibs_F77" = no && can_build_shared=no
22542 # Do we need to explicitly link libc?
22544 case "x$archive_cmds_need_lc_F77" in
22546 # Assume -lc should be added
22547 archive_cmds_need_lc_F77=yes
22549 if test "$enable_shared" = yes && test "$GCC" = yes; then
22550 case $archive_cmds_F77 in
22552 # FIXME: we may have to deal with multi-command sequences.
22555 # Test whether the compiler implicitly links with -lc since on some
22556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22557 # to ld, don't add -lc before -lgcc.
22558 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22559 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22561 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22564 (eval $ac_compile) 2>&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } 2>conftest.err; then
22570 libobjs=conftest.$ac_objext
22572 wl=$lt_prog_compiler_wl_F77
22573 pic_flag=$lt_prog_compiler_pic_F77
22579 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22580 allow_undefined_flag_F77=
22581 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22582 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }
22587 archive_cmds_need_lc_F77=no
22589 archive_cmds_need_lc_F77=yes
22591 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22593 cat conftest.err 1>&5
22596 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22597 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22604 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22605 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22606 library_names_spec=
22607 libname_spec='lib$name'
22611 postuninstall_cmds=
22615 shlibpath_overrides_runpath=unknown
22617 dynamic_linker="$host_os ld.so"
22618 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22619 if test "$GCC" = yes; then
22620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22621 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22622 # if the path contains ";" then we assume it to be the separator
22623 # otherwise default to the standard path separator (i.e. ":") - it is
22624 # assumed that no part of a normal pathname contains ";" but that should
22625 # okay in the real world where ";" in dirpaths is itself problematic.
22626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22633 need_lib_prefix=unknown
22634 hardcode_into_libs=no
22636 # when you set need_version to no, make sure it does not cause -set_version
22637 # flags to be left without arguments
22638 need_version=unknown
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22644 shlibpath_var=LIBPATH
22646 # AIX 3 has no versioning support, so we append a major version to the name.
22647 soname_spec='${libname}${release}${shared_ext}$major'
22654 hardcode_into_libs=yes
22655 if test "$host_cpu" = ia64; then
22656 # AIX 5 supports IA64
22657 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22658 shlibpath_var=LD_LIBRARY_PATH
22660 # With GCC up to 2.95.x, collect2 would create an import file
22661 # for dependence libraries. The import file would start with
22662 # the line `#! .'. This would cause the generated library to
22663 # depend on `.', always an invalid library. This was fixed in
22664 # development snapshots of GCC prior to 3.0.
22666 aix4 | aix4.[01] | aix4.[01].*)
22667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22669 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22672 can_build_shared=no
22676 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22677 # soname into executable. Probably we can add versioning support to
22678 # collect2, so additional links can be useful in future.
22679 if test "$aix_use_runtimelinking" = yes; then
22680 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22681 # instead of lib<name>.a to let people know that these are not
22682 # typical AIX shared libraries.
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22685 # We preserve .a as extension for shared libraries through AIX4.2
22686 # and later when we are not doing run time linking.
22687 library_names_spec='${libname}${release}.a $libname.a'
22688 soname_spec='${libname}${release}${shared_ext}$major'
22690 shlibpath_var=LIBPATH
22695 library_names_spec='$libname.ixlibrary $libname.a'
22696 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22697 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'
22701 library_names_spec='${libname}${shared_ext}'
22702 dynamic_linker="$host_os ld.so"
22703 shlibpath_var=LIBRARY_PATH
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22710 soname_spec='${libname}${release}${shared_ext}$major'
22711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22712 shlibpath_var=LD_LIBRARY_PATH
22713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22715 # the default ld.so.conf also contains /usr/contrib/lib and
22716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22717 # libtool to hard-code these into programs
22720 cygwin* | mingw* | pw32*)
22721 version_type=windows
22726 case $GCC,$host_os in
22727 yes,cygwin* | yes,mingw* | yes,pw32*)
22728 library_names_spec='$libname.dll.a'
22729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22730 postinstall_cmds='base_file=`basename \${file}`~
22731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22732 dldir=$destdir/`dirname \$dlpath`~
22733 test -d \$dldir || mkdir -p \$dldir~
22734 $install_prog $dir/$dlname \$dldir/$dlname~
22735 chmod a+x \$dldir/$dlname'
22736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22737 dlpath=$dir/\$dldll~
22739 shlibpath_overrides_runpath=yes
22743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22745 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22748 # MinGW DLLs use traditional 'lib' prefix
22749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22751 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22752 # It is most probably a Windows format PATH printed by
22753 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22754 # path with ; separators, and with drive letters. We can handle the
22755 # drive letters (cygwin fileutils understands them), so leave them,
22756 # especially as we might pass files found there to a mingw objdump,
22757 # which wouldn't understand a cygwinified path. Ahh.
22758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22764 # pw32 DLLs use 'pw' prefix rather than 'lib'
22765 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22771 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22774 dynamic_linker='Win32 ld.exe'
22775 # FIXME: first we should search . and the directory the executable is in
22779 darwin* | rhapsody*)
22780 dynamic_linker="$host_os dyld"
22781 version_type=darwin
22784 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22785 soname_spec='${libname}${release}${major}$shared_ext'
22786 shlibpath_overrides_runpath=yes
22787 shlibpath_var=DYLD_LIBRARY_PATH
22788 shrext_cmds='.dylib'
22789 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22790 if test "$GCC" = yes; then
22791 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"`
22793 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22795 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22803 soname_spec='${libname}${release}${shared_ext}$major'
22804 shlibpath_var=LD_LIBRARY_PATH
22815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22816 soname_spec='${libname}${release}${shared_ext}$major'
22817 shlibpath_var=LD_LIBRARY_PATH
22818 shlibpath_overrides_runpath=no
22819 hardcode_into_libs=yes
22820 dynamic_linker='GNU ld.so'
22823 freebsd* | dragonfly*)
22824 # DragonFly does not have aout. When/if they implement a new
22825 # versioning mechanism, adjust this.
22826 if test -x /usr/bin/objformat; then
22827 objformat=`/usr/bin/objformat`
22830 freebsd[123]*) objformat=aout ;;
22831 *) objformat=elf ;;
22834 version_type=freebsd-$objformat
22835 case $version_type in
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22846 shlibpath_var=LD_LIBRARY_PATH
22849 shlibpath_overrides_runpath=yes
22851 freebsd3.[01]* | freebsdelf3.[01]*)
22852 shlibpath_overrides_runpath=yes
22853 hardcode_into_libs=yes
22855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22857 shlibpath_overrides_runpath=no
22858 hardcode_into_libs=yes
22860 freebsd*) # from 4.6 on
22861 shlibpath_overrides_runpath=yes
22862 hardcode_into_libs=yes
22871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22872 soname_spec='${libname}${release}${shared_ext}$major'
22873 shlibpath_var=LD_LIBRARY_PATH
22874 hardcode_into_libs=yes
22877 hpux9* | hpux10* | hpux11*)
22878 # Give a soname corresponding to the major version so that dld.sl refuses to
22879 # link against other versions.
22886 hardcode_into_libs=yes
22887 dynamic_linker="$host_os dld.so"
22888 shlibpath_var=LD_LIBRARY_PATH
22889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891 soname_spec='${libname}${release}${shared_ext}$major'
22892 if test "X$HPUX_IA64_MODE" = X32; then
22893 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22895 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22901 hardcode_into_libs=yes
22902 dynamic_linker="$host_os dld.sl"
22903 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906 soname_spec='${libname}${release}${shared_ext}$major'
22907 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22912 dynamic_linker="$host_os dld.sl"
22913 shlibpath_var=SHLIB_PATH
22914 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22919 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22920 postinstall_cmds='chmod 555 $lib'
22927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22928 soname_spec='${libname}${release}${shared_ext}$major'
22929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22930 shlibpath_var=LD_LIBRARY_PATH
22931 shlibpath_overrides_runpath=no
22932 hardcode_into_libs=yes
22935 irix5* | irix6* | nonstopux*)
22937 nonstopux*) version_type=nonstopux ;;
22939 if test "$lt_cv_prog_gnu_ld" = yes; then
22947 soname_spec='${libname}${release}${shared_ext}$major'
22948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22950 irix5* | nonstopux*)
22951 libsuff= shlibsuff=
22954 case $LD in # libtool.m4 will add one of these switches to LD
22955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22956 libsuff= shlibsuff= libmagic=32-bit;;
22957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22958 libsuff=32 shlibsuff=N32 libmagic=N32;;
22959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22961 *) libsuff= shlibsuff= libmagic=never-match;;
22965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22966 shlibpath_overrides_runpath=no
22967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22969 hardcode_into_libs=yes
22972 # No shared lib support for Linux oldld, aout, or coff.
22973 linux*oldld* | linux*aout* | linux*coff*)
22977 # This must be Linux ELF.
22982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22983 soname_spec='${libname}${release}${shared_ext}$major'
22984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22985 shlibpath_var=LD_LIBRARY_PATH
22986 shlibpath_overrides_runpath=no
22987 # This implies no fast_install, which is unacceptable.
22988 # Some rework will be needed to allow for fast_install
22989 # before this can be enabled.
22990 hardcode_into_libs=yes
22992 # Append ld.so.conf contents to the search path
22993 if test -f /etc/ld.so.conf; then
22994 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' ' '`
22995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22998 # We used to test for /lib/ld.so.1 and disable shared libraries on
22999 # powerpc, because MkLinux only supported shared libraries with the
23000 # GNU dynamic linker. Since this was broken with cross compilers,
23001 # most powerpc-linux boxes support dynamic linking these days and
23002 # people can always --disable-shared, the test was removed, and we
23003 # assume the GNU/Linux dynamic linker is in use.
23004 dynamic_linker='GNU/Linux ld.so'
23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23012 soname_spec='${libname}${release}${shared_ext}$major'
23013 shlibpath_var=LD_LIBRARY_PATH
23014 shlibpath_overrides_runpath=no
23015 hardcode_into_libs=yes
23016 dynamic_linker='GNU ld.so'
23023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23026 dynamic_linker='NetBSD (a.out) ld.so'
23028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23029 soname_spec='${libname}${release}${shared_ext}$major'
23030 dynamic_linker='NetBSD ld.elf_so'
23032 shlibpath_var=LD_LIBRARY_PATH
23033 shlibpath_overrides_runpath=yes
23034 hardcode_into_libs=yes
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 shlibpath_var=LD_LIBRARY_PATH
23041 shlibpath_overrides_runpath=yes
23048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23049 soname_spec='${libname}${release}${shared_ext}$major'
23050 shlibpath_var=LD_LIBRARY_PATH
23051 shlibpath_overrides_runpath=yes
23056 sys_lib_dlsearch_path_spec="/usr/lib"
23058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23061 *) need_version=no ;;
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23068 openbsd2.[89] | openbsd2.[89].*)
23069 shlibpath_overrides_runpath=no
23072 shlibpath_overrides_runpath=yes
23076 shlibpath_overrides_runpath=yes
23081 libname_spec='$name'
23084 library_names_spec='$libname${shared_ext} $libname.a'
23085 dynamic_linker='OS/2 ld.exe'
23086 shlibpath_var=LIBPATH
23089 osf3* | osf4* | osf5*)
23093 soname_spec='${libname}${release}${shared_ext}$major'
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23105 soname_spec='${libname}${release}${shared_ext}$major'
23106 shlibpath_var=LD_LIBRARY_PATH
23107 shlibpath_overrides_runpath=yes
23108 hardcode_into_libs=yes
23109 # ldd complains unless libraries are executable
23110 postinstall_cmds='chmod +x $lib'
23115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23117 shlibpath_var=LD_LIBRARY_PATH
23118 shlibpath_overrides_runpath=yes
23119 if test "$with_gnu_ld" = yes; then
23127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23128 soname_spec='${libname}${release}${shared_ext}$major'
23129 shlibpath_var=LD_LIBRARY_PATH
23130 case $host_vendor in
23132 shlibpath_overrides_runpath=no
23134 export_dynamic_flag_spec='${wl}-Blargedynsym'
23135 runpath_var=LD_RUN_PATH
23143 shlibpath_overrides_runpath=no
23144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23150 if test -d /usr/nec ;then
23152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23153 soname_spec='$libname${shared_ext}.$major'
23154 shlibpath_var=LD_LIBRARY_PATH
23158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23159 version_type=freebsd-elf
23162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23163 soname_spec='${libname}${release}${shared_ext}$major'
23164 shlibpath_var=LD_LIBRARY_PATH
23165 hardcode_into_libs=yes
23166 if test "$with_gnu_ld" = yes; then
23167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23168 shlibpath_overrides_runpath=no
23170 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23171 shlibpath_overrides_runpath=yes
23174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23178 sys_lib_dlsearch_path_spec='/usr/lib'
23183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184 soname_spec='${libname}${release}${shared_ext}$major'
23185 shlibpath_var=LD_LIBRARY_PATH
23192 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23193 echo "${ECHO_T}$dynamic_linker" >&6; }
23194 test "$dynamic_linker" = no && can_build_shared=no
23196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23197 if test "$GCC" = yes; then
23198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23201 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23202 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23203 hardcode_action_F77=
23204 if test -n "$hardcode_libdir_flag_spec_F77" || \
23205 test -n "$runpath_var_F77" || \
23206 test "X$hardcode_automatic_F77" = "Xyes" ; then
23208 # We can hardcode non-existant directories.
23209 if test "$hardcode_direct_F77" != no &&
23210 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23211 # have to relink, otherwise we might link with an installed library
23212 # when we should be linking with a yet-to-be-installed one
23213 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23214 test "$hardcode_minus_L_F77" != no; then
23215 # Linking always hardcodes the temporary library directory.
23216 hardcode_action_F77=relink
23218 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23219 hardcode_action_F77=immediate
23222 # We cannot hardcode anything, or else we can only hardcode existing
23224 hardcode_action_F77=unsupported
23226 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23227 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23229 if test "$hardcode_action_F77" = relink; then
23230 # Fast installation is not supported
23231 enable_fast_install=no
23232 elif test "$shlibpath_overrides_runpath" = yes ||
23233 test "$enable_shared" = no; then
23234 # Fast installation is not necessary
23235 enable_fast_install=needless
23239 # The else clause should only fire when bootstrapping the
23240 # libtool distribution, otherwise you forgot to ship ltmain.sh
23241 # with your package, and you will get complaints that there are
23242 # no rules to generate ltmain.sh.
23243 if test -f "$ltmain"; then
23244 # See if we are running on zsh, and set the options which allow our commands through
23245 # without removal of \ escapes.
23246 if test -n "${ZSH_VERSION+set}" ; then
23247 setopt NO_GLOB_SUBST
23249 # Now quote all the things that may contain metacharacters while being
23250 # careful not to overquote the AC_SUBSTed values. We take copies of the
23251 # variables and quote the copies for generation of the libtool script.
23252 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23254 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23255 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23256 deplibs_check_method reload_flag reload_cmds need_locks \
23257 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23258 lt_cv_sys_global_symbol_to_c_name_address \
23259 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23260 old_postinstall_cmds old_postuninstall_cmds \
23264 lt_prog_compiler_wl_F77 \
23265 lt_prog_compiler_pic_F77 \
23266 lt_prog_compiler_static_F77 \
23267 lt_prog_compiler_no_builtin_flag_F77 \
23268 export_dynamic_flag_spec_F77 \
23269 thread_safe_flag_spec_F77 \
23270 whole_archive_flag_spec_F77 \
23271 enable_shared_with_static_runtimes_F77 \
23272 old_archive_cmds_F77 \
23273 old_archive_from_new_cmds_F77 \
23274 predep_objects_F77 \
23275 postdep_objects_F77 \
23278 compiler_lib_search_path_F77 \
23280 archive_expsym_cmds_F77 \
23281 postinstall_cmds_F77 \
23282 postuninstall_cmds_F77 \
23283 old_archive_from_expsyms_cmds_F77 \
23284 allow_undefined_flag_F77 \
23285 no_undefined_flag_F77 \
23286 export_symbols_cmds_F77 \
23287 hardcode_libdir_flag_spec_F77 \
23288 hardcode_libdir_flag_spec_ld_F77 \
23289 hardcode_libdir_separator_F77 \
23290 hardcode_automatic_F77 \
23292 module_expsym_cmds_F77 \
23293 lt_cv_prog_compiler_c_o_F77 \
23294 exclude_expsyms_F77 \
23295 include_expsyms_F77; do
23298 old_archive_cmds_F77 | \
23299 old_archive_from_new_cmds_F77 | \
23300 archive_cmds_F77 | \
23301 archive_expsym_cmds_F77 | \
23302 module_cmds_F77 | \
23303 module_expsym_cmds_F77 | \
23304 old_archive_from_expsyms_cmds_F77 | \
23305 export_symbols_cmds_F77 | \
23306 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23307 postinstall_cmds | postuninstall_cmds | \
23308 old_postinstall_cmds | old_postuninstall_cmds | \
23309 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23310 # Double-quote double-evaled strings.
23311 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23320 *'\$0 --fallback-echo"')
23321 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23327 cat <<__EOF__ >> "$cfgfile"
23328 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23332 # Shell to use when invoking shell scripts.
23335 # Whether or not to build shared libraries.
23336 build_libtool_libs=$enable_shared
23338 # Whether or not to build static libraries.
23339 build_old_libs=$enable_static
23341 # Whether or not to add -lc for building shared libraries.
23342 build_libtool_need_lc=$archive_cmds_need_lc_F77
23344 # Whether or not to disallow shared libs when runtime libs are static
23345 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23347 # Whether or not to optimize for fast installation.
23348 fast_install=$enable_fast_install
23351 host_alias=$host_alias
23355 # The build system.
23356 build_alias=$build_alias
23360 # An echo program that does not interpret backslashes.
23365 AR_FLAGS=$lt_AR_FLAGS
23370 # LTCC compiler flags.
23371 LTCFLAGS=$lt_LTCFLAGS
23373 # A language-specific compiler.
23374 CC=$lt_compiler_F77
23376 # Is the compiler the GNU C compiler?
23382 # The linker used to build libraries.
23385 # Whether we need hard or soft links.
23388 # A BSD-compatible nm program.
23391 # A symbol stripping program
23394 # Used to examine libraries when file_magic_cmd begins "file"
23395 MAGIC_CMD=$MAGIC_CMD
23397 # Used on cygwin: DLL creation program.
23400 # Used on cygwin: object dumper.
23403 # Used on cygwin: assembler.
23406 # The name of the directory that contains temporary libtool files.
23409 # How to create reloadable object files.
23410 reload_flag=$lt_reload_flag
23411 reload_cmds=$lt_reload_cmds
23413 # How to pass a linker flag through the compiler.
23414 wl=$lt_lt_prog_compiler_wl_F77
23416 # Object file suffix (normally "o").
23417 objext="$ac_objext"
23419 # Old archive suffix (normally "a").
23422 # Shared library suffix (normally ".so").
23423 shrext_cmds='$shrext_cmds'
23425 # Executable file suffix (normally "").
23428 # Additional compiler flags for building library objects.
23429 pic_flag=$lt_lt_prog_compiler_pic_F77
23432 # What is the maximum length of a command?
23433 max_cmd_len=$lt_cv_sys_max_cmd_len
23435 # Does compiler simultaneously support -c and -o options?
23436 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23438 # Must we lock files when doing compilation?
23439 need_locks=$lt_need_locks
23441 # Do we need the lib prefix for modules?
23442 need_lib_prefix=$need_lib_prefix
23444 # Do we need a version for libraries?
23445 need_version=$need_version
23447 # Whether dlopen is supported.
23448 dlopen_support=$enable_dlopen
23450 # Whether dlopen of programs is supported.
23451 dlopen_self=$enable_dlopen_self
23453 # Whether dlopen of statically linked programs is supported.
23454 dlopen_self_static=$enable_dlopen_self_static
23456 # Compiler flag to prevent dynamic linking.
23457 link_static_flag=$lt_lt_prog_compiler_static_F77
23459 # Compiler flag to turn off builtin functions.
23460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23462 # Compiler flag to allow reflexive dlopens.
23463 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23465 # Compiler flag to generate shared objects directly from archives.
23466 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23468 # Compiler flag to generate thread-safe objects.
23469 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23471 # Library versioning type.
23472 version_type=$version_type
23474 # Format of library name prefix.
23475 libname_spec=$lt_libname_spec
23477 # List of archive names. First name is the real one, the rest are links.
23478 # The last name is the one that the linker finds with -lNAME.
23479 library_names_spec=$lt_library_names_spec
23481 # The coded name of the library, if different from the real name.
23482 soname_spec=$lt_soname_spec
23484 # Commands used to build and install an old-style archive.
23486 old_archive_cmds=$lt_old_archive_cmds_F77
23487 old_postinstall_cmds=$lt_old_postinstall_cmds
23488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23490 # Create an old-style archive from a shared archive.
23491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23493 # Create a temporary old-style archive to link instead of a shared archive.
23494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23496 # Commands used to build and install a shared archive.
23497 archive_cmds=$lt_archive_cmds_F77
23498 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23499 postinstall_cmds=$lt_postinstall_cmds
23500 postuninstall_cmds=$lt_postuninstall_cmds
23502 # Commands used to build a loadable module (assumed same as above if empty)
23503 module_cmds=$lt_module_cmds_F77
23504 module_expsym_cmds=$lt_module_expsym_cmds_F77
23506 # Commands to strip libraries.
23507 old_striplib=$lt_old_striplib
23508 striplib=$lt_striplib
23510 # Dependencies to place before the objects being linked to create a
23512 predep_objects=$lt_predep_objects_F77
23514 # Dependencies to place after the objects being linked to create a
23516 postdep_objects=$lt_postdep_objects_F77
23518 # Dependencies to place before the objects being linked to create a
23520 predeps=$lt_predeps_F77
23522 # Dependencies to place after the objects being linked to create a
23524 postdeps=$lt_postdeps_F77
23526 # The library search path used internally by the compiler when linking
23527 # a shared library.
23528 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23530 # Method to check whether dependent libraries are shared objects.
23531 deplibs_check_method=$lt_deplibs_check_method
23533 # Command to use when deplibs_check_method == file_magic.
23534 file_magic_cmd=$lt_file_magic_cmd
23536 # Flag that allows shared libraries with undefined symbols to be built.
23537 allow_undefined_flag=$lt_allow_undefined_flag_F77
23539 # Flag that forces no undefined symbols.
23540 no_undefined_flag=$lt_no_undefined_flag_F77
23542 # Commands used to finish a libtool library installation in a directory.
23543 finish_cmds=$lt_finish_cmds
23545 # Same as above, but a single script fragment to be evaled but not shown.
23546 finish_eval=$lt_finish_eval
23548 # Take the output of nm and produce a listing of raw symbols and C names.
23549 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23551 # Transform the output of nm in a proper C declaration
23552 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23554 # Transform the output of nm in a C name address pair
23555 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23557 # This is the shared library runtime path variable.
23558 runpath_var=$runpath_var
23560 # This is the shared library path variable.
23561 shlibpath_var=$shlibpath_var
23563 # Is shlibpath searched before the hard-coded library search path?
23564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23566 # How to hardcode a shared library path into an executable.
23567 hardcode_action=$hardcode_action_F77
23569 # Whether we should hardcode library paths into libraries.
23570 hardcode_into_libs=$hardcode_into_libs
23572 # Flag to hardcode \$libdir into a binary during linking.
23573 # This must work even if \$libdir does not exist.
23574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23576 # If ld is used when linking, flag to hardcode \$libdir into
23577 # a binary during linking. This must work even if \$libdir does
23579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23581 # Whether we need a single -rpath flag with a separated argument.
23582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23584 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23585 # resulting binary.
23586 hardcode_direct=$hardcode_direct_F77
23588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23589 # resulting binary.
23590 hardcode_minus_L=$hardcode_minus_L_F77
23592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23593 # the resulting binary.
23594 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23596 # Set to yes if building a shared library automatically hardcodes DIR into the library
23597 # and all subsequent libraries and executables linked against it.
23598 hardcode_automatic=$hardcode_automatic_F77
23600 # Variables whose values should be saved in libtool wrapper scripts and
23601 # restored at relink time.
23602 variables_saved_for_relink="$variables_saved_for_relink"
23604 # Whether libtool must link a program against all its dependency libraries.
23605 link_all_deplibs=$link_all_deplibs_F77
23607 # Compile-time system search path for libraries
23608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23610 # Run-time system search path for libraries
23611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23613 # Fix the shell variable \$srcfile for the compiler.
23614 fix_srcfile_path="$fix_srcfile_path_F77"
23616 # Set to yes if exported symbols are required.
23617 always_export_symbols=$always_export_symbols_F77
23619 # The commands to list exported symbols.
23620 export_symbols_cmds=$lt_export_symbols_cmds_F77
23622 # The commands to extract the exported symbol list from a shared archive.
23623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23625 # Symbols that should not be listed in the preloaded symbols.
23626 exclude_expsyms=$lt_exclude_expsyms_F77
23628 # Symbols that must always be exported.
23629 include_expsyms=$lt_include_expsyms_F77
23631 # ### END LIBTOOL TAG CONFIG: $tagname
23637 # If there is no Makefile yet, we rely on a make rule to execute
23638 # `config.status --recheck' to rerun these tests and create the
23639 # libtool script then.
23640 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23641 if test -f "$ltmain_in"; then
23642 test -f Makefile && make "$ltmain"
23648 ac_cpp='$CPP $CPPFLAGS'
23649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23661 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23663 ac_cpp='$CPP $CPPFLAGS'
23664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23669 # Source file extension for Java test sources.
23672 # Object file extension for compiled Java test sources.
23676 # Code to be used in simple compile tests
23677 lt_simple_compile_test_code="class foo {}\n"
23679 # Code to be used in simple link tests
23680 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23682 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23684 # If no C compiler was specified, use CC.
23687 # If no C compiler flags were specified, use CFLAGS.
23688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23690 # Allow CC to be a program name with arguments.
23694 # save warnings/boilerplate of simple test code
23695 ac_outfile=conftest.$ac_objext
23696 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23697 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23698 _lt_compiler_boilerplate=`cat conftest.err`
23701 ac_outfile=conftest.$ac_objext
23702 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23703 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23704 _lt_linker_boilerplate=`cat conftest.err`
23708 # Allow CC to be a program name with arguments.
23713 for cc_temp in $compiler""; do
23715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23721 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23724 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23725 archive_cmds_need_lc_GCJ=no
23727 old_archive_cmds_GCJ=$old_archive_cmds
23730 lt_prog_compiler_no_builtin_flag_GCJ=
23732 if test "$GCC" = yes; then
23733 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23736 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23737 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23738 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 lt_cv_prog_compiler_rtti_exceptions=no
23742 ac_outfile=conftest.$ac_objext
23743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23744 lt_compiler_flag="-fno-rtti -fno-exceptions"
23745 # Insert the option either (1) after the last *FLAGS variable, or
23746 # (2) before a word containing "conftest.", or (3) at the end.
23747 # Note that $ac_compile itself does not contain backslashes and begins
23748 # with a dollar sign (not a hyphen), so the echo should work correctly.
23749 # The option is referenced via a variable to avoid confusing sed.
23750 lt_compile=`echo "$ac_compile" | $SED \
23751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23753 -e 's:$: $lt_compiler_flag:'`
23754 (eval echo "\"\$as_me:23754: $lt_compile\"" >&5)
23755 (eval "$lt_compile" 2>conftest.err)
23757 cat conftest.err >&5
23758 echo "$as_me:23758: \$? = $ac_status" >&5
23759 if (exit $ac_status) && test -s "$ac_outfile"; then
23760 # The compiler can only warn and ignore the option if not recognized
23761 # So say no if there are warnings other than the usual output.
23762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23765 lt_cv_prog_compiler_rtti_exceptions=yes
23771 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23772 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23774 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23775 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23782 lt_prog_compiler_wl_GCJ=
23783 lt_prog_compiler_pic_GCJ=
23784 lt_prog_compiler_static_GCJ=
23786 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23789 if test "$GCC" = yes; then
23790 lt_prog_compiler_wl_GCJ='-Wl,'
23791 lt_prog_compiler_static_GCJ='-static'
23795 # All AIX code is PIC.
23796 if test "$host_cpu" = ia64; then
23797 # AIX 5 now supports IA64 processor
23798 lt_prog_compiler_static_GCJ='-Bstatic'
23803 # FIXME: we need at least 68020 code to build shared libraries, but
23804 # adding the `-m68020' flag to GCC prevents building anything better,
23806 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23809 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23810 # PIC is the default for these OSes.
23813 mingw* | pw32* | os2*)
23814 # This hack is so that the source file can tell whether it is being
23815 # built for inclusion in a dll (and should export symbols for example).
23816 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23819 darwin* | rhapsody*)
23820 # PIC is the default on this platform
23821 # Common symbols not allowed in MH_DYLIB files
23822 lt_prog_compiler_pic_GCJ='-fno-common'
23826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23827 # Instead, we relocate shared libraries at runtime.
23831 # Just because we use GCC doesn't mean we suddenly get shared libraries
23832 # on systems that don't support them.
23833 lt_prog_compiler_can_build_shared_GCJ=no
23838 if test -d /usr/nec; then
23839 lt_prog_compiler_pic_GCJ=-Kconform_pic
23844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23845 # not for PA HP-UX.
23851 lt_prog_compiler_pic_GCJ='-fPIC'
23857 lt_prog_compiler_pic_GCJ='-fPIC'
23861 # PORTME Check for flag to pass linker flags through the system compiler.
23864 lt_prog_compiler_wl_GCJ='-Wl,'
23865 if test "$host_cpu" = ia64; then
23866 # AIX 5 now supports IA64 processor
23867 lt_prog_compiler_static_GCJ='-Bstatic'
23869 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23873 # PIC is the default on this platform
23874 # Common symbols not allowed in MH_DYLIB files
23875 case $cc_basename in
23877 lt_prog_compiler_pic_GCJ='-qnocommon'
23878 lt_prog_compiler_wl_GCJ='-Wl,'
23883 mingw* | pw32* | os2*)
23884 # This hack is so that the source file can tell whether it is being
23885 # built for inclusion in a dll (and should export symbols for example).
23886 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23889 hpux9* | hpux10* | hpux11*)
23890 lt_prog_compiler_wl_GCJ='-Wl,'
23891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23892 # not for PA HP-UX.
23898 lt_prog_compiler_pic_GCJ='+Z'
23901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23902 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23905 irix5* | irix6* | nonstopux*)
23906 lt_prog_compiler_wl_GCJ='-Wl,'
23907 # PIC (with -KPIC) is the default.
23908 lt_prog_compiler_static_GCJ='-non_shared'
23912 lt_prog_compiler_pic_GCJ='-KPIC'
23913 lt_prog_compiler_static_GCJ='-Bstatic'
23917 case $cc_basename in
23919 lt_prog_compiler_wl_GCJ='-Wl,'
23920 lt_prog_compiler_pic_GCJ='-KPIC'
23921 lt_prog_compiler_static_GCJ='-static'
23923 pgcc* | pgf77* | pgf90* | pgf95*)
23924 # Portland Group compilers (*not* the Pentium gcc compiler,
23925 # which looks to be a dead project)
23926 lt_prog_compiler_wl_GCJ='-Wl,'
23927 lt_prog_compiler_pic_GCJ='-fpic'
23928 lt_prog_compiler_static_GCJ='-Bstatic'
23931 lt_prog_compiler_wl_GCJ='-Wl,'
23932 # All Alpha code is PIC.
23933 lt_prog_compiler_static_GCJ='-non_shared'
23938 osf3* | osf4* | osf5*)
23939 lt_prog_compiler_wl_GCJ='-Wl,'
23940 # All OSF/1 code is PIC.
23941 lt_prog_compiler_static_GCJ='-non_shared'
23945 lt_prog_compiler_pic_GCJ='-KPIC'
23946 lt_prog_compiler_static_GCJ='-Bstatic'
23947 case $cc_basename in
23948 f77* | f90* | f95*)
23949 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23951 lt_prog_compiler_wl_GCJ='-Wl,';;
23956 lt_prog_compiler_wl_GCJ='-Qoption ld '
23957 lt_prog_compiler_pic_GCJ='-PIC'
23958 lt_prog_compiler_static_GCJ='-Bstatic'
23961 sysv4 | sysv4.2uw2* | sysv4.3*)
23962 lt_prog_compiler_wl_GCJ='-Wl,'
23963 lt_prog_compiler_pic_GCJ='-KPIC'
23964 lt_prog_compiler_static_GCJ='-Bstatic'
23968 if test -d /usr/nec ;then
23969 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23970 lt_prog_compiler_static_GCJ='-Bstatic'
23974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23975 lt_prog_compiler_wl_GCJ='-Wl,'
23976 lt_prog_compiler_pic_GCJ='-KPIC'
23977 lt_prog_compiler_static_GCJ='-Bstatic'
23981 lt_prog_compiler_wl_GCJ='-Wl,'
23982 lt_prog_compiler_can_build_shared_GCJ=no
23986 lt_prog_compiler_pic_GCJ='-pic'
23987 lt_prog_compiler_static_GCJ='-Bstatic'
23991 lt_prog_compiler_can_build_shared_GCJ=no
23996 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23997 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24000 # Check to make sure the PIC flag actually works.
24002 if test -n "$lt_prog_compiler_pic_GCJ"; then
24004 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24005 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24006 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24007 echo $ECHO_N "(cached) $ECHO_C" >&6
24009 lt_prog_compiler_pic_works_GCJ=no
24010 ac_outfile=conftest.$ac_objext
24011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24012 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24013 # Insert the option either (1) after the last *FLAGS variable, or
24014 # (2) before a word containing "conftest.", or (3) at the end.
24015 # Note that $ac_compile itself does not contain backslashes and begins
24016 # with a dollar sign (not a hyphen), so the echo should work correctly.
24017 # The option is referenced via a variable to avoid confusing sed.
24018 lt_compile=`echo "$ac_compile" | $SED \
24019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24021 -e 's:$: $lt_compiler_flag:'`
24022 (eval echo "\"\$as_me:24022: $lt_compile\"" >&5)
24023 (eval "$lt_compile" 2>conftest.err)
24025 cat conftest.err >&5
24026 echo "$as_me:24026: \$? = $ac_status" >&5
24027 if (exit $ac_status) && test -s "$ac_outfile"; then
24028 # The compiler can only warn and ignore the option if not recognized
24029 # So say no if there are warnings other than the usual output.
24030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24033 lt_prog_compiler_pic_works_GCJ=yes
24039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24040 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24042 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24043 case $lt_prog_compiler_pic_GCJ in
24045 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24048 lt_prog_compiler_pic_GCJ=
24049 lt_prog_compiler_can_build_shared_GCJ=no
24054 # For platforms which do not support PIC, -DPIC is meaningless:
24056 lt_prog_compiler_pic_GCJ=
24059 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24064 # Check to make sure the static flag actually works.
24066 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24067 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24068 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24069 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24072 lt_prog_compiler_static_works_GCJ=no
24073 save_LDFLAGS="$LDFLAGS"
24074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24075 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24077 # The linker can only warn and ignore the option if not recognized
24078 # So say no if there are warnings
24079 if test -s conftest.err; then
24080 # Append any errors to the config.log.
24081 cat conftest.err 1>&5
24082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24084 if diff conftest.exp conftest.er2 >/dev/null; then
24085 lt_prog_compiler_static_works_GCJ=yes
24088 lt_prog_compiler_static_works_GCJ=yes
24092 LDFLAGS="$save_LDFLAGS"
24095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24096 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24098 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24101 lt_prog_compiler_static_GCJ=
24105 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24107 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24110 lt_cv_prog_compiler_c_o_GCJ=no
24111 $rm -r conftest 2>/dev/null
24115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24117 lt_compiler_flag="-o out/conftest2.$ac_objext"
24118 # Insert the option either (1) after the last *FLAGS variable, or
24119 # (2) before a word containing "conftest.", or (3) at the end.
24120 # Note that $ac_compile itself does not contain backslashes and begins
24121 # with a dollar sign (not a hyphen), so the echo should work correctly.
24122 lt_compile=`echo "$ac_compile" | $SED \
24123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24125 -e 's:$: $lt_compiler_flag:'`
24126 (eval echo "\"\$as_me:24126: $lt_compile\"" >&5)
24127 (eval "$lt_compile" 2>out/conftest.err)
24129 cat out/conftest.err >&5
24130 echo "$as_me:24130: \$? = $ac_status" >&5
24131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24133 # The compiler can only warn and ignore the option if not recognized
24134 # So say no if there are warnings
24135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24138 lt_cv_prog_compiler_c_o_GCJ=yes
24143 # SGI C++ compiler will create directory out/ii_files/ for
24144 # template instantiation
24145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24146 $rm out/* && rmdir out
24152 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24153 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24156 hard_links="nottested"
24157 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24158 # do not overwrite the value of need_locks provided by the user
24159 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24160 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24165 ln conftest.a conftest.b 2>&5 || hard_links=no
24166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24167 { echo "$as_me:$LINENO: result: $hard_links" >&5
24168 echo "${ECHO_T}$hard_links" >&6; }
24169 if test "$hard_links" = no; then
24170 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24171 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24178 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24179 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24182 allow_undefined_flag_GCJ=
24183 enable_shared_with_static_runtimes_GCJ=no
24185 archive_expsym_cmds_GCJ=
24186 old_archive_From_new_cmds_GCJ=
24187 old_archive_from_expsyms_cmds_GCJ=
24188 export_dynamic_flag_spec_GCJ=
24189 whole_archive_flag_spec_GCJ=
24190 thread_safe_flag_spec_GCJ=
24191 hardcode_libdir_flag_spec_GCJ=
24192 hardcode_libdir_flag_spec_ld_GCJ=
24193 hardcode_libdir_separator_GCJ=
24194 hardcode_direct_GCJ=no
24195 hardcode_minus_L_GCJ=no
24196 hardcode_shlibpath_var_GCJ=unsupported
24197 link_all_deplibs_GCJ=unknown
24198 hardcode_automatic_GCJ=no
24200 module_expsym_cmds_GCJ=
24201 always_export_symbols_GCJ=no
24202 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24203 # include_expsyms should be a list of space-separated symbols to be *always*
24204 # included in the symbol list
24205 include_expsyms_GCJ=
24206 # exclude_expsyms can be an extended regexp of symbols to exclude
24207 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24209 # as well as any symbol that contains `d'.
24210 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24212 # platforms (ab)use it in PIC code, but their linkers get confused if
24213 # the symbol is explicitly referenced. Since portable code cannot
24214 # rely on this symbol name, it's probably fine to never include it in
24215 # preloaded symbol tables.
24216 extract_expsyms_cmds=
24217 # Just being paranoid about ensuring that cc_basename is set.
24218 for cc_temp in $compiler""; do
24220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24229 cygwin* | mingw* | pw32*)
24230 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24231 # When not using gcc, we currently assume that we are using
24232 # Microsoft Visual C++.
24233 if test "$GCC" != yes; then
24238 # we just hope/assume this is gcc and not c89 (= MSVC++)
24247 if test "$with_gnu_ld" = yes; then
24248 # If archive_cmds runs LD, not CC, wlarc should be empty
24251 # Set some defaults for GNU ld with shared library support. These
24252 # are reset later if shared libraries are not supported. Putting them
24253 # here allows them to be overridden if necessary.
24254 runpath_var=LD_RUN_PATH
24255 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24256 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24257 # ancient GNU ld didn't support --whole-archive et. al.
24258 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24259 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24261 whole_archive_flag_spec_GCJ=
24263 supports_anon_versioning=no
24264 case `$LD -v 2>/dev/null` in
24265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24268 *\ 2.11.*) ;; # other 2.11 versions
24269 *) supports_anon_versioning=yes ;;
24272 # See if GNU ld supports shared libraries.
24274 aix3* | aix4* | aix5*)
24275 # On AIX/PPC, the GNU linker is very broken
24276 if test "$host_cpu" != ia64; then
24280 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24281 *** to be unable to reliably create shared libraries on AIX.
24282 *** Therefore, libtool is disabling shared libraries support. If you
24283 *** really care for shared libraries, you may want to modify your PATH
24284 *** so that a non-GNU linker is found, and then restart.
24291 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)'
24292 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24293 hardcode_minus_L_GCJ=yes
24295 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24296 # that the semantics of dynamic libraries on AmigaOS, at least up
24297 # to version 4, is to share data among multiple programs linked
24298 # with the same dynamic library. Since this doesn't match the
24299 # behavior of shared libraries on other platforms, we can't use
24305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24306 allow_undefined_flag_GCJ=unsupported
24307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24308 # support --undefined. This deserves some investigation. FIXME
24309 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24315 cygwin* | mingw* | pw32*)
24316 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24317 # as there is no search path for DLLs.
24318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24319 allow_undefined_flag_GCJ=unsupported
24320 always_export_symbols_GCJ=no
24321 enable_shared_with_static_runtimes_GCJ=yes
24322 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24325 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24326 # If the export-symbols file already is a .def file (1st line
24327 # is EXPORTS), use it as is; otherwise, prepend...
24328 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24329 cp $export_symbols $output_objdir/$soname.def;
24331 echo EXPORTS > $output_objdir/$soname.def;
24332 cat $export_symbols >> $output_objdir/$soname.def;
24334 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24341 hardcode_direct_GCJ=no
24342 hardcode_shlibpath_var_GCJ=no
24343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24344 export_dynamic_flag_spec_GCJ='${wl}-E'
24345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24346 # Instead, shared libraries are loaded at an image base (0x10000000 by
24347 # default) and relocated if they conflict, which is a slow very memory
24348 # consuming and fragmenting process. To avoid this, we pick a random,
24349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24351 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'
24352 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'
24356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24358 case $cc_basename,$host_cpu in
24359 pgcc*) # Portland Group C compiler
24360 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24361 tmp_addflag=' $pic_flag'
24363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24364 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'
24365 tmp_addflag=' $pic_flag -Mnomain' ;;
24366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24367 tmp_addflag=' -i_dynamic' ;;
24368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24369 tmp_addflag=' -i_dynamic -nofor_main' ;;
24370 ifc* | ifort*) # Intel Fortran compiler
24371 tmp_addflag=' -nofor_main' ;;
24373 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24375 if test $supports_anon_versioning = yes; then
24376 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24378 $echo "local: *; };" >> $output_objdir/$libname.ver~
24379 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24388 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24391 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24392 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24397 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24401 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24402 *** create shared libraries on Solaris systems. Therefore, libtool
24403 *** is disabling shared libraries support. We urge you to upgrade GNU
24404 *** binutils to release 2.9.1 or newer. Another option is to modify
24405 *** your PATH or compiler configuration so that the native linker is
24406 *** used, and then restart.
24409 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24411 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24418 case `$LD -v 2>&1` in
24419 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24423 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24424 *** reliably create shared libraries on SCO systems. Therefore, libtool
24425 *** is disabling shared libraries support. We urge you to upgrade GNU
24426 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24427 *** your PATH or compiler configuration so that the native linker is
24428 *** used, and then restart.
24433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24434 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24445 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24447 hardcode_direct_GCJ=yes
24448 hardcode_shlibpath_var_GCJ=no
24452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24461 if test "$ld_shlibs_GCJ" = no; then
24463 hardcode_libdir_flag_spec_GCJ=
24464 export_dynamic_flag_spec_GCJ=
24465 whole_archive_flag_spec_GCJ=
24468 # PORTME fill in a description of your system's linker (not GNU ld)
24471 allow_undefined_flag_GCJ=unsupported
24472 always_export_symbols_GCJ=yes
24473 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'
24474 # Note: this linker hardcodes the directories in LIBPATH if there
24475 # are no directories specified by -L.
24476 hardcode_minus_L_GCJ=yes
24477 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24478 # Neither direct hardcoding nor static linking is supported with a
24480 hardcode_direct_GCJ=unsupported
24485 if test "$host_cpu" = ia64; then
24486 # On IA64, the linker does run time linking by default, so we don't
24487 # have to do anything special.
24488 aix_use_runtimelinking=no
24489 exp_sym_flag='-Bexport'
24492 # If we're using GNU nm, then we don't want the "-C" option.
24493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24495 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'
24497 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'
24499 aix_use_runtimelinking=no
24501 # Test if we are trying to use run time linking or normal
24502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24503 # need to do runtime linking.
24504 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24505 for ld_flag in $LDFLAGS; do
24506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24507 aix_use_runtimelinking=yes
24514 exp_sym_flag='-bexport'
24515 no_entry_flag='-bnoentry'
24518 # When large executables or shared objects are built, AIX ld can
24519 # have problems creating the table of contents. If linking a library
24520 # or program results in "error TOC overflow" add -mminimal-toc to
24521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24524 archive_cmds_GCJ=''
24525 hardcode_direct_GCJ=yes
24526 hardcode_libdir_separator_GCJ=':'
24527 link_all_deplibs_GCJ=yes
24529 if test "$GCC" = yes; then
24530 case $host_os in aix4.[012]|aix4.[012].*)
24531 # We only want to do this on AIX 4.2 and lower, the check
24532 # below for broken collect2 doesn't work under 4.3+
24533 collect2name=`${CC} -print-prog-name=collect2`
24534 if test -f "$collect2name" && \
24535 strings "$collect2name" | grep resolve_lib_name >/dev/null
24537 # We have reworked collect2
24538 hardcode_direct_GCJ=yes
24540 # We have old collect2
24541 hardcode_direct_GCJ=unsupported
24542 # It fails to find uninstalled libraries when the uninstalled
24543 # path is not listed in the libpath. Setting hardcode_minus_L
24544 # to unsupported forces relinking
24545 hardcode_minus_L_GCJ=yes
24546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24547 hardcode_libdir_separator_GCJ=
24551 shared_flag='-shared'
24552 if test "$aix_use_runtimelinking" = yes; then
24553 shared_flag="$shared_flag "'${wl}-G'
24557 if test "$host_cpu" = ia64; then
24558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24559 # chokes on -Wl,-G. The following line is correct:
24562 if test "$aix_use_runtimelinking" = yes; then
24563 shared_flag='${wl}-G'
24565 shared_flag='${wl}-bM:SRE'
24570 # It seems that -bexpall does not export symbols beginning with
24571 # underscore (_), so it is better to generate a list of symbols to export.
24572 always_export_symbols_GCJ=yes
24573 if test "$aix_use_runtimelinking" = yes; then
24574 # Warning - without using the other runtime loading flags (-brtl),
24575 # -berok will link without error, but may produce a broken library.
24576 allow_undefined_flag_GCJ='-berok'
24577 # Determine the default libpath from the value encoded in an empty executable.
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24593 rm -f conftest.$ac_objext conftest$ac_exeext
24594 if { (ac_try="$ac_link"
24595 case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_link") 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
24607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24608 { (case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_try") 2>&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; } &&
24617 { ac_try='test -s conftest$ac_exeext'
24618 { (case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623 (eval "$ac_try") 2>&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24630 # Check for a 64-bit object if we didn't find anything.
24631 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; }
24634 echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24640 rm -f core conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
24642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24644 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24645 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"
24647 if test "$host_cpu" = ia64; then
24648 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24649 allow_undefined_flag_GCJ="-z nodefs"
24650 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"
24652 # Determine the default libpath from the value encoded in an empty executable.
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24668 rm -f conftest.$ac_objext conftest$ac_exeext
24669 if { (ac_try="$ac_link"
24670 case "(($ac_try" in
24671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672 *) ac_try_echo=$ac_try;;
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675 (eval "$ac_link") 2>conftest.er1
24677 grep -v '^ *+' conftest.er1 >conftest.err
24679 cat conftest.err >&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } &&
24682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24683 { (case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688 (eval "$ac_try") 2>&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; } &&
24692 { ac_try='test -s conftest$ac_exeext'
24693 { (case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_try") 2>&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; }; then
24703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24705 # Check for a 64-bit object if we didn't find anything.
24706 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; }
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24715 rm -f core conftest.err conftest.$ac_objext \
24716 conftest$ac_exeext conftest.$ac_ext
24717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24719 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24720 # Warning - without using the other run time loading flags,
24721 # -berok will link without error, but may produce a broken library.
24722 no_undefined_flag_GCJ=' ${wl}-bernotok'
24723 allow_undefined_flag_GCJ=' ${wl}-berok'
24724 # Exported symbols can be pulled into shared objects from archives
24725 whole_archive_flag_spec_GCJ='$convenience'
24726 archive_cmds_need_lc_GCJ=yes
24727 # This is similar to how AIX traditionally builds its shared libraries.
24728 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'
24734 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)'
24735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736 hardcode_minus_L_GCJ=yes
24737 # see comment about different semantics on the GNU ld section
24742 export_dynamic_flag_spec_GCJ=-rdynamic
24745 cygwin* | mingw* | pw32*)
24746 # When not using gcc, we currently assume that we are using
24747 # Microsoft Visual C++.
24748 # hardcode_libdir_flag_spec is actually meaningless, as there is
24749 # no search path for DLLs.
24750 hardcode_libdir_flag_spec_GCJ=' '
24751 allow_undefined_flag_GCJ=unsupported
24752 # Tell ltmain to make .lib files, not .a files.
24754 # Tell ltmain to make .dll files, not .so files.
24756 # FIXME: Setting linknames here is a bad hack.
24757 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24758 # The linker will automatically build a .lib file if we build a DLL.
24759 old_archive_From_new_cmds_GCJ='true'
24760 # FIXME: Should let the user specify the lib program.
24761 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24762 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24763 enable_shared_with_static_runtimes_GCJ=yes
24766 darwin* | rhapsody*)
24768 rhapsody* | darwin1.[012])
24769 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24772 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24773 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24775 case ${MACOSX_DEPLOYMENT_TARGET} in
24777 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24780 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24786 archive_cmds_need_lc_GCJ=no
24787 hardcode_direct_GCJ=no
24788 hardcode_automatic_GCJ=yes
24789 hardcode_shlibpath_var_GCJ=unsupported
24790 whole_archive_flag_spec_GCJ=''
24791 link_all_deplibs_GCJ=yes
24792 if test "$GCC" = yes ; then
24793 output_verbose_link_cmd='echo'
24794 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24795 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24796 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24797 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}'
24798 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}'
24800 case $cc_basename in
24802 output_verbose_link_cmd='echo'
24803 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24804 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24805 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24806 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}'
24807 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}'
24817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24819 hardcode_shlibpath_var_GCJ=no
24826 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24827 # support. Future versions do this automatically, but an explicit c++rt0.o
24828 # does not break anything, and helps significantly (at the cost of a little
24831 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24832 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24833 hardcode_direct_GCJ=yes
24834 hardcode_shlibpath_var_GCJ=no
24837 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24839 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24840 hardcode_direct_GCJ=yes
24841 hardcode_minus_L_GCJ=yes
24842 hardcode_shlibpath_var_GCJ=no
24845 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24846 freebsd* | kfreebsd*-gnu | dragonfly*)
24847 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24849 hardcode_direct_GCJ=yes
24850 hardcode_shlibpath_var_GCJ=no
24854 if test "$GCC" = yes; then
24855 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'
24857 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'
24859 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24860 hardcode_libdir_separator_GCJ=:
24861 hardcode_direct_GCJ=yes
24863 # hardcode_minus_L: Not really in the search PATH,
24864 # but as the default location of the library.
24865 hardcode_minus_L_GCJ=yes
24866 export_dynamic_flag_spec_GCJ='${wl}-E'
24870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24871 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24873 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24875 if test "$with_gnu_ld" = no; then
24876 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24877 hardcode_libdir_separator_GCJ=:
24879 hardcode_direct_GCJ=yes
24880 export_dynamic_flag_spec_GCJ='${wl}-E'
24882 # hardcode_minus_L: Not really in the search PATH,
24883 # but as the default location of the library.
24884 hardcode_minus_L_GCJ=yes
24889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24892 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24895 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24898 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24904 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24907 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24910 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24914 if test "$with_gnu_ld" = no; then
24915 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24916 hardcode_libdir_separator_GCJ=:
24920 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24921 hardcode_direct_GCJ=no
24922 hardcode_shlibpath_var_GCJ=no
24925 hardcode_direct_GCJ=yes
24926 export_dynamic_flag_spec_GCJ='${wl}-E'
24928 # hardcode_minus_L: Not really in the search PATH,
24929 # but as the default location of the library.
24930 hardcode_minus_L_GCJ=yes
24936 irix5* | irix6* | nonstopux*)
24937 if test "$GCC" = yes; then
24938 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'
24940 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'
24941 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24944 hardcode_libdir_separator_GCJ=:
24945 link_all_deplibs_GCJ=yes
24949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24952 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24954 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24955 hardcode_direct_GCJ=yes
24956 hardcode_shlibpath_var_GCJ=no
24960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24961 hardcode_direct_GCJ=yes
24962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24963 hardcode_libdir_separator_GCJ=:
24964 hardcode_shlibpath_var_GCJ=no
24968 hardcode_direct_GCJ=yes
24969 hardcode_shlibpath_var_GCJ=no
24970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24971 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24972 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24974 export_dynamic_flag_spec_GCJ='${wl}-E'
24977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24979 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24991 hardcode_minus_L_GCJ=yes
24992 allow_undefined_flag_GCJ=unsupported
24993 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'
24994 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24998 if test "$GCC" = yes; then
24999 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25000 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'
25002 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25003 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'
25005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25006 hardcode_libdir_separator_GCJ=:
25009 osf4* | osf5*) # as osf3* with the addition of -msym flag
25010 if test "$GCC" = yes; then
25011 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25012 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'
25013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25015 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25016 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'
25017 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~
25018 $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'
25020 # Both c and cxx compiler support -rpath directly
25021 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25023 hardcode_libdir_separator_GCJ=:
25027 no_undefined_flag_GCJ=' -z text'
25028 if test "$GCC" = yes; then
25030 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25031 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25032 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25035 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25036 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25037 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25039 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25040 hardcode_shlibpath_var_GCJ=no
25042 solaris2.[0-5] | solaris2.[0-5].*) ;;
25044 # The compiler driver will combine linker options so we
25045 # cannot just pass the convience library names through
25046 # without $wl, iff we do not link with $LD.
25047 # Luckily, gcc supports the same syntax we need for Sun Studio.
25048 # Supported since Solaris 2.6 (maybe 2.5.1?)
25051 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25053 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' ;;
25056 link_all_deplibs_GCJ=yes
25060 if test "x$host_vendor" = xsequent; then
25061 # Use $CC to link under sequent, because it throws in some extra .o
25062 # files that make .init and .fini sections work.
25063 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25065 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25068 hardcode_direct_GCJ=yes
25069 hardcode_minus_L_GCJ=yes
25070 hardcode_shlibpath_var_GCJ=no
25074 case $host_vendor in
25076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25077 hardcode_direct_GCJ=yes # is this really true???
25080 ## LD is ld it makes a PLAMLIB
25081 ## CC just makes a GrossModule.
25082 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25083 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25084 hardcode_direct_GCJ=no
25087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25088 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25091 runpath_var='LD_RUN_PATH'
25092 hardcode_shlibpath_var_GCJ=no
25096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25097 hardcode_shlibpath_var_GCJ=no
25098 export_dynamic_flag_spec_GCJ='-Bexport'
25102 if test -d /usr/nec; then
25103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25104 hardcode_shlibpath_var_GCJ=no
25105 runpath_var=LD_RUN_PATH
25106 hardcode_runpath_var=yes
25111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25112 no_undefined_flag_GCJ='${wl}-z,text'
25113 archive_cmds_need_lc_GCJ=no
25114 hardcode_shlibpath_var_GCJ=no
25115 runpath_var='LD_RUN_PATH'
25117 if test "$GCC" = yes; then
25118 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25119 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25121 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25122 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25126 sysv5* | sco3.2v5* | sco5v6*)
25127 # Note: We can NOT use -z defs as we might desire, because we do not
25128 # link with -lc, and that would cause any symbols used from libc to
25129 # always be unresolved, which means just about no library would
25130 # ever link correctly. If we're not using GNU ld we use -z text
25131 # though, which does catch some bad symbols but isn't as heavy-handed
25133 no_undefined_flag_GCJ='${wl}-z,text'
25134 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25135 archive_cmds_need_lc_GCJ=no
25136 hardcode_shlibpath_var_GCJ=no
25137 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25138 hardcode_libdir_separator_GCJ=':'
25139 link_all_deplibs_GCJ=yes
25140 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25141 runpath_var='LD_RUN_PATH'
25143 if test "$GCC" = yes; then
25144 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25145 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25147 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25148 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25155 hardcode_shlibpath_var_GCJ=no
25164 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25165 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25166 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25169 # Do we need to explicitly link libc?
25171 case "x$archive_cmds_need_lc_GCJ" in
25173 # Assume -lc should be added
25174 archive_cmds_need_lc_GCJ=yes
25176 if test "$enable_shared" = yes && test "$GCC" = yes; then
25177 case $archive_cmds_GCJ in
25179 # FIXME: we may have to deal with multi-command sequences.
25182 # Test whether the compiler implicitly links with -lc since on some
25183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25184 # to ld, don't add -lc before -lgcc.
25185 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25186 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25191 (eval $ac_compile) 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } 2>conftest.err; then
25197 libobjs=conftest.$ac_objext
25199 wl=$lt_prog_compiler_wl_GCJ
25200 pic_flag=$lt_prog_compiler_pic_GCJ
25206 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25207 allow_undefined_flag_GCJ=
25208 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25209 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }
25214 archive_cmds_need_lc_GCJ=no
25216 archive_cmds_need_lc_GCJ=yes
25218 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25220 cat conftest.err 1>&5
25223 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25224 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25231 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25233 library_names_spec=
25234 libname_spec='lib$name'
25238 postuninstall_cmds=
25242 shlibpath_overrides_runpath=unknown
25244 dynamic_linker="$host_os ld.so"
25245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25246 if test "$GCC" = yes; then
25247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25248 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25249 # if the path contains ";" then we assume it to be the separator
25250 # otherwise default to the standard path separator (i.e. ":") - it is
25251 # assumed that no part of a normal pathname contains ";" but that should
25252 # okay in the real world where ";" in dirpaths is itself problematic.
25253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25260 need_lib_prefix=unknown
25261 hardcode_into_libs=no
25263 # when you set need_version to no, make sure it does not cause -set_version
25264 # flags to be left without arguments
25265 need_version=unknown
25270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25271 shlibpath_var=LIBPATH
25273 # AIX 3 has no versioning support, so we append a major version to the name.
25274 soname_spec='${libname}${release}${shared_ext}$major'
25281 hardcode_into_libs=yes
25282 if test "$host_cpu" = ia64; then
25283 # AIX 5 supports IA64
25284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25285 shlibpath_var=LD_LIBRARY_PATH
25287 # With GCC up to 2.95.x, collect2 would create an import file
25288 # for dependence libraries. The import file would start with
25289 # the line `#! .'. This would cause the generated library to
25290 # depend on `.', always an invalid library. This was fixed in
25291 # development snapshots of GCC prior to 3.0.
25293 aix4 | aix4.[01] | aix4.[01].*)
25294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25296 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25299 can_build_shared=no
25303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25304 # soname into executable. Probably we can add versioning support to
25305 # collect2, so additional links can be useful in future.
25306 if test "$aix_use_runtimelinking" = yes; then
25307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25308 # instead of lib<name>.a to let people know that these are not
25309 # typical AIX shared libraries.
25310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25312 # We preserve .a as extension for shared libraries through AIX4.2
25313 # and later when we are not doing run time linking.
25314 library_names_spec='${libname}${release}.a $libname.a'
25315 soname_spec='${libname}${release}${shared_ext}$major'
25317 shlibpath_var=LIBPATH
25322 library_names_spec='$libname.ixlibrary $libname.a'
25323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25324 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'
25328 library_names_spec='${libname}${shared_ext}'
25329 dynamic_linker="$host_os ld.so"
25330 shlibpath_var=LIBRARY_PATH
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25337 soname_spec='${libname}${release}${shared_ext}$major'
25338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25339 shlibpath_var=LD_LIBRARY_PATH
25340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25342 # the default ld.so.conf also contains /usr/contrib/lib and
25343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25344 # libtool to hard-code these into programs
25347 cygwin* | mingw* | pw32*)
25348 version_type=windows
25353 case $GCC,$host_os in
25354 yes,cygwin* | yes,mingw* | yes,pw32*)
25355 library_names_spec='$libname.dll.a'
25356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25357 postinstall_cmds='base_file=`basename \${file}`~
25358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25359 dldir=$destdir/`dirname \$dlpath`~
25360 test -d \$dldir || mkdir -p \$dldir~
25361 $install_prog $dir/$dlname \$dldir/$dlname~
25362 chmod a+x \$dldir/$dlname'
25363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25364 dlpath=$dir/\$dldll~
25366 shlibpath_overrides_runpath=yes
25370 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25371 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25372 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25375 # MinGW DLLs use traditional 'lib' prefix
25376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25377 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25378 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25379 # It is most probably a Windows format PATH printed by
25380 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25381 # path with ; separators, and with drive letters. We can handle the
25382 # drive letters (cygwin fileutils understands them), so leave them,
25383 # especially as we might pass files found there to a mingw objdump,
25384 # which wouldn't understand a cygwinified path. Ahh.
25385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25391 # pw32 DLLs use 'pw' prefix rather than 'lib'
25392 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25401 dynamic_linker='Win32 ld.exe'
25402 # FIXME: first we should search . and the directory the executable is in
25406 darwin* | rhapsody*)
25407 dynamic_linker="$host_os dyld"
25408 version_type=darwin
25411 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25412 soname_spec='${libname}${release}${major}$shared_ext'
25413 shlibpath_overrides_runpath=yes
25414 shlibpath_var=DYLD_LIBRARY_PATH
25415 shrext_cmds='.dylib'
25416 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25417 if test "$GCC" = yes; then
25418 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"`
25420 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25430 soname_spec='${libname}${release}${shared_ext}$major'
25431 shlibpath_var=LD_LIBRARY_PATH
25442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25443 soname_spec='${libname}${release}${shared_ext}$major'
25444 shlibpath_var=LD_LIBRARY_PATH
25445 shlibpath_overrides_runpath=no
25446 hardcode_into_libs=yes
25447 dynamic_linker='GNU ld.so'
25450 freebsd* | dragonfly*)
25451 # DragonFly does not have aout. When/if they implement a new
25452 # versioning mechanism, adjust this.
25453 if test -x /usr/bin/objformat; then
25454 objformat=`/usr/bin/objformat`
25457 freebsd[123]*) objformat=aout ;;
25458 *) objformat=elf ;;
25461 version_type=freebsd-$objformat
25462 case $version_type in
25464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25473 shlibpath_var=LD_LIBRARY_PATH
25476 shlibpath_overrides_runpath=yes
25478 freebsd3.[01]* | freebsdelf3.[01]*)
25479 shlibpath_overrides_runpath=yes
25480 hardcode_into_libs=yes
25482 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25483 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25484 shlibpath_overrides_runpath=no
25485 hardcode_into_libs=yes
25487 freebsd*) # from 4.6 on
25488 shlibpath_overrides_runpath=yes
25489 hardcode_into_libs=yes
25498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25499 soname_spec='${libname}${release}${shared_ext}$major'
25500 shlibpath_var=LD_LIBRARY_PATH
25501 hardcode_into_libs=yes
25504 hpux9* | hpux10* | hpux11*)
25505 # Give a soname corresponding to the major version so that dld.sl refuses to
25506 # link against other versions.
25513 hardcode_into_libs=yes
25514 dynamic_linker="$host_os dld.so"
25515 shlibpath_var=LD_LIBRARY_PATH
25516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25518 soname_spec='${libname}${release}${shared_ext}$major'
25519 if test "X$HPUX_IA64_MODE" = X32; then
25520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25528 hardcode_into_libs=yes
25529 dynamic_linker="$host_os dld.sl"
25530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533 soname_spec='${libname}${release}${shared_ext}$major'
25534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25539 dynamic_linker="$host_os dld.sl"
25540 shlibpath_var=SHLIB_PATH
25541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25546 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25547 postinstall_cmds='chmod 555 $lib'
25554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25555 soname_spec='${libname}${release}${shared_ext}$major'
25556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25557 shlibpath_var=LD_LIBRARY_PATH
25558 shlibpath_overrides_runpath=no
25559 hardcode_into_libs=yes
25562 irix5* | irix6* | nonstopux*)
25564 nonstopux*) version_type=nonstopux ;;
25566 if test "$lt_cv_prog_gnu_ld" = yes; then
25574 soname_spec='${libname}${release}${shared_ext}$major'
25575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25577 irix5* | nonstopux*)
25578 libsuff= shlibsuff=
25581 case $LD in # libtool.m4 will add one of these switches to LD
25582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25583 libsuff= shlibsuff= libmagic=32-bit;;
25584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25585 libsuff=32 shlibsuff=N32 libmagic=N32;;
25586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25587 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25588 *) libsuff= shlibsuff= libmagic=never-match;;
25592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25593 shlibpath_overrides_runpath=no
25594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25596 hardcode_into_libs=yes
25599 # No shared lib support for Linux oldld, aout, or coff.
25600 linux*oldld* | linux*aout* | linux*coff*)
25604 # This must be Linux ELF.
25609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25610 soname_spec='${libname}${release}${shared_ext}$major'
25611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25612 shlibpath_var=LD_LIBRARY_PATH
25613 shlibpath_overrides_runpath=no
25614 # This implies no fast_install, which is unacceptable.
25615 # Some rework will be needed to allow for fast_install
25616 # before this can be enabled.
25617 hardcode_into_libs=yes
25619 # Append ld.so.conf contents to the search path
25620 if test -f /etc/ld.so.conf; then
25621 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' ' '`
25622 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25625 # We used to test for /lib/ld.so.1 and disable shared libraries on
25626 # powerpc, because MkLinux only supported shared libraries with the
25627 # GNU dynamic linker. Since this was broken with cross compilers,
25628 # most powerpc-linux boxes support dynamic linking these days and
25629 # people can always --disable-shared, the test was removed, and we
25630 # assume the GNU/Linux dynamic linker is in use.
25631 dynamic_linker='GNU/Linux ld.so'
25638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25639 soname_spec='${libname}${release}${shared_ext}$major'
25640 shlibpath_var=LD_LIBRARY_PATH
25641 shlibpath_overrides_runpath=no
25642 hardcode_into_libs=yes
25643 dynamic_linker='GNU ld.so'
25650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25653 dynamic_linker='NetBSD (a.out) ld.so'
25655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25656 soname_spec='${libname}${release}${shared_ext}$major'
25657 dynamic_linker='NetBSD ld.elf_so'
25659 shlibpath_var=LD_LIBRARY_PATH
25660 shlibpath_overrides_runpath=yes
25661 hardcode_into_libs=yes
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667 shlibpath_var=LD_LIBRARY_PATH
25668 shlibpath_overrides_runpath=yes
25675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25676 soname_spec='${libname}${release}${shared_ext}$major'
25677 shlibpath_var=LD_LIBRARY_PATH
25678 shlibpath_overrides_runpath=yes
25683 sys_lib_dlsearch_path_spec="/usr/lib"
25685 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25687 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25688 *) need_version=no ;;
25690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25695 openbsd2.[89] | openbsd2.[89].*)
25696 shlibpath_overrides_runpath=no
25699 shlibpath_overrides_runpath=yes
25703 shlibpath_overrides_runpath=yes
25708 libname_spec='$name'
25711 library_names_spec='$libname${shared_ext} $libname.a'
25712 dynamic_linker='OS/2 ld.exe'
25713 shlibpath_var=LIBPATH
25716 osf3* | osf4* | osf5*)
25720 soname_spec='${libname}${release}${shared_ext}$major'
25721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25724 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25732 soname_spec='${libname}${release}${shared_ext}$major'
25733 shlibpath_var=LD_LIBRARY_PATH
25734 shlibpath_overrides_runpath=yes
25735 hardcode_into_libs=yes
25736 # ldd complains unless libraries are executable
25737 postinstall_cmds='chmod +x $lib'
25742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25744 shlibpath_var=LD_LIBRARY_PATH
25745 shlibpath_overrides_runpath=yes
25746 if test "$with_gnu_ld" = yes; then
25754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25755 soname_spec='${libname}${release}${shared_ext}$major'
25756 shlibpath_var=LD_LIBRARY_PATH
25757 case $host_vendor in
25759 shlibpath_overrides_runpath=no
25761 export_dynamic_flag_spec='${wl}-Blargedynsym'
25762 runpath_var=LD_RUN_PATH
25770 shlibpath_overrides_runpath=no
25771 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25777 if test -d /usr/nec ;then
25779 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25780 soname_spec='$libname${shared_ext}.$major'
25781 shlibpath_var=LD_LIBRARY_PATH
25785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25786 version_type=freebsd-elf
25789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25790 soname_spec='${libname}${release}${shared_ext}$major'
25791 shlibpath_var=LD_LIBRARY_PATH
25792 hardcode_into_libs=yes
25793 if test "$with_gnu_ld" = yes; then
25794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25795 shlibpath_overrides_runpath=no
25797 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25798 shlibpath_overrides_runpath=yes
25801 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25805 sys_lib_dlsearch_path_spec='/usr/lib'
25810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811 soname_spec='${libname}${release}${shared_ext}$major'
25812 shlibpath_var=LD_LIBRARY_PATH
25819 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25820 echo "${ECHO_T}$dynamic_linker" >&6; }
25821 test "$dynamic_linker" = no && can_build_shared=no
25823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25824 if test "$GCC" = yes; then
25825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25828 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25829 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25830 hardcode_action_GCJ=
25831 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25832 test -n "$runpath_var_GCJ" || \
25833 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25835 # We can hardcode non-existant directories.
25836 if test "$hardcode_direct_GCJ" != no &&
25837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25838 # have to relink, otherwise we might link with an installed library
25839 # when we should be linking with a yet-to-be-installed one
25840 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25841 test "$hardcode_minus_L_GCJ" != no; then
25842 # Linking always hardcodes the temporary library directory.
25843 hardcode_action_GCJ=relink
25845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25846 hardcode_action_GCJ=immediate
25849 # We cannot hardcode anything, or else we can only hardcode existing
25851 hardcode_action_GCJ=unsupported
25853 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25854 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25856 if test "$hardcode_action_GCJ" = relink; then
25857 # Fast installation is not supported
25858 enable_fast_install=no
25859 elif test "$shlibpath_overrides_runpath" = yes ||
25860 test "$enable_shared" = no; then
25861 # Fast installation is not necessary
25862 enable_fast_install=needless
25866 # The else clause should only fire when bootstrapping the
25867 # libtool distribution, otherwise you forgot to ship ltmain.sh
25868 # with your package, and you will get complaints that there are
25869 # no rules to generate ltmain.sh.
25870 if test -f "$ltmain"; then
25871 # See if we are running on zsh, and set the options which allow our commands through
25872 # without removal of \ escapes.
25873 if test -n "${ZSH_VERSION+set}" ; then
25874 setopt NO_GLOB_SUBST
25876 # Now quote all the things that may contain metacharacters while being
25877 # careful not to overquote the AC_SUBSTed values. We take copies of the
25878 # variables and quote the copies for generation of the libtool script.
25879 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25881 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25882 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25883 deplibs_check_method reload_flag reload_cmds need_locks \
25884 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25885 lt_cv_sys_global_symbol_to_c_name_address \
25886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25887 old_postinstall_cmds old_postuninstall_cmds \
25891 lt_prog_compiler_wl_GCJ \
25892 lt_prog_compiler_pic_GCJ \
25893 lt_prog_compiler_static_GCJ \
25894 lt_prog_compiler_no_builtin_flag_GCJ \
25895 export_dynamic_flag_spec_GCJ \
25896 thread_safe_flag_spec_GCJ \
25897 whole_archive_flag_spec_GCJ \
25898 enable_shared_with_static_runtimes_GCJ \
25899 old_archive_cmds_GCJ \
25900 old_archive_from_new_cmds_GCJ \
25901 predep_objects_GCJ \
25902 postdep_objects_GCJ \
25905 compiler_lib_search_path_GCJ \
25907 archive_expsym_cmds_GCJ \
25908 postinstall_cmds_GCJ \
25909 postuninstall_cmds_GCJ \
25910 old_archive_from_expsyms_cmds_GCJ \
25911 allow_undefined_flag_GCJ \
25912 no_undefined_flag_GCJ \
25913 export_symbols_cmds_GCJ \
25914 hardcode_libdir_flag_spec_GCJ \
25915 hardcode_libdir_flag_spec_ld_GCJ \
25916 hardcode_libdir_separator_GCJ \
25917 hardcode_automatic_GCJ \
25919 module_expsym_cmds_GCJ \
25920 lt_cv_prog_compiler_c_o_GCJ \
25921 exclude_expsyms_GCJ \
25922 include_expsyms_GCJ; do
25925 old_archive_cmds_GCJ | \
25926 old_archive_from_new_cmds_GCJ | \
25927 archive_cmds_GCJ | \
25928 archive_expsym_cmds_GCJ | \
25929 module_cmds_GCJ | \
25930 module_expsym_cmds_GCJ | \
25931 old_archive_from_expsyms_cmds_GCJ | \
25932 export_symbols_cmds_GCJ | \
25933 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25934 postinstall_cmds | postuninstall_cmds | \
25935 old_postinstall_cmds | old_postuninstall_cmds | \
25936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25937 # Double-quote double-evaled strings.
25938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25947 *'\$0 --fallback-echo"')
25948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25954 cat <<__EOF__ >> "$cfgfile"
25955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25959 # Shell to use when invoking shell scripts.
25962 # Whether or not to build shared libraries.
25963 build_libtool_libs=$enable_shared
25965 # Whether or not to build static libraries.
25966 build_old_libs=$enable_static
25968 # Whether or not to add -lc for building shared libraries.
25969 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25971 # Whether or not to disallow shared libs when runtime libs are static
25972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25974 # Whether or not to optimize for fast installation.
25975 fast_install=$enable_fast_install
25978 host_alias=$host_alias
25982 # The build system.
25983 build_alias=$build_alias
25987 # An echo program that does not interpret backslashes.
25992 AR_FLAGS=$lt_AR_FLAGS
25997 # LTCC compiler flags.
25998 LTCFLAGS=$lt_LTCFLAGS
26000 # A language-specific compiler.
26001 CC=$lt_compiler_GCJ
26003 # Is the compiler the GNU C compiler?
26009 # The linker used to build libraries.
26012 # Whether we need hard or soft links.
26015 # A BSD-compatible nm program.
26018 # A symbol stripping program
26021 # Used to examine libraries when file_magic_cmd begins "file"
26022 MAGIC_CMD=$MAGIC_CMD
26024 # Used on cygwin: DLL creation program.
26027 # Used on cygwin: object dumper.
26030 # Used on cygwin: assembler.
26033 # The name of the directory that contains temporary libtool files.
26036 # How to create reloadable object files.
26037 reload_flag=$lt_reload_flag
26038 reload_cmds=$lt_reload_cmds
26040 # How to pass a linker flag through the compiler.
26041 wl=$lt_lt_prog_compiler_wl_GCJ
26043 # Object file suffix (normally "o").
26044 objext="$ac_objext"
26046 # Old archive suffix (normally "a").
26049 # Shared library suffix (normally ".so").
26050 shrext_cmds='$shrext_cmds'
26052 # Executable file suffix (normally "").
26055 # Additional compiler flags for building library objects.
26056 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26059 # What is the maximum length of a command?
26060 max_cmd_len=$lt_cv_sys_max_cmd_len
26062 # Does compiler simultaneously support -c and -o options?
26063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26065 # Must we lock files when doing compilation?
26066 need_locks=$lt_need_locks
26068 # Do we need the lib prefix for modules?
26069 need_lib_prefix=$need_lib_prefix
26071 # Do we need a version for libraries?
26072 need_version=$need_version
26074 # Whether dlopen is supported.
26075 dlopen_support=$enable_dlopen
26077 # Whether dlopen of programs is supported.
26078 dlopen_self=$enable_dlopen_self
26080 # Whether dlopen of statically linked programs is supported.
26081 dlopen_self_static=$enable_dlopen_self_static
26083 # Compiler flag to prevent dynamic linking.
26084 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26086 # Compiler flag to turn off builtin functions.
26087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26089 # Compiler flag to allow reflexive dlopens.
26090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26092 # Compiler flag to generate shared objects directly from archives.
26093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26095 # Compiler flag to generate thread-safe objects.
26096 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26098 # Library versioning type.
26099 version_type=$version_type
26101 # Format of library name prefix.
26102 libname_spec=$lt_libname_spec
26104 # List of archive names. First name is the real one, the rest are links.
26105 # The last name is the one that the linker finds with -lNAME.
26106 library_names_spec=$lt_library_names_spec
26108 # The coded name of the library, if different from the real name.
26109 soname_spec=$lt_soname_spec
26111 # Commands used to build and install an old-style archive.
26113 old_archive_cmds=$lt_old_archive_cmds_GCJ
26114 old_postinstall_cmds=$lt_old_postinstall_cmds
26115 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26117 # Create an old-style archive from a shared archive.
26118 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26120 # Create a temporary old-style archive to link instead of a shared archive.
26121 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26123 # Commands used to build and install a shared archive.
26124 archive_cmds=$lt_archive_cmds_GCJ
26125 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26126 postinstall_cmds=$lt_postinstall_cmds
26127 postuninstall_cmds=$lt_postuninstall_cmds
26129 # Commands used to build a loadable module (assumed same as above if empty)
26130 module_cmds=$lt_module_cmds_GCJ
26131 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26133 # Commands to strip libraries.
26134 old_striplib=$lt_old_striplib
26135 striplib=$lt_striplib
26137 # Dependencies to place before the objects being linked to create a
26139 predep_objects=$lt_predep_objects_GCJ
26141 # Dependencies to place after the objects being linked to create a
26143 postdep_objects=$lt_postdep_objects_GCJ
26145 # Dependencies to place before the objects being linked to create a
26147 predeps=$lt_predeps_GCJ
26149 # Dependencies to place after the objects being linked to create a
26151 postdeps=$lt_postdeps_GCJ
26153 # The library search path used internally by the compiler when linking
26154 # a shared library.
26155 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26157 # Method to check whether dependent libraries are shared objects.
26158 deplibs_check_method=$lt_deplibs_check_method
26160 # Command to use when deplibs_check_method == file_magic.
26161 file_magic_cmd=$lt_file_magic_cmd
26163 # Flag that allows shared libraries with undefined symbols to be built.
26164 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26166 # Flag that forces no undefined symbols.
26167 no_undefined_flag=$lt_no_undefined_flag_GCJ
26169 # Commands used to finish a libtool library installation in a directory.
26170 finish_cmds=$lt_finish_cmds
26172 # Same as above, but a single script fragment to be evaled but not shown.
26173 finish_eval=$lt_finish_eval
26175 # Take the output of nm and produce a listing of raw symbols and C names.
26176 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26178 # Transform the output of nm in a proper C declaration
26179 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26181 # Transform the output of nm in a C name address pair
26182 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26184 # This is the shared library runtime path variable.
26185 runpath_var=$runpath_var
26187 # This is the shared library path variable.
26188 shlibpath_var=$shlibpath_var
26190 # Is shlibpath searched before the hard-coded library search path?
26191 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26193 # How to hardcode a shared library path into an executable.
26194 hardcode_action=$hardcode_action_GCJ
26196 # Whether we should hardcode library paths into libraries.
26197 hardcode_into_libs=$hardcode_into_libs
26199 # Flag to hardcode \$libdir into a binary during linking.
26200 # This must work even if \$libdir does not exist.
26201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26203 # If ld is used when linking, flag to hardcode \$libdir into
26204 # a binary during linking. This must work even if \$libdir does
26206 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26208 # Whether we need a single -rpath flag with a separated argument.
26209 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26211 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26212 # resulting binary.
26213 hardcode_direct=$hardcode_direct_GCJ
26215 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26216 # resulting binary.
26217 hardcode_minus_L=$hardcode_minus_L_GCJ
26219 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26220 # the resulting binary.
26221 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26223 # Set to yes if building a shared library automatically hardcodes DIR into the library
26224 # and all subsequent libraries and executables linked against it.
26225 hardcode_automatic=$hardcode_automatic_GCJ
26227 # Variables whose values should be saved in libtool wrapper scripts and
26228 # restored at relink time.
26229 variables_saved_for_relink="$variables_saved_for_relink"
26231 # Whether libtool must link a program against all its dependency libraries.
26232 link_all_deplibs=$link_all_deplibs_GCJ
26234 # Compile-time system search path for libraries
26235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26237 # Run-time system search path for libraries
26238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26240 # Fix the shell variable \$srcfile for the compiler.
26241 fix_srcfile_path="$fix_srcfile_path_GCJ"
26243 # Set to yes if exported symbols are required.
26244 always_export_symbols=$always_export_symbols_GCJ
26246 # The commands to list exported symbols.
26247 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26249 # The commands to extract the exported symbol list from a shared archive.
26250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26252 # Symbols that should not be listed in the preloaded symbols.
26253 exclude_expsyms=$lt_exclude_expsyms_GCJ
26255 # Symbols that must always be exported.
26256 include_expsyms=$lt_include_expsyms_GCJ
26258 # ### END LIBTOOL TAG CONFIG: $tagname
26264 # If there is no Makefile yet, we rely on a make rule to execute
26265 # `config.status --recheck' to rerun these tests and create the
26266 # libtool script then.
26267 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26268 if test -f "$ltmain_in"; then
26269 test -f Makefile && make "$ltmain"
26275 ac_cpp='$CPP $CPPFLAGS'
26276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26289 ac_cpp='$CPP $CPPFLAGS'
26290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26295 # Source file extension for RC test sources.
26298 # Object file extension for compiled RC test sources.
26302 # Code to be used in simple compile tests
26303 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26305 # Code to be used in simple link tests
26306 lt_simple_link_test_code="$lt_simple_compile_test_code"
26308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26310 # If no C compiler was specified, use CC.
26313 # If no C compiler flags were specified, use CFLAGS.
26314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26316 # Allow CC to be a program name with arguments.
26320 # save warnings/boilerplate of simple test code
26321 ac_outfile=conftest.$ac_objext
26322 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26324 _lt_compiler_boilerplate=`cat conftest.err`
26327 ac_outfile=conftest.$ac_objext
26328 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26330 _lt_linker_boilerplate=`cat conftest.err`
26334 # Allow CC to be a program name with arguments.
26339 for cc_temp in $compiler""; do
26341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26347 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26349 lt_cv_prog_compiler_c_o_RC=yes
26351 # The else clause should only fire when bootstrapping the
26352 # libtool distribution, otherwise you forgot to ship ltmain.sh
26353 # with your package, and you will get complaints that there are
26354 # no rules to generate ltmain.sh.
26355 if test -f "$ltmain"; then
26356 # See if we are running on zsh, and set the options which allow our commands through
26357 # without removal of \ escapes.
26358 if test -n "${ZSH_VERSION+set}" ; then
26359 setopt NO_GLOB_SUBST
26361 # Now quote all the things that may contain metacharacters while being
26362 # careful not to overquote the AC_SUBSTed values. We take copies of the
26363 # variables and quote the copies for generation of the libtool script.
26364 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26366 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26367 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26368 deplibs_check_method reload_flag reload_cmds need_locks \
26369 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26370 lt_cv_sys_global_symbol_to_c_name_address \
26371 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26372 old_postinstall_cmds old_postuninstall_cmds \
26376 lt_prog_compiler_wl_RC \
26377 lt_prog_compiler_pic_RC \
26378 lt_prog_compiler_static_RC \
26379 lt_prog_compiler_no_builtin_flag_RC \
26380 export_dynamic_flag_spec_RC \
26381 thread_safe_flag_spec_RC \
26382 whole_archive_flag_spec_RC \
26383 enable_shared_with_static_runtimes_RC \
26384 old_archive_cmds_RC \
26385 old_archive_from_new_cmds_RC \
26386 predep_objects_RC \
26387 postdep_objects_RC \
26390 compiler_lib_search_path_RC \
26392 archive_expsym_cmds_RC \
26393 postinstall_cmds_RC \
26394 postuninstall_cmds_RC \
26395 old_archive_from_expsyms_cmds_RC \
26396 allow_undefined_flag_RC \
26397 no_undefined_flag_RC \
26398 export_symbols_cmds_RC \
26399 hardcode_libdir_flag_spec_RC \
26400 hardcode_libdir_flag_spec_ld_RC \
26401 hardcode_libdir_separator_RC \
26402 hardcode_automatic_RC \
26404 module_expsym_cmds_RC \
26405 lt_cv_prog_compiler_c_o_RC \
26406 exclude_expsyms_RC \
26407 include_expsyms_RC; do
26410 old_archive_cmds_RC | \
26411 old_archive_from_new_cmds_RC | \
26412 archive_cmds_RC | \
26413 archive_expsym_cmds_RC | \
26415 module_expsym_cmds_RC | \
26416 old_archive_from_expsyms_cmds_RC | \
26417 export_symbols_cmds_RC | \
26418 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26419 postinstall_cmds | postuninstall_cmds | \
26420 old_postinstall_cmds | old_postuninstall_cmds | \
26421 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26422 # Double-quote double-evaled strings.
26423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26432 *'\$0 --fallback-echo"')
26433 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26439 cat <<__EOF__ >> "$cfgfile"
26440 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26442 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26444 # Shell to use when invoking shell scripts.
26447 # Whether or not to build shared libraries.
26448 build_libtool_libs=$enable_shared
26450 # Whether or not to build static libraries.
26451 build_old_libs=$enable_static
26453 # Whether or not to add -lc for building shared libraries.
26454 build_libtool_need_lc=$archive_cmds_need_lc_RC
26456 # Whether or not to disallow shared libs when runtime libs are static
26457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26459 # Whether or not to optimize for fast installation.
26460 fast_install=$enable_fast_install
26463 host_alias=$host_alias
26467 # The build system.
26468 build_alias=$build_alias
26472 # An echo program that does not interpret backslashes.
26477 AR_FLAGS=$lt_AR_FLAGS
26482 # LTCC compiler flags.
26483 LTCFLAGS=$lt_LTCFLAGS
26485 # A language-specific compiler.
26488 # Is the compiler the GNU C compiler?
26494 # The linker used to build libraries.
26497 # Whether we need hard or soft links.
26500 # A BSD-compatible nm program.
26503 # A symbol stripping program
26506 # Used to examine libraries when file_magic_cmd begins "file"
26507 MAGIC_CMD=$MAGIC_CMD
26509 # Used on cygwin: DLL creation program.
26512 # Used on cygwin: object dumper.
26515 # Used on cygwin: assembler.
26518 # The name of the directory that contains temporary libtool files.
26521 # How to create reloadable object files.
26522 reload_flag=$lt_reload_flag
26523 reload_cmds=$lt_reload_cmds
26525 # How to pass a linker flag through the compiler.
26526 wl=$lt_lt_prog_compiler_wl_RC
26528 # Object file suffix (normally "o").
26529 objext="$ac_objext"
26531 # Old archive suffix (normally "a").
26534 # Shared library suffix (normally ".so").
26535 shrext_cmds='$shrext_cmds'
26537 # Executable file suffix (normally "").
26540 # Additional compiler flags for building library objects.
26541 pic_flag=$lt_lt_prog_compiler_pic_RC
26544 # What is the maximum length of a command?
26545 max_cmd_len=$lt_cv_sys_max_cmd_len
26547 # Does compiler simultaneously support -c and -o options?
26548 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26550 # Must we lock files when doing compilation?
26551 need_locks=$lt_need_locks
26553 # Do we need the lib prefix for modules?
26554 need_lib_prefix=$need_lib_prefix
26556 # Do we need a version for libraries?
26557 need_version=$need_version
26559 # Whether dlopen is supported.
26560 dlopen_support=$enable_dlopen
26562 # Whether dlopen of programs is supported.
26563 dlopen_self=$enable_dlopen_self
26565 # Whether dlopen of statically linked programs is supported.
26566 dlopen_self_static=$enable_dlopen_self_static
26568 # Compiler flag to prevent dynamic linking.
26569 link_static_flag=$lt_lt_prog_compiler_static_RC
26571 # Compiler flag to turn off builtin functions.
26572 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26574 # Compiler flag to allow reflexive dlopens.
26575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26577 # Compiler flag to generate shared objects directly from archives.
26578 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26580 # Compiler flag to generate thread-safe objects.
26581 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26583 # Library versioning type.
26584 version_type=$version_type
26586 # Format of library name prefix.
26587 libname_spec=$lt_libname_spec
26589 # List of archive names. First name is the real one, the rest are links.
26590 # The last name is the one that the linker finds with -lNAME.
26591 library_names_spec=$lt_library_names_spec
26593 # The coded name of the library, if different from the real name.
26594 soname_spec=$lt_soname_spec
26596 # Commands used to build and install an old-style archive.
26598 old_archive_cmds=$lt_old_archive_cmds_RC
26599 old_postinstall_cmds=$lt_old_postinstall_cmds
26600 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26602 # Create an old-style archive from a shared archive.
26603 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26605 # Create a temporary old-style archive to link instead of a shared archive.
26606 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26608 # Commands used to build and install a shared archive.
26609 archive_cmds=$lt_archive_cmds_RC
26610 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26611 postinstall_cmds=$lt_postinstall_cmds
26612 postuninstall_cmds=$lt_postuninstall_cmds
26614 # Commands used to build a loadable module (assumed same as above if empty)
26615 module_cmds=$lt_module_cmds_RC
26616 module_expsym_cmds=$lt_module_expsym_cmds_RC
26618 # Commands to strip libraries.
26619 old_striplib=$lt_old_striplib
26620 striplib=$lt_striplib
26622 # Dependencies to place before the objects being linked to create a
26624 predep_objects=$lt_predep_objects_RC
26626 # Dependencies to place after the objects being linked to create a
26628 postdep_objects=$lt_postdep_objects_RC
26630 # Dependencies to place before the objects being linked to create a
26632 predeps=$lt_predeps_RC
26634 # Dependencies to place after the objects being linked to create a
26636 postdeps=$lt_postdeps_RC
26638 # The library search path used internally by the compiler when linking
26639 # a shared library.
26640 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26642 # Method to check whether dependent libraries are shared objects.
26643 deplibs_check_method=$lt_deplibs_check_method
26645 # Command to use when deplibs_check_method == file_magic.
26646 file_magic_cmd=$lt_file_magic_cmd
26648 # Flag that allows shared libraries with undefined symbols to be built.
26649 allow_undefined_flag=$lt_allow_undefined_flag_RC
26651 # Flag that forces no undefined symbols.
26652 no_undefined_flag=$lt_no_undefined_flag_RC
26654 # Commands used to finish a libtool library installation in a directory.
26655 finish_cmds=$lt_finish_cmds
26657 # Same as above, but a single script fragment to be evaled but not shown.
26658 finish_eval=$lt_finish_eval
26660 # Take the output of nm and produce a listing of raw symbols and C names.
26661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26663 # Transform the output of nm in a proper C declaration
26664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26666 # Transform the output of nm in a C name address pair
26667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26669 # This is the shared library runtime path variable.
26670 runpath_var=$runpath_var
26672 # This is the shared library path variable.
26673 shlibpath_var=$shlibpath_var
26675 # Is shlibpath searched before the hard-coded library search path?
26676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26678 # How to hardcode a shared library path into an executable.
26679 hardcode_action=$hardcode_action_RC
26681 # Whether we should hardcode library paths into libraries.
26682 hardcode_into_libs=$hardcode_into_libs
26684 # Flag to hardcode \$libdir into a binary during linking.
26685 # This must work even if \$libdir does not exist.
26686 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26688 # If ld is used when linking, flag to hardcode \$libdir into
26689 # a binary during linking. This must work even if \$libdir does
26691 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26693 # Whether we need a single -rpath flag with a separated argument.
26694 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26696 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26697 # resulting binary.
26698 hardcode_direct=$hardcode_direct_RC
26700 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26701 # resulting binary.
26702 hardcode_minus_L=$hardcode_minus_L_RC
26704 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26705 # the resulting binary.
26706 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26708 # Set to yes if building a shared library automatically hardcodes DIR into the library
26709 # and all subsequent libraries and executables linked against it.
26710 hardcode_automatic=$hardcode_automatic_RC
26712 # Variables whose values should be saved in libtool wrapper scripts and
26713 # restored at relink time.
26714 variables_saved_for_relink="$variables_saved_for_relink"
26716 # Whether libtool must link a program against all its dependency libraries.
26717 link_all_deplibs=$link_all_deplibs_RC
26719 # Compile-time system search path for libraries
26720 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26722 # Run-time system search path for libraries
26723 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26725 # Fix the shell variable \$srcfile for the compiler.
26726 fix_srcfile_path="$fix_srcfile_path_RC"
26728 # Set to yes if exported symbols are required.
26729 always_export_symbols=$always_export_symbols_RC
26731 # The commands to list exported symbols.
26732 export_symbols_cmds=$lt_export_symbols_cmds_RC
26734 # The commands to extract the exported symbol list from a shared archive.
26735 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26737 # Symbols that should not be listed in the preloaded symbols.
26738 exclude_expsyms=$lt_exclude_expsyms_RC
26740 # Symbols that must always be exported.
26741 include_expsyms=$lt_include_expsyms_RC
26743 # ### END LIBTOOL TAG CONFIG: $tagname
26749 # If there is no Makefile yet, we rely on a make rule to execute
26750 # `config.status --recheck' to rerun these tests and create the
26751 # libtool script then.
26752 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26753 if test -f "$ltmain_in"; then
26754 test -f Makefile && make "$ltmain"
26760 ac_cpp='$CPP $CPPFLAGS'
26761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26770 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26771 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26772 { (exit 1); exit 1; }; }
26776 # Append the new tag name to the list of available tags.
26777 if test -n "$tagname" ; then
26778 available_tags="$available_tags $tagname"
26784 # Now substitute the updated list of available tags.
26785 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26786 mv "${ofile}T" "$ofile"
26790 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26791 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26792 { (exit 1); exit 1; }; }
26798 # This can be used to rebuild libtool when needed
26799 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26801 # Always use our own libtool.
26802 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26804 # Prevent multiple expansion
26826 if test "$lt_cv_dlopen_self" = "yes" ; then
26828 cat >>confdefs.h <<\_ACEOF
26829 #define CAN_DLOPEN_SELF 1
26834 if test "$WITH_LLVMGCCDIR" = "default" ; then
26835 LLVMGCC="llvm-gcc${EXEEXT}"
26836 LLVMGXX="llvm-g++${EXEEXT}"
26837 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26838 set dummy $LLVMGCC; ac_word=$2
26839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26841 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26842 echo $ECHO_N "(cached) $ECHO_C" >&6
26846 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850 for as_dir in $PATH
26853 test -z "$as_dir" && as_dir=.
26854 for ac_exec_ext in '' $ac_executable_extensions; do
26855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26856 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26867 LLVMGCC=$ac_cv_path_LLVMGCC
26868 if test -n "$LLVMGCC"; then
26869 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26870 echo "${ECHO_T}$LLVMGCC" >&6; }
26872 { echo "$as_me:$LINENO: result: no" >&5
26873 echo "${ECHO_T}no" >&6; }
26877 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26878 set dummy $LLVMGXX; ac_word=$2
26879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26881 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26882 echo $ECHO_N "(cached) $ECHO_C" >&6
26886 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26890 for as_dir in $PATH
26893 test -z "$as_dir" && as_dir=.
26894 for ac_exec_ext in '' $ac_executable_extensions; do
26895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26896 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26907 LLVMGXX=$ac_cv_path_LLVMGXX
26908 if test -n "$LLVMGXX"; then
26909 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26910 echo "${ECHO_T}$LLVMGXX" >&6; }
26912 { echo "$as_me:$LINENO: result: no" >&5
26913 echo "${ECHO_T}no" >&6; }
26918 if test -z "$LLVMGCC"; then
26919 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26921 if test -z "$LLVMGXX"; then
26922 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26930 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26931 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26944 if test "$GCC" != "yes" && test "$ICC" != "yes"
26946 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26947 echo "$as_me: error: gcc|icc required but not found" >&2;}
26948 { (exit 1); exit 1; }; }
26951 if test "$GXX" != "yes" && test "$IXX" != "yes"
26953 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26954 echo "$as_me: error: g++|icc required but not found" >&2;}
26955 { (exit 1); exit 1; }; }
26958 if test "$GCC" = "yes"
26960 cat >conftest.$ac_ext <<_ACEOF
26961 #if !defined(__GNUC__) || __GNUC__ < 3
26962 #error Unsupported GCC version
26966 rm -f conftest.$ac_objext
26967 if { (ac_try="$ac_compile"
26968 case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_compile") 2>conftest.er1
26975 grep -v '^ *+' conftest.er1 >conftest.err
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981 { (case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_try") 2>&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; } &&
26990 { ac_try='test -s conftest.$ac_objext'
26991 { (case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_try") 2>&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; }; then
27002 echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27005 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27006 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27007 { (exit 1); exit 1; }; }
27010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27013 if test -z "$llvm_cv_gnu_make_command"
27015 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27016 echo "$as_me: error: GNU Make required but not found" >&2;}
27017 { (exit 1); exit 1; }; }
27020 { echo "$as_me:$LINENO: result: ok" >&5
27021 echo "${ECHO_T}ok" >&6; }
27025 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27026 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27027 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27030 ac_check_lib_save_LIBS=$LIBS
27032 cat >conftest.$ac_ext <<_ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27039 /* Override any GCC internal prototype to avoid an error.
27040 Use char because int might match the return type of a GCC
27041 builtin and then its argument prototype would still apply. */
27049 return elf_begin ();
27054 rm -f conftest.$ac_objext conftest$ac_exeext
27055 if { (ac_try="$ac_link"
27056 case "(($ac_try" in
27057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058 *) ac_try_echo=$ac_try;;
27060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061 (eval "$ac_link") 2>conftest.er1
27063 grep -v '^ *+' conftest.er1 >conftest.err
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } &&
27068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; } &&
27078 { ac_try='test -s conftest$ac_exeext'
27079 { (case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_try") 2>&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088 ac_cv_lib_elf_elf_begin=yes
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27093 ac_cv_lib_elf_elf_begin=no
27096 rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
27098 LIBS=$ac_check_lib_save_LIBS
27100 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27101 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27102 if test $ac_cv_lib_elf_elf_begin = yes; then
27103 cat >>confdefs.h <<_ACEOF
27104 #define HAVE_LIBELF 1
27112 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27113 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27114 if test "${ac_cv_lib_m_sin+set}" = set; then
27115 echo $ECHO_N "(cached) $ECHO_C" >&6
27117 ac_check_lib_save_LIBS=$LIBS
27119 cat >conftest.$ac_ext <<_ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h. */
27126 /* Override any GCC internal prototype to avoid an error.
27127 Use char because int might match the return type of a GCC
27128 builtin and then its argument prototype would still apply. */
27141 rm -f conftest.$ac_objext conftest$ac_exeext
27142 if { (ac_try="$ac_link"
27143 case "(($ac_try" in
27144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145 *) ac_try_echo=$ac_try;;
27147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148 (eval "$ac_link") 2>conftest.er1
27150 grep -v '^ *+' conftest.er1 >conftest.err
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
27155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27156 { (case "(($ac_try" in
27157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158 *) ac_try_echo=$ac_try;;
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161 (eval "$ac_try") 2>&5
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; } &&
27165 { ac_try='test -s conftest$ac_exeext'
27166 { (case "(($ac_try" in
27167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168 *) ac_try_echo=$ac_try;;
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171 (eval "$ac_try") 2>&5
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; }; then
27175 ac_cv_lib_m_sin=yes
27177 echo "$as_me: failed program was:" >&5
27178 sed 's/^/| /' conftest.$ac_ext >&5
27183 rm -f core conftest.err conftest.$ac_objext \
27184 conftest$ac_exeext conftest.$ac_ext
27185 LIBS=$ac_check_lib_save_LIBS
27187 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27188 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27189 if test $ac_cv_lib_m_sin = yes; then
27190 cat >>confdefs.h <<_ACEOF
27191 #define HAVE_LIBM 1
27198 if test "$llvm_cv_os_type" = "MingW" ; then
27200 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27201 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27202 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27203 echo $ECHO_N "(cached) $ECHO_C" >&6
27205 ac_check_lib_save_LIBS=$LIBS
27206 LIBS="-limagehlp $LIBS"
27207 cat >conftest.$ac_ext <<_ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27223 rm -f conftest.$ac_objext conftest$ac_exeext
27224 if { (ac_try="$ac_link"
27225 case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_link") 2>conftest.er1
27232 grep -v '^ *+' conftest.er1 >conftest.err
27234 cat conftest.err >&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); } &&
27237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27238 { (case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_try") 2>&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; } &&
27247 { ac_try='test -s conftest$ac_exeext'
27248 { (case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_try") 2>&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; }; then
27257 ac_cv_lib_imagehlp_main=yes
27259 echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27262 ac_cv_lib_imagehlp_main=no
27265 rm -f core conftest.err conftest.$ac_objext \
27266 conftest$ac_exeext conftest.$ac_ext
27267 LIBS=$ac_check_lib_save_LIBS
27269 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27270 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27271 if test $ac_cv_lib_imagehlp_main = yes; then
27272 cat >>confdefs.h <<_ACEOF
27273 #define HAVE_LIBIMAGEHLP 1
27276 LIBS="-limagehlp $LIBS"
27281 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27282 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27283 if test "${ac_cv_lib_psapi_main+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 ac_check_lib_save_LIBS=$LIBS
27287 LIBS="-lpsapi $LIBS"
27288 cat >conftest.$ac_ext <<_ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h. */
27304 rm -f conftest.$ac_objext conftest$ac_exeext
27305 if { (ac_try="$ac_link"
27306 case "(($ac_try" in
27307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308 *) ac_try_echo=$ac_try;;
27310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311 (eval "$ac_link") 2>conftest.er1
27313 grep -v '^ *+' conftest.er1 >conftest.err
27315 cat conftest.err >&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); } &&
27318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27319 { (case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_try") 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try='test -s conftest$ac_exeext'
27329 { (case "(($ac_try" in
27330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331 *) ac_try_echo=$ac_try;;
27333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334 (eval "$ac_try") 2>&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
27338 ac_cv_lib_psapi_main=yes
27340 echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27343 ac_cv_lib_psapi_main=no
27346 rm -f core conftest.err conftest.$ac_objext \
27347 conftest$ac_exeext conftest.$ac_ext
27348 LIBS=$ac_check_lib_save_LIBS
27350 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27351 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27352 if test $ac_cv_lib_psapi_main = yes; then
27353 cat >>confdefs.h <<_ACEOF
27354 #define HAVE_LIBPSAPI 1
27357 LIBS="-lpsapi $LIBS"
27363 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27364 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27365 if test "${ac_cv_search_dlopen+set}" = set; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27368 ac_func_search_save_LIBS=$LIBS
27369 cat >conftest.$ac_ext <<_ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h. */
27376 /* Override any GCC internal prototype to avoid an error.
27377 Use char because int might match the return type of a GCC
27378 builtin and then its argument prototype would still apply. */
27391 for ac_lib in '' dl; do
27392 if test -z "$ac_lib"; then
27393 ac_res="none required"
27396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27398 rm -f conftest.$ac_objext conftest$ac_exeext
27399 if { (ac_try="$ac_link"
27400 case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_link") 2>conftest.er1
27407 grep -v '^ *+' conftest.er1 >conftest.err
27409 cat conftest.err >&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); } &&
27412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_try") 2>&5
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest$ac_exeext'
27423 { (case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_try") 2>&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; }; then
27432 ac_cv_search_dlopen=$ac_res
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27440 rm -f core conftest.err conftest.$ac_objext \
27442 if test "${ac_cv_search_dlopen+set}" = set; then
27446 if test "${ac_cv_search_dlopen+set}" = set; then
27449 ac_cv_search_dlopen=no
27451 rm conftest.$ac_ext
27452 LIBS=$ac_func_search_save_LIBS
27454 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27455 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27456 ac_res=$ac_cv_search_dlopen
27457 if test "$ac_res" != no; then
27458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27460 cat >>confdefs.h <<\_ACEOF
27461 #define HAVE_DLOPEN 1
27465 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27470 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27471 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27472 if test "${ac_cv_search_mallinfo+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 ac_func_search_save_LIBS=$LIBS
27476 cat >conftest.$ac_ext <<_ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27483 /* Override any GCC internal prototype to avoid an error.
27484 Use char because int might match the return type of a GCC
27485 builtin and then its argument prototype would still apply. */
27493 return mallinfo ();
27498 for ac_lib in '' malloc; do
27499 if test -z "$ac_lib"; then
27500 ac_res="none required"
27503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27505 rm -f conftest.$ac_objext conftest$ac_exeext
27506 if { (ac_try="$ac_link"
27507 case "(($ac_try" in
27508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509 *) ac_try_echo=$ac_try;;
27511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512 (eval "$ac_link") 2>conftest.er1
27514 grep -v '^ *+' conftest.er1 >conftest.err
27516 cat conftest.err >&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } &&
27519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27520 { (case "(($ac_try" in
27521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522 *) ac_try_echo=$ac_try;;
27524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525 (eval "$ac_try") 2>&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; } &&
27529 { ac_try='test -s conftest$ac_exeext'
27530 { (case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535 (eval "$ac_try") 2>&5
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); }; }; then
27539 ac_cv_search_mallinfo=$ac_res
27541 echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27547 rm -f core conftest.err conftest.$ac_objext \
27549 if test "${ac_cv_search_mallinfo+set}" = set; then
27553 if test "${ac_cv_search_mallinfo+set}" = set; then
27556 ac_cv_search_mallinfo=no
27558 rm conftest.$ac_ext
27559 LIBS=$ac_func_search_save_LIBS
27561 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27562 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27563 ac_res=$ac_cv_search_mallinfo
27564 if test "$ac_res" != no; then
27565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27567 cat >>confdefs.h <<\_ACEOF
27568 #define HAVE_MALLINFO 1
27574 if test "$ENABLE_THREADS" -eq 1 ; then
27576 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27577 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27578 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27579 echo $ECHO_N "(cached) $ECHO_C" >&6
27581 ac_check_lib_save_LIBS=$LIBS
27582 LIBS="-lpthread $LIBS"
27583 cat >conftest.$ac_ext <<_ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h. */
27590 /* Override any GCC internal prototype to avoid an error.
27591 Use char because int might match the return type of a GCC
27592 builtin and then its argument prototype would still apply. */
27596 char pthread_mutex_init ();
27600 return pthread_mutex_init ();
27605 rm -f conftest.$ac_objext conftest$ac_exeext
27606 if { (ac_try="$ac_link"
27607 case "(($ac_try" in
27608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609 *) ac_try_echo=$ac_try;;
27611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612 (eval "$ac_link") 2>conftest.er1
27614 grep -v '^ *+' conftest.er1 >conftest.err
27616 cat conftest.err >&5
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } &&
27619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27620 { (case "(($ac_try" in
27621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622 *) ac_try_echo=$ac_try;;
27624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625 (eval "$ac_try") 2>&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; } &&
27629 { ac_try='test -s conftest$ac_exeext'
27630 { (case "(($ac_try" in
27631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632 *) ac_try_echo=$ac_try;;
27634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635 (eval "$ac_try") 2>&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
27639 ac_cv_lib_pthread_pthread_mutex_init=yes
27641 echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27644 ac_cv_lib_pthread_pthread_mutex_init=no
27647 rm -f core conftest.err conftest.$ac_objext \
27648 conftest$ac_exeext conftest.$ac_ext
27649 LIBS=$ac_check_lib_save_LIBS
27651 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27652 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27653 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27654 cat >>confdefs.h <<_ACEOF
27655 #define HAVE_LIBPTHREAD 1
27658 LIBS="-lpthread $LIBS"
27662 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27663 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27664 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27665 echo $ECHO_N "(cached) $ECHO_C" >&6
27667 ac_func_search_save_LIBS=$LIBS
27668 cat >conftest.$ac_ext <<_ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27675 /* Override any GCC internal prototype to avoid an error.
27676 Use char because int might match the return type of a GCC
27677 builtin and then its argument prototype would still apply. */
27681 char pthread_mutex_lock ();
27685 return pthread_mutex_lock ();
27690 for ac_lib in '' pthread; do
27691 if test -z "$ac_lib"; then
27692 ac_res="none required"
27695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27697 rm -f conftest.$ac_objext conftest$ac_exeext
27698 if { (ac_try="$ac_link"
27699 case "(($ac_try" in
27700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701 *) ac_try_echo=$ac_try;;
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704 (eval "$ac_link") 2>conftest.er1
27706 grep -v '^ *+' conftest.er1 >conftest.err
27708 cat conftest.err >&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } &&
27711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27712 { (case "(($ac_try" in
27713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_try") 2>&5
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); }; } &&
27721 { ac_try='test -s conftest$ac_exeext'
27722 { (case "(($ac_try" in
27723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724 *) ac_try_echo=$ac_try;;
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727 (eval "$ac_try") 2>&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; }; then
27731 ac_cv_search_pthread_mutex_lock=$ac_res
27733 echo "$as_me: failed program was:" >&5
27734 sed 's/^/| /' conftest.$ac_ext >&5
27739 rm -f core conftest.err conftest.$ac_objext \
27741 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27745 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27748 ac_cv_search_pthread_mutex_lock=no
27750 rm conftest.$ac_ext
27751 LIBS=$ac_func_search_save_LIBS
27753 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27754 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27755 ac_res=$ac_cv_search_pthread_mutex_lock
27756 if test "$ac_res" != no; then
27757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27759 cat >>confdefs.h <<\_ACEOF
27760 #define HAVE_PTHREAD_MUTEX_LOCK 1
27768 # Check whether --with-udis86 was given.
27769 if test "${with_udis86+set}" = set; then
27770 withval=$with_udis86;
27775 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27778 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27779 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27780 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27781 echo $ECHO_N "(cached) $ECHO_C" >&6
27783 ac_check_lib_save_LIBS=$LIBS
27784 LIBS="-ludis86 $LIBS"
27785 cat >conftest.$ac_ext <<_ACEOF
27788 cat confdefs.h >>conftest.$ac_ext
27789 cat >>conftest.$ac_ext <<_ACEOF
27790 /* end confdefs.h. */
27792 /* Override any GCC internal prototype to avoid an error.
27793 Use char because int might match the return type of a GCC
27794 builtin and then its argument prototype would still apply. */
27807 rm -f conftest.$ac_objext conftest$ac_exeext
27808 if { (ac_try="$ac_link"
27809 case "(($ac_try" in
27810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811 *) ac_try_echo=$ac_try;;
27813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814 (eval "$ac_link") 2>conftest.er1
27816 grep -v '^ *+' conftest.er1 >conftest.err
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } &&
27821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27822 { (case "(($ac_try" in
27823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27824 *) ac_try_echo=$ac_try;;
27826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27827 (eval "$ac_try") 2>&5
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); }; } &&
27831 { ac_try='test -s conftest$ac_exeext'
27832 { (case "(($ac_try" in
27833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27834 *) ac_try_echo=$ac_try;;
27836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27837 (eval "$ac_try") 2>&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
27841 ac_cv_lib_udis86_ud_init=yes
27843 echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27846 ac_cv_lib_udis86_ud_init=no
27849 rm -f core conftest.err conftest.$ac_objext \
27850 conftest$ac_exeext conftest.$ac_ext
27851 LIBS=$ac_check_lib_save_LIBS
27853 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27854 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27855 if test $ac_cv_lib_udis86_ud_init = yes; then
27856 cat >>confdefs.h <<_ACEOF
27857 #define HAVE_LIBUDIS86 1
27860 LIBS="-ludis86 $LIBS"
27864 echo "Error! You need to have libudis86 around."
27876 cat >>confdefs.h <<_ACEOF
27877 #define USE_UDIS86 $USE_UDIS86
27887 ac_header_dirent=no
27888 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27889 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27890 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27891 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27893 echo $ECHO_N "(cached) $ECHO_C" >&6
27895 cat >conftest.$ac_ext <<_ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h. */
27901 #include <sys/types.h>
27913 rm -f conftest.$ac_objext
27914 if { (ac_try="$ac_compile"
27915 case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_compile") 2>conftest.er1
27922 grep -v '^ *+' conftest.er1 >conftest.err
27924 cat conftest.err >&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); } &&
27927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27928 { (case "(($ac_try" in
27929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930 *) ac_try_echo=$ac_try;;
27932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933 (eval "$ac_try") 2>&5
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; } &&
27937 { ac_try='test -s conftest.$ac_objext'
27938 { (case "(($ac_try" in
27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_try") 2>&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; }; then
27947 eval "$as_ac_Header=yes"
27949 echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27952 eval "$as_ac_Header=no"
27955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957 ac_res=`eval echo '${'$as_ac_Header'}'`
27958 { echo "$as_me:$LINENO: result: $ac_res" >&5
27959 echo "${ECHO_T}$ac_res" >&6; }
27960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27961 cat >>confdefs.h <<_ACEOF
27962 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27965 ac_header_dirent=$ac_hdr; break
27969 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27970 if test $ac_header_dirent = dirent.h; then
27971 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27973 if test "${ac_cv_search_opendir+set}" = set; then
27974 echo $ECHO_N "(cached) $ECHO_C" >&6
27976 ac_func_search_save_LIBS=$LIBS
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27984 /* Override any GCC internal prototype to avoid an error.
27985 Use char because int might match the return type of a GCC
27986 builtin and then its argument prototype would still apply. */
27999 for ac_lib in '' dir; do
28000 if test -z "$ac_lib"; then
28001 ac_res="none required"
28004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28006 rm -f conftest.$ac_objext conftest$ac_exeext
28007 if { (ac_try="$ac_link"
28008 case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013 (eval "$ac_link") 2>conftest.er1
28015 grep -v '^ *+' conftest.er1 >conftest.err
28017 cat conftest.err >&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); } &&
28020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28021 { (case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_try") 2>&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; } &&
28030 { ac_try='test -s conftest$ac_exeext'
28031 { (case "(($ac_try" in
28032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033 *) ac_try_echo=$ac_try;;
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036 (eval "$ac_try") 2>&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; }; then
28040 ac_cv_search_opendir=$ac_res
28042 echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28048 rm -f core conftest.err conftest.$ac_objext \
28050 if test "${ac_cv_search_opendir+set}" = set; then
28054 if test "${ac_cv_search_opendir+set}" = set; then
28057 ac_cv_search_opendir=no
28059 rm conftest.$ac_ext
28060 LIBS=$ac_func_search_save_LIBS
28062 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28063 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28064 ac_res=$ac_cv_search_opendir
28065 if test "$ac_res" != no; then
28066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28071 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28072 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28073 if test "${ac_cv_search_opendir+set}" = set; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28076 ac_func_search_save_LIBS=$LIBS
28077 cat >conftest.$ac_ext <<_ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h. */
28084 /* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
28099 for ac_lib in '' x; do
28100 if test -z "$ac_lib"; then
28101 ac_res="none required"
28104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28106 rm -f conftest.$ac_objext conftest$ac_exeext
28107 if { (ac_try="$ac_link"
28108 case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113 (eval "$ac_link") 2>conftest.er1
28115 grep -v '^ *+' conftest.er1 >conftest.err
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } &&
28120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28121 { (case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_try") 2>&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; } &&
28130 { ac_try='test -s conftest$ac_exeext'
28131 { (case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_try") 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 ac_cv_search_opendir=$ac_res
28142 echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28148 rm -f core conftest.err conftest.$ac_objext \
28150 if test "${ac_cv_search_opendir+set}" = set; then
28154 if test "${ac_cv_search_opendir+set}" = set; then
28157 ac_cv_search_opendir=no
28159 rm conftest.$ac_ext
28160 LIBS=$ac_func_search_save_LIBS
28162 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28163 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28164 ac_res=$ac_cv_search_opendir
28165 if test "$ac_res" != no; then
28166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28172 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28173 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28174 if test "${ac_cv_header_mmap_anon+set}" = set; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28178 ac_cpp='$CPP $CPPFLAGS'
28179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28183 cat >conftest.$ac_ext <<_ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h. */
28189 #include <sys/mman.h>
28190 #include <unistd.h>
28195 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28200 rm -f conftest.$ac_objext
28201 if { (ac_try="$ac_compile"
28202 case "(($ac_try" in
28203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 *) ac_try_echo=$ac_try;;
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207 (eval "$ac_compile") 2>conftest.er1
28209 grep -v '^ *+' conftest.er1 >conftest.err
28211 cat conftest.err >&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); } &&
28214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28215 { (case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_try") 2>&5
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; } &&
28224 { ac_try='test -s conftest.$ac_objext'
28225 { (case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230 (eval "$ac_try") 2>&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28234 ac_cv_header_mmap_anon=yes
28236 echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28239 ac_cv_header_mmap_anon=no
28242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28244 ac_cpp='$CPP $CPPFLAGS'
28245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28251 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28252 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28253 if test "$ac_cv_header_mmap_anon" = yes; then
28255 cat >>confdefs.h <<\_ACEOF
28256 #define HAVE_MMAP_ANONYMOUS 1
28261 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28262 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28263 if test "${ac_cv_header_stat_broken+set}" = set; then
28264 echo $ECHO_N "(cached) $ECHO_C" >&6
28266 cat >conftest.$ac_ext <<_ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h. */
28272 #include <sys/types.h>
28273 #include <sys/stat.h>
28275 #if defined S_ISBLK && defined S_IFDIR
28276 # if S_ISBLK (S_IFDIR)
28281 #if defined S_ISBLK && defined S_IFCHR
28282 # if S_ISBLK (S_IFCHR)
28287 #if defined S_ISLNK && defined S_IFREG
28288 # if S_ISLNK (S_IFREG)
28293 #if defined S_ISSOCK && defined S_IFREG
28294 # if S_ISSOCK (S_IFREG)
28300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28301 $EGREP "You lose" >/dev/null 2>&1; then
28302 ac_cv_header_stat_broken=yes
28304 ac_cv_header_stat_broken=no
28309 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28310 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28311 if test $ac_cv_header_stat_broken = yes; then
28313 cat >>confdefs.h <<\_ACEOF
28314 #define STAT_MACROS_BROKEN 1
28319 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28321 if test "${ac_cv_header_stdc+set}" = set; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28324 cat >conftest.$ac_ext <<_ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28330 #include <stdlib.h>
28331 #include <stdarg.h>
28332 #include <string.h>
28343 rm -f conftest.$ac_objext
28344 if { (ac_try="$ac_compile"
28345 case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_compile") 2>conftest.er1
28352 grep -v '^ *+' conftest.er1 >conftest.err
28354 cat conftest.err >&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } &&
28357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363 (eval "$ac_try") 2>&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; } &&
28367 { ac_try='test -s conftest.$ac_objext'
28368 { (case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_try") 2>&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; }; then
28377 ac_cv_header_stdc=yes
28379 echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28382 ac_cv_header_stdc=no
28385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28387 if test $ac_cv_header_stdc = yes; then
28388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28389 cat >conftest.$ac_ext <<_ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h. */
28395 #include <string.h>
28398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28399 $EGREP "memchr" >/dev/null 2>&1; then
28402 ac_cv_header_stdc=no
28408 if test $ac_cv_header_stdc = yes; then
28409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28410 cat >conftest.$ac_ext <<_ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h. */
28416 #include <stdlib.h>
28419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28420 $EGREP "free" >/dev/null 2>&1; then
28423 ac_cv_header_stdc=no
28429 if test $ac_cv_header_stdc = yes; then
28430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28431 if test "$cross_compiling" = yes; then
28434 cat >conftest.$ac_ext <<_ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h. */
28441 #include <stdlib.h>
28442 #if ((' ' & 0x0FF) == 0x020)
28443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28446 # define ISLOWER(c) \
28447 (('a' <= (c) && (c) <= 'i') \
28448 || ('j' <= (c) && (c) <= 'r') \
28449 || ('s' <= (c) && (c) <= 'z'))
28450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28458 for (i = 0; i < 256; i++)
28459 if (XOR (islower (i), ISLOWER (i))
28460 || toupper (i) != TOUPPER (i))
28465 rm -f conftest$ac_exeext
28466 if { (ac_try="$ac_link"
28467 case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_link") 2>&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28476 { (case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_try") 2>&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; }; then
28487 echo "$as_me: program exited with status $ac_status" >&5
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 ( exit $ac_status )
28492 ac_cv_header_stdc=no
28494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28500 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28501 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28502 if test $ac_cv_header_stdc = yes; then
28504 cat >>confdefs.h <<\_ACEOF
28505 #define STDC_HEADERS 1
28510 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28512 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28513 echo $ECHO_N "(cached) $ECHO_C" >&6
28515 cat >conftest.$ac_ext <<_ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h. */
28521 #include <sys/types.h>
28522 #include <sys/wait.h>
28523 #ifndef WEXITSTATUS
28524 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28527 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28540 rm -f conftest.$ac_objext
28541 if { (ac_try="$ac_compile"
28542 case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_compile") 2>conftest.er1
28549 grep -v '^ *+' conftest.er1 >conftest.err
28551 cat conftest.err >&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); } &&
28554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28555 { (case "(($ac_try" in
28556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557 *) ac_try_echo=$ac_try;;
28559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560 (eval "$ac_try") 2>&5
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; } &&
28564 { ac_try='test -s conftest.$ac_objext'
28565 { (case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_try") 2>&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
28574 ac_cv_header_sys_wait_h=yes
28576 echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28579 ac_cv_header_sys_wait_h=no
28582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28584 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28585 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28586 if test $ac_cv_header_sys_wait_h = yes; then
28588 cat >>confdefs.h <<\_ACEOF
28589 #define HAVE_SYS_WAIT_H 1
28594 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28595 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28596 if test "${ac_cv_header_time+set}" = set; then
28597 echo $ECHO_N "(cached) $ECHO_C" >&6
28599 cat >conftest.$ac_ext <<_ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28605 #include <sys/types.h>
28606 #include <sys/time.h>
28612 if ((struct tm *) 0)
28618 rm -f conftest.$ac_objext
28619 if { (ac_try="$ac_compile"
28620 case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_compile") 2>conftest.er1
28627 grep -v '^ *+' conftest.er1 >conftest.err
28629 cat conftest.err >&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } &&
28632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28633 { (case "(($ac_try" in
28634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635 *) ac_try_echo=$ac_try;;
28637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28638 (eval "$ac_try") 2>&5
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest.$ac_objext'
28643 { (case "(($ac_try" in
28644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28645 *) ac_try_echo=$ac_try;;
28647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28648 (eval "$ac_try") 2>&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); }; }; then
28652 ac_cv_header_time=yes
28654 echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28657 ac_cv_header_time=no
28660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28662 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28663 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28664 if test $ac_cv_header_time = yes; then
28666 cat >>confdefs.h <<\_ACEOF
28667 #define TIME_WITH_SYS_TIME 1
28679 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28688 ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690 echo "${ECHO_T}$ac_res" >&6; }
28692 # Is the header compilable?
28693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28695 cat >conftest.$ac_ext <<_ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28701 $ac_includes_default
28702 #include <$ac_header>
28704 rm -f conftest.$ac_objext
28705 if { (ac_try="$ac_compile"
28706 case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_compile") 2>conftest.er1
28713 grep -v '^ *+' conftest.er1 >conftest.err
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
28718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; } &&
28728 { ac_try='test -s conftest.$ac_objext'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_header_compiler=yes
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ac_header_compiler=no
28746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748 echo "${ECHO_T}$ac_header_compiler" >&6; }
28750 # Is the header present?
28751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28753 cat >conftest.$ac_ext <<_ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 #include <$ac_header>
28761 if { (ac_try="$ac_cpp conftest.$ac_ext"
28762 case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
28776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28783 if test -z "$ac_cpp_err"; then
28784 ac_header_preproc=yes
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_preproc=no
28792 rm -f conftest.err conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794 echo "${ECHO_T}$ac_header_preproc" >&6; }
28796 # So? What about this header?
28797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803 ac_header_preproc=yes
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28819 ## ----------------------------------- ##
28820 ## Report this to llvmbugs@cs.uiuc.edu ##
28821 ## ----------------------------------- ##
28823 ) | sed "s/^/$as_me: WARNING: /" >&2
28826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 eval "$as_ac_Header=\$ac_header_preproc"
28833 ac_res=`eval echo '${'$as_ac_Header'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835 echo "${ECHO_T}$ac_res" >&6; }
28838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28853 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28860 echo $ECHO_N "(cached) $ECHO_C" >&6
28862 ac_res=`eval echo '${'$as_ac_Header'}'`
28863 { echo "$as_me:$LINENO: result: $ac_res" >&5
28864 echo "${ECHO_T}$ac_res" >&6; }
28866 # Is the header compilable?
28867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28869 cat >conftest.$ac_ext <<_ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h. */
28875 $ac_includes_default
28876 #include <$ac_header>
28878 rm -f conftest.$ac_objext
28879 if { (ac_try="$ac_compile"
28880 case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_compile") 2>conftest.er1
28887 grep -v '^ *+' conftest.er1 >conftest.err
28889 cat conftest.err >&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); } &&
28892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28893 { (case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_try") 2>&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; } &&
28902 { ac_try='test -s conftest.$ac_objext'
28903 { (case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_try") 2>&5
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
28912 ac_header_compiler=yes
28914 echo "$as_me: failed program was:" >&5
28915 sed 's/^/| /' conftest.$ac_ext >&5
28917 ac_header_compiler=no
28920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28922 echo "${ECHO_T}$ac_header_compiler" >&6; }
28924 # Is the header present?
28925 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28927 cat >conftest.$ac_ext <<_ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h. */
28933 #include <$ac_header>
28935 if { (ac_try="$ac_cpp conftest.$ac_ext"
28936 case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28943 grep -v '^ *+' conftest.er1 >conftest.err
28945 cat conftest.err >&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); } >/dev/null; then
28948 if test -s conftest.err; then
28949 ac_cpp_err=$ac_c_preproc_warn_flag
28950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28957 if test -z "$ac_cpp_err"; then
28958 ac_header_preproc=yes
28960 echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28963 ac_header_preproc=no
28966 rm -f conftest.err conftest.$ac_ext
28967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28968 echo "${ECHO_T}$ac_header_preproc" >&6; }
28970 # So? What about this header?
28971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28977 ac_header_preproc=yes
28980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28993 ## ----------------------------------- ##
28994 ## Report this to llvmbugs@cs.uiuc.edu ##
28995 ## ----------------------------------- ##
28997 ) | sed "s/^/$as_me: WARNING: /" >&2
29000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29003 echo $ECHO_N "(cached) $ECHO_C" >&6
29005 eval "$as_ac_Header=\$ac_header_preproc"
29007 ac_res=`eval echo '${'$as_ac_Header'}'`
29008 { echo "$as_me:$LINENO: result: $ac_res" >&5
29009 echo "${ECHO_T}$ac_res" >&6; }
29012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29013 cat >>confdefs.h <<_ACEOF
29014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29022 for ac_header in windows.h
29024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29029 echo $ECHO_N "(cached) $ECHO_C" >&6
29031 ac_res=`eval echo '${'$as_ac_Header'}'`
29032 { echo "$as_me:$LINENO: result: $ac_res" >&5
29033 echo "${ECHO_T}$ac_res" >&6; }
29035 # Is the header compilable?
29036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29044 $ac_includes_default
29045 #include <$ac_header>
29047 rm -f conftest.$ac_objext
29048 if { (ac_try="$ac_compile"
29049 case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054 (eval "$ac_compile") 2>conftest.er1
29056 grep -v '^ *+' conftest.er1 >conftest.err
29058 cat conftest.err >&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } &&
29061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29062 { (case "(($ac_try" in
29063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064 *) ac_try_echo=$ac_try;;
29066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067 (eval "$ac_try") 2>&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; } &&
29071 { ac_try='test -s conftest.$ac_objext'
29072 { (case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_try") 2>&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
29081 ac_header_compiler=yes
29083 echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29086 ac_header_compiler=no
29089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29091 echo "${ECHO_T}$ac_header_compiler" >&6; }
29093 # Is the header present?
29094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29096 cat >conftest.$ac_ext <<_ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h. */
29102 #include <$ac_header>
29104 if { (ac_try="$ac_cpp conftest.$ac_ext"
29105 case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29112 grep -v '^ *+' conftest.er1 >conftest.err
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } >/dev/null; then
29117 if test -s conftest.err; then
29118 ac_cpp_err=$ac_c_preproc_warn_flag
29119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29126 if test -z "$ac_cpp_err"; then
29127 ac_header_preproc=yes
29129 echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29132 ac_header_preproc=no
29135 rm -f conftest.err conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29137 echo "${ECHO_T}$ac_header_preproc" >&6; }
29139 # So? What about this header?
29140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29146 ac_header_preproc=yes
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29162 ## ----------------------------------- ##
29163 ## Report this to llvmbugs@cs.uiuc.edu ##
29164 ## ----------------------------------- ##
29166 ) | sed "s/^/$as_me: WARNING: /" >&2
29169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29174 eval "$as_ac_Header=\$ac_header_preproc"
29176 ac_res=`eval echo '${'$as_ac_Header'}'`
29177 { echo "$as_me:$LINENO: result: $ac_res" >&5
29178 echo "${ECHO_T}$ac_res" >&6; }
29181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29182 cat >>confdefs.h <<_ACEOF
29183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29194 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29201 echo $ECHO_N "(cached) $ECHO_C" >&6
29203 ac_res=`eval echo '${'$as_ac_Header'}'`
29204 { echo "$as_me:$LINENO: result: $ac_res" >&5
29205 echo "${ECHO_T}$ac_res" >&6; }
29207 # Is the header compilable?
29208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29210 cat >conftest.$ac_ext <<_ACEOF
29213 cat confdefs.h >>conftest.$ac_ext
29214 cat >>conftest.$ac_ext <<_ACEOF
29215 /* end confdefs.h. */
29216 $ac_includes_default
29217 #include <$ac_header>
29219 rm -f conftest.$ac_objext
29220 if { (ac_try="$ac_compile"
29221 case "(($ac_try" in
29222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223 *) ac_try_echo=$ac_try;;
29225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226 (eval "$ac_compile") 2>conftest.er1
29228 grep -v '^ *+' conftest.er1 >conftest.err
29230 cat conftest.err >&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } &&
29233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29234 { (case "(($ac_try" in
29235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29236 *) ac_try_echo=$ac_try;;
29238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29239 (eval "$ac_try") 2>&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); }; } &&
29243 { ac_try='test -s conftest.$ac_objext'
29244 { (case "(($ac_try" in
29245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246 *) ac_try_echo=$ac_try;;
29248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249 (eval "$ac_try") 2>&5
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); }; }; then
29253 ac_header_compiler=yes
29255 echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29258 ac_header_compiler=no
29261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29263 echo "${ECHO_T}$ac_header_compiler" >&6; }
29265 # Is the header present?
29266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29268 cat >conftest.$ac_ext <<_ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h. */
29274 #include <$ac_header>
29276 if { (ac_try="$ac_cpp conftest.$ac_ext"
29277 case "(($ac_try" in
29278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279 *) ac_try_echo=$ac_try;;
29281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29284 grep -v '^ *+' conftest.er1 >conftest.err
29286 cat conftest.err >&5
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); } >/dev/null; then
29289 if test -s conftest.err; then
29290 ac_cpp_err=$ac_c_preproc_warn_flag
29291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29298 if test -z "$ac_cpp_err"; then
29299 ac_header_preproc=yes
29301 echo "$as_me: failed program was:" >&5
29302 sed 's/^/| /' conftest.$ac_ext >&5
29304 ac_header_preproc=no
29307 rm -f conftest.err conftest.$ac_ext
29308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29309 echo "${ECHO_T}$ac_header_preproc" >&6; }
29311 # So? What about this header?
29312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29318 ac_header_preproc=yes
29321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29334 ## ----------------------------------- ##
29335 ## Report this to llvmbugs@cs.uiuc.edu ##
29336 ## ----------------------------------- ##
29338 ) | sed "s/^/$as_me: WARNING: /" >&2
29341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29344 echo $ECHO_N "(cached) $ECHO_C" >&6
29346 eval "$as_ac_Header=\$ac_header_preproc"
29348 ac_res=`eval echo '${'$as_ac_Header'}'`
29349 { echo "$as_me:$LINENO: result: $ac_res" >&5
29350 echo "${ECHO_T}$ac_res" >&6; }
29353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29354 cat >>confdefs.h <<_ACEOF
29355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29365 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29372 echo $ECHO_N "(cached) $ECHO_C" >&6
29374 ac_res=`eval echo '${'$as_ac_Header'}'`
29375 { echo "$as_me:$LINENO: result: $ac_res" >&5
29376 echo "${ECHO_T}$ac_res" >&6; }
29378 # Is the header compilable?
29379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29381 cat >conftest.$ac_ext <<_ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387 $ac_includes_default
29388 #include <$ac_header>
29390 rm -f conftest.$ac_objext
29391 if { (ac_try="$ac_compile"
29392 case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_compile") 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
29404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29405 { (case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_try") 2>&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
29415 { (case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_try") 2>&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 ac_header_compiler=yes
29426 echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29429 ac_header_compiler=no
29432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29434 echo "${ECHO_T}$ac_header_compiler" >&6; }
29436 # Is the header present?
29437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29445 #include <$ac_header>
29447 if { (ac_try="$ac_cpp conftest.$ac_ext"
29448 case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29455 grep -v '^ *+' conftest.er1 >conftest.err
29457 cat conftest.err >&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } >/dev/null; then
29460 if test -s conftest.err; then
29461 ac_cpp_err=$ac_c_preproc_warn_flag
29462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29469 if test -z "$ac_cpp_err"; then
29470 ac_header_preproc=yes
29472 echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29475 ac_header_preproc=no
29478 rm -f conftest.err conftest.$ac_ext
29479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29480 echo "${ECHO_T}$ac_header_preproc" >&6; }
29482 # So? What about this header?
29483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29489 ac_header_preproc=yes
29492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29505 ## ----------------------------------- ##
29506 ## Report this to llvmbugs@cs.uiuc.edu ##
29507 ## ----------------------------------- ##
29509 ) | sed "s/^/$as_me: WARNING: /" >&2
29512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29517 eval "$as_ac_Header=\$ac_header_preproc"
29519 ac_res=`eval echo '${'$as_ac_Header'}'`
29520 { echo "$as_me:$LINENO: result: $ac_res" >&5
29521 echo "${ECHO_T}$ac_res" >&6; }
29524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29525 cat >>confdefs.h <<_ACEOF
29526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29533 if test "$ENABLE_THREADS" -eq 1 ; then
29535 for ac_header in pthread.h
29537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29542 echo $ECHO_N "(cached) $ECHO_C" >&6
29544 ac_res=`eval echo '${'$as_ac_Header'}'`
29545 { echo "$as_me:$LINENO: result: $ac_res" >&5
29546 echo "${ECHO_T}$ac_res" >&6; }
29548 # Is the header compilable?
29549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29551 cat >conftest.$ac_ext <<_ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h. */
29557 $ac_includes_default
29558 #include <$ac_header>
29560 rm -f conftest.$ac_objext
29561 if { (ac_try="$ac_compile"
29562 case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_compile") 2>conftest.er1
29569 grep -v '^ *+' conftest.er1 >conftest.err
29571 cat conftest.err >&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); } &&
29574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29575 { (case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_try") 2>&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; } &&
29584 { ac_try='test -s conftest.$ac_objext'
29585 { (case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_try") 2>&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; }; then
29594 ac_header_compiler=yes
29596 echo "$as_me: failed program was:" >&5
29597 sed 's/^/| /' conftest.$ac_ext >&5
29599 ac_header_compiler=no
29602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29604 echo "${ECHO_T}$ac_header_compiler" >&6; }
29606 # Is the header present?
29607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29609 cat >conftest.$ac_ext <<_ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h. */
29615 #include <$ac_header>
29617 if { (ac_try="$ac_cpp conftest.$ac_ext"
29618 case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29625 grep -v '^ *+' conftest.er1 >conftest.err
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } >/dev/null; then
29630 if test -s conftest.err; then
29631 ac_cpp_err=$ac_c_preproc_warn_flag
29632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29639 if test -z "$ac_cpp_err"; then
29640 ac_header_preproc=yes
29642 echo "$as_me: failed program was:" >&5
29643 sed 's/^/| /' conftest.$ac_ext >&5
29645 ac_header_preproc=no
29648 rm -f conftest.err conftest.$ac_ext
29649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29650 echo "${ECHO_T}$ac_header_preproc" >&6; }
29652 # So? What about this header?
29653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29659 ac_header_preproc=yes
29662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29675 ## ----------------------------------- ##
29676 ## Report this to llvmbugs@cs.uiuc.edu ##
29677 ## ----------------------------------- ##
29679 ) | sed "s/^/$as_me: WARNING: /" >&2
29682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29687 eval "$as_ac_Header=\$ac_header_preproc"
29689 ac_res=`eval echo '${'$as_ac_Header'}'`
29690 { echo "$as_me:$LINENO: result: $ac_res" >&5
29691 echo "${ECHO_T}$ac_res" >&6; }
29694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29695 cat >>confdefs.h <<_ACEOF
29696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29714 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29715 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29716 if test "${ac_cv_huge_val_sanity+set}" = set; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29721 ac_cpp='$CXXCPP $CPPFLAGS'
29722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29727 if test "$cross_compiling" = yes; then
29728 ac_cv_huge_val_sanity=yes
29730 cat >conftest.$ac_ext <<_ACEOF
29733 cat confdefs.h >>conftest.$ac_ext
29734 cat >>conftest.$ac_ext <<_ACEOF
29735 /* end confdefs.h. */
29740 double x = HUGE_VAL; return x != x;
29745 rm -f conftest$ac_exeext
29746 if { (ac_try="$ac_link"
29747 case "(($ac_try" in
29748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749 *) ac_try_echo=$ac_try;;
29751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752 (eval "$ac_link") 2>&5
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29756 { (case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_try") 2>&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; }; then
29765 ac_cv_huge_val_sanity=yes
29767 echo "$as_me: program exited with status $ac_status" >&5
29768 echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29771 ( exit $ac_status )
29772 ac_cv_huge_val_sanity=no
29774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29779 ac_cpp='$CPP $CPPFLAGS'
29780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29786 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29787 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29788 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29791 { echo "$as_me:$LINENO: checking for pid_t" >&5
29792 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29793 if test "${ac_cv_type_pid_t+set}" = set; then
29794 echo $ECHO_N "(cached) $ECHO_C" >&6
29796 cat >conftest.$ac_ext <<_ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h. */
29802 $ac_includes_default
29803 typedef pid_t ac__type_new_;
29807 if ((ac__type_new_ *) 0)
29809 if (sizeof (ac__type_new_))
29815 rm -f conftest.$ac_objext
29816 if { (ac_try="$ac_compile"
29817 case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_compile") 2>conftest.er1
29824 grep -v '^ *+' conftest.er1 >conftest.err
29826 cat conftest.err >&5
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); } &&
29829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29830 { (case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_try") 2>&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; } &&
29839 { ac_try='test -s conftest.$ac_objext'
29840 { (case "(($ac_try" in
29841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842 *) ac_try_echo=$ac_try;;
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845 (eval "$ac_try") 2>&5
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); }; }; then
29849 ac_cv_type_pid_t=yes
29851 echo "$as_me: failed program was:" >&5
29852 sed 's/^/| /' conftest.$ac_ext >&5
29854 ac_cv_type_pid_t=no
29857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29859 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29860 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29861 if test $ac_cv_type_pid_t = yes; then
29865 cat >>confdefs.h <<_ACEOF
29871 { echo "$as_me:$LINENO: checking for size_t" >&5
29872 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29873 if test "${ac_cv_type_size_t+set}" = set; then
29874 echo $ECHO_N "(cached) $ECHO_C" >&6
29876 cat >conftest.$ac_ext <<_ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h. */
29882 $ac_includes_default
29883 typedef size_t ac__type_new_;
29887 if ((ac__type_new_ *) 0)
29889 if (sizeof (ac__type_new_))
29895 rm -f conftest.$ac_objext
29896 if { (ac_try="$ac_compile"
29897 case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_compile") 2>conftest.er1
29904 grep -v '^ *+' conftest.er1 >conftest.err
29906 cat conftest.err >&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } &&
29909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29910 { (case "(($ac_try" in
29911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912 *) ac_try_echo=$ac_try;;
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915 (eval "$ac_try") 2>&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; } &&
29919 { ac_try='test -s conftest.$ac_objext'
29920 { (case "(($ac_try" in
29921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29922 *) ac_try_echo=$ac_try;;
29924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29925 (eval "$ac_try") 2>&5
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; }; then
29929 ac_cv_type_size_t=yes
29931 echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29934 ac_cv_type_size_t=no
29937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29939 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29940 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29941 if test $ac_cv_type_size_t = yes; then
29945 cat >>confdefs.h <<_ACEOF
29946 #define size_t unsigned int
29951 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29952 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29953 if test "${ac_cv_type_signal+set}" = set; then
29954 echo $ECHO_N "(cached) $ECHO_C" >&6
29956 cat >conftest.$ac_ext <<_ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h. */
29962 #include <sys/types.h>
29963 #include <signal.h>
29968 return *(signal (0, 0)) (0) == 1;
29973 rm -f conftest.$ac_objext
29974 if { (ac_try="$ac_compile"
29975 case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_compile") 2>conftest.er1
29982 grep -v '^ *+' conftest.er1 >conftest.err
29984 cat conftest.err >&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } &&
29987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29988 { (case "(($ac_try" in
29989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29990 *) ac_try_echo=$ac_try;;
29992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29993 (eval "$ac_try") 2>&5
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; } &&
29997 { ac_try='test -s conftest.$ac_objext'
29998 { (case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_try") 2>&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; }; then
30007 ac_cv_type_signal=int
30009 echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30012 ac_cv_type_signal=void
30015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30017 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30018 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30020 cat >>confdefs.h <<_ACEOF
30021 #define RETSIGTYPE $ac_cv_type_signal
30025 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30026 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30027 if test "${ac_cv_struct_tm+set}" = set; then
30028 echo $ECHO_N "(cached) $ECHO_C" >&6
30030 cat >conftest.$ac_ext <<_ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h. */
30036 #include <sys/types.h>
30042 struct tm *tp; tp->tm_sec;
30047 rm -f conftest.$ac_objext
30048 if { (ac_try="$ac_compile"
30049 case "(($ac_try" in
30050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051 *) ac_try_echo=$ac_try;;
30053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054 (eval "$ac_compile") 2>conftest.er1
30056 grep -v '^ *+' conftest.er1 >conftest.err
30058 cat conftest.err >&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); } &&
30061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30062 { (case "(($ac_try" in
30063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064 *) ac_try_echo=$ac_try;;
30066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067 (eval "$ac_try") 2>&5
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; } &&
30071 { ac_try='test -s conftest.$ac_objext'
30072 { (case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_try") 2>&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; }; then
30081 ac_cv_struct_tm=time.h
30083 echo "$as_me: failed program was:" >&5
30084 sed 's/^/| /' conftest.$ac_ext >&5
30086 ac_cv_struct_tm=sys/time.h
30089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30091 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30092 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30093 if test $ac_cv_struct_tm = sys/time.h; then
30095 cat >>confdefs.h <<\_ACEOF
30096 #define TM_IN_SYS_TIME 1
30101 { echo "$as_me:$LINENO: checking for int64_t" >&5
30102 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30103 if test "${ac_cv_type_int64_t+set}" = set; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 cat >conftest.$ac_ext <<_ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h. */
30112 $ac_includes_default
30113 typedef int64_t ac__type_new_;
30117 if ((ac__type_new_ *) 0)
30119 if (sizeof (ac__type_new_))
30125 rm -f conftest.$ac_objext
30126 if { (ac_try="$ac_compile"
30127 case "(($ac_try" in
30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129 *) ac_try_echo=$ac_try;;
30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132 (eval "$ac_compile") 2>conftest.er1
30134 grep -v '^ *+' conftest.er1 >conftest.err
30136 cat conftest.err >&5
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); } &&
30139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30140 { (case "(($ac_try" in
30141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142 *) ac_try_echo=$ac_try;;
30144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145 (eval "$ac_try") 2>&5
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); }; } &&
30149 { ac_try='test -s conftest.$ac_objext'
30150 { (case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_try") 2>&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; }; then
30159 ac_cv_type_int64_t=yes
30161 echo "$as_me: failed program was:" >&5
30162 sed 's/^/| /' conftest.$ac_ext >&5
30164 ac_cv_type_int64_t=no
30167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30169 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30170 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30171 if test $ac_cv_type_int64_t = yes; then
30173 cat >>confdefs.h <<_ACEOF
30174 #define HAVE_INT64_T 1
30179 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30180 echo "$as_me: error: Type int64_t required but not found" >&2;}
30181 { (exit 1); exit 1; }; }
30184 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30185 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30186 if test "${ac_cv_type_uint64_t+set}" = set; then
30187 echo $ECHO_N "(cached) $ECHO_C" >&6
30189 cat >conftest.$ac_ext <<_ACEOF
30192 cat confdefs.h >>conftest.$ac_ext
30193 cat >>conftest.$ac_ext <<_ACEOF
30194 /* end confdefs.h. */
30195 $ac_includes_default
30196 typedef uint64_t ac__type_new_;
30200 if ((ac__type_new_ *) 0)
30202 if (sizeof (ac__type_new_))
30208 rm -f conftest.$ac_objext
30209 if { (ac_try="$ac_compile"
30210 case "(($ac_try" in
30211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30212 *) ac_try_echo=$ac_try;;
30214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30215 (eval "$ac_compile") 2>conftest.er1
30217 grep -v '^ *+' conftest.er1 >conftest.err
30219 cat conftest.err >&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); } &&
30222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30223 { (case "(($ac_try" in
30224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225 *) ac_try_echo=$ac_try;;
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228 (eval "$ac_try") 2>&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; } &&
30232 { ac_try='test -s conftest.$ac_objext'
30233 { (case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_try") 2>&5
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; }; then
30242 ac_cv_type_uint64_t=yes
30244 echo "$as_me: failed program was:" >&5
30245 sed 's/^/| /' conftest.$ac_ext >&5
30247 ac_cv_type_uint64_t=no
30250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30252 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30253 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30254 if test $ac_cv_type_uint64_t = yes; then
30256 cat >>confdefs.h <<_ACEOF
30257 #define HAVE_UINT64_T 1
30262 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30263 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30264 if test "${ac_cv_type_u_int64_t+set}" = set; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30267 cat >conftest.$ac_ext <<_ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30273 $ac_includes_default
30274 typedef u_int64_t ac__type_new_;
30278 if ((ac__type_new_ *) 0)
30280 if (sizeof (ac__type_new_))
30286 rm -f conftest.$ac_objext
30287 if { (ac_try="$ac_compile"
30288 case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_compile") 2>conftest.er1
30295 grep -v '^ *+' conftest.er1 >conftest.err
30297 cat conftest.err >&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } &&
30300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30301 { (case "(($ac_try" in
30302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303 *) ac_try_echo=$ac_try;;
30305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30306 (eval "$ac_try") 2>&5
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; } &&
30310 { ac_try='test -s conftest.$ac_objext'
30311 { (case "(($ac_try" in
30312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313 *) ac_try_echo=$ac_try;;
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316 (eval "$ac_try") 2>&5
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
30320 ac_cv_type_u_int64_t=yes
30322 echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30325 ac_cv_type_u_int64_t=no
30328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30330 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30331 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30332 if test $ac_cv_type_u_int64_t = yes; then
30334 cat >>confdefs.h <<_ACEOF
30335 #define HAVE_U_INT64_T 1
30340 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30341 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30342 { (exit 1); exit 1; }; }
30356 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30362 echo $ECHO_N "(cached) $ECHO_C" >&6
30364 cat >conftest.$ac_ext <<_ACEOF
30367 cat confdefs.h >>conftest.$ac_ext
30368 cat >>conftest.$ac_ext <<_ACEOF
30369 /* end confdefs.h. */
30370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30372 #define $ac_func innocuous_$ac_func
30374 /* System header to define __stub macros and hopefully few prototypes,
30375 which can conflict with char $ac_func (); below.
30376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30377 <limits.h> exists even on freestanding compilers. */
30380 # include <limits.h>
30382 # include <assert.h>
30387 /* Override any GCC internal prototype to avoid an error.
30388 Use char because int might match the return type of a GCC
30389 builtin and then its argument prototype would still apply. */
30394 /* The GNU C library defines this for functions which it implements
30395 to always fail with ENOSYS. Some functions are actually named
30396 something starting with __ and the normal name is an alias. */
30397 #if defined __stub_$ac_func || defined __stub___$ac_func
30404 return $ac_func ();
30409 rm -f conftest.$ac_objext conftest$ac_exeext
30410 if { (ac_try="$ac_link"
30411 case "(($ac_try" in
30412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413 *) ac_try_echo=$ac_try;;
30415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416 (eval "$ac_link") 2>conftest.er1
30418 grep -v '^ *+' conftest.er1 >conftest.err
30420 cat conftest.err >&5
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); } &&
30423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30424 { (case "(($ac_try" in
30425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426 *) ac_try_echo=$ac_try;;
30428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429 (eval "$ac_try") 2>&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; } &&
30433 { ac_try='test -s conftest$ac_exeext'
30434 { (case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_try") 2>&5
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; }; then
30443 eval "$as_ac_var=yes"
30445 echo "$as_me: failed program was:" >&5
30446 sed 's/^/| /' conftest.$ac_ext >&5
30448 eval "$as_ac_var=no"
30451 rm -f core conftest.err conftest.$ac_objext \
30452 conftest$ac_exeext conftest.$ac_ext
30454 ac_res=`eval echo '${'$as_ac_var'}'`
30455 { echo "$as_me:$LINENO: result: $ac_res" >&5
30456 echo "${ECHO_T}$ac_res" >&6; }
30457 if test `eval echo '${'$as_ac_var'}'` = yes; then
30458 cat >>confdefs.h <<_ACEOF
30459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30469 for ac_func in powf fmodf strtof round
30471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h. */
30483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30485 #define $ac_func innocuous_$ac_func
30487 /* System header to define __stub macros and hopefully few prototypes,
30488 which can conflict with char $ac_func (); below.
30489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30490 <limits.h> exists even on freestanding compilers. */
30493 # include <limits.h>
30495 # include <assert.h>
30500 /* Override any GCC internal prototype to avoid an error.
30501 Use char because int might match the return type of a GCC
30502 builtin and then its argument prototype would still apply. */
30507 /* The GNU C library defines this for functions which it implements
30508 to always fail with ENOSYS. Some functions are actually named
30509 something starting with __ and the normal name is an alias. */
30510 #if defined __stub_$ac_func || defined __stub___$ac_func
30517 return $ac_func ();
30522 rm -f conftest.$ac_objext conftest$ac_exeext
30523 if { (ac_try="$ac_link"
30524 case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_link") 2>conftest.er1
30531 grep -v '^ *+' conftest.er1 >conftest.err
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
30536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30537 { (case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
30546 { ac_try='test -s conftest$ac_exeext'
30547 { (case "(($ac_try" in
30548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549 *) ac_try_echo=$ac_try;;
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_try") 2>&5
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; }; then
30556 eval "$as_ac_var=yes"
30558 echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.$ac_ext >&5
30561 eval "$as_ac_var=no"
30564 rm -f core conftest.err conftest.$ac_objext \
30565 conftest$ac_exeext conftest.$ac_ext
30567 ac_res=`eval echo '${'$as_ac_var'}'`
30568 { echo "$as_me:$LINENO: result: $ac_res" >&5
30569 echo "${ECHO_T}$ac_res" >&6; }
30570 if test `eval echo '${'$as_ac_var'}'` = yes; then
30571 cat >>confdefs.h <<_ACEOF
30572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30583 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30589 echo $ECHO_N "(cached) $ECHO_C" >&6
30591 cat >conftest.$ac_ext <<_ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30599 #define $ac_func innocuous_$ac_func
30601 /* System header to define __stub macros and hopefully few prototypes,
30602 which can conflict with char $ac_func (); below.
30603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30604 <limits.h> exists even on freestanding compilers. */
30607 # include <limits.h>
30609 # include <assert.h>
30614 /* Override any GCC internal prototype to avoid an error.
30615 Use char because int might match the return type of a GCC
30616 builtin and then its argument prototype would still apply. */
30621 /* The GNU C library defines this for functions which it implements
30622 to always fail with ENOSYS. Some functions are actually named
30623 something starting with __ and the normal name is an alias. */
30624 #if defined __stub_$ac_func || defined __stub___$ac_func
30631 return $ac_func ();
30636 rm -f conftest.$ac_objext conftest$ac_exeext
30637 if { (ac_try="$ac_link"
30638 case "(($ac_try" in
30639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640 *) ac_try_echo=$ac_try;;
30642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643 (eval "$ac_link") 2>conftest.er1
30645 grep -v '^ *+' conftest.er1 >conftest.err
30647 cat conftest.err >&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } &&
30650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30651 { (case "(($ac_try" in
30652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653 *) ac_try_echo=$ac_try;;
30655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30656 (eval "$ac_try") 2>&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
30661 { (case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_try") 2>&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; }; then
30670 eval "$as_ac_var=yes"
30672 echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30675 eval "$as_ac_var=no"
30678 rm -f core conftest.err conftest.$ac_objext \
30679 conftest$ac_exeext conftest.$ac_ext
30681 ac_res=`eval echo '${'$as_ac_var'}'`
30682 { echo "$as_me:$LINENO: result: $ac_res" >&5
30683 echo "${ECHO_T}$ac_res" >&6; }
30684 if test `eval echo '${'$as_ac_var'}'` = yes; then
30685 cat >>confdefs.h <<_ACEOF
30686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30695 for ac_func in isatty mkdtemp mkstemp
30697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30701 echo $ECHO_N "(cached) $ECHO_C" >&6
30703 cat >conftest.$ac_ext <<_ACEOF
30706 cat confdefs.h >>conftest.$ac_ext
30707 cat >>conftest.$ac_ext <<_ACEOF
30708 /* end confdefs.h. */
30709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30711 #define $ac_func innocuous_$ac_func
30713 /* System header to define __stub macros and hopefully few prototypes,
30714 which can conflict with char $ac_func (); below.
30715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30716 <limits.h> exists even on freestanding compilers. */
30719 # include <limits.h>
30721 # include <assert.h>
30726 /* Override any GCC internal prototype to avoid an error.
30727 Use char because int might match the return type of a GCC
30728 builtin and then its argument prototype would still apply. */
30733 /* The GNU C library defines this for functions which it implements
30734 to always fail with ENOSYS. Some functions are actually named
30735 something starting with __ and the normal name is an alias. */
30736 #if defined __stub_$ac_func || defined __stub___$ac_func
30743 return $ac_func ();
30748 rm -f conftest.$ac_objext conftest$ac_exeext
30749 if { (ac_try="$ac_link"
30750 case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_link") 2>conftest.er1
30757 grep -v '^ *+' conftest.er1 >conftest.err
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } &&
30762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30763 { (case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_try") 2>&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest$ac_exeext'
30773 { (case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_try") 2>&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
30782 eval "$as_ac_var=yes"
30784 echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30787 eval "$as_ac_var=no"
30790 rm -f core conftest.err conftest.$ac_objext \
30791 conftest$ac_exeext conftest.$ac_ext
30793 ac_res=`eval echo '${'$as_ac_var'}'`
30794 { echo "$as_me:$LINENO: result: $ac_res" >&5
30795 echo "${ECHO_T}$ac_res" >&6; }
30796 if test `eval echo '${'$as_ac_var'}'` = yes; then
30797 cat >>confdefs.h <<_ACEOF
30798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30811 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30819 cat >conftest.$ac_ext <<_ACEOF
30822 cat confdefs.h >>conftest.$ac_ext
30823 cat >>conftest.$ac_ext <<_ACEOF
30824 /* end confdefs.h. */
30825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30827 #define $ac_func innocuous_$ac_func
30829 /* System header to define __stub macros and hopefully few prototypes,
30830 which can conflict with char $ac_func (); below.
30831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30832 <limits.h> exists even on freestanding compilers. */
30835 # include <limits.h>
30837 # include <assert.h>
30842 /* Override any GCC internal prototype to avoid an error.
30843 Use char because int might match the return type of a GCC
30844 builtin and then its argument prototype would still apply. */
30849 /* The GNU C library defines this for functions which it implements
30850 to always fail with ENOSYS. Some functions are actually named
30851 something starting with __ and the normal name is an alias. */
30852 #if defined __stub_$ac_func || defined __stub___$ac_func
30859 return $ac_func ();
30864 rm -f conftest.$ac_objext conftest$ac_exeext
30865 if { (ac_try="$ac_link"
30866 case "(($ac_try" in
30867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868 *) ac_try_echo=$ac_try;;
30870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871 (eval "$ac_link") 2>conftest.er1
30873 grep -v '^ *+' conftest.er1 >conftest.err
30875 cat conftest.err >&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); } &&
30878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30879 { (case "(($ac_try" in
30880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881 *) ac_try_echo=$ac_try;;
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884 (eval "$ac_try") 2>&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest$ac_exeext'
30889 { (case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_try") 2>&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30898 eval "$as_ac_var=yes"
30900 echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.$ac_ext >&5
30903 eval "$as_ac_var=no"
30906 rm -f core conftest.err conftest.$ac_objext \
30907 conftest$ac_exeext conftest.$ac_ext
30909 ac_res=`eval echo '${'$as_ac_var'}'`
30910 { echo "$as_me:$LINENO: result: $ac_res" >&5
30911 echo "${ECHO_T}$ac_res" >&6; }
30912 if test `eval echo '${'$as_ac_var'}'` = yes; then
30913 cat >>confdefs.h <<_ACEOF
30914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30924 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30930 echo $ECHO_N "(cached) $ECHO_C" >&6
30932 cat >conftest.$ac_ext <<_ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h. */
30938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30940 #define $ac_func innocuous_$ac_func
30942 /* System header to define __stub macros and hopefully few prototypes,
30943 which can conflict with char $ac_func (); below.
30944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30945 <limits.h> exists even on freestanding compilers. */
30948 # include <limits.h>
30950 # include <assert.h>
30955 /* Override any GCC internal prototype to avoid an error.
30956 Use char because int might match the return type of a GCC
30957 builtin and then its argument prototype would still apply. */
30962 /* The GNU C library defines this for functions which it implements
30963 to always fail with ENOSYS. Some functions are actually named
30964 something starting with __ and the normal name is an alias. */
30965 #if defined __stub_$ac_func || defined __stub___$ac_func
30972 return $ac_func ();
30977 rm -f conftest.$ac_objext conftest$ac_exeext
30978 if { (ac_try="$ac_link"
30979 case "(($ac_try" in
30980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30981 *) ac_try_echo=$ac_try;;
30983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30984 (eval "$ac_link") 2>conftest.er1
30986 grep -v '^ *+' conftest.er1 >conftest.err
30988 cat conftest.err >&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } &&
30991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30992 { (case "(($ac_try" in
30993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994 *) ac_try_echo=$ac_try;;
30996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997 (eval "$ac_try") 2>&5
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; } &&
31001 { ac_try='test -s conftest$ac_exeext'
31002 { (case "(($ac_try" in
31003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31004 *) ac_try_echo=$ac_try;;
31006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31007 (eval "$ac_try") 2>&5
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); }; }; then
31011 eval "$as_ac_var=yes"
31013 echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31016 eval "$as_ac_var=no"
31019 rm -f core conftest.err conftest.$ac_objext \
31020 conftest$ac_exeext conftest.$ac_ext
31022 ac_res=`eval echo '${'$as_ac_var'}'`
31023 { echo "$as_me:$LINENO: result: $ac_res" >&5
31024 echo "${ECHO_T}$ac_res" >&6; }
31025 if test `eval echo '${'$as_ac_var'}'` = yes; then
31026 cat >>confdefs.h <<_ACEOF
31027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31037 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31045 cat >conftest.$ac_ext <<_ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h. */
31051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31053 #define $ac_func innocuous_$ac_func
31055 /* System header to define __stub macros and hopefully few prototypes,
31056 which can conflict with char $ac_func (); below.
31057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31058 <limits.h> exists even on freestanding compilers. */
31061 # include <limits.h>
31063 # include <assert.h>
31068 /* Override any GCC internal prototype to avoid an error.
31069 Use char because int might match the return type of a GCC
31070 builtin and then its argument prototype would still apply. */
31075 /* The GNU C library defines this for functions which it implements
31076 to always fail with ENOSYS. Some functions are actually named
31077 something starting with __ and the normal name is an alias. */
31078 #if defined __stub_$ac_func || defined __stub___$ac_func
31085 return $ac_func ();
31090 rm -f conftest.$ac_objext conftest$ac_exeext
31091 if { (ac_try="$ac_link"
31092 case "(($ac_try" in
31093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31094 *) ac_try_echo=$ac_try;;
31096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097 (eval "$ac_link") 2>conftest.er1
31099 grep -v '^ *+' conftest.er1 >conftest.err
31101 cat conftest.err >&5
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); } &&
31104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31105 { (case "(($ac_try" in
31106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_try") 2>&5
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; } &&
31114 { ac_try='test -s conftest$ac_exeext'
31115 { (case "(($ac_try" in
31116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31117 *) ac_try_echo=$ac_try;;
31119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31120 (eval "$ac_try") 2>&5
31122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123 (exit $ac_status); }; }; then
31124 eval "$as_ac_var=yes"
31126 echo "$as_me: failed program was:" >&5
31127 sed 's/^/| /' conftest.$ac_ext >&5
31129 eval "$as_ac_var=no"
31132 rm -f core conftest.err conftest.$ac_objext \
31133 conftest$ac_exeext conftest.$ac_ext
31135 ac_res=`eval echo '${'$as_ac_var'}'`
31136 { echo "$as_me:$LINENO: result: $ac_res" >&5
31137 echo "${ECHO_T}$ac_res" >&6; }
31138 if test `eval echo '${'$as_ac_var'}'` = yes; then
31139 cat >>confdefs.h <<_ACEOF
31140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31146 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31147 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31148 if test "${llvm_cv_c_printf_a+set}" = set; then
31149 echo $ECHO_N "(cached) $ECHO_C" >&6
31152 ac_cpp='$CPP $CPPFLAGS'
31153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31157 if test "$cross_compiling" = yes; then
31158 llvmac_cv_c_printf_a=no
31160 cat >conftest.$ac_ext <<_ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h. */
31169 #include <stdlib.h>
31175 volatile double A, B;
31179 sprintf(Buffer, "%a", A);
31183 if (A != 0x1.999999999999ap-4)
31190 rm -f conftest$ac_exeext
31191 if { (ac_try="$ac_link"
31192 case "(($ac_try" in
31193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194 *) ac_try_echo=$ac_try;;
31196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31197 (eval "$ac_link") 2>&5
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; }; then
31210 llvm_cv_c_printf_a=yes
31212 echo "$as_me: program exited with status $ac_status" >&5
31213 echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31216 ( exit $ac_status )
31217 llvmac_cv_c_printf_a=no
31219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31224 ac_cpp='$CPP $CPPFLAGS'
31225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31230 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31231 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31232 if test "$llvm_cv_c_printf_a" = "yes"; then
31234 cat >>confdefs.h <<\_ACEOF
31235 #define HAVE_PRINTF_A 1
31240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31241 # for constant arguments. Useless!
31242 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31243 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31244 if test "${ac_cv_working_alloca_h+set}" = set; then
31245 echo $ECHO_N "(cached) $ECHO_C" >&6
31247 cat >conftest.$ac_ext <<_ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h. */
31253 #include <alloca.h>
31257 char *p = (char *) alloca (2 * sizeof (int));
31263 rm -f conftest.$ac_objext conftest$ac_exeext
31264 if { (ac_try="$ac_link"
31265 case "(($ac_try" in
31266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_link") 2>conftest.er1
31272 grep -v '^ *+' conftest.er1 >conftest.err
31274 cat conftest.err >&5
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } &&
31277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31278 { (case "(($ac_try" in
31279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280 *) ac_try_echo=$ac_try;;
31282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283 (eval "$ac_try") 2>&5
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); }; } &&
31287 { ac_try='test -s conftest$ac_exeext'
31288 { (case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_try") 2>&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; }; then
31297 ac_cv_working_alloca_h=yes
31299 echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31302 ac_cv_working_alloca_h=no
31305 rm -f core conftest.err conftest.$ac_objext \
31306 conftest$ac_exeext conftest.$ac_ext
31308 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31309 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31310 if test $ac_cv_working_alloca_h = yes; then
31312 cat >>confdefs.h <<\_ACEOF
31313 #define HAVE_ALLOCA_H 1
31318 { echo "$as_me:$LINENO: checking for alloca" >&5
31319 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31320 if test "${ac_cv_func_alloca_works+set}" = set; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31323 cat >conftest.$ac_ext <<_ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31330 # define alloca __builtin_alloca
31333 # include <malloc.h>
31334 # define alloca _alloca
31337 # include <alloca.h>
31342 # ifndef alloca /* predefined by HP cc +Olibcalls */
31353 char *p = (char *) alloca (1);
31359 rm -f conftest.$ac_objext conftest$ac_exeext
31360 if { (ac_try="$ac_link"
31361 case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_link") 2>conftest.er1
31368 grep -v '^ *+' conftest.er1 >conftest.err
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } &&
31373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31374 { (case "(($ac_try" in
31375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376 *) ac_try_echo=$ac_try;;
31378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379 (eval "$ac_try") 2>&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); }; } &&
31383 { ac_try='test -s conftest$ac_exeext'
31384 { (case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_try") 2>&5
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); }; }; then
31393 ac_cv_func_alloca_works=yes
31395 echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31398 ac_cv_func_alloca_works=no
31401 rm -f core conftest.err conftest.$ac_objext \
31402 conftest$ac_exeext conftest.$ac_ext
31404 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31405 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31407 if test $ac_cv_func_alloca_works = yes; then
31409 cat >>confdefs.h <<\_ACEOF
31410 #define HAVE_ALLOCA 1
31414 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31415 # that cause trouble. Some versions do not even contain alloca or
31416 # contain a buggy version. If you still want to use their alloca,
31417 # use ar to extract alloca.o from them instead of compiling alloca.c.
31419 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31421 cat >>confdefs.h <<\_ACEOF
31426 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31427 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31428 if test "${ac_cv_os_cray+set}" = set; then
31429 echo $ECHO_N "(cached) $ECHO_C" >&6
31431 cat >conftest.$ac_ext <<_ACEOF
31434 cat confdefs.h >>conftest.$ac_ext
31435 cat >>conftest.$ac_ext <<_ACEOF
31436 /* end confdefs.h. */
31437 #if defined CRAY && ! defined CRAY2
31444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31445 $EGREP "webecray" >/dev/null 2>&1; then
31453 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31454 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31455 if test $ac_cv_os_cray = yes; then
31456 for ac_func in _getb67 GETB67 getb67; do
31457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31461 echo $ECHO_N "(cached) $ECHO_C" >&6
31463 cat >conftest.$ac_ext <<_ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h. */
31469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31471 #define $ac_func innocuous_$ac_func
31473 /* System header to define __stub macros and hopefully few prototypes,
31474 which can conflict with char $ac_func (); below.
31475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31476 <limits.h> exists even on freestanding compilers. */
31479 # include <limits.h>
31481 # include <assert.h>
31486 /* Override any GCC internal prototype to avoid an error.
31487 Use char because int might match the return type of a GCC
31488 builtin and then its argument prototype would still apply. */
31493 /* The GNU C library defines this for functions which it implements
31494 to always fail with ENOSYS. Some functions are actually named
31495 something starting with __ and the normal name is an alias. */
31496 #if defined __stub_$ac_func || defined __stub___$ac_func
31503 return $ac_func ();
31508 rm -f conftest.$ac_objext conftest$ac_exeext
31509 if { (ac_try="$ac_link"
31510 case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_link") 2>conftest.er1
31517 grep -v '^ *+' conftest.er1 >conftest.err
31519 cat conftest.err >&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); } &&
31522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31523 { (case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_try") 2>&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); }; } &&
31532 { ac_try='test -s conftest$ac_exeext'
31533 { (case "(($ac_try" in
31534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535 *) ac_try_echo=$ac_try;;
31537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538 (eval "$ac_try") 2>&5
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; }; then
31542 eval "$as_ac_var=yes"
31544 echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31547 eval "$as_ac_var=no"
31550 rm -f core conftest.err conftest.$ac_objext \
31551 conftest$ac_exeext conftest.$ac_ext
31553 ac_res=`eval echo '${'$as_ac_var'}'`
31554 { echo "$as_me:$LINENO: result: $ac_res" >&5
31555 echo "${ECHO_T}$ac_res" >&6; }
31556 if test `eval echo '${'$as_ac_var'}'` = yes; then
31558 cat >>confdefs.h <<_ACEOF
31559 #define CRAY_STACKSEG_END $ac_func
31568 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31569 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31570 if test "${ac_cv_c_stack_direction+set}" = set; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31573 if test "$cross_compiling" = yes; then
31574 ac_cv_c_stack_direction=0
31576 cat >conftest.$ac_ext <<_ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31582 $ac_includes_default
31584 find_stack_direction ()
31586 static char *addr = 0;
31591 return find_stack_direction ();
31594 return (&dummy > addr) ? 1 : -1;
31600 return find_stack_direction () < 0;
31603 rm -f conftest$ac_exeext
31604 if { (ac_try="$ac_link"
31605 case "(($ac_try" in
31606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607 *) ac_try_echo=$ac_try;;
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610 (eval "$ac_link") 2>&5
31612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31614 { (case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_try") 2>&5
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); }; }; then
31623 ac_cv_c_stack_direction=1
31625 echo "$as_me: program exited with status $ac_status" >&5
31626 echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.$ac_ext >&5
31629 ( exit $ac_status )
31630 ac_cv_c_stack_direction=-1
31632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31637 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31638 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31640 cat >>confdefs.h <<_ACEOF
31641 #define STACK_DIRECTION $ac_cv_c_stack_direction
31648 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31649 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31650 if test "${ac_cv_func_rand48+set}" = set; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31654 ac_cpp='$CXXCPP $CPPFLAGS'
31655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31659 cat >conftest.$ac_ext <<_ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h. */
31665 #include <stdlib.h>
31669 srand48(0);lrand48();drand48();
31674 rm -f conftest.$ac_objext
31675 if { (ac_try="$ac_compile"
31676 case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_compile") 2>conftest.er1
31683 grep -v '^ *+' conftest.er1 >conftest.err
31685 cat conftest.err >&5
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); } &&
31688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31689 { (case "(($ac_try" in
31690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691 *) ac_try_echo=$ac_try;;
31693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694 (eval "$ac_try") 2>&5
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; } &&
31698 { ac_try='test -s conftest.$ac_objext'
31699 { (case "(($ac_try" in
31700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701 *) ac_try_echo=$ac_try;;
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704 (eval "$ac_try") 2>&5
31706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707 (exit $ac_status); }; }; then
31708 ac_cv_func_rand48=yes
31710 echo "$as_me: failed program was:" >&5
31711 sed 's/^/| /' conftest.$ac_ext >&5
31713 ac_cv_func_rand48=no
31716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31718 ac_cpp='$CPP $CPPFLAGS'
31719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31724 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31725 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31727 if test "$ac_cv_func_rand48" = "yes" ; then
31729 cat >>confdefs.h <<\_ACEOF
31730 #define HAVE_RAND48 1
31736 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31737 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31738 if test "${ac_cv_cxx_namespaces+set}" = set; then
31739 echo $ECHO_N "(cached) $ECHO_C" >&6
31742 ac_cpp='$CXXCPP $CPPFLAGS'
31743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31747 cat >conftest.$ac_ext <<_ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h. */
31753 namespace Outer { namespace Inner { int i = 0; }}
31757 using namespace Outer::Inner; return i;
31762 rm -f conftest.$ac_objext
31763 if { (ac_try="$ac_compile"
31764 case "(($ac_try" in
31765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766 *) ac_try_echo=$ac_try;;
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769 (eval "$ac_compile") 2>conftest.er1
31771 grep -v '^ *+' conftest.er1 >conftest.err
31773 cat conftest.err >&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); } &&
31776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31777 { (case "(($ac_try" in
31778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779 *) ac_try_echo=$ac_try;;
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782 (eval "$ac_try") 2>&5
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; } &&
31786 { ac_try='test -s conftest.$ac_objext'
31787 { (case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_try") 2>&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; }; then
31796 ac_cv_cxx_namespaces=yes
31798 echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31801 ac_cv_cxx_namespaces=no
31804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31806 ac_cpp='$CPP $CPPFLAGS'
31807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31813 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31814 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31815 if test "$ac_cv_cxx_namespaces" = yes; then
31817 cat >>confdefs.h <<\_ACEOF
31818 #define HAVE_NAMESPACES
31823 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31824 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31825 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31826 echo $ECHO_N "(cached) $ECHO_C" >&6
31830 ac_cpp='$CXXCPP $CPPFLAGS'
31831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31835 cat >conftest.$ac_ext <<_ACEOF
31838 cat confdefs.h >>conftest.$ac_ext
31839 cat >>conftest.$ac_ext <<_ACEOF
31840 /* end confdefs.h. */
31841 #include <ext/hash_map>
31842 #ifdef HAVE_NAMESPACES
31843 using namespace std;
31848 hash_map<int, int> t;
31853 rm -f conftest.$ac_objext
31854 if { (ac_try="$ac_compile"
31855 case "(($ac_try" in
31856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31857 *) ac_try_echo=$ac_try;;
31859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31860 (eval "$ac_compile") 2>conftest.er1
31862 grep -v '^ *+' conftest.er1 >conftest.err
31864 cat conftest.err >&5
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); } &&
31867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31868 { (case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_try") 2>&5
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; } &&
31877 { ac_try='test -s conftest.$ac_objext'
31878 { (case "(($ac_try" in
31879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880 *) ac_try_echo=$ac_try;;
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883 (eval "$ac_try") 2>&5
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); }; }; then
31887 ac_cv_cxx_have_std_ext_hash_map=yes
31889 echo "$as_me: failed program was:" >&5
31890 sed 's/^/| /' conftest.$ac_ext >&5
31892 ac_cv_cxx_have_std_ext_hash_map=no
31895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31897 ac_cpp='$CPP $CPPFLAGS'
31898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31903 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31904 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31905 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31908 cat >>confdefs.h <<\_ACEOF
31909 #define HAVE_STD_EXT_HASH_MAP 1
31914 cat >>confdefs.h <<\_ACEOF
31915 #define HAVE_STD_EXT_HASH_MAP 0
31920 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31921 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31922 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31923 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 ac_cpp='$CXXCPP $CPPFLAGS'
31928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31932 cat >conftest.$ac_ext <<_ACEOF
31935 cat confdefs.h >>conftest.$ac_ext
31936 cat >>conftest.$ac_ext <<_ACEOF
31937 /* end confdefs.h. */
31938 #include <ext/hash_map>
31939 #ifdef HAVE_NAMESPACES
31940 using namespace __gnu_cxx;
31945 hash_map<int,int> t;
31950 rm -f conftest.$ac_objext
31951 if { (ac_try="$ac_compile"
31952 case "(($ac_try" in
31953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954 *) ac_try_echo=$ac_try;;
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957 (eval "$ac_compile") 2>conftest.er1
31959 grep -v '^ *+' conftest.er1 >conftest.err
31961 cat conftest.err >&5
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); } &&
31964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31965 { (case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_try") 2>&5
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; } &&
31974 { ac_try='test -s conftest.$ac_objext'
31975 { (case "(($ac_try" in
31976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977 *) ac_try_echo=$ac_try;;
31979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980 (eval "$ac_try") 2>&5
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; }; then
31984 ac_cv_cxx_have_gnu_ext_hash_map=yes
31986 echo "$as_me: failed program was:" >&5
31987 sed 's/^/| /' conftest.$ac_ext >&5
31989 ac_cv_cxx_have_gnu_ext_hash_map=no
31992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31994 ac_cpp='$CPP $CPPFLAGS'
31995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32000 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32001 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32002 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32005 cat >>confdefs.h <<\_ACEOF
32006 #define HAVE_GNU_EXT_HASH_MAP 1
32011 cat >>confdefs.h <<\_ACEOF
32012 #define HAVE_GNU_EXT_HASH_MAP 0
32017 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32018 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32019 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32020 echo $ECHO_N "(cached) $ECHO_C" >&6
32024 ac_cpp='$CXXCPP $CPPFLAGS'
32025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32029 cat >conftest.$ac_ext <<_ACEOF
32032 cat confdefs.h >>conftest.$ac_ext
32033 cat >>conftest.$ac_ext <<_ACEOF
32034 /* end confdefs.h. */
32035 #include <hash_map>
32039 hash_map<int,int> t;
32044 rm -f conftest.$ac_objext
32045 if { (ac_try="$ac_compile"
32046 case "(($ac_try" in
32047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048 *) ac_try_echo=$ac_try;;
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051 (eval "$ac_compile") 2>conftest.er1
32053 grep -v '^ *+' conftest.er1 >conftest.err
32055 cat conftest.err >&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); } &&
32058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32059 { (case "(($ac_try" in
32060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32061 *) ac_try_echo=$ac_try;;
32063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32064 (eval "$ac_try") 2>&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest.$ac_objext'
32069 { (case "(($ac_try" in
32070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32071 *) ac_try_echo=$ac_try;;
32073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32074 (eval "$ac_try") 2>&5
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); }; }; then
32078 ac_cv_cxx_have_global_hash_map=yes
32080 echo "$as_me: failed program was:" >&5
32081 sed 's/^/| /' conftest.$ac_ext >&5
32083 ac_cv_cxx_have_global_hash_map=no
32086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32088 ac_cpp='$CPP $CPPFLAGS'
32089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32094 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32095 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32096 if test "$ac_cv_cxx_have_global_hash_map" = yes
32099 cat >>confdefs.h <<\_ACEOF
32100 #define HAVE_GLOBAL_HASH_MAP 1
32105 cat >>confdefs.h <<\_ACEOF
32106 #define HAVE_GLOBAL_HASH_MAP 0
32111 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32112 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32113 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32114 echo $ECHO_N "(cached) $ECHO_C" >&6
32118 ac_cpp='$CXXCPP $CPPFLAGS'
32119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32123 cat >conftest.$ac_ext <<_ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h. */
32129 #include <ext/hash_set>
32130 #ifdef HAVE_NAMESPACES
32131 using namespace std;
32141 rm -f conftest.$ac_objext
32142 if { (ac_try="$ac_compile"
32143 case "(($ac_try" in
32144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145 *) ac_try_echo=$ac_try;;
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 (eval "$ac_compile") 2>conftest.er1
32150 grep -v '^ *+' conftest.er1 >conftest.err
32152 cat conftest.err >&5
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); } &&
32155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32156 { (case "(($ac_try" in
32157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32158 *) ac_try_echo=$ac_try;;
32160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32161 (eval "$ac_try") 2>&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); }; } &&
32165 { ac_try='test -s conftest.$ac_objext'
32166 { (case "(($ac_try" in
32167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_try") 2>&5
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); }; }; then
32175 ac_cv_cxx_have_std_ext_hash_set=yes
32177 echo "$as_me: failed program was:" >&5
32178 sed 's/^/| /' conftest.$ac_ext >&5
32180 ac_cv_cxx_have_std_ext_hash_set=no
32183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32185 ac_cpp='$CPP $CPPFLAGS'
32186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32191 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32192 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32193 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32196 cat >>confdefs.h <<\_ACEOF
32197 #define HAVE_STD_EXT_HASH_SET 1
32202 cat >>confdefs.h <<\_ACEOF
32203 #define HAVE_STD_EXT_HASH_SET 0
32208 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32209 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32210 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32211 echo $ECHO_N "(cached) $ECHO_C" >&6
32215 ac_cpp='$CXXCPP $CPPFLAGS'
32216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32220 cat >conftest.$ac_ext <<_ACEOF
32223 cat confdefs.h >>conftest.$ac_ext
32224 cat >>conftest.$ac_ext <<_ACEOF
32225 /* end confdefs.h. */
32226 #include <ext/hash_set>
32227 #ifdef HAVE_NAMESPACES
32228 using namespace __gnu_cxx;
32238 rm -f conftest.$ac_objext
32239 if { (ac_try="$ac_compile"
32240 case "(($ac_try" in
32241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32242 *) ac_try_echo=$ac_try;;
32244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245 (eval "$ac_compile") 2>conftest.er1
32247 grep -v '^ *+' conftest.er1 >conftest.err
32249 cat conftest.err >&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } &&
32252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32253 { (case "(($ac_try" in
32254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255 *) ac_try_echo=$ac_try;;
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258 (eval "$ac_try") 2>&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); }; } &&
32262 { ac_try='test -s conftest.$ac_objext'
32263 { (case "(($ac_try" in
32264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265 *) ac_try_echo=$ac_try;;
32267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268 (eval "$ac_try") 2>&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; }; then
32272 ac_cv_cxx_have_gnu_ext_hash_set=yes
32274 echo "$as_me: failed program was:" >&5
32275 sed 's/^/| /' conftest.$ac_ext >&5
32277 ac_cv_cxx_have_gnu_ext_hash_set=no
32280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32282 ac_cpp='$CPP $CPPFLAGS'
32283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32288 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32289 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32290 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32293 cat >>confdefs.h <<\_ACEOF
32294 #define HAVE_GNU_EXT_HASH_SET 1
32299 cat >>confdefs.h <<\_ACEOF
32300 #define HAVE_GNU_EXT_HASH_SET 0
32305 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32306 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32307 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32308 echo $ECHO_N "(cached) $ECHO_C" >&6
32312 ac_cpp='$CXXCPP $CPPFLAGS'
32313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32323 #include <hash_set>
32327 hash_set<int> t; return 0;
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336 *) ac_try_echo=$ac_try;;
32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339 (eval "$ac_compile") 2>conftest.er1
32341 grep -v '^ *+' conftest.er1 >conftest.err
32343 cat conftest.err >&5
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); } &&
32346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32347 { (case "(($ac_try" in
32348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349 *) ac_try_echo=$ac_try;;
32351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32352 (eval "$ac_try") 2>&5
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); }; } &&
32356 { ac_try='test -s conftest.$ac_objext'
32357 { (case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_try") 2>&5
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; }; then
32366 ac_cv_cxx_have_global_hash_set=yes
32368 echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32371 ac_cv_cxx_have_global_hash_set=no
32374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32376 ac_cpp='$CPP $CPPFLAGS'
32377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32382 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32383 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32384 if test "$ac_cv_cxx_have_global_hash_set" = yes
32387 cat >>confdefs.h <<\_ACEOF
32388 #define HAVE_GLOBAL_HASH_SET 1
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_GLOBAL_HASH_SET 0
32399 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32400 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32401 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32406 ac_cpp='$CXXCPP $CPPFLAGS'
32407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32411 cat >conftest.$ac_ext <<_ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h. */
32417 #include <iterator>
32418 #ifdef HAVE_NAMESPACES
32419 using namespace std;
32424 iterator<int,int,int> t; return 0;
32429 rm -f conftest.$ac_objext
32430 if { (ac_try="$ac_compile"
32431 case "(($ac_try" in
32432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433 *) ac_try_echo=$ac_try;;
32435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436 (eval "$ac_compile") 2>conftest.er1
32438 grep -v '^ *+' conftest.er1 >conftest.err
32440 cat conftest.err >&5
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); } &&
32443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32444 { (case "(($ac_try" in
32445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446 *) ac_try_echo=$ac_try;;
32448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449 (eval "$ac_try") 2>&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; } &&
32453 { ac_try='test -s conftest.$ac_objext'
32454 { (case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_try") 2>&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; }; then
32463 ac_cv_cxx_have_std_iterator=yes
32465 echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32468 ac_cv_cxx_have_std_iterator=no
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473 ac_cpp='$CPP $CPPFLAGS'
32474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32480 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32481 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32482 if test "$ac_cv_cxx_have_std_iterator" = yes
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_STD_ITERATOR 1
32491 cat >>confdefs.h <<\_ACEOF
32492 #define HAVE_STD_ITERATOR 0
32497 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32498 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32499 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32500 echo $ECHO_N "(cached) $ECHO_C" >&6
32504 ac_cpp='$CXXCPP $CPPFLAGS'
32505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32509 cat >conftest.$ac_ext <<_ACEOF
32512 cat confdefs.h >>conftest.$ac_ext
32513 cat >>conftest.$ac_ext <<_ACEOF
32514 /* end confdefs.h. */
32515 #include <iterator>
32516 #ifdef HAVE_NAMESPACES
32517 using namespace std;
32522 bidirectional_iterator<int,int> t; return 0;
32527 rm -f conftest.$ac_objext
32528 if { (ac_try="$ac_compile"
32529 case "(($ac_try" in
32530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531 *) ac_try_echo=$ac_try;;
32533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32534 (eval "$ac_compile") 2>conftest.er1
32536 grep -v '^ *+' conftest.er1 >conftest.err
32538 cat conftest.err >&5
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); } &&
32541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32542 { (case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_try") 2>&5
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; } &&
32551 { ac_try='test -s conftest.$ac_objext'
32552 { (case "(($ac_try" in
32553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554 *) ac_try_echo=$ac_try;;
32556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557 (eval "$ac_try") 2>&5
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); }; }; then
32561 ac_cv_cxx_have_bi_iterator=yes
32563 echo "$as_me: failed program was:" >&5
32564 sed 's/^/| /' conftest.$ac_ext >&5
32566 ac_cv_cxx_have_bi_iterator=no
32569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32571 ac_cpp='$CPP $CPPFLAGS'
32572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32578 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32579 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32580 if test "$ac_cv_cxx_have_bi_iterator" = yes
32583 cat >>confdefs.h <<\_ACEOF
32584 #define HAVE_BI_ITERATOR 1
32589 cat >>confdefs.h <<\_ACEOF
32590 #define HAVE_BI_ITERATOR 0
32595 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32596 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32597 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32598 echo $ECHO_N "(cached) $ECHO_C" >&6
32602 ac_cpp='$CXXCPP $CPPFLAGS'
32603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32607 cat >conftest.$ac_ext <<_ACEOF
32610 cat confdefs.h >>conftest.$ac_ext
32611 cat >>conftest.$ac_ext <<_ACEOF
32612 /* end confdefs.h. */
32613 #include <iterator>
32614 #ifdef HAVE_NAMESPACES
32615 using namespace std;
32620 forward_iterator<int,int> t; return 0;
32625 rm -f conftest.$ac_objext
32626 if { (ac_try="$ac_compile"
32627 case "(($ac_try" in
32628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629 *) ac_try_echo=$ac_try;;
32631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632 (eval "$ac_compile") 2>conftest.er1
32634 grep -v '^ *+' conftest.er1 >conftest.err
32636 cat conftest.err >&5
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); } &&
32639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32640 { (case "(($ac_try" in
32641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32642 *) ac_try_echo=$ac_try;;
32644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32645 (eval "$ac_try") 2>&5
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest.$ac_objext'
32650 { (case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_try") 2>&5
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
32659 ac_cv_cxx_have_fwd_iterator=yes
32661 echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32664 ac_cv_cxx_have_fwd_iterator=no
32667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32669 ac_cpp='$CPP $CPPFLAGS'
32670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32676 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32677 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32678 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32681 cat >>confdefs.h <<\_ACEOF
32682 #define HAVE_FWD_ITERATOR 1
32687 cat >>confdefs.h <<\_ACEOF
32688 #define HAVE_FWD_ITERATOR 0
32694 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32695 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32696 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32697 echo $ECHO_N "(cached) $ECHO_C" >&6
32700 ac_cpp='$CXXCPP $CPPFLAGS'
32701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32705 cat >conftest.$ac_ext <<_ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h. */
32720 rm -f conftest.$ac_objext
32721 if { (ac_try="$ac_compile"
32722 case "(($ac_try" in
32723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724 *) ac_try_echo=$ac_try;;
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727 (eval "$ac_compile") 2>conftest.er1
32729 grep -v '^ *+' conftest.er1 >conftest.err
32731 cat conftest.err >&5
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); } &&
32734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32735 { (case "(($ac_try" in
32736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737 *) ac_try_echo=$ac_try;;
32739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740 (eval "$ac_try") 2>&5
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); }; } &&
32744 { ac_try='test -s conftest.$ac_objext'
32745 { (case "(($ac_try" in
32746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747 *) ac_try_echo=$ac_try;;
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750 (eval "$ac_try") 2>&5
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; }; then
32754 ac_cv_func_isnan_in_math_h=yes
32756 echo "$as_me: failed program was:" >&5
32757 sed 's/^/| /' conftest.$ac_ext >&5
32759 ac_cv_func_isnan_in_math_h=no
32762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32764 ac_cpp='$CPP $CPPFLAGS'
32765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32770 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32771 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32774 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32776 cat >>confdefs.h <<\_ACEOF
32777 #define HAVE_ISNAN_IN_MATH_H 1
32782 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32783 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32784 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32785 echo $ECHO_N "(cached) $ECHO_C" >&6
32788 ac_cpp='$CXXCPP $CPPFLAGS'
32789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32793 cat >conftest.$ac_ext <<_ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h. */
32808 rm -f conftest.$ac_objext
32809 if { (ac_try="$ac_compile"
32810 case "(($ac_try" in
32811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_compile") 2>conftest.er1
32817 grep -v '^ *+' conftest.er1 >conftest.err
32819 cat conftest.err >&5
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); } &&
32822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32823 { (case "(($ac_try" in
32824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32825 *) ac_try_echo=$ac_try;;
32827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32828 (eval "$ac_try") 2>&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; } &&
32832 { ac_try='test -s conftest.$ac_objext'
32833 { (case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_try") 2>&5
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; }; then
32842 ac_cv_func_isnan_in_cmath=yes
32844 echo "$as_me: failed program was:" >&5
32845 sed 's/^/| /' conftest.$ac_ext >&5
32847 ac_cv_func_isnan_in_cmath=no
32850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32852 ac_cpp='$CPP $CPPFLAGS'
32853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32858 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32859 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32861 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32863 cat >>confdefs.h <<\_ACEOF
32864 #define HAVE_ISNAN_IN_CMATH 1
32869 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32870 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32871 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32872 echo $ECHO_N "(cached) $ECHO_C" >&6
32875 ac_cpp='$CXXCPP $CPPFLAGS'
32876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32880 cat >conftest.$ac_ext <<_ACEOF
32883 cat confdefs.h >>conftest.$ac_ext
32884 cat >>conftest.$ac_ext <<_ACEOF
32885 /* end confdefs.h. */
32890 float f; std::isnan(f);
32895 rm -f conftest.$ac_objext
32896 if { (ac_try="$ac_compile"
32897 case "(($ac_try" in
32898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32899 *) ac_try_echo=$ac_try;;
32901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32902 (eval "$ac_compile") 2>conftest.er1
32904 grep -v '^ *+' conftest.er1 >conftest.err
32906 cat conftest.err >&5
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); } &&
32909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32910 { (case "(($ac_try" in
32911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32912 *) ac_try_echo=$ac_try;;
32914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32915 (eval "$ac_try") 2>&5
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; } &&
32919 { ac_try='test -s conftest.$ac_objext'
32920 { (case "(($ac_try" in
32921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32922 *) ac_try_echo=$ac_try;;
32924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32925 (eval "$ac_try") 2>&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); }; }; then
32929 ac_cv_func_std_isnan_in_cmath=yes
32931 echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32934 ac_cv_func_std_isnan_in_cmath=no
32937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32939 ac_cpp='$CPP $CPPFLAGS'
32940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32945 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32946 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32948 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32950 cat >>confdefs.h <<\_ACEOF
32951 #define HAVE_STD_ISNAN_IN_CMATH 1
32957 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32958 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32959 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32963 ac_cpp='$CXXCPP $CPPFLAGS'
32964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32968 cat >conftest.$ac_ext <<_ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h. */
32983 rm -f conftest.$ac_objext
32984 if { (ac_try="$ac_compile"
32985 case "(($ac_try" in
32986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987 *) ac_try_echo=$ac_try;;
32989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32990 (eval "$ac_compile") 2>conftest.er1
32992 grep -v '^ *+' conftest.er1 >conftest.err
32994 cat conftest.err >&5
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); } &&
32997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32998 { (case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003 (eval "$ac_try") 2>&5
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; } &&
33007 { ac_try='test -s conftest.$ac_objext'
33008 { (case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_try") 2>&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; }; then
33017 ac_cv_func_isinf_in_math_h=yes
33019 echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33022 ac_cv_func_isinf_in_math_h=no
33025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33027 ac_cpp='$CPP $CPPFLAGS'
33028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33033 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33034 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33036 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33038 cat >>confdefs.h <<\_ACEOF
33039 #define HAVE_ISINF_IN_MATH_H 1
33044 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33045 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33046 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33047 echo $ECHO_N "(cached) $ECHO_C" >&6
33050 ac_cpp='$CXXCPP $CPPFLAGS'
33051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33055 cat >conftest.$ac_ext <<_ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h. */
33070 rm -f conftest.$ac_objext
33071 if { (ac_try="$ac_compile"
33072 case "(($ac_try" in
33073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074 *) ac_try_echo=$ac_try;;
33076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33077 (eval "$ac_compile") 2>conftest.er1
33079 grep -v '^ *+' conftest.er1 >conftest.err
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } &&
33084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33085 { (case "(($ac_try" in
33086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33087 *) ac_try_echo=$ac_try;;
33089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33090 (eval "$ac_try") 2>&5
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); }; } &&
33094 { ac_try='test -s conftest.$ac_objext'
33095 { (case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_try") 2>&5
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; }; then
33104 ac_cv_func_isinf_in_cmath=yes
33106 echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33109 ac_cv_func_isinf_in_cmath=no
33112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33114 ac_cpp='$CPP $CPPFLAGS'
33115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33120 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33121 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33123 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33125 cat >>confdefs.h <<\_ACEOF
33126 #define HAVE_ISINF_IN_CMATH 1
33131 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33132 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33133 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33137 ac_cpp='$CXXCPP $CPPFLAGS'
33138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33142 cat >conftest.$ac_ext <<_ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33152 float f; std::isinf(f)}
33157 rm -f conftest.$ac_objext
33158 if { (ac_try="$ac_compile"
33159 case "(($ac_try" in
33160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161 *) ac_try_echo=$ac_try;;
33163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164 (eval "$ac_compile") 2>conftest.er1
33166 grep -v '^ *+' conftest.er1 >conftest.err
33168 cat conftest.err >&5
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); } &&
33171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33172 { (case "(($ac_try" in
33173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174 *) ac_try_echo=$ac_try;;
33176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177 (eval "$ac_try") 2>&5
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); }; } &&
33181 { ac_try='test -s conftest.$ac_objext'
33182 { (case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_try") 2>&5
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); }; }; then
33191 ac_cv_func_std_isinf_in_cmath=yes
33193 echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33196 ac_cv_func_std_isinf_in_cmath=no
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33201 ac_cpp='$CPP $CPPFLAGS'
33202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33207 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33208 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33210 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33212 cat >>confdefs.h <<\_ACEOF
33213 #define HAVE_STD_ISINF_IN_CMATH 1
33218 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33219 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33220 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33221 echo $ECHO_N "(cached) $ECHO_C" >&6
33224 ac_cpp='$CXXCPP $CPPFLAGS'
33225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33229 cat >conftest.$ac_ext <<_ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h. */
33235 #include <ieeefp.h>
33239 float f; finite(f);
33244 rm -f conftest.$ac_objext
33245 if { (ac_try="$ac_compile"
33246 case "(($ac_try" in
33247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33248 *) ac_try_echo=$ac_try;;
33250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33251 (eval "$ac_compile") 2>conftest.er1
33253 grep -v '^ *+' conftest.er1 >conftest.err
33255 cat conftest.err >&5
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); } &&
33258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33259 { (case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_try") 2>&5
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; } &&
33268 { ac_try='test -s conftest.$ac_objext'
33269 { (case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274 (eval "$ac_try") 2>&5
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); }; }; then
33278 ac_cv_func_finite_in_ieeefp_h=yes
33280 echo "$as_me: failed program was:" >&5
33281 sed 's/^/| /' conftest.$ac_ext >&5
33283 ac_cv_func_finite_in_ieeefp_h=no
33286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33288 ac_cpp='$CPP $CPPFLAGS'
33289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33294 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33295 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33297 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33299 cat >>confdefs.h <<\_ACEOF
33300 #define HAVE_FINITE_IN_IEEEFP_H 1
33307 if test "$llvm_cv_platform_type" = "Unix" ; then
33310 for ac_header in stdlib.h unistd.h
33312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33317 echo $ECHO_N "(cached) $ECHO_C" >&6
33319 ac_res=`eval echo '${'$as_ac_Header'}'`
33320 { echo "$as_me:$LINENO: result: $ac_res" >&5
33321 echo "${ECHO_T}$ac_res" >&6; }
33323 # Is the header compilable?
33324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33326 cat >conftest.$ac_ext <<_ACEOF
33329 cat confdefs.h >>conftest.$ac_ext
33330 cat >>conftest.$ac_ext <<_ACEOF
33331 /* end confdefs.h. */
33332 $ac_includes_default
33333 #include <$ac_header>
33335 rm -f conftest.$ac_objext
33336 if { (ac_try="$ac_compile"
33337 case "(($ac_try" in
33338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33339 *) ac_try_echo=$ac_try;;
33341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33342 (eval "$ac_compile") 2>conftest.er1
33344 grep -v '^ *+' conftest.er1 >conftest.err
33346 cat conftest.err >&5
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); } &&
33349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33350 { (case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_try") 2>&5
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; } &&
33359 { ac_try='test -s conftest.$ac_objext'
33360 { (case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_try") 2>&5
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; }; then
33369 ac_header_compiler=yes
33371 echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33374 ac_header_compiler=no
33377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33379 echo "${ECHO_T}$ac_header_compiler" >&6; }
33381 # Is the header present?
33382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33384 cat >conftest.$ac_ext <<_ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h. */
33390 #include <$ac_header>
33392 if { (ac_try="$ac_cpp conftest.$ac_ext"
33393 case "(($ac_try" in
33394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33395 *) ac_try_echo=$ac_try;;
33397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33400 grep -v '^ *+' conftest.er1 >conftest.err
33402 cat conftest.err >&5
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); } >/dev/null; then
33405 if test -s conftest.err; then
33406 ac_cpp_err=$ac_c_preproc_warn_flag
33407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33414 if test -z "$ac_cpp_err"; then
33415 ac_header_preproc=yes
33417 echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33420 ac_header_preproc=no
33423 rm -f conftest.err conftest.$ac_ext
33424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33425 echo "${ECHO_T}$ac_header_preproc" >&6; }
33427 # So? What about this header?
33428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33434 ac_header_preproc=yes
33437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33450 ## ----------------------------------- ##
33451 ## Report this to llvmbugs@cs.uiuc.edu ##
33452 ## ----------------------------------- ##
33454 ) | sed "s/^/$as_me: WARNING: /" >&2
33457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33460 echo $ECHO_N "(cached) $ECHO_C" >&6
33462 eval "$as_ac_Header=\$ac_header_preproc"
33464 ac_res=`eval echo '${'$as_ac_Header'}'`
33465 { echo "$as_me:$LINENO: result: $ac_res" >&5
33466 echo "${ECHO_T}$ac_res" >&6; }
33469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33470 cat >>confdefs.h <<_ACEOF
33471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33479 for ac_func in getpagesize
33481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33487 cat >conftest.$ac_ext <<_ACEOF
33490 cat confdefs.h >>conftest.$ac_ext
33491 cat >>conftest.$ac_ext <<_ACEOF
33492 /* end confdefs.h. */
33493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33495 #define $ac_func innocuous_$ac_func
33497 /* System header to define __stub macros and hopefully few prototypes,
33498 which can conflict with char $ac_func (); below.
33499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33500 <limits.h> exists even on freestanding compilers. */
33503 # include <limits.h>
33505 # include <assert.h>
33510 /* Override any GCC internal prototype to avoid an error.
33511 Use char because int might match the return type of a GCC
33512 builtin and then its argument prototype would still apply. */
33517 /* The GNU C library defines this for functions which it implements
33518 to always fail with ENOSYS. Some functions are actually named
33519 something starting with __ and the normal name is an alias. */
33520 #if defined __stub_$ac_func || defined __stub___$ac_func
33527 return $ac_func ();
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (ac_try="$ac_link"
33534 case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_link") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest$ac_exeext'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
33566 eval "$as_ac_var=yes"
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33571 eval "$as_ac_var=no"
33574 rm -f core conftest.err conftest.$ac_objext \
33575 conftest$ac_exeext conftest.$ac_ext
33577 ac_res=`eval echo '${'$as_ac_var'}'`
33578 { echo "$as_me:$LINENO: result: $ac_res" >&5
33579 echo "${ECHO_T}$ac_res" >&6; }
33580 if test `eval echo '${'$as_ac_var'}'` = yes; then
33581 cat >>confdefs.h <<_ACEOF
33582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33588 { echo "$as_me:$LINENO: checking for working mmap" >&5
33589 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33590 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33591 echo $ECHO_N "(cached) $ECHO_C" >&6
33593 if test "$cross_compiling" = yes; then
33594 ac_cv_func_mmap_fixed_mapped=no
33596 cat >conftest.$ac_ext <<_ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h. */
33602 $ac_includes_default
33603 /* malloc might have been renamed as rpl_malloc. */
33606 /* Thanks to Mike Haertel and Jim Avera for this test.
33607 Here is a matrix of mmap possibilities:
33608 mmap private not fixed
33609 mmap private fixed at somewhere currently unmapped
33610 mmap private fixed at somewhere already mapped
33611 mmap shared not fixed
33612 mmap shared fixed at somewhere currently unmapped
33613 mmap shared fixed at somewhere already mapped
33614 For private mappings, we should verify that changes cannot be read()
33615 back from the file, nor mmap's back from the file at a different
33616 address. (There have been systems where private was not correctly
33617 implemented like the infamous i386 svr4.0, and systems where the
33618 VM page cache was not coherent with the file system buffer cache
33619 like early versions of FreeBSD and possibly contemporary NetBSD.)
33620 For shared mappings, we should conversely verify that changes get
33621 propagated back to all the places they're supposed to be.
33623 Grep wants private fixed already mapped.
33624 The main things grep needs to know about mmap are:
33625 * does it exist and is it safe to write into the mmap'd area
33626 * how to use it (BSD variants) */
33629 #include <sys/mman.h>
33631 #if !STDC_HEADERS && !HAVE_STDLIB_H
33635 /* This mess was copied from the GNU getpagesize.h. */
33636 #if !HAVE_GETPAGESIZE
33637 /* Assume that all systems that can run configure have sys/param.h. */
33638 # if !HAVE_SYS_PARAM_H
33639 # define HAVE_SYS_PARAM_H 1
33642 # ifdef _SC_PAGESIZE
33643 # define getpagesize() sysconf(_SC_PAGESIZE)
33644 # else /* no _SC_PAGESIZE */
33645 # if HAVE_SYS_PARAM_H
33646 # include <sys/param.h>
33647 # ifdef EXEC_PAGESIZE
33648 # define getpagesize() EXEC_PAGESIZE
33649 # else /* no EXEC_PAGESIZE */
33651 # define getpagesize() NBPG * CLSIZE
33654 # endif /* no CLSIZE */
33655 # else /* no NBPG */
33657 # define getpagesize() NBPC
33658 # else /* no NBPC */
33660 # define getpagesize() PAGESIZE
33661 # endif /* PAGESIZE */
33662 # endif /* no NBPC */
33663 # endif /* no NBPG */
33664 # endif /* no EXEC_PAGESIZE */
33665 # else /* no HAVE_SYS_PARAM_H */
33666 # define getpagesize() 8192 /* punt totally */
33667 # endif /* no HAVE_SYS_PARAM_H */
33668 # endif /* no _SC_PAGESIZE */
33670 #endif /* no HAVE_GETPAGESIZE */
33675 char *data, *data2, *data3;
33679 pagesize = getpagesize ();
33681 /* First, make a file with some known garbage in it. */
33682 data = (char *) malloc (pagesize);
33685 for (i = 0; i < pagesize; ++i)
33686 *(data + i) = rand ();
33688 fd = creat ("conftest.mmap", 0600);
33691 if (write (fd, data, pagesize) != pagesize)
33695 /* Next, try to mmap the file at a fixed address which already has
33696 something else allocated at it. If we can, also make sure that
33697 we see the same garbage. */
33698 fd = open ("conftest.mmap", O_RDWR);
33701 data2 = (char *) malloc (2 * pagesize);
33704 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33705 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33706 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33708 for (i = 0; i < pagesize; ++i)
33709 if (*(data + i) != *(data2 + i))
33712 /* Finally, make sure that changes to the mapped area do not
33713 percolate back to the file as seen by read(). (This is a bug on
33714 some variants of i386 svr4.0.) */
33715 for (i = 0; i < pagesize; ++i)
33716 *(data2 + i) = *(data2 + i) + 1;
33717 data3 = (char *) malloc (pagesize);
33720 if (read (fd, data3, pagesize) != pagesize)
33722 for (i = 0; i < pagesize; ++i)
33723 if (*(data + i) != *(data3 + i))
33729 rm -f conftest$ac_exeext
33730 if { (ac_try="$ac_link"
33731 case "(($ac_try" in
33732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733 *) ac_try_echo=$ac_try;;
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736 (eval "$ac_link") 2>&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33740 { (case "(($ac_try" in
33741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742 *) ac_try_echo=$ac_try;;
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_try") 2>&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
33749 ac_cv_func_mmap_fixed_mapped=yes
33751 echo "$as_me: program exited with status $ac_status" >&5
33752 echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.$ac_ext >&5
33755 ( exit $ac_status )
33756 ac_cv_func_mmap_fixed_mapped=no
33758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33763 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33764 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33765 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33767 cat >>confdefs.h <<\_ACEOF
33768 #define HAVE_MMAP 1
33772 rm -f conftest.mmap
33774 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33775 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33776 if test "${ac_cv_func_mmap_file+set}" = set; then
33777 echo $ECHO_N "(cached) $ECHO_C" >&6
33780 ac_cpp='$CPP $CPPFLAGS'
33781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33785 if test "$cross_compiling" = yes; then
33786 ac_cv_func_mmap_file=no
33788 cat >conftest.$ac_ext <<_ACEOF
33792 cat confdefs.h >>conftest.$ac_ext
33793 cat >>conftest.$ac_ext <<_ACEOF
33794 /* end confdefs.h. */
33796 #include <sys/types.h>
33797 #include <sys/mman.h>
33805 fd = creat ("foo",0777);
33806 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33808 return (fd != (int) MAP_FAILED);
33813 rm -f conftest$ac_exeext
33814 if { (ac_try="$ac_link"
33815 case "(($ac_try" in
33816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817 *) ac_try_echo=$ac_try;;
33819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820 (eval "$ac_link") 2>&5
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33824 { (case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_try") 2>&5
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; }; then
33833 ac_cv_func_mmap_file=yes
33835 echo "$as_me: program exited with status $ac_status" >&5
33836 echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33839 ( exit $ac_status )
33840 ac_cv_func_mmap_file=no
33842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33847 ac_cpp='$CPP $CPPFLAGS'
33848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33854 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33855 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33856 if test "$ac_cv_func_mmap_file" = yes; then
33858 cat >>confdefs.h <<\_ACEOF
33859 #define HAVE_MMAP_FILE
33866 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33867 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33868 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33869 echo $ECHO_N "(cached) $ECHO_C" >&6
33871 if test "$llvm_cv_os_type" = "Interix" ; then
33872 ac_cv_need_dev_zero_for_mmap=yes
33874 ac_cv_need_dev_zero_for_mmap=no
33878 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33879 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33880 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33882 cat >>confdefs.h <<\_ACEOF
33883 #define NEED_DEV_ZERO_FOR_MMAP 1
33888 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33890 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33891 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33893 if test "$ac_cv_func_mmap_file" = "no"
33895 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33896 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33902 for ac_func in __dso_handle
33904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33910 cat >conftest.$ac_ext <<_ACEOF
33913 cat confdefs.h >>conftest.$ac_ext
33914 cat >>conftest.$ac_ext <<_ACEOF
33915 /* end confdefs.h. */
33916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33918 #define $ac_func innocuous_$ac_func
33920 /* System header to define __stub macros and hopefully few prototypes,
33921 which can conflict with char $ac_func (); below.
33922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33923 <limits.h> exists even on freestanding compilers. */
33926 # include <limits.h>
33928 # include <assert.h>
33933 /* Override any GCC internal prototype to avoid an error.
33934 Use char because int might match the return type of a GCC
33935 builtin and then its argument prototype would still apply. */
33940 /* The GNU C library defines this for functions which it implements
33941 to always fail with ENOSYS. Some functions are actually named
33942 something starting with __ and the normal name is an alias. */
33943 #if defined __stub_$ac_func || defined __stub___$ac_func
33950 return $ac_func ();
33955 rm -f conftest.$ac_objext conftest$ac_exeext
33956 if { (ac_try="$ac_link"
33957 case "(($ac_try" in
33958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33959 *) ac_try_echo=$ac_try;;
33961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33962 (eval "$ac_link") 2>conftest.er1
33964 grep -v '^ *+' conftest.er1 >conftest.err
33966 cat conftest.err >&5
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968 (exit $ac_status); } &&
33969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33970 { (case "(($ac_try" in
33971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33972 *) ac_try_echo=$ac_try;;
33974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33975 (eval "$ac_try") 2>&5
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); }; } &&
33979 { ac_try='test -s conftest$ac_exeext'
33980 { (case "(($ac_try" in
33981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33982 *) ac_try_echo=$ac_try;;
33984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33985 (eval "$ac_try") 2>&5
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; }; then
33989 eval "$as_ac_var=yes"
33991 echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33994 eval "$as_ac_var=no"
33997 rm -f core conftest.err conftest.$ac_objext \
33998 conftest$ac_exeext conftest.$ac_ext
34000 ac_res=`eval echo '${'$as_ac_var'}'`
34001 { echo "$as_me:$LINENO: result: $ac_res" >&5
34002 echo "${ECHO_T}$ac_res" >&6; }
34003 if test `eval echo '${'$as_ac_var'}'` = yes; then
34004 cat >>confdefs.h <<_ACEOF
34005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34012 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34013 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34014 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34015 echo $ECHO_N "(cached) $ECHO_C" >&6
34017 llvm_cv_llvmgcc_sanity="no"
34018 if test -x "$LLVMGCC" ; then
34019 cp /dev/null conftest.c
34020 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34021 grep 'target datalayout =' > /dev/null 2>&1
34022 if test $? -eq 0 ; then
34023 llvm_cv_llvmgcc_sanity="yes"
34028 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34029 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34031 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34032 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34033 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34034 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34035 LLVMCC1=$llvmcc1path
34037 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34038 LLVMCC1PLUS=$llvmcc1pluspath
34040 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34041 LLVMGCCDIR=$llvmgccdir
34043 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34044 LLVMGCCLIBEXEC=$llvmgcclibexec
34046 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34047 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34048 LLVMGCC_VERSION=$llvmgccversion
34050 LLVMGCC_MAJVERS=$llvmgccmajvers
34052 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34053 LLVMGCC_LANGS=$llvmgcclangs
34055 { echo "$as_me:$LINENO: result: ok" >&5
34056 echo "${ECHO_T}ok" >&6; }
34059 SHLIBEXT=$libltdl_cv_shlibext
34062 # Translate the various configuration directories and other basic
34063 # information into substitutions that will end up in Makefile.config.in
34064 # that these configured values can be used by the makefiles
34065 if test "${prefix}" = "NONE" ; then
34066 prefix="/usr/local"
34068 eval LLVM_PREFIX="${prefix}";
34069 eval LLVM_BINDIR="${prefix}/bin";
34070 eval LLVM_LIBDIR="${prefix}/lib";
34071 eval LLVM_DATADIR="${prefix}/share/llvm";
34072 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34073 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34074 eval LLVM_INCLUDEDIR="${prefix}/include";
34075 eval LLVM_INFODIR="${prefix}/info";
34076 eval LLVM_MANDIR="${prefix}/man";
34077 LLVM_CONFIGTIME=`date`
34089 # Place the various directores into the config.h file as #defines so that we
34090 # can know about the installation paths within LLVM.
34092 cat >>confdefs.h <<_ACEOF
34093 #define LLVM_PREFIX "$LLVM_PREFIX"
34097 cat >>confdefs.h <<_ACEOF
34098 #define LLVM_BINDIR "$LLVM_BINDIR"
34102 cat >>confdefs.h <<_ACEOF
34103 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34107 cat >>confdefs.h <<_ACEOF
34108 #define LLVM_DATADIR "$LLVM_DATADIR"
34112 cat >>confdefs.h <<_ACEOF
34113 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34117 cat >>confdefs.h <<_ACEOF
34118 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34122 cat >>confdefs.h <<_ACEOF
34123 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34127 cat >>confdefs.h <<_ACEOF
34128 #define LLVM_INFODIR "$LLVM_INFODIR"
34132 cat >>confdefs.h <<_ACEOF
34133 #define LLVM_MANDIR "$LLVM_MANDIR"
34137 cat >>confdefs.h <<_ACEOF
34138 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34142 cat >>confdefs.h <<_ACEOF
34143 #define LLVM_HOSTTRIPLE "$host"
34147 # Determine which bindings to build.
34148 if test "$BINDINGS_TO_BUILD" = auto ; then
34149 BINDINGS_TO_BUILD=""
34150 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34151 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34154 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34157 # This isn't really configurey, but it avoids having to repeat the list in
34162 # Do any work necessary to ensure that bindings have what they need.
34163 binding_prereqs_failed=0
34164 for a_binding in $BINDINGS_TO_BUILD ; do
34165 case "$a_binding" in
34167 if test "x$OCAMLC" = x ; then
34168 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34169 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34170 binding_prereqs_failed=1
34172 if test "x$OCAMLDEP" = x ; then
34173 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34174 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34175 binding_prereqs_failed=1
34177 if test "x$OCAMLOPT" = x ; then
34178 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34179 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34181 if test "x$with_ocaml_libdir" != xauto ; then
34182 OCAML_LIBDIR=$with_ocaml_libdir
34185 ocaml_stdlib="`"$OCAMLC" -where`"
34186 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34188 # ocaml stdlib is beneath our prefix; use stdlib
34189 OCAML_LIBDIR=$ocaml_stdlib
34192 # ocaml stdlib is outside our prefix; use libdir/ocaml
34193 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34200 if test "$binding_prereqs_failed" = 1 ; then
34201 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34202 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34203 { (exit 1); exit 1; }; }
34208 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34210 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34212 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34214 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34216 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34219 ac_config_files="$ac_config_files Makefile.config"
34222 ac_config_files="$ac_config_files llvm.spec"
34225 ac_config_files="$ac_config_files docs/doxygen.cfg"
34228 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34231 ac_config_commands="$ac_config_commands setup"
34233 ac_config_commands="$ac_config_commands Makefile"
34236 ac_config_commands="$ac_config_commands Makefile.common"
34239 ac_config_commands="$ac_config_commands examples/Makefile"
34242 ac_config_commands="$ac_config_commands lib/Makefile"
34245 ac_config_commands="$ac_config_commands runtime/Makefile"
34248 ac_config_commands="$ac_config_commands test/Makefile"
34251 ac_config_commands="$ac_config_commands test/Makefile.tests"
34254 ac_config_commands="$ac_config_commands tools/Makefile"
34257 ac_config_commands="$ac_config_commands utils/Makefile"
34260 ac_config_commands="$ac_config_commands projects/Makefile"
34263 ac_config_commands="$ac_config_commands bindings/Makefile"
34266 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34270 cat >confcache <<\_ACEOF
34271 # This file is a shell script that caches the results of configure
34272 # tests run on this system so they can be shared between configure
34273 # scripts and configure runs, see configure's option --config-cache.
34274 # It is not useful on other systems. If it contains results you don't
34275 # want to keep, you may remove or edit it.
34277 # config.status only pays attention to the cache file if you give it
34278 # the --recheck option to rerun configure.
34280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34282 # following values.
34286 # The following way of writing the cache mishandles newlines in values,
34287 # but we know of no workaround that is simple, portable, and efficient.
34288 # So, we kill variables containing newlines.
34289 # Ultrix sh set writes to stderr and can't be redirected directly,
34290 # and sets the high bit in the cache file unless we assign to the vars.
34292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34293 eval ac_val=\$$ac_var
34297 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34298 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34301 _ | IFS | as_nl) ;; #(
34302 *) $as_unset $ac_var ;;
34308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34309 *${as_nl}ac_space=\ *)
34310 # `set' does not quote correctly, so add quotes (double-quote
34311 # substitution turns \\\\ into \\, and sed turns \\ into \).
34314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34317 # `set' quotes correctly as required by POSIX, so do not add quotes.
34318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34332 if test -w "$cache_file"; then
34333 test "x$cache_file" != "x/dev/null" &&
34334 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34335 echo "$as_me: updating cache $cache_file" >&6;}
34336 cat confcache >$cache_file
34338 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34339 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34345 # Let make expand exec_prefix.
34346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34348 DEFS=-DHAVE_CONFIG_H
34352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34353 # 1. Remove the extension, and $U if already installed.
34354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34355 ac_i=`echo "$ac_i" | sed "$ac_script"`
34356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34357 # will be set to the directory where LIBOBJS objects are built.
34358 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34359 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34361 LIBOBJS=$ac_libobjs
34363 LTLIBOBJS=$ac_ltlibobjs
34366 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34367 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34368 Usually this means the macro was only invoked conditionally." >&5
34369 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34370 Usually this means the macro was only invoked conditionally." >&2;}
34371 { (exit 1); exit 1; }; }
34373 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34374 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34375 Usually this means the macro was only invoked conditionally." >&5
34376 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34377 Usually this means the macro was only invoked conditionally." >&2;}
34378 { (exit 1); exit 1; }; }
34381 : ${CONFIG_STATUS=./config.status}
34382 ac_clean_files_save=$ac_clean_files
34383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34384 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34385 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34386 cat >$CONFIG_STATUS <<_ACEOF
34388 # Generated by $as_me.
34389 # Run this file to recreate the current configuration.
34390 # Compiler output produced by configure, useful for debugging
34391 # configure, is in config.log if it exists.
34394 ac_cs_recheck=false
34396 SHELL=\${CONFIG_SHELL-$SHELL}
34399 cat >>$CONFIG_STATUS <<\_ACEOF
34400 ## --------------------- ##
34401 ## M4sh Initialization. ##
34402 ## --------------------- ##
34404 # Be Bourne compatible
34405 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34408 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34409 # is contrary to our usage. Disable this feature.
34410 alias -g '${1+"$@"}'='"$@"'
34411 setopt NO_GLOB_SUBST
34413 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34415 BIN_SH=xpg4; export BIN_SH # for Tru64
34416 DUALCASE=1; export DUALCASE # for MKS sh
34420 # Avoid depending upon Character Ranges.
34421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34424 as_cr_digits='0123456789'
34425 as_cr_alnum=$as_cr_Letters$as_cr_digits
34427 # The user is always right.
34428 if test "${PATH_SEPARATOR+set}" != set; then
34429 echo "#! /bin/sh" >conf$$.sh
34430 echo "exit 0" >>conf$$.sh
34432 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34440 # Support unset when possible.
34441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34449 # We need space, tab and new line, in precisely that order. Quoting is
34450 # there to prevent editors from complaining about space-tab.
34451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34452 # splitting by setting IFS to empty value.)
34457 # Find who we are. Look in the path if we contain no directory separator.
34459 *[\\/]* ) as_myself=$0 ;;
34460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34461 for as_dir in $PATH
34464 test -z "$as_dir" && as_dir=.
34465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34471 # We did not find ourselves, most probably we were run as `sh COMMAND'
34472 # in which case we are not to be found in the path.
34473 if test "x$as_myself" = x; then
34476 if test ! -f "$as_myself"; then
34477 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34478 { (exit 1); exit 1; }
34481 # Work around bugs in pre-3.0 UWIN ksh.
34482 for as_var in ENV MAIL MAILPATH
34483 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34491 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34492 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34493 LC_TELEPHONE LC_TIME
34495 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34496 eval $as_var=C; export $as_var
34498 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34502 # Required to use basename.
34503 if expr a : '\(a\)' >/dev/null 2>&1 &&
34504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34510 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34511 as_basename=basename
34517 # Name of the executable.
34518 as_me=`$as_basename -- "$0" ||
34519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34520 X"$0" : 'X\(//\)$' \| \
34521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34523 sed '/^.*\/\([^/][^/]*\)\/*$/{
34542 as_lineno_1=$LINENO
34543 as_lineno_2=$LINENO
34544 test "x$as_lineno_1" != "x$as_lineno_2" &&
34545 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34547 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34548 # uniformly replaced by the line number. The first 'sed' inserts a
34549 # line-number line after each line using $LINENO; the second 'sed'
34550 # does the real work. The second script uses 'N' to pair each
34551 # line-number line with the line containing $LINENO, and appends
34552 # trailing '-' during substitution so that $LINENO is not a special
34553 # case at line end.
34554 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34555 # scripts with optimization help from Paolo Bonzini. Blame Lee
34556 # E. McMahon (1931-1989) for sed's syntax. :-)
34568 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34571 ' >$as_me.lineno &&
34572 chmod +x "$as_me.lineno" ||
34573 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34574 { (exit 1); exit 1; }; }
34576 # Don't try to exec as it changes $[0], causing all sort of problems
34577 # (the dirname of $[0] is not the place where we might find the
34578 # original and so on. Autoconf is especially sensitive to this).
34579 . "./$as_me.lineno"
34580 # Exit status is that of the last command.
34585 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34591 ECHO_C= ECHO_N= ECHO_T=
34592 case `echo -n x` in
34594 case `echo 'x\c'` in
34595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34602 if expr a : '\(a\)' >/dev/null 2>&1 &&
34603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34609 rm -f conf$$ conf$$.exe conf$$.file
34610 if test -d conf$$.dir; then
34611 rm -f conf$$.dir/conf$$.file
34617 if ln -s conf$$.file conf$$ 2>/dev/null; then
34619 # ... but there are two gotchas:
34620 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34621 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34622 # In both cases, we have to default to `cp -p'.
34623 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34625 elif ln conf$$.file conf$$ 2>/dev/null; then
34630 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34631 rmdir conf$$.dir 2>/dev/null
34633 if mkdir -p . 2>/dev/null; then
34636 test -d ./-p && rmdir ./-p
34640 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34641 # systems may use methods other than mode bits to determine executability.
34642 cat >conf$$.file <<_ASEOF
34646 chmod +x conf$$.file
34647 if test -x conf$$.file >/dev/null 2>&1; then
34648 as_executable_p="test -x"
34654 # Sed expression to map a string onto a valid CPP name.
34655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34657 # Sed expression to map a string onto a valid variable name.
34658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34663 # Save the log message, to keep $[0] and so on meaningful, and to
34664 # report actual input values of CONFIG_FILES etc. instead of their
34665 # values after options handling.
34667 This file was extended by llvm $as_me 2.3svn, which was
34668 generated by GNU Autoconf 2.60. Invocation command line was
34670 CONFIG_FILES = $CONFIG_FILES
34671 CONFIG_HEADERS = $CONFIG_HEADERS
34672 CONFIG_LINKS = $CONFIG_LINKS
34673 CONFIG_COMMANDS = $CONFIG_COMMANDS
34676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34681 cat >>$CONFIG_STATUS <<_ACEOF
34682 # Files that config.status was made for.
34683 config_files="$ac_config_files"
34684 config_headers="$ac_config_headers"
34685 config_commands="$ac_config_commands"
34689 cat >>$CONFIG_STATUS <<\_ACEOF
34691 \`$as_me' instantiates files from templates according to the
34692 current configuration.
34694 Usage: $0 [OPTIONS] [FILE]...
34696 -h, --help print this help, then exit
34697 -V, --version print version number, then exit
34698 -q, --quiet do not print progress messages
34699 -d, --debug don't remove temporary files
34700 --recheck update $as_me by reconfiguring in the same conditions
34701 --file=FILE[:TEMPLATE]
34702 instantiate the configuration file FILE
34703 --header=FILE[:TEMPLATE]
34704 instantiate the configuration header FILE
34706 Configuration files:
34709 Configuration headers:
34712 Configuration commands:
34715 Report bugs to <bug-autoconf@gnu.org>."
34718 cat >>$CONFIG_STATUS <<_ACEOF
34720 llvm config.status 2.3svn
34721 configured by $0, generated by GNU Autoconf 2.60,
34722 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34724 Copyright (C) 2006 Free Software Foundation, Inc.
34725 This config.status script is free software; the Free Software Foundation
34726 gives unlimited permission to copy, distribute and modify it."
34733 cat >>$CONFIG_STATUS <<\_ACEOF
34734 # If no file are specified by the user, then we need to provide default
34735 # value. By we need to know if files were specified by the user.
34741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34753 # Handling of the options.
34754 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34756 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34757 echo "$ac_cs_version"; exit ;;
34758 --debug | --debu | --deb | --de | --d | -d )
34760 --file | --fil | --fi | --f )
34762 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34763 ac_need_defaults=false;;
34764 --header | --heade | --head | --hea )
34766 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34767 ac_need_defaults=false;;
34769 # Conflict between --help and --header
34770 { echo "$as_me: error: ambiguous option: $1
34771 Try \`$0 --help' for more information." >&2
34772 { (exit 1); exit 1; }; };;
34773 --help | --hel | -h )
34774 echo "$ac_cs_usage"; exit ;;
34775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34776 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34779 # This is an error.
34780 -*) { echo "$as_me: error: unrecognized option: $1
34781 Try \`$0 --help' for more information." >&2
34782 { (exit 1); exit 1; }; } ;;
34784 *) ac_config_targets="$ac_config_targets $1"
34785 ac_need_defaults=false ;;
34791 ac_configure_extra_args=
34793 if $ac_cs_silent; then
34795 ac_configure_extra_args="$ac_configure_extra_args --silent"
34799 cat >>$CONFIG_STATUS <<_ACEOF
34800 if \$ac_cs_recheck; then
34801 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34802 CONFIG_SHELL=$SHELL
34803 export CONFIG_SHELL
34804 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34808 cat >>$CONFIG_STATUS <<\_ACEOF
34812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34813 ## Running $as_me. ##
34819 cat >>$CONFIG_STATUS <<_ACEOF
34823 llvm_src="${srcdir}"
34827 cat >>$CONFIG_STATUS <<\_ACEOF
34829 # Handling of arguments.
34830 for ac_config_target in $ac_config_targets
34832 case $ac_config_target in
34833 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34834 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34835 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34836 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34837 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34838 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34839 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34840 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34841 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34842 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34843 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34844 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34845 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34846 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34847 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34848 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34849 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34850 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34851 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34852 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34853 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34854 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34857 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34858 { (exit 1); exit 1; }; };;
34863 # If the user did not use the arguments to specify the items to instantiate,
34864 # then the envvar interface is used. Set only those that are not.
34865 # We use the long form for the default assignment because of an extremely
34866 # bizarre bug on SunOS 4.1.3.
34867 if $ac_need_defaults; then
34868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34873 # Have a temporary directory for convenience. Make it in the build tree
34874 # simply because there is no reason against having it here, and in addition,
34875 # creating and moving files from /tmp can sometimes cause problems.
34876 # Hook for its removal unless debugging.
34877 # Note that there is a small window in which the directory will not be cleaned:
34878 # after its creation but before its name has been assigned to `$tmp'.
34882 trap 'exit_status=$?
34883 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34885 trap '{ (exit 1); exit 1; }' 1 2 13 15
34887 # Create a (secure) tmp directory for tmp files.
34890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34891 test -n "$tmp" && test -d "$tmp"
34894 tmp=./conf$$-$RANDOM
34895 (umask 077 && mkdir "$tmp")
34898 echo "$me: cannot create a temporary directory in ." >&2
34899 { (exit 1); exit 1; }
34903 # Set up the sed scripts for CONFIG_FILES section.
34906 # No need to generate the scripts if there are no CONFIG_FILES.
34907 # This happens for instance when ./config.status config.h
34908 if test -n "$CONFIG_FILES"; then
34915 for ac_last_try in false false false false false :; do
34916 cat >conf$$subs.sed <<_ACEOF
34917 SHELL!$SHELL$ac_delim
34918 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34919 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34920 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34921 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34922 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34923 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34924 exec_prefix!$exec_prefix$ac_delim
34925 prefix!$prefix$ac_delim
34926 program_transform_name!$program_transform_name$ac_delim
34927 bindir!$bindir$ac_delim
34928 sbindir!$sbindir$ac_delim
34929 libexecdir!$libexecdir$ac_delim
34930 datarootdir!$datarootdir$ac_delim
34931 datadir!$datadir$ac_delim
34932 sysconfdir!$sysconfdir$ac_delim
34933 sharedstatedir!$sharedstatedir$ac_delim
34934 localstatedir!$localstatedir$ac_delim
34935 includedir!$includedir$ac_delim
34936 oldincludedir!$oldincludedir$ac_delim
34937 docdir!$docdir$ac_delim
34938 infodir!$infodir$ac_delim
34939 htmldir!$htmldir$ac_delim
34940 dvidir!$dvidir$ac_delim
34941 pdfdir!$pdfdir$ac_delim
34942 psdir!$psdir$ac_delim
34943 libdir!$libdir$ac_delim
34944 localedir!$localedir$ac_delim
34945 mandir!$mandir$ac_delim
34946 DEFS!$DEFS$ac_delim
34947 ECHO_C!$ECHO_C$ac_delim
34948 ECHO_N!$ECHO_N$ac_delim
34949 ECHO_T!$ECHO_T$ac_delim
34950 LIBS!$LIBS$ac_delim
34951 build_alias!$build_alias$ac_delim
34952 host_alias!$host_alias$ac_delim
34953 target_alias!$target_alias$ac_delim
34954 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34955 subdirs!$subdirs$ac_delim
34956 build!$build$ac_delim
34957 build_cpu!$build_cpu$ac_delim
34958 build_vendor!$build_vendor$ac_delim
34959 build_os!$build_os$ac_delim
34960 host!$host$ac_delim
34961 host_cpu!$host_cpu$ac_delim
34962 host_vendor!$host_vendor$ac_delim
34963 host_os!$host_os$ac_delim
34964 target!$target$ac_delim
34965 target_cpu!$target_cpu$ac_delim
34966 target_vendor!$target_vendor$ac_delim
34967 target_os!$target_os$ac_delim
34969 LINKALL!$LINKALL$ac_delim
34970 NOLINKALL!$NOLINKALL$ac_delim
34971 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34972 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34973 ARCH!$ARCH$ac_delim
34974 ENDIAN!$ENDIAN$ac_delim
34976 CFLAGS!$CFLAGS$ac_delim
34977 LDFLAGS!$LDFLAGS$ac_delim
34978 CPPFLAGS!$CPPFLAGS$ac_delim
34979 ac_ct_CC!$ac_ct_CC$ac_delim
34980 EXEEXT!$EXEEXT$ac_delim
34981 OBJEXT!$OBJEXT$ac_delim
34983 GREP!$GREP$ac_delim
34984 EGREP!$EGREP$ac_delim
34985 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34986 BUILD_CC!$BUILD_CC$ac_delim
34987 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34988 CVSBUILD!$CVSBUILD$ac_delim
34989 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34990 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34991 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34992 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34993 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34995 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34996 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34997 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34998 ENABLE_PIC!$ENABLE_PIC$ac_delim
34999 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35000 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35001 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35003 CXXFLAGS!$CXXFLAGS$ac_delim
35004 ac_ct_CXX!$ac_ct_CXX$ac_delim
35006 LEXLIB!$LEXLIB$ac_delim
35007 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35008 FLEX!$FLEX$ac_delim
35009 YACC!$YACC$ac_delim
35010 YFLAGS!$YFLAGS$ac_delim
35011 BISON!$BISON$ac_delim
35013 ifGNUmake!$ifGNUmake$ac_delim
35016 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35018 elif $ac_last_try; then
35019 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35020 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35021 { (exit 1); exit 1; }; }
35023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35027 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35028 if test -n "$ac_eof"; then
35029 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35030 ac_eof=`expr $ac_eof + 1`
35033 cat >>$CONFIG_STATUS <<_ACEOF
35034 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35039 s/^/s,@/; s/!/@,|#_!!_#|/
35042 s/'"$ac_delim"'$/,g/; t
35044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35045 ' >>$CONFIG_STATUS <conf$$subs.sed
35046 rm -f conf$$subs.sed
35047 cat >>$CONFIG_STATUS <<_ACEOF
35053 for ac_last_try in false false false false false :; do
35054 cat >conf$$subs.sed <<_ACEOF
35055 LN_S!$LN_S$ac_delim
35058 DATE!$DATE$ac_delim
35059 FIND!$FIND$ac_delim
35060 MKDIR!$MKDIR$ac_delim
35062 RANLIB!$RANLIB$ac_delim
35066 BINPWD!$BINPWD$ac_delim
35067 GRAPHVIZ!$GRAPHVIZ$ac_delim
35070 DOTTY!$DOTTY$ac_delim
35071 PERL!$PERL$ac_delim
35072 HAVE_PERL!$HAVE_PERL$ac_delim
35073 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35074 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35075 INSTALL_DATA!$INSTALL_DATA$ac_delim
35076 BZIP2!$BZIP2$ac_delim
35077 DOXYGEN!$DOXYGEN$ac_delim
35078 GROFF!$GROFF$ac_delim
35079 GZIP!$GZIP$ac_delim
35080 POD2HTML!$POD2HTML$ac_delim
35081 POD2MAN!$POD2MAN$ac_delim
35082 RUNTEST!$RUNTEST$ac_delim
35083 TCLSH!$TCLSH$ac_delim
35085 OCAMLC!$OCAMLC$ac_delim
35086 OCAMLOPT!$OCAMLOPT$ac_delim
35087 OCAMLDEP!$OCAMLDEP$ac_delim
35088 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35089 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35090 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35091 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35092 LIBADD_DL!$LIBADD_DL$ac_delim
35093 ECHO!$ECHO$ac_delim
35095 STRIP!$STRIP$ac_delim
35096 CXXCPP!$CXXCPP$ac_delim
35098 FFLAGS!$FFLAGS$ac_delim
35099 ac_ct_F77!$ac_ct_F77$ac_delim
35100 LIBTOOL!$LIBTOOL$ac_delim
35101 LLVMGCC!$LLVMGCC$ac_delim
35102 LLVMGXX!$LLVMGXX$ac_delim
35103 USE_UDIS86!$USE_UDIS86$ac_delim
35104 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35105 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35106 ALLOCA!$ALLOCA$ac_delim
35107 MMAP_FILE!$MMAP_FILE$ac_delim
35108 LLVMCC1!$LLVMCC1$ac_delim
35109 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35110 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35111 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35112 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35113 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35114 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35115 SHLIBEXT!$SHLIBEXT$ac_delim
35116 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35117 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35118 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35119 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35120 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35121 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35122 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35123 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35124 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35125 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35126 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35127 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35128 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35129 LIBOBJS!$LIBOBJS$ac_delim
35130 LTLIBOBJS!$LTLIBOBJS$ac_delim
35133 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35135 elif $ac_last_try; then
35136 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35137 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35138 { (exit 1); exit 1; }; }
35140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35144 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35145 if test -n "$ac_eof"; then
35146 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35147 ac_eof=`expr $ac_eof + 1`
35150 cat >>$CONFIG_STATUS <<_ACEOF
35151 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35155 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35156 s/^/s,@/; s/!/@,|#_!!_#|/
35159 s/'"$ac_delim"'$/,g/; t
35161 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35162 ' >>$CONFIG_STATUS <conf$$subs.sed
35163 rm -f conf$$subs.sed
35164 cat >>$CONFIG_STATUS <<_ACEOF
35171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35173 # trailing colons and then remove the whole line if VPATH becomes empty
35174 # (actually we leave an empty line to preserve line numbers).
35175 if test "x$srcdir" = x.; then
35176 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35177 s/:*\$(srcdir):*/:/
35178 s/:*\${srcdir}:*/:/
35180 s/^\([^=]*=[ ]*\):*/\1/
35186 cat >>$CONFIG_STATUS <<\_ACEOF
35187 fi # test -n "$CONFIG_FILES"
35190 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35193 :[FHLC]) ac_mode=$ac_tag; continue;;
35195 case $ac_mode$ac_tag in
35197 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35198 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35199 { (exit 1); exit 1; }; };;
35200 :[FH]-) ac_tag=-:-;;
35201 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35218 -) ac_f="$tmp/stdin";;
35219 *) # Look for the file first in the build tree, then in the source tree
35220 # (if the path is not absolute). The absolute path cannot be DOS-style,
35221 # because $ac_f cannot contain `:'.
35225 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35227 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35228 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35229 { (exit 1); exit 1; }; };;
35231 ac_file_inputs="$ac_file_inputs $ac_f"
35234 # Let's still pretend it is `configure' which instantiates (i.e., don't
35235 # use $as_me), people would be surprised to read:
35236 # /* config.h. Generated by config.status. */
35237 configure_input="Generated from "`IFS=:
35238 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35239 if test x"$ac_file" != x-; then
35240 configure_input="$ac_file. $configure_input"
35241 { echo "$as_me:$LINENO: creating $ac_file" >&5
35242 echo "$as_me: creating $ac_file" >&6;}
35246 *:-:* | *:-) cat >"$tmp/stdin";;
35251 ac_dir=`$as_dirname -- "$ac_file" ||
35252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35253 X"$ac_file" : 'X\(//\)[^/]' \| \
35254 X"$ac_file" : 'X\(//\)$' \| \
35255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35261 /^X\(\/\/\)[^/].*/{
35276 -*) as_dir=./$as_dir;;
35278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35282 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35283 *) as_qdir=$as_dir;;
35285 as_dirs="'$as_qdir' $as_dirs"
35286 as_dir=`$as_dirname -- "$as_dir" ||
35287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35288 X"$as_dir" : 'X\(//\)[^/]' \| \
35289 X"$as_dir" : 'X\(//\)$' \| \
35290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35296 /^X\(\/\/\)[^/].*/{
35309 test -d "$as_dir" && break
35311 test -z "$as_dirs" || eval "mkdir $as_dirs"
35312 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35314 { (exit 1); exit 1; }; }; }
35318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35321 # A ".." for each directory in $ac_dir_suffix.
35322 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35323 case $ac_top_builddir_sub in
35324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35328 ac_abs_top_builddir=$ac_pwd
35329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35330 # for backward compatibility:
35331 ac_top_builddir=$ac_top_build_prefix
35334 .) # We are building in place.
35336 ac_top_srcdir=$ac_top_builddir_sub
35337 ac_abs_top_srcdir=$ac_pwd ;;
35338 [\\/]* | ?:[\\/]* ) # Absolute name.
35339 ac_srcdir=$srcdir$ac_dir_suffix;
35340 ac_top_srcdir=$srcdir
35341 ac_abs_top_srcdir=$srcdir ;;
35342 *) # Relative name.
35343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35344 ac_top_srcdir=$ac_top_build_prefix$srcdir
35345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35362 cat >>$CONFIG_STATUS <<\_ACEOF
35363 # If the template does not know about datarootdir, expand it.
35364 # FIXME: This hack should be removed a few years after 2.60.
35365 ac_datarootdir_hack=; ac_datarootdir_seen=
35367 case `sed -n '/datarootdir/ {
35376 ' $ac_file_inputs` in
35377 *datarootdir*) ac_datarootdir_seen=yes;;
35378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35379 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35382 cat >>$CONFIG_STATUS <<_ACEOF
35383 ac_datarootdir_hack='
35384 s&@datadir@&$datadir&g
35385 s&@docdir@&$docdir&g
35386 s&@infodir@&$infodir&g
35387 s&@localedir@&$localedir&g
35388 s&@mandir@&$mandir&g
35389 s&\\\${datarootdir}&$datarootdir&g' ;;
35393 # Neutralize VPATH when `$srcdir' = `.'.
35394 # Shell code in configure.ac might set extrasub.
35395 # FIXME: do we really want to maintain this feature?
35396 cat >>$CONFIG_STATUS <<_ACEOF
35400 cat >>$CONFIG_STATUS <<\_ACEOF
35402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35403 s&@configure_input@&$configure_input&;t t
35404 s&@top_builddir@&$ac_top_builddir_sub&;t t
35405 s&@srcdir@&$ac_srcdir&;t t
35406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35407 s&@top_srcdir@&$ac_top_srcdir&;t t
35408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35409 s&@builddir@&$ac_builddir&;t t
35410 s&@abs_builddir@&$ac_abs_builddir&;t t
35411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35412 s&@INSTALL@&$ac_INSTALL&;t t
35413 $ac_datarootdir_hack
35414 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35417 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35419 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35420 which seems to be undefined. Please make sure it is defined." >&5
35421 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35422 which seems to be undefined. Please make sure it is defined." >&2;}
35426 -) cat "$tmp/out"; rm -f "$tmp/out";;
35427 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35436 # Transform confdefs.h into a sed script `conftest.defines', that
35437 # substitutes the proper values into config.h.in to produce config.h.
35438 rm -f conftest.defines conftest.tail
35439 # First, append a space to every undef/define line, to ease matching.
35440 echo 's/$/ /' >conftest.defines
35441 # Then, protect against being on the right side of a sed subst, or in
35442 # an unquoted here document, in config.status. If some macros were
35443 # called several times there might be several #defines for the same
35444 # symbol, which is useless. But do not sort them, since the last
35445 # AC_DEFINE must be honored.
35446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35447 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35448 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35449 # PARAMS is the parameter list in the macro definition--in most cases, it's
35450 # just an empty string.
35451 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35452 ac_dB='\\)[ (].*,\\1define\\2'
35460 s/^[ ]*#[ ]*define[ ][ ]*//
35465 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35466 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35467 ' >>conftest.defines
35469 # Remove the space that was appended to ease matching.
35470 # Then replace #undef with comments. This is necessary, for
35471 # example, in the case of _POSIX_SOURCE, which is predefined and required
35472 # on some systems where configure will not decide to define it.
35473 # (The regexp can be short, since the line contains either #define or #undef.)
35475 s,^[ #]*u.*,/* & */,' >>conftest.defines
35477 # Break up conftest.defines:
35478 ac_max_sed_lines=50
35480 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35481 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35482 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35484 ac_in='$ac_file_inputs'
35485 ac_out='"$tmp/out1"'
35486 ac_nxt='"$tmp/out2"'
35490 # Write a here document:
35491 cat >>$CONFIG_STATUS <<_ACEOF
35492 # First, check the format of the line:
35493 cat >"\$tmp/defines.sed" <<\\CEOF
35494 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35495 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35499 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35501 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35502 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35503 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35504 grep . conftest.tail >/dev/null || break
35505 rm -f conftest.defines
35506 mv conftest.tail conftest.defines
35508 rm -f conftest.defines conftest.tail
35510 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35511 cat >>$CONFIG_STATUS <<\_ACEOF
35512 if test x"$ac_file" != x-; then
35513 echo "/* $configure_input */" >"$tmp/config.h"
35514 cat "$ac_result" >>"$tmp/config.h"
35515 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35516 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35517 echo "$as_me: $ac_file is unchanged" >&6;}
35520 mv "$tmp/config.h" $ac_file
35523 echo "/* $configure_input */"
35529 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35530 echo "$as_me: executing $ac_file commands" >&6;}
35535 case $ac_file$ac_mode in
35536 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35537 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35538 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35539 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35540 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35541 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35542 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35543 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35544 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35545 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35546 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35547 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35548 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35549 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35550 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35551 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35552 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35553 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35554 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35555 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35556 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35557 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35558 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35559 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35565 { (exit 0); exit 0; }
35567 chmod +x $CONFIG_STATUS
35568 ac_clean_files=$ac_clean_files_save
35571 # configure is writing to config.log, and then calls config.status.
35572 # config.status does its own redirection, appending to config.log.
35573 # Unfortunately, on DOS this fails, as config.log is still kept open
35574 # by configure, so config.status won't be able to write to it; its
35575 # output is simply discarded. So we exec the FD to /dev/null,
35576 # effectively closing config.log, so it can be properly (re)opened and
35577 # appended to by config.status. When coming back to configure, we
35578 # need to make the FD available again.
35579 if test "$no_create" != yes; then
35581 ac_config_status_args=
35582 test "$silent" = yes &&
35583 ac_config_status_args="$ac_config_status_args --quiet"
35585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35588 # would make configure fail if this is the last instruction.
35589 $ac_cs_success || { (exit 1); exit 1; }
35593 # CONFIG_SUBDIRS section.
35595 if test "$no_recursion" != yes; then
35597 # Remove --cache-file and --srcdir arguments so they do not pile up.
35598 ac_sub_configure_args=
35600 eval "set x $ac_configure_args"
35604 if test -n "$ac_prev"; then
35609 -cache-file | --cache-file | --cache-fil | --cache-fi \
35610 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35611 ac_prev=cache_file ;;
35612 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35613 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35616 --config-cache | -C)
35618 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35620 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35622 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35624 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35628 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35630 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35634 # Always prepend --prefix to ensure using the same prefix
35635 # in subdir configurations.
35636 ac_arg="--prefix=$prefix"
35638 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35640 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35643 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35645 # Do not complain, so a configure script can configure whichever
35646 # parts of a large source tree are present.
35647 test -d "$srcdir/$ac_dir" || continue
35649 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35650 echo "$as_me:$LINENO: $ac_msg" >&5
35654 -*) as_dir=./$as_dir;;
35656 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35660 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35661 *) as_qdir=$as_dir;;
35663 as_dirs="'$as_qdir' $as_dirs"
35664 as_dir=`$as_dirname -- "$as_dir" ||
35665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35666 X"$as_dir" : 'X\(//\)[^/]' \| \
35667 X"$as_dir" : 'X\(//\)$' \| \
35668 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35674 /^X\(\/\/\)[^/].*/{
35687 test -d "$as_dir" && break
35689 test -z "$as_dirs" || eval "mkdir $as_dirs"
35690 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35691 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35692 { (exit 1); exit 1; }; }; }
35696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35699 # A ".." for each directory in $ac_dir_suffix.
35700 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35701 case $ac_top_builddir_sub in
35702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35706 ac_abs_top_builddir=$ac_pwd
35707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35708 # for backward compatibility:
35709 ac_top_builddir=$ac_top_build_prefix
35712 .) # We are building in place.
35714 ac_top_srcdir=$ac_top_builddir_sub
35715 ac_abs_top_srcdir=$ac_pwd ;;
35716 [\\/]* | ?:[\\/]* ) # Absolute name.
35717 ac_srcdir=$srcdir$ac_dir_suffix;
35718 ac_top_srcdir=$srcdir
35719 ac_abs_top_srcdir=$srcdir ;;
35720 *) # Relative name.
35721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35722 ac_top_srcdir=$ac_top_build_prefix$srcdir
35723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35730 # Check for guested configure; otherwise get Cygnus style configure.
35731 if test -f "$ac_srcdir/configure.gnu"; then
35732 ac_sub_configure=$ac_srcdir/configure.gnu
35733 elif test -f "$ac_srcdir/configure"; then
35734 ac_sub_configure=$ac_srcdir/configure
35735 elif test -f "$ac_srcdir/configure.in"; then
35736 # This should be Cygnus configure.
35737 ac_sub_configure=$ac_aux_dir/configure
35739 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35740 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35744 # The recursion is here.
35745 if test -n "$ac_sub_configure"; then
35746 # Make the cache file name correct relative to the subdirectory.
35747 case $cache_file in
35748 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35749 *) # Relative name.
35750 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35753 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35754 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35755 # The eval makes quoting arguments work.
35756 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35757 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35758 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35759 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35760 { (exit 1); exit 1; }; }