2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.4svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
833 ENABLE_EXPENSIVE_CHECKS
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
934 ac_precious_vars='build_alias
950 ac_subdirs_all='projects/sample
952 projects/llvm-stacker
958 projects/llvm-poolalloc
960 projects/llvm-kernel'
962 # Initialize some variables set by options.
964 ac_init_version=false
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name=s,x,x,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1069 eval enable_$ac_feature=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1088 eval enable_$ac_feature=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1252 -site=* | --site=* | --sit=*)
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1279 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package| sed 's/-/_/g'`
1285 eval with_$ac_package=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_package=`echo $ac_package | sed 's/-/_/g'`
1294 eval with_$ac_package=no ;;
1297 # Obsolete; use --with-x.
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1314 -*) { echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1345 # Be sure to have absolute directory names.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357 { (exit 1); exit 1; }; }
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used." >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 { echo "$as_me: error: Working directory cannot be determined" >&2
1388 { (exit 1); exit 1; }; }
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 { echo "$as_me: error: pwd does not report name of working directory" >&2
1391 { (exit 1); exit 1; }; }
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$0" ||
1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$0" : 'X\(//\)[^/]' \| \
1401 X"$0" : 'X\(//\)$' \| \
1402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431 { (exit 1); exit 1; }; }
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436 { (exit 1); exit 1; }; }
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures llvm 2.4svn to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of llvm 2.4svn:";;
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-expensive-checks
1539 --enable-debug-runtime
1540 --enable-jit Enable Just In Time Compiling (default is YES)
1541 --enable-doxygen Build doxygen documentation (default is NO)
1542 --enable-threads Use threads if available (default is YES)
1543 --enable-pic Build LLVM with Position Independent Code (default
1545 --enable-targets Build specific host targets:
1546 all,host-only,{target-name} (default=all)
1547 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1549 --enable-bindings Build specific language bindings:
1550 all,auto,none,{binding-name} (default=auto)
1551 --enable-ltdl-install install libltdl
1552 --enable-shared[=PKGS] build shared libraries
1554 --enable-static[=PKGS] build static libraries
1556 --enable-fast-install[=PKGS]
1557 optimize for fast installation
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1566 --with-llvmgcc Specify location of llvm-gcc driver (default
1568 --with-llvmgxx Specify location of llvm-g++ driver (default
1570 --with-extra-options Specify addtional options to compile LLVM with
1571 --with-ocaml-libdir Specify install location for ocaml bindings (default
1573 --with-tclinclude directory where tcl headers are
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1577 --with-tags[=TAGS] include additional configurations [automatic]
1578 --with-udis86=<path> Use udis86 external x86 disassembler library
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1591 the first program found out of: `bison -y', `byacc', `yacc'.
1592 YFLAGS The list of arguments that will be passed by default to $YACC.
1593 This script will default YFLAGS to the empty string to avoid a
1594 default value of `-d' given by some make applications.
1595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to <llvmbugs@cs.uiuc.edu>.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" || continue
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1630 .) # We are building in place.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1663 llvm configure 2.4svn
1664 generated by GNU Autoconf 2.60
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1671 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1679 It was created by llvm $as_me 2.4svn, which was
1680 generated by GNU Autoconf 2.60. Invocation command line was
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1701 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 echo "PATH: $as_dir"
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_must_keep_next=false
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1751 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 -* ) ac_must_keep_next=true ;;
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log. We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1796 # The following way of writing the cache mishandles newlines in values,
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 _ | IFS | as_nl) ;; #(
1808 *) $as_unset $ac_var ;;
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1833 for ac_var in $ac_subst_vars
1835 eval ac_val=\$$ac_var
1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 echo "$ac_var='\''$ac_val'\''"
1843 if test -n "$ac_subst_files"; then
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1850 for ac_var in $ac_subst_files
1852 eval ac_val=\$$ac_var
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 echo "$ac_var='\''$ac_val'\''"
1861 if test -s confdefs.h; then
1871 test "$ac_signal" != 0 &&
1872 echo "$as_me: caught signal $ac_signal"
1873 echo "$as_me: exit $exit_status"
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1887 # Predefined preprocessor variables.
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer explicitly selected file to automatically selected ones.
1916 if test -n "$CONFIG_SITE"; then
1917 set x "$CONFIG_SITE"
1918 elif test "x$prefix" != xNONE; then
1919 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921 set x "$ac_default_prefix/share/config.site" \
1922 "$ac_default_prefix/etc/config.site"
1927 if test -r "$ac_site_file"; then
1928 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 echo "$as_me: loading cache $cache_file" >&6;}
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1947 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 echo "$as_me: creating cache $cache_file" >&6;}
1952 # Check that the precious variables saved in the cache have kept the same
1954 ac_cache_corrupted=false
1955 for ac_var in $ac_precious_vars; do
1956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957 eval ac_new_set=\$ac_env_${ac_var}_set
1958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959 eval ac_new_val=\$ac_env_${ac_var}_value
1960 case $ac_old_set,$ac_new_set in
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1971 if test "x$ac_old_val" != "x$ac_new_val"; then
1972 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1975 echo "$as_me: former value: $ac_old_val" >&2;}
1976 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1977 echo "$as_me: current value: $ac_new_val" >&2;}
1978 ac_cache_corrupted=:
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1984 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 *) ac_arg=$ac_var=$ac_new_val ;;
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 if $ac_cache_corrupted; then
1994 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2042 for ac_dir in autoconf "$srcdir"/autoconf; do
2043 if test -f "$ac_dir/install-sh"; then
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 elif test -f "$ac_dir/install.sh"; then
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 elif test -f "$ac_dir/shtool"; then
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 if test -z "$ac_aux_dir"; then
2058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2060 { (exit 1); exit 1; }; }
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073 if test ${srcdir} != "." ; then
2074 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2076 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077 { (exit 1); exit 1; }; }
2081 for i in `ls ${srcdir}/projects`
2083 if test -d ${srcdir}/projects/${i} ; then
2086 sample) subdirs="$subdirs projects/sample"
2088 privbracket) subdirs="$subdirs projects/privbracket"
2090 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2092 llvm-test) subdirs="$subdirs projects/llvm-test"
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2098 llvm-java) subdirs="$subdirs projects/llvm-java"
2100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2104 poolalloc) subdirs="$subdirs projects/poolalloc"
2106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138 { (exit 1); exit 1; }; }
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2150 ac_save_IFS=$IFS; IFS='-'
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2187 ac_save_IFS=$IFS; IFS='-'
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211 { (exit 1); exit 1; }; }
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2242 program_prefix=${target_alias}-
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
2261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2266 llvm_cv_link_all_option="-Wl,-all_load"
2267 llvm_cv_no_link_all_option="-Wl,-noall_load"
2268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="HP-UX"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293 llvm_cv_os_type="Interix"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="Linux"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,-z,allextract"
2302 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2303 llvm_cv_os_type="SunOS"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="Win32"
2309 llvm_cv_platform_type="Win32" ;;
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="MingW"
2314 llvm_cv_platform_type="Win32" ;;
2316 llvm_cv_link_all_option=""
2317 llvm_cv_no_link_all_option=""
2318 llvm_cv_os_type="Unknown"
2319 llvm_cv_platform_type="Unknown" ;;
2322 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2325 if test "$llvm_cv_os_type" = "Unknown" ; then
2326 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2328 { (exit 1); exit 1; }; }
2334 LINKALL=$llvm_cv_link_all_option
2336 NOLINKALL=$llvm_cv_no_link_all_option
2339 case $llvm_cv_platform_type in
2342 cat >>confdefs.h <<\_ACEOF
2343 #define LLVM_ON_UNIX 1
2353 cat >>confdefs.h <<\_ACEOF
2354 #define LLVM_ON_WIN32 1
2364 { echo "$as_me:$LINENO: checking target architecture" >&5
2365 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2366 if test "${llvm_cv_target_arch+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 i?86-*) llvm_cv_target_arch="x86" ;;
2371 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2372 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2373 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2374 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2375 ia64-*) llvm_cv_target_arch="IA64" ;;
2376 arm-*) llvm_cv_target_arch="ARM" ;;
2377 mips-*) llvm_cv_target_arch="Mips" ;;
2378 pic16-*) llvm_cv_target_arch="PIC16" ;;
2379 *) llvm_cv_target_arch="Unknown" ;;
2382 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2383 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2385 if test "$llvm_cv_target_arch" = "Unknown" ; then
2386 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2387 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2390 ARCH=$llvm_cv_target_arch
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 if test -n "$CC"; then
2428 { echo "$as_me:$LINENO: result: $CC" >&5
2429 echo "${ECHO_T}$CC" >&6; }
2431 { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2437 if test -z "$ac_cv_prog_CC"; then
2439 # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_ac_ct_CC="gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469 echo "${ECHO_T}$ac_ct_CC" >&6; }
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2475 if test "x$ac_ct_CC" = x; then
2478 case $cross_compiling:$ac_tool_warned in
2480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2481 whose name does not start with the host triplet. If you think this
2482 configuration is useful to you, please write to autoconf@gnu.org." >&5
2483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet. If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2486 ac_tool_warned=yes ;;
2494 if test -z "$CC"; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_CC="${ac_tool_prefix}cc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 if test -n "$CC"; then
2525 { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2528 { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2535 if test -z "$CC"; then
2536 # Extract the first word of "cc", so it can be a program name with args.
2537 set dummy cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2555 ac_prog_rejected=yes
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test $ac_prog_rejected = yes; then
2567 # We found a bogon in the path, so make sure we never use it.
2568 set dummy $ac_cv_prog_CC
2570 if test $# != 0; then
2571 # We chose a different compiler from the bogus one.
2572 # However, it has the same basename, so the bogon will be chosen
2573 # first if we set CC to just the basename; use the full file name.
2575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581 if test -n "$CC"; then
2582 { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2591 if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 for ac_prog in cl.exe
2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 if test -n "$CC"; then
2624 { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2632 test -n "$CC" && break
2635 if test -z "$CC"; then
2637 for ac_prog in cl.exe
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_ac_ct_CC="$ac_prog"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667 if test -n "$ac_ct_CC"; then
2668 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2669 echo "${ECHO_T}$ac_ct_CC" >&6; }
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2676 test -n "$ac_ct_CC" && break
2679 if test "x$ac_ct_CC" = x; then
2682 case $cross_compiling:$ac_tool_warned in
2684 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet. If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&5
2687 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet. If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2690 ac_tool_warned=yes ;;
2699 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: no acceptable C compiler found in \$PATH
2702 See \`config.log' for more details." >&2;}
2703 { (exit 1); exit 1; }; }
2705 # Provide some information about the compiler.
2706 echo "$as_me:$LINENO: checking for C compiler version" >&5
2707 ac_compiler=`set X $ac_compile; echo $2`
2708 { (ac_try="$ac_compiler --version >&5"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compiler --version >&5") 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }
2718 { (ac_try="$ac_compiler -v >&5"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler -v >&5") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (ac_try="$ac_compiler -V >&5"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -V >&5") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2739 cat >conftest.$ac_ext <<_ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2754 ac_clean_files_save=$ac_clean_files
2755 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2756 # Try to create an executable without -o first, disregard a.out.
2757 # It will help us diagnose broken compilers, and finding out an intuition
2759 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2760 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2761 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763 # List of possible output files, starting from the most likely.
2764 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2765 # only as a last resort. b.out is created by i960 compilers.
2766 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2768 # The IRIX 6 linker writes into existing files which may not be
2769 # executable, retaining their permissions. Remove them first so a
2770 # subsequent execution test works.
2772 for ac_file in $ac_files
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781 if { (ac_try="$ac_link_default"
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_link_default") 2>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; then
2791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2794 # so that the user can short-circuit this test for compilers unknown to
2796 for ac_file in $ac_files
2798 test -f "$ac_file" || continue
2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2803 # We found the default executable, but exeext='' is most
2807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2811 # We set ac_cv_exeext here because the later test for it is not
2812 # safe: cross compilers may not add the suffix if given an `-o'
2813 # argument, so we may need to know it at that point already.
2814 # Even if this section looks crufty: it has the advantage of
2821 test "$ac_cv_exeext" = no && ac_cv_exeext=
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: C compiler cannot create executables
2830 See \`config.log' for more details." >&2;}
2831 { (exit 77); exit 77; }; }
2834 ac_exeext=$ac_cv_exeext
2835 { echo "$as_me:$LINENO: result: $ac_file" >&5
2836 echo "${ECHO_T}$ac_file" >&6; }
2838 # Check that the compiler produces executables we can run. If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2843 # If not cross compiling, check that we can run a simple program.
2844 if test "$cross_compiling" != yes; then
2845 if { ac_try='./$ac_file'
2846 { (case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_try") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2857 if test "$cross_compiling" = maybe; then
2860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2861 If you meant to cross compile, use \`--host'.
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: cannot run C compiled programs.
2864 If you meant to cross compile, use \`--host'.
2865 See \`config.log' for more details." >&2;}
2866 { (exit 1); exit 1; }; }
2870 { echo "$as_me:$LINENO: result: yes" >&5
2871 echo "${ECHO_T}yes" >&6; }
2873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2874 ac_clean_files=$ac_clean_files_save
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2879 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2880 echo "${ECHO_T}$cross_compiling" >&6; }
2882 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2884 if { (ac_try="$ac_link"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_link") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
2894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2895 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2896 # work properly (i.e., refer to `conftest.exe'), while it won't with
2898 for ac_file in conftest.exe conftest conftest.*; do
2899 test -f "$ac_file" || continue
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }
2915 rm -f conftest$ac_cv_exeext
2916 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2917 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2919 rm -f conftest.$ac_ext
2920 EXEEXT=$ac_cv_exeext
2922 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2924 if test "${ac_cv_objext+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 rm -f conftest.o conftest.obj
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; then
2953 for ac_file in conftest.o conftest.obj conftest.*; do
2954 test -f "$ac_file" || continue;
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2974 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2975 echo "${ECHO_T}$ac_cv_objext" >&6; }
2976 OBJEXT=$ac_cv_objext
2978 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2979 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2980 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3047 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3048 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3049 GCC=`test $ac_compiler_gnu = yes && echo yes`
3050 ac_test_CFLAGS=${CFLAGS+set}
3051 ac_save_CFLAGS=$CFLAGS
3052 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3053 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3054 if test "${ac_cv_prog_cc_g+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 ac_save_c_werror_flag=$ac_c_werror_flag
3058 ac_c_werror_flag=yes
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 ac_c_werror_flag=$ac_save_c_werror_flag
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3202 { (case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_try") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240 if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3249 if test "$GCC" = yes; then
3255 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_cc_c89+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 ac_cv_prog_cc_c89=no
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3270 #include <sys/types.h>
3271 #include <sys/stat.h>
3272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273 struct buf { int x; };
3274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275 static char *e (p, i)
3281 static char *f (char * (*g) (char **, int), char **p, ...)
3286 s = g (p, va_arg (v,int));
3291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
3294 as 'x'. The following induces an error, until -std is added to get
3295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
3297 that's true only with -std. */
3298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305 int test (int i, double x);
3306 struct s1 {int (*f) (int a);};
3307 struct s2 {int (*f) (double a);};
3308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322 CC="$ac_save_CC $ac_arg"
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3338 { (case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_try") 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_prog_cc_c89=$ac_arg
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3365 rm -f core conftest.err conftest.$ac_objext
3366 test "x$ac_cv_prog_cc_c89" != "xno" && break
3368 rm -f conftest.$ac_ext
3373 case "x$ac_cv_prog_cc_c89" in
3375 { echo "$as_me:$LINENO: result: none needed" >&5
3376 echo "${ECHO_T}none needed" >&6; } ;;
3378 { echo "$as_me:$LINENO: result: unsupported" >&5
3379 echo "${ECHO_T}unsupported" >&6; } ;;
3381 CC="$CC $ac_cv_prog_cc_c89"
3382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3400 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3401 # On Suns, sometimes $CPP names a directory.
3402 if test -n "$CPP" && test -d "$CPP"; then
3405 if test -z "$CPP"; then
3406 if test "${ac_cv_prog_CPP+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 # Double quotes because CPP needs to be expanded
3410 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3413 for ac_c_preproc_warn_flag in '' yes
3415 # Use a header file that comes with gcc, so configuring glibc
3416 # with a fresh cross-compiler works.
3417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418 # <limits.h> exists even on freestanding compilers.
3419 # On the NeXT, cc -E runs the code through the compiler's parser,
3420 # not just through cpp. "Syntax error" is here to catch this case.
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3428 # include <limits.h>
3430 # include <assert.h>
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_c_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 if test -z "$ac_cpp_err"; then
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Broken: fails on valid input.
3466 rm -f conftest.err conftest.$ac_ext
3468 # OK, works on sane cases. Now check whether nonexistent headers
3469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #include <ac_nonexistent.h>
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500 if test -z "$ac_cpp_err"; then
3501 # Broken: success on invalid input.
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 # Passes both tests.
3512 rm -f conftest.err conftest.$ac_ext
3515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3516 rm -f conftest.err conftest.$ac_ext
3517 if $ac_preproc_ok; then
3529 { echo "$as_me:$LINENO: result: $CPP" >&5
3530 echo "${ECHO_T}$CPP" >&6; }
3532 for ac_c_preproc_warn_flag in '' yes
3534 # Use a header file that comes with gcc, so configuring glibc
3535 # with a fresh cross-compiler works.
3536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3537 # <limits.h> exists even on freestanding compilers.
3538 # On the NeXT, cc -E runs the code through the compiler's parser,
3539 # not just through cpp. "Syntax error" is here to catch this case.
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3547 # include <limits.h>
3549 # include <assert.h>
3553 if { (ac_try="$ac_cpp conftest.$ac_ext"
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } >/dev/null; then
3566 if test -s conftest.err; then
3567 ac_cpp_err=$ac_c_preproc_warn_flag
3568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3575 if test -z "$ac_cpp_err"; then
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 # Broken: fails on valid input.
3585 rm -f conftest.err conftest.$ac_ext
3587 # OK, works on sane cases. Now check whether nonexistent headers
3588 # can be detected and how.
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include <ac_nonexistent.h>
3597 if { (ac_try="$ac_cpp conftest.$ac_ext"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } >/dev/null; then
3610 if test -s conftest.err; then
3611 ac_cpp_err=$ac_c_preproc_warn_flag
3612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3619 if test -z "$ac_cpp_err"; then
3620 # Broken: success on invalid input.
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&5
3641 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3642 See \`config.log' for more details." >&2;}
3643 { (exit 1); exit 1; }; }
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3654 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 # Extract the first word of "grep ggrep" to use in msg output
3659 if test -z "$GREP"; then
3660 set dummy grep ggrep; ac_prog_name=$2
3661 if test "${ac_cv_path_GREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_path_GREP_found=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670 test -z "$as_dir" && as_dir=.
3671 for ac_prog in grep ggrep; do
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3674 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3675 # Check for GNU ac_path_GREP and select it if it is found.
3676 # Check for GNU $ac_path_GREP
3677 case `"$ac_path_GREP" --version 2>&1` in
3679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3682 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 echo 'GREP' >> "conftest.nl"
3689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3691 ac_count=`expr $ac_count + 1`
3692 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_GREP="$ac_path_GREP"
3695 ac_path_GREP_max=$ac_count
3697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704 $ac_path_GREP_found && break 3
3714 GREP="$ac_cv_path_GREP"
3715 if test -z "$GREP"; then
3716 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718 { (exit 1); exit 1; }; }
3722 ac_cv_path_GREP=$GREP
3727 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3728 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3729 GREP="$ac_cv_path_GREP"
3732 { echo "$as_me:$LINENO: checking for egrep" >&5
3733 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3734 if test "${ac_cv_path_EGREP+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3738 then ac_cv_path_EGREP="$GREP -E"
3740 # Extract the first word of "egrep" to use in msg output
3741 if test -z "$EGREP"; then
3742 set dummy egrep; ac_prog_name=$2
3743 if test "${ac_cv_path_EGREP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 ac_path_EGREP_found=false
3747 # Loop through the user's path and test for each of PROGNAME-LIST
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3752 test -z "$as_dir" && as_dir=.
3753 for ac_prog in egrep; do
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3756 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3757 # Check for GNU ac_path_EGREP and select it if it is found.
3758 # Check for GNU $ac_path_EGREP
3759 case `"$ac_path_EGREP" --version 2>&1` in
3761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3764 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3767 cat "conftest.in" "conftest.in" >"conftest.tmp"
3768 mv "conftest.tmp" "conftest.in"
3769 cp "conftest.in" "conftest.nl"
3770 echo 'EGREP' >> "conftest.nl"
3771 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3773 ac_count=`expr $ac_count + 1`
3774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3775 # Best one so far, save it but keep looking for a better one
3776 ac_cv_path_EGREP="$ac_path_EGREP"
3777 ac_path_EGREP_max=$ac_count
3779 # 10*(2^10) chars as input seems more than enough
3780 test $ac_count -gt 10 && break
3782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 $ac_path_EGREP_found && break 3
3796 EGREP="$ac_cv_path_EGREP"
3797 if test -z "$EGREP"; then
3798 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3799 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3800 { (exit 1); exit 1; }; }
3804 ac_cv_path_EGREP=$EGREP
3810 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3811 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3812 EGREP="$ac_cv_path_EGREP"
3815 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3817 if test "${ac_cv_header_stdc+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3839 rm -f conftest.$ac_objext
3840 if { (ac_try="$ac_compile"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_compile") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3854 { (case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_try") 2>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_try") 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
3873 ac_cv_header_stdc=yes
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 ac_cv_header_stdc=no
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 if test $ac_cv_header_stdc = yes; then
3884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3885 cat >conftest.$ac_ext <<_ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3895 $EGREP "memchr" >/dev/null 2>&1; then
3898 ac_cv_header_stdc=no
3904 if test $ac_cv_header_stdc = yes; then
3905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3906 cat >conftest.$ac_ext <<_ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916 $EGREP "free" >/dev/null 2>&1; then
3919 ac_cv_header_stdc=no
3925 if test $ac_cv_header_stdc = yes; then
3926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3927 if test "$cross_compiling" = yes; then
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3938 #if ((' ' & 0x0FF) == 0x020)
3939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3942 # define ISLOWER(c) \
3943 (('a' <= (c) && (c) <= 'i') \
3944 || ('j' <= (c) && (c) <= 'r') \
3945 || ('s' <= (c) && (c) <= 'z'))
3946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3954 for (i = 0; i < 256; i++)
3955 if (XOR (islower (i), ISLOWER (i))
3956 || toupper (i) != TOUPPER (i))
3961 rm -f conftest$ac_exeext
3962 if { (ac_try="$ac_link"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_link") 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3972 { (case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_try") 2>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3983 echo "$as_me: program exited with status $ac_status" >&5
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3988 ac_cv_header_stdc=no
3990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3997 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3998 if test $ac_cv_header_stdc = yes; then
4000 cat >>confdefs.h <<\_ACEOF
4001 #define STDC_HEADERS 1
4006 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4016 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4017 inttypes.h stdint.h unistd.h
4019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 $ac_includes_default
4033 #include <$ac_header>
4035 rm -f conftest.$ac_objext
4036 if { (ac_try="$ac_compile"
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_compile") 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4050 { (case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_try") 2>&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_try") 2>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 eval "$as_ac_Header=yes"
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 eval "$as_ac_Header=no"
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 ac_res=`eval echo '${'$as_ac_Header'}'`
4080 { echo "$as_me:$LINENO: result: $ac_res" >&5
4081 echo "${ECHO_T}$ac_res" >&6; }
4082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083 cat >>confdefs.h <<_ACEOF
4084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4094 if test "${ac_cv_c_bigendian+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 # See if sys/param.h defines the BYTE_ORDER macro.
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <sys/types.h>
4105 #include <sys/param.h>
4110 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4118 rm -f conftest.$ac_objext
4119 if { (ac_try="$ac_compile"
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_compile") 2>conftest.er1
4127 grep -v '^ *+' conftest.er1 >conftest.err
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4133 { (case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_try") 2>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 # It does; now see whether it defined to BIG_ENDIAN or not.
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 #include <sys/types.h>
4160 #include <sys/param.h>
4165 #if BYTE_ORDER != BIG_ENDIAN
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4188 { (case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_try") 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest.$ac_objext'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4207 ac_cv_c_bigendian=yes
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_cv_c_bigendian=no
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 # It does not; compile a test program.
4221 if test "$cross_compiling" = yes; then
4222 # try to guess the endianness by grepping values into an object file
4223 ac_cv_c_bigendian=unknown
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4231 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4232 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4233 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4234 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4235 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4239 _ascii (); _ebcdic ();
4244 rm -f conftest.$ac_objext
4245 if { (ac_try="$ac_compile"
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_compile") 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259 { (case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_try") 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest.$ac_objext'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4279 ac_cv_c_bigendian=yes
4281 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4282 if test "$ac_cv_c_bigendian" = unknown; then
4283 ac_cv_c_bigendian=no
4285 # finding both strings is unlikely to happen, but who knows?
4286 ac_cv_c_bigendian=unknown
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 $ac_includes_default
4309 /* Are we little or big endian? From Harbison&Steele. */
4313 char c[sizeof (long int)];
4316 return u.c[sizeof (long int) - 1] == 1;
4322 rm -f conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_link") 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4333 { (case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_try") 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_c_bigendian=no
4344 echo "$as_me: program exited with status $ac_status" >&5
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4349 ac_cv_c_bigendian=yes
4351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4360 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4361 case $ac_cv_c_bigendian in
4369 { { echo "$as_me:$LINENO: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4371 echo "$as_me: error: unknown endianness
4372 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4373 { (exit 1); exit 1; }; } ;;
4377 if test "$cross_compiling" = yes; then
4378 LLVM_CROSS_COMPILING=1
4381 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4382 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4383 if test "${ac_cv_build_exeext+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4387 ac_cv_build_exeext=.exe
4389 ac_build_prefix=${build_alias}-
4391 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4392 set dummy ${ac_build_prefix}gcc; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 if test -n "$BUILD_CC"; then
4399 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 BUILD_CC=$ac_cv_prog_BUILD_CC
4419 if test -n "$BUILD_CC"; then
4420 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4421 echo "${ECHO_T}$BUILD_CC" >&6; }
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4428 if test -z "$BUILD_CC"; then
4429 # Extract the first word of "gcc", so it can be a program name with args.
4430 set dummy gcc; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test -n "$BUILD_CC"; then
4437 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_BUILD_CC="gcc"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 BUILD_CC=$ac_cv_prog_BUILD_CC
4457 if test -n "$BUILD_CC"; then
4458 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4459 echo "${ECHO_T}$BUILD_CC" >&6; }
4461 { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4466 if test -z "$BUILD_CC"; then
4467 # Extract the first word of "cc", so it can be a program name with args.
4468 set dummy cc; ac_word=$2
4469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -n "$BUILD_CC"; then
4475 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4486 ac_prog_rejected=yes
4489 ac_cv_prog_BUILD_CC="cc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 if test $ac_prog_rejected = yes; then
4498 # We found a bogon in the path, so make sure we never use it.
4499 set dummy $ac_cv_prog_BUILD_CC
4501 if test $# != 0; then
4502 # We chose a different compiler from the bogus one.
4503 # However, it has the same basename, so the bogon will be chosen
4504 # first if we set BUILD_CC to just the basename; use the full file name.
4506 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4511 BUILD_CC=$ac_cv_prog_BUILD_CC
4512 if test -n "$BUILD_CC"; then
4513 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4514 echo "${ECHO_T}$BUILD_CC" >&6; }
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4523 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4524 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4525 { (exit 1); exit 1; }; }
4526 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4528 echo 'int main () { return 0; }' > conftest.$ac_ext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4531 (eval $ac_build_link) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; then
4535 for file in conftest.*; do
4537 *.c | *.o | *.obj) ;;
4538 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4542 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4543 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4544 { (exit 1); exit 1; }; }
4547 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4552 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4553 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4554 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4555 ac_build_exeext=$BUILD_EXEEXT
4558 LLVM_CROSS_COMPILING=0
4562 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4573 # Check whether --enable-optimized was given.
4574 if test "${enable_optimized+set}" = set; then
4575 enableval=$enable_optimized;
4580 if test ${enableval} = "no" ; then
4584 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4588 # Check whether --enable-assertions was given.
4589 if test "${enable_assertions+set}" = set; then
4590 enableval=$enable_assertions;
4595 if test ${enableval} = "yes" ; then
4599 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4603 # Check whether --enable-expensive-checks was given.
4604 if test "${enable_expensive_checks+set}" = set; then
4605 enableval=$enable_expensive_checks;
4610 if test ${enableval} = "yes" ; then
4611 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4613 EXPENSIVE_CHECKS=yes
4616 ENABLE_EXPENSIVE_CHECKS=
4622 # Check whether --enable-debug-runtime was given.
4623 if test "${enable_debug_runtime+set}" = set; then
4624 enableval=$enable_debug_runtime;
4629 if test ${enableval} = "no" ; then
4633 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4637 # Check whether --enable-jit was given.
4638 if test "${enable_jit+set}" = set; then
4639 enableval=$enable_jit;
4644 if test ${enableval} = "no"
4649 case "$llvm_cv_target_arch" in
4650 x86) TARGET_HAS_JIT=1
4652 Sparc) TARGET_HAS_JIT=0
4654 PowerPC) TARGET_HAS_JIT=1
4656 x86_64) TARGET_HAS_JIT=1
4658 Alpha) TARGET_HAS_JIT=1
4660 IA64) TARGET_HAS_JIT=0
4662 ARM) TARGET_HAS_JIT=0
4664 Mips) TARGET_HAS_JIT=0
4666 PIC16) TARGET_HAS_JIT=0
4673 # Check whether --enable-doxygen was given.
4674 if test "${enable_doxygen+set}" = set; then
4675 enableval=$enable_doxygen;
4680 case "$enableval" in
4681 yes) ENABLE_DOXYGEN=1
4683 no) ENABLE_DOXYGEN=0
4685 default) ENABLE_DOXYGEN=0
4687 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4688 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4689 { (exit 1); exit 1; }; } ;;
4692 # Check whether --enable-threads was given.
4693 if test "${enable_threads+set}" = set; then
4694 enableval=$enable_threads;
4699 case "$enableval" in
4700 yes) ENABLE_THREADS=1
4702 no) ENABLE_THREADS=0
4704 default) ENABLE_THREADS=1
4706 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4707 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4708 { (exit 1); exit 1; }; } ;;
4711 cat >>confdefs.h <<_ACEOF
4712 #define ENABLE_THREADS $ENABLE_THREADS
4716 # Check whether --enable-pic was given.
4717 if test "${enable_pic+set}" = set; then
4718 enableval=$enable_pic;
4723 case "$enableval" in
4728 default) ENABLE_PIC=0
4730 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4731 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4732 { (exit 1); exit 1; }; } ;;
4735 cat >>confdefs.h <<_ACEOF
4736 #define ENABLE_PIC $ENABLE_PIC
4741 # Check whether --enable-targets was given.
4742 if test "${enable_targets+set}" = set; then
4743 enableval=$enable_targets;
4748 case "$enableval" in
4749 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4751 case "$llvm_cv_target_arch" in
4752 x86) TARGETS_TO_BUILD="X86" ;;
4753 x86_64) TARGETS_TO_BUILD="X86" ;;
4754 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4755 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4756 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4757 IA64) TARGETS_TO_BUILD="IA64" ;;
4758 ARM) TARGETS_TO_BUILD="ARM" ;;
4759 Mips) TARGETS_TO_BUILD="Mips" ;;
4760 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4761 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4762 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4763 echo "$as_me: error: Can not set target to build" >&2;}
4764 { (exit 1); exit 1; }; } ;;
4767 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4769 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4770 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4771 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4772 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4773 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4774 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4775 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4776 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4777 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4778 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4779 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4780 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4781 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4782 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4783 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4784 { (exit 1); exit 1; }; } ;;
4789 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4792 # Check whether --enable-cbe-printf-a was given.
4793 if test "${enable_cbe_printf_a+set}" = set; then
4794 enableval=$enable_cbe_printf_a;
4799 case "$enableval" in
4800 yes) ENABLE_CBE_PRINTF_A=1
4802 no) ENABLE_CBE_PRINTF_A=0
4804 default) ENABLE_CBE_PRINTF_A=1
4806 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4807 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4811 cat >>confdefs.h <<_ACEOF
4812 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4817 # Check whether --with-llvmgccdir was given.
4818 if test "${with_llvmgccdir+set}" = set; then
4819 withval=$with_llvmgccdir;
4825 default) WITH_LLVMGCCDIR=default ;;
4826 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4827 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4828 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4829 { (exit 1); exit 1; }; } ;;
4833 # Check whether --with-llvmgcc was given.
4834 if test "${with_llvmgcc+set}" = set; then
4835 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4841 # Check whether --with-llvmgxx was given.
4842 if test "${with_llvmgxx+set}" = set; then
4843 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4848 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4849 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4850 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4851 { (exit 1); exit 1; }; };
4854 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4855 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4856 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4857 { (exit 1); exit 1; }; };
4861 # Check whether --with-extra-options was given.
4862 if test "${with_extra_options+set}" = set; then
4863 withval=$with_extra_options;
4869 default) EXTRA_OPTIONS= ;;
4870 *) EXTRA_OPTIONS=$withval ;;
4872 EXTRA_OPTIONS=$EXTRA_OPTIONS
4875 # Check whether --enable-bindings was given.
4876 if test "${enable_bindings+set}" = set; then
4877 enableval=$enable_bindings;
4882 BINDINGS_TO_BUILD=""
4883 case "$enableval" in
4884 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4885 all ) BINDINGS_TO_BUILD="ocaml" ;;
4886 none | no) BINDINGS_TO_BUILD="" ;;
4887 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4888 case "$a_binding" in
4889 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4890 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4891 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4899 # Check whether --with-ocaml-libdir was given.
4900 if test "${with_ocaml_libdir+set}" = set; then
4901 withval=$with_ocaml_libdir;
4907 auto) with_ocaml_libdir="$withval" ;;
4908 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4909 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4910 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4911 { (exit 1); exit 1; }; } ;;
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4922 # On Suns, sometimes $CPP names a directory.
4923 if test -n "$CPP" && test -d "$CPP"; then
4926 if test -z "$CPP"; then
4927 if test "${ac_cv_prog_CPP+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 # Double quotes because CPP needs to be expanded
4931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4934 for ac_c_preproc_warn_flag in '' yes
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 # include <limits.h>
4951 # include <assert.h>
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4977 if test -z "$ac_cpp_err"; then
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 # Broken: fails on valid input.
4987 rm -f conftest.err conftest.$ac_ext
4989 # OK, works on sane cases. Now check whether nonexistent headers
4990 # can be detected and how.
4991 cat >conftest.$ac_ext <<_ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #include <ac_nonexistent.h>
4999 if { (ac_try="$ac_cpp conftest.$ac_ext"
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_c_preproc_warn_flag
5014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5021 if test -z "$ac_cpp_err"; then
5022 # Broken: success on invalid input.
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5028 # Passes both tests.
5033 rm -f conftest.err conftest.$ac_ext
5036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037 rm -f conftest.err conftest.$ac_ext
5038 if $ac_preproc_ok; then
5050 { echo "$as_me:$LINENO: result: $CPP" >&5
5051 echo "${ECHO_T}$CPP" >&6; }
5053 for ac_c_preproc_warn_flag in '' yes
5055 # Use a header file that comes with gcc, so configuring glibc
5056 # with a fresh cross-compiler works.
5057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5058 # <limits.h> exists even on freestanding compilers.
5059 # On the NeXT, cc -E runs the code through the compiler's parser,
5060 # not just through cpp. "Syntax error" is here to catch this case.
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5068 # include <limits.h>
5070 # include <assert.h>
5074 if { (ac_try="$ac_cpp conftest.$ac_ext"
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_c_preproc_warn_flag
5089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5096 if test -z "$ac_cpp_err"; then
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 # Broken: fails on valid input.
5106 rm -f conftest.err conftest.$ac_ext
5108 # OK, works on sane cases. Now check whether nonexistent headers
5109 # can be detected and how.
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #include <ac_nonexistent.h>
5118 if { (ac_try="$ac_cpp conftest.$ac_ext"
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5126 grep -v '^ *+' conftest.er1 >conftest.err
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_c_preproc_warn_flag
5133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5140 if test -z "$ac_cpp_err"; then
5141 # Broken: success on invalid input.
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 # Passes both tests.
5152 rm -f conftest.err conftest.$ac_ext
5155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156 rm -f conftest.err conftest.$ac_ext
5157 if $ac_preproc_ok; then
5160 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5161 See \`config.log' for more details." >&5
5162 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5163 See \`config.log' for more details." >&2;}
5164 { (exit 1); exit 1; }; }
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174 ac_cpp='$CPP $CPPFLAGS'
5175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 if test -n "$ac_tool_prefix"; then
5181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_prog_CC+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 if test -n "$CC"; then
5189 ac_cv_prog_CC="$CC" # Let the user override the test.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 if test -n "$CC"; then
5210 { echo "$as_me:$LINENO: result: $CC" >&5
5211 echo "${ECHO_T}$CC" >&6; }
5213 { echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6; }
5218 test -n "$CC" && break
5221 if test -z "$CC"; then
5225 # Extract the first word of "$ac_prog", so it can be a program name with args.
5226 set dummy $ac_prog; ac_word=$2
5227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 if test -n "$ac_ct_CC"; then
5233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_ac_ct_CC="$ac_prog"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5253 if test -n "$ac_ct_CC"; then
5254 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5255 echo "${ECHO_T}$ac_ct_CC" >&6; }
5257 { echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6; }
5262 test -n "$ac_ct_CC" && break
5265 if test "x$ac_ct_CC" = x; then
5268 case $cross_compiling:$ac_tool_warned in
5270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5271 whose name does not start with the host triplet. If you think this
5272 configuration is useful to you, please write to autoconf@gnu.org." >&5
5273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet. If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5276 ac_tool_warned=yes ;;
5283 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5284 See \`config.log' for more details." >&5
5285 echo "$as_me: error: no acceptable C compiler found in \$PATH
5286 See \`config.log' for more details." >&2;}
5287 { (exit 1); exit 1; }; }
5289 # Provide some information about the compiler.
5290 echo "$as_me:$LINENO: checking for C compiler version" >&5
5291 ac_compiler=`set X $ac_compile; echo $2`
5292 { (ac_try="$ac_compiler --version >&5"
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_compiler --version >&5") 2>&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }
5302 { (ac_try="$ac_compiler -v >&5"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compiler -v >&5") 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }
5312 { (ac_try="$ac_compiler -V >&5"
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_compiler -V >&5") 2>&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }
5323 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 cat >conftest.$ac_ext <<_ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5361 { (case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_try") 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_try") 2>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5392 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5393 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5394 GCC=`test $ac_compiler_gnu = yes && echo yes`
5395 ac_test_CFLAGS=${CFLAGS+set}
5396 ac_save_CFLAGS=$CFLAGS
5397 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5398 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5399 if test "${ac_cv_prog_cc_g+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 ac_save_c_werror_flag=$ac_c_werror_flag
5403 ac_c_werror_flag=yes
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_compile") 2>conftest.er1
5430 grep -v '^ *+' conftest.er1 >conftest.err
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5436 { (case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_try") 2>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5461 cat >conftest.$ac_ext <<_ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5485 grep -v '^ *+' conftest.er1 >conftest.err
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5491 { (case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_try") 2>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_try") 2>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_c_werror_flag=$ac_save_c_werror_flag
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5532 rm -f conftest.$ac_objext
5533 if { (ac_try="$ac_compile"
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5547 { (case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_try") 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest.$ac_objext'
5557 { (case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_try") 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_c_werror_flag=$ac_save_c_werror_flag
5583 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5584 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5585 if test "$ac_test_CFLAGS" = set; then
5586 CFLAGS=$ac_save_CFLAGS
5587 elif test $ac_cv_prog_cc_g = yes; then
5588 if test "$GCC" = yes; then
5594 if test "$GCC" = yes; then
5600 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5601 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5602 if test "${ac_cv_prog_cc_c89+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 ac_cv_prog_cc_c89=no
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 #include <sys/stat.h>
5617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5618 struct buf { int x; };
5619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5620 static char *e (p, i)
5626 static char *f (char * (*g) (char **, int), char **p, ...)
5631 s = g (p, va_arg (v,int));
5636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5637 function prototypes and stuff, but not '\xHH' hex character constants.
5638 These don't provoke an error unfortunately, instead are silently treated
5639 as 'x'. The following induces an error, until -std is added to get
5640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5641 array size at least. It's necessary to write '\x00'==0 to get something
5642 that's true only with -std. */
5643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5646 inside strings and character constants. */
5648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5650 int test (int i, double x);
5651 struct s1 {int (*f) (int a);};
5652 struct s2 {int (*f) (double a);};
5653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5659 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5667 CC="$ac_save_CC $ac_arg"
5668 rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compile") 2>conftest.er1
5677 grep -v '^ *+' conftest.er1 >conftest.err
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5683 { (case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_try") 2>&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_try") 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 ac_cv_prog_cc_c89=$ac_arg
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5710 rm -f core conftest.err conftest.$ac_objext
5711 test "x$ac_cv_prog_cc_c89" != "xno" && break
5713 rm -f conftest.$ac_ext
5718 case "x$ac_cv_prog_cc_c89" in
5720 { echo "$as_me:$LINENO: result: none needed" >&5
5721 echo "${ECHO_T}none needed" >&6; } ;;
5723 { echo "$as_me:$LINENO: result: unsupported" >&5
5724 echo "${ECHO_T}unsupported" >&6; } ;;
5726 CC="$CC $ac_cv_prog_cc_c89"
5727 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5728 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 ac_cpp='$CXXCPP $CPPFLAGS'
5740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5743 if test -z "$CXX"; then
5744 if test -n "$CCC"; then
5747 if test -n "$ac_tool_prefix"; then
5750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_prog_CXX+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 if test -n "$CXX"; then
5758 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 if test -n "$CXX"; then
5779 { echo "$as_me:$LINENO: result: $CXX" >&5
5780 echo "${ECHO_T}$CXX" >&6; }
5782 { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5787 test -n "$CXX" && break
5790 if test -z "$CXX"; then
5794 # Extract the first word of "$ac_prog", so it can be a program name with args.
5795 set dummy $ac_prog; ac_word=$2
5796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 if test -n "$ac_ct_CXX"; then
5802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_ac_ct_CXX="$ac_prog"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5822 if test -n "$ac_ct_CXX"; then
5823 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5824 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5826 { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5831 test -n "$ac_ct_CXX" && break
5834 if test "x$ac_ct_CXX" = x; then
5837 case $cross_compiling:$ac_tool_warned in
5839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet. If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&5
5842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5843 whose name does not start with the host triplet. If you think this
5844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5845 ac_tool_warned=yes ;;
5853 # Provide some information about the compiler.
5854 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5855 ac_compiler=`set X $ac_compile; echo $2`
5856 { (ac_try="$ac_compiler --version >&5"
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_compiler --version >&5") 2>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }
5866 { (ac_try="$ac_compiler -v >&5"
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compiler -v >&5") 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }
5876 { (ac_try="$ac_compiler -V >&5"
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_compiler -V >&5") 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }
5887 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5888 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5889 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5910 rm -f conftest.$ac_objext
5911 if { (ac_try="$ac_compile"
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_compile") 2>conftest.er1
5919 grep -v '^ *+' conftest.er1 >conftest.err
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5925 { (case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_try") 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_try") 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5956 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5957 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5958 GXX=`test $ac_compiler_gnu = yes && echo yes`
5959 ac_test_CXXFLAGS=${CXXFLAGS+set}
5960 ac_save_CXXFLAGS=$CXXFLAGS
5961 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5962 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_cxx_g+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5967 ac_cxx_werror_flag=yes
5970 cat >conftest.$ac_ext <<_ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_prog_cxx_g=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest.$ac_objext'
6065 { (case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_try") 2>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6081 cat >conftest.$ac_ext <<_ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_compile") 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6111 { (case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_try") 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; } &&
6120 { ac_try='test -s conftest.$ac_objext'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_prog_cxx_g=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6147 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6149 if test "$ac_test_CXXFLAGS" = set; then
6150 CXXFLAGS=$ac_save_CXXFLAGS
6151 elif test $ac_cv_prog_cxx_g = yes; then
6152 if test "$GXX" = yes; then
6158 if test "$GXX" = yes; then
6165 ac_cpp='$CPP $CPPFLAGS'
6166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170 { echo "$as_me:$LINENO: checking " >&5
6171 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6172 if test "${ac_cv_has_flex+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 for ac_prog in flex lex
6177 # Extract the first word of "$ac_prog", so it can be a program name with args.
6178 set dummy $ac_prog; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_LEX+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 if test -n "$LEX"; then
6185 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_LEX="$ac_prog"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 if test -n "$LEX"; then
6206 { echo "$as_me:$LINENO: result: $LEX" >&5
6207 echo "${ECHO_T}$LEX" >&6; }
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6214 test -n "$LEX" && break
6216 test -n "$LEX" || LEX=":"
6218 if test -z "$LEXLIB"
6220 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6221 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_check_lib_save_LIBS=$LIBS
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6258 grep -v '^ *+' conftest.er1 >conftest.err
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest$ac_exeext'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_lib_fl_yywrap=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_cv_lib_fl_yywrap=no
6291 rm -f core conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6293 LIBS=$ac_check_lib_save_LIBS
6295 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6296 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6297 if test $ac_cv_lib_fl_yywrap = yes; then
6300 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6301 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6302 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 ac_check_lib_save_LIBS=$LIBS
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 /* Override any GCC internal prototype to avoid an error.
6315 Use char because int might match the return type of a GCC
6316 builtin and then its argument prototype would still apply. */
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (ac_try="$ac_link"
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_link") 2>conftest.er1
6338 grep -v '^ *+' conftest.er1 >conftest.err
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6344 { (case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_try") 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_try") 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_lib_l_yywrap=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_cv_lib_l_yywrap=no
6371 rm -f core conftest.err conftest.$ac_objext \
6372 conftest$ac_exeext conftest.$ac_ext
6373 LIBS=$ac_check_lib_save_LIBS
6375 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6376 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6377 if test $ac_cv_lib_l_yywrap = yes; then
6385 if test "x$LEX" != "x:"; then
6386 { echo "$as_me:$LINENO: checking lex output file root" >&5
6387 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_lex_root+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 # The minimal lex program is just a single line: %%. But some broken lexes
6392 # (Solaris, I think it was) want two %% lines, so accommodate them.
6393 cat >conftest.l <<_ACEOF
6397 { (ac_try="$LEX conftest.l"
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$LEX conftest.l") 2>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }
6407 if test -f lex.yy.c; then
6408 ac_cv_prog_lex_root=lex.yy
6409 elif test -f lexyy.c; then
6410 ac_cv_prog_lex_root=lexyy
6412 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6413 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6414 { (exit 1); exit 1; }; }
6417 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6418 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6420 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6422 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6423 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6424 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 # POSIX says lex can declare yytext either as a pointer or an array; the
6428 # default is implementation-dependent. Figure out which it is, since
6429 # not all implementations provide the %pointer and %array declarations.
6430 ac_cv_prog_lex_yytext_pointer=no
6431 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6433 LIBS="$LIBS $LEXLIB"
6434 cat >conftest.$ac_ext <<_ACEOF
6435 `cat $LEX_OUTPUT_ROOT.c`
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444 (eval "$ac_link") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1 >conftest.err
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } &&
6451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6452 { (case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_try") 2>&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest$ac_exeext'
6462 { (case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_try") 2>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_prog_lex_yytext_pointer=yes
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6479 rm -f core conftest.err conftest.$ac_objext \
6480 conftest$ac_exeext conftest.$ac_ext
6482 rm -f "${LEX_OUTPUT_ROOT}.c"
6485 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6486 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6487 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6489 cat >>confdefs.h <<\_ACEOF
6490 #define YYTEXT_POINTER 1
6498 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6499 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6500 if test "$LEX" != "flex"; then
6501 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6502 echo "$as_me: error: flex not found but required" >&2;}
6503 { (exit 1); exit 1; }; }
6509 { echo "$as_me:$LINENO: checking " >&5
6510 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6511 if test "${llvm_cv_has_bison+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 for ac_prog in 'bison -y' byacc
6516 # Extract the first word of "$ac_prog", so it can be a program name with args.
6517 set dummy $ac_prog; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_YACC+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 if test -n "$YACC"; then
6524 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_YACC="$ac_prog"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 YACC=$ac_cv_prog_YACC
6544 if test -n "$YACC"; then
6545 { echo "$as_me:$LINENO: result: $YACC" >&5
6546 echo "${ECHO_T}$YACC" >&6; }
6548 { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6553 test -n "$YACC" && break
6555 test -n "$YACC" || YACC="yacc"
6558 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6559 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6560 if test "$YACC" != "bison -y"; then
6562 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6563 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6569 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6570 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6571 if test "${lt_cv_path_NM+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 if test -n "$NM"; then
6575 # Let the user override the test.
6578 lt_nm_to_check="${ac_tool_prefix}nm"
6579 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6580 lt_nm_to_check="$lt_nm_to_check nm"
6582 for lt_tmp_nm in $lt_nm_to_check; do
6583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6584 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6586 test -z "$ac_dir" && ac_dir=.
6587 tmp_nm="$ac_dir/$lt_tmp_nm"
6588 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6589 # Check to see if the nm accepts a BSD-compat flag.
6590 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6591 # nm: unknown option "B" ignored
6592 # Tru64's nm complains that /dev/null is an invalid object file
6593 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6594 */dev/null* | *'Invalid file or object type'*)
6595 lt_cv_path_NM="$tmp_nm -B"
6599 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6601 lt_cv_path_NM="$tmp_nm -p"
6605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6606 continue # so that we can try to find one that supports BSD flags
6615 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6618 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6619 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6624 { echo "$as_me:$LINENO: checking for GNU make" >&5
6625 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6626 if test "${llvm_cv_gnu_make_command+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 llvm_cv_gnu_make_command=''
6630 for a in "$MAKE" make gmake gnumake ; do
6631 if test -z "$a" ; then continue ; fi ;
6632 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6634 llvm_cv_gnu_make_command=$a ;
6639 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6640 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6641 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6645 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6646 echo "${ECHO_T}\"Not found\"" >&6; };
6650 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6653 if test "$LN_S" = "ln -s"; then
6654 { echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6; }
6657 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6658 echo "${ECHO_T}no, using $LN_S" >&6; }
6661 # Extract the first word of "cmp", so it can be a program name with args.
6662 set dummy cmp; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_CMP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6693 if test -n "$CMP"; then
6694 { echo "$as_me:$LINENO: result: $CMP" >&5
6695 echo "${ECHO_T}$CMP" >&6; }
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6702 # Extract the first word of "cp", so it can be a program name with args.
6703 set dummy cp; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_CP+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6734 if test -n "$CP"; then
6735 { echo "$as_me:$LINENO: result: $CP" >&5
6736 echo "${ECHO_T}$CP" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6743 # Extract the first word of "date", so it can be a program name with args.
6744 set dummy date; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_DATE+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6774 DATE=$ac_cv_path_DATE
6775 if test -n "$DATE"; then
6776 { echo "$as_me:$LINENO: result: $DATE" >&5
6777 echo "${ECHO_T}$DATE" >&6; }
6779 { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6784 # Extract the first word of "find", so it can be a program name with args.
6785 set dummy find; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_FIND+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6815 FIND=$ac_cv_path_FIND
6816 if test -n "$FIND"; then
6817 { echo "$as_me:$LINENO: result: $FIND" >&5
6818 echo "${ECHO_T}$FIND" >&6; }
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6825 # Extract the first word of "grep", so it can be a program name with args.
6826 set dummy grep; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_path_GREP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6856 GREP=$ac_cv_path_GREP
6857 if test -n "$GREP"; then
6858 { echo "$as_me:$LINENO: result: $GREP" >&5
6859 echo "${ECHO_T}$GREP" >&6; }
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6866 # Extract the first word of "mkdir", so it can be a program name with args.
6867 set dummy mkdir; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_MKDIR+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6897 MKDIR=$ac_cv_path_MKDIR
6898 if test -n "$MKDIR"; then
6899 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6900 echo "${ECHO_T}$MKDIR" >&6; }
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6907 # Extract the first word of "mv", so it can be a program name with args.
6908 set dummy mv; ac_word=$2
6909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911 if test "${ac_cv_path_MV+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6939 if test -n "$MV"; then
6940 { echo "$as_me:$LINENO: result: $MV" >&5
6941 echo "${ECHO_T}$MV" >&6; }
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_RANLIB+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 if test -n "$RANLIB"; then
6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 RANLIB=$ac_cv_prog_RANLIB
6977 if test -n "$RANLIB"; then
6978 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6979 echo "${ECHO_T}$RANLIB" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6987 if test -z "$ac_cv_prog_RANLIB"; then
6988 ac_ct_RANLIB=$RANLIB
6989 # Extract the first word of "ranlib", so it can be a program name with args.
6990 set dummy ranlib; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 if test -n "$ac_ct_RANLIB"; then
6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_ac_ct_RANLIB="ranlib"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7017 if test -n "$ac_ct_RANLIB"; then
7018 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7019 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7025 if test "x$ac_ct_RANLIB" = x; then
7028 case $cross_compiling:$ac_tool_warned in
7030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet. If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&5
7033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet. If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036 ac_tool_warned=yes ;;
7038 RANLIB=$ac_ct_RANLIB
7041 RANLIB="$ac_cv_prog_RANLIB"
7044 # Extract the first word of "rm", so it can be a program name with args.
7045 set dummy rm; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_RM+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7076 if test -n "$RM"; then
7077 { echo "$as_me:$LINENO: result: $RM" >&5
7078 echo "${ECHO_T}$RM" >&6; }
7080 { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7085 # Extract the first word of "sed", so it can be a program name with args.
7086 set dummy sed; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_SED+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7117 if test -n "$SED"; then
7118 { echo "$as_me:$LINENO: result: $SED" >&5
7119 echo "${ECHO_T}$SED" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 # Extract the first word of "tar", so it can be a program name with args.
7127 set dummy tar; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_TAR+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7158 if test -n "$TAR"; then
7159 { echo "$as_me:$LINENO: result: $TAR" >&5
7160 echo "${ECHO_T}$TAR" >&6; }
7162 { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7167 # Extract the first word of "pwd", so it can be a program name with args.
7168 set dummy pwd; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_path_BINPWD+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7198 BINPWD=$ac_cv_path_BINPWD
7199 if test -n "$BINPWD"; then
7200 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7201 echo "${ECHO_T}$BINPWD" >&6; }
7203 { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7209 # Extract the first word of "Graphviz", so it can be a program name with args.
7210 set dummy Graphviz; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7240 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7241 if test -n "$GRAPHVIZ"; then
7242 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7243 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7250 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7252 cat >>confdefs.h <<\_ACEOF
7253 #define HAVE_GRAPHVIZ 1
7256 if test "$llvm_cv_os_type" = "MingW" ; then
7257 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7260 cat >>confdefs.h <<_ACEOF
7261 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7265 # Extract the first word of "dot", so it can be a program name with args.
7266 set dummy dot; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_DOT+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7297 if test -n "$DOT"; then
7298 { echo "$as_me:$LINENO: result: $DOT" >&5
7299 echo "${ECHO_T}$DOT" >&6; }
7301 { echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6; }
7306 if test "$DOT" != "echo dot" ; then
7308 cat >>confdefs.h <<\_ACEOF
7312 if test "$llvm_cv_os_type" = "MingW" ; then
7313 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7316 cat >>confdefs.h <<_ACEOF
7317 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7321 for ac_prog in gv gsview32
7323 # Extract the first word of "$ac_prog", so it can be a program name with args.
7324 set dummy $ac_prog; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_GV+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 if test -n "$GV"; then
7355 { echo "$as_me:$LINENO: result: $GV" >&5
7356 echo "${ECHO_T}$GV" >&6; }
7358 { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7363 test -n "$GV" && break
7365 test -n "$GV" || GV="echo gv"
7367 if test "$GV" != "echo gv" ; then
7369 cat >>confdefs.h <<\_ACEOF
7373 if test "$llvm_cv_os_type" = "MingW" ; then
7374 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7377 cat >>confdefs.h <<_ACEOF
7378 #define LLVM_PATH_GV "$GV${EXEEXT}"
7382 # Extract the first word of "dotty", so it can be a program name with args.
7383 set dummy dotty; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_DOTTY+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7413 DOTTY=$ac_cv_path_DOTTY
7414 if test -n "$DOTTY"; then
7415 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7416 echo "${ECHO_T}$DOTTY" >&6; }
7418 { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7423 if test "$DOTTY" != "echo dotty" ; then
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_DOTTY 1
7429 if test "$llvm_cv_os_type" = "MingW" ; then
7430 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7433 cat >>confdefs.h <<_ACEOF
7434 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7440 # Extract the first word of "perl", so it can be a program name with args.
7441 set dummy perl; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_PERL+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7471 PERL=$ac_cv_path_PERL
7472 if test -n "$PERL"; then
7473 { echo "$as_me:$LINENO: result: $PERL" >&5
7474 echo "${ECHO_T}$PERL" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 if test "$PERL" != "none"; then
7482 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7483 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7484 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7485 { echo "$as_me:$LINENO: result: yes" >&5
7486 echo "${ECHO_T}yes" >&6; }
7489 { echo "$as_me:$LINENO: result: not found" >&5
7490 echo "${ECHO_T}not found" >&6; }
7495 if test x"$PERL" = xnone; then
7498 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7499 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7500 { (exit 1); exit 1; }; }
7506 # Find a good install program. We prefer a C program (faster),
7507 # so one script is as good as another. But avoid the broken or
7508 # incompatible versions:
7509 # SysV /etc/install, /usr/sbin/install
7510 # SunOS /usr/etc/install
7511 # IRIX /sbin/install
7513 # AmigaOS /C/install, which installs bootblocks on floppy discs
7514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7517 # OS/2's system install, which has a completely different semantic
7518 # ./install, which can be erroneously created by make from ./install.sh.
7519 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7521 if test -z "$INSTALL"; then
7522 if test "${ac_cv_path_install+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 # Account for people who put trailing slashes in PATH elements.
7532 ./ | .// | /cC/* | \
7533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7534 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7537 # OSF1 and SCO ODT 3.0 have their own names for install.
7538 # Don't use installbsd from OSF since it installs stuff as root
7540 for ac_prog in ginstall scoinst install; do
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7543 if test $ac_prog = install &&
7544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7545 # AIX install. It has an incompatible calling convention.
7547 elif test $ac_prog = install &&
7548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7549 # program-specific install script used by HP pwplus--don't use.
7552 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7565 if test "${ac_cv_path_install+set}" = set; then
7566 INSTALL=$ac_cv_path_install
7568 # As a last resort, use the slow shell script. Don't cache a
7569 # value for INSTALL within a source directory, because that will
7570 # break other packages using the cache if that directory is
7571 # removed, or if the value is a relative name.
7572 INSTALL=$ac_install_sh
7575 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7576 echo "${ECHO_T}$INSTALL" >&6; }
7578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7579 # It thinks the first close brace ends the variable substitution.
7580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7587 # Extract the first word of "bzip2", so it can be a program name with args.
7588 set dummy bzip2; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_BZIP2+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 BZIP2=$ac_cv_path_BZIP2
7618 if test -n "$BZIP2"; then
7619 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7620 echo "${ECHO_T}$BZIP2" >&6; }
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 # Extract the first word of "doxygen", so it can be a program name with args.
7628 set dummy doxygen; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 DOXYGEN=$ac_cv_path_DOXYGEN
7658 if test -n "$DOXYGEN"; then
7659 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7660 echo "${ECHO_T}$DOXYGEN" >&6; }
7662 { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7667 # Extract the first word of "groff", so it can be a program name with args.
7668 set dummy groff; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_GROFF+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 GROFF=$ac_cv_path_GROFF
7698 if test -n "$GROFF"; then
7699 { echo "$as_me:$LINENO: result: $GROFF" >&5
7700 echo "${ECHO_T}$GROFF" >&6; }
7702 { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7707 # Extract the first word of "gzip", so it can be a program name with args.
7708 set dummy gzip; ac_word=$2
7709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711 if test "${ac_cv_path_GZIP+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 GZIP=$ac_cv_path_GZIP
7738 if test -n "$GZIP"; then
7739 { echo "$as_me:$LINENO: result: $GZIP" >&5
7740 echo "${ECHO_T}$GZIP" >&6; }
7742 { echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6; }
7747 # Extract the first word of "pod2html", so it can be a program name with args.
7748 set dummy pod2html; ac_word=$2
7749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_path_POD2HTML+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 POD2HTML=$ac_cv_path_POD2HTML
7778 if test -n "$POD2HTML"; then
7779 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7780 echo "${ECHO_T}$POD2HTML" >&6; }
7782 { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7787 # Extract the first word of "pod2man", so it can be a program name with args.
7788 set dummy pod2man; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_POD2MAN+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 POD2MAN=$ac_cv_path_POD2MAN
7818 if test -n "$POD2MAN"; then
7819 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7820 echo "${ECHO_T}$POD2MAN" >&6; }
7822 { echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6; }
7827 # Extract the first word of "runtest", so it can be a program name with args.
7828 set dummy runtest; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_path_RUNTEST+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 RUNTEST=$ac_cv_path_RUNTEST
7858 if test -n "$RUNTEST"; then
7859 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7860 echo "${ECHO_T}$RUNTEST" >&6; }
7862 { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7869 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7870 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7872 # Check whether --with-tclinclude was given.
7873 if test "${with_tclinclude+set}" = set; then
7874 withval=$with_tclinclude; with_tclinclude=${withval}
7879 if test "${ac_cv_path_tclsh+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 if test x"${with_tclinclude}" != x ; then
7884 if test -f ${with_tclinclude}/tclsh ; then
7885 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7886 elif test -f ${with_tclinclude}/src/tclsh ; then
7887 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7889 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7890 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7891 { (exit 1); exit 1; }; }
7895 if test x"${ac_cv_path_tclsh}" = x ; then
7896 { echo "$as_me:$LINENO: result: none" >&5
7897 echo "${ECHO_T}none" >&6; }
7898 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904 if test "${ac_cv_path_TCLSH+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 TCLSH=$ac_cv_path_TCLSH
7931 if test -n "$TCLSH"; then
7932 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7933 echo "${ECHO_T}$TCLSH" >&6; }
7935 { echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6; }
7940 test -n "$TCLSH" && break
7943 if test x"${TCLSH}" = x ; then
7944 ac_cv_path_tclsh='';
7946 ac_cv_path_tclsh="${TCLSH}";
7949 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7950 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7951 TCLSH="${ac_cv_path_tclsh}"
7957 # Extract the first word of "zip", so it can be a program name with args.
7958 set dummy zip; ac_word=$2
7959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7961 if test "${ac_cv_path_ZIP+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 if test -n "$ZIP"; then
7989 { echo "$as_me:$LINENO: result: $ZIP" >&5
7990 echo "${ECHO_T}$ZIP" >&6; }
7992 { echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6; }
7997 for ac_prog in ocamlc.opt ocamlc
7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
8000 set dummy $ac_prog; ac_word=$2
8001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_OCAMLC+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 OCAMLC=$ac_cv_path_OCAMLC
8030 if test -n "$OCAMLC"; then
8031 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8032 echo "${ECHO_T}$OCAMLC" >&6; }
8034 { echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6; }
8039 test -n "$OCAMLC" && break
8042 for ac_prog in ocamlopt.opt ocamlopt
8044 # Extract the first word of "$ac_prog", so it can be a program name with args.
8045 set dummy $ac_prog; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 OCAMLOPT=$ac_cv_path_OCAMLOPT
8075 if test -n "$OCAMLOPT"; then
8076 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8077 echo "${ECHO_T}$OCAMLOPT" >&6; }
8079 { echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6; }
8084 test -n "$OCAMLOPT" && break
8087 for ac_prog in ocamldep.opt ocamldep
8089 # Extract the first word of "$ac_prog", so it can be a program name with args.
8090 set dummy $ac_prog; ac_word=$2
8091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8093 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8108 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 OCAMLDEP=$ac_cv_path_OCAMLDEP
8120 if test -n "$OCAMLDEP"; then
8121 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8122 echo "${ECHO_T}$OCAMLDEP" >&6; }
8124 { echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6; }
8129 test -n "$OCAMLDEP" && break
8132 for ac_prog in ocamldoc.opt ocamldoc
8134 # Extract the first word of "$ac_prog", so it can be a program name with args.
8135 set dummy $ac_prog; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 OCAMLDOC=$ac_cv_path_OCAMLDOC
8165 if test -n "$OCAMLDOC"; then
8166 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8167 echo "${ECHO_T}$OCAMLDOC" >&6; }
8169 { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8174 test -n "$OCAMLDOC" && break
8178 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8179 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8180 if test "${llvm_cv_link_use_r+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 ac_cpp='$CPP $CPPFLAGS'
8185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8190 CFLAGS="$CFLAGS -Wl,-R."
8191 cat >conftest.$ac_ext <<_ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8201 int main() { return 0; }
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (ac_try="$ac_link"
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_link") 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_try") 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 llvm_cv_link_use_r=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 llvm_cv_link_use_r=no
8248 rm -f core conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8252 ac_cpp='$CPP $CPPFLAGS'
8253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8260 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8261 if test "$llvm_cv_link_use_r" = yes ; then
8263 cat >>confdefs.h <<\_ACEOF
8264 #define HAVE_LINK_R 1
8272 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8273 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8274 if test "${ac_cv_c_const+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8287 /* FIXME: Include the comments suggested by Paul. */
8289 /* Ultrix mips cc rejects this. */
8290 typedef int charset[2];
8292 /* SunOS 4.1.1 cc rejects this. */
8293 char const *const *ccp;
8295 /* NEC SVR4.0.2 mips cc rejects this. */
8296 struct point {int x, y;};
8297 static struct point const zero = {0,0};
8298 /* AIX XL C 1.02.0.0 rejects this.
8299 It does not let you subtract one const X* pointer from another in
8300 an arm of an if-expression whose if-part is not a constant
8302 const char *g = "string";
8303 ccp = &g + (g ? g-g : 0);
8304 /* HPUX 7.0 cc rejects these. */
8307 ccp = (char const *const *) p;
8308 { /* SCO 3.2v4 cc rejects this. */
8310 char const *s = 0 ? (char *) 0 : (char const *) 0;
8315 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8317 const int *foo = &x[0];
8320 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8321 typedef const int *iptr;
8325 { /* AIX XL C 1.02.0.0 rejects this saying
8326 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8327 struct s { int j; const int *ap[3]; };
8328 struct s *b; b->j = 5;
8330 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8334 return !x[0] && !zero.x;
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_compile") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8386 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8387 if test $ac_cv_c_const = no; then
8389 cat >>confdefs.h <<\_ACEOF
8401 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8402 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8403 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8404 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 #include <sys/types.h>
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_compile") 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 eval "$as_ac_Header=yes"
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 eval "$as_ac_Header=no"
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 ac_res=`eval echo '${'$as_ac_Header'}'`
8471 { echo "$as_me:$LINENO: result: $ac_res" >&5
8472 echo "${ECHO_T}$ac_res" >&6; }
8473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8474 cat >>confdefs.h <<_ACEOF
8475 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8478 ac_header_dirent=$ac_hdr; break
8482 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8483 if test $ac_header_dirent = dirent.h; then
8484 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8486 if test "${ac_cv_search_opendir+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_func_search_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 /* Override any GCC internal prototype to avoid an error.
8498 Use char because int might match the return type of a GCC
8499 builtin and then its argument prototype would still apply. */
8512 for ac_lib in '' dir; do
8513 if test -z "$ac_lib"; then
8514 ac_res="none required"
8517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_link") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_try") 2>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 ac_cv_search_opendir=$ac_res
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext \
8563 if test "${ac_cv_search_opendir+set}" = set; then
8567 if test "${ac_cv_search_opendir+set}" = set; then
8570 ac_cv_search_opendir=no
8573 LIBS=$ac_func_search_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8585 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8586 if test "${ac_cv_search_opendir+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 ac_func_search_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8612 for ac_lib in '' x; do
8613 if test -z "$ac_lib"; then
8614 ac_res="none required"
8617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1 >conftest.err
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634 { (case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_try") 2>&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_search_opendir=$ac_res
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8661 rm -f core conftest.err conftest.$ac_objext \
8663 if test "${ac_cv_search_opendir+set}" = set; then
8667 if test "${ac_cv_search_opendir+set}" = set; then
8670 ac_cv_search_opendir=no
8673 LIBS=$ac_func_search_save_LIBS
8675 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8676 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8677 ac_res=$ac_cv_search_opendir
8678 if test "$ac_res" != no; then
8679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8686 for ac_header in dlfcn.h
8688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 ac_res=`eval echo '${'$as_ac_Header'}'`
8696 { echo "$as_me:$LINENO: result: $ac_res" >&5
8697 echo "${ECHO_T}$ac_res" >&6; }
8699 # Is the header compilable?
8700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 $ac_includes_default
8709 #include <$ac_header>
8711 rm -f conftest.$ac_objext
8712 if { (ac_try="$ac_compile"
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_compile") 2>conftest.er1
8720 grep -v '^ *+' conftest.er1 >conftest.err
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8726 { (case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_try") 2>&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; } &&
8735 { ac_try='test -s conftest.$ac_objext'
8736 { (case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_try") 2>&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_header_compiler=yes
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 ac_header_compiler=no
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8755 echo "${ECHO_T}$ac_header_compiler" >&6; }
8757 # Is the header present?
8758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8760 cat >conftest.$ac_ext <<_ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 #include <$ac_header>
8768 if { (ac_try="$ac_cpp conftest.$ac_ext"
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } >/dev/null; then
8781 if test -s conftest.err; then
8782 ac_cpp_err=$ac_c_preproc_warn_flag
8783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8790 if test -z "$ac_cpp_err"; then
8791 ac_header_preproc=yes
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8796 ac_header_preproc=no
8799 rm -f conftest.err conftest.$ac_ext
8800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8801 echo "${ECHO_T}$ac_header_preproc" >&6; }
8803 # So? What about this header?
8804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8810 ac_header_preproc=yes
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8826 ## ----------------------------------- ##
8827 ## Report this to llvmbugs@cs.uiuc.edu ##
8828 ## ----------------------------------- ##
8830 ) | sed "s/^/$as_me: WARNING: /" >&2
8833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 eval "$as_ac_Header=\$ac_header_preproc"
8840 ac_res=`eval echo '${'$as_ac_Header'}'`
8841 { echo "$as_me:$LINENO: result: $ac_res" >&5
8842 echo "${ECHO_T}$ac_res" >&6; }
8845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8846 cat >>confdefs.h <<_ACEOF
8847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8854 # Check whether --enable-ltdl-install was given.
8855 if test "${enable_ltdl_install+set}" = set; then
8856 enableval=$enable_ltdl_install;
8862 if test x"${enable_ltdl_install-no}" != xno; then
8864 INSTALL_LTDL_FALSE='#'
8866 INSTALL_LTDL_TRUE='#'
8872 if test x"${enable_ltdl_convenience-no}" != xno; then
8873 CONVENIENCE_LTDL_TRUE=
8874 CONVENIENCE_LTDL_FALSE='#'
8876 CONVENIENCE_LTDL_TRUE='#'
8877 CONVENIENCE_LTDL_FALSE=
8881 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8884 libname_spec='lib$name'
8892 shlibpath_overrides_runpath=unknown
8894 dynamic_linker="$host_os ld.so"
8895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8896 if test "$GCC" = yes; then
8897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8898 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8899 # if the path contains ";" then we assume it to be the separator
8900 # otherwise default to the standard path separator (i.e. ":") - it is
8901 # assumed that no part of a normal pathname contains ";" but that should
8902 # okay in the real world where ";" in dirpaths is itself problematic.
8903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8910 need_lib_prefix=unknown
8911 hardcode_into_libs=no
8913 # when you set need_version to no, make sure it does not cause -set_version
8914 # flags to be left without arguments
8915 need_version=unknown
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8921 shlibpath_var=LIBPATH
8923 # AIX 3 has no versioning support, so we append a major version to the name.
8924 soname_spec='${libname}${release}${shared_ext}$major'
8931 hardcode_into_libs=yes
8932 if test "$host_cpu" = ia64; then
8933 # AIX 5 supports IA64
8934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8935 shlibpath_var=LD_LIBRARY_PATH
8937 # With GCC up to 2.95.x, collect2 would create an import file
8938 # for dependence libraries. The import file would start with
8939 # the line `#! .'. This would cause the generated library to
8940 # depend on `.', always an invalid library. This was fixed in
8941 # development snapshots of GCC prior to 3.0.
8943 aix4 | aix4.[01] | aix4.[01].*)
8944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8946 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8954 # soname into executable. Probably we can add versioning support to
8955 # collect2, so additional links can be useful in future.
8956 if test "$aix_use_runtimelinking" = yes; then
8957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8958 # instead of lib<name>.a to let people know that these are not
8959 # typical AIX shared libraries.
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 # We preserve .a as extension for shared libraries through AIX4.2
8963 # and later when we are not doing run time linking.
8964 library_names_spec='${libname}${release}.a $libname.a'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LIBPATH
8972 library_names_spec='$libname.ixlibrary $libname.a'
8973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8974 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'
8978 library_names_spec='${libname}${shared_ext}'
8979 dynamic_linker="$host_os ld.so"
8980 shlibpath_var=LIBRARY_PATH
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8992 # the default ld.so.conf also contains /usr/contrib/lib and
8993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8994 # libtool to hard-code these into programs
8997 cygwin* | mingw* | pw32*)
8998 version_type=windows
9003 case $GCC,$host_os in
9004 yes,cygwin* | yes,mingw* | yes,pw32*)
9005 library_names_spec='$libname.dll.a'
9006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9007 postinstall_cmds='base_file=`basename \${file}`~
9008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9009 dldir=$destdir/`dirname \$dlpath`~
9010 test -d \$dldir || mkdir -p \$dldir~
9011 $install_prog $dir/$dlname \$dldir/$dlname~
9012 chmod a+x \$dldir/$dlname'
9013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9014 dlpath=$dir/\$dldll~
9016 shlibpath_overrides_runpath=yes
9020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9022 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9025 # MinGW DLLs use traditional 'lib' prefix
9026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9028 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9029 # It is most probably a Windows format PATH printed by
9030 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9031 # path with ; separators, and with drive letters. We can handle the
9032 # drive letters (cygwin fileutils understands them), so leave them,
9033 # especially as we might pass files found there to a mingw objdump,
9034 # which wouldn't understand a cygwinified path. Ahh.
9035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9041 # pw32 DLLs use 'pw' prefix rather than 'lib'
9042 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9051 dynamic_linker='Win32 ld.exe'
9052 # FIXME: first we should search . and the directory the executable is in
9056 darwin* | rhapsody*)
9057 dynamic_linker="$host_os dyld"
9061 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9062 soname_spec='${libname}${release}${major}$shared_ext'
9063 shlibpath_overrides_runpath=yes
9064 shlibpath_var=DYLD_LIBRARY_PATH
9065 shrext_cmds='.dylib'
9066 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9067 if test "$GCC" = yes; then
9068 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"`
9070 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=no
9096 hardcode_into_libs=yes
9097 dynamic_linker='GNU ld.so'
9100 freebsd* | dragonfly*)
9101 # DragonFly does not have aout. When/if they implement a new
9102 # versioning mechanism, adjust this.
9103 if test -x /usr/bin/objformat; then
9104 objformat=`/usr/bin/objformat`
9107 freebsd[123]*) objformat=aout ;;
9111 version_type=freebsd-$objformat
9112 case $version_type in
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9123 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=yes
9128 freebsd3.[01]* | freebsdelf3.[01]*)
9129 shlibpath_overrides_runpath=yes
9130 hardcode_into_libs=yes
9132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9134 shlibpath_overrides_runpath=no
9135 hardcode_into_libs=yes
9137 freebsd*) # from 4.6 on
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 hardcode_into_libs=yes
9154 hpux9* | hpux10* | hpux11*)
9155 # Give a soname corresponding to the major version so that dld.sl refuses to
9156 # link against other versions.
9163 hardcode_into_libs=yes
9164 dynamic_linker="$host_os dld.so"
9165 shlibpath_var=LD_LIBRARY_PATH
9166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 if test "X$HPUX_IA64_MODE" = X32; then
9170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9178 hardcode_into_libs=yes
9179 dynamic_linker="$host_os dld.sl"
9180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9189 dynamic_linker="$host_os dld.sl"
9190 shlibpath_var=SHLIB_PATH
9191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9197 postinstall_cmds='chmod 555 $lib'
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=no
9209 hardcode_into_libs=yes
9212 irix5* | irix6* | nonstopux*)
9214 nonstopux*) version_type=nonstopux ;;
9216 if test "$lt_cv_prog_gnu_ld" = yes; then
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9227 irix5* | nonstopux*)
9231 case $LD in # libtool.m4 will add one of these switches to LD
9232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9233 libsuff= shlibsuff= libmagic=32-bit;;
9234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9235 libsuff=32 shlibsuff=N32 libmagic=N32;;
9236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9238 *) libsuff= shlibsuff= libmagic=never-match;;
9242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9243 shlibpath_overrides_runpath=no
9244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9246 hardcode_into_libs=yes
9249 # No shared lib support for Linux oldld, aout, or coff.
9250 linux*oldld* | linux*aout* | linux*coff*)
9254 # This must be Linux ELF.
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 shlibpath_overrides_runpath=no
9264 # This implies no fast_install, which is unacceptable.
9265 # Some rework will be needed to allow for fast_install
9266 # before this can be enabled.
9267 hardcode_into_libs=yes
9269 # Append ld.so.conf contents to the search path
9270 if test -f /etc/ld.so.conf; then
9271 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' ' '`
9272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9275 # We used to test for /lib/ld.so.1 and disable shared libraries on
9276 # powerpc, because MkLinux only supported shared libraries with the
9277 # GNU dynamic linker. Since this was broken with cross compilers,
9278 # most powerpc-linux boxes support dynamic linking these days and
9279 # people can always --disable-shared, the test was removed, and we
9280 # assume the GNU/Linux dynamic linker is in use.
9281 dynamic_linker='GNU/Linux ld.so'
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9293 dynamic_linker='GNU ld.so'
9300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9303 dynamic_linker='NetBSD (a.out) ld.so'
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 dynamic_linker='NetBSD ld.elf_so'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9311 hardcode_into_libs=yes
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9333 sys_lib_dlsearch_path_spec="/usr/lib"
9335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9338 *) need_version=no ;;
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9345 openbsd2.[89] | openbsd2.[89].*)
9346 shlibpath_overrides_runpath=no
9349 shlibpath_overrides_runpath=yes
9353 shlibpath_overrides_runpath=yes
9358 libname_spec='$name'
9361 library_names_spec='$libname${shared_ext} $libname.a'
9362 dynamic_linker='OS/2 ld.exe'
9363 shlibpath_var=LIBPATH
9366 osf3* | osf4* | osf5*)
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9385 hardcode_into_libs=yes
9386 # ldd complains unless libraries are executable
9387 postinstall_cmds='chmod +x $lib'
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 if test "$with_gnu_ld" = yes; then
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 case $host_vendor in
9409 shlibpath_overrides_runpath=no
9411 export_dynamic_flag_spec='${wl}-Blargedynsym'
9412 runpath_var=LD_RUN_PATH
9420 shlibpath_overrides_runpath=no
9421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9427 if test -d /usr/nec ;then
9429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9430 soname_spec='$libname${shared_ext}.$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9436 version_type=freebsd-elf
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 hardcode_into_libs=yes
9443 if test "$with_gnu_ld" = yes; then
9444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445 shlibpath_overrides_runpath=no
9447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9448 shlibpath_overrides_runpath=yes
9451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9455 sys_lib_dlsearch_path_spec='/usr/lib'
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LD_LIBRARY_PATH
9469 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9470 echo "${ECHO_T}$dynamic_linker" >&6; }
9471 test "$dynamic_linker" = no && can_build_shared=no
9473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9474 if test "$GCC" = yes; then
9475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9479 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9480 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9481 if test "${libltdl_cv_shlibext+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 eval libltdl_cv_shlibext=$shrext_cmds
9489 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9490 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9491 if test -n "$libltdl_cv_shlibext"; then
9493 cat >>confdefs.h <<_ACEOF
9494 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9500 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9501 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9502 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 libltdl_cv_shlibpath_var="$shlibpath_var"
9507 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9508 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9509 if test -n "$libltdl_cv_shlibpath_var"; then
9511 cat >>confdefs.h <<_ACEOF
9512 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9518 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9519 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9520 if test "${libltdl_cv_sys_search_path+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9525 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9526 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9527 if test -n "$libltdl_cv_sys_search_path"; then
9529 for dir in $libltdl_cv_sys_search_path; do
9530 if test -z "$sys_search_path"; then
9531 sys_search_path="$dir"
9533 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9537 cat >>confdefs.h <<_ACEOF
9538 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9543 { echo "$as_me:$LINENO: checking for objdir" >&5
9544 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9545 if test "${libltdl_cv_objdir+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 libltdl_cv_objdir="$objdir"
9549 if test -n "$objdir"; then
9552 rm -f .libs 2>/dev/null
9553 mkdir .libs 2>/dev/null
9554 if test -d .libs; then
9555 libltdl_cv_objdir=.libs
9557 # MS-DOS does not allow filenames that begin with a dot.
9558 libltdl_cv_objdir=_libs
9560 rmdir .libs 2>/dev/null
9564 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9565 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9567 cat >>confdefs.h <<_ACEOF
9568 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9576 # Check for command to grab the raw symbol name followed by C symbol from nm.
9577 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9578 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9579 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 # These are sane defaults that work on at least a few old systems.
9584 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9586 # Character class describing NM global symbol codes.
9587 symcode='[BCDEGRST]'
9589 # Regexp to match symbols that can be accessed directly from C.
9590 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9592 # Transform an extracted symbol line into a proper C declaration
9593 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9595 # Transform an extracted symbol line into symbol name and symbol address
9596 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'"
9598 # Define system-specific variables.
9603 cygwin* | mingw* | pw32*)
9604 symcode='[ABCDGISTW]'
9606 hpux*) # Its linker distinguishes data from code symbols
9607 if test "$host_cpu" = ia64; then
9608 symcode='[ABCDEGRST]'
9610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9611 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9614 if test "$host_cpu" = ia64; then
9615 symcode='[ABCDGIRSTW]'
9616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9617 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'"
9621 symcode='[BCDEGRST]'
9624 symcode='[BCDEGQRST]'
9635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9643 # Handle CRLF in mingw tool chain
9647 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9651 # If we're using GNU nm, then use its standard symbol codes.
9652 case `$NM -V 2>&1` in
9653 *GNU* | *'with BFD'*)
9654 symcode='[ABCDGIRSTW]' ;;
9657 # Try without a prefix undercore, then with it.
9658 for ac_symprfx in "" "_"; do
9660 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9661 symxfrm="\\1 $ac_symprfx\\2 \\2"
9663 # Write the raw and C identifiers.
9664 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9666 # Check to see that the pipe works correctly.
9670 cat > conftest.$ac_ext <<EOF
9675 void nm_test_func(){}
9679 int main(){nm_test_var='a';nm_test_func();return(0);}
9682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683 (eval $ac_compile) 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; then
9687 # Now try to grab the symbols.
9689 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9690 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && test -s "$nlist"; then
9694 # Try sorting and uniquifying the output.
9695 if sort "$nlist" | uniq > "$nlist"T; then
9696 mv -f "$nlist"T "$nlist"
9701 # Make sure that we snagged all the symbols we need.
9702 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9703 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9704 cat <<EOF > conftest.$ac_ext
9710 # Now generate the symbol file.
9711 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9713 cat <<EOF >> conftest.$ac_ext
9714 #if defined (__STDC__) && __STDC__
9715 # define lt_ptr_t void *
9717 # define lt_ptr_t char *
9721 /* The mapping between symbol names and symbols. */
9726 lt_preloaded_symbols[] =
9729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9730 cat <<\EOF >> conftest.$ac_ext
9738 # Now try linking the two files.
9739 mv conftest.$ac_objext conftstm.$ac_objext
9740 lt_save_LIBS="$LIBS"
9741 lt_save_CFLAGS="$CFLAGS"
9742 LIBS="conftstm.$ac_objext"
9743 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9751 LIBS="$lt_save_LIBS"
9752 CFLAGS="$lt_save_CFLAGS"
9754 echo "cannot find nm_test_func in $nlist" >&5
9757 echo "cannot find nm_test_var in $nlist" >&5
9760 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9763 echo "$progname: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9766 rm -f conftest* conftst*
9768 # Do not use the global_symbol_pipe unless it works.
9769 if test "$pipe_works" = yes; then
9772 lt_cv_sys_global_symbol_pipe=
9778 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9779 lt_cv_sys_global_symbol_to_cdecl=
9781 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9782 { echo "$as_me:$LINENO: result: failed" >&5
9783 echo "${ECHO_T}failed" >&6; }
9785 { echo "$as_me:$LINENO: result: ok" >&5
9786 echo "${ECHO_T}ok" >&6; }
9790 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9791 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9792 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9796 libltdl_cv_preloaded_symbols=yes
9798 libltdl_cv_preloaded_symbols=no
9802 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9803 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9804 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_PRELOADED_SYMBOLS 1
9815 ac_cpp='$CPP $CPPFLAGS'
9816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9821 { echo "$as_me:$LINENO: checking for shl_load" >&5
9822 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9823 if test "${ac_cv_func_shl_load+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9834 #define shl_load innocuous_shl_load
9836 /* System header to define __stub macros and hopefully few prototypes,
9837 which can conflict with char shl_load (); below.
9838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9839 <limits.h> exists even on freestanding compilers. */
9842 # include <limits.h>
9844 # include <assert.h>
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined __stub_shl_load || defined __stub___shl_load
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_link") 2>conftest.er1
9880 grep -v '^ *+' conftest.er1 >conftest.err
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; } &&
9895 { ac_try='test -s conftest$ac_exeext'
9896 { (case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_try") 2>&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_func_shl_load=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_cv_func_shl_load=no
9913 rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9917 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9918 if test $ac_cv_func_shl_load = yes; then
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_SHL_LOAD 1
9925 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9926 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9927 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 ac_check_lib_save_LIBS=$LIBS
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9963 grep -v '^ *+' conftest.er1 >conftest.err
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_lib_dld_shl_load=yes
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_lib_dld_shl_load=no
9996 rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
10000 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10001 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10002 if test $ac_cv_lib_dld_shl_load = yes; then
10004 cat >>confdefs.h <<\_ACEOF
10005 #define HAVE_SHL_LOAD 1
10008 LIBADD_DL="$LIBADD_DL -ldld"
10010 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 ac_check_lib_save_LIBS=$LIBS
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10024 /* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_lib_dl_dlopen=yes
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_lib_dl_dlopen=no
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10087 if test $ac_cv_lib_dl_dlopen = yes; then
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_LIBDL 1
10093 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10095 cat >conftest.$ac_ext <<_ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10102 # include <dlfcn.h>
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10148 cat >>confdefs.h <<\_ACEOF
10149 #define HAVE_LIBDL 1
10151 libltdl_cv_func_dlopen="yes"
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10157 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10158 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 ac_check_lib_save_LIBS=$LIBS
10162 LIBS="-lsvld $LIBS"
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10170 /* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (ac_try="$ac_link"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_link") 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10200 { (case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_try") 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest$ac_exeext'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_lib_svld_dlopen=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_lib_svld_dlopen=no
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10232 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10233 if test $ac_cv_lib_svld_dlopen = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define HAVE_LIBDL 1
10239 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10241 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10242 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10243 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 ac_check_lib_save_LIBS=$LIBS
10248 cat >conftest.$ac_ext <<_ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10255 /* Override any GCC internal prototype to avoid an error.
10256 Use char because int might match the return type of a GCC
10257 builtin and then its argument prototype would still apply. */
10265 return dld_link ();
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest$ac_exeext'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_cv_lib_dld_dld_link=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_cv_lib_dld_dld_link=no
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10316 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10317 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10318 if test $ac_cv_lib_dld_dld_link = yes; then
10320 cat >>confdefs.h <<\_ACEOF
10324 LIBADD_DL="$LIBADD_DL -ldld"
10326 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10327 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10328 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10339 #define _dyld_func_lookup innocuous__dyld_func_lookup
10341 /* System header to define __stub macros and hopefully few prototypes,
10342 which can conflict with char _dyld_func_lookup (); below.
10343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344 <limits.h> exists even on freestanding compilers. */
10347 # include <limits.h>
10349 # include <assert.h>
10352 #undef _dyld_func_lookup
10354 /* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
10360 char _dyld_func_lookup ();
10361 /* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
10364 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10371 return _dyld_func_lookup ();
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_cv_func__dyld_func_lookup=yes
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_cv_func__dyld_func_lookup=no
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10421 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10422 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10423 if test $ac_cv_func__dyld_func_lookup = yes; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_DYLD 1
10440 rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10452 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10454 lt_save_LIBS="$LIBS"
10455 LIBS="$LIBS $LIBADD_DL"
10457 for ac_func in dlerror
10459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10473 #define $ac_func innocuous_$ac_func
10475 /* System header to define __stub macros and hopefully few prototypes,
10476 which can conflict with char $ac_func (); below.
10477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478 <limits.h> exists even on freestanding compilers. */
10481 # include <limits.h>
10483 # include <assert.h>
10488 /* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
10495 /* The GNU C library defines this for functions which it implements
10496 to always fail with ENOSYS. Some functions are actually named
10497 something starting with __ and the normal name is an alias. */
10498 #if defined __stub_$ac_func || defined __stub___$ac_func
10505 return $ac_func ();
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 eval "$as_ac_var=yes"
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 eval "$as_ac_var=no"
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10555 ac_res=`eval echo '${'$as_ac_var'}'`
10556 { echo "$as_me:$LINENO: result: $ac_res" >&5
10557 echo "${ECHO_T}$ac_res" >&6; }
10558 if test `eval echo '${'$as_ac_var'}'` = yes; then
10559 cat >>confdefs.h <<_ACEOF
10560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10566 LIBS="$lt_save_LIBS"
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10577 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10578 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 ac_cv_sys_symbol_underscore=no
10582 cat > conftest.$ac_ext <<EOF
10583 void nm_test_func(){}
10584 int main(){nm_test_func;return 0;}
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; then
10591 # Now try to grab the symbols.
10592 ac_nlist=conftest.nm
10593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && test -s "$ac_nlist"; then
10598 # See whether the symbols have a leading underscore.
10599 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10600 ac_cv_sys_symbol_underscore=yes
10602 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10605 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10609 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10612 echo "configure: failed program was:" >&5
10618 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10619 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10622 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10623 if test x"$libltdl_cv_func_dlopen" = xyes ||
10624 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10625 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10626 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10627 if test "${libltdl_cv_need_uscore+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 libltdl_cv_need_uscore=unknown
10632 LIBS="$LIBS $LIBADD_DL"
10633 if test "$cross_compiling" = yes; then :
10634 libltdl_cv_need_uscore=cross
10636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10637 lt_status=$lt_dlunknown
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10639 "configure"
10640 #include "confdefs.h"
10649 # define LT_DLGLOBAL RTLD_GLOBAL
10652 # define LT_DLGLOBAL DL_GLOBAL
10654 # define LT_DLGLOBAL 0
10658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10659 find out it does not work in some platform. */
10660 #ifndef LT_DLLAZY_OR_NOW
10662 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10665 # define LT_DLLAZY_OR_NOW DL_LAZY
10668 # define LT_DLLAZY_OR_NOW RTLD_NOW
10671 # define LT_DLLAZY_OR_NOW DL_NOW
10673 # define LT_DLLAZY_OR_NOW 0
10681 extern "C" void exit (int);
10684 void fnord() { int i=42;}
10687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10688 int status = $lt_dlunknown;
10692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10694 /* dlclose (self); */
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703 (eval $ac_link) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10707 (./conftest; exit; ) >&5 2>/dev/null
10709 case x$lt_status in
10710 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10711 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10712 x$lt_dlunknown|x*) ;;
10715 # compilation failed
10724 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10725 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10729 if test x"$libltdl_cv_need_uscore" = xyes; then
10731 cat >>confdefs.h <<\_ACEOF
10732 #define NEED_USCORE 1
10738 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10739 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10740 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 # PORTME does your system automatically load deplibs for dlopen?
10744 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10745 # For now, we just catch OSes we know something about -- in the
10746 # future, we'll try test this programmatically.
10747 libltdl_cv_sys_dlopen_deplibs=unknown
10749 aix3*|aix4.1.*|aix4.2.*)
10750 # Unknown whether this is true for these versions of AIX, but
10751 # we want this `case' here to explicitly catch those versions.
10752 libltdl_cv_sys_dlopen_deplibs=unknown
10755 libltdl_cv_sys_dlopen_deplibs=yes
10758 # Assuming the user has installed a libdl from somewhere, this is true
10759 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10760 libltdl_cv_sys_dlopen_deplibs=yes
10762 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10763 # GNU and its variants, using gnu ld.so (Glibc)
10764 libltdl_cv_sys_dlopen_deplibs=yes
10767 libltdl_cv_sys_dlopen_deplibs=yes
10770 libltdl_cv_sys_dlopen_deplibs=yes
10772 irix[12345]*|irix6.[01]*)
10773 # Catch all versions of IRIX before 6.2, and indicate that we don't
10774 # know how it worked for any of those versions.
10775 libltdl_cv_sys_dlopen_deplibs=unknown
10778 # The case above catches anything before 6.2, and it's known that
10779 # at 6.2 and later dlopen does load deplibs.
10780 libltdl_cv_sys_dlopen_deplibs=yes
10783 libltdl_cv_sys_dlopen_deplibs=yes
10786 libltdl_cv_sys_dlopen_deplibs=yes
10789 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10790 # it did *not* use an RPATH in a shared library to find objects the
10791 # library depends on, so we explictly say `no'.
10792 libltdl_cv_sys_dlopen_deplibs=no
10794 osf5.0|osf5.0a|osf5.1)
10795 # dlopen *does* load deplibs and with the right loader patch applied
10796 # it even uses RPATH in a shared library to search for shared objects
10797 # that the library depends on, but there's no easy way to know if that
10798 # patch is installed. Since this is the case, all we can really
10799 # say is unknown -- it depends on the patch being installed. If
10800 # it is, this changes to `yes'. Without it, it would be `no'.
10801 libltdl_cv_sys_dlopen_deplibs=unknown
10804 # the two cases above should catch all versions of osf <= 5.1. Read
10805 # the comments above for what we know about them.
10806 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10807 # is used to find them so we can finally say `yes'.
10808 libltdl_cv_sys_dlopen_deplibs=yes
10811 libltdl_cv_sys_dlopen_deplibs=yes
10813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10814 libltdl_cv_sys_dlopen_deplibs=yes
10819 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10820 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10821 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10823 cat >>confdefs.h <<\_ACEOF
10824 #define LTDL_DLOPEN_DEPLIBS 1
10830 for ac_header in argz.h
10832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 ac_res=`eval echo '${'$as_ac_Header'}'`
10840 { echo "$as_me:$LINENO: result: $ac_res" >&5
10841 echo "${ECHO_T}$ac_res" >&6; }
10843 # Is the header compilable?
10844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 $ac_includes_default
10853 #include <$ac_header>
10855 rm -f conftest.$ac_objext
10856 if { (ac_try="$ac_compile"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_compile") 2>conftest.er1
10864 grep -v '^ *+' conftest.er1 >conftest.err
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try='test -s conftest.$ac_objext'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_header_compiler=yes
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10894 ac_header_compiler=no
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899 echo "${ECHO_T}$ac_header_compiler" >&6; }
10901 # Is the header present?
10902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10904 cat >conftest.$ac_ext <<_ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <$ac_header>
10912 if { (ac_try="$ac_cpp conftest.$ac_ext"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } >/dev/null; then
10925 if test -s conftest.err; then
10926 ac_cpp_err=$ac_c_preproc_warn_flag
10927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10934 if test -z "$ac_cpp_err"; then
10935 ac_header_preproc=yes
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 ac_header_preproc=no
10943 rm -f conftest.err conftest.$ac_ext
10944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10945 echo "${ECHO_T}$ac_header_preproc" >&6; }
10947 # So? What about this header?
10948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10954 ac_header_preproc=yes
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10970 ## ----------------------------------- ##
10971 ## Report this to llvmbugs@cs.uiuc.edu ##
10972 ## ----------------------------------- ##
10974 ) | sed "s/^/$as_me: WARNING: /" >&2
10977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 eval "$as_ac_Header=\$ac_header_preproc"
10984 ac_res=`eval echo '${'$as_ac_Header'}'`
10985 { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10990 cat >>confdefs.h <<_ACEOF
10991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10999 { echo "$as_me:$LINENO: checking for error_t" >&5
11000 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11001 if test "${ac_cv_type_error_t+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 cat >conftest.$ac_ext <<_ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11014 typedef error_t ac__type_new_;
11018 if ((ac__type_new_ *) 0)
11020 if (sizeof (ac__type_new_))
11026 rm -f conftest.$ac_objext
11027 if { (ac_try="$ac_compile"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_compile") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; } &&
11050 { ac_try='test -s conftest.$ac_objext'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_type_error_t=yes
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_cv_type_error_t=no
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11071 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11072 if test $ac_cv_type_error_t = yes; then
11074 cat >>confdefs.h <<_ACEOF
11075 #define HAVE_ERROR_T 1
11081 cat >>confdefs.h <<\_ACEOF
11082 #define error_t int
11093 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109 #define $ac_func innocuous_$ac_func
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func (); below.
11113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114 <limits.h> exists even on freestanding compilers. */
11117 # include <limits.h>
11119 # include <assert.h>
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11131 /* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134 #if defined __stub_$ac_func || defined __stub___$ac_func
11141 return $ac_func ();
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_link") 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11161 { (case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_try") 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 eval "$as_ac_var=yes"
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11185 eval "$as_ac_var=no"
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11191 ac_res=`eval echo '${'$as_ac_var'}'`
11192 { echo "$as_me:$LINENO: result: $ac_res" >&5
11193 echo "${ECHO_T}$ac_res" >&6; }
11194 if test `eval echo '${'$as_ac_var'}'` = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11229 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_header_compiler=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_header_compiler=no
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <$ac_header>
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11334 if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11370 ## ----------------------------------- ##
11371 ## Report this to llvmbugs@cs.uiuc.edu ##
11372 ## ----------------------------------- ##
11374 ) | sed "s/^/$as_me: WARNING: /" >&2
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 eval "$as_ac_Header=\$ac_header_preproc"
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11402 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 ac_res=`eval echo '${'$as_ac_Header'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11415 # Is the header compilable?
11416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11418 cat >conftest.$ac_ext <<_ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 $ac_includes_default
11425 #include <$ac_header>
11427 rm -f conftest.$ac_objext
11428 if { (ac_try="$ac_compile"
11429 case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_compile") 2>conftest.er1
11436 grep -v '^ *+' conftest.er1 >conftest.err
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_header_compiler=yes
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_header_compiler=no
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11471 echo "${ECHO_T}$ac_header_compiler" >&6; }
11473 # Is the header present?
11474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11476 cat >conftest.$ac_ext <<_ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 #include <$ac_header>
11484 if { (ac_try="$ac_cpp conftest.$ac_ext"
11485 case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } >/dev/null; then
11497 if test -s conftest.err; then
11498 ac_cpp_err=$ac_c_preproc_warn_flag
11499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11506 if test -z "$ac_cpp_err"; then
11507 ac_header_preproc=yes
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ac_header_preproc=no
11515 rm -f conftest.err conftest.$ac_ext
11516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517 echo "${ECHO_T}$ac_header_preproc" >&6; }
11519 # So? What about this header?
11520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526 ac_header_preproc=yes
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542 ## ----------------------------------- ##
11543 ## Report this to llvmbugs@cs.uiuc.edu ##
11544 ## ----------------------------------- ##
11546 ) | sed "s/^/$as_me: WARNING: /" >&2
11549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 eval "$as_ac_Header=\$ac_header_preproc"
11556 ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11572 for ac_header in string.h strings.h
11574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11585 # Is the header compilable?
11586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 $ac_includes_default
11595 #include <$ac_header>
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_header_compiler=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ac_header_compiler=no
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641 echo "${ECHO_T}$ac_header_compiler" >&6; }
11643 # Is the header present?
11644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include <$ac_header>
11654 if { (ac_try="$ac_cpp conftest.$ac_ext"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } >/dev/null; then
11667 if test -s conftest.err; then
11668 ac_cpp_err=$ac_c_preproc_warn_flag
11669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11676 if test -z "$ac_cpp_err"; then
11677 ac_header_preproc=yes
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 ac_header_preproc=no
11685 rm -f conftest.err conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687 echo "${ECHO_T}$ac_header_preproc" >&6; }
11689 # So? What about this header?
11690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 ac_header_preproc=yes
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11712 ## ----------------------------------- ##
11713 ## Report this to llvmbugs@cs.uiuc.edu ##
11714 ## ----------------------------------- ##
11716 ) | sed "s/^/$as_me: WARNING: /" >&2
11719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 eval "$as_ac_Header=\$ac_header_preproc"
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732 cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11743 for ac_func in strchr index
11745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11759 #define $ac_func innocuous_$ac_func
11761 /* System header to define __stub macros and hopefully few prototypes,
11762 which can conflict with char $ac_func (); below.
11763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11764 <limits.h> exists even on freestanding compilers. */
11767 # include <limits.h>
11769 # include <assert.h>
11774 /* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
11781 /* The GNU C library defines this for functions which it implements
11782 to always fail with ENOSYS. Some functions are actually named
11783 something starting with __ and the normal name is an alias. */
11784 #if defined __stub_$ac_func || defined __stub___$ac_func
11791 return $ac_func ();
11796 rm -f conftest.$ac_objext conftest$ac_exeext
11797 if { (ac_try="$ac_link"
11798 case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_link") 2>conftest.er1
11805 grep -v '^ *+' conftest.er1 >conftest.err
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11811 { (case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_try") 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try='test -s conftest$ac_exeext'
11821 { (case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_try") 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; }; then
11830 eval "$as_ac_var=yes"
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 eval "$as_ac_var=no"
11838 rm -f core conftest.err conftest.$ac_objext \
11839 conftest$ac_exeext conftest.$ac_ext
11841 ac_res=`eval echo '${'$as_ac_var'}'`
11842 { echo "$as_me:$LINENO: result: $ac_res" >&5
11843 echo "${ECHO_T}$ac_res" >&6; }
11844 if test `eval echo '${'$as_ac_var'}'` = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11854 for ac_func in strrchr rindex
11856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 cat >conftest.$ac_ext <<_ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11870 #define $ac_func innocuous_$ac_func
11872 /* System header to define __stub macros and hopefully few prototypes,
11873 which can conflict with char $ac_func (); below.
11874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11875 <limits.h> exists even on freestanding compilers. */
11878 # include <limits.h>
11880 # include <assert.h>
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11892 /* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895 #if defined __stub_$ac_func || defined __stub___$ac_func
11902 return $ac_func ();
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (ac_try="$ac_link"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_link") 2>conftest.er1
11916 grep -v '^ *+' conftest.er1 >conftest.err
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_try") 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 eval "$as_ac_var=yes"
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11946 eval "$as_ac_var=no"
11949 rm -f core conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11952 ac_res=`eval echo '${'$as_ac_var'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11955 if test `eval echo '${'$as_ac_var'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11965 for ac_func in memcpy bcopy
11967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 cat >conftest.$ac_ext <<_ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11981 #define $ac_func innocuous_$ac_func
11983 /* System header to define __stub macros and hopefully few prototypes,
11984 which can conflict with char $ac_func (); below.
11985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11986 <limits.h> exists even on freestanding compilers. */
11989 # include <limits.h>
11991 # include <assert.h>
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
12003 /* The GNU C library defines this for functions which it implements
12004 to always fail with ENOSYS. Some functions are actually named
12005 something starting with __ and the normal name is an alias. */
12006 #if defined __stub_$ac_func || defined __stub___$ac_func
12013 return $ac_func ();
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (ac_try="$ac_link"
12020 case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_link") 2>conftest.er1
12027 grep -v '^ *+' conftest.er1 >conftest.err
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 eval "$as_ac_var=yes"
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 eval "$as_ac_var=no"
12060 rm -f core conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12063 ac_res=`eval echo '${'$as_ac_var'}'`
12064 { echo "$as_me:$LINENO: result: $ac_res" >&5
12065 echo "${ECHO_T}$ac_res" >&6; }
12066 if test `eval echo '${'$as_ac_var'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12076 for ac_func in memmove strcmp
12078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092 #define $ac_func innocuous_$ac_func
12094 /* System header to define __stub macros and hopefully few prototypes,
12095 which can conflict with char $ac_func (); below.
12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 <limits.h> exists even on freestanding compilers. */
12100 # include <limits.h>
12102 # include <assert.h>
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12114 /* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
12117 #if defined __stub_$ac_func || defined __stub___$ac_func
12124 return $ac_func ();
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (ac_try="$ac_link"
12131 case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_link") 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12144 { (case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_try") 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; } &&
12153 { ac_try='test -s conftest$ac_exeext'
12154 { (case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_try") 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
12163 eval "$as_ac_var=yes"
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 eval "$as_ac_var=no"
12171 rm -f core conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
12174 ac_res=`eval echo '${'$as_ac_var'}'`
12175 { echo "$as_me:$LINENO: result: $ac_res" >&5
12176 echo "${ECHO_T}$ac_res" >&6; }
12177 if test `eval echo '${'$as_ac_var'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12188 for ac_func in closedir opendir readdir
12190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 cat >conftest.$ac_ext <<_ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12204 #define $ac_func innocuous_$ac_func
12206 /* System header to define __stub macros and hopefully few prototypes,
12207 which can conflict with char $ac_func (); below.
12208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12209 <limits.h> exists even on freestanding compilers. */
12212 # include <limits.h>
12214 # include <assert.h>
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12226 /* The GNU C library defines this for functions which it implements
12227 to always fail with ENOSYS. Some functions are actually named
12228 something starting with __ and the normal name is an alias. */
12229 #if defined __stub_$ac_func || defined __stub___$ac_func
12236 return $ac_func ();
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (ac_try="$ac_link"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_link") 2>conftest.er1
12250 grep -v '^ *+' conftest.er1 >conftest.err
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest$ac_exeext'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 eval "$as_ac_var=yes"
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 eval "$as_ac_var=no"
12283 rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12286 ac_res=`eval echo '${'$as_ac_var'}'`
12287 { echo "$as_me:$LINENO: result: $ac_res" >&5
12288 echo "${ECHO_T}$ac_res" >&6; }
12289 if test `eval echo '${'$as_ac_var'}'` = yes; then
12290 cat >>confdefs.h <<_ACEOF
12291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 # Check whether --enable-shared was given.
12299 if test "${enable_shared+set}" = set; then
12300 enableval=$enable_shared; p=${PACKAGE-default}
12302 yes) enable_shared=yes ;;
12303 no) enable_shared=no ;;
12306 # Look at the argument we got. We use all the common list separators.
12307 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12308 for pkg in $enableval; do
12310 if test "X$pkg" = "X$p"; then
12322 # Check whether --enable-static was given.
12323 if test "${enable_static+set}" = set; then
12324 enableval=$enable_static; p=${PACKAGE-default}
12326 yes) enable_static=yes ;;
12327 no) enable_static=no ;;
12330 # Look at the argument we got. We use all the common list separators.
12331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12332 for pkg in $enableval; do
12334 if test "X$pkg" = "X$p"; then
12346 # Check whether --enable-fast-install was given.
12347 if test "${enable_fast_install+set}" = set; then
12348 enableval=$enable_fast_install; p=${PACKAGE-default}
12350 yes) enable_fast_install=yes ;;
12351 no) enable_fast_install=no ;;
12353 enable_fast_install=no
12354 # Look at the argument we got. We use all the common list separators.
12355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12356 for pkg in $enableval; do
12358 if test "X$pkg" = "X$p"; then
12359 enable_fast_install=yes
12366 enable_fast_install=yes
12370 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12371 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12372 if test "${lt_cv_path_SED+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 # Loop through the user's path and test for sed and gsed.
12376 # Then use that list of sed's as ones to test for truncation.
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12381 test -z "$as_dir" && as_dir=.
12382 for lt_ac_prog in sed gsed; do
12383 for ac_exec_ext in '' $ac_executable_extensions; do
12384 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12385 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12392 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12393 # along with /bin/sed that truncates output.
12394 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12395 test ! -f $lt_ac_sed && continue
12396 cat /dev/null > conftest.in
12398 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12399 # Check for GNU sed and select it if it is found.
12400 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12401 lt_cv_path_SED=$lt_ac_sed
12405 cat conftest.in conftest.in >conftest.tmp
12406 mv conftest.tmp conftest.in
12407 cp conftest.in conftest.nl
12409 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12410 cmp -s conftest.out conftest.nl || break
12411 # 10000 chars as input seems more than enough
12412 test $lt_ac_count -gt 10 && break
12413 lt_ac_count=`expr $lt_ac_count + 1`
12414 if test $lt_ac_count -gt $lt_ac_max; then
12415 lt_ac_max=$lt_ac_count
12416 lt_cv_path_SED=$lt_ac_sed
12423 SED=$lt_cv_path_SED
12424 { echo "$as_me:$LINENO: result: $SED" >&5
12425 echo "${ECHO_T}$SED" >&6; }
12428 # Check whether --with-gnu-ld was given.
12429 if test "${with_gnu_ld+set}" = set; then
12430 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12436 if test "$GCC" = yes; then
12437 # Check if gcc -print-prog-name=ld gives a path.
12438 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12439 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12442 # gcc leaves a trailing carriage return which upsets mingw
12443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12445 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12448 # Accept absolute paths.
12450 re_direlt='/[^/][^/]*/\.\./'
12451 # Canonicalize the pathname of ld
12452 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12453 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12454 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12456 test -z "$LD" && LD="$ac_prog"
12459 # If it fails, then pretend we aren't using GCC.
12463 # If it is relative, then search for the first ld in PATH.
12464 with_gnu_ld=unknown
12467 elif test "$with_gnu_ld" = yes; then
12468 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12469 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12471 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12472 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12474 if test "${lt_cv_path_LD+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 if test -z "$LD"; then
12478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12479 for ac_dir in $PATH; do
12481 test -z "$ac_dir" && ac_dir=.
12482 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12483 lt_cv_path_LD="$ac_dir/$ac_prog"
12484 # Check to see if the program is GNU ld. I'd rather use --version,
12485 # but apparently some variants of GNU ld only accept -v.
12486 # Break only if it was the GNU/non-GNU ld that we prefer.
12487 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12488 *GNU* | *'with BFD'*)
12489 test "$with_gnu_ld" != no && break
12492 test "$with_gnu_ld" != yes && break
12499 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12503 LD="$lt_cv_path_LD"
12504 if test -n "$LD"; then
12505 { echo "$as_me:$LINENO: result: $LD" >&5
12506 echo "${ECHO_T}$LD" >&6; }
12508 { echo "$as_me:$LINENO: result: no" >&5
12509 echo "${ECHO_T}no" >&6; }
12511 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12512 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12513 { (exit 1); exit 1; }; }
12514 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12515 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12516 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12520 case `$LD -v 2>&1 </dev/null` in
12521 *GNU* | *'with BFD'*)
12522 lt_cv_prog_gnu_ld=yes
12525 lt_cv_prog_gnu_ld=no
12529 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12530 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12531 with_gnu_ld=$lt_cv_prog_gnu_ld
12534 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12535 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12536 if test "${lt_cv_ld_reload_flag+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 lt_cv_ld_reload_flag='-r'
12541 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12542 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12543 reload_flag=$lt_cv_ld_reload_flag
12544 case $reload_flag in
12546 *) reload_flag=" $reload_flag" ;;
12548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12551 if test "$GCC" = yes; then
12552 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12559 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12560 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12561 if test "${lt_cv_deplibs_check_method+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 lt_cv_file_magic_cmd='$MAGIC_CMD'
12565 lt_cv_file_magic_test_file=
12566 lt_cv_deplibs_check_method='unknown'
12567 # Need to set the preceding variable on all platforms that support
12568 # interlibrary dependencies.
12569 # 'none' -- dependencies not supported.
12570 # `unknown' -- same as none, but documents that we really don't know.
12571 # 'pass_all' -- all dependencies passed with no checks.
12572 # 'test_compile' -- check by making test program.
12573 # 'file_magic [[regex]]' -- check by looking for files in library path
12574 # which responds to the $file_magic_cmd with a given extended regex.
12575 # If you have `file' or equivalent on your system and you're not sure
12576 # whether `pass_all' will *always* work, you probably want this one.
12580 lt_cv_deplibs_check_method=pass_all
12584 lt_cv_deplibs_check_method=pass_all
12588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12589 lt_cv_file_magic_cmd='/usr/bin/file -L'
12590 lt_cv_file_magic_test_file=/shlib/libc.so
12594 # func_win32_libid is a shell function defined in ltmain.sh
12595 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12596 lt_cv_file_magic_cmd='func_win32_libid'
12600 # Base MSYS/MinGW do not provide the 'file' command needed by
12601 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12602 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12603 lt_cv_file_magic_cmd='$OBJDUMP -f'
12606 darwin* | rhapsody*)
12607 lt_cv_deplibs_check_method=pass_all
12610 freebsd* | kfreebsd*-gnu | dragonfly*)
12611 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12614 # Not sure whether the presence of OpenBSD here was a mistake.
12615 # Let's accept both of them until this is cleared up.
12616 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12617 lt_cv_file_magic_cmd=/usr/bin/file
12618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12622 lt_cv_deplibs_check_method=pass_all
12627 lt_cv_deplibs_check_method=pass_all
12630 hpux10.20* | hpux11*)
12631 lt_cv_file_magic_cmd=/usr/bin/file
12634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12638 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]'
12639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12653 irix5* | irix6* | nonstopux*)
12655 *-32|*"-32 ") libmagic=32-bit;;
12656 *-n32|*"-n32 ") libmagic=N32;;
12657 *-64|*"-64 ") libmagic=64-bit;;
12658 *) libmagic=never-match;;
12660 lt_cv_deplibs_check_method=pass_all
12663 # This must be Linux ELF.
12665 lt_cv_deplibs_check_method=pass_all
12669 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12678 lt_cv_file_magic_cmd=/usr/bin/file
12679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12683 lt_cv_deplibs_check_method=unknown
12687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12694 osf3* | osf4* | osf5*)
12695 lt_cv_deplibs_check_method=pass_all
12699 lt_cv_deplibs_check_method=pass_all
12703 case $host_vendor in
12705 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]'
12706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12709 lt_cv_deplibs_check_method=pass_all
12712 lt_cv_file_magic_cmd='/bin/file'
12713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12716 lt_cv_file_magic_cmd='/bin/file'
12717 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12718 lt_cv_file_magic_test_file=/lib/libc.so
12721 lt_cv_deplibs_check_method=pass_all
12724 lt_cv_deplibs_check_method=pass_all
12729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12730 lt_cv_deplibs_check_method=pass_all
12735 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12736 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12737 file_magic_cmd=$lt_cv_file_magic_cmd
12738 deplibs_check_method=$lt_cv_deplibs_check_method
12739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12743 # If no C compiler was specified, use CC.
12746 # If no C compiler flags were specified, use CFLAGS.
12747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12749 # Allow CC to be a program name with arguments.
12752 # Check whether --enable-libtool-lock was given.
12753 if test "${enable_libtool_lock+set}" = set; then
12754 enableval=$enable_libtool_lock;
12757 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12759 # Some flags need to be propagated to the compiler or linker for good
12763 # Find out which ABI we are using.
12764 echo 'int i;' > conftest.$ac_ext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; then
12770 case `/usr/bin/file conftest.$ac_objext` in
12772 HPUX_IA64_MODE="32"
12775 HPUX_IA64_MODE="64"
12782 # Find out which ABI we are using.
12783 echo '#line 12783 "configure"' > conftest.$ac_ext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12785 (eval $ac_compile) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; then
12789 if test "$lt_cv_prog_gnu_ld" = yes; then
12790 case `/usr/bin/file conftest.$ac_objext` in
12792 LD="${LD-ld} -melf32bsmip"
12795 LD="${LD-ld} -melf32bmipn32"
12798 LD="${LD-ld} -melf64bmip"
12802 case `/usr/bin/file conftest.$ac_objext` in
12818 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12819 # Find out which ABI we are using.
12820 echo 'int i;' > conftest.$ac_ext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12822 (eval $ac_compile) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; then
12826 case `/usr/bin/file conftest.o` in
12830 LD="${LD-ld} -m elf_i386"
12832 ppc64-*linux*|powerpc64-*linux*)
12833 LD="${LD-ld} -m elf32ppclinux"
12836 LD="${LD-ld} -m elf_s390"
12839 LD="${LD-ld} -m elf32_sparc"
12846 LD="${LD-ld} -m elf_x86_64"
12848 ppc*-*linux*|powerpc*-*linux*)
12849 LD="${LD-ld} -m elf64ppc"
12852 LD="${LD-ld} -m elf64_s390"
12855 LD="${LD-ld} -m elf64_sparc"
12865 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12866 SAVE_CFLAGS="$CFLAGS"
12867 CFLAGS="$CFLAGS -belf"
12868 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12869 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12870 if test "${lt_cv_cc_needs_belf+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12879 cat >conftest.$ac_ext <<_ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_link") 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12909 { (case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_try") 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest$ac_exeext'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 lt_cv_cc_needs_belf=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 lt_cv_cc_needs_belf=no
12936 rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12939 ac_cpp='$CPP $CPPFLAGS'
12940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12945 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12946 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12947 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12949 CFLAGS="$SAVE_CFLAGS"
12953 # Find out which ABI we are using.
12954 echo 'int i;' > conftest.$ac_ext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; then
12960 case `/usr/bin/file conftest.o` in
12962 case $lt_cv_prog_gnu_ld in
12963 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12964 *) LD="${LD-ld} -64" ;;
12975 need_locks="$enable_libtool_lock"
12980 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12981 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12982 (test "X$CXX" != "Xg++"))) ; then
12984 ac_cpp='$CXXCPP $CPPFLAGS'
12985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12988 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12989 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12990 if test -z "$CXXCPP"; then
12991 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 # Double quotes because CXXCPP needs to be expanded
12995 for CXXCPP in "$CXX -E" "/lib/cpp"
12997 ac_preproc_ok=false
12998 for ac_cxx_preproc_warn_flag in '' yes
13000 # Use a header file that comes with gcc, so configuring glibc
13001 # with a fresh cross-compiler works.
13002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13003 # <limits.h> exists even on freestanding compilers.
13004 # On the NeXT, cc -E runs the code through the compiler's parser,
13005 # not just through cpp. "Syntax error" is here to catch this case.
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13013 # include <limits.h>
13015 # include <assert.h>
13019 if { (ac_try="$ac_cpp conftest.$ac_ext"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } >/dev/null; then
13032 if test -s conftest.err; then
13033 ac_cpp_err=$ac_cxx_preproc_warn_flag
13034 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13041 if test -z "$ac_cpp_err"; then
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13047 # Broken: fails on valid input.
13051 rm -f conftest.err conftest.$ac_ext
13053 # OK, works on sane cases. Now check whether nonexistent headers
13054 # can be detected and how.
13055 cat >conftest.$ac_ext <<_ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 #include <ac_nonexistent.h>
13063 if { (ac_try="$ac_cpp conftest.$ac_ext"
13064 case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } >/dev/null; then
13076 if test -s conftest.err; then
13077 ac_cpp_err=$ac_cxx_preproc_warn_flag
13078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13085 if test -z "$ac_cpp_err"; then
13086 # Broken: success on invalid input.
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 # Passes both tests.
13097 rm -f conftest.err conftest.$ac_ext
13100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13101 rm -f conftest.err conftest.$ac_ext
13102 if $ac_preproc_ok; then
13107 ac_cv_prog_CXXCPP=$CXXCPP
13110 CXXCPP=$ac_cv_prog_CXXCPP
13112 ac_cv_prog_CXXCPP=$CXXCPP
13114 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13115 echo "${ECHO_T}$CXXCPP" >&6; }
13116 ac_preproc_ok=false
13117 for ac_cxx_preproc_warn_flag in '' yes
13119 # Use a header file that comes with gcc, so configuring glibc
13120 # with a fresh cross-compiler works.
13121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13122 # <limits.h> exists even on freestanding compilers.
13123 # On the NeXT, cc -E runs the code through the compiler's parser,
13124 # not just through cpp. "Syntax error" is here to catch this case.
13125 cat >conftest.$ac_ext <<_ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13132 # include <limits.h>
13134 # include <assert.h>
13138 if { (ac_try="$ac_cpp conftest.$ac_ext"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } >/dev/null; then
13151 if test -s conftest.err; then
13152 ac_cpp_err=$ac_cxx_preproc_warn_flag
13153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13160 if test -z "$ac_cpp_err"; then
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 # Broken: fails on valid input.
13170 rm -f conftest.err conftest.$ac_ext
13172 # OK, works on sane cases. Now check whether nonexistent headers
13173 # can be detected and how.
13174 cat >conftest.$ac_ext <<_ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 #include <ac_nonexistent.h>
13182 if { (ac_try="$ac_cpp conftest.$ac_ext"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } >/dev/null; then
13195 if test -s conftest.err; then
13196 ac_cpp_err=$ac_cxx_preproc_warn_flag
13197 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13204 if test -z "$ac_cpp_err"; then
13205 # Broken: success on invalid input.
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 # Passes both tests.
13216 rm -f conftest.err conftest.$ac_ext
13219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13220 rm -f conftest.err conftest.$ac_ext
13221 if $ac_preproc_ok; then
13224 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13225 See \`config.log' for more details." >&5
13226 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13227 See \`config.log' for more details." >&2;}
13228 { (exit 1); exit 1; }; }
13232 ac_cpp='$CXXCPP $CPPFLAGS'
13233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13241 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13242 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13243 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13244 if test -n "$ac_tool_prefix"; then
13245 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
13247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13251 if test "${ac_cv_prog_F77+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 if test -n "$F77"; then
13255 ac_cv_prog_F77="$F77" # Let the user override the test.
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13264 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13274 F77=$ac_cv_prog_F77
13275 if test -n "$F77"; then
13276 { echo "$as_me:$LINENO: result: $F77" >&5
13277 echo "${ECHO_T}$F77" >&6; }
13279 { echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6; }
13284 test -n "$F77" && break
13287 if test -z "$F77"; then
13289 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
13291 # Extract the first word of "$ac_prog", so it can be a program name with args.
13292 set dummy $ac_prog; ac_word=$2
13293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13295 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 if test -n "$ac_ct_F77"; then
13299 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_prog_ac_ct_F77="$ac_prog"
13309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13319 if test -n "$ac_ct_F77"; then
13320 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13321 echo "${ECHO_T}$ac_ct_F77" >&6; }
13323 { echo "$as_me:$LINENO: result: no" >&5
13324 echo "${ECHO_T}no" >&6; }
13328 test -n "$ac_ct_F77" && break
13331 if test "x$ac_ct_F77" = x; then
13334 case $cross_compiling:$ac_tool_warned in
13336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13337 whose name does not start with the host triplet. If you think this
13338 configuration is useful to you, please write to autoconf@gnu.org." >&5
13339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13340 whose name does not start with the host triplet. If you think this
13341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13342 ac_tool_warned=yes ;;
13349 # Provide some information about the compiler.
13350 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13351 ac_compiler=`set X $ac_compile; echo $2`
13352 { (ac_try="$ac_compiler --version >&5"
13353 case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_compiler --version >&5") 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }
13362 { (ac_try="$ac_compiler -v >&5"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compiler -v >&5") 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }
13372 { (ac_try="$ac_compiler -V >&5"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compiler -V >&5") 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }
13384 # If we don't use `.F' as extension, the preprocessor is not run on the
13385 # input file. (Note that this only needs to work for GNU compilers.)
13386 ac_save_ext=$ac_ext
13388 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13389 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13390 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13401 rm -f conftest.$ac_objext
13402 if { (ac_try="$ac_compile"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_compile") 2>conftest.er1
13410 grep -v '^ *+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; } &&
13425 { ac_try='test -s conftest.$ac_objext'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_compiler_gnu=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13447 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13448 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13449 ac_ext=$ac_save_ext
13450 ac_test_FFLAGS=${FFLAGS+set}
13451 ac_save_FFLAGS=$FFLAGS
13453 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13454 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13455 if test "${ac_cv_prog_f77_g+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13464 rm -f conftest.$ac_objext
13465 if { (ac_try="$ac_compile"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_compile") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_prog_f77_g=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_cv_prog_f77_g=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13510 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13511 if test "$ac_test_FFLAGS" = set; then
13512 FFLAGS=$ac_save_FFLAGS
13513 elif test $ac_cv_prog_f77_g = yes; then
13514 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13520 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13527 G77=`test $ac_compiler_gnu = yes && echo yes`
13529 ac_cpp='$CPP $CPPFLAGS'
13530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13536 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13538 # find the maximum length of command line arguments
13539 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 # On DJGPP, this test can blow up pretty badly due to problems in libc
13550 # (any single argument exceeding 2000 bytes causes a buffer overrun
13551 # during glob expansion). Even if it were fixed, the result of this
13552 # check would be larger than it should be.
13553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13557 # Under GNU Hurd, this test is not required because there is
13558 # no limit to the length of command line arguments.
13559 # Libtool will interpret -1 as no limit whatsoever
13560 lt_cv_sys_max_cmd_len=-1;
13564 # On Win9x/ME, this test blows up -- it succeeds, but takes
13565 # about 5 minutes as the teststring grows exponentially.
13566 # Worse, since 9x/ME are not pre-emptively multitasking,
13567 # you end up with a "frozen" computer, even though with patience
13568 # the test eventually succeeds (with a max line length of 256k).
13569 # Instead, let's just punt: use the minimum linelength reported by
13570 # all of the supported platforms: 8192 (on NT/2K/XP).
13571 lt_cv_sys_max_cmd_len=8192;
13575 # On AmigaOS with pdksh, this test takes hours, literally.
13576 # So we just punt and use a minimum line length of 8192.
13577 lt_cv_sys_max_cmd_len=8192;
13580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13581 # This has been around since 386BSD, at least. Likely further.
13582 if test -x /sbin/sysctl; then
13583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13584 elif test -x /usr/sbin/sysctl; then
13585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13589 # And add a safety zone
13590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13595 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13596 lt_cv_sys_max_cmd_len=196608
13600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13602 # nice to cause kernel panics so lets avoid the loop below.
13603 # First set a reasonable default.
13604 lt_cv_sys_max_cmd_len=16384
13606 if test -x /sbin/sysconfig; then
13607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13613 lt_cv_sys_max_cmd_len=102400
13615 sysv5* | sco5v6* | sysv4.2uw2*)
13616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13617 if test -n "$kargmax"; then
13618 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13620 lt_cv_sys_max_cmd_len=32768
13624 # If test is not a shell built-in, we'll probably end up computing a
13625 # maximum length that is only half of the actual maximum length, but
13627 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13628 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13629 = "XX$teststring") >/dev/null 2>&1 &&
13630 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13631 lt_cv_sys_max_cmd_len=$new_result &&
13632 test $i != 17 # 1/2 MB should be enough
13635 teststring=$teststring$teststring
13638 # Add a significant safety factor because C++ compilers can tack on massive
13639 # amounts of additional arguments before passing them to the linker.
13640 # It appears as though 1/2 is a usable value.
13641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13647 if test -n $lt_cv_sys_max_cmd_len ; then
13648 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13649 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13651 { echo "$as_me:$LINENO: result: none" >&5
13652 echo "${ECHO_T}none" >&6; }
13658 # Check for command to grab the raw symbol name followed by C symbol from nm.
13659 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13660 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13661 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 # These are sane defaults that work on at least a few old systems.
13666 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13668 # Character class describing NM global symbol codes.
13669 symcode='[BCDEGRST]'
13671 # Regexp to match symbols that can be accessed directly from C.
13672 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13674 # Transform an extracted symbol line into a proper C declaration
13675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13677 # Transform an extracted symbol line into symbol name and symbol address
13678 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'"
13680 # Define system-specific variables.
13685 cygwin* | mingw* | pw32*)
13686 symcode='[ABCDGISTW]'
13688 hpux*) # Its linker distinguishes data from code symbols
13689 if test "$host_cpu" = ia64; then
13690 symcode='[ABCDEGRST]'
13692 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13693 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13696 if test "$host_cpu" = ia64; then
13697 symcode='[ABCDGIRSTW]'
13698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13699 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'"
13702 irix* | nonstopux*)
13703 symcode='[BCDEGRST]'
13706 symcode='[BCDEGQRST]'
13717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13725 # Handle CRLF in mingw tool chain
13729 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13733 # If we're using GNU nm, then use its standard symbol codes.
13734 case `$NM -V 2>&1` in
13735 *GNU* | *'with BFD'*)
13736 symcode='[ABCDGIRSTW]' ;;
13739 # Try without a prefix undercore, then with it.
13740 for ac_symprfx in "" "_"; do
13742 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13743 symxfrm="\\1 $ac_symprfx\\2 \\2"
13745 # Write the raw and C identifiers.
13746 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13748 # Check to see that the pipe works correctly.
13752 cat > conftest.$ac_ext <<EOF
13757 void nm_test_func(){}
13761 int main(){nm_test_var='a';nm_test_func();return(0);}
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; then
13769 # Now try to grab the symbols.
13771 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13772 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } && test -s "$nlist"; then
13776 # Try sorting and uniquifying the output.
13777 if sort "$nlist" | uniq > "$nlist"T; then
13778 mv -f "$nlist"T "$nlist"
13783 # Make sure that we snagged all the symbols we need.
13784 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13785 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13786 cat <<EOF > conftest.$ac_ext
13792 # Now generate the symbol file.
13793 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13795 cat <<EOF >> conftest.$ac_ext
13796 #if defined (__STDC__) && __STDC__
13797 # define lt_ptr_t void *
13799 # define lt_ptr_t char *
13803 /* The mapping between symbol names and symbols. */
13808 lt_preloaded_symbols[] =
13811 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13812 cat <<\EOF >> conftest.$ac_ext
13820 # Now try linking the two files.
13821 mv conftest.$ac_objext conftstm.$ac_objext
13822 lt_save_LIBS="$LIBS"
13823 lt_save_CFLAGS="$CFLAGS"
13824 LIBS="conftstm.$ac_objext"
13825 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827 (eval $ac_link) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13833 LIBS="$lt_save_LIBS"
13834 CFLAGS="$lt_save_CFLAGS"
13836 echo "cannot find nm_test_func in $nlist" >&5
13839 echo "cannot find nm_test_var in $nlist" >&5
13842 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13845 echo "$progname: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13848 rm -f conftest* conftst*
13850 # Do not use the global_symbol_pipe unless it works.
13851 if test "$pipe_works" = yes; then
13854 lt_cv_sys_global_symbol_pipe=
13860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13861 lt_cv_sys_global_symbol_to_cdecl=
13863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13864 { echo "$as_me:$LINENO: result: failed" >&5
13865 echo "${ECHO_T}failed" >&6; }
13867 { echo "$as_me:$LINENO: result: ok" >&5
13868 echo "${ECHO_T}ok" >&6; }
13871 { echo "$as_me:$LINENO: checking for objdir" >&5
13872 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13873 if test "${lt_cv_objdir+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 rm -f .libs 2>/dev/null
13877 mkdir .libs 2>/dev/null
13878 if test -d .libs; then
13881 # MS-DOS does not allow filenames that begin with a dot.
13884 rmdir .libs 2>/dev/null
13886 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13887 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13888 objdir=$lt_cv_objdir
13896 # AIX sometimes has problems with the GCC collect2 program. For some
13897 # reason, if we set the COLLECT_NAMES environment variable, the problems
13898 # vanish in a puff of smoke.
13899 if test "X${COLLECT_NAMES+set}" != Xset; then
13901 export COLLECT_NAMES
13906 # Sed substitution that helps us do robust quoting. It backslashifies
13907 # metacharacters that are still active within double-quoted strings.
13908 Xsed='sed -e 1s/^X//'
13909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13911 # Same as above, but do not quote variable references.
13912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13914 # Sed substitution to delay expansion of an escaped shell variable in a
13915 # double_quote_subst'ed string.
13916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13918 # Sed substitution to avoid accidental globbing in evaled expressions
13919 no_glob_subst='s/\*/\\\*/g'
13924 # Global variables:
13925 default_ofile=mklib
13926 can_build_shared=yes
13928 # All known linkers require a `.a' archive for static linking (except MSVC,
13929 # which needs '.lib').
13931 ltmain="$ac_aux_dir/ltmain.sh"
13932 ofile="$default_ofile"
13933 with_gnu_ld="$lt_cv_prog_gnu_ld"
13935 if test -n "$ac_tool_prefix"; then
13936 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13937 set dummy ${ac_tool_prefix}ar; ac_word=$2
13938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13940 if test "${ac_cv_prog_AR+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 if test -n "$AR"; then
13944 ac_cv_prog_AR="$AR" # Let the user override the test.
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13953 ac_cv_prog_AR="${ac_tool_prefix}ar"
13954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13964 if test -n "$AR"; then
13965 { echo "$as_me:$LINENO: result: $AR" >&5
13966 echo "${ECHO_T}$AR" >&6; }
13968 { echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6; }
13974 if test -z "$ac_cv_prog_AR"; then
13976 # Extract the first word of "ar", so it can be a program name with args.
13977 set dummy ar; ac_word=$2
13978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13980 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 if test -n "$ac_ct_AR"; then
13984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13990 test -z "$as_dir" && as_dir=.
13991 for ac_exec_ext in '' $ac_executable_extensions; do
13992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13993 ac_cv_prog_ac_ct_AR="ar"
13994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14004 if test -n "$ac_ct_AR"; then
14005 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14006 echo "${ECHO_T}$ac_ct_AR" >&6; }
14008 { echo "$as_me:$LINENO: result: no" >&5
14009 echo "${ECHO_T}no" >&6; }
14012 if test "x$ac_ct_AR" = x; then
14015 case $cross_compiling:$ac_tool_warned in
14017 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14018 whose name does not start with the host triplet. If you think this
14019 configuration is useful to you, please write to autoconf@gnu.org." >&5
14020 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14021 whose name does not start with the host triplet. If you think this
14022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14023 ac_tool_warned=yes ;;
14028 AR="$ac_cv_prog_AR"
14031 if test -n "$ac_tool_prefix"; then
14032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14036 if test "${ac_cv_prog_RANLIB+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 if test -n "$RANLIB"; then
14040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
14048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14059 RANLIB=$ac_cv_prog_RANLIB
14060 if test -n "$RANLIB"; then
14061 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14062 echo "${ECHO_T}$RANLIB" >&6; }
14064 { echo "$as_me:$LINENO: result: no" >&5
14065 echo "${ECHO_T}no" >&6; }
14070 if test -z "$ac_cv_prog_RANLIB"; then
14071 ac_ct_RANLIB=$RANLIB
14072 # Extract the first word of "ranlib", so it can be a program name with args.
14073 set dummy ranlib; ac_word=$2
14074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 if test -n "$ac_ct_RANLIB"; then
14080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14086 test -z "$as_dir" && as_dir=.
14087 for ac_exec_ext in '' $ac_executable_extensions; do
14088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14089 ac_cv_prog_ac_ct_RANLIB="ranlib"
14090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14100 if test -n "$ac_ct_RANLIB"; then
14101 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14102 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14104 { echo "$as_me:$LINENO: result: no" >&5
14105 echo "${ECHO_T}no" >&6; }
14108 if test "x$ac_ct_RANLIB" = x; then
14111 case $cross_compiling:$ac_tool_warned in
14113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14114 whose name does not start with the host triplet. If you think this
14115 configuration is useful to you, please write to autoconf@gnu.org." >&5
14116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14117 whose name does not start with the host triplet. If you think this
14118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14119 ac_tool_warned=yes ;;
14121 RANLIB=$ac_ct_RANLIB
14124 RANLIB="$ac_cv_prog_RANLIB"
14127 if test -n "$ac_tool_prefix"; then
14128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14129 set dummy ${ac_tool_prefix}strip; ac_word=$2
14130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14132 if test "${ac_cv_prog_STRIP+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 if test -n "$STRIP"; then
14136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 STRIP=$ac_cv_prog_STRIP
14156 if test -n "$STRIP"; then
14157 { echo "$as_me:$LINENO: result: $STRIP" >&5
14158 echo "${ECHO_T}$STRIP" >&6; }
14160 { echo "$as_me:$LINENO: result: no" >&5
14161 echo "${ECHO_T}no" >&6; }
14166 if test -z "$ac_cv_prog_STRIP"; then
14168 # Extract the first word of "strip", so it can be a program name with args.
14169 set dummy strip; ac_word=$2
14170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14172 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 if test -n "$ac_ct_STRIP"; then
14176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14185 ac_cv_prog_ac_ct_STRIP="strip"
14186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14196 if test -n "$ac_ct_STRIP"; then
14197 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14198 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14200 { echo "$as_me:$LINENO: result: no" >&5
14201 echo "${ECHO_T}no" >&6; }
14204 if test "x$ac_ct_STRIP" = x; then
14207 case $cross_compiling:$ac_tool_warned in
14209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14210 whose name does not start with the host triplet. If you think this
14211 configuration is useful to you, please write to autoconf@gnu.org." >&5
14212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14213 whose name does not start with the host triplet. If you think this
14214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14215 ac_tool_warned=yes ;;
14220 STRIP="$ac_cv_prog_STRIP"
14225 old_CFLAGS="$CFLAGS"
14227 # Set sane defaults for various variables
14228 test -z "$AR" && AR=ar
14229 test -z "$AR_FLAGS" && AR_FLAGS=cru
14230 test -z "$AS" && AS=as
14231 test -z "$CC" && CC=cc
14232 test -z "$LTCC" && LTCC=$CC
14233 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14234 test -z "$DLLTOOL" && DLLTOOL=dlltool
14235 test -z "$LD" && LD=ld
14236 test -z "$LN_S" && LN_S="ln -s"
14237 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14238 test -z "$NM" && NM=nm
14239 test -z "$SED" && SED=sed
14240 test -z "$OBJDUMP" && OBJDUMP=objdump
14241 test -z "$RANLIB" && RANLIB=:
14242 test -z "$STRIP" && STRIP=:
14243 test -z "$ac_objext" && ac_objext=o
14245 # Determine commands to create old-style static archives.
14246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14247 old_postinstall_cmds='chmod 644 $oldlib'
14248 old_postuninstall_cmds=
14250 if test -n "$RANLIB"; then
14253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14259 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14262 for cc_temp in $compiler""; do
14264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14273 # Only perform the check for file, if the check method requires it
14274 case $deplibs_check_method in
14276 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14277 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14278 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14287 lt_save_MAGIC_CMD="$MAGIC_CMD"
14288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14290 for ac_dir in $ac_dummy; do
14292 test -z "$ac_dir" && ac_dir=.
14293 if test -f $ac_dir/${ac_tool_prefix}file; then
14294 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14295 if test -n "$file_magic_test_file"; then
14296 case $deplibs_check_method in
14298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14301 $EGREP "$file_magic_regex" > /dev/null; then
14306 *** Warning: the command libtool uses to detect shared libraries,
14307 *** $file_magic_cmd, produces output that libtool cannot recognize.
14308 *** The result is that libtool may fail to recognize shared libraries
14309 *** as such. This will affect the creation of libtool libraries that
14310 *** depend on shared libraries, but programs linked with such libtool
14311 *** libraries will work regardless of this problem. Nevertheless, you
14312 *** may want to report the problem to your system manager and/or to
14313 *** bug-libtool@gnu.org
14323 MAGIC_CMD="$lt_save_MAGIC_CMD"
14328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14329 if test -n "$MAGIC_CMD"; then
14330 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14331 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14333 { echo "$as_me:$LINENO: result: no" >&5
14334 echo "${ECHO_T}no" >&6; }
14337 if test -z "$lt_cv_path_MAGIC_CMD"; then
14338 if test -n "$ac_tool_prefix"; then
14339 { echo "$as_me:$LINENO: checking for file" >&5
14340 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14349 lt_save_MAGIC_CMD="$MAGIC_CMD"
14350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14352 for ac_dir in $ac_dummy; do
14354 test -z "$ac_dir" && ac_dir=.
14355 if test -f $ac_dir/file; then
14356 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14357 if test -n "$file_magic_test_file"; then
14358 case $deplibs_check_method in
14360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14363 $EGREP "$file_magic_regex" > /dev/null; then
14368 *** Warning: the command libtool uses to detect shared libraries,
14369 *** $file_magic_cmd, produces output that libtool cannot recognize.
14370 *** The result is that libtool may fail to recognize shared libraries
14371 *** as such. This will affect the creation of libtool libraries that
14372 *** depend on shared libraries, but programs linked with such libtool
14373 *** libraries will work regardless of this problem. Nevertheless, you
14374 *** may want to report the problem to your system manager and/or to
14375 *** bug-libtool@gnu.org
14385 MAGIC_CMD="$lt_save_MAGIC_CMD"
14390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14391 if test -n "$MAGIC_CMD"; then
14392 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14393 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14395 { echo "$as_me:$LINENO: result: no" >&5
14396 echo "${ECHO_T}no" >&6; }
14409 enable_win32_dll=no
14411 # Check whether --enable-libtool-lock was given.
14412 if test "${enable_libtool_lock+set}" = set; then
14413 enableval=$enable_libtool_lock;
14416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14419 # Check whether --with-pic was given.
14420 if test "${with_pic+set}" = set; then
14421 withval=$with_pic; pic_mode="$withval"
14426 test -z "$pic_mode" && pic_mode=default
14428 # Use C for the default configuration in the libtool script
14432 ac_cpp='$CPP $CPPFLAGS'
14433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14438 # Source file extension for C test sources.
14441 # Object file extension for compiled C test sources.
14445 # Code to be used in simple compile tests
14446 lt_simple_compile_test_code="int some_variable = 0;\n"
14448 # Code to be used in simple link tests
14449 lt_simple_link_test_code='int main(){return(0);}\n'
14452 # If no C compiler was specified, use CC.
14455 # If no C compiler flags were specified, use CFLAGS.
14456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14458 # Allow CC to be a program name with arguments.
14462 # save warnings/boilerplate of simple test code
14463 ac_outfile=conftest.$ac_objext
14464 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14465 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14466 _lt_compiler_boilerplate=`cat conftest.err`
14469 ac_outfile=conftest.$ac_objext
14470 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14471 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14472 _lt_linker_boilerplate=`cat conftest.err`
14477 lt_prog_compiler_no_builtin_flag=
14479 if test "$GCC" = yes; then
14480 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14483 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14484 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14485 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 lt_cv_prog_compiler_rtti_exceptions=no
14489 ac_outfile=conftest.$ac_objext
14490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14491 lt_compiler_flag="-fno-rtti -fno-exceptions"
14492 # Insert the option either (1) after the last *FLAGS variable, or
14493 # (2) before a word containing "conftest.", or (3) at the end.
14494 # Note that $ac_compile itself does not contain backslashes and begins
14495 # with a dollar sign (not a hyphen), so the echo should work correctly.
14496 # The option is referenced via a variable to avoid confusing sed.
14497 lt_compile=`echo "$ac_compile" | $SED \
14498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500 -e 's:$: $lt_compiler_flag:'`
14501 (eval echo "\"\$as_me:14501: $lt_compile\"" >&5)
14502 (eval "$lt_compile" 2>conftest.err)
14504 cat conftest.err >&5
14505 echo "$as_me:14505: \$? = $ac_status" >&5
14506 if (exit $ac_status) && test -s "$ac_outfile"; then
14507 # The compiler can only warn and ignore the option if not recognized
14508 # So say no if there are warnings other than the usual output.
14509 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14512 lt_cv_prog_compiler_rtti_exceptions=yes
14518 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14519 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14521 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14522 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14529 lt_prog_compiler_wl=
14530 lt_prog_compiler_pic=
14531 lt_prog_compiler_static=
14533 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14534 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14536 if test "$GCC" = yes; then
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_static='-static'
14542 # All AIX code is PIC.
14543 if test "$host_cpu" = ia64; then
14544 # AIX 5 now supports IA64 processor
14545 lt_prog_compiler_static='-Bstatic'
14550 # FIXME: we need at least 68020 code to build shared libraries, but
14551 # adding the `-m68020' flag to GCC prevents building anything better,
14553 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14556 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14557 # PIC is the default for these OSes.
14560 mingw* | pw32* | os2*)
14561 # This hack is so that the source file can tell whether it is being
14562 # built for inclusion in a dll (and should export symbols for example).
14563 lt_prog_compiler_pic='-DDLL_EXPORT'
14566 darwin* | rhapsody*)
14567 # PIC is the default on this platform
14568 # Common symbols not allowed in MH_DYLIB files
14569 lt_prog_compiler_pic='-fno-common'
14573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14574 # Instead, we relocate shared libraries at runtime.
14578 # Just because we use GCC doesn't mean we suddenly get shared libraries
14579 # on systems that don't support them.
14580 lt_prog_compiler_can_build_shared=no
14585 if test -d /usr/nec; then
14586 lt_prog_compiler_pic=-Kconform_pic
14591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14592 # not for PA HP-UX.
14598 lt_prog_compiler_pic='-fPIC'
14604 lt_prog_compiler_pic='-fPIC'
14608 # PORTME Check for flag to pass linker flags through the system compiler.
14611 lt_prog_compiler_wl='-Wl,'
14612 if test "$host_cpu" = ia64; then
14613 # AIX 5 now supports IA64 processor
14614 lt_prog_compiler_static='-Bstatic'
14616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14620 # PIC is the default on this platform
14621 # Common symbols not allowed in MH_DYLIB files
14622 case $cc_basename in
14624 lt_prog_compiler_pic='-qnocommon'
14625 lt_prog_compiler_wl='-Wl,'
14630 mingw* | pw32* | os2*)
14631 # This hack is so that the source file can tell whether it is being
14632 # built for inclusion in a dll (and should export symbols for example).
14633 lt_prog_compiler_pic='-DDLL_EXPORT'
14636 hpux9* | hpux10* | hpux11*)
14637 lt_prog_compiler_wl='-Wl,'
14638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14639 # not for PA HP-UX.
14645 lt_prog_compiler_pic='+Z'
14648 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14649 lt_prog_compiler_static='${wl}-a ${wl}archive'
14652 irix5* | irix6* | nonstopux*)
14653 lt_prog_compiler_wl='-Wl,'
14654 # PIC (with -KPIC) is the default.
14655 lt_prog_compiler_static='-non_shared'
14659 lt_prog_compiler_pic='-KPIC'
14660 lt_prog_compiler_static='-Bstatic'
14664 case $cc_basename in
14666 lt_prog_compiler_wl='-Wl,'
14667 lt_prog_compiler_pic='-KPIC'
14668 lt_prog_compiler_static='-static'
14670 pgcc* | pgf77* | pgf90* | pgf95*)
14671 # Portland Group compilers (*not* the Pentium gcc compiler,
14672 # which looks to be a dead project)
14673 lt_prog_compiler_wl='-Wl,'
14674 lt_prog_compiler_pic='-fpic'
14675 lt_prog_compiler_static='-Bstatic'
14678 lt_prog_compiler_wl='-Wl,'
14679 # All Alpha code is PIC.
14680 lt_prog_compiler_static='-non_shared'
14685 osf3* | osf4* | osf5*)
14686 lt_prog_compiler_wl='-Wl,'
14687 # All OSF/1 code is PIC.
14688 lt_prog_compiler_static='-non_shared'
14692 lt_prog_compiler_pic='-KPIC'
14693 lt_prog_compiler_static='-Bstatic'
14694 case $cc_basename in
14695 f77* | f90* | f95*)
14696 lt_prog_compiler_wl='-Qoption ld ';;
14698 lt_prog_compiler_wl='-Wl,';;
14703 lt_prog_compiler_wl='-Qoption ld '
14704 lt_prog_compiler_pic='-PIC'
14705 lt_prog_compiler_static='-Bstatic'
14708 sysv4 | sysv4.2uw2* | sysv4.3*)
14709 lt_prog_compiler_wl='-Wl,'
14710 lt_prog_compiler_pic='-KPIC'
14711 lt_prog_compiler_static='-Bstatic'
14715 if test -d /usr/nec ;then
14716 lt_prog_compiler_pic='-Kconform_pic'
14717 lt_prog_compiler_static='-Bstatic'
14721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14722 lt_prog_compiler_wl='-Wl,'
14723 lt_prog_compiler_pic='-KPIC'
14724 lt_prog_compiler_static='-Bstatic'
14728 lt_prog_compiler_wl='-Wl,'
14729 lt_prog_compiler_can_build_shared=no
14733 lt_prog_compiler_pic='-pic'
14734 lt_prog_compiler_static='-Bstatic'
14738 lt_prog_compiler_can_build_shared=no
14743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14744 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14747 # Check to make sure the PIC flag actually works.
14749 if test -n "$lt_prog_compiler_pic"; then
14751 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14752 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14753 if test "${lt_prog_compiler_pic_works+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 lt_prog_compiler_pic_works=no
14757 ac_outfile=conftest.$ac_objext
14758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14759 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14760 # Insert the option either (1) after the last *FLAGS variable, or
14761 # (2) before a word containing "conftest.", or (3) at the end.
14762 # Note that $ac_compile itself does not contain backslashes and begins
14763 # with a dollar sign (not a hyphen), so the echo should work correctly.
14764 # The option is referenced via a variable to avoid confusing sed.
14765 lt_compile=`echo "$ac_compile" | $SED \
14766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768 -e 's:$: $lt_compiler_flag:'`
14769 (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14770 (eval "$lt_compile" 2>conftest.err)
14772 cat conftest.err >&5
14773 echo "$as_me:14773: \$? = $ac_status" >&5
14774 if (exit $ac_status) && test -s "$ac_outfile"; then
14775 # The compiler can only warn and ignore the option if not recognized
14776 # So say no if there are warnings other than the usual output.
14777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14780 lt_prog_compiler_pic_works=yes
14786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14787 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14789 if test x"$lt_prog_compiler_pic_works" = xyes; then
14790 case $lt_prog_compiler_pic in
14792 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14795 lt_prog_compiler_pic=
14796 lt_prog_compiler_can_build_shared=no
14801 # For platforms which do not support PIC, -DPIC is meaningless:
14803 lt_prog_compiler_pic=
14806 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14811 # Check to make sure the static flag actually works.
14813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14814 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14815 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14816 if test "${lt_prog_compiler_static_works+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 lt_prog_compiler_static_works=no
14820 save_LDFLAGS="$LDFLAGS"
14821 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14822 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14824 # The linker can only warn and ignore the option if not recognized
14825 # So say no if there are warnings
14826 if test -s conftest.err; then
14827 # Append any errors to the config.log.
14828 cat conftest.err 1>&5
14829 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14831 if diff conftest.exp conftest.er2 >/dev/null; then
14832 lt_prog_compiler_static_works=yes
14835 lt_prog_compiler_static_works=yes
14839 LDFLAGS="$save_LDFLAGS"
14842 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14843 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14845 if test x"$lt_prog_compiler_static_works" = xyes; then
14848 lt_prog_compiler_static=
14852 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14853 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14854 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 lt_cv_prog_compiler_c_o=no
14858 $rm -r conftest 2>/dev/null
14862 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14864 lt_compiler_flag="-o out/conftest2.$ac_objext"
14865 # Insert the option either (1) after the last *FLAGS variable, or
14866 # (2) before a word containing "conftest.", or (3) at the end.
14867 # Note that $ac_compile itself does not contain backslashes and begins
14868 # with a dollar sign (not a hyphen), so the echo should work correctly.
14869 lt_compile=`echo "$ac_compile" | $SED \
14870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872 -e 's:$: $lt_compiler_flag:'`
14873 (eval echo "\"\$as_me:14873: $lt_compile\"" >&5)
14874 (eval "$lt_compile" 2>out/conftest.err)
14876 cat out/conftest.err >&5
14877 echo "$as_me:14877: \$? = $ac_status" >&5
14878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14880 # The compiler can only warn and ignore the option if not recognized
14881 # So say no if there are warnings
14882 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14885 lt_cv_prog_compiler_c_o=yes
14890 # SGI C++ compiler will create directory out/ii_files/ for
14891 # template instantiation
14892 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14893 $rm out/* && rmdir out
14899 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14903 hard_links="nottested"
14904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14905 # do not overwrite the value of need_locks provided by the user
14906 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14907 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14912 ln conftest.a conftest.b 2>&5 || hard_links=no
14913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14914 { echo "$as_me:$LINENO: result: $hard_links" >&5
14915 echo "${ECHO_T}$hard_links" >&6; }
14916 if test "$hard_links" = no; then
14917 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14918 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14925 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14929 allow_undefined_flag=
14930 enable_shared_with_static_runtimes=no
14932 archive_expsym_cmds=
14933 old_archive_From_new_cmds=
14934 old_archive_from_expsyms_cmds=
14935 export_dynamic_flag_spec=
14936 whole_archive_flag_spec=
14937 thread_safe_flag_spec=
14938 hardcode_libdir_flag_spec=
14939 hardcode_libdir_flag_spec_ld=
14940 hardcode_libdir_separator=
14942 hardcode_minus_L=no
14943 hardcode_shlibpath_var=unsupported
14944 link_all_deplibs=unknown
14945 hardcode_automatic=no
14947 module_expsym_cmds=
14948 always_export_symbols=no
14949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14950 # include_expsyms should be a list of space-separated symbols to be *always*
14951 # included in the symbol list
14953 # exclude_expsyms can be an extended regexp of symbols to exclude
14954 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14955 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14956 # as well as any symbol that contains `d'.
14957 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14958 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14959 # platforms (ab)use it in PIC code, but their linkers get confused if
14960 # the symbol is explicitly referenced. Since portable code cannot
14961 # rely on this symbol name, it's probably fine to never include it in
14962 # preloaded symbol tables.
14963 extract_expsyms_cmds=
14964 # Just being paranoid about ensuring that cc_basename is set.
14965 for cc_temp in $compiler""; do
14967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14976 cygwin* | mingw* | pw32*)
14977 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14978 # When not using gcc, we currently assume that we are using
14979 # Microsoft Visual C++.
14980 if test "$GCC" != yes; then
14985 # we just hope/assume this is gcc and not c89 (= MSVC++)
14994 if test "$with_gnu_ld" = yes; then
14995 # If archive_cmds runs LD, not CC, wlarc should be empty
14998 # Set some defaults for GNU ld with shared library support. These
14999 # are reset later if shared libraries are not supported. Putting them
15000 # here allows them to be overridden if necessary.
15001 runpath_var=LD_RUN_PATH
15002 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15003 export_dynamic_flag_spec='${wl}--export-dynamic'
15004 # ancient GNU ld didn't support --whole-archive et. al.
15005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15006 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15008 whole_archive_flag_spec=
15010 supports_anon_versioning=no
15011 case `$LD -v 2>/dev/null` in
15012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15015 *\ 2.11.*) ;; # other 2.11 versions
15016 *) supports_anon_versioning=yes ;;
15019 # See if GNU ld supports shared libraries.
15021 aix3* | aix4* | aix5*)
15022 # On AIX/PPC, the GNU linker is very broken
15023 if test "$host_cpu" != ia64; then
15027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15028 *** to be unable to reliably create shared libraries on AIX.
15029 *** Therefore, libtool is disabling shared libraries support. If you
15030 *** really care for shared libraries, you may want to modify your PATH
15031 *** so that a non-GNU linker is found, and then restart.
15038 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)'
15039 hardcode_libdir_flag_spec='-L$libdir'
15040 hardcode_minus_L=yes
15042 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15043 # that the semantics of dynamic libraries on AmigaOS, at least up
15044 # to version 4, is to share data among multiple programs linked
15045 # with the same dynamic library. Since this doesn't match the
15046 # behavior of shared libraries on other platforms, we can't use
15052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15053 allow_undefined_flag=unsupported
15054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15055 # support --undefined. This deserves some investigation. FIXME
15056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062 cygwin* | mingw* | pw32*)
15063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15064 # as there is no search path for DLLs.
15065 hardcode_libdir_flag_spec='-L$libdir'
15066 allow_undefined_flag=unsupported
15067 always_export_symbols=no
15068 enable_shared_with_static_runtimes=yes
15069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15073 # If the export-symbols file already is a .def file (1st line
15074 # is EXPORTS), use it as is; otherwise, prepend...
15075 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15076 cp $export_symbols $output_objdir/$soname.def;
15078 echo EXPORTS > $output_objdir/$soname.def;
15079 cat $export_symbols >> $output_objdir/$soname.def;
15081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15089 hardcode_shlibpath_var=no
15090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15091 export_dynamic_flag_spec='${wl}-E'
15092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15093 # Instead, shared libraries are loaded at an image base (0x10000000 by
15094 # default) and relocated if they conflict, which is a slow very memory
15095 # consuming and fragmenting process. To avoid this, we pick a random,
15096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15099 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'
15103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105 case $cc_basename,$host_cpu in
15106 pgcc*) # Portland Group C compiler
15107 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'
15108 tmp_addflag=' $pic_flag'
15110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15111 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'
15112 tmp_addflag=' $pic_flag -Mnomain' ;;
15113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15114 tmp_addflag=' -i_dynamic' ;;
15115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15116 tmp_addflag=' -i_dynamic -nofor_main' ;;
15117 ifc* | ifort*) # Intel Fortran compiler
15118 tmp_addflag=' -nofor_main' ;;
15120 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122 if test $supports_anon_versioning = yes; then
15123 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15125 $echo "local: *; };" >> $output_objdir/$libname.ver~
15126 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15135 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15149 *** create shared libraries on Solaris systems. Therefore, libtool
15150 *** is disabling shared libraries support. We urge you to upgrade GNU
15151 *** binutils to release 2.9.1 or newer. Another option is to modify
15152 *** your PATH or compiler configuration so that the native linker is
15153 *** used, and then restart.
15156 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15165 case `$LD -v 2>&1` in
15166 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15170 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15171 *** reliably create shared libraries on SCO systems. Therefore, libtool
15172 *** is disabling shared libraries support. We urge you to upgrade GNU
15173 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15174 *** your PATH or compiler configuration so that the native linker is
15175 *** used, and then restart.
15180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15192 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15194 hardcode_direct=yes
15195 hardcode_shlibpath_var=no
15199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15208 if test "$ld_shlibs" = no; then
15210 hardcode_libdir_flag_spec=
15211 export_dynamic_flag_spec=
15212 whole_archive_flag_spec=
15215 # PORTME fill in a description of your system's linker (not GNU ld)
15218 allow_undefined_flag=unsupported
15219 always_export_symbols=yes
15220 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'
15221 # Note: this linker hardcodes the directories in LIBPATH if there
15222 # are no directories specified by -L.
15223 hardcode_minus_L=yes
15224 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15225 # Neither direct hardcoding nor static linking is supported with a
15227 hardcode_direct=unsupported
15232 if test "$host_cpu" = ia64; then
15233 # On IA64, the linker does run time linking by default, so we don't
15234 # have to do anything special.
15235 aix_use_runtimelinking=no
15236 exp_sym_flag='-Bexport'
15239 # If we're using GNU nm, then we don't want the "-C" option.
15240 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15241 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15242 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'
15244 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'
15246 aix_use_runtimelinking=no
15248 # Test if we are trying to use run time linking or normal
15249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250 # need to do runtime linking.
15251 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15252 for ld_flag in $LDFLAGS; do
15253 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15254 aix_use_runtimelinking=yes
15261 exp_sym_flag='-bexport'
15262 no_entry_flag='-bnoentry'
15265 # When large executables or shared objects are built, AIX ld can
15266 # have problems creating the table of contents. If linking a library
15267 # or program results in "error TOC overflow" add -mminimal-toc to
15268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15272 hardcode_direct=yes
15273 hardcode_libdir_separator=':'
15274 link_all_deplibs=yes
15276 if test "$GCC" = yes; then
15277 case $host_os in aix4.[012]|aix4.[012].*)
15278 # We only want to do this on AIX 4.2 and lower, the check
15279 # below for broken collect2 doesn't work under 4.3+
15280 collect2name=`${CC} -print-prog-name=collect2`
15281 if test -f "$collect2name" && \
15282 strings "$collect2name" | grep resolve_lib_name >/dev/null
15284 # We have reworked collect2
15285 hardcode_direct=yes
15287 # We have old collect2
15288 hardcode_direct=unsupported
15289 # It fails to find uninstalled libraries when the uninstalled
15290 # path is not listed in the libpath. Setting hardcode_minus_L
15291 # to unsupported forces relinking
15292 hardcode_minus_L=yes
15293 hardcode_libdir_flag_spec='-L$libdir'
15294 hardcode_libdir_separator=
15298 shared_flag='-shared'
15299 if test "$aix_use_runtimelinking" = yes; then
15300 shared_flag="$shared_flag "'${wl}-G'
15304 if test "$host_cpu" = ia64; then
15305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15306 # chokes on -Wl,-G. The following line is correct:
15309 if test "$aix_use_runtimelinking" = yes; then
15310 shared_flag='${wl}-G'
15312 shared_flag='${wl}-bM:SRE'
15317 # It seems that -bexpall does not export symbols beginning with
15318 # underscore (_), so it is better to generate a list of symbols to export.
15319 always_export_symbols=yes
15320 if test "$aix_use_runtimelinking" = yes; then
15321 # Warning - without using the other runtime loading flags (-brtl),
15322 # -berok will link without error, but may produce a broken library.
15323 allow_undefined_flag='-berok'
15324 # Determine the default libpath from the value encoded in an empty executable.
15325 cat >conftest.$ac_ext <<_ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15349 grep -v '^ *+' conftest.er1 >conftest.err
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
15354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15355 { (case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_try") 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15377 # Check for a 64-bit object if we didn't find anything.
15378 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; }
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15387 rm -f core conftest.err conftest.$ac_objext \
15388 conftest$ac_exeext conftest.$ac_ext
15389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15392 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"
15394 if test "$host_cpu" = ia64; then
15395 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15396 allow_undefined_flag="-z nodefs"
15397 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"
15399 # Determine the default libpath from the value encoded in an empty executable.
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15415 rm -f conftest.$ac_objext conftest$ac_exeext
15416 if { (ac_try="$ac_link"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_link") 2>conftest.er1
15424 grep -v '^ *+' conftest.er1 >conftest.err
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest$ac_exeext'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15452 # Check for a 64-bit object if we didn't find anything.
15453 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; }
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15462 rm -f core conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15466 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15467 # Warning - without using the other run time loading flags,
15468 # -berok will link without error, but may produce a broken library.
15469 no_undefined_flag=' ${wl}-bernotok'
15470 allow_undefined_flag=' ${wl}-berok'
15471 # Exported symbols can be pulled into shared objects from archives
15472 whole_archive_flag_spec='$convenience'
15473 archive_cmds_need_lc=yes
15474 # This is similar to how AIX traditionally builds its shared libraries.
15475 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'
15481 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)'
15482 hardcode_libdir_flag_spec='-L$libdir'
15483 hardcode_minus_L=yes
15484 # see comment about different semantics on the GNU ld section
15489 export_dynamic_flag_spec=-rdynamic
15492 cygwin* | mingw* | pw32*)
15493 # When not using gcc, we currently assume that we are using
15494 # Microsoft Visual C++.
15495 # hardcode_libdir_flag_spec is actually meaningless, as there is
15496 # no search path for DLLs.
15497 hardcode_libdir_flag_spec=' '
15498 allow_undefined_flag=unsupported
15499 # Tell ltmain to make .lib files, not .a files.
15501 # Tell ltmain to make .dll files, not .so files.
15503 # FIXME: Setting linknames here is a bad hack.
15504 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15505 # The linker will automatically build a .lib file if we build a DLL.
15506 old_archive_From_new_cmds='true'
15507 # FIXME: Should let the user specify the lib program.
15508 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15509 fix_srcfile_path='`cygpath -w "$srcfile"`'
15510 enable_shared_with_static_runtimes=yes
15513 darwin* | rhapsody*)
15515 rhapsody* | darwin1.[012])
15516 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15519 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15520 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522 case ${MACOSX_DEPLOYMENT_TARGET} in
15524 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15527 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15533 archive_cmds_need_lc=no
15535 hardcode_automatic=yes
15536 hardcode_shlibpath_var=unsupported
15537 whole_archive_flag_spec=''
15538 link_all_deplibs=yes
15539 if test "$GCC" = yes ; then
15540 output_verbose_link_cmd='echo'
15541 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15542 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15544 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}'
15545 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}'
15547 case $cc_basename in
15549 output_verbose_link_cmd='echo'
15550 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15551 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15553 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}'
15554 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}'
15564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15565 hardcode_libdir_flag_spec='-L$libdir'
15566 hardcode_shlibpath_var=no
15573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15574 # support. Future versions do this automatically, but an explicit c++rt0.o
15575 # does not break anything, and helps significantly (at the cost of a little
15578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15579 hardcode_libdir_flag_spec='-R$libdir'
15580 hardcode_direct=yes
15581 hardcode_shlibpath_var=no
15584 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_direct=yes
15588 hardcode_minus_L=yes
15589 hardcode_shlibpath_var=no
15592 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15593 freebsd* | kfreebsd*-gnu | dragonfly*)
15594 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15595 hardcode_libdir_flag_spec='-R$libdir'
15596 hardcode_direct=yes
15597 hardcode_shlibpath_var=no
15601 if test "$GCC" = yes; then
15602 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'
15604 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'
15606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15607 hardcode_libdir_separator=:
15608 hardcode_direct=yes
15610 # hardcode_minus_L: Not really in the search PATH,
15611 # but as the default location of the library.
15612 hardcode_minus_L=yes
15613 export_dynamic_flag_spec='${wl}-E'
15617 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15618 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15622 if test "$with_gnu_ld" = no; then
15623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15624 hardcode_libdir_separator=:
15626 hardcode_direct=yes
15627 export_dynamic_flag_spec='${wl}-E'
15629 # hardcode_minus_L: Not really in the search PATH,
15630 # but as the default location of the library.
15631 hardcode_minus_L=yes
15636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15639 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15645 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15651 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15654 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15661 if test "$with_gnu_ld" = no; then
15662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15663 hardcode_libdir_separator=:
15667 hardcode_libdir_flag_spec_ld='+b $libdir'
15669 hardcode_shlibpath_var=no
15672 hardcode_direct=yes
15673 export_dynamic_flag_spec='${wl}-E'
15675 # hardcode_minus_L: Not really in the search PATH,
15676 # but as the default location of the library.
15677 hardcode_minus_L=yes
15683 irix5* | irix6* | nonstopux*)
15684 if test "$GCC" = yes; then
15685 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'
15687 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'
15688 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15691 hardcode_libdir_separator=:
15692 link_all_deplibs=yes
15696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15699 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15701 hardcode_libdir_flag_spec='-R$libdir'
15702 hardcode_direct=yes
15703 hardcode_shlibpath_var=no
15707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_direct=yes
15709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15710 hardcode_libdir_separator=:
15711 hardcode_shlibpath_var=no
15715 hardcode_direct=yes
15716 hardcode_shlibpath_var=no
15717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15719 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15721 export_dynamic_flag_spec='${wl}-E'
15724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15726 hardcode_libdir_flag_spec='-R$libdir'
15729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15737 hardcode_libdir_flag_spec='-L$libdir'
15738 hardcode_minus_L=yes
15739 allow_undefined_flag=unsupported
15740 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'
15741 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15745 if test "$GCC" = yes; then
15746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15747 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'
15749 allow_undefined_flag=' -expect_unresolved \*'
15750 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'
15752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15753 hardcode_libdir_separator=:
15756 osf4* | osf5*) # as osf3* with the addition of -msym flag
15757 if test "$GCC" = yes; then
15758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15759 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'
15760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15762 allow_undefined_flag=' -expect_unresolved \*'
15763 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'
15764 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15765 $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'
15767 # Both c and cxx compiler support -rpath directly
15768 hardcode_libdir_flag_spec='-rpath $libdir'
15770 hardcode_libdir_separator=:
15774 no_undefined_flag=' -z text'
15775 if test "$GCC" = yes; then
15777 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15778 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15782 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15786 hardcode_libdir_flag_spec='-R$libdir'
15787 hardcode_shlibpath_var=no
15789 solaris2.[0-5] | solaris2.[0-5].*) ;;
15791 # The compiler driver will combine linker options so we
15792 # cannot just pass the convience library names through
15793 # without $wl, iff we do not link with $LD.
15794 # Luckily, gcc supports the same syntax we need for Sun Studio.
15795 # Supported since Solaris 2.6 (maybe 2.5.1?)
15798 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15800 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' ;;
15803 link_all_deplibs=yes
15807 if test "x$host_vendor" = xsequent; then
15808 # Use $CC to link under sequent, because it throws in some extra .o
15809 # files that make .init and .fini sections work.
15810 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15812 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15814 hardcode_libdir_flag_spec='-L$libdir'
15815 hardcode_direct=yes
15816 hardcode_minus_L=yes
15817 hardcode_shlibpath_var=no
15821 case $host_vendor in
15823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824 hardcode_direct=yes # is this really true???
15827 ## LD is ld it makes a PLAMLIB
15828 ## CC just makes a GrossModule.
15829 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15830 reload_cmds='$CC -r -o $output$reload_objs'
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15838 runpath_var='LD_RUN_PATH'
15839 hardcode_shlibpath_var=no
15843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_shlibpath_var=no
15845 export_dynamic_flag_spec='-Bexport'
15849 if test -d /usr/nec; then
15850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851 hardcode_shlibpath_var=no
15852 runpath_var=LD_RUN_PATH
15853 hardcode_runpath_var=yes
15858 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15859 no_undefined_flag='${wl}-z,text'
15860 archive_cmds_need_lc=no
15861 hardcode_shlibpath_var=no
15862 runpath_var='LD_RUN_PATH'
15864 if test "$GCC" = yes; then
15865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 sysv5* | sco3.2v5* | sco5v6*)
15874 # Note: We can NOT use -z defs as we might desire, because we do not
15875 # link with -lc, and that would cause any symbols used from libc to
15876 # always be unresolved, which means just about no library would
15877 # ever link correctly. If we're not using GNU ld we use -z text
15878 # though, which does catch some bad symbols but isn't as heavy-handed
15880 no_undefined_flag='${wl}-z,text'
15881 allow_undefined_flag='${wl}-z,nodefs'
15882 archive_cmds_need_lc=no
15883 hardcode_shlibpath_var=no
15884 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15885 hardcode_libdir_separator=':'
15886 link_all_deplibs=yes
15887 export_dynamic_flag_spec='${wl}-Bexport'
15888 runpath_var='LD_RUN_PATH'
15890 if test "$GCC" = yes; then
15891 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15894 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901 hardcode_libdir_flag_spec='-L$libdir'
15902 hardcode_shlibpath_var=no
15911 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15912 echo "${ECHO_T}$ld_shlibs" >&6; }
15913 test "$ld_shlibs" = no && can_build_shared=no
15916 # Do we need to explicitly link libc?
15918 case "x$archive_cmds_need_lc" in
15920 # Assume -lc should be added
15921 archive_cmds_need_lc=yes
15923 if test "$enable_shared" = yes && test "$GCC" = yes; then
15924 case $archive_cmds in
15926 # FIXME: we may have to deal with multi-command sequences.
15929 # Test whether the compiler implicitly links with -lc since on some
15930 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15931 # to ld, don't add -lc before -lgcc.
15932 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15933 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15938 (eval $ac_compile) 2>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } 2>conftest.err; then
15944 libobjs=conftest.$ac_objext
15946 wl=$lt_prog_compiler_wl
15947 pic_flag=$lt_prog_compiler_pic
15953 lt_save_allow_undefined_flag=$allow_undefined_flag
15954 allow_undefined_flag=
15955 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15956 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }
15961 archive_cmds_need_lc=no
15963 archive_cmds_need_lc=yes
15965 allow_undefined_flag=$lt_save_allow_undefined_flag
15967 cat conftest.err 1>&5
15970 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15971 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15978 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15979 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15980 library_names_spec=
15981 libname_spec='lib$name'
15985 postuninstall_cmds=
15989 shlibpath_overrides_runpath=unknown
15991 dynamic_linker="$host_os ld.so"
15992 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15993 if test "$GCC" = yes; then
15994 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15995 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15996 # if the path contains ";" then we assume it to be the separator
15997 # otherwise default to the standard path separator (i.e. ":") - it is
15998 # assumed that no part of a normal pathname contains ";" but that should
15999 # okay in the real world where ";" in dirpaths is itself problematic.
16000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16005 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16007 need_lib_prefix=unknown
16008 hardcode_into_libs=no
16010 # when you set need_version to no, make sure it does not cause -set_version
16011 # flags to be left without arguments
16012 need_version=unknown
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16018 shlibpath_var=LIBPATH
16020 # AIX 3 has no versioning support, so we append a major version to the name.
16021 soname_spec='${libname}${release}${shared_ext}$major'
16028 hardcode_into_libs=yes
16029 if test "$host_cpu" = ia64; then
16030 # AIX 5 supports IA64
16031 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16032 shlibpath_var=LD_LIBRARY_PATH
16034 # With GCC up to 2.95.x, collect2 would create an import file
16035 # for dependence libraries. The import file would start with
16036 # the line `#! .'. This would cause the generated library to
16037 # depend on `.', always an invalid library. This was fixed in
16038 # development snapshots of GCC prior to 3.0.
16040 aix4 | aix4.[01] | aix4.[01].*)
16041 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16043 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16046 can_build_shared=no
16050 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16051 # soname into executable. Probably we can add versioning support to
16052 # collect2, so additional links can be useful in future.
16053 if test "$aix_use_runtimelinking" = yes; then
16054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16055 # instead of lib<name>.a to let people know that these are not
16056 # typical AIX shared libraries.
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 # We preserve .a as extension for shared libraries through AIX4.2
16060 # and later when we are not doing run time linking.
16061 library_names_spec='${libname}${release}.a $libname.a'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LIBPATH
16069 library_names_spec='$libname.ixlibrary $libname.a'
16070 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16071 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'
16075 library_names_spec='${libname}${shared_ext}'
16076 dynamic_linker="$host_os ld.so"
16077 shlibpath_var=LIBRARY_PATH
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16089 # the default ld.so.conf also contains /usr/contrib/lib and
16090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16091 # libtool to hard-code these into programs
16094 cygwin* | mingw* | pw32*)
16095 version_type=windows
16100 case $GCC,$host_os in
16101 yes,cygwin* | yes,mingw* | yes,pw32*)
16102 library_names_spec='$libname.dll.a'
16103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16104 postinstall_cmds='base_file=`basename \${file}`~
16105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16106 dldir=$destdir/`dirname \$dlpath`~
16107 test -d \$dldir || mkdir -p \$dldir~
16108 $install_prog $dir/$dlname \$dldir/$dlname~
16109 chmod a+x \$dldir/$dlname'
16110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16111 dlpath=$dir/\$dldll~
16113 shlibpath_overrides_runpath=yes
16117 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16118 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16122 # MinGW DLLs use traditional 'lib' prefix
16123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16125 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16126 # It is most probably a Windows format PATH printed by
16127 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16128 # path with ; separators, and with drive letters. We can handle the
16129 # drive letters (cygwin fileutils understands them), so leave them,
16130 # especially as we might pass files found there to a mingw objdump,
16131 # which wouldn't understand a cygwinified path. Ahh.
16132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16138 # pw32 DLLs use 'pw' prefix rather than 'lib'
16139 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16148 dynamic_linker='Win32 ld.exe'
16149 # FIXME: first we should search . and the directory the executable is in
16153 darwin* | rhapsody*)
16154 dynamic_linker="$host_os dyld"
16155 version_type=darwin
16158 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16159 soname_spec='${libname}${release}${major}$shared_ext'
16160 shlibpath_overrides_runpath=yes
16161 shlibpath_var=DYLD_LIBRARY_PATH
16162 shrext_cmds='.dylib'
16163 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16164 if test "$GCC" = yes; then
16165 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"`
16167 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16177 soname_spec='${libname}${release}${shared_ext}$major'
16178 shlibpath_var=LD_LIBRARY_PATH
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16192 shlibpath_overrides_runpath=no
16193 hardcode_into_libs=yes
16194 dynamic_linker='GNU ld.so'
16197 freebsd* | dragonfly*)
16198 # DragonFly does not have aout. When/if they implement a new
16199 # versioning mechanism, adjust this.
16200 if test -x /usr/bin/objformat; then
16201 objformat=`/usr/bin/objformat`
16204 freebsd[123]*) objformat=aout ;;
16205 *) objformat=elf ;;
16208 version_type=freebsd-$objformat
16209 case $version_type in
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16220 shlibpath_var=LD_LIBRARY_PATH
16223 shlibpath_overrides_runpath=yes
16225 freebsd3.[01]* | freebsdelf3.[01]*)
16226 shlibpath_overrides_runpath=yes
16227 hardcode_into_libs=yes
16229 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16230 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16231 shlibpath_overrides_runpath=no
16232 hardcode_into_libs=yes
16234 freebsd*) # from 4.6 on
16235 shlibpath_overrides_runpath=yes
16236 hardcode_into_libs=yes
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 hardcode_into_libs=yes
16251 hpux9* | hpux10* | hpux11*)
16252 # Give a soname corresponding to the major version so that dld.sl refuses to
16253 # link against other versions.
16260 hardcode_into_libs=yes
16261 dynamic_linker="$host_os dld.so"
16262 shlibpath_var=LD_LIBRARY_PATH
16263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 if test "X$HPUX_IA64_MODE" = X32; then
16267 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16269 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16275 hardcode_into_libs=yes
16276 dynamic_linker="$host_os dld.sl"
16277 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16286 dynamic_linker="$host_os dld.sl"
16287 shlibpath_var=SHLIB_PATH
16288 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16293 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16294 postinstall_cmds='chmod 555 $lib'
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 shlibpath_overrides_runpath=no
16306 hardcode_into_libs=yes
16309 irix5* | irix6* | nonstopux*)
16311 nonstopux*) version_type=nonstopux ;;
16313 if test "$lt_cv_prog_gnu_ld" = yes; then
16321 soname_spec='${libname}${release}${shared_ext}$major'
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16324 irix5* | nonstopux*)
16325 libsuff= shlibsuff=
16328 case $LD in # libtool.m4 will add one of these switches to LD
16329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16330 libsuff= shlibsuff= libmagic=32-bit;;
16331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16332 libsuff=32 shlibsuff=N32 libmagic=N32;;
16333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16335 *) libsuff= shlibsuff= libmagic=never-match;;
16339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16340 shlibpath_overrides_runpath=no
16341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16343 hardcode_into_libs=yes
16346 # No shared lib support for Linux oldld, aout, or coff.
16347 linux*oldld* | linux*aout* | linux*coff*)
16351 # This must be Linux ELF.
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 shlibpath_overrides_runpath=no
16361 # This implies no fast_install, which is unacceptable.
16362 # Some rework will be needed to allow for fast_install
16363 # before this can be enabled.
16364 hardcode_into_libs=yes
16366 # Append ld.so.conf contents to the search path
16367 if test -f /etc/ld.so.conf; then
16368 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' ' '`
16369 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16372 # We used to test for /lib/ld.so.1 and disable shared libraries on
16373 # powerpc, because MkLinux only supported shared libraries with the
16374 # GNU dynamic linker. Since this was broken with cross compilers,
16375 # most powerpc-linux boxes support dynamic linking these days and
16376 # people can always --disable-shared, the test was removed, and we
16377 # assume the GNU/Linux dynamic linker is in use.
16378 dynamic_linker='GNU/Linux ld.so'
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=no
16389 hardcode_into_libs=yes
16390 dynamic_linker='GNU ld.so'
16397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16400 dynamic_linker='NetBSD (a.out) ld.so'
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 dynamic_linker='NetBSD ld.elf_so'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=yes
16408 hardcode_into_libs=yes
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16430 sys_lib_dlsearch_path_spec="/usr/lib"
16432 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16434 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16435 *) need_version=no ;;
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16442 openbsd2.[89] | openbsd2.[89].*)
16443 shlibpath_overrides_runpath=no
16446 shlibpath_overrides_runpath=yes
16450 shlibpath_overrides_runpath=yes
16455 libname_spec='$name'
16458 library_names_spec='$libname${shared_ext} $libname.a'
16459 dynamic_linker='OS/2 ld.exe'
16460 shlibpath_var=LIBPATH
16463 osf3* | osf4* | osf5*)
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469 shlibpath_var=LD_LIBRARY_PATH
16470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=yes
16482 hardcode_into_libs=yes
16483 # ldd complains unless libraries are executable
16484 postinstall_cmds='chmod +x $lib'
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16490 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 if test "$with_gnu_ld" = yes; then
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 case $host_vendor in
16506 shlibpath_overrides_runpath=no
16508 export_dynamic_flag_spec='${wl}-Blargedynsym'
16509 runpath_var=LD_RUN_PATH
16517 shlibpath_overrides_runpath=no
16518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16524 if test -d /usr/nec ;then
16526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527 soname_spec='$libname${shared_ext}.$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16533 version_type=freebsd-elf
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 hardcode_into_libs=yes
16540 if test "$with_gnu_ld" = yes; then
16541 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16542 shlibpath_overrides_runpath=no
16544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16545 shlibpath_overrides_runpath=yes
16548 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16552 sys_lib_dlsearch_path_spec='/usr/lib'
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 shlibpath_var=LD_LIBRARY_PATH
16566 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16567 echo "${ECHO_T}$dynamic_linker" >&6; }
16568 test "$dynamic_linker" = no && can_build_shared=no
16570 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16571 if test "$GCC" = yes; then
16572 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16575 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16576 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16578 if test -n "$hardcode_libdir_flag_spec" || \
16579 test -n "$runpath_var" || \
16580 test "X$hardcode_automatic" = "Xyes" ; then
16582 # We can hardcode non-existant directories.
16583 if test "$hardcode_direct" != no &&
16584 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16585 # have to relink, otherwise we might link with an installed library
16586 # when we should be linking with a yet-to-be-installed one
16587 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16588 test "$hardcode_minus_L" != no; then
16589 # Linking always hardcodes the temporary library directory.
16590 hardcode_action=relink
16592 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16593 hardcode_action=immediate
16596 # We cannot hardcode anything, or else we can only hardcode existing
16598 hardcode_action=unsupported
16600 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16601 echo "${ECHO_T}$hardcode_action" >&6; }
16603 if test "$hardcode_action" = relink; then
16604 # Fast installation is not supported
16605 enable_fast_install=no
16606 elif test "$shlibpath_overrides_runpath" = yes ||
16607 test "$enable_shared" = no; then
16608 # Fast installation is not necessary
16609 enable_fast_install=needless
16614 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16615 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16616 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16618 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16619 { echo "$as_me:$LINENO: result: yes" >&5
16620 echo "${ECHO_T}yes" >&6; }
16622 # FIXME - insert some real tests, host_os isn't really good enough
16625 if test -n "$STRIP" ; then
16626 striplib="$STRIP -x"
16627 { echo "$as_me:$LINENO: result: yes" >&5
16628 echo "${ECHO_T}yes" >&6; }
16630 { echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6; }
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16641 if test "x$enable_dlopen" != xyes; then
16642 enable_dlopen=unknown
16643 enable_dlopen_self=unknown
16644 enable_dlopen_self_static=unknown
16651 lt_cv_dlopen="load_add_on"
16653 lt_cv_dlopen_self=yes
16657 lt_cv_dlopen="LoadLibrary"
16662 lt_cv_dlopen="dlopen"
16667 # if libdl is installed we need to link against it
16668 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 ac_check_lib_save_LIBS=$LIBS
16675 cat >conftest.$ac_ext <<_ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16682 /* Override any GCC internal prototype to avoid an error.
16683 Use char because int might match the return type of a GCC
16684 builtin and then its argument prototype would still apply. */
16697 rm -f conftest.$ac_objext conftest$ac_exeext
16698 if { (ac_try="$ac_link"
16699 case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_link") 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest$ac_exeext'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_cv_lib_dl_dlopen=yes
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 ac_cv_lib_dl_dlopen=no
16739 rm -f core conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741 LIBS=$ac_check_lib_save_LIBS
16743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16745 if test $ac_cv_lib_dl_dlopen = yes; then
16746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16749 lt_cv_dlopen="dyld"
16751 lt_cv_dlopen_self=yes
16758 { echo "$as_me:$LINENO: checking for shl_load" >&5
16759 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16760 if test "${ac_cv_func_shl_load+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 cat >conftest.$ac_ext <<_ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16771 #define shl_load innocuous_shl_load
16773 /* System header to define __stub macros and hopefully few prototypes,
16774 which can conflict with char shl_load (); below.
16775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16776 <limits.h> exists even on freestanding compilers. */
16779 # include <limits.h>
16781 # include <assert.h>
16786 /* Override any GCC internal prototype to avoid an error.
16787 Use char because int might match the return type of a GCC
16788 builtin and then its argument prototype would still apply. */
16793 /* The GNU C library defines this for functions which it implements
16794 to always fail with ENOSYS. Some functions are actually named
16795 something starting with __ and the normal name is an alias. */
16796 #if defined __stub_shl_load || defined __stub___shl_load
16803 return shl_load ();
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (ac_try="$ac_link"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_link") 2>conftest.er1
16817 grep -v '^ *+' conftest.er1 >conftest.err
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest$ac_exeext'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 ac_cv_func_shl_load=yes
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 ac_cv_func_shl_load=no
16850 rm -f core conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16853 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16855 if test $ac_cv_func_shl_load = yes; then
16856 lt_cv_dlopen="shl_load"
16858 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 ac_check_lib_save_LIBS=$LIBS
16865 cat >conftest.$ac_ext <<_ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16872 /* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
16882 return shl_load ();
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (ac_try="$ac_link"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_link") 2>conftest.er1
16896 grep -v '^ *+' conftest.er1 >conftest.err
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_cv_lib_dld_shl_load=yes
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 ac_cv_lib_dld_shl_load=no
16929 rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16931 LIBS=$ac_check_lib_save_LIBS
16933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16934 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16935 if test $ac_cv_lib_dld_shl_load = yes; then
16936 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16938 { echo "$as_me:$LINENO: checking for dlopen" >&5
16939 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16940 if test "${ac_cv_func_dlopen+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16951 #define dlopen innocuous_dlopen
16953 /* System header to define __stub macros and hopefully few prototypes,
16954 which can conflict with char dlopen (); below.
16955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16956 <limits.h> exists even on freestanding compilers. */
16959 # include <limits.h>
16961 # include <assert.h>
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16973 /* The GNU C library defines this for functions which it implements
16974 to always fail with ENOSYS. Some functions are actually named
16975 something starting with __ and the normal name is an alias. */
16976 #if defined __stub_dlopen || defined __stub___dlopen
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (ac_try="$ac_link"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_link") 2>conftest.er1
16997 grep -v '^ *+' conftest.er1 >conftest.err
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17003 { (case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_try") 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest$ac_exeext'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_func_dlopen=yes
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ac_cv_func_dlopen=no
17030 rm -f core conftest.err conftest.$ac_objext \
17031 conftest$ac_exeext conftest.$ac_ext
17033 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17034 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17035 if test $ac_cv_func_dlopen = yes; then
17036 lt_cv_dlopen="dlopen"
17038 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17039 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 ac_check_lib_save_LIBS=$LIBS
17045 cat >conftest.$ac_ext <<_ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17052 /* Override any GCC internal prototype to avoid an error.
17053 Use char because int might match the return type of a GCC
17054 builtin and then its argument prototype would still apply. */
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (ac_try="$ac_link"
17069 case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_link") 2>conftest.er1
17076 grep -v '^ *+' conftest.er1 >conftest.err
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082 { (case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_try") 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_cv_lib_dl_dlopen=yes
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17106 ac_cv_lib_dl_dlopen=no
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111 LIBS=$ac_check_lib_save_LIBS
17113 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17114 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17115 if test $ac_cv_lib_dl_dlopen = yes; then
17116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17118 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17119 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17120 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 ac_check_lib_save_LIBS=$LIBS
17124 LIBS="-lsvld $LIBS"
17125 cat >conftest.$ac_ext <<_ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h. */
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>conftest.er1
17156 grep -v '^ *+' conftest.er1 >conftest.err
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162 { (case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_try") 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest$ac_exeext'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_cv_lib_svld_dlopen=yes
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_lib_svld_dlopen=no
17189 rm -f core conftest.err conftest.$ac_objext \
17190 conftest$ac_exeext conftest.$ac_ext
17191 LIBS=$ac_check_lib_save_LIBS
17193 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17194 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17195 if test $ac_cv_lib_svld_dlopen = yes; then
17196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17198 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17199 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17200 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 ac_check_lib_save_LIBS=$LIBS
17205 cat >conftest.$ac_ext <<_ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17222 return dld_link ();
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_cv_lib_dld_dld_link=yes
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 ac_cv_lib_dld_dld_link=no
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17273 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17274 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17275 if test $ac_cv_lib_dld_dld_link = yes; then
17276 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17297 if test "x$lt_cv_dlopen" != xno; then
17303 case $lt_cv_dlopen in
17305 save_CPPFLAGS="$CPPFLAGS"
17306 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17308 save_LDFLAGS="$LDFLAGS"
17309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17312 LIBS="$lt_cv_dlopen_libs $LIBS"
17314 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17315 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17316 if test "${lt_cv_dlopen_self+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 if test "$cross_compiling" = yes; then :
17320 lt_cv_dlopen_self=cross
17322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17323 lt_status=$lt_dlunknown
17324 cat > conftest.$ac_ext <<EOF
17325 #line 17325 "configure"
17326 #include "confdefs.h"
17335 # define LT_DLGLOBAL RTLD_GLOBAL
17338 # define LT_DLGLOBAL DL_GLOBAL
17340 # define LT_DLGLOBAL 0
17344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17345 find out it does not work in some platform. */
17346 #ifndef LT_DLLAZY_OR_NOW
17348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17351 # define LT_DLLAZY_OR_NOW DL_LAZY
17354 # define LT_DLLAZY_OR_NOW RTLD_NOW
17357 # define LT_DLLAZY_OR_NOW DL_NOW
17359 # define LT_DLLAZY_OR_NOW 0
17367 extern "C" void exit (int);
17370 void fnord() { int i=42;}
17373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17374 int status = $lt_dlunknown;
17378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17379 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17380 /* dlclose (self); */
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17393 (./conftest; exit; ) >&5 2>/dev/null
17395 case x$lt_status in
17396 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17397 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17398 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17401 # compilation failed
17402 lt_cv_dlopen_self=no
17409 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17410 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17412 if test "x$lt_cv_dlopen_self" = xyes; then
17413 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17414 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17415 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17416 if test "${lt_cv_dlopen_self_static+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 if test "$cross_compiling" = yes; then :
17420 lt_cv_dlopen_self_static=cross
17422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17423 lt_status=$lt_dlunknown
17424 cat > conftest.$ac_ext <<EOF
17425 #line 17425 "configure"
17426 #include "confdefs.h"
17435 # define LT_DLGLOBAL RTLD_GLOBAL
17438 # define LT_DLGLOBAL DL_GLOBAL
17440 # define LT_DLGLOBAL 0
17444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17445 find out it does not work in some platform. */
17446 #ifndef LT_DLLAZY_OR_NOW
17448 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17451 # define LT_DLLAZY_OR_NOW DL_LAZY
17454 # define LT_DLLAZY_OR_NOW RTLD_NOW
17457 # define LT_DLLAZY_OR_NOW DL_NOW
17459 # define LT_DLLAZY_OR_NOW 0
17467 extern "C" void exit (int);
17470 void fnord() { int i=42;}
17473 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17474 int status = $lt_dlunknown;
17478 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17479 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17480 /* dlclose (self); */
17488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17489 (eval $ac_link) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17493 (./conftest; exit; ) >&5 2>/dev/null
17495 case x$lt_status in
17496 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17497 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17498 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17501 # compilation failed
17502 lt_cv_dlopen_self_static=no
17509 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17510 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17513 CPPFLAGS="$save_CPPFLAGS"
17514 LDFLAGS="$save_LDFLAGS"
17519 case $lt_cv_dlopen_self in
17520 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17521 *) enable_dlopen_self=unknown ;;
17524 case $lt_cv_dlopen_self_static in
17525 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17526 *) enable_dlopen_self_static=unknown ;;
17531 # Report which library types will actually be built
17532 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17533 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17534 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17535 echo "${ECHO_T}$can_build_shared" >&6; }
17537 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17538 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17539 test "$can_build_shared" = "no" && enable_shared=no
17541 # On AIX, shared libraries and static libraries use the same namespace, and
17542 # are all built from PIC.
17545 test "$enable_shared" = yes && enable_static=no
17546 if test -n "$RANLIB"; then
17547 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17548 postinstall_cmds='$RANLIB $lib'
17553 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17554 test "$enable_shared" = yes && enable_static=no
17558 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17559 echo "${ECHO_T}$enable_shared" >&6; }
17561 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17562 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17563 # Make sure either enable_shared or enable_static is yes.
17564 test "$enable_shared" = yes || enable_static=yes
17565 { echo "$as_me:$LINENO: result: $enable_static" >&5
17566 echo "${ECHO_T}$enable_static" >&6; }
17568 # The else clause should only fire when bootstrapping the
17569 # libtool distribution, otherwise you forgot to ship ltmain.sh
17570 # with your package, and you will get complaints that there are
17571 # no rules to generate ltmain.sh.
17572 if test -f "$ltmain"; then
17573 # See if we are running on zsh, and set the options which allow our commands through
17574 # without removal of \ escapes.
17575 if test -n "${ZSH_VERSION+set}" ; then
17576 setopt NO_GLOB_SUBST
17578 # Now quote all the things that may contain metacharacters while being
17579 # careful not to overquote the AC_SUBSTed values. We take copies of the
17580 # variables and quote the copies for generation of the libtool script.
17581 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17583 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17584 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17585 deplibs_check_method reload_flag reload_cmds need_locks \
17586 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17587 lt_cv_sys_global_symbol_to_c_name_address \
17588 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17589 old_postinstall_cmds old_postuninstall_cmds \
17593 lt_prog_compiler_wl \
17594 lt_prog_compiler_pic \
17595 lt_prog_compiler_static \
17596 lt_prog_compiler_no_builtin_flag \
17597 export_dynamic_flag_spec \
17598 thread_safe_flag_spec \
17599 whole_archive_flag_spec \
17600 enable_shared_with_static_runtimes \
17602 old_archive_from_new_cmds \
17607 compiler_lib_search_path \
17609 archive_expsym_cmds \
17611 postuninstall_cmds \
17612 old_archive_from_expsyms_cmds \
17613 allow_undefined_flag \
17614 no_undefined_flag \
17615 export_symbols_cmds \
17616 hardcode_libdir_flag_spec \
17617 hardcode_libdir_flag_spec_ld \
17618 hardcode_libdir_separator \
17619 hardcode_automatic \
17621 module_expsym_cmds \
17622 lt_cv_prog_compiler_c_o \
17624 include_expsyms; do
17627 old_archive_cmds | \
17628 old_archive_from_new_cmds | \
17630 archive_expsym_cmds | \
17632 module_expsym_cmds | \
17633 old_archive_from_expsyms_cmds | \
17634 export_symbols_cmds | \
17635 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17636 postinstall_cmds | postuninstall_cmds | \
17637 old_postinstall_cmds | old_postuninstall_cmds | \
17638 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17639 # Double-quote double-evaled strings.
17640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17649 *'\$0 --fallback-echo"')
17650 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17654 cfgfile="${ofile}T"
17655 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17657 { echo "$as_me:$LINENO: creating $ofile" >&5
17658 echo "$as_me: creating $ofile" >&6;}
17660 cat <<__EOF__ >> "$cfgfile"
17663 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17664 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17665 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17667 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17668 # Free Software Foundation, Inc.
17670 # This file is part of GNU Libtool:
17671 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17673 # This program is free software; you can redistribute it and/or modify
17674 # it under the terms of the GNU General Public License as published by
17675 # the Free Software Foundation; either version 2 of the License, or
17676 # (at your option) any later version.
17678 # This program is distributed in the hope that it will be useful, but
17679 # WITHOUT ANY WARRANTY; without even the implied warranty of
17680 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17681 # General Public License for more details.
17683 # You should have received a copy of the GNU General Public License
17684 # along with this program; if not, write to the Free Software
17685 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17687 # As a special exception to the GNU General Public License, if you
17688 # distribute this file as part of a program that contains a
17689 # configuration script generated by Autoconf, you may include it under
17690 # the same distribution terms that you use for the rest of that program.
17692 # A sed program that does not truncate output.
17695 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17696 Xsed="$SED -e 1s/^X//"
17698 # The HP-UX ksh and POSIX shell print the target directory to stdout
17699 # if CDPATH is set.
17700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17702 # The names of the tagged configurations supported by this script.
17705 # ### BEGIN LIBTOOL CONFIG
17707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17709 # Shell to use when invoking shell scripts.
17712 # Whether or not to build shared libraries.
17713 build_libtool_libs=$enable_shared
17715 # Whether or not to build static libraries.
17716 build_old_libs=$enable_static
17718 # Whether or not to add -lc for building shared libraries.
17719 build_libtool_need_lc=$archive_cmds_need_lc
17721 # Whether or not to disallow shared libs when runtime libs are static
17722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17724 # Whether or not to optimize for fast installation.
17725 fast_install=$enable_fast_install
17728 host_alias=$host_alias
17732 # The build system.
17733 build_alias=$build_alias
17737 # An echo program that does not interpret backslashes.
17742 AR_FLAGS=$lt_AR_FLAGS
17747 # LTCC compiler flags.
17748 LTCFLAGS=$lt_LTCFLAGS
17750 # A language-specific compiler.
17753 # Is the compiler the GNU C compiler?
17759 # The linker used to build libraries.
17762 # Whether we need hard or soft links.
17765 # A BSD-compatible nm program.
17768 # A symbol stripping program
17771 # Used to examine libraries when file_magic_cmd begins "file"
17772 MAGIC_CMD=$MAGIC_CMD
17774 # Used on cygwin: DLL creation program.
17777 # Used on cygwin: object dumper.
17780 # Used on cygwin: assembler.
17783 # The name of the directory that contains temporary libtool files.
17786 # How to create reloadable object files.
17787 reload_flag=$lt_reload_flag
17788 reload_cmds=$lt_reload_cmds
17790 # How to pass a linker flag through the compiler.
17791 wl=$lt_lt_prog_compiler_wl
17793 # Object file suffix (normally "o").
17794 objext="$ac_objext"
17796 # Old archive suffix (normally "a").
17799 # Shared library suffix (normally ".so").
17800 shrext_cmds='$shrext_cmds'
17802 # Executable file suffix (normally "").
17805 # Additional compiler flags for building library objects.
17806 pic_flag=$lt_lt_prog_compiler_pic
17809 # What is the maximum length of a command?
17810 max_cmd_len=$lt_cv_sys_max_cmd_len
17812 # Does compiler simultaneously support -c and -o options?
17813 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17815 # Must we lock files when doing compilation?
17816 need_locks=$lt_need_locks
17818 # Do we need the lib prefix for modules?
17819 need_lib_prefix=$need_lib_prefix
17821 # Do we need a version for libraries?
17822 need_version=$need_version
17824 # Whether dlopen is supported.
17825 dlopen_support=$enable_dlopen
17827 # Whether dlopen of programs is supported.
17828 dlopen_self=$enable_dlopen_self
17830 # Whether dlopen of statically linked programs is supported.
17831 dlopen_self_static=$enable_dlopen_self_static
17833 # Compiler flag to prevent dynamic linking.
17834 link_static_flag=$lt_lt_prog_compiler_static
17836 # Compiler flag to turn off builtin functions.
17837 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17839 # Compiler flag to allow reflexive dlopens.
17840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17842 # Compiler flag to generate shared objects directly from archives.
17843 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17845 # Compiler flag to generate thread-safe objects.
17846 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17848 # Library versioning type.
17849 version_type=$version_type
17851 # Format of library name prefix.
17852 libname_spec=$lt_libname_spec
17854 # List of archive names. First name is the real one, the rest are links.
17855 # The last name is the one that the linker finds with -lNAME.
17856 library_names_spec=$lt_library_names_spec
17858 # The coded name of the library, if different from the real name.
17859 soname_spec=$lt_soname_spec
17861 # Commands used to build and install an old-style archive.
17863 old_archive_cmds=$lt_old_archive_cmds
17864 old_postinstall_cmds=$lt_old_postinstall_cmds
17865 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17867 # Create an old-style archive from a shared archive.
17868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17870 # Create a temporary old-style archive to link instead of a shared archive.
17871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17873 # Commands used to build and install a shared archive.
17874 archive_cmds=$lt_archive_cmds
17875 archive_expsym_cmds=$lt_archive_expsym_cmds
17876 postinstall_cmds=$lt_postinstall_cmds
17877 postuninstall_cmds=$lt_postuninstall_cmds
17879 # Commands used to build a loadable module (assumed same as above if empty)
17880 module_cmds=$lt_module_cmds
17881 module_expsym_cmds=$lt_module_expsym_cmds
17883 # Commands to strip libraries.
17884 old_striplib=$lt_old_striplib
17885 striplib=$lt_striplib
17887 # Dependencies to place before the objects being linked to create a
17889 predep_objects=$lt_predep_objects
17891 # Dependencies to place after the objects being linked to create a
17893 postdep_objects=$lt_postdep_objects
17895 # Dependencies to place before the objects being linked to create a
17897 predeps=$lt_predeps
17899 # Dependencies to place after the objects being linked to create a
17901 postdeps=$lt_postdeps
17903 # The library search path used internally by the compiler when linking
17904 # a shared library.
17905 compiler_lib_search_path=$lt_compiler_lib_search_path
17907 # Method to check whether dependent libraries are shared objects.
17908 deplibs_check_method=$lt_deplibs_check_method
17910 # Command to use when deplibs_check_method == file_magic.
17911 file_magic_cmd=$lt_file_magic_cmd
17913 # Flag that allows shared libraries with undefined symbols to be built.
17914 allow_undefined_flag=$lt_allow_undefined_flag
17916 # Flag that forces no undefined symbols.
17917 no_undefined_flag=$lt_no_undefined_flag
17919 # Commands used to finish a libtool library installation in a directory.
17920 finish_cmds=$lt_finish_cmds
17922 # Same as above, but a single script fragment to be evaled but not shown.
17923 finish_eval=$lt_finish_eval
17925 # Take the output of nm and produce a listing of raw symbols and C names.
17926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17928 # Transform the output of nm in a proper C declaration
17929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17931 # Transform the output of nm in a C name address pair
17932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17934 # This is the shared library runtime path variable.
17935 runpath_var=$runpath_var
17937 # This is the shared library path variable.
17938 shlibpath_var=$shlibpath_var
17940 # Is shlibpath searched before the hard-coded library search path?
17941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17943 # How to hardcode a shared library path into an executable.
17944 hardcode_action=$hardcode_action
17946 # Whether we should hardcode library paths into libraries.
17947 hardcode_into_libs=$hardcode_into_libs
17949 # Flag to hardcode \$libdir into a binary during linking.
17950 # This must work even if \$libdir does not exist.
17951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17953 # If ld is used when linking, flag to hardcode \$libdir into
17954 # a binary during linking. This must work even if \$libdir does
17956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17958 # Whether we need a single -rpath flag with a separated argument.
17959 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17962 # resulting binary.
17963 hardcode_direct=$hardcode_direct
17965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966 # resulting binary.
17967 hardcode_minus_L=$hardcode_minus_L
17969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970 # the resulting binary.
17971 hardcode_shlibpath_var=$hardcode_shlibpath_var
17973 # Set to yes if building a shared library automatically hardcodes DIR into the library
17974 # and all subsequent libraries and executables linked against it.
17975 hardcode_automatic=$hardcode_automatic
17977 # Variables whose values should be saved in libtool wrapper scripts and
17978 # restored at relink time.
17979 variables_saved_for_relink="$variables_saved_for_relink"
17981 # Whether libtool must link a program against all its dependency libraries.
17982 link_all_deplibs=$link_all_deplibs
17984 # Compile-time system search path for libraries
17985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17987 # Run-time system search path for libraries
17988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17990 # Fix the shell variable \$srcfile for the compiler.
17991 fix_srcfile_path="$fix_srcfile_path"
17993 # Set to yes if exported symbols are required.
17994 always_export_symbols=$always_export_symbols
17996 # The commands to list exported symbols.
17997 export_symbols_cmds=$lt_export_symbols_cmds
17999 # The commands to extract the exported symbol list from a shared archive.
18000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18002 # Symbols that should not be listed in the preloaded symbols.
18003 exclude_expsyms=$lt_exclude_expsyms
18005 # Symbols that must always be exported.
18006 include_expsyms=$lt_include_expsyms
18008 # ### END LIBTOOL CONFIG
18015 cat <<\EOF >> "$cfgfile"
18017 # AIX sometimes has problems with the GCC collect2 program. For some
18018 # reason, if we set the COLLECT_NAMES environment variable, the problems
18019 # vanish in a puff of smoke.
18020 if test "X${COLLECT_NAMES+set}" != Xset; then
18022 export COLLECT_NAMES
18028 # We use sed instead of cat because bash on DJGPP gets confused if
18029 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18030 # text mode, it properly converts lines to CR/LF. This bash problem
18031 # is reportedly fixed, but why not run on old versions too?
18032 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18034 mv -f "$cfgfile" "$ofile" || \
18035 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18039 # If there is no Makefile yet, we rely on a make rule to execute
18040 # `config.status --recheck' to rerun these tests and create the
18041 # libtool script then.
18042 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18043 if test -f "$ltmain_in"; then
18044 test -f Makefile && make "$ltmain"
18050 ac_cpp='$CPP $CPPFLAGS'
18051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18058 # Check whether --with-tags was given.
18059 if test "${with_tags+set}" = set; then
18060 withval=$with_tags; tagnames="$withval"
18064 if test -f "$ltmain" && test -n "$tagnames"; then
18065 if test ! -f "${ofile}"; then
18066 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18067 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18070 if test -z "$LTCC"; then
18071 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18072 if test -z "$LTCC"; then
18073 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18074 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18077 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18080 if test -z "$LTCFLAGS"; then
18081 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18084 # Extract list of available tagged configurations in $ofile.
18085 # Note that this assumes the entire list is on one line.
18086 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18089 for tagname in $tagnames; do
18091 # Check whether tagname contains only valid characters
18092 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18094 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18095 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18096 { (exit 1); exit 1; }; }
18100 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18102 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18103 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18104 { (exit 1); exit 1; }; }
18107 # Update the list of available tags.
18108 if test -n "$tagname"; then
18109 echo appending configuration tag \"$tagname\" to $ofile
18113 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18114 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18115 (test "X$CXX" != "Xg++"))) ; then
18117 ac_cpp='$CXXCPP $CPPFLAGS'
18118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18125 archive_cmds_need_lc_CXX=no
18126 allow_undefined_flag_CXX=
18127 always_export_symbols_CXX=no
18128 archive_expsym_cmds_CXX=
18129 export_dynamic_flag_spec_CXX=
18130 hardcode_direct_CXX=no
18131 hardcode_libdir_flag_spec_CXX=
18132 hardcode_libdir_flag_spec_ld_CXX=
18133 hardcode_libdir_separator_CXX=
18134 hardcode_minus_L_CXX=no
18135 hardcode_shlibpath_var_CXX=unsupported
18136 hardcode_automatic_CXX=no
18138 module_expsym_cmds_CXX=
18139 link_all_deplibs_CXX=unknown
18140 old_archive_cmds_CXX=$old_archive_cmds
18141 no_undefined_flag_CXX=
18142 whole_archive_flag_spec_CXX=
18143 enable_shared_with_static_runtimes_CXX=no
18145 # Dependencies to place before and after the object being linked:
18146 predep_objects_CXX=
18147 postdep_objects_CXX=
18150 compiler_lib_search_path_CXX=
18152 # Source file extension for C++ test sources.
18155 # Object file extension for compiled C++ test sources.
18159 # Code to be used in simple compile tests
18160 lt_simple_compile_test_code="int some_variable = 0;\n"
18162 # Code to be used in simple link tests
18163 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18167 # If no C compiler was specified, use CC.
18170 # If no C compiler flags were specified, use CFLAGS.
18171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18173 # Allow CC to be a program name with arguments.
18177 # save warnings/boilerplate of simple test code
18178 ac_outfile=conftest.$ac_objext
18179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18181 _lt_compiler_boilerplate=`cat conftest.err`
18184 ac_outfile=conftest.$ac_objext
18185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18187 _lt_linker_boilerplate=`cat conftest.err`
18191 # Allow CC to be a program name with arguments.
18196 lt_save_with_gnu_ld=$with_gnu_ld
18197 lt_save_path_LD=$lt_cv_path_LD
18198 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18199 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18201 $as_unset lt_cv_prog_gnu_ld
18203 if test -n "${lt_cv_path_LDCXX+set}"; then
18204 lt_cv_path_LD=$lt_cv_path_LDCXX
18206 $as_unset lt_cv_path_LD
18208 test -z "${LDCXX+set}" || LD=$LDCXX
18212 for cc_temp in $compiler""; do
18214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18223 # We don't want -fno-exception wen compiling C++ code, so set the
18224 # no_builtin_flag separately
18225 if test "$GXX" = yes; then
18226 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18228 lt_prog_compiler_no_builtin_flag_CXX=
18231 if test "$GXX" = yes; then
18232 # Set up default GNU C++ configuration
18235 # Check whether --with-gnu-ld was given.
18236 if test "${with_gnu_ld+set}" = set; then
18237 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18243 if test "$GCC" = yes; then
18244 # Check if gcc -print-prog-name=ld gives a path.
18245 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18246 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18249 # gcc leaves a trailing carriage return which upsets mingw
18250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18255 # Accept absolute paths.
18257 re_direlt='/[^/][^/]*/\.\./'
18258 # Canonicalize the pathname of ld
18259 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18260 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18261 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18263 test -z "$LD" && LD="$ac_prog"
18266 # If it fails, then pretend we aren't using GCC.
18270 # If it is relative, then search for the first ld in PATH.
18271 with_gnu_ld=unknown
18274 elif test "$with_gnu_ld" = yes; then
18275 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18278 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18281 if test "${lt_cv_path_LD+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 if test -z "$LD"; then
18285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18286 for ac_dir in $PATH; do
18288 test -z "$ac_dir" && ac_dir=.
18289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18290 lt_cv_path_LD="$ac_dir/$ac_prog"
18291 # Check to see if the program is GNU ld. I'd rather use --version,
18292 # but apparently some variants of GNU ld only accept -v.
18293 # Break only if it was the GNU/non-GNU ld that we prefer.
18294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18295 *GNU* | *'with BFD'*)
18296 test "$with_gnu_ld" != no && break
18299 test "$with_gnu_ld" != yes && break
18306 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18310 LD="$lt_cv_path_LD"
18311 if test -n "$LD"; then
18312 { echo "$as_me:$LINENO: result: $LD" >&5
18313 echo "${ECHO_T}$LD" >&6; }
18315 { echo "$as_me:$LINENO: result: no" >&5
18316 echo "${ECHO_T}no" >&6; }
18318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18320 { (exit 1); exit 1; }; }
18321 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18323 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18327 case `$LD -v 2>&1 </dev/null` in
18328 *GNU* | *'with BFD'*)
18329 lt_cv_prog_gnu_ld=yes
18332 lt_cv_prog_gnu_ld=no
18336 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18337 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18338 with_gnu_ld=$lt_cv_prog_gnu_ld
18342 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18343 # archiving commands below assume that GNU ld is being used.
18344 if test "$with_gnu_ld" = yes; then
18345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18346 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'
18348 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18351 # If archive_cmds runs LD, not CC, wlarc should be empty
18352 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18353 # investigate it a little bit more. (MM)
18356 # ancient GNU ld didn't support --whole-archive et. al.
18357 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18358 grep 'no-whole-archive' > /dev/null; then
18359 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18361 whole_archive_flag_spec_CXX=
18367 # A generic and very simple default shared library creation
18368 # command for GNU C++ for the case where it uses the native
18369 # linker, instead of GNU ld. If possible, this setting should
18370 # overridden to take advantage of the native linker features on
18371 # the platform it is being used on.
18372 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18375 # Commands to make compiler produce verbose output that lists
18376 # what "hidden" libraries, object files and flags are used when
18377 # linking a shared library.
18378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18386 # PORTME: fill in a description of your system's C++ link characteristics
18387 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18388 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18392 # FIXME: insert proper C++ library support
18396 if test "$host_cpu" = ia64; then
18397 # On IA64, the linker does run time linking by default, so we don't
18398 # have to do anything special.
18399 aix_use_runtimelinking=no
18400 exp_sym_flag='-Bexport'
18403 aix_use_runtimelinking=no
18405 # Test if we are trying to use run time linking or normal
18406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18407 # need to do runtime linking.
18408 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18409 for ld_flag in $LDFLAGS; do
18412 aix_use_runtimelinking=yes
18420 exp_sym_flag='-bexport'
18421 no_entry_flag='-bnoentry'
18424 # When large executables or shared objects are built, AIX ld can
18425 # have problems creating the table of contents. If linking a library
18426 # or program results in "error TOC overflow" add -mminimal-toc to
18427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18430 archive_cmds_CXX=''
18431 hardcode_direct_CXX=yes
18432 hardcode_libdir_separator_CXX=':'
18433 link_all_deplibs_CXX=yes
18435 if test "$GXX" = yes; then
18436 case $host_os in aix4.[012]|aix4.[012].*)
18437 # We only want to do this on AIX 4.2 and lower, the check
18438 # below for broken collect2 doesn't work under 4.3+
18439 collect2name=`${CC} -print-prog-name=collect2`
18440 if test -f "$collect2name" && \
18441 strings "$collect2name" | grep resolve_lib_name >/dev/null
18443 # We have reworked collect2
18444 hardcode_direct_CXX=yes
18446 # We have old collect2
18447 hardcode_direct_CXX=unsupported
18448 # It fails to find uninstalled libraries when the uninstalled
18449 # path is not listed in the libpath. Setting hardcode_minus_L
18450 # to unsupported forces relinking
18451 hardcode_minus_L_CXX=yes
18452 hardcode_libdir_flag_spec_CXX='-L$libdir'
18453 hardcode_libdir_separator_CXX=
18457 shared_flag='-shared'
18458 if test "$aix_use_runtimelinking" = yes; then
18459 shared_flag="$shared_flag "'${wl}-G'
18463 if test "$host_cpu" = ia64; then
18464 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18465 # chokes on -Wl,-G. The following line is correct:
18468 if test "$aix_use_runtimelinking" = yes; then
18469 shared_flag='${wl}-G'
18471 shared_flag='${wl}-bM:SRE'
18476 # It seems that -bexpall does not export symbols beginning with
18477 # underscore (_), so it is better to generate a list of symbols to export.
18478 always_export_symbols_CXX=yes
18479 if test "$aix_use_runtimelinking" = yes; then
18480 # Warning - without using the other runtime loading flags (-brtl),
18481 # -berok will link without error, but may produce a broken library.
18482 allow_undefined_flag_CXX='-berok'
18483 # Determine the default libpath from the value encoded in an empty executable.
18484 cat >conftest.$ac_ext <<_ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
18508 grep -v '^ *+' conftest.er1 >conftest.err
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest$ac_exeext'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18536 # Check for a 64-bit object if we didn't find anything.
18537 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; }
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18546 rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18550 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18552 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"
18554 if test "$host_cpu" = ia64; then
18555 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18556 allow_undefined_flag_CXX="-z nodefs"
18557 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"
18559 # Determine the default libpath from the value encoded in an empty executable.
18560 cat >conftest.$ac_ext <<_ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18575 rm -f conftest.$ac_objext conftest$ac_exeext
18576 if { (ac_try="$ac_link"
18577 case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_link") 2>conftest.er1
18584 grep -v '^ *+' conftest.er1 >conftest.err
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18612 # Check for a 64-bit object if we didn't find anything.
18613 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; }
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18622 rm -f core conftest.err conftest.$ac_objext \
18623 conftest$ac_exeext conftest.$ac_ext
18624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18627 # Warning - without using the other run time loading flags,
18628 # -berok will link without error, but may produce a broken library.
18629 no_undefined_flag_CXX=' ${wl}-bernotok'
18630 allow_undefined_flag_CXX=' ${wl}-berok'
18631 # Exported symbols can be pulled into shared objects from archives
18632 whole_archive_flag_spec_CXX='$convenience'
18633 archive_cmds_need_lc_CXX=yes
18634 # This is similar to how AIX traditionally builds its shared libraries.
18635 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'
18641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18642 allow_undefined_flag_CXX=unsupported
18643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18644 # support --undefined. This deserves some investigation. FIXME
18645 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18652 case $cc_basename in
18654 # FIXME: insert proper C++ library support
18660 cygwin* | mingw* | pw32*)
18661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18662 # as there is no search path for DLLs.
18663 hardcode_libdir_flag_spec_CXX='-L$libdir'
18664 allow_undefined_flag_CXX=unsupported
18665 always_export_symbols_CXX=no
18666 enable_shared_with_static_runtimes_CXX=yes
18668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18669 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'
18670 # If the export-symbols file already is a .def file (1st line
18671 # is EXPORTS), use it as is; otherwise, prepend...
18672 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18673 cp $export_symbols $output_objdir/$soname.def;
18675 echo EXPORTS > $output_objdir/$soname.def;
18676 cat $export_symbols >> $output_objdir/$soname.def;
18678 $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'
18683 darwin* | rhapsody*)
18685 rhapsody* | darwin1.[012])
18686 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18689 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18690 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18692 case ${MACOSX_DEPLOYMENT_TARGET} in
18694 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18697 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18703 archive_cmds_need_lc_CXX=no
18704 hardcode_direct_CXX=no
18705 hardcode_automatic_CXX=yes
18706 hardcode_shlibpath_var_CXX=unsupported
18707 whole_archive_flag_spec_CXX=''
18708 link_all_deplibs_CXX=yes
18710 if test "$GXX" = yes ; then
18711 lt_int_apple_cc_single_mod=no
18712 output_verbose_link_cmd='echo'
18713 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18714 lt_int_apple_cc_single_mod=yes
18716 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18717 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18719 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'
18721 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18722 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18723 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18724 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}'
18726 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}'
18728 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}'
18730 case $cc_basename in
18732 output_verbose_link_cmd='echo'
18733 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'
18734 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18736 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}'
18737 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}'
18747 case $cc_basename in
18749 # FIXME: insert proper C++ library support
18753 # Green Hills C++ Compiler
18754 # FIXME: insert proper C++ library support
18758 # FIXME: insert proper C++ library support
18764 # C++ shared libraries reported to be fairly broken before switch to ELF
18768 archive_cmds_need_lc_CXX=no
18770 freebsd* | kfreebsd*-gnu | dragonfly*)
18771 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18778 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18779 hardcode_libdir_separator_CXX=:
18780 export_dynamic_flag_spec_CXX='${wl}-E'
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.
18786 case $cc_basename in
18788 # FIXME: insert proper C++ library support
18792 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'
18793 # Commands to make compiler produce verbose output that lists
18794 # what "hidden" libraries, object files and flags are used when
18795 # linking a shared library.
18797 # There doesn't appear to be a way to prevent this compiler from
18798 # explicitly linking system object files so we need to strip them
18799 # from the output so that they don't get included in the library
18801 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'
18804 if test "$GXX" = yes; then
18805 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'
18807 # FIXME: insert proper C++ library support
18814 if test $with_gnu_ld = no; then
18815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18816 hardcode_libdir_separator_CXX=:
18820 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18823 export_dynamic_flag_spec_CXX='${wl}-E'
18829 hardcode_direct_CXX=no
18830 hardcode_shlibpath_var_CXX=no
18833 hardcode_direct_CXX=yes
18834 hardcode_minus_L_CXX=yes # Not in the search PATH,
18835 # but as the default
18836 # location of the library.
18840 case $cc_basename in
18842 # FIXME: insert proper C++ library support
18848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18857 # Commands to make compiler produce verbose output that lists
18858 # what "hidden" libraries, object files and flags are used when
18859 # linking a shared library.
18861 # There doesn't appear to be a way to prevent this compiler from
18862 # explicitly linking system object files so we need to strip them
18863 # from the output so that they don't get included in the library
18865 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'
18868 if test "$GXX" = yes; then
18869 if test $with_gnu_ld = no; then
18872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18878 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'
18883 # FIXME: insert proper C++ library support
18890 hardcode_direct_CXX=no
18891 hardcode_shlibpath_var_CXX=no
18892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18893 export_dynamic_flag_spec_CXX='${wl}-E'
18894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18895 # Instead, shared libraries are loaded at an image base (0x10000000 by
18896 # default) and relocated if they conflict, which is a slow very memory
18897 # consuming and fragmenting process. To avoid this, we pick a random,
18898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18900 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'
18901 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'
18904 case $cc_basename in
18907 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'
18909 # Archives containing C++ object files must be created using
18910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18911 # necessary to make sure instantiated templates are included
18913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18916 if test "$GXX" = yes; then
18917 if test "$with_gnu_ld" = no; then
18918 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'
18920 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'
18923 link_all_deplibs_CXX=yes
18926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18927 hardcode_libdir_separator_CXX=:
18930 case $cc_basename in
18932 # Kuck and Associates, Inc. (KAI) C++ Compiler
18934 # KCC will only create a shared library if the output file
18935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18936 # to its proper name (with version) after linking.
18937 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'
18938 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'
18939 # Commands to make compiler produce verbose output that lists
18940 # what "hidden" libraries, object files and flags are used when
18941 # linking a shared library.
18943 # There doesn't appear to be a way to prevent this compiler from
18944 # explicitly linking system object files so we need to strip them
18945 # from the output so that they don't get included in the library
18947 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'
18949 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18952 # Archives containing C++ object files must be created using
18953 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18954 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18959 # version 8.0 and above of icpc choke on multiply defined symbols
18960 # if we add $predep_objects and $postdep_objects, however 7.1 and
18961 # earlier do not add the objects themselves.
18962 case `$CC -V 2>&1` in
18964 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18965 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'
18967 *) # Version 8.0 or newer
18970 ia64*) tmp_idyn=' -i_dynamic';;
18972 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18973 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'
18976 archive_cmds_need_lc_CXX=no
18977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18979 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18982 # Portland Group C++ compiler
18983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18984 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'
18986 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18988 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'
18992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18993 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'
18995 runpath_var=LD_RUN_PATH
18996 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18997 hardcode_libdir_separator_CXX=:
18999 # Commands to make compiler produce verbose output that lists
19000 # what "hidden" libraries, object files and flags are used when
19001 # linking a shared library.
19003 # There doesn't appear to be a way to prevent this compiler from
19004 # explicitly linking system object files so we need to strip them
19005 # from the output so that they don't get included in the library
19007 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'
19012 # FIXME: insert proper C++ library support
19016 # FIXME: insert proper C++ library support
19020 case $cc_basename in
19022 # FIXME: insert proper C++ library support
19026 # FIXME: insert proper C++ library support
19032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19033 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19035 hardcode_libdir_flag_spec_CXX='-R$libdir'
19036 hardcode_direct_CXX=yes
19037 hardcode_shlibpath_var_CXX=no
19039 # Workaround some broken pre-1.5 toolchains
19040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19043 # C++ shared libraries are fairly broken
19047 hardcode_direct_CXX=yes
19048 hardcode_shlibpath_var_CXX=no
19049 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19050 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19052 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19053 export_dynamic_flag_spec_CXX='${wl}-E'
19054 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19056 output_verbose_link_cmd='echo'
19059 case $cc_basename in
19061 # Kuck and Associates, Inc. (KAI) C++ Compiler
19063 # KCC will only create a shared library if the output file
19064 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19065 # to its proper name (with version) after linking.
19066 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'
19068 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19069 hardcode_libdir_separator_CXX=:
19071 # Archives containing C++ object files must be created using
19072 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19073 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19077 # Rational C++ 2.4.1
19078 # FIXME: insert proper C++ library support
19082 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19083 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'
19085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19086 hardcode_libdir_separator_CXX=:
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19092 # There doesn't appear to be a way to prevent this compiler from
19093 # explicitly linking system object files so we need to strip them
19094 # from the output so that they don't get included in the library
19096 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'
19099 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19100 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19101 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'
19103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19104 hardcode_libdir_separator_CXX=:
19106 # Commands to make compiler produce verbose output that lists
19107 # what "hidden" libraries, object files and flags are used when
19108 # linking a shared library.
19109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19112 # FIXME: insert proper C++ library support
19119 case $cc_basename in
19121 # Kuck and Associates, Inc. (KAI) C++ Compiler
19123 # KCC will only create a shared library if the output file
19124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19125 # to its proper name (with version) after linking.
19126 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'
19128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19129 hardcode_libdir_separator_CXX=:
19131 # Archives containing C++ object files must be created using
19132 # the KAI C++ compiler.
19133 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19136 # Rational C++ 2.4.1
19137 # FIXME: insert proper C++ library support
19141 allow_undefined_flag_CXX=' -expect_unresolved \*'
19142 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'
19143 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19144 echo "-hidden">> $lib.exp~
19145 $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~
19148 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19149 hardcode_libdir_separator_CXX=:
19151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19155 # There doesn't appear to be a way to prevent this compiler from
19156 # explicitly linking system object files so we need to strip them
19157 # from the output so that they don't get included in the library
19159 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'
19162 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19164 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'
19166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19167 hardcode_libdir_separator_CXX=:
19169 # Commands to make compiler produce verbose output that lists
19170 # what "hidden" libraries, object files and flags are used when
19171 # linking a shared library.
19172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19175 # FIXME: insert proper C++ library support
19182 # FIXME: insert proper C++ library support
19186 case $cc_basename in
19189 # FIXME: insert proper C++ library support
19194 # FIXME: insert proper C++ library support
19198 # FIXME: insert proper C++ library support
19204 case $cc_basename in
19206 # Sun C++ 4.2, 5.x and Centerline C++
19207 archive_cmds_need_lc_CXX=yes
19208 no_undefined_flag_CXX=' -zdefs'
19209 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19211 $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'
19213 hardcode_libdir_flag_spec_CXX='-R$libdir'
19214 hardcode_shlibpath_var_CXX=no
19216 solaris2.[0-5] | solaris2.[0-5].*) ;;
19218 # The C++ compiler is used as linker so we must use $wl
19219 # flag to pass the commands to the underlying system
19220 # linker. We must also pass each convience library through
19221 # to the system linker between allextract/defaultextract.
19222 # The C++ compiler will combine linker options so we
19223 # cannot just pass the convience library names through
19225 # Supported since Solaris 2.6 (maybe 2.5.1?)
19226 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'
19229 link_all_deplibs_CXX=yes
19231 output_verbose_link_cmd='echo'
19233 # Archives containing C++ object files must be created using
19234 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19235 # necessary to make sure instantiated templates are included
19237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19240 # Green Hills C++ Compiler
19241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19243 # The C++ compiler must be used to create the archive.
19244 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19247 # GNU C++ compiler with Solaris linker
19248 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19249 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19250 if $CC --version | grep -v '^2\.7' > /dev/null; then
19251 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19252 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19253 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19255 # Commands to make compiler produce verbose output that lists
19256 # what "hidden" libraries, object files and flags are used when
19257 # linking a shared library.
19258 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19260 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19262 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19263 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19264 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19269 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19272 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19278 no_undefined_flag_CXX='${wl}-z,text'
19279 archive_cmds_need_lc_CXX=no
19280 hardcode_shlibpath_var_CXX=no
19281 runpath_var='LD_RUN_PATH'
19283 case $cc_basename in
19285 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294 sysv5* | sco3.2v5* | sco5v6*)
19295 # Note: We can NOT use -z defs as we might desire, because we do not
19296 # link with -lc, and that would cause any symbols used from libc to
19297 # always be unresolved, which means just about no library would
19298 # ever link correctly. If we're not using GNU ld we use -z text
19299 # though, which does catch some bad symbols but isn't as heavy-handed
19301 # For security reasons, it is highly recommended that you always
19302 # use absolute paths for naming shared libraries, and exclude the
19303 # DT_RUNPATH tag from executables and libraries. But doing so
19304 # requires that you compile everything twice, which is a pain.
19305 # So that behaviour is only enabled if SCOABSPATH is set to a
19306 # non-empty value in the environment. Most likely only useful for
19307 # creating official distributions of packages.
19308 # This is a hack until libtool officially supports absolute path
19309 # names for shared libraries.
19310 no_undefined_flag_CXX='${wl}-z,text'
19311 allow_undefined_flag_CXX='${wl}-z,nodefs'
19312 archive_cmds_need_lc_CXX=no
19313 hardcode_shlibpath_var_CXX=no
19314 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19315 hardcode_libdir_separator_CXX=':'
19316 link_all_deplibs_CXX=yes
19317 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19318 runpath_var='LD_RUN_PATH'
19320 case $cc_basename in
19322 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19326 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19332 case $cc_basename in
19334 # NonStop-UX NCC 3.20
19335 # FIXME: insert proper C++ library support
19339 # FIXME: insert proper C++ library support
19345 # FIXME: insert proper C++ library support
19349 # FIXME: insert proper C++ library support
19353 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19354 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19355 test "$ld_shlibs_CXX" = no && can_build_shared=no
19361 cat > conftest.$ac_ext <<EOF
19365 Foo (void) { a = 0; }
19371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; then
19376 # Parse the compiler output and extract the necessary
19377 # objects, libraries and library flags.
19379 # Sentinel used to keep track of whether or not we are before
19380 # the conftest object file.
19381 pre_test_object_deps_done=no
19383 # The `*' in the case matches for architectures that use `case' in
19384 # $output_verbose_cmd can trigger glob expansion during the loop
19385 # eval without this substitution.
19386 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19388 for p in `eval $output_verbose_link_cmd`; do
19392 # Some compilers place space between "-{L,R}" and the path.
19393 # Remove the space.
19394 if test $p = "-L" \
19395 || test $p = "-R"; then
19402 if test "$pre_test_object_deps_done" = no; then
19405 # Internal compiler library paths should come after those
19406 # provided the user. The postdeps already come after the
19407 # user supplied libs so there is no need to process them.
19408 if test -z "$compiler_lib_search_path_CXX"; then
19409 compiler_lib_search_path_CXX="${prev}${p}"
19411 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19414 # The "-l" case would never come before the object being
19415 # linked, so don't bother handling this case.
19418 if test -z "$postdeps_CXX"; then
19419 postdeps_CXX="${prev}${p}"
19421 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19427 # This assumes that the test object file only shows up
19428 # once in the compiler output.
19429 if test "$p" = "conftest.$objext"; then
19430 pre_test_object_deps_done=yes
19434 if test "$pre_test_object_deps_done" = no; then
19435 if test -z "$predep_objects_CXX"; then
19436 predep_objects_CXX="$p"
19438 predep_objects_CXX="$predep_objects_CXX $p"
19441 if test -z "$postdep_objects_CXX"; then
19442 postdep_objects_CXX="$p"
19444 postdep_objects_CXX="$postdep_objects_CXX $p"
19449 *) ;; # Ignore the rest.
19457 echo "libtool.m4: error: problem compiling CXX test program"
19460 $rm -f confest.$objext
19462 # PORTME: override above test on systems where it is broken
19465 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19466 # hack all around it, let's just trust "g++" to DTRT.
19467 predep_objects_CXX=
19468 postdep_objects_CXX=
19473 case $cc_basename in
19475 # Adding this requires a known-good setup of shared libraries for
19476 # Sun compiler versions before 5.6, else PIC objects from an old
19477 # archive will be linked into the output, leading to subtle bugs.
19478 postdeps_CXX='-lCstd -lCrun'
19485 case " $postdeps_CXX " in
19486 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19489 lt_prog_compiler_wl_CXX=
19490 lt_prog_compiler_pic_CXX=
19491 lt_prog_compiler_static_CXX=
19493 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19494 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19496 # C++ specific cases for pic, static, wl, etc.
19497 if test "$GXX" = yes; then
19498 lt_prog_compiler_wl_CXX='-Wl,'
19499 lt_prog_compiler_static_CXX='-static'
19503 # All AIX code is PIC.
19504 if test "$host_cpu" = ia64; then
19505 # AIX 5 now supports IA64 processor
19506 lt_prog_compiler_static_CXX='-Bstatic'
19510 # FIXME: we need at least 68020 code to build shared libraries, but
19511 # adding the `-m68020' flag to GCC prevents building anything better,
19513 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19515 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19516 # PIC is the default for these OSes.
19518 mingw* | os2* | pw32*)
19519 # This hack is so that the source file can tell whether it is being
19520 # built for inclusion in a dll (and should export symbols for example).
19521 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19523 darwin* | rhapsody*)
19524 # PIC is the default on this platform
19525 # Common symbols not allowed in MH_DYLIB files
19526 lt_prog_compiler_pic_CXX='-fno-common'
19529 # DJGPP does not support shared libraries at all
19530 lt_prog_compiler_pic_CXX=
19533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19534 # Instead, we relocate shared libraries at runtime.
19537 if test -d /usr/nec; then
19538 lt_prog_compiler_pic_CXX=-Kconform_pic
19542 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19543 # not for PA HP-UX.
19548 lt_prog_compiler_pic_CXX='-fPIC'
19553 lt_prog_compiler_pic_CXX='-fPIC'
19559 # All AIX code is PIC.
19560 if test "$host_cpu" = ia64; then
19561 # AIX 5 now supports IA64 processor
19562 lt_prog_compiler_static_CXX='-Bstatic'
19564 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19568 case $cc_basename in
19570 # Green Hills C++ Compiler
19571 # _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"
19576 # PIC is the default on this platform
19577 # Common symbols not allowed in MH_DYLIB files
19578 case $cc_basename in
19580 lt_prog_compiler_pic_CXX='-qnocommon'
19581 lt_prog_compiler_wl_CXX='-Wl,'
19586 case $cc_basename in
19588 lt_prog_compiler_pic_CXX='-KPIC'
19591 # Green Hills C++ Compiler
19592 lt_prog_compiler_pic_CXX='-pic'
19598 freebsd* | kfreebsd*-gnu | dragonfly*)
19599 # FreeBSD uses GNU C++
19601 hpux9* | hpux10* | hpux11*)
19602 case $cc_basename in
19604 lt_prog_compiler_wl_CXX='-Wl,'
19605 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19606 if test "$host_cpu" != ia64; then
19607 lt_prog_compiler_pic_CXX='+Z'
19611 lt_prog_compiler_wl_CXX='-Wl,'
19612 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19618 lt_prog_compiler_pic_CXX='+Z'
19627 # This is c89, which is MS Visual C++ (no shared libs)
19628 # Anyone wants to do a port?
19630 irix5* | irix6* | nonstopux*)
19631 case $cc_basename in
19633 lt_prog_compiler_wl_CXX='-Wl,'
19634 lt_prog_compiler_static_CXX='-non_shared'
19635 # CC pic flag -KPIC is the default.
19642 case $cc_basename in
19645 lt_prog_compiler_wl_CXX='--backend -Wl,'
19646 lt_prog_compiler_pic_CXX='-fPIC'
19650 lt_prog_compiler_wl_CXX='-Wl,'
19651 lt_prog_compiler_pic_CXX='-KPIC'
19652 lt_prog_compiler_static_CXX='-static'
19655 # Portland Group C++ compiler.
19656 lt_prog_compiler_wl_CXX='-Wl,'
19657 lt_prog_compiler_pic_CXX='-fpic'
19658 lt_prog_compiler_static_CXX='-Bstatic'
19662 # Make sure the PIC flag is empty. It appears that all Alpha
19663 # Linux and Compaq Tru64 Unix objects are PIC.
19664 lt_prog_compiler_pic_CXX=
19665 lt_prog_compiler_static_CXX='-non_shared'
19676 case $cc_basename in
19678 lt_prog_compiler_pic_CXX='-W c,exportall'
19686 osf3* | osf4* | osf5*)
19687 case $cc_basename in
19689 lt_prog_compiler_wl_CXX='--backend -Wl,'
19692 # Rational C++ 2.4.1
19693 lt_prog_compiler_pic_CXX='-pic'
19696 # Digital/Compaq C++
19697 lt_prog_compiler_wl_CXX='-Wl,'
19698 # Make sure the PIC flag is empty. It appears that all Alpha
19699 # Linux and Compaq Tru64 Unix objects are PIC.
19700 lt_prog_compiler_pic_CXX=
19701 lt_prog_compiler_static_CXX='-non_shared'
19710 case $cc_basename in
19712 # Sun C++ 4.2, 5.x and Centerline C++
19713 lt_prog_compiler_pic_CXX='-KPIC'
19714 lt_prog_compiler_static_CXX='-Bstatic'
19715 lt_prog_compiler_wl_CXX='-Qoption ld '
19718 # Green Hills C++ Compiler
19719 lt_prog_compiler_pic_CXX='-PIC'
19726 case $cc_basename in
19729 lt_prog_compiler_pic_CXX='-pic'
19730 lt_prog_compiler_static_CXX='-Bstatic'
19734 lt_prog_compiler_pic_CXX='-pic'
19741 case $cc_basename in
19743 # NonStop-UX NCC 3.20
19744 lt_prog_compiler_pic_CXX='-KPIC'
19750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19751 case $cc_basename in
19753 lt_prog_compiler_wl_CXX='-Wl,'
19754 lt_prog_compiler_pic_CXX='-KPIC'
19755 lt_prog_compiler_static_CXX='-Bstatic'
19762 lt_prog_compiler_can_build_shared_CXX=no
19767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19768 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19771 # Check to make sure the PIC flag actually works.
19773 if test -n "$lt_prog_compiler_pic_CXX"; then
19775 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19776 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19777 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 lt_prog_compiler_pic_works_CXX=no
19781 ac_outfile=conftest.$ac_objext
19782 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19783 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19784 # Insert the option either (1) after the last *FLAGS variable, or
19785 # (2) before a word containing "conftest.", or (3) at the end.
19786 # Note that $ac_compile itself does not contain backslashes and begins
19787 # with a dollar sign (not a hyphen), so the echo should work correctly.
19788 # The option is referenced via a variable to avoid confusing sed.
19789 lt_compile=`echo "$ac_compile" | $SED \
19790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19792 -e 's:$: $lt_compiler_flag:'`
19793 (eval echo "\"\$as_me:19793: $lt_compile\"" >&5)
19794 (eval "$lt_compile" 2>conftest.err)
19796 cat conftest.err >&5
19797 echo "$as_me:19797: \$? = $ac_status" >&5
19798 if (exit $ac_status) && test -s "$ac_outfile"; then
19799 # The compiler can only warn and ignore the option if not recognized
19800 # So say no if there are warnings other than the usual output.
19801 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19804 lt_prog_compiler_pic_works_CXX=yes
19810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19811 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19813 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19814 case $lt_prog_compiler_pic_CXX in
19816 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19819 lt_prog_compiler_pic_CXX=
19820 lt_prog_compiler_can_build_shared_CXX=no
19825 # For platforms which do not support PIC, -DPIC is meaningless:
19827 lt_prog_compiler_pic_CXX=
19830 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19835 # Check to make sure the static flag actually works.
19837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19840 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 lt_prog_compiler_static_works_CXX=no
19844 save_LDFLAGS="$LDFLAGS"
19845 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19846 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19847 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19848 # The linker can only warn and ignore the option if not recognized
19849 # So say no if there are warnings
19850 if test -s conftest.err; then
19851 # Append any errors to the config.log.
19852 cat conftest.err 1>&5
19853 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19855 if diff conftest.exp conftest.er2 >/dev/null; then
19856 lt_prog_compiler_static_works_CXX=yes
19859 lt_prog_compiler_static_works_CXX=yes
19863 LDFLAGS="$save_LDFLAGS"
19866 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19867 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19869 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19872 lt_prog_compiler_static_CXX=
19876 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19877 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19878 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 lt_cv_prog_compiler_c_o_CXX=no
19882 $rm -r conftest 2>/dev/null
19886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19888 lt_compiler_flag="-o out/conftest2.$ac_objext"
19889 # Insert the option either (1) after the last *FLAGS variable, or
19890 # (2) before a word containing "conftest.", or (3) at the end.
19891 # Note that $ac_compile itself does not contain backslashes and begins
19892 # with a dollar sign (not a hyphen), so the echo should work correctly.
19893 lt_compile=`echo "$ac_compile" | $SED \
19894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19896 -e 's:$: $lt_compiler_flag:'`
19897 (eval echo "\"\$as_me:19897: $lt_compile\"" >&5)
19898 (eval "$lt_compile" 2>out/conftest.err)
19900 cat out/conftest.err >&5
19901 echo "$as_me:19901: \$? = $ac_status" >&5
19902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19904 # The compiler can only warn and ignore the option if not recognized
19905 # So say no if there are warnings
19906 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19909 lt_cv_prog_compiler_c_o_CXX=yes
19914 # SGI C++ compiler will create directory out/ii_files/ for
19915 # template instantiation
19916 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19917 $rm out/* && rmdir out
19923 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19924 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19927 hard_links="nottested"
19928 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19929 # do not overwrite the value of need_locks provided by the user
19930 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19931 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19936 ln conftest.a conftest.b 2>&5 || hard_links=no
19937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19938 { echo "$as_me:$LINENO: result: $hard_links" >&5
19939 echo "${ECHO_T}$hard_links" >&6; }
19940 if test "$hard_links" = no; then
19941 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19942 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19949 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19950 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19955 # If we're using GNU nm, then we don't want the "-C" option.
19956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19957 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19958 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'
19960 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'
19964 export_symbols_cmds_CXX="$ltdll_cmds"
19967 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'
19970 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19974 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19975 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19976 test "$ld_shlibs_CXX" = no && can_build_shared=no
19979 # Do we need to explicitly link libc?
19981 case "x$archive_cmds_need_lc_CXX" in
19983 # Assume -lc should be added
19984 archive_cmds_need_lc_CXX=yes
19986 if test "$enable_shared" = yes && test "$GCC" = yes; then
19987 case $archive_cmds_CXX in
19989 # FIXME: we may have to deal with multi-command sequences.
19992 # Test whether the compiler implicitly links with -lc since on some
19993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19994 # to ld, don't add -lc before -lgcc.
19995 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19996 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20001 (eval $ac_compile) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } 2>conftest.err; then
20007 libobjs=conftest.$ac_objext
20009 wl=$lt_prog_compiler_wl_CXX
20010 pic_flag=$lt_prog_compiler_pic_CXX
20016 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20017 allow_undefined_flag_CXX=
20018 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20019 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }
20024 archive_cmds_need_lc_CXX=no
20026 archive_cmds_need_lc_CXX=yes
20028 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20030 cat conftest.err 1>&5
20033 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20034 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20041 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20042 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20043 library_names_spec=
20044 libname_spec='lib$name'
20048 postuninstall_cmds=
20052 shlibpath_overrides_runpath=unknown
20054 dynamic_linker="$host_os ld.so"
20055 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20056 if test "$GCC" = yes; then
20057 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20058 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20059 # if the path contains ";" then we assume it to be the separator
20060 # otherwise default to the standard path separator (i.e. ":") - it is
20061 # assumed that no part of a normal pathname contains ";" but that should
20062 # okay in the real world where ";" in dirpaths is itself problematic.
20063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20070 need_lib_prefix=unknown
20071 hardcode_into_libs=no
20073 # when you set need_version to no, make sure it does not cause -set_version
20074 # flags to be left without arguments
20075 need_version=unknown
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20081 shlibpath_var=LIBPATH
20083 # AIX 3 has no versioning support, so we append a major version to the name.
20084 soname_spec='${libname}${release}${shared_ext}$major'
20091 hardcode_into_libs=yes
20092 if test "$host_cpu" = ia64; then
20093 # AIX 5 supports IA64
20094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20095 shlibpath_var=LD_LIBRARY_PATH
20097 # With GCC up to 2.95.x, collect2 would create an import file
20098 # for dependence libraries. The import file would start with
20099 # the line `#! .'. This would cause the generated library to
20100 # depend on `.', always an invalid library. This was fixed in
20101 # development snapshots of GCC prior to 3.0.
20103 aix4 | aix4.[01] | aix4.[01].*)
20104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20106 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20109 can_build_shared=no
20113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20114 # soname into executable. Probably we can add versioning support to
20115 # collect2, so additional links can be useful in future.
20116 if test "$aix_use_runtimelinking" = yes; then
20117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20118 # instead of lib<name>.a to let people know that these are not
20119 # typical AIX shared libraries.
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20122 # We preserve .a as extension for shared libraries through AIX4.2
20123 # and later when we are not doing run time linking.
20124 library_names_spec='${libname}${release}.a $libname.a'
20125 soname_spec='${libname}${release}${shared_ext}$major'
20127 shlibpath_var=LIBPATH
20132 library_names_spec='$libname.ixlibrary $libname.a'
20133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20134 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'
20138 library_names_spec='${libname}${shared_ext}'
20139 dynamic_linker="$host_os ld.so"
20140 shlibpath_var=LIBRARY_PATH
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20147 soname_spec='${libname}${release}${shared_ext}$major'
20148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20149 shlibpath_var=LD_LIBRARY_PATH
20150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20152 # the default ld.so.conf also contains /usr/contrib/lib and
20153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20154 # libtool to hard-code these into programs
20157 cygwin* | mingw* | pw32*)
20158 version_type=windows
20163 case $GCC,$host_os in
20164 yes,cygwin* | yes,mingw* | yes,pw32*)
20165 library_names_spec='$libname.dll.a'
20166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20167 postinstall_cmds='base_file=`basename \${file}`~
20168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20169 dldir=$destdir/`dirname \$dlpath`~
20170 test -d \$dldir || mkdir -p \$dldir~
20171 $install_prog $dir/$dlname \$dldir/$dlname~
20172 chmod a+x \$dldir/$dlname'
20173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20174 dlpath=$dir/\$dldll~
20176 shlibpath_overrides_runpath=yes
20180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20185 # MinGW DLLs use traditional 'lib' prefix
20186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20189 # It is most probably a Windows format PATH printed by
20190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20191 # path with ; separators, and with drive letters. We can handle the
20192 # drive letters (cygwin fileutils understands them), so leave them,
20193 # especially as we might pass files found there to a mingw objdump,
20194 # which wouldn't understand a cygwinified path. Ahh.
20195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20201 # pw32 DLLs use 'pw' prefix rather than 'lib'
20202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20211 dynamic_linker='Win32 ld.exe'
20212 # FIXME: first we should search . and the directory the executable is in
20216 darwin* | rhapsody*)
20217 dynamic_linker="$host_os dyld"
20218 version_type=darwin
20221 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20222 soname_spec='${libname}${release}${major}$shared_ext'
20223 shlibpath_overrides_runpath=yes
20224 shlibpath_var=DYLD_LIBRARY_PATH
20225 shrext_cmds='.dylib'
20226 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20227 if test "$GCC" = yes; then
20228 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"`
20230 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=no
20256 hardcode_into_libs=yes
20257 dynamic_linker='GNU ld.so'
20260 freebsd* | dragonfly*)
20261 # DragonFly does not have aout. When/if they implement a new
20262 # versioning mechanism, adjust this.
20263 if test -x /usr/bin/objformat; then
20264 objformat=`/usr/bin/objformat`
20267 freebsd[123]*) objformat=aout ;;
20268 *) objformat=elf ;;
20271 version_type=freebsd-$objformat
20272 case $version_type in
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20283 shlibpath_var=LD_LIBRARY_PATH
20286 shlibpath_overrides_runpath=yes
20288 freebsd3.[01]* | freebsdelf3.[01]*)
20289 shlibpath_overrides_runpath=yes
20290 hardcode_into_libs=yes
20292 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20293 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20294 shlibpath_overrides_runpath=no
20295 hardcode_into_libs=yes
20297 freebsd*) # from 4.6 on
20298 shlibpath_overrides_runpath=yes
20299 hardcode_into_libs=yes
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 hardcode_into_libs=yes
20314 hpux9* | hpux10* | hpux11*)
20315 # Give a soname corresponding to the major version so that dld.sl refuses to
20316 # link against other versions.
20323 hardcode_into_libs=yes
20324 dynamic_linker="$host_os dld.so"
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 if test "X$HPUX_IA64_MODE" = X32; then
20330 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20332 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20338 hardcode_into_libs=yes
20339 dynamic_linker="$host_os dld.sl"
20340 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20349 dynamic_linker="$host_os dld.sl"
20350 shlibpath_var=SHLIB_PATH
20351 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20353 soname_spec='${libname}${release}${shared_ext}$major'
20356 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20357 postinstall_cmds='chmod 555 $lib'
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20365 soname_spec='${libname}${release}${shared_ext}$major'
20366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 shlibpath_overrides_runpath=no
20369 hardcode_into_libs=yes
20372 irix5* | irix6* | nonstopux*)
20374 nonstopux*) version_type=nonstopux ;;
20376 if test "$lt_cv_prog_gnu_ld" = yes; then
20384 soname_spec='${libname}${release}${shared_ext}$major'
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20387 irix5* | nonstopux*)
20388 libsuff= shlibsuff=
20391 case $LD in # libtool.m4 will add one of these switches to LD
20392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20393 libsuff= shlibsuff= libmagic=32-bit;;
20394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20395 libsuff=32 shlibsuff=N32 libmagic=N32;;
20396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20398 *) libsuff= shlibsuff= libmagic=never-match;;
20402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20403 shlibpath_overrides_runpath=no
20404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20406 hardcode_into_libs=yes
20409 # No shared lib support for Linux oldld, aout, or coff.
20410 linux*oldld* | linux*aout* | linux*coff*)
20414 # This must be Linux ELF.
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 shlibpath_overrides_runpath=no
20424 # This implies no fast_install, which is unacceptable.
20425 # Some rework will be needed to allow for fast_install
20426 # before this can be enabled.
20427 hardcode_into_libs=yes
20429 # Append ld.so.conf contents to the search path
20430 if test -f /etc/ld.so.conf; then
20431 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' ' '`
20432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20435 # We used to test for /lib/ld.so.1 and disable shared libraries on
20436 # powerpc, because MkLinux only supported shared libraries with the
20437 # GNU dynamic linker. Since this was broken with cross compilers,
20438 # most powerpc-linux boxes support dynamic linking these days and
20439 # people can always --disable-shared, the test was removed, and we
20440 # assume the GNU/Linux dynamic linker is in use.
20441 dynamic_linker='GNU/Linux ld.so'
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=no
20452 hardcode_into_libs=yes
20453 dynamic_linker='GNU ld.so'
20460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20463 dynamic_linker='NetBSD (a.out) ld.so'
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 dynamic_linker='NetBSD ld.elf_so'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 shlibpath_overrides_runpath=yes
20471 hardcode_into_libs=yes
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486 soname_spec='${libname}${release}${shared_ext}$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20493 sys_lib_dlsearch_path_spec="/usr/lib"
20495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20498 *) need_version=no ;;
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20505 openbsd2.[89] | openbsd2.[89].*)
20506 shlibpath_overrides_runpath=no
20509 shlibpath_overrides_runpath=yes
20513 shlibpath_overrides_runpath=yes
20518 libname_spec='$name'
20521 library_names_spec='$libname${shared_ext} $libname.a'
20522 dynamic_linker='OS/2 ld.exe'
20523 shlibpath_var=LIBPATH
20526 osf3* | osf4* | osf5*)
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20532 shlibpath_var=LD_LIBRARY_PATH
20533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20542 soname_spec='${libname}${release}${shared_ext}$major'
20543 shlibpath_var=LD_LIBRARY_PATH
20544 shlibpath_overrides_runpath=yes
20545 hardcode_into_libs=yes
20546 # ldd complains unless libraries are executable
20547 postinstall_cmds='chmod +x $lib'
20552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20553 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20554 shlibpath_var=LD_LIBRARY_PATH
20555 shlibpath_overrides_runpath=yes
20556 if test "$with_gnu_ld" = yes; then
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 shlibpath_var=LD_LIBRARY_PATH
20567 case $host_vendor in
20569 shlibpath_overrides_runpath=no
20571 export_dynamic_flag_spec='${wl}-Blargedynsym'
20572 runpath_var=LD_RUN_PATH
20580 shlibpath_overrides_runpath=no
20581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20587 if test -d /usr/nec ;then
20589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20590 soname_spec='$libname${shared_ext}.$major'
20591 shlibpath_var=LD_LIBRARY_PATH
20595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20596 version_type=freebsd-elf
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 shlibpath_var=LD_LIBRARY_PATH
20602 hardcode_into_libs=yes
20603 if test "$with_gnu_ld" = yes; then
20604 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20605 shlibpath_overrides_runpath=no
20607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20608 shlibpath_overrides_runpath=yes
20611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20615 sys_lib_dlsearch_path_spec='/usr/lib'
20620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec='${libname}${release}${shared_ext}$major'
20622 shlibpath_var=LD_LIBRARY_PATH
20629 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20630 echo "${ECHO_T}$dynamic_linker" >&6; }
20631 test "$dynamic_linker" = no && can_build_shared=no
20633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20634 if test "$GCC" = yes; then
20635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20638 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20639 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20640 hardcode_action_CXX=
20641 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20642 test -n "$runpath_var_CXX" || \
20643 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20645 # We can hardcode non-existant directories.
20646 if test "$hardcode_direct_CXX" != no &&
20647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20648 # have to relink, otherwise we might link with an installed library
20649 # when we should be linking with a yet-to-be-installed one
20650 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20651 test "$hardcode_minus_L_CXX" != no; then
20652 # Linking always hardcodes the temporary library directory.
20653 hardcode_action_CXX=relink
20655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20656 hardcode_action_CXX=immediate
20659 # We cannot hardcode anything, or else we can only hardcode existing
20661 hardcode_action_CXX=unsupported
20663 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20664 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20666 if test "$hardcode_action_CXX" = relink; then
20667 # Fast installation is not supported
20668 enable_fast_install=no
20669 elif test "$shlibpath_overrides_runpath" = yes ||
20670 test "$enable_shared" = no; then
20671 # Fast installation is not necessary
20672 enable_fast_install=needless
20676 # The else clause should only fire when bootstrapping the
20677 # libtool distribution, otherwise you forgot to ship ltmain.sh
20678 # with your package, and you will get complaints that there are
20679 # no rules to generate ltmain.sh.
20680 if test -f "$ltmain"; then
20681 # See if we are running on zsh, and set the options which allow our commands through
20682 # without removal of \ escapes.
20683 if test -n "${ZSH_VERSION+set}" ; then
20684 setopt NO_GLOB_SUBST
20686 # Now quote all the things that may contain metacharacters while being
20687 # careful not to overquote the AC_SUBSTed values. We take copies of the
20688 # variables and quote the copies for generation of the libtool script.
20689 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20693 deplibs_check_method reload_flag reload_cmds need_locks \
20694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20695 lt_cv_sys_global_symbol_to_c_name_address \
20696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20697 old_postinstall_cmds old_postuninstall_cmds \
20701 lt_prog_compiler_wl_CXX \
20702 lt_prog_compiler_pic_CXX \
20703 lt_prog_compiler_static_CXX \
20704 lt_prog_compiler_no_builtin_flag_CXX \
20705 export_dynamic_flag_spec_CXX \
20706 thread_safe_flag_spec_CXX \
20707 whole_archive_flag_spec_CXX \
20708 enable_shared_with_static_runtimes_CXX \
20709 old_archive_cmds_CXX \
20710 old_archive_from_new_cmds_CXX \
20711 predep_objects_CXX \
20712 postdep_objects_CXX \
20715 compiler_lib_search_path_CXX \
20717 archive_expsym_cmds_CXX \
20718 postinstall_cmds_CXX \
20719 postuninstall_cmds_CXX \
20720 old_archive_from_expsyms_cmds_CXX \
20721 allow_undefined_flag_CXX \
20722 no_undefined_flag_CXX \
20723 export_symbols_cmds_CXX \
20724 hardcode_libdir_flag_spec_CXX \
20725 hardcode_libdir_flag_spec_ld_CXX \
20726 hardcode_libdir_separator_CXX \
20727 hardcode_automatic_CXX \
20729 module_expsym_cmds_CXX \
20730 lt_cv_prog_compiler_c_o_CXX \
20731 exclude_expsyms_CXX \
20732 include_expsyms_CXX; do
20735 old_archive_cmds_CXX | \
20736 old_archive_from_new_cmds_CXX | \
20737 archive_cmds_CXX | \
20738 archive_expsym_cmds_CXX | \
20739 module_cmds_CXX | \
20740 module_expsym_cmds_CXX | \
20741 old_archive_from_expsyms_cmds_CXX | \
20742 export_symbols_cmds_CXX | \
20743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20744 postinstall_cmds | postuninstall_cmds | \
20745 old_postinstall_cmds | old_postuninstall_cmds | \
20746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20747 # Double-quote double-evaled strings.
20748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20757 *'\$0 --fallback-echo"')
20758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20764 cat <<__EOF__ >> "$cfgfile"
20765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20769 # Shell to use when invoking shell scripts.
20772 # Whether or not to build shared libraries.
20773 build_libtool_libs=$enable_shared
20775 # Whether or not to build static libraries.
20776 build_old_libs=$enable_static
20778 # Whether or not to add -lc for building shared libraries.
20779 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20781 # Whether or not to disallow shared libs when runtime libs are static
20782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20784 # Whether or not to optimize for fast installation.
20785 fast_install=$enable_fast_install
20788 host_alias=$host_alias
20792 # The build system.
20793 build_alias=$build_alias
20797 # An echo program that does not interpret backslashes.
20802 AR_FLAGS=$lt_AR_FLAGS
20807 # LTCC compiler flags.
20808 LTCFLAGS=$lt_LTCFLAGS
20810 # A language-specific compiler.
20811 CC=$lt_compiler_CXX
20813 # Is the compiler the GNU C compiler?
20819 # The linker used to build libraries.
20822 # Whether we need hard or soft links.
20825 # A BSD-compatible nm program.
20828 # A symbol stripping program
20831 # Used to examine libraries when file_magic_cmd begins "file"
20832 MAGIC_CMD=$MAGIC_CMD
20834 # Used on cygwin: DLL creation program.
20837 # Used on cygwin: object dumper.
20840 # Used on cygwin: assembler.
20843 # The name of the directory that contains temporary libtool files.
20846 # How to create reloadable object files.
20847 reload_flag=$lt_reload_flag
20848 reload_cmds=$lt_reload_cmds
20850 # How to pass a linker flag through the compiler.
20851 wl=$lt_lt_prog_compiler_wl_CXX
20853 # Object file suffix (normally "o").
20854 objext="$ac_objext"
20856 # Old archive suffix (normally "a").
20859 # Shared library suffix (normally ".so").
20860 shrext_cmds='$shrext_cmds'
20862 # Executable file suffix (normally "").
20865 # Additional compiler flags for building library objects.
20866 pic_flag=$lt_lt_prog_compiler_pic_CXX
20869 # What is the maximum length of a command?
20870 max_cmd_len=$lt_cv_sys_max_cmd_len
20872 # Does compiler simultaneously support -c and -o options?
20873 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20875 # Must we lock files when doing compilation?
20876 need_locks=$lt_need_locks
20878 # Do we need the lib prefix for modules?
20879 need_lib_prefix=$need_lib_prefix
20881 # Do we need a version for libraries?
20882 need_version=$need_version
20884 # Whether dlopen is supported.
20885 dlopen_support=$enable_dlopen
20887 # Whether dlopen of programs is supported.
20888 dlopen_self=$enable_dlopen_self
20890 # Whether dlopen of statically linked programs is supported.
20891 dlopen_self_static=$enable_dlopen_self_static
20893 # Compiler flag to prevent dynamic linking.
20894 link_static_flag=$lt_lt_prog_compiler_static_CXX
20896 # Compiler flag to turn off builtin functions.
20897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20899 # Compiler flag to allow reflexive dlopens.
20900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20902 # Compiler flag to generate shared objects directly from archives.
20903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20905 # Compiler flag to generate thread-safe objects.
20906 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20908 # Library versioning type.
20909 version_type=$version_type
20911 # Format of library name prefix.
20912 libname_spec=$lt_libname_spec
20914 # List of archive names. First name is the real one, the rest are links.
20915 # The last name is the one that the linker finds with -lNAME.
20916 library_names_spec=$lt_library_names_spec
20918 # The coded name of the library, if different from the real name.
20919 soname_spec=$lt_soname_spec
20921 # Commands used to build and install an old-style archive.
20923 old_archive_cmds=$lt_old_archive_cmds_CXX
20924 old_postinstall_cmds=$lt_old_postinstall_cmds
20925 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20927 # Create an old-style archive from a shared archive.
20928 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20930 # Create a temporary old-style archive to link instead of a shared archive.
20931 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20933 # Commands used to build and install a shared archive.
20934 archive_cmds=$lt_archive_cmds_CXX
20935 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20936 postinstall_cmds=$lt_postinstall_cmds
20937 postuninstall_cmds=$lt_postuninstall_cmds
20939 # Commands used to build a loadable module (assumed same as above if empty)
20940 module_cmds=$lt_module_cmds_CXX
20941 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20943 # Commands to strip libraries.
20944 old_striplib=$lt_old_striplib
20945 striplib=$lt_striplib
20947 # Dependencies to place before the objects being linked to create a
20949 predep_objects=$lt_predep_objects_CXX
20951 # Dependencies to place after the objects being linked to create a
20953 postdep_objects=$lt_postdep_objects_CXX
20955 # Dependencies to place before the objects being linked to create a
20957 predeps=$lt_predeps_CXX
20959 # Dependencies to place after the objects being linked to create a
20961 postdeps=$lt_postdeps_CXX
20963 # The library search path used internally by the compiler when linking
20964 # a shared library.
20965 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20967 # Method to check whether dependent libraries are shared objects.
20968 deplibs_check_method=$lt_deplibs_check_method
20970 # Command to use when deplibs_check_method == file_magic.
20971 file_magic_cmd=$lt_file_magic_cmd
20973 # Flag that allows shared libraries with undefined symbols to be built.
20974 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20976 # Flag that forces no undefined symbols.
20977 no_undefined_flag=$lt_no_undefined_flag_CXX
20979 # Commands used to finish a libtool library installation in a directory.
20980 finish_cmds=$lt_finish_cmds
20982 # Same as above, but a single script fragment to be evaled but not shown.
20983 finish_eval=$lt_finish_eval
20985 # Take the output of nm and produce a listing of raw symbols and C names.
20986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20988 # Transform the output of nm in a proper C declaration
20989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20991 # Transform the output of nm in a C name address pair
20992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20994 # This is the shared library runtime path variable.
20995 runpath_var=$runpath_var
20997 # This is the shared library path variable.
20998 shlibpath_var=$shlibpath_var
21000 # Is shlibpath searched before the hard-coded library search path?
21001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21003 # How to hardcode a shared library path into an executable.
21004 hardcode_action=$hardcode_action_CXX
21006 # Whether we should hardcode library paths into libraries.
21007 hardcode_into_libs=$hardcode_into_libs
21009 # Flag to hardcode \$libdir into a binary during linking.
21010 # This must work even if \$libdir does not exist.
21011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21013 # If ld is used when linking, flag to hardcode \$libdir into
21014 # a binary during linking. This must work even if \$libdir does
21016 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21018 # Whether we need a single -rpath flag with a separated argument.
21019 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21021 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21022 # resulting binary.
21023 hardcode_direct=$hardcode_direct_CXX
21025 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21026 # resulting binary.
21027 hardcode_minus_L=$hardcode_minus_L_CXX
21029 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21030 # the resulting binary.
21031 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21033 # Set to yes if building a shared library automatically hardcodes DIR into the library
21034 # and all subsequent libraries and executables linked against it.
21035 hardcode_automatic=$hardcode_automatic_CXX
21037 # Variables whose values should be saved in libtool wrapper scripts and
21038 # restored at relink time.
21039 variables_saved_for_relink="$variables_saved_for_relink"
21041 # Whether libtool must link a program against all its dependency libraries.
21042 link_all_deplibs=$link_all_deplibs_CXX
21044 # Compile-time system search path for libraries
21045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21047 # Run-time system search path for libraries
21048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21050 # Fix the shell variable \$srcfile for the compiler.
21051 fix_srcfile_path="$fix_srcfile_path_CXX"
21053 # Set to yes if exported symbols are required.
21054 always_export_symbols=$always_export_symbols_CXX
21056 # The commands to list exported symbols.
21057 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21059 # The commands to extract the exported symbol list from a shared archive.
21060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21062 # Symbols that should not be listed in the preloaded symbols.
21063 exclude_expsyms=$lt_exclude_expsyms_CXX
21065 # Symbols that must always be exported.
21066 include_expsyms=$lt_include_expsyms_CXX
21068 # ### END LIBTOOL TAG CONFIG: $tagname
21074 # If there is no Makefile yet, we rely on a make rule to execute
21075 # `config.status --recheck' to rerun these tests and create the
21076 # libtool script then.
21077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21078 if test -f "$ltmain_in"; then
21079 test -f Makefile && make "$ltmain"
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094 with_gnu_ldcxx=$with_gnu_ld
21095 with_gnu_ld=$lt_save_with_gnu_ld
21096 lt_cv_path_LDCXX=$lt_cv_path_LD
21097 lt_cv_path_LD=$lt_save_path_LD
21098 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21099 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21107 if test -n "$F77" && test "X$F77" != "Xno"; then
21110 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21111 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21112 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21115 archive_cmds_need_lc_F77=no
21116 allow_undefined_flag_F77=
21117 always_export_symbols_F77=no
21118 archive_expsym_cmds_F77=
21119 export_dynamic_flag_spec_F77=
21120 hardcode_direct_F77=no
21121 hardcode_libdir_flag_spec_F77=
21122 hardcode_libdir_flag_spec_ld_F77=
21123 hardcode_libdir_separator_F77=
21124 hardcode_minus_L_F77=no
21125 hardcode_automatic_F77=no
21127 module_expsym_cmds_F77=
21128 link_all_deplibs_F77=unknown
21129 old_archive_cmds_F77=$old_archive_cmds
21130 no_undefined_flag_F77=
21131 whole_archive_flag_spec_F77=
21132 enable_shared_with_static_runtimes_F77=no
21134 # Source file extension for f77 test sources.
21137 # Object file extension for compiled f77 test sources.
21141 # Code to be used in simple compile tests
21142 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21144 # Code to be used in simple link tests
21145 lt_simple_link_test_code=" program t\n end\n"
21147 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21149 # If no C compiler was specified, use CC.
21152 # If no C compiler flags were specified, use CFLAGS.
21153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21155 # Allow CC to be a program name with arguments.
21159 # save warnings/boilerplate of simple test code
21160 ac_outfile=conftest.$ac_objext
21161 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21163 _lt_compiler_boilerplate=`cat conftest.err`
21166 ac_outfile=conftest.$ac_objext
21167 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21169 _lt_linker_boilerplate=`cat conftest.err`
21173 # Allow CC to be a program name with arguments.
21178 for cc_temp in $compiler""; do
21180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21186 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21189 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21190 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21191 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21192 echo "${ECHO_T}$can_build_shared" >&6; }
21194 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21195 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21196 test "$can_build_shared" = "no" && enable_shared=no
21198 # On AIX, shared libraries and static libraries use the same namespace, and
21199 # are all built from PIC.
21202 test "$enable_shared" = yes && enable_static=no
21203 if test -n "$RANLIB"; then
21204 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21205 postinstall_cmds='$RANLIB $lib'
21209 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21210 test "$enable_shared" = yes && enable_static=no
21214 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21215 echo "${ECHO_T}$enable_shared" >&6; }
21217 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21218 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21219 # Make sure either enable_shared or enable_static is yes.
21220 test "$enable_shared" = yes || enable_static=yes
21221 { echo "$as_me:$LINENO: result: $enable_static" >&5
21222 echo "${ECHO_T}$enable_static" >&6; }
21227 lt_prog_compiler_wl_F77=
21228 lt_prog_compiler_pic_F77=
21229 lt_prog_compiler_static_F77=
21231 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21232 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21234 if test "$GCC" = yes; then
21235 lt_prog_compiler_wl_F77='-Wl,'
21236 lt_prog_compiler_static_F77='-static'
21240 # All AIX code is PIC.
21241 if test "$host_cpu" = ia64; then
21242 # AIX 5 now supports IA64 processor
21243 lt_prog_compiler_static_F77='-Bstatic'
21248 # FIXME: we need at least 68020 code to build shared libraries, but
21249 # adding the `-m68020' flag to GCC prevents building anything better,
21251 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21254 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21255 # PIC is the default for these OSes.
21258 mingw* | pw32* | os2*)
21259 # This hack is so that the source file can tell whether it is being
21260 # built for inclusion in a dll (and should export symbols for example).
21261 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21264 darwin* | rhapsody*)
21265 # PIC is the default on this platform
21266 # Common symbols not allowed in MH_DYLIB files
21267 lt_prog_compiler_pic_F77='-fno-common'
21271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21272 # Instead, we relocate shared libraries at runtime.
21276 # Just because we use GCC doesn't mean we suddenly get shared libraries
21277 # on systems that don't support them.
21278 lt_prog_compiler_can_build_shared_F77=no
21283 if test -d /usr/nec; then
21284 lt_prog_compiler_pic_F77=-Kconform_pic
21289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21290 # not for PA HP-UX.
21296 lt_prog_compiler_pic_F77='-fPIC'
21302 lt_prog_compiler_pic_F77='-fPIC'
21306 # PORTME Check for flag to pass linker flags through the system compiler.
21309 lt_prog_compiler_wl_F77='-Wl,'
21310 if test "$host_cpu" = ia64; then
21311 # AIX 5 now supports IA64 processor
21312 lt_prog_compiler_static_F77='-Bstatic'
21314 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21318 # PIC is the default on this platform
21319 # Common symbols not allowed in MH_DYLIB files
21320 case $cc_basename in
21322 lt_prog_compiler_pic_F77='-qnocommon'
21323 lt_prog_compiler_wl_F77='-Wl,'
21328 mingw* | pw32* | os2*)
21329 # This hack is so that the source file can tell whether it is being
21330 # built for inclusion in a dll (and should export symbols for example).
21331 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21334 hpux9* | hpux10* | hpux11*)
21335 lt_prog_compiler_wl_F77='-Wl,'
21336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21337 # not for PA HP-UX.
21343 lt_prog_compiler_pic_F77='+Z'
21346 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21347 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21350 irix5* | irix6* | nonstopux*)
21351 lt_prog_compiler_wl_F77='-Wl,'
21352 # PIC (with -KPIC) is the default.
21353 lt_prog_compiler_static_F77='-non_shared'
21357 lt_prog_compiler_pic_F77='-KPIC'
21358 lt_prog_compiler_static_F77='-Bstatic'
21362 case $cc_basename in
21364 lt_prog_compiler_wl_F77='-Wl,'
21365 lt_prog_compiler_pic_F77='-KPIC'
21366 lt_prog_compiler_static_F77='-static'
21368 pgcc* | pgf77* | pgf90* | pgf95*)
21369 # Portland Group compilers (*not* the Pentium gcc compiler,
21370 # which looks to be a dead project)
21371 lt_prog_compiler_wl_F77='-Wl,'
21372 lt_prog_compiler_pic_F77='-fpic'
21373 lt_prog_compiler_static_F77='-Bstatic'
21376 lt_prog_compiler_wl_F77='-Wl,'
21377 # All Alpha code is PIC.
21378 lt_prog_compiler_static_F77='-non_shared'
21383 osf3* | osf4* | osf5*)
21384 lt_prog_compiler_wl_F77='-Wl,'
21385 # All OSF/1 code is PIC.
21386 lt_prog_compiler_static_F77='-non_shared'
21390 lt_prog_compiler_pic_F77='-KPIC'
21391 lt_prog_compiler_static_F77='-Bstatic'
21392 case $cc_basename in
21393 f77* | f90* | f95*)
21394 lt_prog_compiler_wl_F77='-Qoption ld ';;
21396 lt_prog_compiler_wl_F77='-Wl,';;
21401 lt_prog_compiler_wl_F77='-Qoption ld '
21402 lt_prog_compiler_pic_F77='-PIC'
21403 lt_prog_compiler_static_F77='-Bstatic'
21406 sysv4 | sysv4.2uw2* | sysv4.3*)
21407 lt_prog_compiler_wl_F77='-Wl,'
21408 lt_prog_compiler_pic_F77='-KPIC'
21409 lt_prog_compiler_static_F77='-Bstatic'
21413 if test -d /usr/nec ;then
21414 lt_prog_compiler_pic_F77='-Kconform_pic'
21415 lt_prog_compiler_static_F77='-Bstatic'
21419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21420 lt_prog_compiler_wl_F77='-Wl,'
21421 lt_prog_compiler_pic_F77='-KPIC'
21422 lt_prog_compiler_static_F77='-Bstatic'
21426 lt_prog_compiler_wl_F77='-Wl,'
21427 lt_prog_compiler_can_build_shared_F77=no
21431 lt_prog_compiler_pic_F77='-pic'
21432 lt_prog_compiler_static_F77='-Bstatic'
21436 lt_prog_compiler_can_build_shared_F77=no
21441 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21442 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21445 # Check to make sure the PIC flag actually works.
21447 if test -n "$lt_prog_compiler_pic_F77"; then
21449 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21450 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21451 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 lt_prog_compiler_pic_works_F77=no
21455 ac_outfile=conftest.$ac_objext
21456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21457 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21458 # Insert the option either (1) after the last *FLAGS variable, or
21459 # (2) before a word containing "conftest.", or (3) at the end.
21460 # Note that $ac_compile itself does not contain backslashes and begins
21461 # with a dollar sign (not a hyphen), so the echo should work correctly.
21462 # The option is referenced via a variable to avoid confusing sed.
21463 lt_compile=`echo "$ac_compile" | $SED \
21464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21466 -e 's:$: $lt_compiler_flag:'`
21467 (eval echo "\"\$as_me:21467: $lt_compile\"" >&5)
21468 (eval "$lt_compile" 2>conftest.err)
21470 cat conftest.err >&5
21471 echo "$as_me:21471: \$? = $ac_status" >&5
21472 if (exit $ac_status) && test -s "$ac_outfile"; then
21473 # The compiler can only warn and ignore the option if not recognized
21474 # So say no if there are warnings other than the usual output.
21475 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21478 lt_prog_compiler_pic_works_F77=yes
21484 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21485 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21487 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21488 case $lt_prog_compiler_pic_F77 in
21490 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21493 lt_prog_compiler_pic_F77=
21494 lt_prog_compiler_can_build_shared_F77=no
21499 # For platforms which do not support PIC, -DPIC is meaningless:
21501 lt_prog_compiler_pic_F77=
21504 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21509 # Check to make sure the static flag actually works.
21511 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21512 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21513 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21514 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 lt_prog_compiler_static_works_F77=no
21518 save_LDFLAGS="$LDFLAGS"
21519 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21520 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21522 # The linker can only warn and ignore the option if not recognized
21523 # So say no if there are warnings
21524 if test -s conftest.err; then
21525 # Append any errors to the config.log.
21526 cat conftest.err 1>&5
21527 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21529 if diff conftest.exp conftest.er2 >/dev/null; then
21530 lt_prog_compiler_static_works_F77=yes
21533 lt_prog_compiler_static_works_F77=yes
21537 LDFLAGS="$save_LDFLAGS"
21540 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21541 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21543 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21546 lt_prog_compiler_static_F77=
21550 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21551 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21552 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 lt_cv_prog_compiler_c_o_F77=no
21556 $rm -r conftest 2>/dev/null
21560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21562 lt_compiler_flag="-o out/conftest2.$ac_objext"
21563 # Insert the option either (1) after the last *FLAGS variable, or
21564 # (2) before a word containing "conftest.", or (3) at the end.
21565 # Note that $ac_compile itself does not contain backslashes and begins
21566 # with a dollar sign (not a hyphen), so the echo should work correctly.
21567 lt_compile=`echo "$ac_compile" | $SED \
21568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21570 -e 's:$: $lt_compiler_flag:'`
21571 (eval echo "\"\$as_me:21571: $lt_compile\"" >&5)
21572 (eval "$lt_compile" 2>out/conftest.err)
21574 cat out/conftest.err >&5
21575 echo "$as_me:21575: \$? = $ac_status" >&5
21576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21578 # The compiler can only warn and ignore the option if not recognized
21579 # So say no if there are warnings
21580 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21583 lt_cv_prog_compiler_c_o_F77=yes
21588 # SGI C++ compiler will create directory out/ii_files/ for
21589 # template instantiation
21590 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21591 $rm out/* && rmdir out
21597 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21598 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21601 hard_links="nottested"
21602 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21603 # do not overwrite the value of need_locks provided by the user
21604 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21605 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21610 ln conftest.a conftest.b 2>&5 || hard_links=no
21611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21612 { echo "$as_me:$LINENO: result: $hard_links" >&5
21613 echo "${ECHO_T}$hard_links" >&6; }
21614 if test "$hard_links" = no; then
21615 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21616 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21623 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21624 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21627 allow_undefined_flag_F77=
21628 enable_shared_with_static_runtimes_F77=no
21630 archive_expsym_cmds_F77=
21631 old_archive_From_new_cmds_F77=
21632 old_archive_from_expsyms_cmds_F77=
21633 export_dynamic_flag_spec_F77=
21634 whole_archive_flag_spec_F77=
21635 thread_safe_flag_spec_F77=
21636 hardcode_libdir_flag_spec_F77=
21637 hardcode_libdir_flag_spec_ld_F77=
21638 hardcode_libdir_separator_F77=
21639 hardcode_direct_F77=no
21640 hardcode_minus_L_F77=no
21641 hardcode_shlibpath_var_F77=unsupported
21642 link_all_deplibs_F77=unknown
21643 hardcode_automatic_F77=no
21645 module_expsym_cmds_F77=
21646 always_export_symbols_F77=no
21647 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21648 # include_expsyms should be a list of space-separated symbols to be *always*
21649 # included in the symbol list
21650 include_expsyms_F77=
21651 # exclude_expsyms can be an extended regexp of symbols to exclude
21652 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21653 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21654 # as well as any symbol that contains `d'.
21655 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21656 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21657 # platforms (ab)use it in PIC code, but their linkers get confused if
21658 # the symbol is explicitly referenced. Since portable code cannot
21659 # rely on this symbol name, it's probably fine to never include it in
21660 # preloaded symbol tables.
21661 extract_expsyms_cmds=
21662 # Just being paranoid about ensuring that cc_basename is set.
21663 for cc_temp in $compiler""; do
21665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21671 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21674 cygwin* | mingw* | pw32*)
21675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21676 # When not using gcc, we currently assume that we are using
21677 # Microsoft Visual C++.
21678 if test "$GCC" != yes; then
21683 # we just hope/assume this is gcc and not c89 (= MSVC++)
21692 if test "$with_gnu_ld" = yes; then
21693 # If archive_cmds runs LD, not CC, wlarc should be empty
21696 # Set some defaults for GNU ld with shared library support. These
21697 # are reset later if shared libraries are not supported. Putting them
21698 # here allows them to be overridden if necessary.
21699 runpath_var=LD_RUN_PATH
21700 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21701 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21702 # ancient GNU ld didn't support --whole-archive et. al.
21703 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21704 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21706 whole_archive_flag_spec_F77=
21708 supports_anon_versioning=no
21709 case `$LD -v 2>/dev/null` in
21710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21713 *\ 2.11.*) ;; # other 2.11 versions
21714 *) supports_anon_versioning=yes ;;
21717 # See if GNU ld supports shared libraries.
21719 aix3* | aix4* | aix5*)
21720 # On AIX/PPC, the GNU linker is very broken
21721 if test "$host_cpu" != ia64; then
21725 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21726 *** to be unable to reliably create shared libraries on AIX.
21727 *** Therefore, libtool is disabling shared libraries support. If you
21728 *** really care for shared libraries, you may want to modify your PATH
21729 *** so that a non-GNU linker is found, and then restart.
21736 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)'
21737 hardcode_libdir_flag_spec_F77='-L$libdir'
21738 hardcode_minus_L_F77=yes
21740 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21741 # that the semantics of dynamic libraries on AmigaOS, at least up
21742 # to version 4, is to share data among multiple programs linked
21743 # with the same dynamic library. Since this doesn't match the
21744 # behavior of shared libraries on other platforms, we can't use
21750 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21751 allow_undefined_flag_F77=unsupported
21752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21753 # support --undefined. This deserves some investigation. FIXME
21754 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21760 cygwin* | mingw* | pw32*)
21761 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21762 # as there is no search path for DLLs.
21763 hardcode_libdir_flag_spec_F77='-L$libdir'
21764 allow_undefined_flag_F77=unsupported
21765 always_export_symbols_F77=no
21766 enable_shared_with_static_runtimes_F77=yes
21767 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21769 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21771 # If the export-symbols file already is a .def file (1st line
21772 # is EXPORTS), use it as is; otherwise, prepend...
21773 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21774 cp $export_symbols $output_objdir/$soname.def;
21776 echo EXPORTS > $output_objdir/$soname.def;
21777 cat $export_symbols >> $output_objdir/$soname.def;
21779 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21786 hardcode_direct_F77=no
21787 hardcode_shlibpath_var_F77=no
21788 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21789 export_dynamic_flag_spec_F77='${wl}-E'
21790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21791 # Instead, shared libraries are loaded at an image base (0x10000000 by
21792 # default) and relocated if they conflict, which is a slow very memory
21793 # consuming and fragmenting process. To avoid this, we pick a random,
21794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21795 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21796 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'
21797 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'
21801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21803 case $cc_basename,$host_cpu in
21804 pgcc*) # Portland Group C compiler
21805 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'
21806 tmp_addflag=' $pic_flag'
21808 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21809 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'
21810 tmp_addflag=' $pic_flag -Mnomain' ;;
21811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21812 tmp_addflag=' -i_dynamic' ;;
21813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21814 tmp_addflag=' -i_dynamic -nofor_main' ;;
21815 ifc* | ifort*) # Intel Fortran compiler
21816 tmp_addflag=' -nofor_main' ;;
21818 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21820 if test $supports_anon_versioning = yes; then
21821 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21823 $echo "local: *; };" >> $output_objdir/$libname.ver~
21824 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21833 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21847 *** create shared libraries on Solaris systems. Therefore, libtool
21848 *** is disabling shared libraries support. We urge you to upgrade GNU
21849 *** binutils to release 2.9.1 or newer. Another option is to modify
21850 *** your PATH or compiler configuration so that the native linker is
21851 *** used, and then restart.
21854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21855 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21856 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21863 case `$LD -v 2>&1` in
21864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21869 *** reliably create shared libraries on SCO systems. Therefore, libtool
21870 *** is disabling shared libraries support. We urge you to upgrade GNU
21871 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21872 *** your PATH or compiler configuration so that the native linker is
21873 *** used, and then restart.
21878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21879 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21890 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21892 hardcode_direct_F77=yes
21893 hardcode_shlibpath_var_F77=no
21897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21899 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21906 if test "$ld_shlibs_F77" = no; then
21908 hardcode_libdir_flag_spec_F77=
21909 export_dynamic_flag_spec_F77=
21910 whole_archive_flag_spec_F77=
21913 # PORTME fill in a description of your system's linker (not GNU ld)
21916 allow_undefined_flag_F77=unsupported
21917 always_export_symbols_F77=yes
21918 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'
21919 # Note: this linker hardcodes the directories in LIBPATH if there
21920 # are no directories specified by -L.
21921 hardcode_minus_L_F77=yes
21922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21923 # Neither direct hardcoding nor static linking is supported with a
21925 hardcode_direct_F77=unsupported
21930 if test "$host_cpu" = ia64; then
21931 # On IA64, the linker does run time linking by default, so we don't
21932 # have to do anything special.
21933 aix_use_runtimelinking=no
21934 exp_sym_flag='-Bexport'
21937 # If we're using GNU nm, then we don't want the "-C" option.
21938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21940 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'
21942 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'
21944 aix_use_runtimelinking=no
21946 # Test if we are trying to use run time linking or normal
21947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21948 # need to do runtime linking.
21949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21950 for ld_flag in $LDFLAGS; do
21951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21952 aix_use_runtimelinking=yes
21959 exp_sym_flag='-bexport'
21960 no_entry_flag='-bnoentry'
21963 # When large executables or shared objects are built, AIX ld can
21964 # have problems creating the table of contents. If linking a library
21965 # or program results in "error TOC overflow" add -mminimal-toc to
21966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21969 archive_cmds_F77=''
21970 hardcode_direct_F77=yes
21971 hardcode_libdir_separator_F77=':'
21972 link_all_deplibs_F77=yes
21974 if test "$GCC" = yes; then
21975 case $host_os in aix4.[012]|aix4.[012].*)
21976 # We only want to do this on AIX 4.2 and lower, the check
21977 # below for broken collect2 doesn't work under 4.3+
21978 collect2name=`${CC} -print-prog-name=collect2`
21979 if test -f "$collect2name" && \
21980 strings "$collect2name" | grep resolve_lib_name >/dev/null
21982 # We have reworked collect2
21983 hardcode_direct_F77=yes
21985 # We have old collect2
21986 hardcode_direct_F77=unsupported
21987 # It fails to find uninstalled libraries when the uninstalled
21988 # path is not listed in the libpath. Setting hardcode_minus_L
21989 # to unsupported forces relinking
21990 hardcode_minus_L_F77=yes
21991 hardcode_libdir_flag_spec_F77='-L$libdir'
21992 hardcode_libdir_separator_F77=
21996 shared_flag='-shared'
21997 if test "$aix_use_runtimelinking" = yes; then
21998 shared_flag="$shared_flag "'${wl}-G'
22002 if test "$host_cpu" = ia64; then
22003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22004 # chokes on -Wl,-G. The following line is correct:
22007 if test "$aix_use_runtimelinking" = yes; then
22008 shared_flag='${wl}-G'
22010 shared_flag='${wl}-bM:SRE'
22015 # It seems that -bexpall does not export symbols beginning with
22016 # underscore (_), so it is better to generate a list of symbols to export.
22017 always_export_symbols_F77=yes
22018 if test "$aix_use_runtimelinking" = yes; then
22019 # Warning - without using the other runtime loading flags (-brtl),
22020 # -berok will link without error, but may produce a broken library.
22021 allow_undefined_flag_F77='-berok'
22022 # Determine the default libpath from the value encoded in an empty executable.
22023 cat >conftest.$ac_ext <<_ACEOF
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_link") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest$ac_exeext'
22053 { (case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_try") 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
22063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22065 # Check for a 64-bit object if we didn't find anything.
22066 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; }
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22075 rm -f core conftest.err conftest.$ac_objext \
22076 conftest$ac_exeext conftest.$ac_ext
22077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22079 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22080 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"
22082 if test "$host_cpu" = ia64; then
22083 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22084 allow_undefined_flag_F77="-z nodefs"
22085 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"
22087 # Determine the default libpath from the value encoded in an empty executable.
22088 cat >conftest.$ac_ext <<_ACEOF
22093 rm -f conftest.$ac_objext conftest$ac_exeext
22094 if { (ac_try="$ac_link"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_link") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1 >conftest.err
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } &&
22107 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22108 { (case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_try") 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest$ac_exeext'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22130 # Check for a 64-bit object if we didn't find anything.
22131 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; }
22134 echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22140 rm -f core conftest.err conftest.$ac_objext \
22141 conftest$ac_exeext conftest.$ac_ext
22142 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22144 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22145 # Warning - without using the other run time loading flags,
22146 # -berok will link without error, but may produce a broken library.
22147 no_undefined_flag_F77=' ${wl}-bernotok'
22148 allow_undefined_flag_F77=' ${wl}-berok'
22149 # Exported symbols can be pulled into shared objects from archives
22150 whole_archive_flag_spec_F77='$convenience'
22151 archive_cmds_need_lc_F77=yes
22152 # This is similar to how AIX traditionally builds its shared libraries.
22153 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'
22159 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)'
22160 hardcode_libdir_flag_spec_F77='-L$libdir'
22161 hardcode_minus_L_F77=yes
22162 # see comment about different semantics on the GNU ld section
22167 export_dynamic_flag_spec_F77=-rdynamic
22170 cygwin* | mingw* | pw32*)
22171 # When not using gcc, we currently assume that we are using
22172 # Microsoft Visual C++.
22173 # hardcode_libdir_flag_spec is actually meaningless, as there is
22174 # no search path for DLLs.
22175 hardcode_libdir_flag_spec_F77=' '
22176 allow_undefined_flag_F77=unsupported
22177 # Tell ltmain to make .lib files, not .a files.
22179 # Tell ltmain to make .dll files, not .so files.
22181 # FIXME: Setting linknames here is a bad hack.
22182 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22183 # The linker will automatically build a .lib file if we build a DLL.
22184 old_archive_From_new_cmds_F77='true'
22185 # FIXME: Should let the user specify the lib program.
22186 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22187 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22188 enable_shared_with_static_runtimes_F77=yes
22191 darwin* | rhapsody*)
22193 rhapsody* | darwin1.[012])
22194 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22197 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22198 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22200 case ${MACOSX_DEPLOYMENT_TARGET} in
22202 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22205 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22211 archive_cmds_need_lc_F77=no
22212 hardcode_direct_F77=no
22213 hardcode_automatic_F77=yes
22214 hardcode_shlibpath_var_F77=unsupported
22215 whole_archive_flag_spec_F77=''
22216 link_all_deplibs_F77=yes
22217 if test "$GCC" = yes ; then
22218 output_verbose_link_cmd='echo'
22219 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22220 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22222 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}'
22223 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}'
22225 case $cc_basename in
22227 output_verbose_link_cmd='echo'
22228 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22229 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22230 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22231 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}'
22232 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}'
22242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243 hardcode_libdir_flag_spec_F77='-L$libdir'
22244 hardcode_shlibpath_var_F77=no
22251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22252 # support. Future versions do this automatically, but an explicit c++rt0.o
22253 # does not break anything, and helps significantly (at the cost of a little
22256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22257 hardcode_libdir_flag_spec_F77='-R$libdir'
22258 hardcode_direct_F77=yes
22259 hardcode_shlibpath_var_F77=no
22262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22264 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265 hardcode_direct_F77=yes
22266 hardcode_minus_L_F77=yes
22267 hardcode_shlibpath_var_F77=no
22270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22271 freebsd* | kfreebsd*-gnu | dragonfly*)
22272 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22273 hardcode_libdir_flag_spec_F77='-R$libdir'
22274 hardcode_direct_F77=yes
22275 hardcode_shlibpath_var_F77=no
22279 if test "$GCC" = yes; then
22280 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'
22282 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'
22284 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22285 hardcode_libdir_separator_F77=:
22286 hardcode_direct_F77=yes
22288 # hardcode_minus_L: Not really in the search PATH,
22289 # but as the default location of the library.
22290 hardcode_minus_L_F77=yes
22291 export_dynamic_flag_spec_F77='${wl}-E'
22295 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22298 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22300 if test "$with_gnu_ld" = no; then
22301 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22302 hardcode_libdir_separator_F77=:
22304 hardcode_direct_F77=yes
22305 export_dynamic_flag_spec_F77='${wl}-E'
22307 # hardcode_minus_L: Not really in the search PATH,
22308 # but as the default location of the library.
22309 hardcode_minus_L_F77=yes
22314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22317 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22323 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22329 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22332 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22335 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22339 if test "$with_gnu_ld" = no; then
22340 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22341 hardcode_libdir_separator_F77=:
22345 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22346 hardcode_direct_F77=no
22347 hardcode_shlibpath_var_F77=no
22350 hardcode_direct_F77=yes
22351 export_dynamic_flag_spec_F77='${wl}-E'
22353 # hardcode_minus_L: Not really in the search PATH,
22354 # but as the default location of the library.
22355 hardcode_minus_L_F77=yes
22361 irix5* | irix6* | nonstopux*)
22362 if test "$GCC" = yes; then
22363 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'
22365 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'
22366 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22369 hardcode_libdir_separator_F77=:
22370 link_all_deplibs_F77=yes
22374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22377 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22379 hardcode_libdir_flag_spec_F77='-R$libdir'
22380 hardcode_direct_F77=yes
22381 hardcode_shlibpath_var_F77=no
22385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386 hardcode_direct_F77=yes
22387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22388 hardcode_libdir_separator_F77=:
22389 hardcode_shlibpath_var_F77=no
22393 hardcode_direct_F77=yes
22394 hardcode_shlibpath_var_F77=no
22395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22396 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22397 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22398 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22399 export_dynamic_flag_spec_F77='${wl}-E'
22402 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22403 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22404 hardcode_libdir_flag_spec_F77='-R$libdir'
22407 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22415 hardcode_libdir_flag_spec_F77='-L$libdir'
22416 hardcode_minus_L_F77=yes
22417 allow_undefined_flag_F77=unsupported
22418 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'
22419 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22423 if test "$GCC" = yes; then
22424 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22425 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'
22427 allow_undefined_flag_F77=' -expect_unresolved \*'
22428 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'
22430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22431 hardcode_libdir_separator_F77=:
22434 osf4* | osf5*) # as osf3* with the addition of -msym flag
22435 if test "$GCC" = yes; then
22436 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22437 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'
22438 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22440 allow_undefined_flag_F77=' -expect_unresolved \*'
22441 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'
22442 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~
22443 $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'
22445 # Both c and cxx compiler support -rpath directly
22446 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22448 hardcode_libdir_separator_F77=:
22452 no_undefined_flag_F77=' -z text'
22453 if test "$GCC" = yes; then
22455 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22456 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22457 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22460 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22461 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22462 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22464 hardcode_libdir_flag_spec_F77='-R$libdir'
22465 hardcode_shlibpath_var_F77=no
22467 solaris2.[0-5] | solaris2.[0-5].*) ;;
22469 # The compiler driver will combine linker options so we
22470 # cannot just pass the convience library names through
22471 # without $wl, iff we do not link with $LD.
22472 # Luckily, gcc supports the same syntax we need for Sun Studio.
22473 # Supported since Solaris 2.6 (maybe 2.5.1?)
22476 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22478 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' ;;
22481 link_all_deplibs_F77=yes
22485 if test "x$host_vendor" = xsequent; then
22486 # Use $CC to link under sequent, because it throws in some extra .o
22487 # files that make .init and .fini sections work.
22488 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22490 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22492 hardcode_libdir_flag_spec_F77='-L$libdir'
22493 hardcode_direct_F77=yes
22494 hardcode_minus_L_F77=yes
22495 hardcode_shlibpath_var_F77=no
22499 case $host_vendor in
22501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22502 hardcode_direct_F77=yes # is this really true???
22505 ## LD is ld it makes a PLAMLIB
22506 ## CC just makes a GrossModule.
22507 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22508 reload_cmds_F77='$CC -r -o $output$reload_objs'
22509 hardcode_direct_F77=no
22512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22516 runpath_var='LD_RUN_PATH'
22517 hardcode_shlibpath_var_F77=no
22521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22522 hardcode_shlibpath_var_F77=no
22523 export_dynamic_flag_spec_F77='-Bexport'
22527 if test -d /usr/nec; then
22528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22529 hardcode_shlibpath_var_F77=no
22530 runpath_var=LD_RUN_PATH
22531 hardcode_runpath_var=yes
22536 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22537 no_undefined_flag_F77='${wl}-z,text'
22538 archive_cmds_need_lc_F77=no
22539 hardcode_shlibpath_var_F77=no
22540 runpath_var='LD_RUN_PATH'
22542 if test "$GCC" = yes; then
22543 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22546 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22547 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22551 sysv5* | sco3.2v5* | sco5v6*)
22552 # Note: We can NOT use -z defs as we might desire, because we do not
22553 # link with -lc, and that would cause any symbols used from libc to
22554 # always be unresolved, which means just about no library would
22555 # ever link correctly. If we're not using GNU ld we use -z text
22556 # though, which does catch some bad symbols but isn't as heavy-handed
22558 no_undefined_flag_F77='${wl}-z,text'
22559 allow_undefined_flag_F77='${wl}-z,nodefs'
22560 archive_cmds_need_lc_F77=no
22561 hardcode_shlibpath_var_F77=no
22562 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22563 hardcode_libdir_separator_F77=':'
22564 link_all_deplibs_F77=yes
22565 export_dynamic_flag_spec_F77='${wl}-Bexport'
22566 runpath_var='LD_RUN_PATH'
22568 if test "$GCC" = yes; then
22569 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22572 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22573 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22579 hardcode_libdir_flag_spec_F77='-L$libdir'
22580 hardcode_shlibpath_var_F77=no
22589 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22590 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22591 test "$ld_shlibs_F77" = no && can_build_shared=no
22594 # Do we need to explicitly link libc?
22596 case "x$archive_cmds_need_lc_F77" in
22598 # Assume -lc should be added
22599 archive_cmds_need_lc_F77=yes
22601 if test "$enable_shared" = yes && test "$GCC" = yes; then
22602 case $archive_cmds_F77 in
22604 # FIXME: we may have to deal with multi-command sequences.
22607 # Test whether the compiler implicitly links with -lc since on some
22608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22609 # to ld, don't add -lc before -lgcc.
22610 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22611 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22616 (eval $ac_compile) 2>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } 2>conftest.err; then
22622 libobjs=conftest.$ac_objext
22624 wl=$lt_prog_compiler_wl_F77
22625 pic_flag=$lt_prog_compiler_pic_F77
22631 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22632 allow_undefined_flag_F77=
22633 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22634 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }
22639 archive_cmds_need_lc_F77=no
22641 archive_cmds_need_lc_F77=yes
22643 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22645 cat conftest.err 1>&5
22648 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22649 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22656 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22657 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22658 library_names_spec=
22659 libname_spec='lib$name'
22663 postuninstall_cmds=
22667 shlibpath_overrides_runpath=unknown
22669 dynamic_linker="$host_os ld.so"
22670 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22671 if test "$GCC" = yes; then
22672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22673 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22674 # if the path contains ";" then we assume it to be the separator
22675 # otherwise default to the standard path separator (i.e. ":") - it is
22676 # assumed that no part of a normal pathname contains ";" but that should
22677 # okay in the real world where ";" in dirpaths is itself problematic.
22678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22683 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22685 need_lib_prefix=unknown
22686 hardcode_into_libs=no
22688 # when you set need_version to no, make sure it does not cause -set_version
22689 # flags to be left without arguments
22690 need_version=unknown
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22696 shlibpath_var=LIBPATH
22698 # AIX 3 has no versioning support, so we append a major version to the name.
22699 soname_spec='${libname}${release}${shared_ext}$major'
22706 hardcode_into_libs=yes
22707 if test "$host_cpu" = ia64; then
22708 # AIX 5 supports IA64
22709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22710 shlibpath_var=LD_LIBRARY_PATH
22712 # With GCC up to 2.95.x, collect2 would create an import file
22713 # for dependence libraries. The import file would start with
22714 # the line `#! .'. This would cause the generated library to
22715 # depend on `.', always an invalid library. This was fixed in
22716 # development snapshots of GCC prior to 3.0.
22718 aix4 | aix4.[01] | aix4.[01].*)
22719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22721 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22724 can_build_shared=no
22728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22729 # soname into executable. Probably we can add versioning support to
22730 # collect2, so additional links can be useful in future.
22731 if test "$aix_use_runtimelinking" = yes; then
22732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22733 # instead of lib<name>.a to let people know that these are not
22734 # typical AIX shared libraries.
22735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 # We preserve .a as extension for shared libraries through AIX4.2
22738 # and later when we are not doing run time linking.
22739 library_names_spec='${libname}${release}.a $libname.a'
22740 soname_spec='${libname}${release}${shared_ext}$major'
22742 shlibpath_var=LIBPATH
22747 library_names_spec='$libname.ixlibrary $libname.a'
22748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22749 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'
22753 library_names_spec='${libname}${shared_ext}'
22754 dynamic_linker="$host_os ld.so"
22755 shlibpath_var=LIBRARY_PATH
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22767 # the default ld.so.conf also contains /usr/contrib/lib and
22768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22769 # libtool to hard-code these into programs
22772 cygwin* | mingw* | pw32*)
22773 version_type=windows
22778 case $GCC,$host_os in
22779 yes,cygwin* | yes,mingw* | yes,pw32*)
22780 library_names_spec='$libname.dll.a'
22781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22782 postinstall_cmds='base_file=`basename \${file}`~
22783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22784 dldir=$destdir/`dirname \$dlpath`~
22785 test -d \$dldir || mkdir -p \$dldir~
22786 $install_prog $dir/$dlname \$dldir/$dlname~
22787 chmod a+x \$dldir/$dlname'
22788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22789 dlpath=$dir/\$dldll~
22791 shlibpath_overrides_runpath=yes
22795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22796 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22797 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22800 # MinGW DLLs use traditional 'lib' prefix
22801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22802 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22803 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22804 # It is most probably a Windows format PATH printed by
22805 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22806 # path with ; separators, and with drive letters. We can handle the
22807 # drive letters (cygwin fileutils understands them), so leave them,
22808 # especially as we might pass files found there to a mingw objdump,
22809 # which wouldn't understand a cygwinified path. Ahh.
22810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22816 # pw32 DLLs use 'pw' prefix rather than 'lib'
22817 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22823 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22826 dynamic_linker='Win32 ld.exe'
22827 # FIXME: first we should search . and the directory the executable is in
22831 darwin* | rhapsody*)
22832 dynamic_linker="$host_os dyld"
22833 version_type=darwin
22836 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22837 soname_spec='${libname}${release}${major}$shared_ext'
22838 shlibpath_overrides_runpath=yes
22839 shlibpath_var=DYLD_LIBRARY_PATH
22840 shrext_cmds='.dylib'
22841 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22842 if test "$GCC" = yes; then
22843 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"`
22845 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22855 soname_spec='${libname}${release}${shared_ext}$major'
22856 shlibpath_var=LD_LIBRARY_PATH
22867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22868 soname_spec='${libname}${release}${shared_ext}$major'
22869 shlibpath_var=LD_LIBRARY_PATH
22870 shlibpath_overrides_runpath=no
22871 hardcode_into_libs=yes
22872 dynamic_linker='GNU ld.so'
22875 freebsd* | dragonfly*)
22876 # DragonFly does not have aout. When/if they implement a new
22877 # versioning mechanism, adjust this.
22878 if test -x /usr/bin/objformat; then
22879 objformat=`/usr/bin/objformat`
22882 freebsd[123]*) objformat=aout ;;
22883 *) objformat=elf ;;
22886 version_type=freebsd-$objformat
22887 case $version_type in
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22898 shlibpath_var=LD_LIBRARY_PATH
22901 shlibpath_overrides_runpath=yes
22903 freebsd3.[01]* | freebsdelf3.[01]*)
22904 shlibpath_overrides_runpath=yes
22905 hardcode_into_libs=yes
22907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22909 shlibpath_overrides_runpath=no
22910 hardcode_into_libs=yes
22912 freebsd*) # from 4.6 on
22913 shlibpath_overrides_runpath=yes
22914 hardcode_into_libs=yes
22923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22924 soname_spec='${libname}${release}${shared_ext}$major'
22925 shlibpath_var=LD_LIBRARY_PATH
22926 hardcode_into_libs=yes
22929 hpux9* | hpux10* | hpux11*)
22930 # Give a soname corresponding to the major version so that dld.sl refuses to
22931 # link against other versions.
22938 hardcode_into_libs=yes
22939 dynamic_linker="$host_os dld.so"
22940 shlibpath_var=LD_LIBRARY_PATH
22941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943 soname_spec='${libname}${release}${shared_ext}$major'
22944 if test "X$HPUX_IA64_MODE" = X32; then
22945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22953 hardcode_into_libs=yes
22954 dynamic_linker="$host_os dld.sl"
22955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958 soname_spec='${libname}${release}${shared_ext}$major'
22959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22964 dynamic_linker="$host_os dld.sl"
22965 shlibpath_var=SHLIB_PATH
22966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22968 soname_spec='${libname}${release}${shared_ext}$major'
22971 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22972 postinstall_cmds='chmod 555 $lib'
22979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22980 soname_spec='${libname}${release}${shared_ext}$major'
22981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 shlibpath_overrides_runpath=no
22984 hardcode_into_libs=yes
22987 irix5* | irix6* | nonstopux*)
22989 nonstopux*) version_type=nonstopux ;;
22991 if test "$lt_cv_prog_gnu_ld" = yes; then
22999 soname_spec='${libname}${release}${shared_ext}$major'
23000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23002 irix5* | nonstopux*)
23003 libsuff= shlibsuff=
23006 case $LD in # libtool.m4 will add one of these switches to LD
23007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23008 libsuff= shlibsuff= libmagic=32-bit;;
23009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23010 libsuff=32 shlibsuff=N32 libmagic=N32;;
23011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23013 *) libsuff= shlibsuff= libmagic=never-match;;
23017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23018 shlibpath_overrides_runpath=no
23019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23021 hardcode_into_libs=yes
23024 # No shared lib support for Linux oldld, aout, or coff.
23025 linux*oldld* | linux*aout* | linux*coff*)
23029 # This must be Linux ELF.
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23037 shlibpath_var=LD_LIBRARY_PATH
23038 shlibpath_overrides_runpath=no
23039 # This implies no fast_install, which is unacceptable.
23040 # Some rework will be needed to allow for fast_install
23041 # before this can be enabled.
23042 hardcode_into_libs=yes
23044 # Append ld.so.conf contents to the search path
23045 if test -f /etc/ld.so.conf; then
23046 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' ' '`
23047 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23050 # We used to test for /lib/ld.so.1 and disable shared libraries on
23051 # powerpc, because MkLinux only supported shared libraries with the
23052 # GNU dynamic linker. Since this was broken with cross compilers,
23053 # most powerpc-linux boxes support dynamic linking these days and
23054 # people can always --disable-shared, the test was removed, and we
23055 # assume the GNU/Linux dynamic linker is in use.
23056 dynamic_linker='GNU/Linux ld.so'
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=no
23067 hardcode_into_libs=yes
23068 dynamic_linker='GNU ld.so'
23075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23078 dynamic_linker='NetBSD (a.out) ld.so'
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23081 soname_spec='${libname}${release}${shared_ext}$major'
23082 dynamic_linker='NetBSD ld.elf_so'
23084 shlibpath_var=LD_LIBRARY_PATH
23085 shlibpath_overrides_runpath=yes
23086 hardcode_into_libs=yes
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092 shlibpath_var=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath=yes
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23101 soname_spec='${libname}${release}${shared_ext}$major'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23108 sys_lib_dlsearch_path_spec="/usr/lib"
23110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23113 *) need_version=no ;;
23115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23117 shlibpath_var=LD_LIBRARY_PATH
23118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23120 openbsd2.[89] | openbsd2.[89].*)
23121 shlibpath_overrides_runpath=no
23124 shlibpath_overrides_runpath=yes
23128 shlibpath_overrides_runpath=yes
23133 libname_spec='$name'
23136 library_names_spec='$libname${shared_ext} $libname.a'
23137 dynamic_linker='OS/2 ld.exe'
23138 shlibpath_var=LIBPATH
23141 osf3* | osf4* | osf5*)
23145 soname_spec='${libname}${release}${shared_ext}$major'
23146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23147 shlibpath_var=LD_LIBRARY_PATH
23148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23157 soname_spec='${libname}${release}${shared_ext}$major'
23158 shlibpath_var=LD_LIBRARY_PATH
23159 shlibpath_overrides_runpath=yes
23160 hardcode_into_libs=yes
23161 # ldd complains unless libraries are executable
23162 postinstall_cmds='chmod +x $lib'
23167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23169 shlibpath_var=LD_LIBRARY_PATH
23170 shlibpath_overrides_runpath=yes
23171 if test "$with_gnu_ld" = yes; then
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 shlibpath_var=LD_LIBRARY_PATH
23182 case $host_vendor in
23184 shlibpath_overrides_runpath=no
23186 export_dynamic_flag_spec='${wl}-Blargedynsym'
23187 runpath_var=LD_RUN_PATH
23195 shlibpath_overrides_runpath=no
23196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23202 if test -d /usr/nec ;then
23204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23205 soname_spec='$libname${shared_ext}.$major'
23206 shlibpath_var=LD_LIBRARY_PATH
23210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23211 version_type=freebsd-elf
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23217 hardcode_into_libs=yes
23218 if test "$with_gnu_ld" = yes; then
23219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23220 shlibpath_overrides_runpath=no
23222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23223 shlibpath_overrides_runpath=yes
23226 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23230 sys_lib_dlsearch_path_spec='/usr/lib'
23235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23236 soname_spec='${libname}${release}${shared_ext}$major'
23237 shlibpath_var=LD_LIBRARY_PATH
23244 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23245 echo "${ECHO_T}$dynamic_linker" >&6; }
23246 test "$dynamic_linker" = no && can_build_shared=no
23248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23249 if test "$GCC" = yes; then
23250 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23253 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23254 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23255 hardcode_action_F77=
23256 if test -n "$hardcode_libdir_flag_spec_F77" || \
23257 test -n "$runpath_var_F77" || \
23258 test "X$hardcode_automatic_F77" = "Xyes" ; then
23260 # We can hardcode non-existant directories.
23261 if test "$hardcode_direct_F77" != no &&
23262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23263 # have to relink, otherwise we might link with an installed library
23264 # when we should be linking with a yet-to-be-installed one
23265 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23266 test "$hardcode_minus_L_F77" != no; then
23267 # Linking always hardcodes the temporary library directory.
23268 hardcode_action_F77=relink
23270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23271 hardcode_action_F77=immediate
23274 # We cannot hardcode anything, or else we can only hardcode existing
23276 hardcode_action_F77=unsupported
23278 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23279 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23281 if test "$hardcode_action_F77" = relink; then
23282 # Fast installation is not supported
23283 enable_fast_install=no
23284 elif test "$shlibpath_overrides_runpath" = yes ||
23285 test "$enable_shared" = no; then
23286 # Fast installation is not necessary
23287 enable_fast_install=needless
23291 # The else clause should only fire when bootstrapping the
23292 # libtool distribution, otherwise you forgot to ship ltmain.sh
23293 # with your package, and you will get complaints that there are
23294 # no rules to generate ltmain.sh.
23295 if test -f "$ltmain"; then
23296 # See if we are running on zsh, and set the options which allow our commands through
23297 # without removal of \ escapes.
23298 if test -n "${ZSH_VERSION+set}" ; then
23299 setopt NO_GLOB_SUBST
23301 # Now quote all the things that may contain metacharacters while being
23302 # careful not to overquote the AC_SUBSTed values. We take copies of the
23303 # variables and quote the copies for generation of the libtool script.
23304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23306 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23307 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23308 deplibs_check_method reload_flag reload_cmds need_locks \
23309 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23310 lt_cv_sys_global_symbol_to_c_name_address \
23311 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23312 old_postinstall_cmds old_postuninstall_cmds \
23316 lt_prog_compiler_wl_F77 \
23317 lt_prog_compiler_pic_F77 \
23318 lt_prog_compiler_static_F77 \
23319 lt_prog_compiler_no_builtin_flag_F77 \
23320 export_dynamic_flag_spec_F77 \
23321 thread_safe_flag_spec_F77 \
23322 whole_archive_flag_spec_F77 \
23323 enable_shared_with_static_runtimes_F77 \
23324 old_archive_cmds_F77 \
23325 old_archive_from_new_cmds_F77 \
23326 predep_objects_F77 \
23327 postdep_objects_F77 \
23330 compiler_lib_search_path_F77 \
23332 archive_expsym_cmds_F77 \
23333 postinstall_cmds_F77 \
23334 postuninstall_cmds_F77 \
23335 old_archive_from_expsyms_cmds_F77 \
23336 allow_undefined_flag_F77 \
23337 no_undefined_flag_F77 \
23338 export_symbols_cmds_F77 \
23339 hardcode_libdir_flag_spec_F77 \
23340 hardcode_libdir_flag_spec_ld_F77 \
23341 hardcode_libdir_separator_F77 \
23342 hardcode_automatic_F77 \
23344 module_expsym_cmds_F77 \
23345 lt_cv_prog_compiler_c_o_F77 \
23346 exclude_expsyms_F77 \
23347 include_expsyms_F77; do
23350 old_archive_cmds_F77 | \
23351 old_archive_from_new_cmds_F77 | \
23352 archive_cmds_F77 | \
23353 archive_expsym_cmds_F77 | \
23354 module_cmds_F77 | \
23355 module_expsym_cmds_F77 | \
23356 old_archive_from_expsyms_cmds_F77 | \
23357 export_symbols_cmds_F77 | \
23358 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23359 postinstall_cmds | postuninstall_cmds | \
23360 old_postinstall_cmds | old_postuninstall_cmds | \
23361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23362 # Double-quote double-evaled strings.
23363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23372 *'\$0 --fallback-echo"')
23373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23379 cat <<__EOF__ >> "$cfgfile"
23380 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23384 # Shell to use when invoking shell scripts.
23387 # Whether or not to build shared libraries.
23388 build_libtool_libs=$enable_shared
23390 # Whether or not to build static libraries.
23391 build_old_libs=$enable_static
23393 # Whether or not to add -lc for building shared libraries.
23394 build_libtool_need_lc=$archive_cmds_need_lc_F77
23396 # Whether or not to disallow shared libs when runtime libs are static
23397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23399 # Whether or not to optimize for fast installation.
23400 fast_install=$enable_fast_install
23403 host_alias=$host_alias
23407 # The build system.
23408 build_alias=$build_alias
23412 # An echo program that does not interpret backslashes.
23417 AR_FLAGS=$lt_AR_FLAGS
23422 # LTCC compiler flags.
23423 LTCFLAGS=$lt_LTCFLAGS
23425 # A language-specific compiler.
23426 CC=$lt_compiler_F77
23428 # Is the compiler the GNU C compiler?
23434 # The linker used to build libraries.
23437 # Whether we need hard or soft links.
23440 # A BSD-compatible nm program.
23443 # A symbol stripping program
23446 # Used to examine libraries when file_magic_cmd begins "file"
23447 MAGIC_CMD=$MAGIC_CMD
23449 # Used on cygwin: DLL creation program.
23452 # Used on cygwin: object dumper.
23455 # Used on cygwin: assembler.
23458 # The name of the directory that contains temporary libtool files.
23461 # How to create reloadable object files.
23462 reload_flag=$lt_reload_flag
23463 reload_cmds=$lt_reload_cmds
23465 # How to pass a linker flag through the compiler.
23466 wl=$lt_lt_prog_compiler_wl_F77
23468 # Object file suffix (normally "o").
23469 objext="$ac_objext"
23471 # Old archive suffix (normally "a").
23474 # Shared library suffix (normally ".so").
23475 shrext_cmds='$shrext_cmds'
23477 # Executable file suffix (normally "").
23480 # Additional compiler flags for building library objects.
23481 pic_flag=$lt_lt_prog_compiler_pic_F77
23484 # What is the maximum length of a command?
23485 max_cmd_len=$lt_cv_sys_max_cmd_len
23487 # Does compiler simultaneously support -c and -o options?
23488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23490 # Must we lock files when doing compilation?
23491 need_locks=$lt_need_locks
23493 # Do we need the lib prefix for modules?
23494 need_lib_prefix=$need_lib_prefix
23496 # Do we need a version for libraries?
23497 need_version=$need_version
23499 # Whether dlopen is supported.
23500 dlopen_support=$enable_dlopen
23502 # Whether dlopen of programs is supported.
23503 dlopen_self=$enable_dlopen_self
23505 # Whether dlopen of statically linked programs is supported.
23506 dlopen_self_static=$enable_dlopen_self_static
23508 # Compiler flag to prevent dynamic linking.
23509 link_static_flag=$lt_lt_prog_compiler_static_F77
23511 # Compiler flag to turn off builtin functions.
23512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23514 # Compiler flag to allow reflexive dlopens.
23515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23517 # Compiler flag to generate shared objects directly from archives.
23518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23520 # Compiler flag to generate thread-safe objects.
23521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23523 # Library versioning type.
23524 version_type=$version_type
23526 # Format of library name prefix.
23527 libname_spec=$lt_libname_spec
23529 # List of archive names. First name is the real one, the rest are links.
23530 # The last name is the one that the linker finds with -lNAME.
23531 library_names_spec=$lt_library_names_spec
23533 # The coded name of the library, if different from the real name.
23534 soname_spec=$lt_soname_spec
23536 # Commands used to build and install an old-style archive.
23538 old_archive_cmds=$lt_old_archive_cmds_F77
23539 old_postinstall_cmds=$lt_old_postinstall_cmds
23540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23542 # Create an old-style archive from a shared archive.
23543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23545 # Create a temporary old-style archive to link instead of a shared archive.
23546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23548 # Commands used to build and install a shared archive.
23549 archive_cmds=$lt_archive_cmds_F77
23550 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23551 postinstall_cmds=$lt_postinstall_cmds
23552 postuninstall_cmds=$lt_postuninstall_cmds
23554 # Commands used to build a loadable module (assumed same as above if empty)
23555 module_cmds=$lt_module_cmds_F77
23556 module_expsym_cmds=$lt_module_expsym_cmds_F77
23558 # Commands to strip libraries.
23559 old_striplib=$lt_old_striplib
23560 striplib=$lt_striplib
23562 # Dependencies to place before the objects being linked to create a
23564 predep_objects=$lt_predep_objects_F77
23566 # Dependencies to place after the objects being linked to create a
23568 postdep_objects=$lt_postdep_objects_F77
23570 # Dependencies to place before the objects being linked to create a
23572 predeps=$lt_predeps_F77
23574 # Dependencies to place after the objects being linked to create a
23576 postdeps=$lt_postdeps_F77
23578 # The library search path used internally by the compiler when linking
23579 # a shared library.
23580 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23582 # Method to check whether dependent libraries are shared objects.
23583 deplibs_check_method=$lt_deplibs_check_method
23585 # Command to use when deplibs_check_method == file_magic.
23586 file_magic_cmd=$lt_file_magic_cmd
23588 # Flag that allows shared libraries with undefined symbols to be built.
23589 allow_undefined_flag=$lt_allow_undefined_flag_F77
23591 # Flag that forces no undefined symbols.
23592 no_undefined_flag=$lt_no_undefined_flag_F77
23594 # Commands used to finish a libtool library installation in a directory.
23595 finish_cmds=$lt_finish_cmds
23597 # Same as above, but a single script fragment to be evaled but not shown.
23598 finish_eval=$lt_finish_eval
23600 # Take the output of nm and produce a listing of raw symbols and C names.
23601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23603 # Transform the output of nm in a proper C declaration
23604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23606 # Transform the output of nm in a C name address pair
23607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23609 # This is the shared library runtime path variable.
23610 runpath_var=$runpath_var
23612 # This is the shared library path variable.
23613 shlibpath_var=$shlibpath_var
23615 # Is shlibpath searched before the hard-coded library search path?
23616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23618 # How to hardcode a shared library path into an executable.
23619 hardcode_action=$hardcode_action_F77
23621 # Whether we should hardcode library paths into libraries.
23622 hardcode_into_libs=$hardcode_into_libs
23624 # Flag to hardcode \$libdir into a binary during linking.
23625 # This must work even if \$libdir does not exist.
23626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23628 # If ld is used when linking, flag to hardcode \$libdir into
23629 # a binary during linking. This must work even if \$libdir does
23631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23633 # Whether we need a single -rpath flag with a separated argument.
23634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23637 # resulting binary.
23638 hardcode_direct=$hardcode_direct_F77
23640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23641 # resulting binary.
23642 hardcode_minus_L=$hardcode_minus_L_F77
23644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23645 # the resulting binary.
23646 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23648 # Set to yes if building a shared library automatically hardcodes DIR into the library
23649 # and all subsequent libraries and executables linked against it.
23650 hardcode_automatic=$hardcode_automatic_F77
23652 # Variables whose values should be saved in libtool wrapper scripts and
23653 # restored at relink time.
23654 variables_saved_for_relink="$variables_saved_for_relink"
23656 # Whether libtool must link a program against all its dependency libraries.
23657 link_all_deplibs=$link_all_deplibs_F77
23659 # Compile-time system search path for libraries
23660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23662 # Run-time system search path for libraries
23663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23665 # Fix the shell variable \$srcfile for the compiler.
23666 fix_srcfile_path="$fix_srcfile_path_F77"
23668 # Set to yes if exported symbols are required.
23669 always_export_symbols=$always_export_symbols_F77
23671 # The commands to list exported symbols.
23672 export_symbols_cmds=$lt_export_symbols_cmds_F77
23674 # The commands to extract the exported symbol list from a shared archive.
23675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23677 # Symbols that should not be listed in the preloaded symbols.
23678 exclude_expsyms=$lt_exclude_expsyms_F77
23680 # Symbols that must always be exported.
23681 include_expsyms=$lt_include_expsyms_F77
23683 # ### END LIBTOOL TAG CONFIG: $tagname
23689 # If there is no Makefile yet, we rely on a make rule to execute
23690 # `config.status --recheck' to rerun these tests and create the
23691 # libtool script then.
23692 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23693 if test -f "$ltmain_in"; then
23694 test -f Makefile && make "$ltmain"
23700 ac_cpp='$CPP $CPPFLAGS'
23701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23713 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23715 ac_cpp='$CPP $CPPFLAGS'
23716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23721 # Source file extension for Java test sources.
23724 # Object file extension for compiled Java test sources.
23728 # Code to be used in simple compile tests
23729 lt_simple_compile_test_code="class foo {}\n"
23731 # Code to be used in simple link tests
23732 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23734 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23736 # If no C compiler was specified, use CC.
23739 # If no C compiler flags were specified, use CFLAGS.
23740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23742 # Allow CC to be a program name with arguments.
23746 # save warnings/boilerplate of simple test code
23747 ac_outfile=conftest.$ac_objext
23748 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23750 _lt_compiler_boilerplate=`cat conftest.err`
23753 ac_outfile=conftest.$ac_objext
23754 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23756 _lt_linker_boilerplate=`cat conftest.err`
23760 # Allow CC to be a program name with arguments.
23765 for cc_temp in $compiler""; do
23767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23773 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23776 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23777 archive_cmds_need_lc_GCJ=no
23779 old_archive_cmds_GCJ=$old_archive_cmds
23782 lt_prog_compiler_no_builtin_flag_GCJ=
23784 if test "$GCC" = yes; then
23785 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23788 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23789 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23790 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23791 echo $ECHO_N "(cached) $ECHO_C" >&6
23793 lt_cv_prog_compiler_rtti_exceptions=no
23794 ac_outfile=conftest.$ac_objext
23795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23796 lt_compiler_flag="-fno-rtti -fno-exceptions"
23797 # Insert the option either (1) after the last *FLAGS variable, or
23798 # (2) before a word containing "conftest.", or (3) at the end.
23799 # Note that $ac_compile itself does not contain backslashes and begins
23800 # with a dollar sign (not a hyphen), so the echo should work correctly.
23801 # The option is referenced via a variable to avoid confusing sed.
23802 lt_compile=`echo "$ac_compile" | $SED \
23803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23805 -e 's:$: $lt_compiler_flag:'`
23806 (eval echo "\"\$as_me:23806: $lt_compile\"" >&5)
23807 (eval "$lt_compile" 2>conftest.err)
23809 cat conftest.err >&5
23810 echo "$as_me:23810: \$? = $ac_status" >&5
23811 if (exit $ac_status) && test -s "$ac_outfile"; then
23812 # The compiler can only warn and ignore the option if not recognized
23813 # So say no if there are warnings other than the usual output.
23814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23817 lt_cv_prog_compiler_rtti_exceptions=yes
23823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23824 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23826 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23827 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23834 lt_prog_compiler_wl_GCJ=
23835 lt_prog_compiler_pic_GCJ=
23836 lt_prog_compiler_static_GCJ=
23838 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23839 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23841 if test "$GCC" = yes; then
23842 lt_prog_compiler_wl_GCJ='-Wl,'
23843 lt_prog_compiler_static_GCJ='-static'
23847 # All AIX code is PIC.
23848 if test "$host_cpu" = ia64; then
23849 # AIX 5 now supports IA64 processor
23850 lt_prog_compiler_static_GCJ='-Bstatic'
23855 # FIXME: we need at least 68020 code to build shared libraries, but
23856 # adding the `-m68020' flag to GCC prevents building anything better,
23858 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23861 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23862 # PIC is the default for these OSes.
23865 mingw* | pw32* | os2*)
23866 # This hack is so that the source file can tell whether it is being
23867 # built for inclusion in a dll (and should export symbols for example).
23868 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23871 darwin* | rhapsody*)
23872 # PIC is the default on this platform
23873 # Common symbols not allowed in MH_DYLIB files
23874 lt_prog_compiler_pic_GCJ='-fno-common'
23878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23879 # Instead, we relocate shared libraries at runtime.
23883 # Just because we use GCC doesn't mean we suddenly get shared libraries
23884 # on systems that don't support them.
23885 lt_prog_compiler_can_build_shared_GCJ=no
23890 if test -d /usr/nec; then
23891 lt_prog_compiler_pic_GCJ=-Kconform_pic
23896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23897 # not for PA HP-UX.
23903 lt_prog_compiler_pic_GCJ='-fPIC'
23909 lt_prog_compiler_pic_GCJ='-fPIC'
23913 # PORTME Check for flag to pass linker flags through the system compiler.
23916 lt_prog_compiler_wl_GCJ='-Wl,'
23917 if test "$host_cpu" = ia64; then
23918 # AIX 5 now supports IA64 processor
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23921 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23925 # PIC is the default on this platform
23926 # Common symbols not allowed in MH_DYLIB files
23927 case $cc_basename in
23929 lt_prog_compiler_pic_GCJ='-qnocommon'
23930 lt_prog_compiler_wl_GCJ='-Wl,'
23935 mingw* | pw32* | os2*)
23936 # This hack is so that the source file can tell whether it is being
23937 # built for inclusion in a dll (and should export symbols for example).
23938 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23941 hpux9* | hpux10* | hpux11*)
23942 lt_prog_compiler_wl_GCJ='-Wl,'
23943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23944 # not for PA HP-UX.
23950 lt_prog_compiler_pic_GCJ='+Z'
23953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23954 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23957 irix5* | irix6* | nonstopux*)
23958 lt_prog_compiler_wl_GCJ='-Wl,'
23959 # PIC (with -KPIC) is the default.
23960 lt_prog_compiler_static_GCJ='-non_shared'
23964 lt_prog_compiler_pic_GCJ='-KPIC'
23965 lt_prog_compiler_static_GCJ='-Bstatic'
23969 case $cc_basename in
23971 lt_prog_compiler_wl_GCJ='-Wl,'
23972 lt_prog_compiler_pic_GCJ='-KPIC'
23973 lt_prog_compiler_static_GCJ='-static'
23975 pgcc* | pgf77* | pgf90* | pgf95*)
23976 # Portland Group compilers (*not* the Pentium gcc compiler,
23977 # which looks to be a dead project)
23978 lt_prog_compiler_wl_GCJ='-Wl,'
23979 lt_prog_compiler_pic_GCJ='-fpic'
23980 lt_prog_compiler_static_GCJ='-Bstatic'
23983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 # All Alpha code is PIC.
23985 lt_prog_compiler_static_GCJ='-non_shared'
23990 osf3* | osf4* | osf5*)
23991 lt_prog_compiler_wl_GCJ='-Wl,'
23992 # All OSF/1 code is PIC.
23993 lt_prog_compiler_static_GCJ='-non_shared'
23997 lt_prog_compiler_pic_GCJ='-KPIC'
23998 lt_prog_compiler_static_GCJ='-Bstatic'
23999 case $cc_basename in
24000 f77* | f90* | f95*)
24001 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24003 lt_prog_compiler_wl_GCJ='-Wl,';;
24008 lt_prog_compiler_wl_GCJ='-Qoption ld '
24009 lt_prog_compiler_pic_GCJ='-PIC'
24010 lt_prog_compiler_static_GCJ='-Bstatic'
24013 sysv4 | sysv4.2uw2* | sysv4.3*)
24014 lt_prog_compiler_wl_GCJ='-Wl,'
24015 lt_prog_compiler_pic_GCJ='-KPIC'
24016 lt_prog_compiler_static_GCJ='-Bstatic'
24020 if test -d /usr/nec ;then
24021 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24022 lt_prog_compiler_static_GCJ='-Bstatic'
24026 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24027 lt_prog_compiler_wl_GCJ='-Wl,'
24028 lt_prog_compiler_pic_GCJ='-KPIC'
24029 lt_prog_compiler_static_GCJ='-Bstatic'
24033 lt_prog_compiler_wl_GCJ='-Wl,'
24034 lt_prog_compiler_can_build_shared_GCJ=no
24038 lt_prog_compiler_pic_GCJ='-pic'
24039 lt_prog_compiler_static_GCJ='-Bstatic'
24043 lt_prog_compiler_can_build_shared_GCJ=no
24048 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24049 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24052 # Check to make sure the PIC flag actually works.
24054 if test -n "$lt_prog_compiler_pic_GCJ"; then
24056 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24057 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24058 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24061 lt_prog_compiler_pic_works_GCJ=no
24062 ac_outfile=conftest.$ac_objext
24063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24064 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24065 # Insert the option either (1) after the last *FLAGS variable, or
24066 # (2) before a word containing "conftest.", or (3) at the end.
24067 # Note that $ac_compile itself does not contain backslashes and begins
24068 # with a dollar sign (not a hyphen), so the echo should work correctly.
24069 # The option is referenced via a variable to avoid confusing sed.
24070 lt_compile=`echo "$ac_compile" | $SED \
24071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24073 -e 's:$: $lt_compiler_flag:'`
24074 (eval echo "\"\$as_me:24074: $lt_compile\"" >&5)
24075 (eval "$lt_compile" 2>conftest.err)
24077 cat conftest.err >&5
24078 echo "$as_me:24078: \$? = $ac_status" >&5
24079 if (exit $ac_status) && test -s "$ac_outfile"; then
24080 # The compiler can only warn and ignore the option if not recognized
24081 # So say no if there are warnings other than the usual output.
24082 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24085 lt_prog_compiler_pic_works_GCJ=yes
24091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24092 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24094 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24095 case $lt_prog_compiler_pic_GCJ in
24097 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24100 lt_prog_compiler_pic_GCJ=
24101 lt_prog_compiler_can_build_shared_GCJ=no
24106 # For platforms which do not support PIC, -DPIC is meaningless:
24108 lt_prog_compiler_pic_GCJ=
24111 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24116 # Check to make sure the static flag actually works.
24118 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24119 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24120 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24121 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24124 lt_prog_compiler_static_works_GCJ=no
24125 save_LDFLAGS="$LDFLAGS"
24126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24127 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24129 # The linker can only warn and ignore the option if not recognized
24130 # So say no if there are warnings
24131 if test -s conftest.err; then
24132 # Append any errors to the config.log.
24133 cat conftest.err 1>&5
24134 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24136 if diff conftest.exp conftest.er2 >/dev/null; then
24137 lt_prog_compiler_static_works_GCJ=yes
24140 lt_prog_compiler_static_works_GCJ=yes
24144 LDFLAGS="$save_LDFLAGS"
24147 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24148 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24150 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24153 lt_prog_compiler_static_GCJ=
24157 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24158 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24159 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24160 echo $ECHO_N "(cached) $ECHO_C" >&6
24162 lt_cv_prog_compiler_c_o_GCJ=no
24163 $rm -r conftest 2>/dev/null
24167 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24169 lt_compiler_flag="-o out/conftest2.$ac_objext"
24170 # Insert the option either (1) after the last *FLAGS variable, or
24171 # (2) before a word containing "conftest.", or (3) at the end.
24172 # Note that $ac_compile itself does not contain backslashes and begins
24173 # with a dollar sign (not a hyphen), so the echo should work correctly.
24174 lt_compile=`echo "$ac_compile" | $SED \
24175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24177 -e 's:$: $lt_compiler_flag:'`
24178 (eval echo "\"\$as_me:24178: $lt_compile\"" >&5)
24179 (eval "$lt_compile" 2>out/conftest.err)
24181 cat out/conftest.err >&5
24182 echo "$as_me:24182: \$? = $ac_status" >&5
24183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24185 # The compiler can only warn and ignore the option if not recognized
24186 # So say no if there are warnings
24187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24190 lt_cv_prog_compiler_c_o_GCJ=yes
24195 # SGI C++ compiler will create directory out/ii_files/ for
24196 # template instantiation
24197 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24198 $rm out/* && rmdir out
24204 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24205 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24208 hard_links="nottested"
24209 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24210 # do not overwrite the value of need_locks provided by the user
24211 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24212 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24217 ln conftest.a conftest.b 2>&5 || hard_links=no
24218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24219 { echo "$as_me:$LINENO: result: $hard_links" >&5
24220 echo "${ECHO_T}$hard_links" >&6; }
24221 if test "$hard_links" = no; then
24222 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24223 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24230 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24231 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24234 allow_undefined_flag_GCJ=
24235 enable_shared_with_static_runtimes_GCJ=no
24237 archive_expsym_cmds_GCJ=
24238 old_archive_From_new_cmds_GCJ=
24239 old_archive_from_expsyms_cmds_GCJ=
24240 export_dynamic_flag_spec_GCJ=
24241 whole_archive_flag_spec_GCJ=
24242 thread_safe_flag_spec_GCJ=
24243 hardcode_libdir_flag_spec_GCJ=
24244 hardcode_libdir_flag_spec_ld_GCJ=
24245 hardcode_libdir_separator_GCJ=
24246 hardcode_direct_GCJ=no
24247 hardcode_minus_L_GCJ=no
24248 hardcode_shlibpath_var_GCJ=unsupported
24249 link_all_deplibs_GCJ=unknown
24250 hardcode_automatic_GCJ=no
24252 module_expsym_cmds_GCJ=
24253 always_export_symbols_GCJ=no
24254 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24255 # include_expsyms should be a list of space-separated symbols to be *always*
24256 # included in the symbol list
24257 include_expsyms_GCJ=
24258 # exclude_expsyms can be an extended regexp of symbols to exclude
24259 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24260 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24261 # as well as any symbol that contains `d'.
24262 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24263 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24264 # platforms (ab)use it in PIC code, but their linkers get confused if
24265 # the symbol is explicitly referenced. Since portable code cannot
24266 # rely on this symbol name, it's probably fine to never include it in
24267 # preloaded symbol tables.
24268 extract_expsyms_cmds=
24269 # Just being paranoid about ensuring that cc_basename is set.
24270 for cc_temp in $compiler""; do
24272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24278 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24281 cygwin* | mingw* | pw32*)
24282 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24283 # When not using gcc, we currently assume that we are using
24284 # Microsoft Visual C++.
24285 if test "$GCC" != yes; then
24290 # we just hope/assume this is gcc and not c89 (= MSVC++)
24299 if test "$with_gnu_ld" = yes; then
24300 # If archive_cmds runs LD, not CC, wlarc should be empty
24303 # Set some defaults for GNU ld with shared library support. These
24304 # are reset later if shared libraries are not supported. Putting them
24305 # here allows them to be overridden if necessary.
24306 runpath_var=LD_RUN_PATH
24307 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24308 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24309 # ancient GNU ld didn't support --whole-archive et. al.
24310 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24311 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24313 whole_archive_flag_spec_GCJ=
24315 supports_anon_versioning=no
24316 case `$LD -v 2>/dev/null` in
24317 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24318 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24319 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24320 *\ 2.11.*) ;; # other 2.11 versions
24321 *) supports_anon_versioning=yes ;;
24324 # See if GNU ld supports shared libraries.
24326 aix3* | aix4* | aix5*)
24327 # On AIX/PPC, the GNU linker is very broken
24328 if test "$host_cpu" != ia64; then
24332 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24333 *** to be unable to reliably create shared libraries on AIX.
24334 *** Therefore, libtool is disabling shared libraries support. If you
24335 *** really care for shared libraries, you may want to modify your PATH
24336 *** so that a non-GNU linker is found, and then restart.
24343 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)'
24344 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24345 hardcode_minus_L_GCJ=yes
24347 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24348 # that the semantics of dynamic libraries on AmigaOS, at least up
24349 # to version 4, is to share data among multiple programs linked
24350 # with the same dynamic library. Since this doesn't match the
24351 # behavior of shared libraries on other platforms, we can't use
24357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24358 allow_undefined_flag_GCJ=unsupported
24359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24360 # support --undefined. This deserves some investigation. FIXME
24361 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24367 cygwin* | mingw* | pw32*)
24368 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24369 # as there is no search path for DLLs.
24370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24371 allow_undefined_flag_GCJ=unsupported
24372 always_export_symbols_GCJ=no
24373 enable_shared_with_static_runtimes_GCJ=yes
24374 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24376 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24377 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24378 # If the export-symbols file already is a .def file (1st line
24379 # is EXPORTS), use it as is; otherwise, prepend...
24380 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24381 cp $export_symbols $output_objdir/$soname.def;
24383 echo EXPORTS > $output_objdir/$soname.def;
24384 cat $export_symbols >> $output_objdir/$soname.def;
24386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24393 hardcode_direct_GCJ=no
24394 hardcode_shlibpath_var_GCJ=no
24395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24396 export_dynamic_flag_spec_GCJ='${wl}-E'
24397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24398 # Instead, shared libraries are loaded at an image base (0x10000000 by
24399 # default) and relocated if they conflict, which is a slow very memory
24400 # consuming and fragmenting process. To avoid this, we pick a random,
24401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24403 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'
24404 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'
24408 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24410 case $cc_basename,$host_cpu in
24411 pgcc*) # Portland Group C compiler
24412 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'
24413 tmp_addflag=' $pic_flag'
24415 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24416 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'
24417 tmp_addflag=' $pic_flag -Mnomain' ;;
24418 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24419 tmp_addflag=' -i_dynamic' ;;
24420 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24421 tmp_addflag=' -i_dynamic -nofor_main' ;;
24422 ifc* | ifort*) # Intel Fortran compiler
24423 tmp_addflag=' -nofor_main' ;;
24425 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24427 if test $supports_anon_versioning = yes; then
24428 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24430 $echo "local: *; };" >> $output_objdir/$libname.ver~
24431 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24439 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24440 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24443 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24449 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24453 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24454 *** create shared libraries on Solaris systems. Therefore, libtool
24455 *** is disabling shared libraries support. We urge you to upgrade GNU
24456 *** binutils to release 2.9.1 or newer. Another option is to modify
24457 *** your PATH or compiler configuration so that the native linker is
24458 *** used, and then restart.
24461 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24462 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24463 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24470 case `$LD -v 2>&1` in
24471 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24475 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24476 *** reliably create shared libraries on SCO systems. Therefore, libtool
24477 *** is disabling shared libraries support. We urge you to upgrade GNU
24478 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24479 *** your PATH or compiler configuration so that the native linker is
24480 *** used, and then restart.
24485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24486 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24487 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24488 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24497 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24499 hardcode_direct_GCJ=yes
24500 hardcode_shlibpath_var_GCJ=no
24504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24506 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24513 if test "$ld_shlibs_GCJ" = no; then
24515 hardcode_libdir_flag_spec_GCJ=
24516 export_dynamic_flag_spec_GCJ=
24517 whole_archive_flag_spec_GCJ=
24520 # PORTME fill in a description of your system's linker (not GNU ld)
24523 allow_undefined_flag_GCJ=unsupported
24524 always_export_symbols_GCJ=yes
24525 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'
24526 # Note: this linker hardcodes the directories in LIBPATH if there
24527 # are no directories specified by -L.
24528 hardcode_minus_L_GCJ=yes
24529 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24530 # Neither direct hardcoding nor static linking is supported with a
24532 hardcode_direct_GCJ=unsupported
24537 if test "$host_cpu" = ia64; then
24538 # On IA64, the linker does run time linking by default, so we don't
24539 # have to do anything special.
24540 aix_use_runtimelinking=no
24541 exp_sym_flag='-Bexport'
24544 # If we're using GNU nm, then we don't want the "-C" option.
24545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24546 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24547 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'
24549 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'
24551 aix_use_runtimelinking=no
24553 # Test if we are trying to use run time linking or normal
24554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24555 # need to do runtime linking.
24556 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24557 for ld_flag in $LDFLAGS; do
24558 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24559 aix_use_runtimelinking=yes
24566 exp_sym_flag='-bexport'
24567 no_entry_flag='-bnoentry'
24570 # When large executables or shared objects are built, AIX ld can
24571 # have problems creating the table of contents. If linking a library
24572 # or program results in "error TOC overflow" add -mminimal-toc to
24573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24576 archive_cmds_GCJ=''
24577 hardcode_direct_GCJ=yes
24578 hardcode_libdir_separator_GCJ=':'
24579 link_all_deplibs_GCJ=yes
24581 if test "$GCC" = yes; then
24582 case $host_os in aix4.[012]|aix4.[012].*)
24583 # We only want to do this on AIX 4.2 and lower, the check
24584 # below for broken collect2 doesn't work under 4.3+
24585 collect2name=`${CC} -print-prog-name=collect2`
24586 if test -f "$collect2name" && \
24587 strings "$collect2name" | grep resolve_lib_name >/dev/null
24589 # We have reworked collect2
24590 hardcode_direct_GCJ=yes
24592 # We have old collect2
24593 hardcode_direct_GCJ=unsupported
24594 # It fails to find uninstalled libraries when the uninstalled
24595 # path is not listed in the libpath. Setting hardcode_minus_L
24596 # to unsupported forces relinking
24597 hardcode_minus_L_GCJ=yes
24598 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24599 hardcode_libdir_separator_GCJ=
24603 shared_flag='-shared'
24604 if test "$aix_use_runtimelinking" = yes; then
24605 shared_flag="$shared_flag "'${wl}-G'
24609 if test "$host_cpu" = ia64; then
24610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24611 # chokes on -Wl,-G. The following line is correct:
24614 if test "$aix_use_runtimelinking" = yes; then
24615 shared_flag='${wl}-G'
24617 shared_flag='${wl}-bM:SRE'
24622 # It seems that -bexpall does not export symbols beginning with
24623 # underscore (_), so it is better to generate a list of symbols to export.
24624 always_export_symbols_GCJ=yes
24625 if test "$aix_use_runtimelinking" = yes; then
24626 # Warning - without using the other runtime loading flags (-brtl),
24627 # -berok will link without error, but may produce a broken library.
24628 allow_undefined_flag_GCJ='-berok'
24629 # Determine the default libpath from the value encoded in an empty executable.
24630 cat >conftest.$ac_ext <<_ACEOF
24633 cat confdefs.h >>conftest.$ac_ext
24634 cat >>conftest.$ac_ext <<_ACEOF
24635 /* end confdefs.h. */
24645 rm -f conftest.$ac_objext conftest$ac_exeext
24646 if { (ac_try="$ac_link"
24647 case "(($ac_try" in
24648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24652 (eval "$ac_link") 2>conftest.er1
24654 grep -v '^ *+' conftest.er1 >conftest.err
24656 cat conftest.err >&5
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } &&
24659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24660 { (case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_try") 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; }; then
24680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24682 # Check for a 64-bit object if we didn't find anything.
24683 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; }
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24692 rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24696 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24697 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"
24699 if test "$host_cpu" = ia64; then
24700 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24701 allow_undefined_flag_GCJ="-z nodefs"
24702 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"
24704 # Determine the default libpath from the value encoded in an empty executable.
24705 cat >conftest.$ac_ext <<_ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24720 rm -f conftest.$ac_objext conftest$ac_exeext
24721 if { (ac_try="$ac_link"
24722 case "(($ac_try" in
24723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724 *) ac_try_echo=$ac_try;;
24726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727 (eval "$ac_link") 2>conftest.er1
24729 grep -v '^ *+' conftest.er1 >conftest.err
24731 cat conftest.err >&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } &&
24734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24735 { (case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_try") 2>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest$ac_exeext'
24745 { (case "(($ac_try" in
24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747 *) ac_try_echo=$ac_try;;
24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750 (eval "$ac_try") 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; }; then
24755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24757 # Check for a 64-bit object if we didn't find anything.
24758 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; }
24761 echo "$as_me: failed program was:" >&5
24762 sed 's/^/| /' conftest.$ac_ext >&5
24767 rm -f core conftest.err conftest.$ac_objext \
24768 conftest$ac_exeext conftest.$ac_ext
24769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24771 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24772 # Warning - without using the other run time loading flags,
24773 # -berok will link without error, but may produce a broken library.
24774 no_undefined_flag_GCJ=' ${wl}-bernotok'
24775 allow_undefined_flag_GCJ=' ${wl}-berok'
24776 # Exported symbols can be pulled into shared objects from archives
24777 whole_archive_flag_spec_GCJ='$convenience'
24778 archive_cmds_need_lc_GCJ=yes
24779 # This is similar to how AIX traditionally builds its shared libraries.
24780 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'
24786 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)'
24787 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24788 hardcode_minus_L_GCJ=yes
24789 # see comment about different semantics on the GNU ld section
24794 export_dynamic_flag_spec_GCJ=-rdynamic
24797 cygwin* | mingw* | pw32*)
24798 # When not using gcc, we currently assume that we are using
24799 # Microsoft Visual C++.
24800 # hardcode_libdir_flag_spec is actually meaningless, as there is
24801 # no search path for DLLs.
24802 hardcode_libdir_flag_spec_GCJ=' '
24803 allow_undefined_flag_GCJ=unsupported
24804 # Tell ltmain to make .lib files, not .a files.
24806 # Tell ltmain to make .dll files, not .so files.
24808 # FIXME: Setting linknames here is a bad hack.
24809 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24810 # The linker will automatically build a .lib file if we build a DLL.
24811 old_archive_From_new_cmds_GCJ='true'
24812 # FIXME: Should let the user specify the lib program.
24813 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24814 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24815 enable_shared_with_static_runtimes_GCJ=yes
24818 darwin* | rhapsody*)
24820 rhapsody* | darwin1.[012])
24821 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24824 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24825 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24827 case ${MACOSX_DEPLOYMENT_TARGET} in
24829 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24832 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24838 archive_cmds_need_lc_GCJ=no
24839 hardcode_direct_GCJ=no
24840 hardcode_automatic_GCJ=yes
24841 hardcode_shlibpath_var_GCJ=unsupported
24842 whole_archive_flag_spec_GCJ=''
24843 link_all_deplibs_GCJ=yes
24844 if test "$GCC" = yes ; then
24845 output_verbose_link_cmd='echo'
24846 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24847 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24849 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}'
24850 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}'
24852 case $cc_basename in
24854 output_verbose_link_cmd='echo'
24855 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24856 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24858 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}'
24859 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}'
24869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24871 hardcode_shlibpath_var_GCJ=no
24878 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24879 # support. Future versions do this automatically, but an explicit c++rt0.o
24880 # does not break anything, and helps significantly (at the cost of a little
24883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24885 hardcode_direct_GCJ=yes
24886 hardcode_shlibpath_var_GCJ=no
24889 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24891 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24892 hardcode_direct_GCJ=yes
24893 hardcode_minus_L_GCJ=yes
24894 hardcode_shlibpath_var_GCJ=no
24897 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24898 freebsd* | kfreebsd*-gnu | dragonfly*)
24899 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24901 hardcode_direct_GCJ=yes
24902 hardcode_shlibpath_var_GCJ=no
24906 if test "$GCC" = yes; then
24907 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'
24909 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'
24911 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24912 hardcode_libdir_separator_GCJ=:
24913 hardcode_direct_GCJ=yes
24915 # hardcode_minus_L: Not really in the search PATH,
24916 # but as the default location of the library.
24917 hardcode_minus_L_GCJ=yes
24918 export_dynamic_flag_spec_GCJ='${wl}-E'
24922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24923 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24925 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24927 if test "$with_gnu_ld" = no; then
24928 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24929 hardcode_libdir_separator_GCJ=:
24931 hardcode_direct_GCJ=yes
24932 export_dynamic_flag_spec_GCJ='${wl}-E'
24934 # hardcode_minus_L: Not really in the search PATH,
24935 # but as the default location of the library.
24936 hardcode_minus_L_GCJ=yes
24941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24944 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24947 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24950 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24956 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24959 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24962 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24966 if test "$with_gnu_ld" = no; then
24967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24968 hardcode_libdir_separator_GCJ=:
24972 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24973 hardcode_direct_GCJ=no
24974 hardcode_shlibpath_var_GCJ=no
24977 hardcode_direct_GCJ=yes
24978 export_dynamic_flag_spec_GCJ='${wl}-E'
24980 # hardcode_minus_L: Not really in the search PATH,
24981 # but as the default location of the library.
24982 hardcode_minus_L_GCJ=yes
24988 irix5* | irix6* | nonstopux*)
24989 if test "$GCC" = yes; then
24990 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'
24992 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'
24993 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24996 hardcode_libdir_separator_GCJ=:
24997 link_all_deplibs_GCJ=yes
25001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25002 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25004 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25006 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25007 hardcode_direct_GCJ=yes
25008 hardcode_shlibpath_var_GCJ=no
25012 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25013 hardcode_direct_GCJ=yes
25014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25015 hardcode_libdir_separator_GCJ=:
25016 hardcode_shlibpath_var_GCJ=no
25020 hardcode_direct_GCJ=yes
25021 hardcode_shlibpath_var_GCJ=no
25022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25023 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25024 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25026 export_dynamic_flag_spec_GCJ='${wl}-E'
25029 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25030 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25031 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25042 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25043 hardcode_minus_L_GCJ=yes
25044 allow_undefined_flag_GCJ=unsupported
25045 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'
25046 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25050 if test "$GCC" = yes; then
25051 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25052 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'
25054 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25055 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'
25057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25058 hardcode_libdir_separator_GCJ=:
25061 osf4* | osf5*) # as osf3* with the addition of -msym flag
25062 if test "$GCC" = yes; then
25063 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25064 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'
25065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25067 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25068 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'
25069 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~
25070 $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'
25072 # Both c and cxx compiler support -rpath directly
25073 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25075 hardcode_libdir_separator_GCJ=:
25079 no_undefined_flag_GCJ=' -z text'
25080 if test "$GCC" = yes; then
25082 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25083 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25084 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25087 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25092 hardcode_shlibpath_var_GCJ=no
25094 solaris2.[0-5] | solaris2.[0-5].*) ;;
25096 # The compiler driver will combine linker options so we
25097 # cannot just pass the convience library names through
25098 # without $wl, iff we do not link with $LD.
25099 # Luckily, gcc supports the same syntax we need for Sun Studio.
25100 # Supported since Solaris 2.6 (maybe 2.5.1?)
25103 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25105 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' ;;
25108 link_all_deplibs_GCJ=yes
25112 if test "x$host_vendor" = xsequent; then
25113 # Use $CC to link under sequent, because it throws in some extra .o
25114 # files that make .init and .fini sections work.
25115 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25117 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25120 hardcode_direct_GCJ=yes
25121 hardcode_minus_L_GCJ=yes
25122 hardcode_shlibpath_var_GCJ=no
25126 case $host_vendor in
25128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25129 hardcode_direct_GCJ=yes # is this really true???
25132 ## LD is ld it makes a PLAMLIB
25133 ## CC just makes a GrossModule.
25134 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25135 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25136 hardcode_direct_GCJ=no
25139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25143 runpath_var='LD_RUN_PATH'
25144 hardcode_shlibpath_var_GCJ=no
25148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25149 hardcode_shlibpath_var_GCJ=no
25150 export_dynamic_flag_spec_GCJ='-Bexport'
25154 if test -d /usr/nec; then
25155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25156 hardcode_shlibpath_var_GCJ=no
25157 runpath_var=LD_RUN_PATH
25158 hardcode_runpath_var=yes
25163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25164 no_undefined_flag_GCJ='${wl}-z,text'
25165 archive_cmds_need_lc_GCJ=no
25166 hardcode_shlibpath_var_GCJ=no
25167 runpath_var='LD_RUN_PATH'
25169 if test "$GCC" = yes; then
25170 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25173 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25174 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25178 sysv5* | sco3.2v5* | sco5v6*)
25179 # Note: We can NOT use -z defs as we might desire, because we do not
25180 # link with -lc, and that would cause any symbols used from libc to
25181 # always be unresolved, which means just about no library would
25182 # ever link correctly. If we're not using GNU ld we use -z text
25183 # though, which does catch some bad symbols but isn't as heavy-handed
25185 no_undefined_flag_GCJ='${wl}-z,text'
25186 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25187 archive_cmds_need_lc_GCJ=no
25188 hardcode_shlibpath_var_GCJ=no
25189 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25190 hardcode_libdir_separator_GCJ=':'
25191 link_all_deplibs_GCJ=yes
25192 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25193 runpath_var='LD_RUN_PATH'
25195 if test "$GCC" = yes; then
25196 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25199 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25200 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25207 hardcode_shlibpath_var_GCJ=no
25216 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25217 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25218 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25221 # Do we need to explicitly link libc?
25223 case "x$archive_cmds_need_lc_GCJ" in
25225 # Assume -lc should be added
25226 archive_cmds_need_lc_GCJ=yes
25228 if test "$enable_shared" = yes && test "$GCC" = yes; then
25229 case $archive_cmds_GCJ in
25231 # FIXME: we may have to deal with multi-command sequences.
25234 # Test whether the compiler implicitly links with -lc since on some
25235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25236 # to ld, don't add -lc before -lgcc.
25237 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25238 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25243 (eval $ac_compile) 2>&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } 2>conftest.err; then
25249 libobjs=conftest.$ac_objext
25251 wl=$lt_prog_compiler_wl_GCJ
25252 pic_flag=$lt_prog_compiler_pic_GCJ
25258 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25259 allow_undefined_flag_GCJ=
25260 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25261 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }
25266 archive_cmds_need_lc_GCJ=no
25268 archive_cmds_need_lc_GCJ=yes
25270 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25272 cat conftest.err 1>&5
25275 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25276 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25283 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25284 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25285 library_names_spec=
25286 libname_spec='lib$name'
25290 postuninstall_cmds=
25294 shlibpath_overrides_runpath=unknown
25296 dynamic_linker="$host_os ld.so"
25297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25298 if test "$GCC" = yes; then
25299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25300 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25301 # if the path contains ";" then we assume it to be the separator
25302 # otherwise default to the standard path separator (i.e. ":") - it is
25303 # assumed that no part of a normal pathname contains ";" but that should
25304 # okay in the real world where ";" in dirpaths is itself problematic.
25305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25312 need_lib_prefix=unknown
25313 hardcode_into_libs=no
25315 # when you set need_version to no, make sure it does not cause -set_version
25316 # flags to be left without arguments
25317 need_version=unknown
25322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25323 shlibpath_var=LIBPATH
25325 # AIX 3 has no versioning support, so we append a major version to the name.
25326 soname_spec='${libname}${release}${shared_ext}$major'
25333 hardcode_into_libs=yes
25334 if test "$host_cpu" = ia64; then
25335 # AIX 5 supports IA64
25336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25337 shlibpath_var=LD_LIBRARY_PATH
25339 # With GCC up to 2.95.x, collect2 would create an import file
25340 # for dependence libraries. The import file would start with
25341 # the line `#! .'. This would cause the generated library to
25342 # depend on `.', always an invalid library. This was fixed in
25343 # development snapshots of GCC prior to 3.0.
25345 aix4 | aix4.[01] | aix4.[01].*)
25346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25351 can_build_shared=no
25355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25356 # soname into executable. Probably we can add versioning support to
25357 # collect2, so additional links can be useful in future.
25358 if test "$aix_use_runtimelinking" = yes; then
25359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25360 # instead of lib<name>.a to let people know that these are not
25361 # typical AIX shared libraries.
25362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25364 # We preserve .a as extension for shared libraries through AIX4.2
25365 # and later when we are not doing run time linking.
25366 library_names_spec='${libname}${release}.a $libname.a'
25367 soname_spec='${libname}${release}${shared_ext}$major'
25369 shlibpath_var=LIBPATH
25374 library_names_spec='$libname.ixlibrary $libname.a'
25375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25376 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'
25380 library_names_spec='${libname}${shared_ext}'
25381 dynamic_linker="$host_os ld.so"
25382 shlibpath_var=LIBRARY_PATH
25388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25389 soname_spec='${libname}${release}${shared_ext}$major'
25390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25391 shlibpath_var=LD_LIBRARY_PATH
25392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25394 # the default ld.so.conf also contains /usr/contrib/lib and
25395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25396 # libtool to hard-code these into programs
25399 cygwin* | mingw* | pw32*)
25400 version_type=windows
25405 case $GCC,$host_os in
25406 yes,cygwin* | yes,mingw* | yes,pw32*)
25407 library_names_spec='$libname.dll.a'
25408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25409 postinstall_cmds='base_file=`basename \${file}`~
25410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25411 dldir=$destdir/`dirname \$dlpath`~
25412 test -d \$dldir || mkdir -p \$dldir~
25413 $install_prog $dir/$dlname \$dldir/$dlname~
25414 chmod a+x \$dldir/$dlname'
25415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25416 dlpath=$dir/\$dldll~
25418 shlibpath_overrides_runpath=yes
25422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25427 # MinGW DLLs use traditional 'lib' prefix
25428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25430 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25431 # It is most probably a Windows format PATH printed by
25432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25433 # path with ; separators, and with drive letters. We can handle the
25434 # drive letters (cygwin fileutils understands them), so leave them,
25435 # especially as we might pass files found there to a mingw objdump,
25436 # which wouldn't understand a cygwinified path. Ahh.
25437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25443 # pw32 DLLs use 'pw' prefix rather than 'lib'
25444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25453 dynamic_linker='Win32 ld.exe'
25454 # FIXME: first we should search . and the directory the executable is in
25458 darwin* | rhapsody*)
25459 dynamic_linker="$host_os dyld"
25460 version_type=darwin
25463 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25464 soname_spec='${libname}${release}${major}$shared_ext'
25465 shlibpath_overrides_runpath=yes
25466 shlibpath_var=DYLD_LIBRARY_PATH
25467 shrext_cmds='.dylib'
25468 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25469 if test "$GCC" = yes; then
25470 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"`
25472 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25482 soname_spec='${libname}${release}${shared_ext}$major'
25483 shlibpath_var=LD_LIBRARY_PATH
25494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25495 soname_spec='${libname}${release}${shared_ext}$major'
25496 shlibpath_var=LD_LIBRARY_PATH
25497 shlibpath_overrides_runpath=no
25498 hardcode_into_libs=yes
25499 dynamic_linker='GNU ld.so'
25502 freebsd* | dragonfly*)
25503 # DragonFly does not have aout. When/if they implement a new
25504 # versioning mechanism, adjust this.
25505 if test -x /usr/bin/objformat; then
25506 objformat=`/usr/bin/objformat`
25509 freebsd[123]*) objformat=aout ;;
25510 *) objformat=elf ;;
25513 version_type=freebsd-$objformat
25514 case $version_type in
25516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25525 shlibpath_var=LD_LIBRARY_PATH
25528 shlibpath_overrides_runpath=yes
25530 freebsd3.[01]* | freebsdelf3.[01]*)
25531 shlibpath_overrides_runpath=yes
25532 hardcode_into_libs=yes
25534 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25535 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25536 shlibpath_overrides_runpath=no
25537 hardcode_into_libs=yes
25539 freebsd*) # from 4.6 on
25540 shlibpath_overrides_runpath=yes
25541 hardcode_into_libs=yes
25550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25551 soname_spec='${libname}${release}${shared_ext}$major'
25552 shlibpath_var=LD_LIBRARY_PATH
25553 hardcode_into_libs=yes
25556 hpux9* | hpux10* | hpux11*)
25557 # Give a soname corresponding to the major version so that dld.sl refuses to
25558 # link against other versions.
25565 hardcode_into_libs=yes
25566 dynamic_linker="$host_os dld.so"
25567 shlibpath_var=LD_LIBRARY_PATH
25568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570 soname_spec='${libname}${release}${shared_ext}$major'
25571 if test "X$HPUX_IA64_MODE" = X32; then
25572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25580 hardcode_into_libs=yes
25581 dynamic_linker="$host_os dld.sl"
25582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25585 soname_spec='${libname}${release}${shared_ext}$major'
25586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25591 dynamic_linker="$host_os dld.sl"
25592 shlibpath_var=SHLIB_PATH
25593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25595 soname_spec='${libname}${release}${shared_ext}$major'
25598 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25599 postinstall_cmds='chmod 555 $lib'
25606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25607 soname_spec='${libname}${release}${shared_ext}$major'
25608 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25609 shlibpath_var=LD_LIBRARY_PATH
25610 shlibpath_overrides_runpath=no
25611 hardcode_into_libs=yes
25614 irix5* | irix6* | nonstopux*)
25616 nonstopux*) version_type=nonstopux ;;
25618 if test "$lt_cv_prog_gnu_ld" = yes; then
25626 soname_spec='${libname}${release}${shared_ext}$major'
25627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25629 irix5* | nonstopux*)
25630 libsuff= shlibsuff=
25633 case $LD in # libtool.m4 will add one of these switches to LD
25634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25635 libsuff= shlibsuff= libmagic=32-bit;;
25636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25637 libsuff=32 shlibsuff=N32 libmagic=N32;;
25638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25639 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25640 *) libsuff= shlibsuff= libmagic=never-match;;
25644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25645 shlibpath_overrides_runpath=no
25646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25648 hardcode_into_libs=yes
25651 # No shared lib support for Linux oldld, aout, or coff.
25652 linux*oldld* | linux*aout* | linux*coff*)
25656 # This must be Linux ELF.
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25664 shlibpath_var=LD_LIBRARY_PATH
25665 shlibpath_overrides_runpath=no
25666 # This implies no fast_install, which is unacceptable.
25667 # Some rework will be needed to allow for fast_install
25668 # before this can be enabled.
25669 hardcode_into_libs=yes
25671 # Append ld.so.conf contents to the search path
25672 if test -f /etc/ld.so.conf; then
25673 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' ' '`
25674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25677 # We used to test for /lib/ld.so.1 and disable shared libraries on
25678 # powerpc, because MkLinux only supported shared libraries with the
25679 # GNU dynamic linker. Since this was broken with cross compilers,
25680 # most powerpc-linux boxes support dynamic linking these days and
25681 # people can always --disable-shared, the test was removed, and we
25682 # assume the GNU/Linux dynamic linker is in use.
25683 dynamic_linker='GNU/Linux ld.so'
25690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25691 soname_spec='${libname}${release}${shared_ext}$major'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=no
25694 hardcode_into_libs=yes
25695 dynamic_linker='GNU ld.so'
25702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25705 dynamic_linker='NetBSD (a.out) ld.so'
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25708 soname_spec='${libname}${release}${shared_ext}$major'
25709 dynamic_linker='NetBSD ld.elf_so'
25711 shlibpath_var=LD_LIBRARY_PATH
25712 shlibpath_overrides_runpath=yes
25713 hardcode_into_libs=yes
25718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25719 shlibpath_var=LD_LIBRARY_PATH
25720 shlibpath_overrides_runpath=yes
25727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25728 soname_spec='${libname}${release}${shared_ext}$major'
25729 shlibpath_var=LD_LIBRARY_PATH
25730 shlibpath_overrides_runpath=yes
25735 sys_lib_dlsearch_path_spec="/usr/lib"
25737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25740 *) need_version=no ;;
25742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25744 shlibpath_var=LD_LIBRARY_PATH
25745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25747 openbsd2.[89] | openbsd2.[89].*)
25748 shlibpath_overrides_runpath=no
25751 shlibpath_overrides_runpath=yes
25755 shlibpath_overrides_runpath=yes
25760 libname_spec='$name'
25763 library_names_spec='$libname${shared_ext} $libname.a'
25764 dynamic_linker='OS/2 ld.exe'
25765 shlibpath_var=LIBPATH
25768 osf3* | osf4* | osf5*)
25772 soname_spec='${libname}${release}${shared_ext}$major'
25773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25774 shlibpath_var=LD_LIBRARY_PATH
25775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25784 soname_spec='${libname}${release}${shared_ext}$major'
25785 shlibpath_var=LD_LIBRARY_PATH
25786 shlibpath_overrides_runpath=yes
25787 hardcode_into_libs=yes
25788 # ldd complains unless libraries are executable
25789 postinstall_cmds='chmod +x $lib'
25794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25795 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25796 shlibpath_var=LD_LIBRARY_PATH
25797 shlibpath_overrides_runpath=yes
25798 if test "$with_gnu_ld" = yes; then
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25807 soname_spec='${libname}${release}${shared_ext}$major'
25808 shlibpath_var=LD_LIBRARY_PATH
25809 case $host_vendor in
25811 shlibpath_overrides_runpath=no
25813 export_dynamic_flag_spec='${wl}-Blargedynsym'
25814 runpath_var=LD_RUN_PATH
25822 shlibpath_overrides_runpath=no
25823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25829 if test -d /usr/nec ;then
25831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25832 soname_spec='$libname${shared_ext}.$major'
25833 shlibpath_var=LD_LIBRARY_PATH
25837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25838 version_type=freebsd-elf
25841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25842 soname_spec='${libname}${release}${shared_ext}$major'
25843 shlibpath_var=LD_LIBRARY_PATH
25844 hardcode_into_libs=yes
25845 if test "$with_gnu_ld" = yes; then
25846 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25847 shlibpath_overrides_runpath=no
25849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25850 shlibpath_overrides_runpath=yes
25853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25857 sys_lib_dlsearch_path_spec='/usr/lib'
25862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25863 soname_spec='${libname}${release}${shared_ext}$major'
25864 shlibpath_var=LD_LIBRARY_PATH
25871 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25872 echo "${ECHO_T}$dynamic_linker" >&6; }
25873 test "$dynamic_linker" = no && can_build_shared=no
25875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25876 if test "$GCC" = yes; then
25877 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25880 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25882 hardcode_action_GCJ=
25883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25884 test -n "$runpath_var_GCJ" || \
25885 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25887 # We can hardcode non-existant directories.
25888 if test "$hardcode_direct_GCJ" != no &&
25889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25890 # have to relink, otherwise we might link with an installed library
25891 # when we should be linking with a yet-to-be-installed one
25892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25893 test "$hardcode_minus_L_GCJ" != no; then
25894 # Linking always hardcodes the temporary library directory.
25895 hardcode_action_GCJ=relink
25897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25898 hardcode_action_GCJ=immediate
25901 # We cannot hardcode anything, or else we can only hardcode existing
25903 hardcode_action_GCJ=unsupported
25905 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25906 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25908 if test "$hardcode_action_GCJ" = relink; then
25909 # Fast installation is not supported
25910 enable_fast_install=no
25911 elif test "$shlibpath_overrides_runpath" = yes ||
25912 test "$enable_shared" = no; then
25913 # Fast installation is not necessary
25914 enable_fast_install=needless
25918 # The else clause should only fire when bootstrapping the
25919 # libtool distribution, otherwise you forgot to ship ltmain.sh
25920 # with your package, and you will get complaints that there are
25921 # no rules to generate ltmain.sh.
25922 if test -f "$ltmain"; then
25923 # See if we are running on zsh, and set the options which allow our commands through
25924 # without removal of \ escapes.
25925 if test -n "${ZSH_VERSION+set}" ; then
25926 setopt NO_GLOB_SUBST
25928 # Now quote all the things that may contain metacharacters while being
25929 # careful not to overquote the AC_SUBSTed values. We take copies of the
25930 # variables and quote the copies for generation of the libtool script.
25931 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25933 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25934 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25935 deplibs_check_method reload_flag reload_cmds need_locks \
25936 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25937 lt_cv_sys_global_symbol_to_c_name_address \
25938 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25939 old_postinstall_cmds old_postuninstall_cmds \
25943 lt_prog_compiler_wl_GCJ \
25944 lt_prog_compiler_pic_GCJ \
25945 lt_prog_compiler_static_GCJ \
25946 lt_prog_compiler_no_builtin_flag_GCJ \
25947 export_dynamic_flag_spec_GCJ \
25948 thread_safe_flag_spec_GCJ \
25949 whole_archive_flag_spec_GCJ \
25950 enable_shared_with_static_runtimes_GCJ \
25951 old_archive_cmds_GCJ \
25952 old_archive_from_new_cmds_GCJ \
25953 predep_objects_GCJ \
25954 postdep_objects_GCJ \
25957 compiler_lib_search_path_GCJ \
25959 archive_expsym_cmds_GCJ \
25960 postinstall_cmds_GCJ \
25961 postuninstall_cmds_GCJ \
25962 old_archive_from_expsyms_cmds_GCJ \
25963 allow_undefined_flag_GCJ \
25964 no_undefined_flag_GCJ \
25965 export_symbols_cmds_GCJ \
25966 hardcode_libdir_flag_spec_GCJ \
25967 hardcode_libdir_flag_spec_ld_GCJ \
25968 hardcode_libdir_separator_GCJ \
25969 hardcode_automatic_GCJ \
25971 module_expsym_cmds_GCJ \
25972 lt_cv_prog_compiler_c_o_GCJ \
25973 exclude_expsyms_GCJ \
25974 include_expsyms_GCJ; do
25977 old_archive_cmds_GCJ | \
25978 old_archive_from_new_cmds_GCJ | \
25979 archive_cmds_GCJ | \
25980 archive_expsym_cmds_GCJ | \
25981 module_cmds_GCJ | \
25982 module_expsym_cmds_GCJ | \
25983 old_archive_from_expsyms_cmds_GCJ | \
25984 export_symbols_cmds_GCJ | \
25985 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25986 postinstall_cmds | postuninstall_cmds | \
25987 old_postinstall_cmds | old_postuninstall_cmds | \
25988 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25989 # Double-quote double-evaled strings.
25990 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25999 *'\$0 --fallback-echo"')
26000 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26006 cat <<__EOF__ >> "$cfgfile"
26007 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26009 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26011 # Shell to use when invoking shell scripts.
26014 # Whether or not to build shared libraries.
26015 build_libtool_libs=$enable_shared
26017 # Whether or not to build static libraries.
26018 build_old_libs=$enable_static
26020 # Whether or not to add -lc for building shared libraries.
26021 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26023 # Whether or not to disallow shared libs when runtime libs are static
26024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26026 # Whether or not to optimize for fast installation.
26027 fast_install=$enable_fast_install
26030 host_alias=$host_alias
26034 # The build system.
26035 build_alias=$build_alias
26039 # An echo program that does not interpret backslashes.
26044 AR_FLAGS=$lt_AR_FLAGS
26049 # LTCC compiler flags.
26050 LTCFLAGS=$lt_LTCFLAGS
26052 # A language-specific compiler.
26053 CC=$lt_compiler_GCJ
26055 # Is the compiler the GNU C compiler?
26061 # The linker used to build libraries.
26064 # Whether we need hard or soft links.
26067 # A BSD-compatible nm program.
26070 # A symbol stripping program
26073 # Used to examine libraries when file_magic_cmd begins "file"
26074 MAGIC_CMD=$MAGIC_CMD
26076 # Used on cygwin: DLL creation program.
26079 # Used on cygwin: object dumper.
26082 # Used on cygwin: assembler.
26085 # The name of the directory that contains temporary libtool files.
26088 # How to create reloadable object files.
26089 reload_flag=$lt_reload_flag
26090 reload_cmds=$lt_reload_cmds
26092 # How to pass a linker flag through the compiler.
26093 wl=$lt_lt_prog_compiler_wl_GCJ
26095 # Object file suffix (normally "o").
26096 objext="$ac_objext"
26098 # Old archive suffix (normally "a").
26101 # Shared library suffix (normally ".so").
26102 shrext_cmds='$shrext_cmds'
26104 # Executable file suffix (normally "").
26107 # Additional compiler flags for building library objects.
26108 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26111 # What is the maximum length of a command?
26112 max_cmd_len=$lt_cv_sys_max_cmd_len
26114 # Does compiler simultaneously support -c and -o options?
26115 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26117 # Must we lock files when doing compilation?
26118 need_locks=$lt_need_locks
26120 # Do we need the lib prefix for modules?
26121 need_lib_prefix=$need_lib_prefix
26123 # Do we need a version for libraries?
26124 need_version=$need_version
26126 # Whether dlopen is supported.
26127 dlopen_support=$enable_dlopen
26129 # Whether dlopen of programs is supported.
26130 dlopen_self=$enable_dlopen_self
26132 # Whether dlopen of statically linked programs is supported.
26133 dlopen_self_static=$enable_dlopen_self_static
26135 # Compiler flag to prevent dynamic linking.
26136 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26138 # Compiler flag to turn off builtin functions.
26139 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26141 # Compiler flag to allow reflexive dlopens.
26142 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26144 # Compiler flag to generate shared objects directly from archives.
26145 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26147 # Compiler flag to generate thread-safe objects.
26148 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26150 # Library versioning type.
26151 version_type=$version_type
26153 # Format of library name prefix.
26154 libname_spec=$lt_libname_spec
26156 # List of archive names. First name is the real one, the rest are links.
26157 # The last name is the one that the linker finds with -lNAME.
26158 library_names_spec=$lt_library_names_spec
26160 # The coded name of the library, if different from the real name.
26161 soname_spec=$lt_soname_spec
26163 # Commands used to build and install an old-style archive.
26165 old_archive_cmds=$lt_old_archive_cmds_GCJ
26166 old_postinstall_cmds=$lt_old_postinstall_cmds
26167 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26169 # Create an old-style archive from a shared archive.
26170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26172 # Create a temporary old-style archive to link instead of a shared archive.
26173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26175 # Commands used to build and install a shared archive.
26176 archive_cmds=$lt_archive_cmds_GCJ
26177 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26178 postinstall_cmds=$lt_postinstall_cmds
26179 postuninstall_cmds=$lt_postuninstall_cmds
26181 # Commands used to build a loadable module (assumed same as above if empty)
26182 module_cmds=$lt_module_cmds_GCJ
26183 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26185 # Commands to strip libraries.
26186 old_striplib=$lt_old_striplib
26187 striplib=$lt_striplib
26189 # Dependencies to place before the objects being linked to create a
26191 predep_objects=$lt_predep_objects_GCJ
26193 # Dependencies to place after the objects being linked to create a
26195 postdep_objects=$lt_postdep_objects_GCJ
26197 # Dependencies to place before the objects being linked to create a
26199 predeps=$lt_predeps_GCJ
26201 # Dependencies to place after the objects being linked to create a
26203 postdeps=$lt_postdeps_GCJ
26205 # The library search path used internally by the compiler when linking
26206 # a shared library.
26207 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26209 # Method to check whether dependent libraries are shared objects.
26210 deplibs_check_method=$lt_deplibs_check_method
26212 # Command to use when deplibs_check_method == file_magic.
26213 file_magic_cmd=$lt_file_magic_cmd
26215 # Flag that allows shared libraries with undefined symbols to be built.
26216 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26218 # Flag that forces no undefined symbols.
26219 no_undefined_flag=$lt_no_undefined_flag_GCJ
26221 # Commands used to finish a libtool library installation in a directory.
26222 finish_cmds=$lt_finish_cmds
26224 # Same as above, but a single script fragment to be evaled but not shown.
26225 finish_eval=$lt_finish_eval
26227 # Take the output of nm and produce a listing of raw symbols and C names.
26228 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26230 # Transform the output of nm in a proper C declaration
26231 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26233 # Transform the output of nm in a C name address pair
26234 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26236 # This is the shared library runtime path variable.
26237 runpath_var=$runpath_var
26239 # This is the shared library path variable.
26240 shlibpath_var=$shlibpath_var
26242 # Is shlibpath searched before the hard-coded library search path?
26243 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26245 # How to hardcode a shared library path into an executable.
26246 hardcode_action=$hardcode_action_GCJ
26248 # Whether we should hardcode library paths into libraries.
26249 hardcode_into_libs=$hardcode_into_libs
26251 # Flag to hardcode \$libdir into a binary during linking.
26252 # This must work even if \$libdir does not exist.
26253 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26255 # If ld is used when linking, flag to hardcode \$libdir into
26256 # a binary during linking. This must work even if \$libdir does
26258 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26260 # Whether we need a single -rpath flag with a separated argument.
26261 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26263 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26264 # resulting binary.
26265 hardcode_direct=$hardcode_direct_GCJ
26267 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26268 # resulting binary.
26269 hardcode_minus_L=$hardcode_minus_L_GCJ
26271 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26272 # the resulting binary.
26273 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26275 # Set to yes if building a shared library automatically hardcodes DIR into the library
26276 # and all subsequent libraries and executables linked against it.
26277 hardcode_automatic=$hardcode_automatic_GCJ
26279 # Variables whose values should be saved in libtool wrapper scripts and
26280 # restored at relink time.
26281 variables_saved_for_relink="$variables_saved_for_relink"
26283 # Whether libtool must link a program against all its dependency libraries.
26284 link_all_deplibs=$link_all_deplibs_GCJ
26286 # Compile-time system search path for libraries
26287 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26289 # Run-time system search path for libraries
26290 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26292 # Fix the shell variable \$srcfile for the compiler.
26293 fix_srcfile_path="$fix_srcfile_path_GCJ"
26295 # Set to yes if exported symbols are required.
26296 always_export_symbols=$always_export_symbols_GCJ
26298 # The commands to list exported symbols.
26299 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26301 # The commands to extract the exported symbol list from a shared archive.
26302 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26304 # Symbols that should not be listed in the preloaded symbols.
26305 exclude_expsyms=$lt_exclude_expsyms_GCJ
26307 # Symbols that must always be exported.
26308 include_expsyms=$lt_include_expsyms_GCJ
26310 # ### END LIBTOOL TAG CONFIG: $tagname
26316 # If there is no Makefile yet, we rely on a make rule to execute
26317 # `config.status --recheck' to rerun these tests and create the
26318 # libtool script then.
26319 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26320 if test -f "$ltmain_in"; then
26321 test -f Makefile && make "$ltmain"
26327 ac_cpp='$CPP $CPPFLAGS'
26328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26341 ac_cpp='$CPP $CPPFLAGS'
26342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26347 # Source file extension for RC test sources.
26350 # Object file extension for compiled RC test sources.
26354 # Code to be used in simple compile tests
26355 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26357 # Code to be used in simple link tests
26358 lt_simple_link_test_code="$lt_simple_compile_test_code"
26360 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26362 # If no C compiler was specified, use CC.
26365 # If no C compiler flags were specified, use CFLAGS.
26366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26368 # Allow CC to be a program name with arguments.
26372 # save warnings/boilerplate of simple test code
26373 ac_outfile=conftest.$ac_objext
26374 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26376 _lt_compiler_boilerplate=`cat conftest.err`
26379 ac_outfile=conftest.$ac_objext
26380 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26382 _lt_linker_boilerplate=`cat conftest.err`
26386 # Allow CC to be a program name with arguments.
26391 for cc_temp in $compiler""; do
26393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26401 lt_cv_prog_compiler_c_o_RC=yes
26403 # The else clause should only fire when bootstrapping the
26404 # libtool distribution, otherwise you forgot to ship ltmain.sh
26405 # with your package, and you will get complaints that there are
26406 # no rules to generate ltmain.sh.
26407 if test -f "$ltmain"; then
26408 # See if we are running on zsh, and set the options which allow our commands through
26409 # without removal of \ escapes.
26410 if test -n "${ZSH_VERSION+set}" ; then
26411 setopt NO_GLOB_SUBST
26413 # Now quote all the things that may contain metacharacters while being
26414 # careful not to overquote the AC_SUBSTed values. We take copies of the
26415 # variables and quote the copies for generation of the libtool script.
26416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26420 deplibs_check_method reload_flag reload_cmds need_locks \
26421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26422 lt_cv_sys_global_symbol_to_c_name_address \
26423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26424 old_postinstall_cmds old_postuninstall_cmds \
26428 lt_prog_compiler_wl_RC \
26429 lt_prog_compiler_pic_RC \
26430 lt_prog_compiler_static_RC \
26431 lt_prog_compiler_no_builtin_flag_RC \
26432 export_dynamic_flag_spec_RC \
26433 thread_safe_flag_spec_RC \
26434 whole_archive_flag_spec_RC \
26435 enable_shared_with_static_runtimes_RC \
26436 old_archive_cmds_RC \
26437 old_archive_from_new_cmds_RC \
26438 predep_objects_RC \
26439 postdep_objects_RC \
26442 compiler_lib_search_path_RC \
26444 archive_expsym_cmds_RC \
26445 postinstall_cmds_RC \
26446 postuninstall_cmds_RC \
26447 old_archive_from_expsyms_cmds_RC \
26448 allow_undefined_flag_RC \
26449 no_undefined_flag_RC \
26450 export_symbols_cmds_RC \
26451 hardcode_libdir_flag_spec_RC \
26452 hardcode_libdir_flag_spec_ld_RC \
26453 hardcode_libdir_separator_RC \
26454 hardcode_automatic_RC \
26456 module_expsym_cmds_RC \
26457 lt_cv_prog_compiler_c_o_RC \
26458 exclude_expsyms_RC \
26459 include_expsyms_RC; do
26462 old_archive_cmds_RC | \
26463 old_archive_from_new_cmds_RC | \
26464 archive_cmds_RC | \
26465 archive_expsym_cmds_RC | \
26467 module_expsym_cmds_RC | \
26468 old_archive_from_expsyms_cmds_RC | \
26469 export_symbols_cmds_RC | \
26470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26471 postinstall_cmds | postuninstall_cmds | \
26472 old_postinstall_cmds | old_postuninstall_cmds | \
26473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26474 # Double-quote double-evaled strings.
26475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26484 *'\$0 --fallback-echo"')
26485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26491 cat <<__EOF__ >> "$cfgfile"
26492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26496 # Shell to use when invoking shell scripts.
26499 # Whether or not to build shared libraries.
26500 build_libtool_libs=$enable_shared
26502 # Whether or not to build static libraries.
26503 build_old_libs=$enable_static
26505 # Whether or not to add -lc for building shared libraries.
26506 build_libtool_need_lc=$archive_cmds_need_lc_RC
26508 # Whether or not to disallow shared libs when runtime libs are static
26509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26511 # Whether or not to optimize for fast installation.
26512 fast_install=$enable_fast_install
26515 host_alias=$host_alias
26519 # The build system.
26520 build_alias=$build_alias
26524 # An echo program that does not interpret backslashes.
26529 AR_FLAGS=$lt_AR_FLAGS
26534 # LTCC compiler flags.
26535 LTCFLAGS=$lt_LTCFLAGS
26537 # A language-specific compiler.
26540 # Is the compiler the GNU C compiler?
26546 # The linker used to build libraries.
26549 # Whether we need hard or soft links.
26552 # A BSD-compatible nm program.
26555 # A symbol stripping program
26558 # Used to examine libraries when file_magic_cmd begins "file"
26559 MAGIC_CMD=$MAGIC_CMD
26561 # Used on cygwin: DLL creation program.
26564 # Used on cygwin: object dumper.
26567 # Used on cygwin: assembler.
26570 # The name of the directory that contains temporary libtool files.
26573 # How to create reloadable object files.
26574 reload_flag=$lt_reload_flag
26575 reload_cmds=$lt_reload_cmds
26577 # How to pass a linker flag through the compiler.
26578 wl=$lt_lt_prog_compiler_wl_RC
26580 # Object file suffix (normally "o").
26581 objext="$ac_objext"
26583 # Old archive suffix (normally "a").
26586 # Shared library suffix (normally ".so").
26587 shrext_cmds='$shrext_cmds'
26589 # Executable file suffix (normally "").
26592 # Additional compiler flags for building library objects.
26593 pic_flag=$lt_lt_prog_compiler_pic_RC
26596 # What is the maximum length of a command?
26597 max_cmd_len=$lt_cv_sys_max_cmd_len
26599 # Does compiler simultaneously support -c and -o options?
26600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26602 # Must we lock files when doing compilation?
26603 need_locks=$lt_need_locks
26605 # Do we need the lib prefix for modules?
26606 need_lib_prefix=$need_lib_prefix
26608 # Do we need a version for libraries?
26609 need_version=$need_version
26611 # Whether dlopen is supported.
26612 dlopen_support=$enable_dlopen
26614 # Whether dlopen of programs is supported.
26615 dlopen_self=$enable_dlopen_self
26617 # Whether dlopen of statically linked programs is supported.
26618 dlopen_self_static=$enable_dlopen_self_static
26620 # Compiler flag to prevent dynamic linking.
26621 link_static_flag=$lt_lt_prog_compiler_static_RC
26623 # Compiler flag to turn off builtin functions.
26624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26626 # Compiler flag to allow reflexive dlopens.
26627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26629 # Compiler flag to generate shared objects directly from archives.
26630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26632 # Compiler flag to generate thread-safe objects.
26633 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26635 # Library versioning type.
26636 version_type=$version_type
26638 # Format of library name prefix.
26639 libname_spec=$lt_libname_spec
26641 # List of archive names. First name is the real one, the rest are links.
26642 # The last name is the one that the linker finds with -lNAME.
26643 library_names_spec=$lt_library_names_spec
26645 # The coded name of the library, if different from the real name.
26646 soname_spec=$lt_soname_spec
26648 # Commands used to build and install an old-style archive.
26650 old_archive_cmds=$lt_old_archive_cmds_RC
26651 old_postinstall_cmds=$lt_old_postinstall_cmds
26652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26654 # Create an old-style archive from a shared archive.
26655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26657 # Create a temporary old-style archive to link instead of a shared archive.
26658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26660 # Commands used to build and install a shared archive.
26661 archive_cmds=$lt_archive_cmds_RC
26662 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26663 postinstall_cmds=$lt_postinstall_cmds
26664 postuninstall_cmds=$lt_postuninstall_cmds
26666 # Commands used to build a loadable module (assumed same as above if empty)
26667 module_cmds=$lt_module_cmds_RC
26668 module_expsym_cmds=$lt_module_expsym_cmds_RC
26670 # Commands to strip libraries.
26671 old_striplib=$lt_old_striplib
26672 striplib=$lt_striplib
26674 # Dependencies to place before the objects being linked to create a
26676 predep_objects=$lt_predep_objects_RC
26678 # Dependencies to place after the objects being linked to create a
26680 postdep_objects=$lt_postdep_objects_RC
26682 # Dependencies to place before the objects being linked to create a
26684 predeps=$lt_predeps_RC
26686 # Dependencies to place after the objects being linked to create a
26688 postdeps=$lt_postdeps_RC
26690 # The library search path used internally by the compiler when linking
26691 # a shared library.
26692 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26694 # Method to check whether dependent libraries are shared objects.
26695 deplibs_check_method=$lt_deplibs_check_method
26697 # Command to use when deplibs_check_method == file_magic.
26698 file_magic_cmd=$lt_file_magic_cmd
26700 # Flag that allows shared libraries with undefined symbols to be built.
26701 allow_undefined_flag=$lt_allow_undefined_flag_RC
26703 # Flag that forces no undefined symbols.
26704 no_undefined_flag=$lt_no_undefined_flag_RC
26706 # Commands used to finish a libtool library installation in a directory.
26707 finish_cmds=$lt_finish_cmds
26709 # Same as above, but a single script fragment to be evaled but not shown.
26710 finish_eval=$lt_finish_eval
26712 # Take the output of nm and produce a listing of raw symbols and C names.
26713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26715 # Transform the output of nm in a proper C declaration
26716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26718 # Transform the output of nm in a C name address pair
26719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26721 # This is the shared library runtime path variable.
26722 runpath_var=$runpath_var
26724 # This is the shared library path variable.
26725 shlibpath_var=$shlibpath_var
26727 # Is shlibpath searched before the hard-coded library search path?
26728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26730 # How to hardcode a shared library path into an executable.
26731 hardcode_action=$hardcode_action_RC
26733 # Whether we should hardcode library paths into libraries.
26734 hardcode_into_libs=$hardcode_into_libs
26736 # Flag to hardcode \$libdir into a binary during linking.
26737 # This must work even if \$libdir does not exist.
26738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26740 # If ld is used when linking, flag to hardcode \$libdir into
26741 # a binary during linking. This must work even if \$libdir does
26743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26745 # Whether we need a single -rpath flag with a separated argument.
26746 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26749 # resulting binary.
26750 hardcode_direct=$hardcode_direct_RC
26752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26753 # resulting binary.
26754 hardcode_minus_L=$hardcode_minus_L_RC
26756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26757 # the resulting binary.
26758 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26760 # Set to yes if building a shared library automatically hardcodes DIR into the library
26761 # and all subsequent libraries and executables linked against it.
26762 hardcode_automatic=$hardcode_automatic_RC
26764 # Variables whose values should be saved in libtool wrapper scripts and
26765 # restored at relink time.
26766 variables_saved_for_relink="$variables_saved_for_relink"
26768 # Whether libtool must link a program against all its dependency libraries.
26769 link_all_deplibs=$link_all_deplibs_RC
26771 # Compile-time system search path for libraries
26772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26774 # Run-time system search path for libraries
26775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26777 # Fix the shell variable \$srcfile for the compiler.
26778 fix_srcfile_path="$fix_srcfile_path_RC"
26780 # Set to yes if exported symbols are required.
26781 always_export_symbols=$always_export_symbols_RC
26783 # The commands to list exported symbols.
26784 export_symbols_cmds=$lt_export_symbols_cmds_RC
26786 # The commands to extract the exported symbol list from a shared archive.
26787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26789 # Symbols that should not be listed in the preloaded symbols.
26790 exclude_expsyms=$lt_exclude_expsyms_RC
26792 # Symbols that must always be exported.
26793 include_expsyms=$lt_include_expsyms_RC
26795 # ### END LIBTOOL TAG CONFIG: $tagname
26801 # If there is no Makefile yet, we rely on a make rule to execute
26802 # `config.status --recheck' to rerun these tests and create the
26803 # libtool script then.
26804 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26805 if test -f "$ltmain_in"; then
26806 test -f Makefile && make "$ltmain"
26812 ac_cpp='$CPP $CPPFLAGS'
26813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26822 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26823 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26824 { (exit 1); exit 1; }; }
26828 # Append the new tag name to the list of available tags.
26829 if test -n "$tagname" ; then
26830 available_tags="$available_tags $tagname"
26836 # Now substitute the updated list of available tags.
26837 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26838 mv "${ofile}T" "$ofile"
26842 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26843 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26844 { (exit 1); exit 1; }; }
26850 # This can be used to rebuild libtool when needed
26851 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26853 # Always use our own libtool.
26854 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26856 # Prevent multiple expansion
26878 if test "$lt_cv_dlopen_self" = "yes" ; then
26880 cat >>confdefs.h <<\_ACEOF
26881 #define CAN_DLOPEN_SELF 1
26886 if test "$WITH_LLVMGCCDIR" = "default" ; then
26887 LLVMGCC="llvm-gcc${EXEEXT}"
26888 LLVMGXX="llvm-g++${EXEEXT}"
26889 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26890 set dummy $LLVMGCC; ac_word=$2
26891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26893 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26898 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26902 for as_dir in $PATH
26905 test -z "$as_dir" && as_dir=.
26906 for ac_exec_ext in '' $ac_executable_extensions; do
26907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26908 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26919 LLVMGCC=$ac_cv_path_LLVMGCC
26920 if test -n "$LLVMGCC"; then
26921 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26922 echo "${ECHO_T}$LLVMGCC" >&6; }
26924 { echo "$as_me:$LINENO: result: no" >&5
26925 echo "${ECHO_T}no" >&6; }
26929 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26930 set dummy $LLVMGXX; ac_word=$2
26931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26933 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26938 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26942 for as_dir in $PATH
26945 test -z "$as_dir" && as_dir=.
26946 for ac_exec_ext in '' $ac_executable_extensions; do
26947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26948 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26959 LLVMGXX=$ac_cv_path_LLVMGXX
26960 if test -n "$LLVMGXX"; then
26961 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26962 echo "${ECHO_T}$LLVMGXX" >&6; }
26964 { echo "$as_me:$LINENO: result: no" >&5
26965 echo "${ECHO_T}no" >&6; }
26970 if test -z "$LLVMGCC"; then
26971 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26973 if test -z "$LLVMGXX"; then
26974 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26982 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26983 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26996 if test "$GCC" != "yes" && test "$ICC" != "yes"
26998 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26999 echo "$as_me: error: gcc|icc required but not found" >&2;}
27000 { (exit 1); exit 1; }; }
27003 if test "$GXX" != "yes" && test "$IXX" != "yes"
27005 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27006 echo "$as_me: error: g++|icc required but not found" >&2;}
27007 { (exit 1); exit 1; }; }
27010 if test "$GCC" = "yes"
27012 cat >conftest.$ac_ext <<_ACEOF
27013 #if !defined(__GNUC__) || __GNUC__ < 3
27014 #error Unsupported GCC version
27018 rm -f conftest.$ac_objext
27019 if { (ac_try="$ac_compile"
27020 case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_compile") 2>conftest.er1
27027 grep -v '^ *+' conftest.er1 >conftest.err
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
27032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
27042 { ac_try='test -s conftest.$ac_objext'
27043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27057 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27058 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27059 { (exit 1); exit 1; }; }
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27065 if test -z "$llvm_cv_gnu_make_command"
27067 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27068 echo "$as_me: error: GNU Make required but not found" >&2;}
27069 { (exit 1); exit 1; }; }
27072 { echo "$as_me:$LINENO: result: ok" >&5
27073 echo "${ECHO_T}ok" >&6; }
27077 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27078 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27079 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27080 echo $ECHO_N "(cached) $ECHO_C" >&6
27082 ac_check_lib_save_LIBS=$LIBS
27084 cat >conftest.$ac_ext <<_ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h. */
27091 /* Override any GCC internal prototype to avoid an error.
27092 Use char because int might match the return type of a GCC
27093 builtin and then its argument prototype would still apply. */
27101 return elf_begin ();
27106 rm -f conftest.$ac_objext conftest$ac_exeext
27107 if { (ac_try="$ac_link"
27108 case "(($ac_try" in
27109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110 *) ac_try_echo=$ac_try;;
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113 (eval "$ac_link") 2>conftest.er1
27115 grep -v '^ *+' conftest.er1 >conftest.err
27117 cat conftest.err >&5
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } &&
27120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27121 { (case "(($ac_try" in
27122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123 *) ac_try_echo=$ac_try;;
27125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126 (eval "$ac_try") 2>&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest$ac_exeext'
27131 { (case "(($ac_try" in
27132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133 *) ac_try_echo=$ac_try;;
27135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27136 (eval "$ac_try") 2>&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; }; then
27140 ac_cv_lib_elf_elf_begin=yes
27142 echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27145 ac_cv_lib_elf_elf_begin=no
27148 rm -f core conftest.err conftest.$ac_objext \
27149 conftest$ac_exeext conftest.$ac_ext
27150 LIBS=$ac_check_lib_save_LIBS
27152 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27153 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27154 if test $ac_cv_lib_elf_elf_begin = yes; then
27155 cat >>confdefs.h <<_ACEOF
27156 #define HAVE_LIBELF 1
27164 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27165 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27166 if test "${ac_cv_lib_m_sin+set}" = set; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27169 ac_check_lib_save_LIBS=$LIBS
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27178 /* Override any GCC internal prototype to avoid an error.
27179 Use char because int might match the return type of a GCC
27180 builtin and then its argument prototype would still apply. */
27193 rm -f conftest.$ac_objext conftest$ac_exeext
27194 if { (ac_try="$ac_link"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_link") 2>conftest.er1
27202 grep -v '^ *+' conftest.er1 >conftest.err
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } &&
27207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; } &&
27217 { ac_try='test -s conftest$ac_exeext'
27218 { (case "(($ac_try" in
27219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220 *) ac_try_echo=$ac_try;;
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223 (eval "$ac_try") 2>&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227 ac_cv_lib_m_sin=yes
27229 echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27235 rm -f core conftest.err conftest.$ac_objext \
27236 conftest$ac_exeext conftest.$ac_ext
27237 LIBS=$ac_check_lib_save_LIBS
27239 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27240 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27241 if test $ac_cv_lib_m_sin = yes; then
27242 cat >>confdefs.h <<_ACEOF
27243 #define HAVE_LIBM 1
27250 if test "$llvm_cv_os_type" = "MingW" ; then
27252 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27253 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27254 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27255 echo $ECHO_N "(cached) $ECHO_C" >&6
27257 ac_check_lib_save_LIBS=$LIBS
27258 LIBS="-limagehlp $LIBS"
27259 cat >conftest.$ac_ext <<_ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h. */
27275 rm -f conftest.$ac_objext conftest$ac_exeext
27276 if { (ac_try="$ac_link"
27277 case "(($ac_try" in
27278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279 *) ac_try_echo=$ac_try;;
27281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282 (eval "$ac_link") 2>conftest.er1
27284 grep -v '^ *+' conftest.er1 >conftest.err
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } &&
27289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_try") 2>&5
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; } &&
27299 { ac_try='test -s conftest$ac_exeext'
27300 { (case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305 (eval "$ac_try") 2>&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ac_cv_lib_imagehlp_main=yes
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 ac_cv_lib_imagehlp_main=no
27317 rm -f core conftest.err conftest.$ac_objext \
27318 conftest$ac_exeext conftest.$ac_ext
27319 LIBS=$ac_check_lib_save_LIBS
27321 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27322 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27323 if test $ac_cv_lib_imagehlp_main = yes; then
27324 cat >>confdefs.h <<_ACEOF
27325 #define HAVE_LIBIMAGEHLP 1
27328 LIBS="-limagehlp $LIBS"
27333 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27334 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27335 if test "${ac_cv_lib_psapi_main+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27338 ac_check_lib_save_LIBS=$LIBS
27339 LIBS="-lpsapi $LIBS"
27340 cat >conftest.$ac_ext <<_ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (ac_try="$ac_link"
27358 case "(($ac_try" in
27359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360 *) ac_try_echo=$ac_try;;
27362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27363 (eval "$ac_link") 2>conftest.er1
27365 grep -v '^ *+' conftest.er1 >conftest.err
27367 cat conftest.err >&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } &&
27370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27371 { (case "(($ac_try" in
27372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373 *) ac_try_echo=$ac_try;;
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376 (eval "$ac_try") 2>&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; } &&
27380 { ac_try='test -s conftest$ac_exeext'
27381 { (case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386 (eval "$ac_try") 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; }; then
27390 ac_cv_lib_psapi_main=yes
27392 echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27395 ac_cv_lib_psapi_main=no
27398 rm -f core conftest.err conftest.$ac_objext \
27399 conftest$ac_exeext conftest.$ac_ext
27400 LIBS=$ac_check_lib_save_LIBS
27402 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27403 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27404 if test $ac_cv_lib_psapi_main = yes; then
27405 cat >>confdefs.h <<_ACEOF
27406 #define HAVE_LIBPSAPI 1
27409 LIBS="-lpsapi $LIBS"
27415 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27416 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27417 if test "${ac_cv_search_dlopen+set}" = set; then
27418 echo $ECHO_N "(cached) $ECHO_C" >&6
27420 ac_func_search_save_LIBS=$LIBS
27421 cat >conftest.$ac_ext <<_ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h. */
27428 /* Override any GCC internal prototype to avoid an error.
27429 Use char because int might match the return type of a GCC
27430 builtin and then its argument prototype would still apply. */
27443 for ac_lib in '' dl; do
27444 if test -z "$ac_lib"; then
27445 ac_res="none required"
27448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27450 rm -f conftest.$ac_objext conftest$ac_exeext
27451 if { (ac_try="$ac_link"
27452 case "(($ac_try" in
27453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454 *) ac_try_echo=$ac_try;;
27456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457 (eval "$ac_link") 2>conftest.er1
27459 grep -v '^ *+' conftest.er1 >conftest.err
27461 cat conftest.err >&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); } &&
27464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27465 { (case "(($ac_try" in
27466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467 *) ac_try_echo=$ac_try;;
27469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27470 (eval "$ac_try") 2>&5
27472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473 (exit $ac_status); }; } &&
27474 { ac_try='test -s conftest$ac_exeext'
27475 { (case "(($ac_try" in
27476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477 *) ac_try_echo=$ac_try;;
27479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_try") 2>&5
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
27484 ac_cv_search_dlopen=$ac_res
27486 echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27492 rm -f core conftest.err conftest.$ac_objext \
27494 if test "${ac_cv_search_dlopen+set}" = set; then
27498 if test "${ac_cv_search_dlopen+set}" = set; then
27501 ac_cv_search_dlopen=no
27503 rm conftest.$ac_ext
27504 LIBS=$ac_func_search_save_LIBS
27506 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27507 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27508 ac_res=$ac_cv_search_dlopen
27509 if test "$ac_res" != no; then
27510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27512 cat >>confdefs.h <<\_ACEOF
27513 #define HAVE_DLOPEN 1
27517 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27518 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27522 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27523 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27524 if test "${ac_cv_search_mallinfo+set}" = set; then
27525 echo $ECHO_N "(cached) $ECHO_C" >&6
27527 ac_func_search_save_LIBS=$LIBS
27528 cat >conftest.$ac_ext <<_ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h. */
27535 /* Override any GCC internal prototype to avoid an error.
27536 Use char because int might match the return type of a GCC
27537 builtin and then its argument prototype would still apply. */
27545 return mallinfo ();
27550 for ac_lib in '' malloc; do
27551 if test -z "$ac_lib"; then
27552 ac_res="none required"
27555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_link") 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; } &&
27581 { ac_try='test -s conftest$ac_exeext'
27582 { (case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_try") 2>&5
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
27591 ac_cv_search_mallinfo=$ac_res
27593 echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27599 rm -f core conftest.err conftest.$ac_objext \
27601 if test "${ac_cv_search_mallinfo+set}" = set; then
27605 if test "${ac_cv_search_mallinfo+set}" = set; then
27608 ac_cv_search_mallinfo=no
27610 rm conftest.$ac_ext
27611 LIBS=$ac_func_search_save_LIBS
27613 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27614 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27615 ac_res=$ac_cv_search_mallinfo
27616 if test "$ac_res" != no; then
27617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27619 cat >>confdefs.h <<\_ACEOF
27620 #define HAVE_MALLINFO 1
27626 if test "$ENABLE_THREADS" -eq 1 ; then
27628 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27629 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27630 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27631 echo $ECHO_N "(cached) $ECHO_C" >&6
27633 ac_check_lib_save_LIBS=$LIBS
27634 LIBS="-lpthread $LIBS"
27635 cat >conftest.$ac_ext <<_ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h. */
27642 /* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
27648 char pthread_mutex_init ();
27652 return pthread_mutex_init ();
27657 rm -f conftest.$ac_objext conftest$ac_exeext
27658 if { (ac_try="$ac_link"
27659 case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_link") 2>conftest.er1
27666 grep -v '^ *+' conftest.er1 >conftest.err
27668 cat conftest.err >&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); } &&
27671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27672 { (case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677 (eval "$ac_try") 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest$ac_exeext'
27682 { (case "(($ac_try" in
27683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684 *) ac_try_echo=$ac_try;;
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687 (eval "$ac_try") 2>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; }; then
27691 ac_cv_lib_pthread_pthread_mutex_init=yes
27693 echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27696 ac_cv_lib_pthread_pthread_mutex_init=no
27699 rm -f core conftest.err conftest.$ac_objext \
27700 conftest$ac_exeext conftest.$ac_ext
27701 LIBS=$ac_check_lib_save_LIBS
27703 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27704 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27705 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27706 cat >>confdefs.h <<_ACEOF
27707 #define HAVE_LIBPTHREAD 1
27710 LIBS="-lpthread $LIBS"
27714 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27715 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27716 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27719 ac_func_search_save_LIBS=$LIBS
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27727 /* Override any GCC internal prototype to avoid an error.
27728 Use char because int might match the return type of a GCC
27729 builtin and then its argument prototype would still apply. */
27733 char pthread_mutex_lock ();
27737 return pthread_mutex_lock ();
27742 for ac_lib in '' pthread; do
27743 if test -z "$ac_lib"; then
27744 ac_res="none required"
27747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27749 rm -f conftest.$ac_objext conftest$ac_exeext
27750 if { (ac_try="$ac_link"
27751 case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756 (eval "$ac_link") 2>conftest.er1
27758 grep -v '^ *+' conftest.er1 >conftest.err
27760 cat conftest.err >&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); } &&
27763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; } &&
27773 { ac_try='test -s conftest$ac_exeext'
27774 { (case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_try") 2>&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; }; then
27783 ac_cv_search_pthread_mutex_lock=$ac_res
27785 echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27791 rm -f core conftest.err conftest.$ac_objext \
27793 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27800 ac_cv_search_pthread_mutex_lock=no
27802 rm conftest.$ac_ext
27803 LIBS=$ac_func_search_save_LIBS
27805 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27806 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27807 ac_res=$ac_cv_search_pthread_mutex_lock
27808 if test "$ac_res" != no; then
27809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27811 cat >>confdefs.h <<\_ACEOF
27812 #define HAVE_PTHREAD_MUTEX_LOCK 1
27820 # Check whether --with-udis86 was given.
27821 if test "${with_udis86+set}" = set; then
27822 withval=$with_udis86;
27827 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27830 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27831 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27832 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27835 ac_check_lib_save_LIBS=$LIBS
27836 LIBS="-ludis86 $LIBS"
27837 cat >conftest.$ac_ext <<_ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27844 /* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27859 rm -f conftest.$ac_objext conftest$ac_exeext
27860 if { (ac_try="$ac_link"
27861 case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_link") 2>conftest.er1
27868 grep -v '^ *+' conftest.er1 >conftest.err
27870 cat conftest.err >&5
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); } &&
27873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27874 { (case "(($ac_try" in
27875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876 *) ac_try_echo=$ac_try;;
27878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879 (eval "$ac_try") 2>&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; } &&
27883 { ac_try='test -s conftest$ac_exeext'
27884 { (case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_try") 2>&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; }; then
27893 ac_cv_lib_udis86_ud_init=yes
27895 echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27898 ac_cv_lib_udis86_ud_init=no
27901 rm -f core conftest.err conftest.$ac_objext \
27902 conftest$ac_exeext conftest.$ac_ext
27903 LIBS=$ac_check_lib_save_LIBS
27905 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27906 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27907 if test $ac_cv_lib_udis86_ud_init = yes; then
27908 cat >>confdefs.h <<_ACEOF
27909 #define HAVE_LIBUDIS86 1
27912 LIBS="-ludis86 $LIBS"
27916 echo "Error! You need to have libudis86 around."
27928 cat >>confdefs.h <<_ACEOF
27929 #define USE_UDIS86 $USE_UDIS86
27939 ac_header_dirent=no
27940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27941 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27942 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27943 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27945 echo $ECHO_N "(cached) $ECHO_C" >&6
27947 cat >conftest.$ac_ext <<_ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h. */
27953 #include <sys/types.h>
27965 rm -f conftest.$ac_objext
27966 if { (ac_try="$ac_compile"
27967 case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972 (eval "$ac_compile") 2>conftest.er1
27974 grep -v '^ *+' conftest.er1 >conftest.err
27976 cat conftest.err >&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } &&
27979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27980 { (case "(($ac_try" in
27981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982 *) ac_try_echo=$ac_try;;
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985 (eval "$ac_try") 2>&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; } &&
27989 { ac_try='test -s conftest.$ac_objext'
27990 { (case "(($ac_try" in
27991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_try") 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999 eval "$as_ac_Header=yes"
28001 echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28004 eval "$as_ac_Header=no"
28007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 ac_res=`eval echo '${'$as_ac_Header'}'`
28010 { echo "$as_me:$LINENO: result: $ac_res" >&5
28011 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28013 cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28017 ac_header_dirent=$ac_hdr; break
28021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28022 if test $ac_header_dirent = dirent.h; then
28023 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28025 if test "${ac_cv_search_opendir+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 ac_func_search_save_LIBS=$LIBS
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28036 /* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28051 for ac_lib in '' dir; do
28052 if test -z "$ac_lib"; then
28053 ac_res="none required"
28056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_link") 2>conftest.er1
28067 grep -v '^ *+' conftest.er1 >conftest.err
28069 cat conftest.err >&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } &&
28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092 ac_cv_search_opendir=$ac_res
28094 echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28100 rm -f core conftest.err conftest.$ac_objext \
28102 if test "${ac_cv_search_opendir+set}" = set; then
28106 if test "${ac_cv_search_opendir+set}" = set; then
28109 ac_cv_search_opendir=no
28111 rm conftest.$ac_ext
28112 LIBS=$ac_func_search_save_LIBS
28114 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28115 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28116 ac_res=$ac_cv_search_opendir
28117 if test "$ac_res" != no; then
28118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28123 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28124 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28125 if test "${ac_cv_search_opendir+set}" = set; then
28126 echo $ECHO_N "(cached) $ECHO_C" >&6
28128 ac_func_search_save_LIBS=$LIBS
28129 cat >conftest.$ac_ext <<_ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h. */
28136 /* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
28151 for ac_lib in '' x; do
28152 if test -z "$ac_lib"; then
28153 ac_res="none required"
28156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (ac_try="$ac_link"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_link") 2>conftest.er1
28167 grep -v '^ *+' conftest.er1 >conftest.err
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } &&
28172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest$ac_exeext'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
28192 ac_cv_search_opendir=$ac_res
28194 echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28200 rm -f core conftest.err conftest.$ac_objext \
28202 if test "${ac_cv_search_opendir+set}" = set; then
28206 if test "${ac_cv_search_opendir+set}" = set; then
28209 ac_cv_search_opendir=no
28211 rm conftest.$ac_ext
28212 LIBS=$ac_func_search_save_LIBS
28214 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28215 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28216 ac_res=$ac_cv_search_opendir
28217 if test "$ac_res" != no; then
28218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28224 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28225 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28226 if test "${ac_cv_header_mmap_anon+set}" = set; then
28227 echo $ECHO_N "(cached) $ECHO_C" >&6
28230 ac_cpp='$CPP $CPPFLAGS'
28231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28235 cat >conftest.$ac_ext <<_ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h. */
28241 #include <sys/mman.h>
28242 #include <unistd.h>
28247 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28252 rm -f conftest.$ac_objext
28253 if { (ac_try="$ac_compile"
28254 case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_compile") 2>conftest.er1
28261 grep -v '^ *+' conftest.er1 >conftest.err
28263 cat conftest.err >&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); } &&
28266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28267 { (case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_try") 2>&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; } &&
28276 { ac_try='test -s conftest.$ac_objext'
28277 { (case "(($ac_try" in
28278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28279 *) ac_try_echo=$ac_try;;
28281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28282 (eval "$ac_try") 2>&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; }; then
28286 ac_cv_header_mmap_anon=yes
28288 echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28291 ac_cv_header_mmap_anon=no
28294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28296 ac_cpp='$CPP $CPPFLAGS'
28297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28303 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28304 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28305 if test "$ac_cv_header_mmap_anon" = yes; then
28307 cat >>confdefs.h <<\_ACEOF
28308 #define HAVE_MMAP_ANONYMOUS 1
28313 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28314 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28315 if test "${ac_cv_header_stat_broken+set}" = set; then
28316 echo $ECHO_N "(cached) $ECHO_C" >&6
28318 cat >conftest.$ac_ext <<_ACEOF
28321 cat confdefs.h >>conftest.$ac_ext
28322 cat >>conftest.$ac_ext <<_ACEOF
28323 /* end confdefs.h. */
28324 #include <sys/types.h>
28325 #include <sys/stat.h>
28327 #if defined S_ISBLK && defined S_IFDIR
28328 # if S_ISBLK (S_IFDIR)
28333 #if defined S_ISBLK && defined S_IFCHR
28334 # if S_ISBLK (S_IFCHR)
28339 #if defined S_ISLNK && defined S_IFREG
28340 # if S_ISLNK (S_IFREG)
28345 #if defined S_ISSOCK && defined S_IFREG
28346 # if S_ISSOCK (S_IFREG)
28352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28353 $EGREP "You lose" >/dev/null 2>&1; then
28354 ac_cv_header_stat_broken=yes
28356 ac_cv_header_stat_broken=no
28361 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28362 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28363 if test $ac_cv_header_stat_broken = yes; then
28365 cat >>confdefs.h <<\_ACEOF
28366 #define STAT_MACROS_BROKEN 1
28371 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28373 if test "${ac_cv_header_stdc+set}" = set; then
28374 echo $ECHO_N "(cached) $ECHO_C" >&6
28376 cat >conftest.$ac_ext <<_ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28382 #include <stdlib.h>
28383 #include <stdarg.h>
28384 #include <string.h>
28395 rm -f conftest.$ac_objext
28396 if { (ac_try="$ac_compile"
28397 case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_compile") 2>conftest.er1
28404 grep -v '^ *+' conftest.er1 >conftest.err
28406 cat conftest.err >&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
28409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410 { (case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_try") 2>&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; } &&
28419 { ac_try='test -s conftest.$ac_objext'
28420 { (case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_try") 2>&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_cv_header_stdc=yes
28431 echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28434 ac_cv_header_stdc=no
28437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28439 if test $ac_cv_header_stdc = yes; then
28440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28441 cat >conftest.$ac_ext <<_ACEOF
28444 cat confdefs.h >>conftest.$ac_ext
28445 cat >>conftest.$ac_ext <<_ACEOF
28446 /* end confdefs.h. */
28447 #include <string.h>
28450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28451 $EGREP "memchr" >/dev/null 2>&1; then
28454 ac_cv_header_stdc=no
28460 if test $ac_cv_header_stdc = yes; then
28461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28462 cat >conftest.$ac_ext <<_ACEOF
28465 cat confdefs.h >>conftest.$ac_ext
28466 cat >>conftest.$ac_ext <<_ACEOF
28467 /* end confdefs.h. */
28468 #include <stdlib.h>
28471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28472 $EGREP "free" >/dev/null 2>&1; then
28475 ac_cv_header_stdc=no
28481 if test $ac_cv_header_stdc = yes; then
28482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28483 if test "$cross_compiling" = yes; then
28486 cat >conftest.$ac_ext <<_ACEOF
28489 cat confdefs.h >>conftest.$ac_ext
28490 cat >>conftest.$ac_ext <<_ACEOF
28491 /* end confdefs.h. */
28493 #include <stdlib.h>
28494 #if ((' ' & 0x0FF) == 0x020)
28495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28498 # define ISLOWER(c) \
28499 (('a' <= (c) && (c) <= 'i') \
28500 || ('j' <= (c) && (c) <= 'r') \
28501 || ('s' <= (c) && (c) <= 'z'))
28502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28510 for (i = 0; i < 256; i++)
28511 if (XOR (islower (i), ISLOWER (i))
28512 || toupper (i) != TOUPPER (i))
28517 rm -f conftest$ac_exeext
28518 if { (ac_try="$ac_link"
28519 case "(($ac_try" in
28520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521 *) ac_try_echo=$ac_try;;
28523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28524 (eval "$ac_link") 2>&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28528 { (case "(($ac_try" in
28529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530 *) ac_try_echo=$ac_try;;
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533 (eval "$ac_try") 2>&5
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); }; }; then
28539 echo "$as_me: program exited with status $ac_status" >&5
28540 echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28543 ( exit $ac_status )
28544 ac_cv_header_stdc=no
28546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28552 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28553 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28554 if test $ac_cv_header_stdc = yes; then
28556 cat >>confdefs.h <<\_ACEOF
28557 #define STDC_HEADERS 1
28562 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28563 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28564 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28567 cat >conftest.$ac_ext <<_ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h. */
28573 #include <sys/types.h>
28574 #include <sys/wait.h>
28575 #ifndef WEXITSTATUS
28576 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28579 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28587 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28592 rm -f conftest.$ac_objext
28593 if { (ac_try="$ac_compile"
28594 case "(($ac_try" in
28595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596 *) ac_try_echo=$ac_try;;
28598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599 (eval "$ac_compile") 2>conftest.er1
28601 grep -v '^ *+' conftest.er1 >conftest.err
28603 cat conftest.err >&5
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); } &&
28606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28607 { (case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_try") 2>&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; } &&
28616 { ac_try='test -s conftest.$ac_objext'
28617 { (case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622 (eval "$ac_try") 2>&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 ac_cv_header_sys_wait_h=yes
28628 echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28631 ac_cv_header_sys_wait_h=no
28634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28636 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28637 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28638 if test $ac_cv_header_sys_wait_h = yes; then
28640 cat >>confdefs.h <<\_ACEOF
28641 #define HAVE_SYS_WAIT_H 1
28646 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28647 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28648 if test "${ac_cv_header_time+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28651 cat >conftest.$ac_ext <<_ACEOF
28654 cat confdefs.h >>conftest.$ac_ext
28655 cat >>conftest.$ac_ext <<_ACEOF
28656 /* end confdefs.h. */
28657 #include <sys/types.h>
28658 #include <sys/time.h>
28664 if ((struct tm *) 0)
28670 rm -f conftest.$ac_objext
28671 if { (ac_try="$ac_compile"
28672 case "(($ac_try" in
28673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674 *) ac_try_echo=$ac_try;;
28676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677 (eval "$ac_compile") 2>conftest.er1
28679 grep -v '^ *+' conftest.er1 >conftest.err
28681 cat conftest.err >&5
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } &&
28684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685 { (case "(($ac_try" in
28686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687 *) ac_try_echo=$ac_try;;
28689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690 (eval "$ac_try") 2>&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest.$ac_objext'
28695 { (case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_try") 2>&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
28704 ac_cv_header_time=yes
28706 echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28709 ac_cv_header_time=no
28712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28714 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28715 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28716 if test $ac_cv_header_time = yes; then
28718 cat >>confdefs.h <<\_ACEOF
28719 #define TIME_WITH_SYS_TIME 1
28731 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28738 echo $ECHO_N "(cached) $ECHO_C" >&6
28740 ac_res=`eval echo '${'$as_ac_Header'}'`
28741 { echo "$as_me:$LINENO: result: $ac_res" >&5
28742 echo "${ECHO_T}$ac_res" >&6; }
28744 # Is the header compilable?
28745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28747 cat >conftest.$ac_ext <<_ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h. */
28753 $ac_includes_default
28754 #include <$ac_header>
28756 rm -f conftest.$ac_objext
28757 if { (ac_try="$ac_compile"
28758 case "(($ac_try" in
28759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760 *) ac_try_echo=$ac_try;;
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763 (eval "$ac_compile") 2>conftest.er1
28765 grep -v '^ *+' conftest.er1 >conftest.err
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } &&
28770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28771 { (case "(($ac_try" in
28772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28773 *) ac_try_echo=$ac_try;;
28775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28776 (eval "$ac_try") 2>&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); }; } &&
28780 { ac_try='test -s conftest.$ac_objext'
28781 { (case "(($ac_try" in
28782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28783 *) ac_try_echo=$ac_try;;
28785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28786 (eval "$ac_try") 2>&5
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; }; then
28790 ac_header_compiler=yes
28792 echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28795 ac_header_compiler=no
28798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28800 echo "${ECHO_T}$ac_header_compiler" >&6; }
28802 # Is the header present?
28803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28811 #include <$ac_header>
28813 if { (ac_try="$ac_cpp conftest.$ac_ext"
28814 case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28821 grep -v '^ *+' conftest.er1 >conftest.err
28823 cat conftest.err >&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); } >/dev/null; then
28826 if test -s conftest.err; then
28827 ac_cpp_err=$ac_c_preproc_warn_flag
28828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28835 if test -z "$ac_cpp_err"; then
28836 ac_header_preproc=yes
28838 echo "$as_me: failed program was:" >&5
28839 sed 's/^/| /' conftest.$ac_ext >&5
28841 ac_header_preproc=no
28844 rm -f conftest.err conftest.$ac_ext
28845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28846 echo "${ECHO_T}$ac_header_preproc" >&6; }
28848 # So? What about this header?
28849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28855 ac_header_preproc=yes
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28871 ## ----------------------------------- ##
28872 ## Report this to llvmbugs@cs.uiuc.edu ##
28873 ## ----------------------------------- ##
28875 ) | sed "s/^/$as_me: WARNING: /" >&2
28878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28881 echo $ECHO_N "(cached) $ECHO_C" >&6
28883 eval "$as_ac_Header=\$ac_header_preproc"
28885 ac_res=`eval echo '${'$as_ac_Header'}'`
28886 { echo "$as_me:$LINENO: result: $ac_res" >&5
28887 echo "${ECHO_T}$ac_res" >&6; }
28890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28891 cat >>confdefs.h <<_ACEOF
28892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28905 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912 echo $ECHO_N "(cached) $ECHO_C" >&6
28914 ac_res=`eval echo '${'$as_ac_Header'}'`
28915 { echo "$as_me:$LINENO: result: $ac_res" >&5
28916 echo "${ECHO_T}$ac_res" >&6; }
28918 # Is the header compilable?
28919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28921 cat >conftest.$ac_ext <<_ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h. */
28927 $ac_includes_default
28928 #include <$ac_header>
28930 rm -f conftest.$ac_objext
28931 if { (ac_try="$ac_compile"
28932 case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_compile") 2>conftest.er1
28939 grep -v '^ *+' conftest.er1 >conftest.err
28941 cat conftest.err >&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } &&
28944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28945 { (case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_try") 2>&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; } &&
28954 { ac_try='test -s conftest.$ac_objext'
28955 { (case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960 (eval "$ac_try") 2>&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; }; then
28964 ac_header_compiler=yes
28966 echo "$as_me: failed program was:" >&5
28967 sed 's/^/| /' conftest.$ac_ext >&5
28969 ac_header_compiler=no
28972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28974 echo "${ECHO_T}$ac_header_compiler" >&6; }
28976 # Is the header present?
28977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28979 cat >conftest.$ac_ext <<_ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h. */
28985 #include <$ac_header>
28987 if { (ac_try="$ac_cpp conftest.$ac_ext"
28988 case "(($ac_try" in
28989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990 *) ac_try_echo=$ac_try;;
28992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28995 grep -v '^ *+' conftest.er1 >conftest.err
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); } >/dev/null; then
29000 if test -s conftest.err; then
29001 ac_cpp_err=$ac_c_preproc_warn_flag
29002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29009 if test -z "$ac_cpp_err"; then
29010 ac_header_preproc=yes
29012 echo "$as_me: failed program was:" >&5
29013 sed 's/^/| /' conftest.$ac_ext >&5
29015 ac_header_preproc=no
29018 rm -f conftest.err conftest.$ac_ext
29019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29020 echo "${ECHO_T}$ac_header_preproc" >&6; }
29022 # So? What about this header?
29023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29029 ac_header_preproc=yes
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29045 ## ----------------------------------- ##
29046 ## Report this to llvmbugs@cs.uiuc.edu ##
29047 ## ----------------------------------- ##
29049 ) | sed "s/^/$as_me: WARNING: /" >&2
29052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 eval "$as_ac_Header=\$ac_header_preproc"
29059 ac_res=`eval echo '${'$as_ac_Header'}'`
29060 { echo "$as_me:$LINENO: result: $ac_res" >&5
29061 echo "${ECHO_T}$ac_res" >&6; }
29064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29065 cat >>confdefs.h <<_ACEOF
29066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29074 for ac_header in windows.h
29076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29083 ac_res=`eval echo '${'$as_ac_Header'}'`
29084 { echo "$as_me:$LINENO: result: $ac_res" >&5
29085 echo "${ECHO_T}$ac_res" >&6; }
29087 # Is the header compilable?
29088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29090 cat >conftest.$ac_ext <<_ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h. */
29096 $ac_includes_default
29097 #include <$ac_header>
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_compile") 2>conftest.er1
29108 grep -v '^ *+' conftest.er1 >conftest.err
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_try") 2>&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest.$ac_objext'
29124 { (case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_try") 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
29133 ac_header_compiler=yes
29135 echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29138 ac_header_compiler=no
29141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29143 echo "${ECHO_T}$ac_header_compiler" >&6; }
29145 # Is the header present?
29146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29148 cat >conftest.$ac_ext <<_ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29154 #include <$ac_header>
29156 if { (ac_try="$ac_cpp conftest.$ac_ext"
29157 case "(($ac_try" in
29158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29164 grep -v '^ *+' conftest.er1 >conftest.err
29166 cat conftest.err >&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } >/dev/null; then
29169 if test -s conftest.err; then
29170 ac_cpp_err=$ac_c_preproc_warn_flag
29171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29178 if test -z "$ac_cpp_err"; then
29179 ac_header_preproc=yes
29181 echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29184 ac_header_preproc=no
29187 rm -f conftest.err conftest.$ac_ext
29188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29189 echo "${ECHO_T}$ac_header_preproc" >&6; }
29191 # So? What about this header?
29192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29198 ac_header_preproc=yes
29201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29214 ## ----------------------------------- ##
29215 ## Report this to llvmbugs@cs.uiuc.edu ##
29216 ## ----------------------------------- ##
29218 ) | sed "s/^/$as_me: WARNING: /" >&2
29221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29226 eval "$as_ac_Header=\$ac_header_preproc"
29228 ac_res=`eval echo '${'$as_ac_Header'}'`
29229 { echo "$as_me:$LINENO: result: $ac_res" >&5
29230 echo "${ECHO_T}$ac_res" >&6; }
29233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29234 cat >>confdefs.h <<_ACEOF
29235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29246 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29255 ac_res=`eval echo '${'$as_ac_Header'}'`
29256 { echo "$as_me:$LINENO: result: $ac_res" >&5
29257 echo "${ECHO_T}$ac_res" >&6; }
29259 # Is the header compilable?
29260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29262 cat >conftest.$ac_ext <<_ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 $ac_includes_default
29269 #include <$ac_header>
29271 rm -f conftest.$ac_objext
29272 if { (ac_try="$ac_compile"
29273 case "(($ac_try" in
29274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275 *) ac_try_echo=$ac_try;;
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278 (eval "$ac_compile") 2>conftest.er1
29280 grep -v '^ *+' conftest.er1 >conftest.err
29282 cat conftest.err >&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } &&
29285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29286 { (case "(($ac_try" in
29287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288 *) ac_try_echo=$ac_try;;
29290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291 (eval "$ac_try") 2>&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; } &&
29295 { ac_try='test -s conftest.$ac_objext'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; }; then
29305 ac_header_compiler=yes
29307 echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29310 ac_header_compiler=no
29313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29315 echo "${ECHO_T}$ac_header_compiler" >&6; }
29317 # Is the header present?
29318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29320 cat >conftest.$ac_ext <<_ACEOF
29323 cat confdefs.h >>conftest.$ac_ext
29324 cat >>conftest.$ac_ext <<_ACEOF
29325 /* end confdefs.h. */
29326 #include <$ac_header>
29328 if { (ac_try="$ac_cpp conftest.$ac_ext"
29329 case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29336 grep -v '^ *+' conftest.er1 >conftest.err
29338 cat conftest.err >&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } >/dev/null; then
29341 if test -s conftest.err; then
29342 ac_cpp_err=$ac_c_preproc_warn_flag
29343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29350 if test -z "$ac_cpp_err"; then
29351 ac_header_preproc=yes
29353 echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29356 ac_header_preproc=no
29359 rm -f conftest.err conftest.$ac_ext
29360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29361 echo "${ECHO_T}$ac_header_preproc" >&6; }
29363 # So? What about this header?
29364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29370 ac_header_preproc=yes
29373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29386 ## ----------------------------------- ##
29387 ## Report this to llvmbugs@cs.uiuc.edu ##
29388 ## ----------------------------------- ##
29390 ) | sed "s/^/$as_me: WARNING: /" >&2
29393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29396 echo $ECHO_N "(cached) $ECHO_C" >&6
29398 eval "$as_ac_Header=\$ac_header_preproc"
29400 ac_res=`eval echo '${'$as_ac_Header'}'`
29401 { echo "$as_me:$LINENO: result: $ac_res" >&5
29402 echo "${ECHO_T}$ac_res" >&6; }
29405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29406 cat >>confdefs.h <<_ACEOF
29407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29417 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29424 echo $ECHO_N "(cached) $ECHO_C" >&6
29426 ac_res=`eval echo '${'$as_ac_Header'}'`
29427 { echo "$as_me:$LINENO: result: $ac_res" >&5
29428 echo "${ECHO_T}$ac_res" >&6; }
29430 # Is the header compilable?
29431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29433 cat >conftest.$ac_ext <<_ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29439 $ac_includes_default
29440 #include <$ac_header>
29442 rm -f conftest.$ac_objext
29443 if { (ac_try="$ac_compile"
29444 case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_compile") 2>conftest.er1
29451 grep -v '^ *+' conftest.er1 >conftest.err
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
29456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29457 { (case "(($ac_try" in
29458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459 *) ac_try_echo=$ac_try;;
29461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462 (eval "$ac_try") 2>&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest.$ac_objext'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; }; then
29476 ac_header_compiler=yes
29478 echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29481 ac_header_compiler=no
29484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29486 echo "${ECHO_T}$ac_header_compiler" >&6; }
29488 # Is the header present?
29489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29491 cat >conftest.$ac_ext <<_ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h. */
29497 #include <$ac_header>
29499 if { (ac_try="$ac_cpp conftest.$ac_ext"
29500 case "(($ac_try" in
29501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502 *) ac_try_echo=$ac_try;;
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29507 grep -v '^ *+' conftest.er1 >conftest.err
29509 cat conftest.err >&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); } >/dev/null; then
29512 if test -s conftest.err; then
29513 ac_cpp_err=$ac_c_preproc_warn_flag
29514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29521 if test -z "$ac_cpp_err"; then
29522 ac_header_preproc=yes
29524 echo "$as_me: failed program was:" >&5
29525 sed 's/^/| /' conftest.$ac_ext >&5
29527 ac_header_preproc=no
29530 rm -f conftest.err conftest.$ac_ext
29531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29532 echo "${ECHO_T}$ac_header_preproc" >&6; }
29534 # So? What about this header?
29535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29541 ac_header_preproc=yes
29544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29557 ## ----------------------------------- ##
29558 ## Report this to llvmbugs@cs.uiuc.edu ##
29559 ## ----------------------------------- ##
29561 ) | sed "s/^/$as_me: WARNING: /" >&2
29564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29567 echo $ECHO_N "(cached) $ECHO_C" >&6
29569 eval "$as_ac_Header=\$ac_header_preproc"
29571 ac_res=`eval echo '${'$as_ac_Header'}'`
29572 { echo "$as_me:$LINENO: result: $ac_res" >&5
29573 echo "${ECHO_T}$ac_res" >&6; }
29576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29577 cat >>confdefs.h <<_ACEOF
29578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29585 if test "$ENABLE_THREADS" -eq 1 ; then
29587 for ac_header in pthread.h
29589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29596 ac_res=`eval echo '${'$as_ac_Header'}'`
29597 { echo "$as_me:$LINENO: result: $ac_res" >&5
29598 echo "${ECHO_T}$ac_res" >&6; }
29600 # Is the header compilable?
29601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29603 cat >conftest.$ac_ext <<_ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h. */
29609 $ac_includes_default
29610 #include <$ac_header>
29612 rm -f conftest.$ac_objext
29613 if { (ac_try="$ac_compile"
29614 case "(($ac_try" in
29615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616 *) ac_try_echo=$ac_try;;
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619 (eval "$ac_compile") 2>conftest.er1
29621 grep -v '^ *+' conftest.er1 >conftest.err
29623 cat conftest.err >&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); } &&
29626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29627 { (case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_try") 2>&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; } &&
29636 { ac_try='test -s conftest.$ac_objext'
29637 { (case "(($ac_try" in
29638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29639 *) ac_try_echo=$ac_try;;
29641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29642 (eval "$ac_try") 2>&5
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
29646 ac_header_compiler=yes
29648 echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29651 ac_header_compiler=no
29654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29656 echo "${ECHO_T}$ac_header_compiler" >&6; }
29658 # Is the header present?
29659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29661 cat >conftest.$ac_ext <<_ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h. */
29667 #include <$ac_header>
29669 if { (ac_try="$ac_cpp conftest.$ac_ext"
29670 case "(($ac_try" in
29671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672 *) ac_try_echo=$ac_try;;
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29677 grep -v '^ *+' conftest.er1 >conftest.err
29679 cat conftest.err >&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); } >/dev/null; then
29682 if test -s conftest.err; then
29683 ac_cpp_err=$ac_c_preproc_warn_flag
29684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29691 if test -z "$ac_cpp_err"; then
29692 ac_header_preproc=yes
29694 echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29697 ac_header_preproc=no
29700 rm -f conftest.err conftest.$ac_ext
29701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29702 echo "${ECHO_T}$ac_header_preproc" >&6; }
29704 # So? What about this header?
29705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29711 ac_header_preproc=yes
29714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29727 ## ----------------------------------- ##
29728 ## Report this to llvmbugs@cs.uiuc.edu ##
29729 ## ----------------------------------- ##
29731 ) | sed "s/^/$as_me: WARNING: /" >&2
29734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29737 echo $ECHO_N "(cached) $ECHO_C" >&6
29739 eval "$as_ac_Header=\$ac_header_preproc"
29741 ac_res=`eval echo '${'$as_ac_Header'}'`
29742 { echo "$as_me:$LINENO: result: $ac_res" >&5
29743 echo "${ECHO_T}$ac_res" >&6; }
29746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29747 cat >>confdefs.h <<_ACEOF
29748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29766 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29767 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29768 if test "${ac_cv_huge_val_sanity+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29773 ac_cpp='$CXXCPP $CPPFLAGS'
29774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29779 if test "$cross_compiling" = yes; then
29780 ac_cv_huge_val_sanity=yes
29782 cat >conftest.$ac_ext <<_ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h. */
29792 double x = HUGE_VAL; return x != x;
29797 rm -f conftest$ac_exeext
29798 if { (ac_try="$ac_link"
29799 case "(($ac_try" in
29800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801 *) ac_try_echo=$ac_try;;
29803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804 (eval "$ac_link") 2>&5
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29808 { (case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_try") 2>&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); }; }; then
29817 ac_cv_huge_val_sanity=yes
29819 echo "$as_me: program exited with status $ac_status" >&5
29820 echo "$as_me: failed program was:" >&5
29821 sed 's/^/| /' conftest.$ac_ext >&5
29823 ( exit $ac_status )
29824 ac_cv_huge_val_sanity=no
29826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29831 ac_cpp='$CPP $CPPFLAGS'
29832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29838 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29839 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29840 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29843 { echo "$as_me:$LINENO: checking for pid_t" >&5
29844 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29845 if test "${ac_cv_type_pid_t+set}" = set; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29848 cat >conftest.$ac_ext <<_ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h. */
29854 $ac_includes_default
29855 typedef pid_t ac__type_new_;
29859 if ((ac__type_new_ *) 0)
29861 if (sizeof (ac__type_new_))
29867 rm -f conftest.$ac_objext
29868 if { (ac_try="$ac_compile"
29869 case "(($ac_try" in
29870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871 *) ac_try_echo=$ac_try;;
29873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874 (eval "$ac_compile") 2>conftest.er1
29876 grep -v '^ *+' conftest.er1 >conftest.err
29878 cat conftest.err >&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } &&
29881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29882 { (case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_try") 2>&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; } &&
29891 { ac_try='test -s conftest.$ac_objext'
29892 { (case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_try") 2>&5
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); }; }; then
29901 ac_cv_type_pid_t=yes
29903 echo "$as_me: failed program was:" >&5
29904 sed 's/^/| /' conftest.$ac_ext >&5
29906 ac_cv_type_pid_t=no
29909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29911 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29912 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29913 if test $ac_cv_type_pid_t = yes; then
29917 cat >>confdefs.h <<_ACEOF
29923 { echo "$as_me:$LINENO: checking for size_t" >&5
29924 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29925 if test "${ac_cv_type_size_t+set}" = set; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 cat >conftest.$ac_ext <<_ACEOF
29931 cat confdefs.h >>conftest.$ac_ext
29932 cat >>conftest.$ac_ext <<_ACEOF
29933 /* end confdefs.h. */
29934 $ac_includes_default
29935 typedef size_t ac__type_new_;
29939 if ((ac__type_new_ *) 0)
29941 if (sizeof (ac__type_new_))
29947 rm -f conftest.$ac_objext
29948 if { (ac_try="$ac_compile"
29949 case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_compile") 2>conftest.er1
29956 grep -v '^ *+' conftest.er1 >conftest.err
29958 cat conftest.err >&5
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); } &&
29961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29962 { (case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; } &&
29971 { ac_try='test -s conftest.$ac_objext'
29972 { (case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_try") 2>&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
29981 ac_cv_type_size_t=yes
29983 echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29986 ac_cv_type_size_t=no
29989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29991 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29992 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29993 if test $ac_cv_type_size_t = yes; then
29997 cat >>confdefs.h <<_ACEOF
29998 #define size_t unsigned int
30003 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30004 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30005 if test "${ac_cv_type_signal+set}" = set; then
30006 echo $ECHO_N "(cached) $ECHO_C" >&6
30008 cat >conftest.$ac_ext <<_ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h. */
30014 #include <sys/types.h>
30015 #include <signal.h>
30020 return *(signal (0, 0)) (0) == 1;
30025 rm -f conftest.$ac_objext
30026 if { (ac_try="$ac_compile"
30027 case "(($ac_try" in
30028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029 *) ac_try_echo=$ac_try;;
30031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032 (eval "$ac_compile") 2>conftest.er1
30034 grep -v '^ *+' conftest.er1 >conftest.err
30036 cat conftest.err >&5
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); } &&
30039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30040 { (case "(($ac_try" in
30041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042 *) ac_try_echo=$ac_try;;
30044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30045 (eval "$ac_try") 2>&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; } &&
30049 { ac_try='test -s conftest.$ac_objext'
30050 { (case "(($ac_try" in
30051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052 *) ac_try_echo=$ac_try;;
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055 (eval "$ac_try") 2>&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; }; then
30059 ac_cv_type_signal=int
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30064 ac_cv_type_signal=void
30067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30069 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30070 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30072 cat >>confdefs.h <<_ACEOF
30073 #define RETSIGTYPE $ac_cv_type_signal
30077 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30078 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30079 if test "${ac_cv_struct_tm+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30082 cat >conftest.$ac_ext <<_ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h. */
30088 #include <sys/types.h>
30094 struct tm *tp; tp->tm_sec;
30099 rm -f conftest.$ac_objext
30100 if { (ac_try="$ac_compile"
30101 case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_compile") 2>conftest.er1
30108 grep -v '^ *+' conftest.er1 >conftest.err
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; } &&
30123 { ac_try='test -s conftest.$ac_objext'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
30133 ac_cv_struct_tm=time.h
30135 echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30138 ac_cv_struct_tm=sys/time.h
30141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30143 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30144 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30145 if test $ac_cv_struct_tm = sys/time.h; then
30147 cat >>confdefs.h <<\_ACEOF
30148 #define TM_IN_SYS_TIME 1
30153 { echo "$as_me:$LINENO: checking for int64_t" >&5
30154 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30155 if test "${ac_cv_type_int64_t+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30158 cat >conftest.$ac_ext <<_ACEOF
30161 cat confdefs.h >>conftest.$ac_ext
30162 cat >>conftest.$ac_ext <<_ACEOF
30163 /* end confdefs.h. */
30164 $ac_includes_default
30165 typedef int64_t ac__type_new_;
30169 if ((ac__type_new_ *) 0)
30171 if (sizeof (ac__type_new_))
30177 rm -f conftest.$ac_objext
30178 if { (ac_try="$ac_compile"
30179 case "(($ac_try" in
30180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181 *) ac_try_echo=$ac_try;;
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184 (eval "$ac_compile") 2>conftest.er1
30186 grep -v '^ *+' conftest.er1 >conftest.err
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } &&
30191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30192 { (case "(($ac_try" in
30193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194 *) ac_try_echo=$ac_try;;
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197 (eval "$ac_try") 2>&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; } &&
30201 { ac_try='test -s conftest.$ac_objext'
30202 { (case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 ac_cv_type_int64_t=yes
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30216 ac_cv_type_int64_t=no
30219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30221 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30222 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30223 if test $ac_cv_type_int64_t = yes; then
30225 cat >>confdefs.h <<_ACEOF
30226 #define HAVE_INT64_T 1
30231 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30232 echo "$as_me: error: Type int64_t required but not found" >&2;}
30233 { (exit 1); exit 1; }; }
30236 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30237 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30238 if test "${ac_cv_type_uint64_t+set}" = set; then
30239 echo $ECHO_N "(cached) $ECHO_C" >&6
30241 cat >conftest.$ac_ext <<_ACEOF
30244 cat confdefs.h >>conftest.$ac_ext
30245 cat >>conftest.$ac_ext <<_ACEOF
30246 /* end confdefs.h. */
30247 $ac_includes_default
30248 typedef uint64_t ac__type_new_;
30252 if ((ac__type_new_ *) 0)
30254 if (sizeof (ac__type_new_))
30260 rm -f conftest.$ac_objext
30261 if { (ac_try="$ac_compile"
30262 case "(($ac_try" in
30263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264 *) ac_try_echo=$ac_try;;
30266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267 (eval "$ac_compile") 2>conftest.er1
30269 grep -v '^ *+' conftest.er1 >conftest.err
30271 cat conftest.err >&5
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); } &&
30274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30275 { (case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_try") 2>&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; } &&
30284 { ac_try='test -s conftest.$ac_objext'
30285 { (case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_try") 2>&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); }; }; then
30294 ac_cv_type_uint64_t=yes
30296 echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30299 ac_cv_type_uint64_t=no
30302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30304 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30305 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30306 if test $ac_cv_type_uint64_t = yes; then
30308 cat >>confdefs.h <<_ACEOF
30309 #define HAVE_UINT64_T 1
30314 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30315 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30316 if test "${ac_cv_type_u_int64_t+set}" = set; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30319 cat >conftest.$ac_ext <<_ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30325 $ac_includes_default
30326 typedef u_int64_t ac__type_new_;
30330 if ((ac__type_new_ *) 0)
30332 if (sizeof (ac__type_new_))
30338 rm -f conftest.$ac_objext
30339 if { (ac_try="$ac_compile"
30340 case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_compile") 2>conftest.er1
30347 grep -v '^ *+' conftest.er1 >conftest.err
30349 cat conftest.err >&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
30352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30353 { (case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_try") 2>&5
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; } &&
30362 { ac_try='test -s conftest.$ac_objext'
30363 { (case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_try") 2>&5
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 ac_cv_type_u_int64_t=yes
30374 echo "$as_me: failed program was:" >&5
30375 sed 's/^/| /' conftest.$ac_ext >&5
30377 ac_cv_type_u_int64_t=no
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30382 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30383 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30384 if test $ac_cv_type_u_int64_t = yes; then
30386 cat >>confdefs.h <<_ACEOF
30387 #define HAVE_U_INT64_T 1
30392 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30393 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30394 { (exit 1); exit 1; }; }
30408 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30414 echo $ECHO_N "(cached) $ECHO_C" >&6
30416 cat >conftest.$ac_ext <<_ACEOF
30419 cat confdefs.h >>conftest.$ac_ext
30420 cat >>conftest.$ac_ext <<_ACEOF
30421 /* end confdefs.h. */
30422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30424 #define $ac_func innocuous_$ac_func
30426 /* System header to define __stub macros and hopefully few prototypes,
30427 which can conflict with char $ac_func (); below.
30428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30429 <limits.h> exists even on freestanding compilers. */
30432 # include <limits.h>
30434 # include <assert.h>
30439 /* Override any GCC internal prototype to avoid an error.
30440 Use char because int might match the return type of a GCC
30441 builtin and then its argument prototype would still apply. */
30446 /* The GNU C library defines this for functions which it implements
30447 to always fail with ENOSYS. Some functions are actually named
30448 something starting with __ and the normal name is an alias. */
30449 #if defined __stub_$ac_func || defined __stub___$ac_func
30456 return $ac_func ();
30461 rm -f conftest.$ac_objext conftest$ac_exeext
30462 if { (ac_try="$ac_link"
30463 case "(($ac_try" in
30464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30465 *) ac_try_echo=$ac_try;;
30467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30468 (eval "$ac_link") 2>conftest.er1
30470 grep -v '^ *+' conftest.er1 >conftest.err
30472 cat conftest.err >&5
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); } &&
30475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30476 { (case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_try") 2>&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; } &&
30485 { ac_try='test -s conftest$ac_exeext'
30486 { (case "(($ac_try" in
30487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488 *) ac_try_echo=$ac_try;;
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491 (eval "$ac_try") 2>&5
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; }; then
30495 eval "$as_ac_var=yes"
30497 echo "$as_me: failed program was:" >&5
30498 sed 's/^/| /' conftest.$ac_ext >&5
30500 eval "$as_ac_var=no"
30503 rm -f core conftest.err conftest.$ac_objext \
30504 conftest$ac_exeext conftest.$ac_ext
30506 ac_res=`eval echo '${'$as_ac_var'}'`
30507 { echo "$as_me:$LINENO: result: $ac_res" >&5
30508 echo "${ECHO_T}$ac_res" >&6; }
30509 if test `eval echo '${'$as_ac_var'}'` = yes; then
30510 cat >>confdefs.h <<_ACEOF
30511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30521 for ac_func in powf fmodf strtof round
30523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30527 echo $ECHO_N "(cached) $ECHO_C" >&6
30529 cat >conftest.$ac_ext <<_ACEOF
30532 cat confdefs.h >>conftest.$ac_ext
30533 cat >>conftest.$ac_ext <<_ACEOF
30534 /* end confdefs.h. */
30535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30537 #define $ac_func innocuous_$ac_func
30539 /* System header to define __stub macros and hopefully few prototypes,
30540 which can conflict with char $ac_func (); below.
30541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30542 <limits.h> exists even on freestanding compilers. */
30545 # include <limits.h>
30547 # include <assert.h>
30552 /* Override any GCC internal prototype to avoid an error.
30553 Use char because int might match the return type of a GCC
30554 builtin and then its argument prototype would still apply. */
30559 /* The GNU C library defines this for functions which it implements
30560 to always fail with ENOSYS. Some functions are actually named
30561 something starting with __ and the normal name is an alias. */
30562 #if defined __stub_$ac_func || defined __stub___$ac_func
30569 return $ac_func ();
30574 rm -f conftest.$ac_objext conftest$ac_exeext
30575 if { (ac_try="$ac_link"
30576 case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581 (eval "$ac_link") 2>conftest.er1
30583 grep -v '^ *+' conftest.er1 >conftest.err
30585 cat conftest.err >&5
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); } &&
30588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30589 { (case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_try") 2>&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); }; } &&
30598 { ac_try='test -s conftest$ac_exeext'
30599 { (case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_try") 2>&5
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; }; then
30608 eval "$as_ac_var=yes"
30610 echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30613 eval "$as_ac_var=no"
30616 rm -f core conftest.err conftest.$ac_objext \
30617 conftest$ac_exeext conftest.$ac_ext
30619 ac_res=`eval echo '${'$as_ac_var'}'`
30620 { echo "$as_me:$LINENO: result: $ac_res" >&5
30621 echo "${ECHO_T}$ac_res" >&6; }
30622 if test `eval echo '${'$as_ac_var'}'` = yes; then
30623 cat >>confdefs.h <<_ACEOF
30624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30635 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30643 cat >conftest.$ac_ext <<_ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h. */
30649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30651 #define $ac_func innocuous_$ac_func
30653 /* System header to define __stub macros and hopefully few prototypes,
30654 which can conflict with char $ac_func (); below.
30655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30656 <limits.h> exists even on freestanding compilers. */
30659 # include <limits.h>
30661 # include <assert.h>
30666 /* Override any GCC internal prototype to avoid an error.
30667 Use char because int might match the return type of a GCC
30668 builtin and then its argument prototype would still apply. */
30673 /* The GNU C library defines this for functions which it implements
30674 to always fail with ENOSYS. Some functions are actually named
30675 something starting with __ and the normal name is an alias. */
30676 #if defined __stub_$ac_func || defined __stub___$ac_func
30683 return $ac_func ();
30688 rm -f conftest.$ac_objext conftest$ac_exeext
30689 if { (ac_try="$ac_link"
30690 case "(($ac_try" in
30691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30692 *) ac_try_echo=$ac_try;;
30694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30695 (eval "$ac_link") 2>conftest.er1
30697 grep -v '^ *+' conftest.er1 >conftest.err
30699 cat conftest.err >&5
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); } &&
30702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30703 { (case "(($ac_try" in
30704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705 *) ac_try_echo=$ac_try;;
30707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708 (eval "$ac_try") 2>&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; } &&
30712 { ac_try='test -s conftest$ac_exeext'
30713 { (case "(($ac_try" in
30714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715 *) ac_try_echo=$ac_try;;
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718 (eval "$ac_try") 2>&5
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; }; then
30722 eval "$as_ac_var=yes"
30724 echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30727 eval "$as_ac_var=no"
30730 rm -f core conftest.err conftest.$ac_objext \
30731 conftest$ac_exeext conftest.$ac_ext
30733 ac_res=`eval echo '${'$as_ac_var'}'`
30734 { echo "$as_me:$LINENO: result: $ac_res" >&5
30735 echo "${ECHO_T}$ac_res" >&6; }
30736 if test `eval echo '${'$as_ac_var'}'` = yes; then
30737 cat >>confdefs.h <<_ACEOF
30738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30747 for ac_func in isatty mkdtemp mkstemp
30749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30753 echo $ECHO_N "(cached) $ECHO_C" >&6
30755 cat >conftest.$ac_ext <<_ACEOF
30758 cat confdefs.h >>conftest.$ac_ext
30759 cat >>conftest.$ac_ext <<_ACEOF
30760 /* end confdefs.h. */
30761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30763 #define $ac_func innocuous_$ac_func
30765 /* System header to define __stub macros and hopefully few prototypes,
30766 which can conflict with char $ac_func (); below.
30767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30768 <limits.h> exists even on freestanding compilers. */
30771 # include <limits.h>
30773 # include <assert.h>
30778 /* Override any GCC internal prototype to avoid an error.
30779 Use char because int might match the return type of a GCC
30780 builtin and then its argument prototype would still apply. */
30785 /* The GNU C library defines this for functions which it implements
30786 to always fail with ENOSYS. Some functions are actually named
30787 something starting with __ and the normal name is an alias. */
30788 #if defined __stub_$ac_func || defined __stub___$ac_func
30795 return $ac_func ();
30800 rm -f conftest.$ac_objext conftest$ac_exeext
30801 if { (ac_try="$ac_link"
30802 case "(($ac_try" in
30803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804 *) ac_try_echo=$ac_try;;
30806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807 (eval "$ac_link") 2>conftest.er1
30809 grep -v '^ *+' conftest.er1 >conftest.err
30811 cat conftest.err >&5
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); } &&
30814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815 { (case "(($ac_try" in
30816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_try") 2>&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; } &&
30824 { ac_try='test -s conftest$ac_exeext'
30825 { (case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_try") 2>&5
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); }; }; then
30834 eval "$as_ac_var=yes"
30836 echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30839 eval "$as_ac_var=no"
30842 rm -f core conftest.err conftest.$ac_objext \
30843 conftest$ac_exeext conftest.$ac_ext
30845 ac_res=`eval echo '${'$as_ac_var'}'`
30846 { echo "$as_me:$LINENO: result: $ac_res" >&5
30847 echo "${ECHO_T}$ac_res" >&6; }
30848 if test `eval echo '${'$as_ac_var'}'` = yes; then
30849 cat >>confdefs.h <<_ACEOF
30850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30863 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30871 cat >conftest.$ac_ext <<_ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h. */
30877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30879 #define $ac_func innocuous_$ac_func
30881 /* System header to define __stub macros and hopefully few prototypes,
30882 which can conflict with char $ac_func (); below.
30883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30884 <limits.h> exists even on freestanding compilers. */
30887 # include <limits.h>
30889 # include <assert.h>
30894 /* Override any GCC internal prototype to avoid an error.
30895 Use char because int might match the return type of a GCC
30896 builtin and then its argument prototype would still apply. */
30901 /* The GNU C library defines this for functions which it implements
30902 to always fail with ENOSYS. Some functions are actually named
30903 something starting with __ and the normal name is an alias. */
30904 #if defined __stub_$ac_func || defined __stub___$ac_func
30911 return $ac_func ();
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (ac_try="$ac_link"
30918 case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_link") 2>conftest.er1
30925 grep -v '^ *+' conftest.er1 >conftest.err
30927 cat conftest.err >&5
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 (exit $ac_status); } &&
30930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30931 { (case "(($ac_try" in
30932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30933 *) ac_try_echo=$ac_try;;
30935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30936 (eval "$ac_try") 2>&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); }; } &&
30940 { ac_try='test -s conftest$ac_exeext'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; }; then
30950 eval "$as_ac_var=yes"
30952 echo "$as_me: failed program was:" >&5
30953 sed 's/^/| /' conftest.$ac_ext >&5
30955 eval "$as_ac_var=no"
30958 rm -f core conftest.err conftest.$ac_objext \
30959 conftest$ac_exeext conftest.$ac_ext
30961 ac_res=`eval echo '${'$as_ac_var'}'`
30962 { echo "$as_me:$LINENO: result: $ac_res" >&5
30963 echo "${ECHO_T}$ac_res" >&6; }
30964 if test `eval echo '${'$as_ac_var'}'` = yes; then
30965 cat >>confdefs.h <<_ACEOF
30966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30976 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30984 cat >conftest.$ac_ext <<_ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h. */
30990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30992 #define $ac_func innocuous_$ac_func
30994 /* System header to define __stub macros and hopefully few prototypes,
30995 which can conflict with char $ac_func (); below.
30996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997 <limits.h> exists even on freestanding compilers. */
31000 # include <limits.h>
31002 # include <assert.h>
31007 /* Override any GCC internal prototype to avoid an error.
31008 Use char because int might match the return type of a GCC
31009 builtin and then its argument prototype would still apply. */
31014 /* The GNU C library defines this for functions which it implements
31015 to always fail with ENOSYS. Some functions are actually named
31016 something starting with __ and the normal name is an alias. */
31017 #if defined __stub_$ac_func || defined __stub___$ac_func
31024 return $ac_func ();
31029 rm -f conftest.$ac_objext conftest$ac_exeext
31030 if { (ac_try="$ac_link"
31031 case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_link") 2>conftest.er1
31038 grep -v '^ *+' conftest.er1 >conftest.err
31040 cat conftest.err >&5
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); } &&
31043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31044 { (case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_try") 2>&5
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest$ac_exeext'
31054 { (case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_try") 2>&5
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31063 eval "$as_ac_var=yes"
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31068 eval "$as_ac_var=no"
31071 rm -f core conftest.err conftest.$ac_objext \
31072 conftest$ac_exeext conftest.$ac_ext
31074 ac_res=`eval echo '${'$as_ac_var'}'`
31075 { echo "$as_me:$LINENO: result: $ac_res" >&5
31076 echo "${ECHO_T}$ac_res" >&6; }
31077 if test `eval echo '${'$as_ac_var'}'` = yes; then
31078 cat >>confdefs.h <<_ACEOF
31079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31089 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31095 echo $ECHO_N "(cached) $ECHO_C" >&6
31097 cat >conftest.$ac_ext <<_ACEOF
31100 cat confdefs.h >>conftest.$ac_ext
31101 cat >>conftest.$ac_ext <<_ACEOF
31102 /* end confdefs.h. */
31103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31105 #define $ac_func innocuous_$ac_func
31107 /* System header to define __stub macros and hopefully few prototypes,
31108 which can conflict with char $ac_func (); below.
31109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31110 <limits.h> exists even on freestanding compilers. */
31113 # include <limits.h>
31115 # include <assert.h>
31120 /* Override any GCC internal prototype to avoid an error.
31121 Use char because int might match the return type of a GCC
31122 builtin and then its argument prototype would still apply. */
31127 /* The GNU C library defines this for functions which it implements
31128 to always fail with ENOSYS. Some functions are actually named
31129 something starting with __ and the normal name is an alias. */
31130 #if defined __stub_$ac_func || defined __stub___$ac_func
31137 return $ac_func ();
31142 rm -f conftest.$ac_objext conftest$ac_exeext
31143 if { (ac_try="$ac_link"
31144 case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149 (eval "$ac_link") 2>conftest.er1
31151 grep -v '^ *+' conftest.er1 >conftest.err
31153 cat conftest.err >&5
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); } &&
31156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31157 { (case "(($ac_try" in
31158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31159 *) ac_try_echo=$ac_try;;
31161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31162 (eval "$ac_try") 2>&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); }; } &&
31166 { ac_try='test -s conftest$ac_exeext'
31167 { (case "(($ac_try" in
31168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169 *) ac_try_echo=$ac_try;;
31171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172 (eval "$ac_try") 2>&5
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); }; }; then
31176 eval "$as_ac_var=yes"
31178 echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.$ac_ext >&5
31181 eval "$as_ac_var=no"
31184 rm -f core conftest.err conftest.$ac_objext \
31185 conftest$ac_exeext conftest.$ac_ext
31187 ac_res=`eval echo '${'$as_ac_var'}'`
31188 { echo "$as_me:$LINENO: result: $ac_res" >&5
31189 echo "${ECHO_T}$ac_res" >&6; }
31190 if test `eval echo '${'$as_ac_var'}'` = yes; then
31191 cat >>confdefs.h <<_ACEOF
31192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31198 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31199 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31200 if test "${llvm_cv_c_printf_a+set}" = set; then
31201 echo $ECHO_N "(cached) $ECHO_C" >&6
31204 ac_cpp='$CPP $CPPFLAGS'
31205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31209 if test "$cross_compiling" = yes; then
31210 llvmac_cv_c_printf_a=no
31212 cat >conftest.$ac_ext <<_ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31221 #include <stdlib.h>
31227 volatile double A, B;
31231 sprintf(Buffer, "%a", A);
31235 if (A != 0x1.999999999999ap-4)
31242 rm -f conftest$ac_exeext
31243 if { (ac_try="$ac_link"
31244 case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_link") 2>&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31253 { (case "(($ac_try" in
31254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255 *) ac_try_echo=$ac_try;;
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258 (eval "$ac_try") 2>&5
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); }; }; then
31262 llvm_cv_c_printf_a=yes
31264 echo "$as_me: program exited with status $ac_status" >&5
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 ( exit $ac_status )
31269 llvmac_cv_c_printf_a=no
31271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31276 ac_cpp='$CPP $CPPFLAGS'
31277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31282 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31283 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31284 if test "$llvm_cv_c_printf_a" = "yes"; then
31286 cat >>confdefs.h <<\_ACEOF
31287 #define HAVE_PRINTF_A 1
31292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31293 # for constant arguments. Useless!
31294 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31295 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31296 if test "${ac_cv_working_alloca_h+set}" = set; then
31297 echo $ECHO_N "(cached) $ECHO_C" >&6
31299 cat >conftest.$ac_ext <<_ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h. */
31305 #include <alloca.h>
31309 char *p = (char *) alloca (2 * sizeof (int));
31315 rm -f conftest.$ac_objext conftest$ac_exeext
31316 if { (ac_try="$ac_link"
31317 case "(($ac_try" in
31318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319 *) ac_try_echo=$ac_try;;
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322 (eval "$ac_link") 2>conftest.er1
31324 grep -v '^ *+' conftest.er1 >conftest.err
31326 cat conftest.err >&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); } &&
31329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31330 { (case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_try") 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
31339 { ac_try='test -s conftest$ac_exeext'
31340 { (case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_try") 2>&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); }; }; then
31349 ac_cv_working_alloca_h=yes
31351 echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31354 ac_cv_working_alloca_h=no
31357 rm -f core conftest.err conftest.$ac_objext \
31358 conftest$ac_exeext conftest.$ac_ext
31360 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31361 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31362 if test $ac_cv_working_alloca_h = yes; then
31364 cat >>confdefs.h <<\_ACEOF
31365 #define HAVE_ALLOCA_H 1
31370 { echo "$as_me:$LINENO: checking for alloca" >&5
31371 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31372 if test "${ac_cv_func_alloca_works+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31375 cat >conftest.$ac_ext <<_ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31382 # define alloca __builtin_alloca
31385 # include <malloc.h>
31386 # define alloca _alloca
31389 # include <alloca.h>
31394 # ifndef alloca /* predefined by HP cc +Olibcalls */
31405 char *p = (char *) alloca (1);
31411 rm -f conftest.$ac_objext conftest$ac_exeext
31412 if { (ac_try="$ac_link"
31413 case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_link") 2>conftest.er1
31420 grep -v '^ *+' conftest.er1 >conftest.err
31422 cat conftest.err >&5
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); } &&
31425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31426 { (case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431 (eval "$ac_try") 2>&5
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; } &&
31435 { ac_try='test -s conftest$ac_exeext'
31436 { (case "(($ac_try" in
31437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438 *) ac_try_echo=$ac_try;;
31440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441 (eval "$ac_try") 2>&5
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); }; }; then
31445 ac_cv_func_alloca_works=yes
31447 echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31450 ac_cv_func_alloca_works=no
31453 rm -f core conftest.err conftest.$ac_objext \
31454 conftest$ac_exeext conftest.$ac_ext
31456 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31457 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31459 if test $ac_cv_func_alloca_works = yes; then
31461 cat >>confdefs.h <<\_ACEOF
31462 #define HAVE_ALLOCA 1
31466 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31467 # that cause trouble. Some versions do not even contain alloca or
31468 # contain a buggy version. If you still want to use their alloca,
31469 # use ar to extract alloca.o from them instead of compiling alloca.c.
31471 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31473 cat >>confdefs.h <<\_ACEOF
31478 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31479 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31480 if test "${ac_cv_os_cray+set}" = set; then
31481 echo $ECHO_N "(cached) $ECHO_C" >&6
31483 cat >conftest.$ac_ext <<_ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h. */
31489 #if defined CRAY && ! defined CRAY2
31496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31497 $EGREP "webecray" >/dev/null 2>&1; then
31505 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31506 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31507 if test $ac_cv_os_cray = yes; then
31508 for ac_func in _getb67 GETB67 getb67; do
31509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31513 echo $ECHO_N "(cached) $ECHO_C" >&6
31515 cat >conftest.$ac_ext <<_ACEOF
31518 cat confdefs.h >>conftest.$ac_ext
31519 cat >>conftest.$ac_ext <<_ACEOF
31520 /* end confdefs.h. */
31521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31523 #define $ac_func innocuous_$ac_func
31525 /* System header to define __stub macros and hopefully few prototypes,
31526 which can conflict with char $ac_func (); below.
31527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31528 <limits.h> exists even on freestanding compilers. */
31531 # include <limits.h>
31533 # include <assert.h>
31538 /* Override any GCC internal prototype to avoid an error.
31539 Use char because int might match the return type of a GCC
31540 builtin and then its argument prototype would still apply. */
31545 /* The GNU C library defines this for functions which it implements
31546 to always fail with ENOSYS. Some functions are actually named
31547 something starting with __ and the normal name is an alias. */
31548 #if defined __stub_$ac_func || defined __stub___$ac_func
31555 return $ac_func ();
31560 rm -f conftest.$ac_objext conftest$ac_exeext
31561 if { (ac_try="$ac_link"
31562 case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_link") 2>conftest.er1
31569 grep -v '^ *+' conftest.er1 >conftest.err
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } &&
31574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31575 { (case "(($ac_try" in
31576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577 *) ac_try_echo=$ac_try;;
31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580 (eval "$ac_try") 2>&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; } &&
31584 { ac_try='test -s conftest$ac_exeext'
31585 { (case "(($ac_try" in
31586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587 *) ac_try_echo=$ac_try;;
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590 (eval "$ac_try") 2>&5
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); }; }; then
31594 eval "$as_ac_var=yes"
31596 echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31599 eval "$as_ac_var=no"
31602 rm -f core conftest.err conftest.$ac_objext \
31603 conftest$ac_exeext conftest.$ac_ext
31605 ac_res=`eval echo '${'$as_ac_var'}'`
31606 { echo "$as_me:$LINENO: result: $ac_res" >&5
31607 echo "${ECHO_T}$ac_res" >&6; }
31608 if test `eval echo '${'$as_ac_var'}'` = yes; then
31610 cat >>confdefs.h <<_ACEOF
31611 #define CRAY_STACKSEG_END $ac_func
31620 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31621 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31622 if test "${ac_cv_c_stack_direction+set}" = set; then
31623 echo $ECHO_N "(cached) $ECHO_C" >&6
31625 if test "$cross_compiling" = yes; then
31626 ac_cv_c_stack_direction=0
31628 cat >conftest.$ac_ext <<_ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h. */
31634 $ac_includes_default
31636 find_stack_direction ()
31638 static char *addr = 0;
31643 return find_stack_direction ();
31646 return (&dummy > addr) ? 1 : -1;
31652 return find_stack_direction () < 0;
31655 rm -f conftest$ac_exeext
31656 if { (ac_try="$ac_link"
31657 case "(($ac_try" in
31658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659 *) ac_try_echo=$ac_try;;
31661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662 (eval "$ac_link") 2>&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
31675 ac_cv_c_stack_direction=1
31677 echo "$as_me: program exited with status $ac_status" >&5
31678 echo "$as_me: failed program was:" >&5
31679 sed 's/^/| /' conftest.$ac_ext >&5
31681 ( exit $ac_status )
31682 ac_cv_c_stack_direction=-1
31684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31689 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31690 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31692 cat >>confdefs.h <<_ACEOF
31693 #define STACK_DIRECTION $ac_cv_c_stack_direction
31700 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31701 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31702 if test "${ac_cv_func_rand48+set}" = set; then
31703 echo $ECHO_N "(cached) $ECHO_C" >&6
31706 ac_cpp='$CXXCPP $CPPFLAGS'
31707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31711 cat >conftest.$ac_ext <<_ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h. */
31717 #include <stdlib.h>
31721 srand48(0);lrand48();drand48();
31726 rm -f conftest.$ac_objext
31727 if { (ac_try="$ac_compile"
31728 case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_compile") 2>conftest.er1
31735 grep -v '^ *+' conftest.er1 >conftest.err
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } &&
31740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31741 { (case "(($ac_try" in
31742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743 *) ac_try_echo=$ac_try;;
31745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746 (eval "$ac_try") 2>&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; } &&
31750 { ac_try='test -s conftest.$ac_objext'
31751 { (case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_try") 2>&5
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; }; then
31760 ac_cv_func_rand48=yes
31762 echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765 ac_cv_func_rand48=no
31768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31770 ac_cpp='$CPP $CPPFLAGS'
31771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31776 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31777 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31779 if test "$ac_cv_func_rand48" = "yes" ; then
31781 cat >>confdefs.h <<\_ACEOF
31782 #define HAVE_RAND48 1
31788 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31789 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31790 if test "${ac_cv_cxx_namespaces+set}" = set; then
31791 echo $ECHO_N "(cached) $ECHO_C" >&6
31794 ac_cpp='$CXXCPP $CPPFLAGS'
31795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31799 cat >conftest.$ac_ext <<_ACEOF
31802 cat confdefs.h >>conftest.$ac_ext
31803 cat >>conftest.$ac_ext <<_ACEOF
31804 /* end confdefs.h. */
31805 namespace Outer { namespace Inner { int i = 0; }}
31809 using namespace Outer::Inner; return i;
31814 rm -f conftest.$ac_objext
31815 if { (ac_try="$ac_compile"
31816 case "(($ac_try" in
31817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31818 *) ac_try_echo=$ac_try;;
31820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31821 (eval "$ac_compile") 2>conftest.er1
31823 grep -v '^ *+' conftest.er1 >conftest.err
31825 cat conftest.err >&5
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); } &&
31828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31829 { (case "(($ac_try" in
31830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834 (eval "$ac_try") 2>&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); }; } &&
31838 { ac_try='test -s conftest.$ac_objext'
31839 { (case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_try") 2>&5
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; }; then
31848 ac_cv_cxx_namespaces=yes
31850 echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31853 ac_cv_cxx_namespaces=no
31856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31858 ac_cpp='$CPP $CPPFLAGS'
31859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31865 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31866 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31867 if test "$ac_cv_cxx_namespaces" = yes; then
31869 cat >>confdefs.h <<\_ACEOF
31870 #define HAVE_NAMESPACES
31875 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31876 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31877 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31878 echo $ECHO_N "(cached) $ECHO_C" >&6
31882 ac_cpp='$CXXCPP $CPPFLAGS'
31883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31887 cat >conftest.$ac_ext <<_ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31893 #include <ext/hash_map>
31894 #ifdef HAVE_NAMESPACES
31895 using namespace std;
31900 hash_map<int, int> t;
31905 rm -f conftest.$ac_objext
31906 if { (ac_try="$ac_compile"
31907 case "(($ac_try" in
31908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909 *) ac_try_echo=$ac_try;;
31911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912 (eval "$ac_compile") 2>conftest.er1
31914 grep -v '^ *+' conftest.er1 >conftest.err
31916 cat conftest.err >&5
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); } &&
31919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31920 { (case "(($ac_try" in
31921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922 *) ac_try_echo=$ac_try;;
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925 (eval "$ac_try") 2>&5
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); }; } &&
31929 { ac_try='test -s conftest.$ac_objext'
31930 { (case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_try") 2>&5
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; }; then
31939 ac_cv_cxx_have_std_ext_hash_map=yes
31941 echo "$as_me: failed program was:" >&5
31942 sed 's/^/| /' conftest.$ac_ext >&5
31944 ac_cv_cxx_have_std_ext_hash_map=no
31947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31949 ac_cpp='$CPP $CPPFLAGS'
31950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31955 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31956 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31957 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31960 cat >>confdefs.h <<\_ACEOF
31961 #define HAVE_STD_EXT_HASH_MAP 1
31966 cat >>confdefs.h <<\_ACEOF
31967 #define HAVE_STD_EXT_HASH_MAP 0
31972 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31973 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31974 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31979 ac_cpp='$CXXCPP $CPPFLAGS'
31980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31984 cat >conftest.$ac_ext <<_ACEOF
31987 cat confdefs.h >>conftest.$ac_ext
31988 cat >>conftest.$ac_ext <<_ACEOF
31989 /* end confdefs.h. */
31990 #include <ext/hash_map>
31991 #ifdef HAVE_NAMESPACES
31992 using namespace __gnu_cxx;
31997 hash_map<int,int> t;
32002 rm -f conftest.$ac_objext
32003 if { (ac_try="$ac_compile"
32004 case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_compile") 2>conftest.er1
32011 grep -v '^ *+' conftest.er1 >conftest.err
32013 cat conftest.err >&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); } &&
32016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32017 { (case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_try") 2>&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); }; } &&
32026 { ac_try='test -s conftest.$ac_objext'
32027 { (case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_try") 2>&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 ac_cv_cxx_have_gnu_ext_hash_map=yes
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32041 ac_cv_cxx_have_gnu_ext_hash_map=no
32044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32046 ac_cpp='$CPP $CPPFLAGS'
32047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32052 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32053 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32054 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32057 cat >>confdefs.h <<\_ACEOF
32058 #define HAVE_GNU_EXT_HASH_MAP 1
32063 cat >>confdefs.h <<\_ACEOF
32064 #define HAVE_GNU_EXT_HASH_MAP 0
32069 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32070 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32071 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32072 echo $ECHO_N "(cached) $ECHO_C" >&6
32076 ac_cpp='$CXXCPP $CPPFLAGS'
32077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32081 cat >conftest.$ac_ext <<_ACEOF
32084 cat confdefs.h >>conftest.$ac_ext
32085 cat >>conftest.$ac_ext <<_ACEOF
32086 /* end confdefs.h. */
32087 #include <hash_map>
32091 hash_map<int,int> t;
32096 rm -f conftest.$ac_objext
32097 if { (ac_try="$ac_compile"
32098 case "(($ac_try" in
32099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100 *) ac_try_echo=$ac_try;;
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103 (eval "$ac_compile") 2>conftest.er1
32105 grep -v '^ *+' conftest.er1 >conftest.err
32107 cat conftest.err >&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); } &&
32110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111 { (case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_try") 2>&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; } &&
32120 { ac_try='test -s conftest.$ac_objext'
32121 { (case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_try") 2>&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
32130 ac_cv_cxx_have_global_hash_map=yes
32132 echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32135 ac_cv_cxx_have_global_hash_map=no
32138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32140 ac_cpp='$CPP $CPPFLAGS'
32141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32147 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32148 if test "$ac_cv_cxx_have_global_hash_map" = yes
32151 cat >>confdefs.h <<\_ACEOF
32152 #define HAVE_GLOBAL_HASH_MAP 1
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_GLOBAL_HASH_MAP 0
32163 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32164 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32165 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32170 ac_cpp='$CXXCPP $CPPFLAGS'
32171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32175 cat >conftest.$ac_ext <<_ACEOF
32178 cat confdefs.h >>conftest.$ac_ext
32179 cat >>conftest.$ac_ext <<_ACEOF
32180 /* end confdefs.h. */
32181 #include <ext/hash_set>
32182 #ifdef HAVE_NAMESPACES
32183 using namespace std;
32193 rm -f conftest.$ac_objext
32194 if { (ac_try="$ac_compile"
32195 case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_compile") 2>conftest.er1
32202 grep -v '^ *+' conftest.er1 >conftest.err
32204 cat conftest.err >&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
32207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32208 { (case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213 (eval "$ac_try") 2>&5
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; } &&
32217 { ac_try='test -s conftest.$ac_objext'
32218 { (case "(($ac_try" in
32219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220 *) ac_try_echo=$ac_try;;
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223 (eval "$ac_try") 2>&5
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
32227 ac_cv_cxx_have_std_ext_hash_set=yes
32229 echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32232 ac_cv_cxx_have_std_ext_hash_set=no
32235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32237 ac_cpp='$CPP $CPPFLAGS'
32238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32243 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32244 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32245 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_STD_EXT_HASH_SET 1
32254 cat >>confdefs.h <<\_ACEOF
32255 #define HAVE_STD_EXT_HASH_SET 0
32260 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32261 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32262 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32263 echo $ECHO_N "(cached) $ECHO_C" >&6
32267 ac_cpp='$CXXCPP $CPPFLAGS'
32268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32272 cat >conftest.$ac_ext <<_ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h. */
32278 #include <ext/hash_set>
32279 #ifdef HAVE_NAMESPACES
32280 using namespace __gnu_cxx;
32290 rm -f conftest.$ac_objext
32291 if { (ac_try="$ac_compile"
32292 case "(($ac_try" in
32293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294 *) ac_try_echo=$ac_try;;
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297 (eval "$ac_compile") 2>conftest.er1
32299 grep -v '^ *+' conftest.er1 >conftest.err
32301 cat conftest.err >&5
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); } &&
32304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32305 { (case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_try") 2>&5
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; } &&
32314 { ac_try='test -s conftest.$ac_objext'
32315 { (case "(($ac_try" in
32316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317 *) ac_try_echo=$ac_try;;
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320 (eval "$ac_try") 2>&5
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); }; }; then
32324 ac_cv_cxx_have_gnu_ext_hash_set=yes
32326 echo "$as_me: failed program was:" >&5
32327 sed 's/^/| /' conftest.$ac_ext >&5
32329 ac_cv_cxx_have_gnu_ext_hash_set=no
32332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32334 ac_cpp='$CPP $CPPFLAGS'
32335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32341 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32342 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32345 cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_GNU_EXT_HASH_SET 1
32351 cat >>confdefs.h <<\_ACEOF
32352 #define HAVE_GNU_EXT_HASH_SET 0
32357 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32358 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32359 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32364 ac_cpp='$CXXCPP $CPPFLAGS'
32365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32369 cat >conftest.$ac_ext <<_ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32375 #include <hash_set>
32379 hash_set<int> t; return 0;
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_compile") 2>conftest.er1
32393 grep -v '^ *+' conftest.er1 >conftest.err
32395 cat conftest.err >&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); } &&
32398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32399 { (case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_try") 2>&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; } &&
32408 { ac_try='test -s conftest.$ac_objext'
32409 { (case "(($ac_try" in
32410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_try") 2>&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; }; then
32418 ac_cv_cxx_have_global_hash_set=yes
32420 echo "$as_me: failed program was:" >&5
32421 sed 's/^/| /' conftest.$ac_ext >&5
32423 ac_cv_cxx_have_global_hash_set=no
32426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32428 ac_cpp='$CPP $CPPFLAGS'
32429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32434 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32435 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32436 if test "$ac_cv_cxx_have_global_hash_set" = yes
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_GLOBAL_HASH_SET 1
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_GLOBAL_HASH_SET 0
32451 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32452 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32453 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32454 echo $ECHO_N "(cached) $ECHO_C" >&6
32458 ac_cpp='$CXXCPP $CPPFLAGS'
32459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32463 cat >conftest.$ac_ext <<_ACEOF
32466 cat confdefs.h >>conftest.$ac_ext
32467 cat >>conftest.$ac_ext <<_ACEOF
32468 /* end confdefs.h. */
32469 #include <iterator>
32470 #ifdef HAVE_NAMESPACES
32471 using namespace std;
32476 iterator<int,int,int> t; return 0;
32481 rm -f conftest.$ac_objext
32482 if { (ac_try="$ac_compile"
32483 case "(($ac_try" in
32484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485 *) ac_try_echo=$ac_try;;
32487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488 (eval "$ac_compile") 2>conftest.er1
32490 grep -v '^ *+' conftest.er1 >conftest.err
32492 cat conftest.err >&5
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); } &&
32495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32496 { (case "(($ac_try" in
32497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 *) ac_try_echo=$ac_try;;
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501 (eval "$ac_try") 2>&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; } &&
32505 { ac_try='test -s conftest.$ac_objext'
32506 { (case "(($ac_try" in
32507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508 *) ac_try_echo=$ac_try;;
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511 (eval "$ac_try") 2>&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515 ac_cv_cxx_have_std_iterator=yes
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32520 ac_cv_cxx_have_std_iterator=no
32523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32525 ac_cpp='$CPP $CPPFLAGS'
32526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32532 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32533 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32534 if test "$ac_cv_cxx_have_std_iterator" = yes
32537 cat >>confdefs.h <<\_ACEOF
32538 #define HAVE_STD_ITERATOR 1
32543 cat >>confdefs.h <<\_ACEOF
32544 #define HAVE_STD_ITERATOR 0
32549 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32550 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32551 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32552 echo $ECHO_N "(cached) $ECHO_C" >&6
32556 ac_cpp='$CXXCPP $CPPFLAGS'
32557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32561 cat >conftest.$ac_ext <<_ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h. */
32567 #include <iterator>
32568 #ifdef HAVE_NAMESPACES
32569 using namespace std;
32574 bidirectional_iterator<int,int> t; return 0;
32579 rm -f conftest.$ac_objext
32580 if { (ac_try="$ac_compile"
32581 case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_compile") 2>conftest.er1
32588 grep -v '^ *+' conftest.er1 >conftest.err
32590 cat conftest.err >&5
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); } &&
32593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32594 { (case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_try") 2>&5
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; } &&
32603 { ac_try='test -s conftest.$ac_objext'
32604 { (case "(($ac_try" in
32605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_try") 2>&5
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; }; then
32613 ac_cv_cxx_have_bi_iterator=yes
32615 echo "$as_me: failed program was:" >&5
32616 sed 's/^/| /' conftest.$ac_ext >&5
32618 ac_cv_cxx_have_bi_iterator=no
32621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32623 ac_cpp='$CPP $CPPFLAGS'
32624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32630 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32631 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32632 if test "$ac_cv_cxx_have_bi_iterator" = yes
32635 cat >>confdefs.h <<\_ACEOF
32636 #define HAVE_BI_ITERATOR 1
32641 cat >>confdefs.h <<\_ACEOF
32642 #define HAVE_BI_ITERATOR 0
32647 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32648 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32649 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32650 echo $ECHO_N "(cached) $ECHO_C" >&6
32654 ac_cpp='$CXXCPP $CPPFLAGS'
32655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32659 cat >conftest.$ac_ext <<_ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h. */
32665 #include <iterator>
32666 #ifdef HAVE_NAMESPACES
32667 using namespace std;
32672 forward_iterator<int,int> t; return 0;
32677 rm -f conftest.$ac_objext
32678 if { (ac_try="$ac_compile"
32679 case "(($ac_try" in
32680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681 *) ac_try_echo=$ac_try;;
32683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684 (eval "$ac_compile") 2>conftest.er1
32686 grep -v '^ *+' conftest.er1 >conftest.err
32688 cat conftest.err >&5
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); } &&
32691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32692 { (case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_try") 2>&5
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest.$ac_objext'
32702 { (case "(($ac_try" in
32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704 *) ac_try_echo=$ac_try;;
32706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32707 (eval "$ac_try") 2>&5
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; }; then
32711 ac_cv_cxx_have_fwd_iterator=yes
32713 echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32716 ac_cv_cxx_have_fwd_iterator=no
32719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32721 ac_cpp='$CPP $CPPFLAGS'
32722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32728 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32729 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32730 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_FWD_ITERATOR 1
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_FWD_ITERATOR 0
32746 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32747 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32748 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32749 echo $ECHO_N "(cached) $ECHO_C" >&6
32752 ac_cpp='$CXXCPP $CPPFLAGS'
32753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32772 rm -f conftest.$ac_objext
32773 if { (ac_try="$ac_compile"
32774 case "(($ac_try" in
32775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776 *) ac_try_echo=$ac_try;;
32778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779 (eval "$ac_compile") 2>conftest.er1
32781 grep -v '^ *+' conftest.er1 >conftest.err
32783 cat conftest.err >&5
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); } &&
32786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32787 { (case "(($ac_try" in
32788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32789 *) ac_try_echo=$ac_try;;
32791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32792 (eval "$ac_try") 2>&5
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); }; } &&
32796 { ac_try='test -s conftest.$ac_objext'
32797 { (case "(($ac_try" in
32798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799 *) ac_try_echo=$ac_try;;
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802 (eval "$ac_try") 2>&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; }; then
32806 ac_cv_func_isnan_in_math_h=yes
32808 echo "$as_me: failed program was:" >&5
32809 sed 's/^/| /' conftest.$ac_ext >&5
32811 ac_cv_func_isnan_in_math_h=no
32814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32816 ac_cpp='$CPP $CPPFLAGS'
32817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32822 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32823 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32826 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32828 cat >>confdefs.h <<\_ACEOF
32829 #define HAVE_ISNAN_IN_MATH_H 1
32834 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32835 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32836 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32837 echo $ECHO_N "(cached) $ECHO_C" >&6
32840 ac_cpp='$CXXCPP $CPPFLAGS'
32841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32845 cat >conftest.$ac_ext <<_ACEOF
32848 cat confdefs.h >>conftest.$ac_ext
32849 cat >>conftest.$ac_ext <<_ACEOF
32850 /* end confdefs.h. */
32860 rm -f conftest.$ac_objext
32861 if { (ac_try="$ac_compile"
32862 case "(($ac_try" in
32863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32864 *) ac_try_echo=$ac_try;;
32866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867 (eval "$ac_compile") 2>conftest.er1
32869 grep -v '^ *+' conftest.er1 >conftest.err
32871 cat conftest.err >&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } &&
32874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32875 { (case "(($ac_try" in
32876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877 *) ac_try_echo=$ac_try;;
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880 (eval "$ac_try") 2>&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); }; } &&
32884 { ac_try='test -s conftest.$ac_objext'
32885 { (case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; }; then
32894 ac_cv_func_isnan_in_cmath=yes
32896 echo "$as_me: failed program was:" >&5
32897 sed 's/^/| /' conftest.$ac_ext >&5
32899 ac_cv_func_isnan_in_cmath=no
32902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32904 ac_cpp='$CPP $CPPFLAGS'
32905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32910 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32911 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32913 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32915 cat >>confdefs.h <<\_ACEOF
32916 #define HAVE_ISNAN_IN_CMATH 1
32921 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32922 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32923 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32927 ac_cpp='$CXXCPP $CPPFLAGS'
32928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32932 cat >conftest.$ac_ext <<_ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32942 float f; std::isnan(f);
32947 rm -f conftest.$ac_objext
32948 if { (ac_try="$ac_compile"
32949 case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954 (eval "$ac_compile") 2>conftest.er1
32956 grep -v '^ *+' conftest.er1 >conftest.err
32958 cat conftest.err >&5
32959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960 (exit $ac_status); } &&
32961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32962 { (case "(($ac_try" in
32963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32964 *) ac_try_echo=$ac_try;;
32966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32967 (eval "$ac_try") 2>&5
32969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); }; } &&
32971 { ac_try='test -s conftest.$ac_objext'
32972 { (case "(($ac_try" in
32973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974 *) ac_try_echo=$ac_try;;
32976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977 (eval "$ac_try") 2>&5
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); }; }; then
32981 ac_cv_func_std_isnan_in_cmath=yes
32983 echo "$as_me: failed program was:" >&5
32984 sed 's/^/| /' conftest.$ac_ext >&5
32986 ac_cv_func_std_isnan_in_cmath=no
32989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32991 ac_cpp='$CPP $CPPFLAGS'
32992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32997 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32998 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33000 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33002 cat >>confdefs.h <<\_ACEOF
33003 #define HAVE_STD_ISNAN_IN_CMATH 1
33009 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33010 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33011 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33012 echo $ECHO_N "(cached) $ECHO_C" >&6
33015 ac_cpp='$CXXCPP $CPPFLAGS'
33016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33020 cat >conftest.$ac_ext <<_ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h. */
33035 rm -f conftest.$ac_objext
33036 if { (ac_try="$ac_compile"
33037 case "(($ac_try" in
33038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33039 *) ac_try_echo=$ac_try;;
33041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33042 (eval "$ac_compile") 2>conftest.er1
33044 grep -v '^ *+' conftest.er1 >conftest.err
33046 cat conftest.err >&5
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); } &&
33049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33050 { (case "(($ac_try" in
33051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33052 *) ac_try_echo=$ac_try;;
33054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33055 (eval "$ac_try") 2>&5
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); }; } &&
33059 { ac_try='test -s conftest.$ac_objext'
33060 { (case "(($ac_try" in
33061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062 *) ac_try_echo=$ac_try;;
33064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065 (eval "$ac_try") 2>&5
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; }; then
33069 ac_cv_func_isinf_in_math_h=yes
33071 echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.$ac_ext >&5
33074 ac_cv_func_isinf_in_math_h=no
33077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33079 ac_cpp='$CPP $CPPFLAGS'
33080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33085 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33086 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33088 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33090 cat >>confdefs.h <<\_ACEOF
33091 #define HAVE_ISINF_IN_MATH_H 1
33096 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33097 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33098 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33102 ac_cpp='$CXXCPP $CPPFLAGS'
33103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33107 cat >conftest.$ac_ext <<_ACEOF
33110 cat confdefs.h >>conftest.$ac_ext
33111 cat >>conftest.$ac_ext <<_ACEOF
33112 /* end confdefs.h. */
33122 rm -f conftest.$ac_objext
33123 if { (ac_try="$ac_compile"
33124 case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_compile") 2>conftest.er1
33131 grep -v '^ *+' conftest.er1 >conftest.err
33133 cat conftest.err >&5
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); } &&
33136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33137 { (case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_try") 2>&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; } &&
33146 { ac_try='test -s conftest.$ac_objext'
33147 { (case "(($ac_try" in
33148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149 *) ac_try_echo=$ac_try;;
33151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152 (eval "$ac_try") 2>&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; }; then
33156 ac_cv_func_isinf_in_cmath=yes
33158 echo "$as_me: failed program was:" >&5
33159 sed 's/^/| /' conftest.$ac_ext >&5
33161 ac_cv_func_isinf_in_cmath=no
33164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33166 ac_cpp='$CPP $CPPFLAGS'
33167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33172 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33173 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33175 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33177 cat >>confdefs.h <<\_ACEOF
33178 #define HAVE_ISINF_IN_CMATH 1
33183 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33184 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33185 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33189 ac_cpp='$CXXCPP $CPPFLAGS'
33190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33194 cat >conftest.$ac_ext <<_ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h. */
33204 float f; std::isinf(f)}
33209 rm -f conftest.$ac_objext
33210 if { (ac_try="$ac_compile"
33211 case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_compile") 2>conftest.er1
33218 grep -v '^ *+' conftest.er1 >conftest.err
33220 cat conftest.err >&5
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
33223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33224 { (case "(($ac_try" in
33225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 *) ac_try_echo=$ac_try;;
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 (eval "$ac_try") 2>&5
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; } &&
33233 { ac_try='test -s conftest.$ac_objext'
33234 { (case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_try") 2>&5
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
33243 ac_cv_func_std_isinf_in_cmath=yes
33245 echo "$as_me: failed program was:" >&5
33246 sed 's/^/| /' conftest.$ac_ext >&5
33248 ac_cv_func_std_isinf_in_cmath=no
33251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33253 ac_cpp='$CPP $CPPFLAGS'
33254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33259 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33260 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33262 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33264 cat >>confdefs.h <<\_ACEOF
33265 #define HAVE_STD_ISINF_IN_CMATH 1
33270 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33271 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33272 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33273 echo $ECHO_N "(cached) $ECHO_C" >&6
33276 ac_cpp='$CXXCPP $CPPFLAGS'
33277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33281 cat >conftest.$ac_ext <<_ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h. */
33287 #include <ieeefp.h>
33291 float f; finite(f);
33296 rm -f conftest.$ac_objext
33297 if { (ac_try="$ac_compile"
33298 case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_compile") 2>conftest.er1
33305 grep -v '^ *+' conftest.er1 >conftest.err
33307 cat conftest.err >&5
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); } &&
33310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33311 { (case "(($ac_try" in
33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316 (eval "$ac_try") 2>&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; } &&
33320 { ac_try='test -s conftest.$ac_objext'
33321 { (case "(($ac_try" in
33322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323 *) ac_try_echo=$ac_try;;
33325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326 (eval "$ac_try") 2>&5
33328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); }; }; then
33330 ac_cv_func_finite_in_ieeefp_h=yes
33332 echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33335 ac_cv_func_finite_in_ieeefp_h=no
33338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33340 ac_cpp='$CPP $CPPFLAGS'
33341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33346 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33347 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33349 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33351 cat >>confdefs.h <<\_ACEOF
33352 #define HAVE_FINITE_IN_IEEEFP_H 1
33359 if test "$llvm_cv_platform_type" = "Unix" ; then
33362 for ac_header in stdlib.h unistd.h
33364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33369 echo $ECHO_N "(cached) $ECHO_C" >&6
33371 ac_res=`eval echo '${'$as_ac_Header'}'`
33372 { echo "$as_me:$LINENO: result: $ac_res" >&5
33373 echo "${ECHO_T}$ac_res" >&6; }
33375 # Is the header compilable?
33376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33378 cat >conftest.$ac_ext <<_ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h. */
33384 $ac_includes_default
33385 #include <$ac_header>
33387 rm -f conftest.$ac_objext
33388 if { (ac_try="$ac_compile"
33389 case "(($ac_try" in
33390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391 *) ac_try_echo=$ac_try;;
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394 (eval "$ac_compile") 2>conftest.er1
33396 grep -v '^ *+' conftest.er1 >conftest.err
33398 cat conftest.err >&5
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } &&
33401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33402 { (case "(($ac_try" in
33403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404 *) ac_try_echo=$ac_try;;
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407 (eval "$ac_try") 2>&5
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); }; } &&
33411 { ac_try='test -s conftest.$ac_objext'
33412 { (case "(($ac_try" in
33413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414 *) ac_try_echo=$ac_try;;
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417 (eval "$ac_try") 2>&5
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
33421 ac_header_compiler=yes
33423 echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33426 ac_header_compiler=no
33429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33431 echo "${ECHO_T}$ac_header_compiler" >&6; }
33433 # Is the header present?
33434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33436 cat >conftest.$ac_ext <<_ACEOF
33439 cat confdefs.h >>conftest.$ac_ext
33440 cat >>conftest.$ac_ext <<_ACEOF
33441 /* end confdefs.h. */
33442 #include <$ac_header>
33444 if { (ac_try="$ac_cpp conftest.$ac_ext"
33445 case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33452 grep -v '^ *+' conftest.er1 >conftest.err
33454 cat conftest.err >&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); } >/dev/null; then
33457 if test -s conftest.err; then
33458 ac_cpp_err=$ac_c_preproc_warn_flag
33459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33466 if test -z "$ac_cpp_err"; then
33467 ac_header_preproc=yes
33469 echo "$as_me: failed program was:" >&5
33470 sed 's/^/| /' conftest.$ac_ext >&5
33472 ac_header_preproc=no
33475 rm -f conftest.err conftest.$ac_ext
33476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33477 echo "${ECHO_T}$ac_header_preproc" >&6; }
33479 # So? What about this header?
33480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33486 ac_header_preproc=yes
33489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33502 ## ----------------------------------- ##
33503 ## Report this to llvmbugs@cs.uiuc.edu ##
33504 ## ----------------------------------- ##
33506 ) | sed "s/^/$as_me: WARNING: /" >&2
33509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33512 echo $ECHO_N "(cached) $ECHO_C" >&6
33514 eval "$as_ac_Header=\$ac_header_preproc"
33516 ac_res=`eval echo '${'$as_ac_Header'}'`
33517 { echo "$as_me:$LINENO: result: $ac_res" >&5
33518 echo "${ECHO_T}$ac_res" >&6; }
33521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33522 cat >>confdefs.h <<_ACEOF
33523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33531 for ac_func in getpagesize
33533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33537 echo $ECHO_N "(cached) $ECHO_C" >&6
33539 cat >conftest.$ac_ext <<_ACEOF
33542 cat confdefs.h >>conftest.$ac_ext
33543 cat >>conftest.$ac_ext <<_ACEOF
33544 /* end confdefs.h. */
33545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33547 #define $ac_func innocuous_$ac_func
33549 /* System header to define __stub macros and hopefully few prototypes,
33550 which can conflict with char $ac_func (); below.
33551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33552 <limits.h> exists even on freestanding compilers. */
33555 # include <limits.h>
33557 # include <assert.h>
33562 /* Override any GCC internal prototype to avoid an error.
33563 Use char because int might match the return type of a GCC
33564 builtin and then its argument prototype would still apply. */
33569 /* The GNU C library defines this for functions which it implements
33570 to always fail with ENOSYS. Some functions are actually named
33571 something starting with __ and the normal name is an alias. */
33572 #if defined __stub_$ac_func || defined __stub___$ac_func
33579 return $ac_func ();
33584 rm -f conftest.$ac_objext conftest$ac_exeext
33585 if { (ac_try="$ac_link"
33586 case "(($ac_try" in
33587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588 *) ac_try_echo=$ac_try;;
33590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591 (eval "$ac_link") 2>conftest.er1
33593 grep -v '^ *+' conftest.er1 >conftest.err
33595 cat conftest.err >&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); } &&
33598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33599 { (case "(($ac_try" in
33600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33601 *) ac_try_echo=$ac_try;;
33603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33604 (eval "$ac_try") 2>&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; } &&
33608 { ac_try='test -s conftest$ac_exeext'
33609 { (case "(($ac_try" in
33610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611 *) ac_try_echo=$ac_try;;
33613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614 (eval "$ac_try") 2>&5
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); }; }; then
33618 eval "$as_ac_var=yes"
33620 echo "$as_me: failed program was:" >&5
33621 sed 's/^/| /' conftest.$ac_ext >&5
33623 eval "$as_ac_var=no"
33626 rm -f core conftest.err conftest.$ac_objext \
33627 conftest$ac_exeext conftest.$ac_ext
33629 ac_res=`eval echo '${'$as_ac_var'}'`
33630 { echo "$as_me:$LINENO: result: $ac_res" >&5
33631 echo "${ECHO_T}$ac_res" >&6; }
33632 if test `eval echo '${'$as_ac_var'}'` = yes; then
33633 cat >>confdefs.h <<_ACEOF
33634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33640 { echo "$as_me:$LINENO: checking for working mmap" >&5
33641 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33642 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33645 if test "$cross_compiling" = yes; then
33646 ac_cv_func_mmap_fixed_mapped=no
33648 cat >conftest.$ac_ext <<_ACEOF
33651 cat confdefs.h >>conftest.$ac_ext
33652 cat >>conftest.$ac_ext <<_ACEOF
33653 /* end confdefs.h. */
33654 $ac_includes_default
33655 /* malloc might have been renamed as rpl_malloc. */
33658 /* Thanks to Mike Haertel and Jim Avera for this test.
33659 Here is a matrix of mmap possibilities:
33660 mmap private not fixed
33661 mmap private fixed at somewhere currently unmapped
33662 mmap private fixed at somewhere already mapped
33663 mmap shared not fixed
33664 mmap shared fixed at somewhere currently unmapped
33665 mmap shared fixed at somewhere already mapped
33666 For private mappings, we should verify that changes cannot be read()
33667 back from the file, nor mmap's back from the file at a different
33668 address. (There have been systems where private was not correctly
33669 implemented like the infamous i386 svr4.0, and systems where the
33670 VM page cache was not coherent with the file system buffer cache
33671 like early versions of FreeBSD and possibly contemporary NetBSD.)
33672 For shared mappings, we should conversely verify that changes get
33673 propagated back to all the places they're supposed to be.
33675 Grep wants private fixed already mapped.
33676 The main things grep needs to know about mmap are:
33677 * does it exist and is it safe to write into the mmap'd area
33678 * how to use it (BSD variants) */
33681 #include <sys/mman.h>
33683 #if !STDC_HEADERS && !HAVE_STDLIB_H
33687 /* This mess was copied from the GNU getpagesize.h. */
33688 #if !HAVE_GETPAGESIZE
33689 /* Assume that all systems that can run configure have sys/param.h. */
33690 # if !HAVE_SYS_PARAM_H
33691 # define HAVE_SYS_PARAM_H 1
33694 # ifdef _SC_PAGESIZE
33695 # define getpagesize() sysconf(_SC_PAGESIZE)
33696 # else /* no _SC_PAGESIZE */
33697 # if HAVE_SYS_PARAM_H
33698 # include <sys/param.h>
33699 # ifdef EXEC_PAGESIZE
33700 # define getpagesize() EXEC_PAGESIZE
33701 # else /* no EXEC_PAGESIZE */
33703 # define getpagesize() NBPG * CLSIZE
33706 # endif /* no CLSIZE */
33707 # else /* no NBPG */
33709 # define getpagesize() NBPC
33710 # else /* no NBPC */
33712 # define getpagesize() PAGESIZE
33713 # endif /* PAGESIZE */
33714 # endif /* no NBPC */
33715 # endif /* no NBPG */
33716 # endif /* no EXEC_PAGESIZE */
33717 # else /* no HAVE_SYS_PARAM_H */
33718 # define getpagesize() 8192 /* punt totally */
33719 # endif /* no HAVE_SYS_PARAM_H */
33720 # endif /* no _SC_PAGESIZE */
33722 #endif /* no HAVE_GETPAGESIZE */
33727 char *data, *data2, *data3;
33731 pagesize = getpagesize ();
33733 /* First, make a file with some known garbage in it. */
33734 data = (char *) malloc (pagesize);
33737 for (i = 0; i < pagesize; ++i)
33738 *(data + i) = rand ();
33740 fd = creat ("conftest.mmap", 0600);
33743 if (write (fd, data, pagesize) != pagesize)
33747 /* Next, try to mmap the file at a fixed address which already has
33748 something else allocated at it. If we can, also make sure that
33749 we see the same garbage. */
33750 fd = open ("conftest.mmap", O_RDWR);
33753 data2 = (char *) malloc (2 * pagesize);
33756 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33757 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33758 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33760 for (i = 0; i < pagesize; ++i)
33761 if (*(data + i) != *(data2 + i))
33764 /* Finally, make sure that changes to the mapped area do not
33765 percolate back to the file as seen by read(). (This is a bug on
33766 some variants of i386 svr4.0.) */
33767 for (i = 0; i < pagesize; ++i)
33768 *(data2 + i) = *(data2 + i) + 1;
33769 data3 = (char *) malloc (pagesize);
33772 if (read (fd, data3, pagesize) != pagesize)
33774 for (i = 0; i < pagesize; ++i)
33775 if (*(data + i) != *(data3 + i))
33781 rm -f conftest$ac_exeext
33782 if { (ac_try="$ac_link"
33783 case "(($ac_try" in
33784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785 *) ac_try_echo=$ac_try;;
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788 (eval "$ac_link") 2>&5
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33792 { (case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_try") 2>&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 ac_cv_func_mmap_fixed_mapped=yes
33803 echo "$as_me: program exited with status $ac_status" >&5
33804 echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33807 ( exit $ac_status )
33808 ac_cv_func_mmap_fixed_mapped=no
33810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33815 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33816 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33817 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33819 cat >>confdefs.h <<\_ACEOF
33820 #define HAVE_MMAP 1
33824 rm -f conftest.mmap
33826 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33827 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33828 if test "${ac_cv_func_mmap_file+set}" = set; then
33829 echo $ECHO_N "(cached) $ECHO_C" >&6
33832 ac_cpp='$CPP $CPPFLAGS'
33833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33837 if test "$cross_compiling" = yes; then
33838 ac_cv_func_mmap_file=no
33840 cat >conftest.$ac_ext <<_ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h. */
33848 #include <sys/types.h>
33849 #include <sys/mman.h>
33857 fd = creat ("foo",0777);
33858 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33860 return (fd != (int) MAP_FAILED);
33865 rm -f conftest$ac_exeext
33866 if { (ac_try="$ac_link"
33867 case "(($ac_try" in
33868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33869 *) ac_try_echo=$ac_try;;
33871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33872 (eval "$ac_link") 2>&5
33874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33876 { (case "(($ac_try" in
33877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878 *) ac_try_echo=$ac_try;;
33880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33881 (eval "$ac_try") 2>&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; }; then
33885 ac_cv_func_mmap_file=yes
33887 echo "$as_me: program exited with status $ac_status" >&5
33888 echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33891 ( exit $ac_status )
33892 ac_cv_func_mmap_file=no
33894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33899 ac_cpp='$CPP $CPPFLAGS'
33900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33906 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33907 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33908 if test "$ac_cv_func_mmap_file" = yes; then
33910 cat >>confdefs.h <<\_ACEOF
33911 #define HAVE_MMAP_FILE
33918 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33919 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33920 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33921 echo $ECHO_N "(cached) $ECHO_C" >&6
33923 if test "$llvm_cv_os_type" = "Interix" ; then
33924 ac_cv_need_dev_zero_for_mmap=yes
33926 ac_cv_need_dev_zero_for_mmap=no
33930 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33931 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33932 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33934 cat >>confdefs.h <<\_ACEOF
33935 #define NEED_DEV_ZERO_FOR_MMAP 1
33940 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33942 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33943 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33945 if test "$ac_cv_func_mmap_file" = "no"
33947 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33948 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33954 for ac_func in __dso_handle
33956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33960 echo $ECHO_N "(cached) $ECHO_C" >&6
33962 cat >conftest.$ac_ext <<_ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h. */
33968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33970 #define $ac_func innocuous_$ac_func
33972 /* System header to define __stub macros and hopefully few prototypes,
33973 which can conflict with char $ac_func (); below.
33974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33975 <limits.h> exists even on freestanding compilers. */
33978 # include <limits.h>
33980 # include <assert.h>
33985 /* Override any GCC internal prototype to avoid an error.
33986 Use char because int might match the return type of a GCC
33987 builtin and then its argument prototype would still apply. */
33992 /* The GNU C library defines this for functions which it implements
33993 to always fail with ENOSYS. Some functions are actually named
33994 something starting with __ and the normal name is an alias. */
33995 #if defined __stub_$ac_func || defined __stub___$ac_func
34002 return $ac_func ();
34007 rm -f conftest.$ac_objext conftest$ac_exeext
34008 if { (ac_try="$ac_link"
34009 case "(($ac_try" in
34010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011 *) ac_try_echo=$ac_try;;
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014 (eval "$ac_link") 2>conftest.er1
34016 grep -v '^ *+' conftest.er1 >conftest.err
34018 cat conftest.err >&5
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } &&
34021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34022 { (case "(($ac_try" in
34023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024 *) ac_try_echo=$ac_try;;
34026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027 (eval "$ac_try") 2>&5
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); }; } &&
34031 { ac_try='test -s conftest$ac_exeext'
34032 { (case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_try") 2>&5
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; }; then
34041 eval "$as_ac_var=yes"
34043 echo "$as_me: failed program was:" >&5
34044 sed 's/^/| /' conftest.$ac_ext >&5
34046 eval "$as_ac_var=no"
34049 rm -f core conftest.err conftest.$ac_objext \
34050 conftest$ac_exeext conftest.$ac_ext
34052 ac_res=`eval echo '${'$as_ac_var'}'`
34053 { echo "$as_me:$LINENO: result: $ac_res" >&5
34054 echo "${ECHO_T}$ac_res" >&6; }
34055 if test `eval echo '${'$as_ac_var'}'` = yes; then
34056 cat >>confdefs.h <<_ACEOF
34057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34064 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34065 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34066 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34067 echo $ECHO_N "(cached) $ECHO_C" >&6
34069 llvm_cv_llvmgcc_sanity="no"
34070 if test -x "$LLVMGCC" ; then
34071 cp /dev/null conftest.c
34072 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34073 grep 'target datalayout =' > /dev/null 2>&1
34074 if test $? -eq 0 ; then
34075 llvm_cv_llvmgcc_sanity="yes"
34080 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34081 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34083 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34084 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34085 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34086 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34087 LLVMCC1=$llvmcc1path
34089 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34090 LLVMCC1PLUS=$llvmcc1pluspath
34092 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34093 LLVMGCCDIR=$llvmgccdir
34095 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34096 LLVMGCCLIBEXEC=$llvmgcclibexec
34098 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34099 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34100 LLVMGCC_VERSION=$llvmgccversion
34102 LLVMGCC_MAJVERS=$llvmgccmajvers
34104 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34105 LLVMGCC_LANGS=$llvmgcclangs
34107 { echo "$as_me:$LINENO: result: ok" >&5
34108 echo "${ECHO_T}ok" >&6; }
34111 SHLIBEXT=$libltdl_cv_shlibext
34114 # Translate the various configuration directories and other basic
34115 # information into substitutions that will end up in Makefile.config.in
34116 # that these configured values can be used by the makefiles
34117 if test "${prefix}" = "NONE" ; then
34118 prefix="/usr/local"
34120 eval LLVM_PREFIX="${prefix}";
34121 eval LLVM_BINDIR="${prefix}/bin";
34122 eval LLVM_LIBDIR="${prefix}/lib";
34123 eval LLVM_DATADIR="${prefix}/share/llvm";
34124 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34125 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34126 eval LLVM_INCLUDEDIR="${prefix}/include";
34127 eval LLVM_INFODIR="${prefix}/info";
34128 eval LLVM_MANDIR="${prefix}/man";
34129 LLVM_CONFIGTIME=`date`
34141 # Place the various directores into the config.h file as #defines so that we
34142 # can know about the installation paths within LLVM.
34144 cat >>confdefs.h <<_ACEOF
34145 #define LLVM_PREFIX "$LLVM_PREFIX"
34149 cat >>confdefs.h <<_ACEOF
34150 #define LLVM_BINDIR "$LLVM_BINDIR"
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_DATADIR "$LLVM_DATADIR"
34164 cat >>confdefs.h <<_ACEOF
34165 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34169 cat >>confdefs.h <<_ACEOF
34170 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34174 cat >>confdefs.h <<_ACEOF
34175 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34179 cat >>confdefs.h <<_ACEOF
34180 #define LLVM_INFODIR "$LLVM_INFODIR"
34184 cat >>confdefs.h <<_ACEOF
34185 #define LLVM_MANDIR "$LLVM_MANDIR"
34189 cat >>confdefs.h <<_ACEOF
34190 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34194 cat >>confdefs.h <<_ACEOF
34195 #define LLVM_HOSTTRIPLE "$host"
34199 # Determine which bindings to build.
34200 if test "$BINDINGS_TO_BUILD" = auto ; then
34201 BINDINGS_TO_BUILD=""
34202 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34203 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34206 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34209 # This isn't really configurey, but it avoids having to repeat the list in
34214 # Do any work necessary to ensure that bindings have what they need.
34215 binding_prereqs_failed=0
34216 for a_binding in $BINDINGS_TO_BUILD ; do
34217 case "$a_binding" in
34219 if test "x$OCAMLC" = x ; then
34220 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34221 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34222 binding_prereqs_failed=1
34224 if test "x$OCAMLDEP" = x ; then
34225 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34227 binding_prereqs_failed=1
34229 if test "x$OCAMLOPT" = x ; then
34230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34233 if test "x$with_ocaml_libdir" != xauto ; then
34234 OCAML_LIBDIR=$with_ocaml_libdir
34237 ocaml_stdlib="`"$OCAMLC" -where`"
34238 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34240 # ocaml stdlib is beneath our prefix; use stdlib
34241 OCAML_LIBDIR=$ocaml_stdlib
34244 # ocaml stdlib is outside our prefix; use libdir/ocaml
34245 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34252 if test "$binding_prereqs_failed" = 1 ; then
34253 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34254 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34255 { (exit 1); exit 1; }; }
34260 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34262 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34264 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34266 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34268 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34271 ac_config_files="$ac_config_files Makefile.config"
34274 ac_config_files="$ac_config_files llvm.spec"
34277 ac_config_files="$ac_config_files docs/doxygen.cfg"
34280 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34283 ac_config_commands="$ac_config_commands setup"
34285 ac_config_commands="$ac_config_commands Makefile"
34288 ac_config_commands="$ac_config_commands Makefile.common"
34291 ac_config_commands="$ac_config_commands examples/Makefile"
34294 ac_config_commands="$ac_config_commands lib/Makefile"
34297 ac_config_commands="$ac_config_commands runtime/Makefile"
34300 ac_config_commands="$ac_config_commands test/Makefile"
34303 ac_config_commands="$ac_config_commands test/Makefile.tests"
34306 ac_config_commands="$ac_config_commands tools/Makefile"
34309 ac_config_commands="$ac_config_commands utils/Makefile"
34312 ac_config_commands="$ac_config_commands projects/Makefile"
34315 ac_config_commands="$ac_config_commands bindings/Makefile"
34318 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34322 cat >confcache <<\_ACEOF
34323 # This file is a shell script that caches the results of configure
34324 # tests run on this system so they can be shared between configure
34325 # scripts and configure runs, see configure's option --config-cache.
34326 # It is not useful on other systems. If it contains results you don't
34327 # want to keep, you may remove or edit it.
34329 # config.status only pays attention to the cache file if you give it
34330 # the --recheck option to rerun configure.
34332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34334 # following values.
34338 # The following way of writing the cache mishandles newlines in values,
34339 # but we know of no workaround that is simple, portable, and efficient.
34340 # So, we kill variables containing newlines.
34341 # Ultrix sh set writes to stderr and can't be redirected directly,
34342 # and sets the high bit in the cache file unless we assign to the vars.
34344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34345 eval ac_val=\$$ac_var
34349 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34350 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34353 _ | IFS | as_nl) ;; #(
34354 *) $as_unset $ac_var ;;
34360 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34361 *${as_nl}ac_space=\ *)
34362 # `set' does not quote correctly, so add quotes (double-quote
34363 # substitution turns \\\\ into \\, and sed turns \\ into \).
34366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34369 # `set' quotes correctly as required by POSIX, so do not add quotes.
34370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34381 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34383 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34384 if test -w "$cache_file"; then
34385 test "x$cache_file" != "x/dev/null" &&
34386 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34387 echo "$as_me: updating cache $cache_file" >&6;}
34388 cat confcache >$cache_file
34390 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34391 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34397 # Let make expand exec_prefix.
34398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34400 DEFS=-DHAVE_CONFIG_H
34404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34405 # 1. Remove the extension, and $U if already installed.
34406 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34407 ac_i=`echo "$ac_i" | sed "$ac_script"`
34408 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34409 # will be set to the directory where LIBOBJS objects are built.
34410 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34411 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34413 LIBOBJS=$ac_libobjs
34415 LTLIBOBJS=$ac_ltlibobjs
34418 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34419 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34420 Usually this means the macro was only invoked conditionally." >&5
34421 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34422 Usually this means the macro was only invoked conditionally." >&2;}
34423 { (exit 1); exit 1; }; }
34425 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34426 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34427 Usually this means the macro was only invoked conditionally." >&5
34428 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34429 Usually this means the macro was only invoked conditionally." >&2;}
34430 { (exit 1); exit 1; }; }
34433 : ${CONFIG_STATUS=./config.status}
34434 ac_clean_files_save=$ac_clean_files
34435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34436 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34437 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34438 cat >$CONFIG_STATUS <<_ACEOF
34440 # Generated by $as_me.
34441 # Run this file to recreate the current configuration.
34442 # Compiler output produced by configure, useful for debugging
34443 # configure, is in config.log if it exists.
34446 ac_cs_recheck=false
34448 SHELL=\${CONFIG_SHELL-$SHELL}
34451 cat >>$CONFIG_STATUS <<\_ACEOF
34452 ## --------------------- ##
34453 ## M4sh Initialization. ##
34454 ## --------------------- ##
34456 # Be Bourne compatible
34457 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34460 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34461 # is contrary to our usage. Disable this feature.
34462 alias -g '${1+"$@"}'='"$@"'
34463 setopt NO_GLOB_SUBST
34465 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34467 BIN_SH=xpg4; export BIN_SH # for Tru64
34468 DUALCASE=1; export DUALCASE # for MKS sh
34472 # Avoid depending upon Character Ranges.
34473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34476 as_cr_digits='0123456789'
34477 as_cr_alnum=$as_cr_Letters$as_cr_digits
34479 # The user is always right.
34480 if test "${PATH_SEPARATOR+set}" != set; then
34481 echo "#! /bin/sh" >conf$$.sh
34482 echo "exit 0" >>conf$$.sh
34484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34492 # Support unset when possible.
34493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34501 # We need space, tab and new line, in precisely that order. Quoting is
34502 # there to prevent editors from complaining about space-tab.
34503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34504 # splitting by setting IFS to empty value.)
34509 # Find who we are. Look in the path if we contain no directory separator.
34511 *[\\/]* ) as_myself=$0 ;;
34512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34513 for as_dir in $PATH
34516 test -z "$as_dir" && as_dir=.
34517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34523 # We did not find ourselves, most probably we were run as `sh COMMAND'
34524 # in which case we are not to be found in the path.
34525 if test "x$as_myself" = x; then
34528 if test ! -f "$as_myself"; then
34529 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34530 { (exit 1); exit 1; }
34533 # Work around bugs in pre-3.0 UWIN ksh.
34534 for as_var in ENV MAIL MAILPATH
34535 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34545 LC_TELEPHONE LC_TIME
34547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34548 eval $as_var=C; export $as_var
34550 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34554 # Required to use basename.
34555 if expr a : '\(a\)' >/dev/null 2>&1 &&
34556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34562 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34563 as_basename=basename
34569 # Name of the executable.
34570 as_me=`$as_basename -- "$0" ||
34571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34572 X"$0" : 'X\(//\)$' \| \
34573 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34575 sed '/^.*\/\([^/][^/]*\)\/*$/{
34594 as_lineno_1=$LINENO
34595 as_lineno_2=$LINENO
34596 test "x$as_lineno_1" != "x$as_lineno_2" &&
34597 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34599 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34600 # uniformly replaced by the line number. The first 'sed' inserts a
34601 # line-number line after each line using $LINENO; the second 'sed'
34602 # does the real work. The second script uses 'N' to pair each
34603 # line-number line with the line containing $LINENO, and appends
34604 # trailing '-' during substitution so that $LINENO is not a special
34605 # case at line end.
34606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34607 # scripts with optimization help from Paolo Bonzini. Blame Lee
34608 # E. McMahon (1931-1989) for sed's syntax. :-)
34620 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34623 ' >$as_me.lineno &&
34624 chmod +x "$as_me.lineno" ||
34625 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34626 { (exit 1); exit 1; }; }
34628 # Don't try to exec as it changes $[0], causing all sort of problems
34629 # (the dirname of $[0] is not the place where we might find the
34630 # original and so on. Autoconf is especially sensitive to this).
34631 . "./$as_me.lineno"
34632 # Exit status is that of the last command.
34637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34643 ECHO_C= ECHO_N= ECHO_T=
34644 case `echo -n x` in
34646 case `echo 'x\c'` in
34647 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34654 if expr a : '\(a\)' >/dev/null 2>&1 &&
34655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34661 rm -f conf$$ conf$$.exe conf$$.file
34662 if test -d conf$$.dir; then
34663 rm -f conf$$.dir/conf$$.file
34669 if ln -s conf$$.file conf$$ 2>/dev/null; then
34671 # ... but there are two gotchas:
34672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34674 # In both cases, we have to default to `cp -p'.
34675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34677 elif ln conf$$.file conf$$ 2>/dev/null; then
34682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34683 rmdir conf$$.dir 2>/dev/null
34685 if mkdir -p . 2>/dev/null; then
34688 test -d ./-p && rmdir ./-p
34692 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34693 # systems may use methods other than mode bits to determine executability.
34694 cat >conf$$.file <<_ASEOF
34698 chmod +x conf$$.file
34699 if test -x conf$$.file >/dev/null 2>&1; then
34700 as_executable_p="test -x"
34706 # Sed expression to map a string onto a valid CPP name.
34707 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34709 # Sed expression to map a string onto a valid variable name.
34710 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34715 # Save the log message, to keep $[0] and so on meaningful, and to
34716 # report actual input values of CONFIG_FILES etc. instead of their
34717 # values after options handling.
34719 This file was extended by llvm $as_me 2.4svn, which was
34720 generated by GNU Autoconf 2.60. Invocation command line was
34722 CONFIG_FILES = $CONFIG_FILES
34723 CONFIG_HEADERS = $CONFIG_HEADERS
34724 CONFIG_LINKS = $CONFIG_LINKS
34725 CONFIG_COMMANDS = $CONFIG_COMMANDS
34728 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34733 cat >>$CONFIG_STATUS <<_ACEOF
34734 # Files that config.status was made for.
34735 config_files="$ac_config_files"
34736 config_headers="$ac_config_headers"
34737 config_commands="$ac_config_commands"
34741 cat >>$CONFIG_STATUS <<\_ACEOF
34743 \`$as_me' instantiates files from templates according to the
34744 current configuration.
34746 Usage: $0 [OPTIONS] [FILE]...
34748 -h, --help print this help, then exit
34749 -V, --version print version number, then exit
34750 -q, --quiet do not print progress messages
34751 -d, --debug don't remove temporary files
34752 --recheck update $as_me by reconfiguring in the same conditions
34753 --file=FILE[:TEMPLATE]
34754 instantiate the configuration file FILE
34755 --header=FILE[:TEMPLATE]
34756 instantiate the configuration header FILE
34758 Configuration files:
34761 Configuration headers:
34764 Configuration commands:
34767 Report bugs to <bug-autoconf@gnu.org>."
34770 cat >>$CONFIG_STATUS <<_ACEOF
34772 llvm config.status 2.4svn
34773 configured by $0, generated by GNU Autoconf 2.60,
34774 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34776 Copyright (C) 2006 Free Software Foundation, Inc.
34777 This config.status script is free software; the Free Software Foundation
34778 gives unlimited permission to copy, distribute and modify it."
34785 cat >>$CONFIG_STATUS <<\_ACEOF
34786 # If no file are specified by the user, then we need to provide default
34787 # value. By we need to know if files were specified by the user.
34793 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34794 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34805 # Handling of the options.
34806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34808 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34809 echo "$ac_cs_version"; exit ;;
34810 --debug | --debu | --deb | --de | --d | -d )
34812 --file | --fil | --fi | --f )
34814 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34815 ac_need_defaults=false;;
34816 --header | --heade | --head | --hea )
34818 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34819 ac_need_defaults=false;;
34821 # Conflict between --help and --header
34822 { echo "$as_me: error: ambiguous option: $1
34823 Try \`$0 --help' for more information." >&2
34824 { (exit 1); exit 1; }; };;
34825 --help | --hel | -h )
34826 echo "$ac_cs_usage"; exit ;;
34827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34828 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34831 # This is an error.
34832 -*) { echo "$as_me: error: unrecognized option: $1
34833 Try \`$0 --help' for more information." >&2
34834 { (exit 1); exit 1; }; } ;;
34836 *) ac_config_targets="$ac_config_targets $1"
34837 ac_need_defaults=false ;;
34843 ac_configure_extra_args=
34845 if $ac_cs_silent; then
34847 ac_configure_extra_args="$ac_configure_extra_args --silent"
34851 cat >>$CONFIG_STATUS <<_ACEOF
34852 if \$ac_cs_recheck; then
34853 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34854 CONFIG_SHELL=$SHELL
34855 export CONFIG_SHELL
34856 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34860 cat >>$CONFIG_STATUS <<\_ACEOF
34864 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34865 ## Running $as_me. ##
34871 cat >>$CONFIG_STATUS <<_ACEOF
34875 llvm_src="${srcdir}"
34879 cat >>$CONFIG_STATUS <<\_ACEOF
34881 # Handling of arguments.
34882 for ac_config_target in $ac_config_targets
34884 case $ac_config_target in
34885 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34886 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34887 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34888 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34889 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34890 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34891 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34892 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34893 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34894 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34895 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34896 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34897 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34898 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34899 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34900 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34901 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34902 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34903 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34904 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34905 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34906 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34908 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34909 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34910 { (exit 1); exit 1; }; };;
34915 # If the user did not use the arguments to specify the items to instantiate,
34916 # then the envvar interface is used. Set only those that are not.
34917 # We use the long form for the default assignment because of an extremely
34918 # bizarre bug on SunOS 4.1.3.
34919 if $ac_need_defaults; then
34920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34921 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34922 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34925 # Have a temporary directory for convenience. Make it in the build tree
34926 # simply because there is no reason against having it here, and in addition,
34927 # creating and moving files from /tmp can sometimes cause problems.
34928 # Hook for its removal unless debugging.
34929 # Note that there is a small window in which the directory will not be cleaned:
34930 # after its creation but before its name has been assigned to `$tmp'.
34934 trap 'exit_status=$?
34935 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34937 trap '{ (exit 1); exit 1; }' 1 2 13 15
34939 # Create a (secure) tmp directory for tmp files.
34942 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34943 test -n "$tmp" && test -d "$tmp"
34946 tmp=./conf$$-$RANDOM
34947 (umask 077 && mkdir "$tmp")
34950 echo "$me: cannot create a temporary directory in ." >&2
34951 { (exit 1); exit 1; }
34955 # Set up the sed scripts for CONFIG_FILES section.
34958 # No need to generate the scripts if there are no CONFIG_FILES.
34959 # This happens for instance when ./config.status config.h
34960 if test -n "$CONFIG_FILES"; then
34967 for ac_last_try in false false false false false :; do
34968 cat >conf$$subs.sed <<_ACEOF
34969 SHELL!$SHELL$ac_delim
34970 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34971 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34972 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34973 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34974 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34975 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34976 exec_prefix!$exec_prefix$ac_delim
34977 prefix!$prefix$ac_delim
34978 program_transform_name!$program_transform_name$ac_delim
34979 bindir!$bindir$ac_delim
34980 sbindir!$sbindir$ac_delim
34981 libexecdir!$libexecdir$ac_delim
34982 datarootdir!$datarootdir$ac_delim
34983 datadir!$datadir$ac_delim
34984 sysconfdir!$sysconfdir$ac_delim
34985 sharedstatedir!$sharedstatedir$ac_delim
34986 localstatedir!$localstatedir$ac_delim
34987 includedir!$includedir$ac_delim
34988 oldincludedir!$oldincludedir$ac_delim
34989 docdir!$docdir$ac_delim
34990 infodir!$infodir$ac_delim
34991 htmldir!$htmldir$ac_delim
34992 dvidir!$dvidir$ac_delim
34993 pdfdir!$pdfdir$ac_delim
34994 psdir!$psdir$ac_delim
34995 libdir!$libdir$ac_delim
34996 localedir!$localedir$ac_delim
34997 mandir!$mandir$ac_delim
34998 DEFS!$DEFS$ac_delim
34999 ECHO_C!$ECHO_C$ac_delim
35000 ECHO_N!$ECHO_N$ac_delim
35001 ECHO_T!$ECHO_T$ac_delim
35002 LIBS!$LIBS$ac_delim
35003 build_alias!$build_alias$ac_delim
35004 host_alias!$host_alias$ac_delim
35005 target_alias!$target_alias$ac_delim
35006 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35007 subdirs!$subdirs$ac_delim
35008 build!$build$ac_delim
35009 build_cpu!$build_cpu$ac_delim
35010 build_vendor!$build_vendor$ac_delim
35011 build_os!$build_os$ac_delim
35012 host!$host$ac_delim
35013 host_cpu!$host_cpu$ac_delim
35014 host_vendor!$host_vendor$ac_delim
35015 host_os!$host_os$ac_delim
35016 target!$target$ac_delim
35017 target_cpu!$target_cpu$ac_delim
35018 target_vendor!$target_vendor$ac_delim
35019 target_os!$target_os$ac_delim
35021 LINKALL!$LINKALL$ac_delim
35022 NOLINKALL!$NOLINKALL$ac_delim
35023 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35024 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35025 ARCH!$ARCH$ac_delim
35026 ENDIAN!$ENDIAN$ac_delim
35028 CFLAGS!$CFLAGS$ac_delim
35029 LDFLAGS!$LDFLAGS$ac_delim
35030 CPPFLAGS!$CPPFLAGS$ac_delim
35031 ac_ct_CC!$ac_ct_CC$ac_delim
35032 EXEEXT!$EXEEXT$ac_delim
35033 OBJEXT!$OBJEXT$ac_delim
35035 GREP!$GREP$ac_delim
35036 EGREP!$EGREP$ac_delim
35037 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35038 BUILD_CC!$BUILD_CC$ac_delim
35039 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35040 CVSBUILD!$CVSBUILD$ac_delim
35041 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35042 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35043 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35044 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35045 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35047 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35048 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35049 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35050 ENABLE_PIC!$ENABLE_PIC$ac_delim
35051 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35052 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35053 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35055 CXXFLAGS!$CXXFLAGS$ac_delim
35056 ac_ct_CXX!$ac_ct_CXX$ac_delim
35058 LEXLIB!$LEXLIB$ac_delim
35059 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35060 FLEX!$FLEX$ac_delim
35061 YACC!$YACC$ac_delim
35062 YFLAGS!$YFLAGS$ac_delim
35063 BISON!$BISON$ac_delim
35065 ifGNUmake!$ifGNUmake$ac_delim
35068 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35070 elif $ac_last_try; then
35071 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35072 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35073 { (exit 1); exit 1; }; }
35075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35079 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35080 if test -n "$ac_eof"; then
35081 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35082 ac_eof=`expr $ac_eof + 1`
35085 cat >>$CONFIG_STATUS <<_ACEOF
35086 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35090 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35091 s/^/s,@/; s/!/@,|#_!!_#|/
35094 s/'"$ac_delim"'$/,g/; t
35096 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35097 ' >>$CONFIG_STATUS <conf$$subs.sed
35098 rm -f conf$$subs.sed
35099 cat >>$CONFIG_STATUS <<_ACEOF
35105 for ac_last_try in false false false false false :; do
35106 cat >conf$$subs.sed <<_ACEOF
35107 LN_S!$LN_S$ac_delim
35110 DATE!$DATE$ac_delim
35111 FIND!$FIND$ac_delim
35112 MKDIR!$MKDIR$ac_delim
35114 RANLIB!$RANLIB$ac_delim
35118 BINPWD!$BINPWD$ac_delim
35119 GRAPHVIZ!$GRAPHVIZ$ac_delim
35122 DOTTY!$DOTTY$ac_delim
35123 PERL!$PERL$ac_delim
35124 HAVE_PERL!$HAVE_PERL$ac_delim
35125 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35126 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35127 INSTALL_DATA!$INSTALL_DATA$ac_delim
35128 BZIP2!$BZIP2$ac_delim
35129 DOXYGEN!$DOXYGEN$ac_delim
35130 GROFF!$GROFF$ac_delim
35131 GZIP!$GZIP$ac_delim
35132 POD2HTML!$POD2HTML$ac_delim
35133 POD2MAN!$POD2MAN$ac_delim
35134 RUNTEST!$RUNTEST$ac_delim
35135 TCLSH!$TCLSH$ac_delim
35137 OCAMLC!$OCAMLC$ac_delim
35138 OCAMLOPT!$OCAMLOPT$ac_delim
35139 OCAMLDEP!$OCAMLDEP$ac_delim
35140 OCAMLDOC!$OCAMLDOC$ac_delim
35141 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35142 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35143 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35144 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35145 LIBADD_DL!$LIBADD_DL$ac_delim
35146 ECHO!$ECHO$ac_delim
35148 STRIP!$STRIP$ac_delim
35149 CXXCPP!$CXXCPP$ac_delim
35151 FFLAGS!$FFLAGS$ac_delim
35152 ac_ct_F77!$ac_ct_F77$ac_delim
35153 LIBTOOL!$LIBTOOL$ac_delim
35154 LLVMGCC!$LLVMGCC$ac_delim
35155 LLVMGXX!$LLVMGXX$ac_delim
35156 USE_UDIS86!$USE_UDIS86$ac_delim
35157 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35158 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35159 ALLOCA!$ALLOCA$ac_delim
35160 MMAP_FILE!$MMAP_FILE$ac_delim
35161 LLVMCC1!$LLVMCC1$ac_delim
35162 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35163 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35164 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35165 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35166 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35167 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35168 SHLIBEXT!$SHLIBEXT$ac_delim
35169 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35170 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35171 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35172 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35173 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35174 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35175 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35176 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35177 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35178 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35179 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35180 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35181 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35182 LIBOBJS!$LIBOBJS$ac_delim
35183 LTLIBOBJS!$LTLIBOBJS$ac_delim
35186 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35188 elif $ac_last_try; then
35189 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35190 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35191 { (exit 1); exit 1; }; }
35193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35197 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35198 if test -n "$ac_eof"; then
35199 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35200 ac_eof=`expr $ac_eof + 1`
35203 cat >>$CONFIG_STATUS <<_ACEOF
35204 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35208 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35209 s/^/s,@/; s/!/@,|#_!!_#|/
35212 s/'"$ac_delim"'$/,g/; t
35214 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35215 ' >>$CONFIG_STATUS <conf$$subs.sed
35216 rm -f conf$$subs.sed
35217 cat >>$CONFIG_STATUS <<_ACEOF
35224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35226 # trailing colons and then remove the whole line if VPATH becomes empty
35227 # (actually we leave an empty line to preserve line numbers).
35228 if test "x$srcdir" = x.; then
35229 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35230 s/:*\$(srcdir):*/:/
35231 s/:*\${srcdir}:*/:/
35233 s/^\([^=]*=[ ]*\):*/\1/
35239 cat >>$CONFIG_STATUS <<\_ACEOF
35240 fi # test -n "$CONFIG_FILES"
35243 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35246 :[FHLC]) ac_mode=$ac_tag; continue;;
35248 case $ac_mode$ac_tag in
35250 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35251 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35252 { (exit 1); exit 1; }; };;
35253 :[FH]-) ac_tag=-:-;;
35254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35271 -) ac_f="$tmp/stdin";;
35272 *) # Look for the file first in the build tree, then in the source tree
35273 # (if the path is not absolute). The absolute path cannot be DOS-style,
35274 # because $ac_f cannot contain `:'.
35278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35280 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35281 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35282 { (exit 1); exit 1; }; };;
35284 ac_file_inputs="$ac_file_inputs $ac_f"
35287 # Let's still pretend it is `configure' which instantiates (i.e., don't
35288 # use $as_me), people would be surprised to read:
35289 # /* config.h. Generated by config.status. */
35290 configure_input="Generated from "`IFS=:
35291 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35292 if test x"$ac_file" != x-; then
35293 configure_input="$ac_file. $configure_input"
35294 { echo "$as_me:$LINENO: creating $ac_file" >&5
35295 echo "$as_me: creating $ac_file" >&6;}
35299 *:-:* | *:-) cat >"$tmp/stdin";;
35304 ac_dir=`$as_dirname -- "$ac_file" ||
35305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35306 X"$ac_file" : 'X\(//\)[^/]' \| \
35307 X"$ac_file" : 'X\(//\)$' \| \
35308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35314 /^X\(\/\/\)[^/].*/{
35329 -*) as_dir=./$as_dir;;
35331 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35335 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35336 *) as_qdir=$as_dir;;
35338 as_dirs="'$as_qdir' $as_dirs"
35339 as_dir=`$as_dirname -- "$as_dir" ||
35340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35341 X"$as_dir" : 'X\(//\)[^/]' \| \
35342 X"$as_dir" : 'X\(//\)$' \| \
35343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35349 /^X\(\/\/\)[^/].*/{
35362 test -d "$as_dir" && break
35364 test -z "$as_dirs" || eval "mkdir $as_dirs"
35365 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35366 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35367 { (exit 1); exit 1; }; }; }
35371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35374 # A ".." for each directory in $ac_dir_suffix.
35375 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35376 case $ac_top_builddir_sub in
35377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35381 ac_abs_top_builddir=$ac_pwd
35382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35383 # for backward compatibility:
35384 ac_top_builddir=$ac_top_build_prefix
35387 .) # We are building in place.
35389 ac_top_srcdir=$ac_top_builddir_sub
35390 ac_abs_top_srcdir=$ac_pwd ;;
35391 [\\/]* | ?:[\\/]* ) # Absolute name.
35392 ac_srcdir=$srcdir$ac_dir_suffix;
35393 ac_top_srcdir=$srcdir
35394 ac_abs_top_srcdir=$srcdir ;;
35395 *) # Relative name.
35396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35397 ac_top_srcdir=$ac_top_build_prefix$srcdir
35398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35415 cat >>$CONFIG_STATUS <<\_ACEOF
35416 # If the template does not know about datarootdir, expand it.
35417 # FIXME: This hack should be removed a few years after 2.60.
35418 ac_datarootdir_hack=; ac_datarootdir_seen=
35420 case `sed -n '/datarootdir/ {
35429 ' $ac_file_inputs` in
35430 *datarootdir*) ac_datarootdir_seen=yes;;
35431 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35432 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35433 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35435 cat >>$CONFIG_STATUS <<_ACEOF
35436 ac_datarootdir_hack='
35437 s&@datadir@&$datadir&g
35438 s&@docdir@&$docdir&g
35439 s&@infodir@&$infodir&g
35440 s&@localedir@&$localedir&g
35441 s&@mandir@&$mandir&g
35442 s&\\\${datarootdir}&$datarootdir&g' ;;
35446 # Neutralize VPATH when `$srcdir' = `.'.
35447 # Shell code in configure.ac might set extrasub.
35448 # FIXME: do we really want to maintain this feature?
35449 cat >>$CONFIG_STATUS <<_ACEOF
35453 cat >>$CONFIG_STATUS <<\_ACEOF
35455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35456 s&@configure_input@&$configure_input&;t t
35457 s&@top_builddir@&$ac_top_builddir_sub&;t t
35458 s&@srcdir@&$ac_srcdir&;t t
35459 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35460 s&@top_srcdir@&$ac_top_srcdir&;t t
35461 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35462 s&@builddir@&$ac_builddir&;t t
35463 s&@abs_builddir@&$ac_abs_builddir&;t t
35464 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35465 s&@INSTALL@&$ac_INSTALL&;t t
35466 $ac_datarootdir_hack
35467 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35470 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35471 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35472 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35473 which seems to be undefined. Please make sure it is defined." >&5
35474 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35475 which seems to be undefined. Please make sure it is defined." >&2;}
35479 -) cat "$tmp/out"; rm -f "$tmp/out";;
35480 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35489 # Transform confdefs.h into a sed script `conftest.defines', that
35490 # substitutes the proper values into config.h.in to produce config.h.
35491 rm -f conftest.defines conftest.tail
35492 # First, append a space to every undef/define line, to ease matching.
35493 echo 's/$/ /' >conftest.defines
35494 # Then, protect against being on the right side of a sed subst, or in
35495 # an unquoted here document, in config.status. If some macros were
35496 # called several times there might be several #defines for the same
35497 # symbol, which is useless. But do not sort them, since the last
35498 # AC_DEFINE must be honored.
35499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35500 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35501 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35502 # PARAMS is the parameter list in the macro definition--in most cases, it's
35503 # just an empty string.
35504 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35505 ac_dB='\\)[ (].*,\\1define\\2'
35513 s/^[ ]*#[ ]*define[ ][ ]*//
35518 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35519 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35520 ' >>conftest.defines
35522 # Remove the space that was appended to ease matching.
35523 # Then replace #undef with comments. This is necessary, for
35524 # example, in the case of _POSIX_SOURCE, which is predefined and required
35525 # on some systems where configure will not decide to define it.
35526 # (The regexp can be short, since the line contains either #define or #undef.)
35528 s,^[ #]*u.*,/* & */,' >>conftest.defines
35530 # Break up conftest.defines:
35531 ac_max_sed_lines=50
35533 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35534 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35535 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35537 ac_in='$ac_file_inputs'
35538 ac_out='"$tmp/out1"'
35539 ac_nxt='"$tmp/out2"'
35543 # Write a here document:
35544 cat >>$CONFIG_STATUS <<_ACEOF
35545 # First, check the format of the line:
35546 cat >"\$tmp/defines.sed" <<\\CEOF
35547 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35548 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35552 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35554 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35555 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35556 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35557 grep . conftest.tail >/dev/null || break
35558 rm -f conftest.defines
35559 mv conftest.tail conftest.defines
35561 rm -f conftest.defines conftest.tail
35563 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35564 cat >>$CONFIG_STATUS <<\_ACEOF
35565 if test x"$ac_file" != x-; then
35566 echo "/* $configure_input */" >"$tmp/config.h"
35567 cat "$ac_result" >>"$tmp/config.h"
35568 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35569 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35570 echo "$as_me: $ac_file is unchanged" >&6;}
35573 mv "$tmp/config.h" $ac_file
35576 echo "/* $configure_input */"
35582 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35583 echo "$as_me: executing $ac_file commands" >&6;}
35588 case $ac_file$ac_mode in
35589 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35591 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35593 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35595 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35597 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35599 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35601 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35603 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35605 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35607 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35609 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35611 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35618 { (exit 0); exit 0; }
35620 chmod +x $CONFIG_STATUS
35621 ac_clean_files=$ac_clean_files_save
35624 # configure is writing to config.log, and then calls config.status.
35625 # config.status does its own redirection, appending to config.log.
35626 # Unfortunately, on DOS this fails, as config.log is still kept open
35627 # by configure, so config.status won't be able to write to it; its
35628 # output is simply discarded. So we exec the FD to /dev/null,
35629 # effectively closing config.log, so it can be properly (re)opened and
35630 # appended to by config.status. When coming back to configure, we
35631 # need to make the FD available again.
35632 if test "$no_create" != yes; then
35634 ac_config_status_args=
35635 test "$silent" = yes &&
35636 ac_config_status_args="$ac_config_status_args --quiet"
35638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35641 # would make configure fail if this is the last instruction.
35642 $ac_cs_success || { (exit 1); exit 1; }
35646 # CONFIG_SUBDIRS section.
35648 if test "$no_recursion" != yes; then
35650 # Remove --cache-file and --srcdir arguments so they do not pile up.
35651 ac_sub_configure_args=
35653 eval "set x $ac_configure_args"
35657 if test -n "$ac_prev"; then
35662 -cache-file | --cache-file | --cache-fil | --cache-fi \
35663 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35664 ac_prev=cache_file ;;
35665 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35666 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35669 --config-cache | -C)
35671 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35673 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35675 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35677 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35681 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35683 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35687 # Always prepend --prefix to ensure using the same prefix
35688 # in subdir configurations.
35689 ac_arg="--prefix=$prefix"
35691 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35693 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35696 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35698 # Do not complain, so a configure script can configure whichever
35699 # parts of a large source tree are present.
35700 test -d "$srcdir/$ac_dir" || continue
35702 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35703 echo "$as_me:$LINENO: $ac_msg" >&5
35707 -*) as_dir=./$as_dir;;
35709 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35713 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35714 *) as_qdir=$as_dir;;
35716 as_dirs="'$as_qdir' $as_dirs"
35717 as_dir=`$as_dirname -- "$as_dir" ||
35718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35719 X"$as_dir" : 'X\(//\)[^/]' \| \
35720 X"$as_dir" : 'X\(//\)$' \| \
35721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35727 /^X\(\/\/\)[^/].*/{
35740 test -d "$as_dir" && break
35742 test -z "$as_dirs" || eval "mkdir $as_dirs"
35743 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35744 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35745 { (exit 1); exit 1; }; }; }
35749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35751 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35752 # A ".." for each directory in $ac_dir_suffix.
35753 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35754 case $ac_top_builddir_sub in
35755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35759 ac_abs_top_builddir=$ac_pwd
35760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35761 # for backward compatibility:
35762 ac_top_builddir=$ac_top_build_prefix
35765 .) # We are building in place.
35767 ac_top_srcdir=$ac_top_builddir_sub
35768 ac_abs_top_srcdir=$ac_pwd ;;
35769 [\\/]* | ?:[\\/]* ) # Absolute name.
35770 ac_srcdir=$srcdir$ac_dir_suffix;
35771 ac_top_srcdir=$srcdir
35772 ac_abs_top_srcdir=$srcdir ;;
35773 *) # Relative name.
35774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35775 ac_top_srcdir=$ac_top_build_prefix$srcdir
35776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35783 # Check for guested configure; otherwise get Cygnus style configure.
35784 if test -f "$ac_srcdir/configure.gnu"; then
35785 ac_sub_configure=$ac_srcdir/configure.gnu
35786 elif test -f "$ac_srcdir/configure"; then
35787 ac_sub_configure=$ac_srcdir/configure
35788 elif test -f "$ac_srcdir/configure.in"; then
35789 # This should be Cygnus configure.
35790 ac_sub_configure=$ac_aux_dir/configure
35792 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35793 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35797 # The recursion is here.
35798 if test -n "$ac_sub_configure"; then
35799 # Make the cache file name correct relative to the subdirectory.
35800 case $cache_file in
35801 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35802 *) # Relative name.
35803 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35806 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35807 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35808 # The eval makes quoting arguments work.
35809 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35810 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35811 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35812 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35813 { (exit 1); exit 1; }; }