2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
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
835 ENABLE_EXPENSIVE_CHECKS
845 LLVM_ENUM_ASM_PRINTERS
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
932 ENABLE_VISIBILITY_INLINES_HIDDEN
938 ac_precious_vars='build_alias
952 ac_subdirs_all='projects/sample
954 projects/llvm-stacker
961 projects/llvm-poolalloc
963 projects/llvm-kernel'
965 # Initialize some variables set by options.
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
977 program_transform_name=s,x,x,
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072 eval enable_$ac_feature=no ;;
1074 -docdir | --docdir | --docdi | --doc | --do)
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091 eval enable_$ac_feature=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1255 -site=* | --site=* | --sit=*)
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package| sed 's/-/_/g'`
1288 eval with_$ac_package=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_package=`echo $ac_package | sed 's/-/_/g'`
1297 eval with_$ac_package=no ;;
1300 # Obsolete; use --with-x.
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
1328 eval $ac_envvar=\$ac_optarg
1329 export $ac_envvar ;;
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1348 # Be sure to have absolute directory names.
1349 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
1354 eval ac_val=\$$ac_var
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384 test "$silent" = yes && exec 6>/dev/null
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
1405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1429 ac_srcdir_defaulted=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434 { (exit 1); exit 1; }; }
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439 { (exit 1); exit 1; }; }
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 # Report the --help message.
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1465 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1472 Defaults for the options are specified in brackets.
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1496 For better control, use the options below.
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-optimized Compile with optimizations enabled (default is NO)
1539 --enable-profiling Compile with profiling enabled (default is NO)
1540 --enable-assertions Compile with assertion checks enabled (default is
1542 --enable-expensive-checks
1543 Compile with expensive debug checks enabled (default
1545 --enable-debug-runtime Build runtime libs with debug symbols (default is
1547 --enable-jit Enable Just In Time Compiling (default is YES)
1548 --enable-doxygen Build doxygen documentation (default is NO)
1549 --enable-threads Use threads if available (default is YES)
1550 --enable-pic Build LLVM with Position Independent Code (default
1552 --enable-targets Build specific host targets:
1553 all,host-only,{target-name} (default=all)
1554 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1556 --enable-bindings Build specific language bindings:
1557 all,auto,none,{binding-name} (default=auto)
1558 --enable-libffi Check for the presence of libffi (default is YES)
1559 --enable-ltdl-install install libltdl
1560 --enable-shared[=PKGS] build shared libraries
1562 --enable-static[=PKGS] build static libraries
1564 --enable-fast-install[=PKGS]
1565 optimize for fast installation
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1574 --with-llvmgcc Specify location of llvm-gcc driver (default
1576 --with-llvmgxx Specify location of llvm-g++ driver (default
1578 --with-extra-options Specify additional options to compile LLVM with
1579 --with-ocaml-libdir Specify install location for ocaml bindings (default
1581 --with-binutils-include Specify path to binutils/include/ containing
1582 plugin-api.h file for gold plugin.
1583 --with-tclinclude directory where tcl headers are
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1587 --with-tags[=TAGS] include additional configurations [automatic]
1588 --with-udis86=<path> Use udis86 external x86 disassembler library
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
1598 CXX C++ compiler command
1599 CXXFLAGS C++ compiler flags
1600 CXXCPP C++ preprocessor
1601 F77 Fortran 77 compiler command
1602 FFLAGS Fortran 77 compiler flags
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1607 Report bugs to <llvmbugs@cs.uiuc.edu>.
1612 if test "$ac_init_help" = "recursive"; then
1613 # If there are subdirs, report their specific --help.
1614 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615 test -d "$ac_dir" || continue
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1668 llvm configure 2.6svn
1669 generated by GNU Autoconf 2.60
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1676 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1680 cat >config.log <<_ACEOF
1681 This file contains any messages produced by compilers while
1682 running configure, to aid debugging if configure makes a mistake.
1684 It was created by llvm $as_me 2.6svn, which was
1685 generated by GNU Autoconf 2.60. Invocation command line was
1697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1737 # Keep a trace of the command line.
1738 # Strip out --no-create and --no-recursion so they do not pile up.
1739 # Strip out --silent because we don't want to record it for future runs.
1740 # Also quote any args containing shell meta-characters.
1741 # Make two passes to allow for proper duplicate-argument suppression.
1745 ac_must_keep_next=false
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
1763 ac_must_keep_next=false # Got value, back to normal.
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774 -* ) ac_must_keep_next=true ;;
1777 ac_configure_args="$ac_configure_args '$ac_arg'"
1782 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1785 # When interrupted or exit'd, cleanup temporary files, and complete
1786 # config.log. We remove comments because anyway the quotes in there
1787 # would cause problems or look ugly.
1788 # WARNING: Use '\'' to represent an apostrophe within the trap.
1789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1790 trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1796 ## ---------------- ##
1797 ## Cache variables. ##
1798 ## ---------------- ##
1801 # The following way of writing the cache mishandles newlines in values,
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
1821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1838 for ac_var in $ac_subst_vars
1840 eval ac_val=\$$ac_var
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 echo "$ac_var='\''$ac_val'\''"
1848 if test -n "$ac_subst_files"; then
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1855 for ac_var in $ac_subst_files
1857 eval ac_val=\$$ac_var
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861 echo "$ac_var='\''$ac_val'\''"
1866 if test -s confdefs.h; then
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884 for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1892 # Predefined preprocessor variables.
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer explicitly selected file to automatically selected ones.
1921 if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923 elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
1932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934 echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1940 if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945 echo "$as_me: loading cache $cache_file" >&6;}
1947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953 echo "$as_me: creating cache $cache_file" >&6;}
1957 # Check that the precious variables saved in the cache have kept the same
1959 ac_cache_corrupted=false
1960 for ac_var in $ac_precious_vars; do
1961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962 eval ac_new_set=\$ac_env_${ac_var}_set
1963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964 eval ac_new_val=\$ac_env_${ac_var}_value
1965 case $ac_old_set,$ac_new_set in
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1971 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973 ac_cache_corrupted=: ;;
1976 if test "x$ac_old_val" != "x$ac_new_val"; then
1977 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1980 echo "$as_me: former value: $ac_old_val" >&2;}
1981 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1982 echo "$as_me: current value: $ac_new_val" >&2;}
1983 ac_cache_corrupted=:
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1989 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg=$ac_var=$ac_new_val ;;
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1998 if $ac_cache_corrupted; then
1999 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2047 for ac_dir in autoconf "$srcdir"/autoconf; do
2048 if test -f "$ac_dir/install-sh"; then
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2052 elif test -f "$ac_dir/install.sh"; then
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2056 elif test -f "$ac_dir/shtool"; then
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 if test -z "$ac_aux_dir"; then
2063 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2065 { (exit 1); exit 1; }; }
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078 if test ${srcdir} != "." ; then
2079 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2081 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082 { (exit 1); exit 1; }; }
2086 for i in `ls ${srcdir}/projects`
2088 if test -d ${srcdir}/projects/${i} ; then
2091 sample) subdirs="$subdirs projects/sample"
2093 privbracket) subdirs="$subdirs projects/privbracket"
2095 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2097 # llvm-test is the old name of the test-suite, kept here for backwards
2099 llvm-test) subdirs="$subdirs projects/llvm-test"
2101 test-suite) subdirs="$subdirs projects/test-suite"
2103 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2105 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2107 llvm-java) subdirs="$subdirs projects/llvm-java"
2109 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2111 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2113 poolalloc) subdirs="$subdirs projects/poolalloc"
2115 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2118 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS=$IFS; IFS='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS=$IFS; IFS='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209 { echo "$as_me:$LINENO: checking target system type" >&5
2210 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2211 if test "${ac_cv_target+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test "x$target_alias" = x; then
2215 ac_cv_target=$ac_cv_host
2217 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2220 { (exit 1); exit 1; }; }
2224 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225 echo "${ECHO_T}$ac_cv_target" >&6; }
2226 case $ac_cv_target in
2228 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229 echo "$as_me: error: invalid value of canonical target" >&2;}
2230 { (exit 1); exit 1; }; };;
2232 target=$ac_cv_target
2233 ac_save_IFS=$IFS; IFS='-'
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2243 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2246 # The aliases save the names the user supplied, while $host etc.
2247 # will get canonicalized.
2248 test -n "$target_alias" &&
2249 test "$program_prefix$program_suffix$program_transform_name" = \
2251 program_prefix=${target_alias}-
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2255 if test "${llvm_cv_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="AIX"
2263 llvm_cv_platform_type="Unix" ;;
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="IRIX"
2268 llvm_cv_platform_type="Unix" ;;
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="Cygwin"
2273 llvm_cv_platform_type="Unix" ;;
2275 llvm_cv_link_all_option="-Wl,-all_load"
2276 llvm_cv_no_link_all_option="-Wl,-noall_load"
2277 llvm_cv_os_type="Darwin"
2278 llvm_cv_platform_type="Unix" ;;
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="FreeBSD"
2283 llvm_cv_platform_type="Unix" ;;
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="OpenBSD"
2288 llvm_cv_platform_type="Unix" ;;
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="NetBSD"
2293 llvm_cv_platform_type="Unix" ;;
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="DragonFly"
2298 llvm_cv_platform_type="Unix" ;;
2300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302 llvm_cv_os_type="HP-UX"
2303 llvm_cv_platform_type="Unix" ;;
2305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307 llvm_cv_os_type="Interix"
2308 llvm_cv_platform_type="Unix" ;;
2310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312 llvm_cv_os_type="Linux"
2313 llvm_cv_platform_type="Unix" ;;
2315 llvm_cv_link_all_option="-Wl,-z,allextract"
2316 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2317 llvm_cv_os_type="SunOS"
2318 llvm_cv_platform_type="Unix" ;;
2320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322 llvm_cv_os_type="Win32"
2323 llvm_cv_platform_type="Win32" ;;
2325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327 llvm_cv_os_type="MingW"
2328 llvm_cv_platform_type="Win32" ;;
2330 llvm_cv_link_all_option=""
2331 llvm_cv_no_link_all_option=""
2332 llvm_cv_os_type="Unknown"
2333 llvm_cv_platform_type="Unknown" ;;
2336 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2339 if test "$llvm_cv_os_type" = "Unknown" ; then
2340 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2342 { (exit 1); exit 1; }; }
2348 LINKALL=$llvm_cv_link_all_option
2350 NOLINKALL=$llvm_cv_no_link_all_option
2353 case $llvm_cv_platform_type in
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_UNIX 1
2367 cat >>confdefs.h <<\_ACEOF
2368 #define LLVM_ON_WIN32 1
2378 { echo "$as_me:$LINENO: checking target architecture" >&5
2379 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2380 if test "${llvm_cv_target_arch+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 i?86-*) llvm_cv_target_arch="x86" ;;
2385 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2386 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2387 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2388 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2389 ia64-*) llvm_cv_target_arch="IA64" ;;
2390 arm*-*) llvm_cv_target_arch="ARM" ;;
2391 mips-*) llvm_cv_target_arch="Mips" ;;
2392 pic16-*) llvm_cv_target_arch="PIC16" ;;
2393 xcore-*) llvm_cv_target_arch="XCore" ;;
2394 msp430-*) llvm_cv_target_arch="MSP430" ;;
2395 *) llvm_cv_target_arch="Unknown" ;;
2398 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2401 if test "$llvm_cv_target_arch" = "Unknown" ; then
2402 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2406 # Determine the LLVM native architecture for the target
2407 case "$llvm_cv_target_arch" in
2408 x86) LLVM_NATIVE_ARCH="X86" ;;
2409 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2410 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2413 ARCH=$llvm_cv_target_arch
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 if test -n "$CC"; then
2451 { echo "$as_me:$LINENO: result: $CC" >&5
2452 echo "${ECHO_T}$CC" >&6; }
2454 { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2460 if test -z "$ac_cv_prog_CC"; then
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_ac_ct_CC="gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490 if test -n "$ac_ct_CC"; then
2491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492 echo "${ECHO_T}$ac_ct_CC" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2498 if test "x$ac_ct_CC" = x; then
2501 case $cross_compiling:$ac_tool_warned in
2503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet. If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet. If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned=yes ;;
2517 if test -z "$CC"; then
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}cc; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="${ac_tool_prefix}cc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2558 if test -z "$CC"; then
2559 # Extract the first word of "cc", so it can be a program name with args.
2560 set dummy cc; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2578 ac_prog_rejected=yes
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test $ac_prog_rejected = yes; then
2590 # We found a bogon in the path, so make sure we never use it.
2591 set dummy $ac_cv_prog_CC
2593 if test $# != 0; then
2594 # We chose a different compiler from the bogus one.
2595 # However, it has the same basename, so the bogon will be chosen
2596 # first if we set CC to just the basename; use the full file name.
2598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2604 if test -n "$CC"; then
2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2614 if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 for ac_prog in cl.exe
2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$CC"; then
2647 { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2650 { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2655 test -n "$CC" && break
2658 if test -z "$CC"; then
2660 for ac_prog in cl.exe
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663 set dummy $ac_prog; ac_word=$2
2664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_ac_ct_CC="$ac_prog"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692 echo "${ECHO_T}$ac_ct_CC" >&6; }
2694 { echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6; }
2699 test -n "$ac_ct_CC" && break
2702 if test "x$ac_ct_CC" = x; then
2705 case $cross_compiling:$ac_tool_warned in
2707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708 whose name does not start with the host triplet. If you think this
2709 configuration is useful to you, please write to autoconf@gnu.org." >&5
2710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711 whose name does not start with the host triplet. If you think this
2712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713 ac_tool_warned=yes ;;
2722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: no acceptable C compiler found in \$PATH
2725 See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2728 # Provide some information about the compiler.
2729 echo "$as_me:$LINENO: checking for C compiler version" >&5
2730 ac_compiler=`set X $ac_compile; echo $2`
2731 { (ac_try="$ac_compiler --version >&5"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler --version >&5") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2741 { (ac_try="$ac_compiler -v >&5"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -v >&5") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
2751 { (ac_try="$ac_compiler -V >&5"
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -V >&5") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 ac_clean_files_save=$ac_clean_files
2778 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2779 # Try to create an executable without -o first, disregard a.out.
2780 # It will help us diagnose broken compilers, and finding out an intuition
2782 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2783 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786 # List of possible output files, starting from the most likely.
2787 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2788 # only as a last resort. b.out is created by i960 compilers.
2789 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791 # The IRIX 6 linker writes into existing files which may not be
2792 # executable, retaining their permissions. Remove them first so a
2793 # subsequent execution test works.
2795 for ac_file in $ac_files
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2804 if { (ac_try="$ac_link_default"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link_default") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
2814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2815 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2816 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2817 # so that the user can short-circuit this test for compilers unknown to
2819 for ac_file in $ac_files
2821 test -f "$ac_file" || continue
2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2826 # We found the default executable, but exeext='' is most
2830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 # We set ac_cv_exeext here because the later test for it is not
2835 # safe: cross compilers may not add the suffix if given an `-o'
2836 # argument, so we may need to know it at that point already.
2837 # Even if this section looks crufty: it has the advantage of
2844 test "$ac_cv_exeext" = no && ac_cv_exeext=
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: C compiler cannot create executables
2853 See \`config.log' for more details." >&2;}
2854 { (exit 77); exit 77; }; }
2857 ac_exeext=$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2866 # If not cross compiling, check that we can run a simple program.
2867 if test "$cross_compiling" != yes; then
2868 if { ac_try='./$ac_file'
2869 { (case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_try") 2>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2880 if test "$cross_compiling" = maybe; then
2883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2884 If you meant to cross compile, use \`--host'.
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: cannot run C compiled programs.
2887 If you meant to cross compile, use \`--host'.
2888 See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2893 { echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6; }
2896 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2897 ac_clean_files=$ac_clean_files_save
2898 # Check that the compiler produces executables we can run. If not, either
2899 # the compiler is broken, or we cross compile.
2900 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2901 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2902 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2903 echo "${ECHO_T}$cross_compiling" >&6; }
2905 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2906 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2907 if { (ac_try="$ac_link"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_link") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2919 # work properly (i.e., refer to `conftest.exe'), while it won't with
2921 for ac_file in conftest.exe conftest conftest.*; do
2922 test -f "$ac_file" || continue
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
2938 rm -f conftest$ac_cv_exeext
2939 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2940 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2942 rm -f conftest.$ac_ext
2943 EXEEXT=$ac_cv_exeext
2945 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2946 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2947 if test "${ac_cv_objext+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2965 rm -f conftest.o conftest.obj
2966 if { (ac_try="$ac_compile"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 for ac_file in conftest.o conftest.obj conftest.*; do
2977 test -f "$ac_file" || continue;
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&2;}
2992 { (exit 1); exit 1; }; }
2995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2997 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2998 echo "${ECHO_T}$ac_cv_objext" >&6; }
2999 OBJEXT=$ac_cv_objext
3001 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3219 grep -v '^ *+' conftest.er1 >conftest.err
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_try") 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3261 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3263 if test "$ac_test_CFLAGS" = set; then
3264 CFLAGS=$ac_save_CFLAGS
3265 elif test $ac_cv_prog_cc_g = yes; then
3266 if test "$GCC" = yes; then
3272 if test "$GCC" = yes; then
3278 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_cc_c89+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 ac_cv_prog_cc_c89=no
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3293 #include <sys/types.h>
3294 #include <sys/stat.h>
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3309 s = g (p, va_arg (v,int));
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
3317 as 'x'. The following induces an error, until -std is added to get
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
3320 that's true only with -std. */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3328 int test (int i, double x);
3329 struct s1 {int (*f) (int a);};
3330 struct s2 {int (*f) (double a);};
3331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345 CC="$ac_save_CC $ac_arg"
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_prog_cc_c89=$ac_arg
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3391 rm -f conftest.$ac_ext
3396 case "x$ac_cv_prog_cc_c89" in
3398 { echo "$as_me:$LINENO: result: none needed" >&5
3399 echo "${ECHO_T}none needed" >&6; } ;;
3401 { echo "$as_me:$LINENO: result: unsupported" >&5
3402 echo "${ECHO_T}unsupported" >&6; } ;;
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3424 # On Suns, sometimes $CPP names a directory.
3425 if test -n "$CPP" && test -d "$CPP"; then
3428 if test -z "$CPP"; then
3429 if test "${ac_cv_prog_CPP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3436 for ac_c_preproc_warn_flag in '' yes
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error" is here to catch this case.
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3451 # include <limits.h>
3453 # include <assert.h>
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479 if test -z "$ac_cpp_err"; then
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <ac_nonexistent.h>
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523 if test -z "$ac_cpp_err"; then
3524 # Broken: success on invalid input.
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 # Passes both tests.
3535 rm -f conftest.err conftest.$ac_ext
3538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539 rm -f conftest.err conftest.$ac_ext
3540 if $ac_preproc_ok; then
3552 { echo "$as_me:$LINENO: result: $CPP" >&5
3553 echo "${ECHO_T}$CPP" >&6; }
3555 for ac_c_preproc_warn_flag in '' yes
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat >conftest.$ac_ext <<_ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3570 # include <limits.h>
3572 # include <assert.h>
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3584 grep -v '^ *+' conftest.er1 >conftest.err
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3598 if test -z "$ac_cpp_err"; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Broken: fails on valid input.
3608 rm -f conftest.err conftest.$ac_ext
3610 # OK, works on sane cases. Now check whether nonexistent headers
3611 # can be detected and how.
3612 cat >conftest.$ac_ext <<_ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <ac_nonexistent.h>
3620 if { (ac_try="$ac_cpp conftest.$ac_ext"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3628 grep -v '^ *+' conftest.er1 >conftest.err
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } >/dev/null; then
3633 if test -s conftest.err; then
3634 ac_cpp_err=$ac_c_preproc_warn_flag
3635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642 if test -z "$ac_cpp_err"; then
3643 # Broken: success on invalid input.
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 # Passes both tests.
3654 rm -f conftest.err conftest.$ac_ext
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&5
3664 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3677 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 # Extract the first word of "grep ggrep" to use in msg output
3682 if test -z "$GREP"; then
3683 set dummy grep ggrep; ac_prog_name=$2
3684 if test "${ac_cv_path_GREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 ac_path_GREP_found=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in grep ggrep; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3697 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3698 # Check for GNU ac_path_GREP and select it if it is found.
3699 # Check for GNU $ac_path_GREP
3700 case `"$ac_path_GREP" --version 2>&1` in
3702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3705 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 echo 'GREP' >> "conftest.nl"
3712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 ac_count=`expr $ac_count + 1`
3715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_GREP="$ac_path_GREP"
3718 ac_path_GREP_max=$ac_count
3720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3727 $ac_path_GREP_found && break 3
3737 GREP="$ac_cv_path_GREP"
3738 if test -z "$GREP"; then
3739 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3741 { (exit 1); exit 1; }; }
3745 ac_cv_path_GREP=$GREP
3750 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3751 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3752 GREP="$ac_cv_path_GREP"
3755 { echo "$as_me:$LINENO: checking for egrep" >&5
3756 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3761 then ac_cv_path_EGREP="$GREP -E"
3763 # Extract the first word of "egrep" to use in msg output
3764 if test -z "$EGREP"; then
3765 set dummy egrep; ac_prog_name=$2
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 ac_path_EGREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in egrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3779 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3780 # Check for GNU ac_path_EGREP and select it if it is found.
3781 # Check for GNU $ac_path_EGREP
3782 case `"$ac_path_EGREP" --version 2>&1` in
3784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3787 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 echo 'EGREP' >> "conftest.nl"
3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 ac_count=`expr $ac_count + 1`
3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_EGREP="$ac_path_EGREP"
3800 ac_path_EGREP_max=$ac_count
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 $ac_path_EGREP_found && break 3
3819 EGREP="$ac_cv_path_EGREP"
3820 if test -z "$EGREP"; then
3821 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3822 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3823 { (exit 1); exit 1; }; }
3827 ac_cv_path_EGREP=$EGREP
3833 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3834 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3835 EGREP="$ac_cv_path_EGREP"
3838 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_stdc+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_header_stdc=yes
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_cv_header_stdc=no
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 if test $ac_cv_header_stdc = yes; then
3907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 $EGREP "memchr" >/dev/null 2>&1; then
3921 ac_cv_header_stdc=no
3927 if test $ac_cv_header_stdc = yes; then
3928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "free" >/dev/null 2>&1; then
3942 ac_cv_header_stdc=no
3948 if test $ac_cv_header_stdc = yes; then
3949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3950 if test "$cross_compiling" = yes; then
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3961 #if ((' ' & 0x0FF) == 0x020)
3962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3965 # define ISLOWER(c) \
3966 (('a' <= (c) && (c) <= 'i') \
3967 || ('j' <= (c) && (c) <= 'r') \
3968 || ('s' <= (c) && (c) <= 'z'))
3969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3977 for (i = 0; i < 256; i++)
3978 if (XOR (islower (i), ISLOWER (i))
3979 || toupper (i) != TOUPPER (i))
3984 rm -f conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_link") 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4006 echo "$as_me: program exited with status $ac_status" >&5
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4011 ac_cv_header_stdc=no
4013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4019 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4020 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4021 if test $ac_cv_header_stdc = yes; then
4023 cat >>confdefs.h <<\_ACEOF
4024 #define STDC_HEADERS 1
4029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040 inttypes.h stdint.h unistd.h
4042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4056 #include <$ac_header>
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 eval "$as_ac_Header=yes"
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 eval "$as_ac_Header=no"
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_res=`eval echo '${'$as_ac_Header'}'`
4103 { echo "$as_me:$LINENO: result: $ac_res" >&5
4104 echo "${ECHO_T}$ac_res" >&6; }
4105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106 cat >>confdefs.h <<_ACEOF
4107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4116 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4117 if test "${ac_cv_c_bigendian+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 # See if sys/param.h defines the BYTE_ORDER macro.
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <sys/types.h>
4128 #include <sys/param.h>
4133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 # It does; now see whether it defined to BIG_ENDIAN or not.
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 #include <sys/types.h>
4183 #include <sys/param.h>
4188 #if BYTE_ORDER != BIG_ENDIAN
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4205 grep -v '^ *+' conftest.er1 >conftest.err
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_try") 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_c_bigendian=yes
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 ac_cv_c_bigendian=no
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 # It does not; compile a test program.
4244 if test "$cross_compiling" = yes; then
4245 # try to guess the endianness by grepping values into an object file
4246 ac_cv_c_bigendian=unknown
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4254 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4255 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4256 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4257 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4258 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4262 _ascii (); _ebcdic ();
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest.$ac_objext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4302 ac_cv_c_bigendian=yes
4304 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4305 if test "$ac_cv_c_bigendian" = unknown; then
4306 ac_cv_c_bigendian=no
4308 # finding both strings is unlikely to happen, but who knows?
4309 ac_cv_c_bigendian=unknown
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 $ac_includes_default
4332 /* Are we little or big endian? From Harbison&Steele. */
4336 char c[sizeof (long int)];
4339 return u.c[sizeof (long int) - 1] == 1;
4345 rm -f conftest$ac_exeext
4346 if { (ac_try="$ac_link"
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_link") 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_c_bigendian=no
4367 echo "$as_me: program exited with status $ac_status" >&5
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4372 ac_cv_c_bigendian=yes
4374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4383 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4384 case $ac_cv_c_bigendian in
4392 { { echo "$as_me:$LINENO: error: unknown endianness
4393 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4394 echo "$as_me: error: unknown endianness
4395 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4396 { (exit 1); exit 1; }; } ;;
4400 if test "$cross_compiling" = yes; then
4401 LLVM_CROSS_COMPILING=1
4404 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4405 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4406 if test "${ac_cv_build_exeext+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4410 ac_cv_build_exeext=.exe
4412 ac_build_prefix=${build_alias}-
4414 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4415 set dummy ${ac_build_prefix}gcc; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 if test -n "$BUILD_CC"; then
4422 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 BUILD_CC=$ac_cv_prog_BUILD_CC
4442 if test -n "$BUILD_CC"; then
4443 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444 echo "${ECHO_T}$BUILD_CC" >&6; }
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 if test -z "$BUILD_CC"; then
4452 # Extract the first word of "gcc", so it can be a program name with args.
4453 set dummy gcc; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -n "$BUILD_CC"; then
4460 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_BUILD_CC="gcc"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 BUILD_CC=$ac_cv_prog_BUILD_CC
4480 if test -n "$BUILD_CC"; then
4481 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482 echo "${ECHO_T}$BUILD_CC" >&6; }
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4489 if test -z "$BUILD_CC"; then
4490 # Extract the first word of "cc", so it can be a program name with args.
4491 set dummy cc; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 if test -n "$BUILD_CC"; then
4498 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4509 ac_prog_rejected=yes
4512 ac_cv_prog_BUILD_CC="cc"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 if test $ac_prog_rejected = yes; then
4521 # We found a bogon in the path, so make sure we never use it.
4522 set dummy $ac_cv_prog_BUILD_CC
4524 if test $# != 0; then
4525 # We chose a different compiler from the bogus one.
4526 # However, it has the same basename, so the bogon will be chosen
4527 # first if we set BUILD_CC to just the basename; use the full file name.
4529 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4534 BUILD_CC=$ac_cv_prog_BUILD_CC
4535 if test -n "$BUILD_CC"; then
4536 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4537 echo "${ECHO_T}$BUILD_CC" >&6; }
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4546 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4547 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4548 { (exit 1); exit 1; }; }
4549 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4551 echo 'int main () { return 0; }' > conftest.$ac_ext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4554 (eval $ac_build_link) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; then
4558 for file in conftest.*; do
4560 *.c | *.o | *.obj | *.dSYM) ;;
4561 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4565 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4566 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4567 { (exit 1); exit 1; }; }
4570 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4575 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4576 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4577 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4578 ac_build_exeext=$BUILD_EXEEXT
4580 ac_build_prefix=${build_alias}-
4581 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4582 set dummy ${ac_build_prefix}g++; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if test -n "$BUILD_CXX"; then
4589 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4609 if test -n "$BUILD_CXX"; then
4610 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4611 echo "${ECHO_T}$BUILD_CXX" >&6; }
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4618 if test -z "$BUILD_CXX"; then
4619 # Extract the first word of "g++", so it can be a program name with args.
4620 set dummy g++; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$BUILD_CXX"; then
4627 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_BUILD_CXX="g++"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4647 if test -n "$BUILD_CXX"; then
4648 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4649 echo "${ECHO_T}$BUILD_CXX" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 if test -z "$BUILD_CXX"; then
4657 # Extract the first word of "c++", so it can be a program name with args.
4658 set dummy c++; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 if test -n "$BUILD_CXX"; then
4665 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4676 ac_prog_rejected=yes
4679 ac_cv_prog_BUILD_CXX="c++"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test $ac_prog_rejected = yes; then
4688 # We found a bogon in the path, so make sure we never use it.
4689 set dummy $ac_cv_prog_BUILD_CXX
4691 if test $# != 0; then
4692 # We chose a different compiler from the bogus one.
4693 # However, it has the same basename, so the bogon will be chosen
4694 # first if we set BUILD_CXX to just the basename; use the full file name.
4696 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4701 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4702 if test -n "$BUILD_CXX"; then
4703 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4704 echo "${ECHO_T}$BUILD_CXX" >&6; }
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4714 LLVM_CROSS_COMPILING=0
4718 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4729 # Check whether --enable-optimized was given.
4730 if test "${enable_optimized+set}" = set; then
4731 enableval=$enable_optimized;
4736 if test ${enableval} = "no" ; then
4740 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4744 # Check whether --enable-profiling was given.
4745 if test "${enable_profiling+set}" = set; then
4746 enableval=$enable_profiling;
4751 if test ${enableval} = "no" ; then
4755 ENABLE_PROFILING=ENABLE_PROFILING=1
4759 # Check whether --enable-assertions was given.
4760 if test "${enable_assertions+set}" = set; then
4761 enableval=$enable_assertions;
4766 if test ${enableval} = "yes" ; then
4770 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4774 # Check whether --enable-expensive-checks was given.
4775 if test "${enable_expensive_checks+set}" = set; then
4776 enableval=$enable_expensive_checks;
4781 if test ${enableval} = "yes" ; then
4782 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4784 EXPENSIVE_CHECKS=yes
4787 ENABLE_EXPENSIVE_CHECKS=
4793 # Check whether --enable-debug-runtime was given.
4794 if test "${enable_debug_runtime+set}" = set; then
4795 enableval=$enable_debug_runtime;
4800 if test ${enableval} = "no" ; then
4804 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4808 # Check whether --enable-jit was given.
4809 if test "${enable_jit+set}" = set; then
4810 enableval=$enable_jit;
4815 if test ${enableval} = "no"
4820 case "$llvm_cv_target_arch" in
4821 x86) TARGET_HAS_JIT=1
4823 Sparc) TARGET_HAS_JIT=0
4825 PowerPC) TARGET_HAS_JIT=1
4827 x86_64) TARGET_HAS_JIT=1
4829 Alpha) TARGET_HAS_JIT=1
4831 IA64) TARGET_HAS_JIT=0
4833 ARM) TARGET_HAS_JIT=0
4835 Mips) TARGET_HAS_JIT=0
4837 PIC16) TARGET_HAS_JIT=0
4839 XCore) TARGET_HAS_JIT=0
4841 MSP430) TARGET_HAS_JIT=0
4848 # Check whether --enable-doxygen was given.
4849 if test "${enable_doxygen+set}" = set; then
4850 enableval=$enable_doxygen;
4855 case "$enableval" in
4856 yes) ENABLE_DOXYGEN=1
4858 no) ENABLE_DOXYGEN=0
4860 default) ENABLE_DOXYGEN=0
4862 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4863 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4864 { (exit 1); exit 1; }; } ;;
4867 # Check whether --enable-threads was given.
4868 if test "${enable_threads+set}" = set; then
4869 enableval=$enable_threads;
4874 case "$enableval" in
4875 yes) ENABLE_THREADS=1
4877 no) ENABLE_THREADS=0
4879 default) ENABLE_THREADS=1
4881 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4882 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4883 { (exit 1); exit 1; }; } ;;
4886 cat >>confdefs.h <<_ACEOF
4887 #define ENABLE_THREADS $ENABLE_THREADS
4891 # Check whether --enable-pic was given.
4892 if test "${enable_pic+set}" = set; then
4893 enableval=$enable_pic;
4898 case "$enableval" in
4903 default) ENABLE_PIC=1
4905 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4906 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4907 { (exit 1); exit 1; }; } ;;
4910 cat >>confdefs.h <<_ACEOF
4911 #define ENABLE_PIC $ENABLE_PIC
4916 # Check whether --enable-targets was given.
4917 if test "${enable_targets+set}" = set; then
4918 enableval=$enable_targets;
4923 case "$enableval" in
4924 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4926 case "$llvm_cv_target_arch" in
4927 x86) TARGETS_TO_BUILD="X86" ;;
4928 x86_64) TARGETS_TO_BUILD="X86" ;;
4929 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4930 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4931 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4932 IA64) TARGETS_TO_BUILD="IA64" ;;
4933 ARM) TARGETS_TO_BUILD="ARM" ;;
4934 Mips) TARGETS_TO_BUILD="Mips" ;;
4935 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4936 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4937 XCore) TARGETS_TO_BUILD="XCore" ;;
4938 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4939 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940 echo "$as_me: error: Can not set target to build" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4944 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4946 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4947 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4948 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4949 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4950 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4951 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4952 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4953 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4954 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4955 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4956 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4957 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4958 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4959 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4960 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4961 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4962 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4968 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4971 # Determine whether we are building LLVM support for the native architecture.
4972 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4973 for a_target in $TARGETS_TO_BUILD; do
4974 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4976 cat >>confdefs.h <<_ACEOF
4977 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
4983 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4984 # Targets.def and AsmPrinters.def.
4985 LLVM_ENUM_TARGETS=""
4986 LLVM_ENUM_ASM_PRINTERS=""
4987 for target_to_build in $TARGETS_TO_BUILD; do
4988 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4989 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4990 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4996 # Check whether --enable-cbe-printf-a was given.
4997 if test "${enable_cbe_printf_a+set}" = set; then
4998 enableval=$enable_cbe_printf_a;
5003 case "$enableval" in
5004 yes) ENABLE_CBE_PRINTF_A=1
5006 no) ENABLE_CBE_PRINTF_A=0
5008 default) ENABLE_CBE_PRINTF_A=1
5010 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5011 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5012 { (exit 1); exit 1; }; } ;;
5015 cat >>confdefs.h <<_ACEOF
5016 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5021 # Check whether --with-llvmgccdir was given.
5022 if test "${with_llvmgccdir+set}" = set; then
5023 withval=$with_llvmgccdir;
5029 default) WITH_LLVMGCCDIR=default ;;
5030 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5031 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5032 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5037 # Check whether --with-llvmgcc was given.
5038 if test "${with_llvmgcc+set}" = set; then
5039 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5045 # Check whether --with-llvmgxx was given.
5046 if test "${with_llvmgxx+set}" = set; then
5047 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5052 if test -n "$LLVMGCC"; then
5053 LLVMGCCCOMMAND="$LLVMGCC"
5056 if test -n "$LLVMGXX"; then
5057 LLVMGXXCOMMAND="$LLVMGXX"
5060 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5061 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5062 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5063 { (exit 1); exit 1; }; };
5066 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5067 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5068 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5069 { (exit 1); exit 1; }; };
5073 # Check whether --with-extra-options was given.
5074 if test "${with_extra_options+set}" = set; then
5075 withval=$with_extra_options;
5081 default) EXTRA_OPTIONS= ;;
5082 *) EXTRA_OPTIONS=$withval ;;
5084 EXTRA_OPTIONS=$EXTRA_OPTIONS
5087 # Check whether --enable-bindings was given.
5088 if test "${enable_bindings+set}" = set; then
5089 enableval=$enable_bindings;
5094 BINDINGS_TO_BUILD=""
5095 case "$enableval" in
5096 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5097 all ) BINDINGS_TO_BUILD="ocaml" ;;
5098 none | no) BINDINGS_TO_BUILD="" ;;
5099 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5100 case "$a_binding" in
5101 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5102 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5103 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5111 # Check whether --with-ocaml-libdir was given.
5112 if test "${with_ocaml_libdir+set}" = set; then
5113 withval=$with_ocaml_libdir;
5119 auto) with_ocaml_libdir="$withval" ;;
5120 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5121 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5122 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5123 { (exit 1); exit 1; }; } ;;
5127 # Check whether --with-binutils-include was given.
5128 if test "${with_binutils_include+set}" = set; then
5129 withval=$with_binutils_include;
5135 default) WITH_BINUTILS_INCDIR=default ;;
5136 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5138 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5141 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5142 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5144 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5145 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5146 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5147 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5148 { (exit 1); exit 1; }; };
5152 # Check whether --enable-libffi was given.
5153 if test "${enable_libffi+set}" = set; then
5154 enableval=$enable_libffi;
5159 case "$enableval" in
5160 yes) llvm_cv_enable_libffi="yes" ;;
5161 no) llvm_cv_enable_libffi="no" ;;
5162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5169 ac_cpp='$CPP $CPPFLAGS'
5170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5174 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5175 # On Suns, sometimes $CPP names a directory.
5176 if test -n "$CPP" && test -d "$CPP"; then
5179 if test -z "$CPP"; then
5180 if test "${ac_cv_prog_CPP+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 # Double quotes because CPP needs to be expanded
5184 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5187 for ac_c_preproc_warn_flag in '' yes
5189 # Use a header file that comes with gcc, so configuring glibc
5190 # with a fresh cross-compiler works.
5191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192 # <limits.h> exists even on freestanding compilers.
5193 # On the NeXT, cc -E runs the code through the compiler's parser,
5194 # not just through cpp. "Syntax error" is here to catch this case.
5195 cat >conftest.$ac_ext <<_ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5202 # include <limits.h>
5204 # include <assert.h>
5208 if { (ac_try="$ac_cpp conftest.$ac_ext"
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5216 grep -v '^ *+' conftest.er1 >conftest.err
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } >/dev/null; then
5221 if test -s conftest.err; then
5222 ac_cpp_err=$ac_c_preproc_warn_flag
5223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5230 if test -z "$ac_cpp_err"; then
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5236 # Broken: fails on valid input.
5240 rm -f conftest.err conftest.$ac_ext
5242 # OK, works on sane cases. Now check whether nonexistent headers
5243 # can be detected and how.
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <ac_nonexistent.h>
5252 if { (ac_try="$ac_cpp conftest.$ac_ext"
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } >/dev/null; then
5265 if test -s conftest.err; then
5266 ac_cpp_err=$ac_c_preproc_warn_flag
5267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5274 if test -z "$ac_cpp_err"; then
5275 # Broken: success on invalid input.
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 # Passes both tests.
5286 rm -f conftest.err conftest.$ac_ext
5289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5290 rm -f conftest.err conftest.$ac_ext
5291 if $ac_preproc_ok; then
5303 { echo "$as_me:$LINENO: result: $CPP" >&5
5304 echo "${ECHO_T}$CPP" >&6; }
5306 for ac_c_preproc_warn_flag in '' yes
5308 # Use a header file that comes with gcc, so configuring glibc
5309 # with a fresh cross-compiler works.
5310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311 # <limits.h> exists even on freestanding compilers.
5312 # On the NeXT, cc -E runs the code through the compiler's parser,
5313 # not just through cpp. "Syntax error" is here to catch this case.
5314 cat >conftest.$ac_ext <<_ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5321 # include <limits.h>
5323 # include <assert.h>
5327 if { (ac_try="$ac_cpp conftest.$ac_ext"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } >/dev/null; then
5340 if test -s conftest.err; then
5341 ac_cpp_err=$ac_c_preproc_warn_flag
5342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5349 if test -z "$ac_cpp_err"; then
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 # Broken: fails on valid input.
5359 rm -f conftest.err conftest.$ac_ext
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <ac_nonexistent.h>
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 grep -v '^ *+' conftest.er1 >conftest.err
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } >/dev/null; then
5384 if test -s conftest.err; then
5385 ac_cpp_err=$ac_c_preproc_warn_flag
5386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5393 if test -z "$ac_cpp_err"; then
5394 # Broken: success on invalid input.
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 # Passes both tests.
5405 rm -f conftest.err conftest.$ac_ext
5408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409 rm -f conftest.err conftest.$ac_ext
5410 if $ac_preproc_ok; then
5413 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5414 See \`config.log' for more details." >&5
5415 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5416 See \`config.log' for more details." >&2;}
5417 { (exit 1); exit 1; }; }
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 ac_cpp='$CPP $CPPFLAGS'
5428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5438 if test "${ac_cv_prog_CC+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 if test -n "$CC"; then
5442 ac_cv_prog_CC="$CC" # Let the user override the test.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 if test -n "$CC"; then
5463 { echo "$as_me:$LINENO: result: $CC" >&5
5464 echo "${ECHO_T}$CC" >&6; }
5466 { echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6; }
5471 test -n "$CC" && break
5474 if test -z "$CC"; then
5478 # Extract the first word of "$ac_prog", so it can be a program name with args.
5479 set dummy $ac_prog; ac_word=$2
5480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 if test -n "$ac_ct_CC"; then
5486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_ac_ct_CC="$ac_prog"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5506 if test -n "$ac_ct_CC"; then
5507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5508 echo "${ECHO_T}$ac_ct_CC" >&6; }
5510 { echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6; }
5515 test -n "$ac_ct_CC" && break
5518 if test "x$ac_ct_CC" = x; then
5521 case $cross_compiling:$ac_tool_warned in
5523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5524 whose name does not start with the host triplet. If you think this
5525 configuration is useful to you, please write to autoconf@gnu.org." >&5
5526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5527 whose name does not start with the host triplet. If you think this
5528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5529 ac_tool_warned=yes ;;
5536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5537 See \`config.log' for more details." >&5
5538 echo "$as_me: error: no acceptable C compiler found in \$PATH
5539 See \`config.log' for more details." >&2;}
5540 { (exit 1); exit 1; }; }
5542 # Provide some information about the compiler.
5543 echo "$as_me:$LINENO: checking for C compiler version" >&5
5544 ac_compiler=`set X $ac_compile; echo $2`
5545 { (ac_try="$ac_compiler --version >&5"
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_compiler --version >&5") 2>&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }
5555 { (ac_try="$ac_compiler -v >&5"
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compiler -v >&5") 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }
5565 { (ac_try="$ac_compiler -V >&5"
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_compiler -V >&5") 2>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }
5576 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5577 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5578 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5614 { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_try") 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_try") 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5645 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5646 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5647 GCC=`test $ac_compiler_gnu = yes && echo yes`
5648 ac_test_CFLAGS=${CFLAGS+set}
5649 ac_save_CFLAGS=$CFLAGS
5650 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5652 if test "${ac_cv_prog_cc_g+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 ac_save_c_werror_flag=$ac_c_werror_flag
5656 ac_c_werror_flag=yes
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5683 grep -v '^ *+' conftest.er1 >conftest.err
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5689 { (case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_try") 2>&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_try") 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5729 rm -f conftest.$ac_objext
5730 if { (ac_try="$ac_compile"
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5738 grep -v '^ *+' conftest.er1 >conftest.err
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5744 { (case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_try") 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_try") 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5768 ac_c_werror_flag=$ac_save_c_werror_flag
5770 cat >conftest.$ac_ext <<_ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1 >conftest.err
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_try") 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 ac_c_werror_flag=$ac_save_c_werror_flag
5836 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5837 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5838 if test "$ac_test_CFLAGS" = set; then
5839 CFLAGS=$ac_save_CFLAGS
5840 elif test $ac_cv_prog_cc_g = yes; then
5841 if test "$GCC" = yes; then
5847 if test "$GCC" = yes; then
5853 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5854 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5855 if test "${ac_cv_prog_cc_c89+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 ac_cv_prog_cc_c89=no
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5868 #include <sys/types.h>
5869 #include <sys/stat.h>
5870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5871 struct buf { int x; };
5872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5873 static char *e (p, i)
5879 static char *f (char * (*g) (char **, int), char **p, ...)
5884 s = g (p, va_arg (v,int));
5889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5890 function prototypes and stuff, but not '\xHH' hex character constants.
5891 These don't provoke an error unfortunately, instead are silently treated
5892 as 'x'. The following induces an error, until -std is added to get
5893 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5894 array size at least. It's necessary to write '\x00'==0 to get something
5895 that's true only with -std. */
5896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5899 inside strings and character constants. */
5901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5903 int test (int i, double x);
5904 struct s1 {int (*f) (int a);};
5905 struct s2 {int (*f) (double a);};
5906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5918 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5920 CC="$ac_save_CC $ac_arg"
5921 rm -f conftest.$ac_objext
5922 if { (ac_try="$ac_compile"
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_prog_cc_c89=$ac_arg
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5963 rm -f core conftest.err conftest.$ac_objext
5964 test "x$ac_cv_prog_cc_c89" != "xno" && break
5966 rm -f conftest.$ac_ext
5971 case "x$ac_cv_prog_cc_c89" in
5973 { echo "$as_me:$LINENO: result: none needed" >&5
5974 echo "${ECHO_T}none needed" >&6; } ;;
5976 { echo "$as_me:$LINENO: result: unsupported" >&5
5977 echo "${ECHO_T}unsupported" >&6; } ;;
5979 CC="$CC $ac_cv_prog_cc_c89"
5980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5981 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5986 ac_cpp='$CPP $CPPFLAGS'
5987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992 ac_cpp='$CXXCPP $CPPFLAGS'
5993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5996 if test -z "$CXX"; then
5997 if test -n "$CCC"; then
6000 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_prog_CXX+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 if test -n "$CXX"; then
6011 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 if test -n "$CXX"; then
6032 { echo "$as_me:$LINENO: result: $CXX" >&5
6033 echo "${ECHO_T}$CXX" >&6; }
6035 { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6040 test -n "$CXX" && break
6043 if test -z "$CXX"; then
6047 # Extract the first word of "$ac_prog", so it can be a program name with args.
6048 set dummy $ac_prog; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$ac_ct_CXX"; then
6055 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_ac_ct_CXX="$ac_prog"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6075 if test -n "$ac_ct_CXX"; then
6076 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6077 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6084 test -n "$ac_ct_CXX" && break
6087 if test "x$ac_ct_CXX" = x; then
6090 case $cross_compiling:$ac_tool_warned in
6092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6093 whose name does not start with the host triplet. If you think this
6094 configuration is useful to you, please write to autoconf@gnu.org." >&5
6095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6096 whose name does not start with the host triplet. If you think this
6097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6098 ac_tool_warned=yes ;;
6106 # Provide some information about the compiler.
6107 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6108 ac_compiler=`set X $ac_compile; echo $2`
6109 { (ac_try="$ac_compiler --version >&5"
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_compiler --version >&5") 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }
6119 { (ac_try="$ac_compiler -v >&5"
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compiler -v >&5") 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }
6129 { (ac_try="$ac_compiler -V >&5"
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compiler -V >&5") 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }
6140 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6141 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6142 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6163 rm -f conftest.$ac_objext
6164 if { (ac_try="$ac_compile"
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_compile") 2>conftest.er1
6172 grep -v '^ *+' conftest.er1 >conftest.err
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_try") 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6209 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6210 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6211 GXX=`test $ac_compiler_gnu = yes && echo yes`
6212 ac_test_CXXFLAGS=${CXXFLAGS+set}
6213 ac_save_CXXFLAGS=$CXXFLAGS
6214 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6215 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_cxx_g+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6220 ac_cxx_werror_flag=yes
6223 cat >conftest.$ac_ext <<_ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compile") 2>conftest.er1
6247 grep -v '^ *+' conftest.er1 >conftest.err
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6253 { (case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_try") 2>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_try") 2>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_cv_prog_cxx_g=yes
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_prog_cxx_g=yes
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6400 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6401 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6402 if test "$ac_test_CXXFLAGS" = set; then
6403 CXXFLAGS=$ac_save_CXXFLAGS
6404 elif test $ac_cv_prog_cxx_g = yes; then
6405 if test "$GXX" = yes; then
6411 if test "$GXX" = yes; then
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6425 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6426 if test "${lt_cv_path_NM+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 if test -n "$NM"; then
6430 # Let the user override the test.
6433 lt_nm_to_check="${ac_tool_prefix}nm"
6434 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6435 lt_nm_to_check="$lt_nm_to_check nm"
6437 for lt_tmp_nm in $lt_nm_to_check; do
6438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6441 test -z "$ac_dir" && ac_dir=.
6442 tmp_nm="$ac_dir/$lt_tmp_nm"
6443 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6444 # Check to see if the nm accepts a BSD-compat flag.
6445 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6446 # nm: unknown option "B" ignored
6447 # Tru64's nm complains that /dev/null is an invalid object file
6448 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6449 */dev/null* | *'Invalid file or object type'*)
6450 lt_cv_path_NM="$tmp_nm -B"
6454 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6456 lt_cv_path_NM="$tmp_nm -p"
6460 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6461 continue # so that we can try to find one that supports BSD flags
6470 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6473 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6474 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6479 { echo "$as_me:$LINENO: checking for GNU make" >&5
6480 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6481 if test "${llvm_cv_gnu_make_command+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 llvm_cv_gnu_make_command=''
6485 for a in "$MAKE" make gmake gnumake ; do
6486 if test -z "$a" ; then continue ; fi ;
6487 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6489 llvm_cv_gnu_make_command=$a ;
6494 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6495 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6496 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6500 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6501 echo "${ECHO_T}\"Not found\"" >&6; };
6505 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6506 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6508 if test "$LN_S" = "ln -s"; then
6509 { echo "$as_me:$LINENO: result: yes" >&5
6510 echo "${ECHO_T}yes" >&6; }
6512 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6513 echo "${ECHO_T}no, using $LN_S" >&6; }
6516 # Extract the first word of "cmp", so it can be a program name with args.
6517 set dummy cmp; 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_path_CMP+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6548 if test -n "$CMP"; then
6549 { echo "$as_me:$LINENO: result: $CMP" >&5
6550 echo "${ECHO_T}$CMP" >&6; }
6552 { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6557 # Extract the first word of "cp", so it can be a program name with args.
6558 set dummy cp; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_CP+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6589 if test -n "$CP"; then
6590 { echo "$as_me:$LINENO: result: $CP" >&5
6591 echo "${ECHO_T}$CP" >&6; }
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6598 # Extract the first word of "date", so it can be a program name with args.
6599 set dummy date; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_path_DATE+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6629 DATE=$ac_cv_path_DATE
6630 if test -n "$DATE"; then
6631 { echo "$as_me:$LINENO: result: $DATE" >&5
6632 echo "${ECHO_T}$DATE" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6639 # Extract the first word of "find", so it can be a program name with args.
6640 set dummy find; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_FIND+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6670 FIND=$ac_cv_path_FIND
6671 if test -n "$FIND"; then
6672 { echo "$as_me:$LINENO: result: $FIND" >&5
6673 echo "${ECHO_T}$FIND" >&6; }
6675 { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6680 # Extract the first word of "grep", so it can be a program name with args.
6681 set dummy grep; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_path_GREP+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6711 GREP=$ac_cv_path_GREP
6712 if test -n "$GREP"; then
6713 { echo "$as_me:$LINENO: result: $GREP" >&5
6714 echo "${ECHO_T}$GREP" >&6; }
6716 { echo "$as_me:$LINENO: result: no" >&5
6717 echo "${ECHO_T}no" >&6; }
6721 # Extract the first word of "mkdir", so it can be a program name with args.
6722 set dummy mkdir; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_path_MKDIR+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6752 MKDIR=$ac_cv_path_MKDIR
6753 if test -n "$MKDIR"; then
6754 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6755 echo "${ECHO_T}$MKDIR" >&6; }
6757 { echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6; }
6762 # Extract the first word of "mv", so it can be a program name with args.
6763 set dummy mv; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_MV+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6794 if test -n "$MV"; then
6795 { echo "$as_me:$LINENO: result: $MV" >&5
6796 echo "${ECHO_T}$MV" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 if test -n "$ac_tool_prefix"; then
6804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_RANLIB+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 if test -n "$RANLIB"; then
6812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 RANLIB=$ac_cv_prog_RANLIB
6832 if test -n "$RANLIB"; then
6833 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6834 echo "${ECHO_T}$RANLIB" >&6; }
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6842 if test -z "$ac_cv_prog_RANLIB"; then
6843 ac_ct_RANLIB=$RANLIB
6844 # Extract the first word of "ranlib", so it can be a program name with args.
6845 set dummy ranlib; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 if test -n "$ac_ct_RANLIB"; then
6852 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_ac_ct_RANLIB="ranlib"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6872 if test -n "$ac_ct_RANLIB"; then
6873 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6874 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6880 if test "x$ac_ct_RANLIB" = x; then
6883 case $cross_compiling:$ac_tool_warned in
6885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6886 whose name does not start with the host triplet. If you think this
6887 configuration is useful to you, please write to autoconf@gnu.org." >&5
6888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6889 whose name does not start with the host triplet. If you think this
6890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6891 ac_tool_warned=yes ;;
6893 RANLIB=$ac_ct_RANLIB
6896 RANLIB="$ac_cv_prog_RANLIB"
6899 # Extract the first word of "rm", so it can be a program name with args.
6900 set dummy rm; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_RM+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6931 if test -n "$RM"; then
6932 { echo "$as_me:$LINENO: result: $RM" >&5
6933 echo "${ECHO_T}$RM" >&6; }
6935 { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6940 # Extract the first word of "sed", so it can be a program name with args.
6941 set dummy sed; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_SED+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6972 if test -n "$SED"; then
6973 { echo "$as_me:$LINENO: result: $SED" >&5
6974 echo "${ECHO_T}$SED" >&6; }
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6981 # Extract the first word of "tar", so it can be a program name with args.
6982 set dummy tar; ac_word=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_TAR+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7013 if test -n "$TAR"; then
7014 { echo "$as_me:$LINENO: result: $TAR" >&5
7015 echo "${ECHO_T}$TAR" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7022 # Extract the first word of "pwd", so it can be a program name with args.
7023 set dummy pwd; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_path_BINPWD+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7053 BINPWD=$ac_cv_path_BINPWD
7054 if test -n "$BINPWD"; then
7055 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7056 echo "${ECHO_T}$BINPWD" >&6; }
7058 { echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6; }
7064 # Extract the first word of "Graphviz", so it can be a program name with args.
7065 set dummy Graphviz; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7095 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7096 if test -n "$GRAPHVIZ"; then
7097 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7098 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7105 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7107 cat >>confdefs.h <<\_ACEOF
7108 #define HAVE_GRAPHVIZ 1
7111 if test "$llvm_cv_os_type" = "MingW" ; then
7112 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7115 cat >>confdefs.h <<_ACEOF
7116 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7120 # Extract the first word of "dot", so it can be a program name with args.
7121 set dummy dot; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_DOT+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7152 if test -n "$DOT"; then
7153 { echo "$as_me:$LINENO: result: $DOT" >&5
7154 echo "${ECHO_T}$DOT" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 if test "$DOT" != "echo dot" ; then
7163 cat >>confdefs.h <<\_ACEOF
7167 if test "$llvm_cv_os_type" = "MingW" ; then
7168 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7171 cat >>confdefs.h <<_ACEOF
7172 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7176 for ac_prog in gv gsview32
7178 # Extract the first word of "$ac_prog", so it can be a program name with args.
7179 set dummy $ac_prog; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_GV+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 if test -n "$GV"; then
7210 { echo "$as_me:$LINENO: result: $GV" >&5
7211 echo "${ECHO_T}$GV" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7218 test -n "$GV" && break
7220 test -n "$GV" || GV="echo gv"
7222 if test "$GV" != "echo gv" ; then
7224 cat >>confdefs.h <<\_ACEOF
7228 if test "$llvm_cv_os_type" = "MingW" ; then
7229 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7232 cat >>confdefs.h <<_ACEOF
7233 #define LLVM_PATH_GV "$GV${EXEEXT}"
7237 # Extract the first word of "dotty", so it can be a program name with args.
7238 set dummy dotty; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_DOTTY+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7268 DOTTY=$ac_cv_path_DOTTY
7269 if test -n "$DOTTY"; then
7270 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7271 echo "${ECHO_T}$DOTTY" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 if test "$DOTTY" != "echo dotty" ; then
7280 cat >>confdefs.h <<\_ACEOF
7281 #define HAVE_DOTTY 1
7284 if test "$llvm_cv_os_type" = "MingW" ; then
7285 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7288 cat >>confdefs.h <<_ACEOF
7289 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7295 # Extract the first word of "perl", so it can be a program name with args.
7296 set dummy perl; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_PERL+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7326 PERL=$ac_cv_path_PERL
7327 if test -n "$PERL"; then
7328 { echo "$as_me:$LINENO: result: $PERL" >&5
7329 echo "${ECHO_T}$PERL" >&6; }
7331 { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7336 if test "$PERL" != "none"; then
7337 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7338 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7339 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7340 { echo "$as_me:$LINENO: result: yes" >&5
7341 echo "${ECHO_T}yes" >&6; }
7344 { echo "$as_me:$LINENO: result: not found" >&5
7345 echo "${ECHO_T}not found" >&6; }
7350 if test x"$PERL" = xnone; then
7353 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7354 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7355 { (exit 1); exit 1; }; }
7361 # Find a good install program. We prefer a C program (faster),
7362 # so one script is as good as another. But avoid the broken or
7363 # incompatible versions:
7364 # SysV /etc/install, /usr/sbin/install
7365 # SunOS /usr/etc/install
7366 # IRIX /sbin/install
7368 # AmigaOS /C/install, which installs bootblocks on floppy discs
7369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7372 # OS/2's system install, which has a completely different semantic
7373 # ./install, which can be erroneously created by make from ./install.sh.
7374 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7375 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7376 if test -z "$INSTALL"; then
7377 if test "${ac_cv_path_install+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 test -z "$as_dir" && as_dir=.
7385 # Account for people who put trailing slashes in PATH elements.
7387 ./ | .// | /cC/* | \
7388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7389 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7392 # OSF1 and SCO ODT 3.0 have their own names for install.
7393 # Don't use installbsd from OSF since it installs stuff as root
7395 for ac_prog in ginstall scoinst install; do
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7398 if test $ac_prog = install &&
7399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7400 # AIX install. It has an incompatible calling convention.
7402 elif test $ac_prog = install &&
7403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7404 # program-specific install script used by HP pwplus--don't use.
7407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7420 if test "${ac_cv_path_install+set}" = set; then
7421 INSTALL=$ac_cv_path_install
7423 # As a last resort, use the slow shell script. Don't cache a
7424 # value for INSTALL within a source directory, because that will
7425 # break other packages using the cache if that directory is
7426 # removed, or if the value is a relative name.
7427 INSTALL=$ac_install_sh
7430 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7431 echo "${ECHO_T}$INSTALL" >&6; }
7433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7434 # It thinks the first close brace ends the variable substitution.
7435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7442 # Extract the first word of "bzip2", so it can be a program name with args.
7443 set dummy bzip2; ac_word=$2
7444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446 if test "${ac_cv_path_BZIP2+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 BZIP2=$ac_cv_path_BZIP2
7473 if test -n "$BZIP2"; then
7474 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7475 echo "${ECHO_T}$BZIP2" >&6; }
7477 { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7482 # Extract the first word of "doxygen", so it can be a program name with args.
7483 set dummy doxygen; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 DOXYGEN=$ac_cv_path_DOXYGEN
7513 if test -n "$DOXYGEN"; then
7514 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7515 echo "${ECHO_T}$DOXYGEN" >&6; }
7517 { echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6; }
7522 # Extract the first word of "groff", so it can be a program name with args.
7523 set dummy groff; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_GROFF+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 GROFF=$ac_cv_path_GROFF
7553 if test -n "$GROFF"; then
7554 { echo "$as_me:$LINENO: result: $GROFF" >&5
7555 echo "${ECHO_T}$GROFF" >&6; }
7557 { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7562 # Extract the first word of "gzip", so it can be a program name with args.
7563 set dummy gzip; ac_word=$2
7564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566 if test "${ac_cv_path_GZIP+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 GZIP=$ac_cv_path_GZIP
7593 if test -n "$GZIP"; then
7594 { echo "$as_me:$LINENO: result: $GZIP" >&5
7595 echo "${ECHO_T}$GZIP" >&6; }
7597 { echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6; }
7602 # Extract the first word of "pod2html", so it can be a program name with args.
7603 set dummy pod2html; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_path_POD2HTML+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 POD2HTML=$ac_cv_path_POD2HTML
7633 if test -n "$POD2HTML"; then
7634 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7635 echo "${ECHO_T}$POD2HTML" >&6; }
7637 { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7642 # Extract the first word of "pod2man", so it can be a program name with args.
7643 set dummy pod2man; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_POD2MAN+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 POD2MAN=$ac_cv_path_POD2MAN
7673 if test -n "$POD2MAN"; then
7674 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7675 echo "${ECHO_T}$POD2MAN" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7682 # Extract the first word of "runtest", so it can be a program name with args.
7683 set dummy runtest; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_path_RUNTEST+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7701 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 RUNTEST=$ac_cv_path_RUNTEST
7713 if test -n "$RUNTEST"; then
7714 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7715 echo "${ECHO_T}$RUNTEST" >&6; }
7717 { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7724 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7725 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7727 # Check whether --with-tclinclude was given.
7728 if test "${with_tclinclude+set}" = set; then
7729 withval=$with_tclinclude; with_tclinclude=${withval}
7734 if test "${ac_cv_path_tclsh+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 if test x"${with_tclinclude}" != x ; then
7739 if test -f ${with_tclinclude}/tclsh ; then
7740 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7741 elif test -f ${with_tclinclude}/src/tclsh ; then
7742 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7744 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7745 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7746 { (exit 1); exit 1; }; }
7750 if test x"${ac_cv_path_tclsh}" = x ; then
7751 { echo "$as_me:$LINENO: result: none" >&5
7752 echo "${ECHO_T}none" >&6; }
7753 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
7755 # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7759 if test "${ac_cv_path_TCLSH+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 TCLSH=$ac_cv_path_TCLSH
7786 if test -n "$TCLSH"; then
7787 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7788 echo "${ECHO_T}$TCLSH" >&6; }
7790 { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7795 test -n "$TCLSH" && break
7798 if test x"${TCLSH}" = x ; then
7799 ac_cv_path_tclsh='';
7801 ac_cv_path_tclsh="${TCLSH}";
7804 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7805 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7806 TCLSH="${ac_cv_path_tclsh}"
7812 # Extract the first word of "zip", so it can be a program name with args.
7813 set dummy zip; ac_word=$2
7814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816 if test "${ac_cv_path_ZIP+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 if test -n "$ZIP"; then
7844 { echo "$as_me:$LINENO: result: $ZIP" >&5
7845 echo "${ECHO_T}$ZIP" >&6; }
7847 { echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6; }
7852 for ac_prog in ocamlc
7854 # Extract the first word of "$ac_prog", so it can be a program name with args.
7855 set dummy $ac_prog; ac_word=$2
7856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858 if test "${ac_cv_path_OCAMLC+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 OCAMLC=$ac_cv_path_OCAMLC
7885 if test -n "$OCAMLC"; then
7886 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7887 echo "${ECHO_T}$OCAMLC" >&6; }
7889 { echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6; }
7894 test -n "$OCAMLC" && break
7897 for ac_prog in ocamlopt
7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
7900 set dummy $ac_prog; ac_word=$2
7901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7903 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 OCAMLOPT=$ac_cv_path_OCAMLOPT
7930 if test -n "$OCAMLOPT"; then
7931 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7932 echo "${ECHO_T}$OCAMLOPT" >&6; }
7934 { echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6; }
7939 test -n "$OCAMLOPT" && break
7942 for ac_prog in ocamldep
7944 # Extract the first word of "$ac_prog", so it can be a program name with args.
7945 set dummy $ac_prog; ac_word=$2
7946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 OCAMLDEP=$ac_cv_path_OCAMLDEP
7975 if test -n "$OCAMLDEP"; then
7976 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7977 echo "${ECHO_T}$OCAMLDEP" >&6; }
7979 { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7984 test -n "$OCAMLDEP" && break
7987 for ac_prog in ocamldoc
7989 # Extract the first word of "$ac_prog", so it can be a program name with args.
7990 set dummy $ac_prog; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 OCAMLDOC=$ac_cv_path_OCAMLDOC
8020 if test -n "$OCAMLDOC"; then
8021 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8022 echo "${ECHO_T}$OCAMLDOC" >&6; }
8024 { echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6; }
8029 test -n "$OCAMLDOC" && break
8032 for ac_prog in gas as
8034 # Extract the first word of "$ac_prog", so it can be a program name with args.
8035 set dummy $ac_prog; ac_word=$2
8036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8038 if test "${ac_cv_path_GAS+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 if test -n "$GAS"; then
8066 { echo "$as_me:$LINENO: result: $GAS" >&5
8067 echo "${ECHO_T}$GAS" >&6; }
8069 { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8074 test -n "$GAS" && break
8078 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8079 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8080 if test "${llvm_cv_link_use_r+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 ac_cpp='$CPP $CPPFLAGS'
8085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8090 CFLAGS="$CFLAGS -Wl,-R."
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8101 int main() { return 0; }
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (ac_try="$ac_link"
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_link") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 llvm_cv_link_use_r=yes
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 llvm_cv_link_use_r=no
8148 rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8152 ac_cpp='$CPP $CPPFLAGS'
8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8160 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8161 if test "$llvm_cv_link_use_r" = yes ; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_LINK_R 1
8170 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8171 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8172 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8193 int main() { return 0; }
8198 rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (ac_try="$ac_link"
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_link") 2>conftest.er1
8207 grep -v '^ *+' conftest.er1 >conftest.err
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 llvm_cv_link_use_export_dynamic=yes
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 llvm_cv_link_use_export_dynamic=no
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8252 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8253 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8255 cat >>confdefs.h <<\_ACEOF
8256 #define HAVE_LINK_EXPORT_DYNAMIC 1
8264 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8265 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8266 if test "${ac_cv_c_const+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8279 /* FIXME: Include the comments suggested by Paul. */
8281 /* Ultrix mips cc rejects this. */
8282 typedef int charset[2];
8284 /* SunOS 4.1.1 cc rejects this. */
8285 char const *const *ccp;
8287 /* NEC SVR4.0.2 mips cc rejects this. */
8288 struct point {int x, y;};
8289 static struct point const zero = {0,0};
8290 /* AIX XL C 1.02.0.0 rejects this.
8291 It does not let you subtract one const X* pointer from another in
8292 an arm of an if-expression whose if-part is not a constant
8294 const char *g = "string";
8295 ccp = &g + (g ? g-g : 0);
8296 /* HPUX 7.0 cc rejects these. */
8299 ccp = (char const *const *) p;
8300 { /* SCO 3.2v4 cc rejects this. */
8302 char const *s = 0 ? (char *) 0 : (char const *) 0;
8307 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8309 const int *foo = &x[0];
8312 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8313 typedef const int *iptr;
8317 { /* AIX XL C 1.02.0.0 rejects this saying
8318 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8319 struct s { int j; const int *ap[3]; };
8320 struct s *b; b->j = 5;
8322 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8326 return !x[0] && !zero.x;
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8342 grep -v '^ *+' conftest.er1 >conftest.err
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8378 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8379 if test $ac_cv_c_const = no; then
8381 cat >>confdefs.h <<\_ACEOF
8393 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8394 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8395 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8396 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <sys/types.h>
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compile") 2>conftest.er1
8427 grep -v '^ *+' conftest.er1 >conftest.err
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 eval "$as_ac_Header=yes"
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 eval "$as_ac_Header=no"
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 ac_res=`eval echo '${'$as_ac_Header'}'`
8463 { echo "$as_me:$LINENO: result: $ac_res" >&5
8464 echo "${ECHO_T}$ac_res" >&6; }
8465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8466 cat >>confdefs.h <<_ACEOF
8467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8470 ac_header_dirent=$ac_hdr; break
8474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8475 if test $ac_header_dirent = dirent.h; then
8476 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8478 if test "${ac_cv_search_opendir+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 ac_func_search_save_LIBS=$LIBS
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8489 /* Override any GCC internal prototype to avoid an error.
8490 Use char because int might match the return type of a GCC
8491 builtin and then its argument prototype would still apply. */
8504 for ac_lib in '' dir; do
8505 if test -z "$ac_lib"; then
8506 ac_res="none required"
8509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (ac_try="$ac_link"
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_link") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526 { (case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_try") 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_try") 2>&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_cv_search_opendir=$ac_res
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8553 rm -f core conftest.err conftest.$ac_objext \
8555 if test "${ac_cv_search_opendir+set}" = set; then
8559 if test "${ac_cv_search_opendir+set}" = set; then
8562 ac_cv_search_opendir=no
8565 LIBS=$ac_func_search_save_LIBS
8567 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8568 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8569 ac_res=$ac_cv_search_opendir
8570 if test "$ac_res" != no; then
8571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8576 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8577 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8578 if test "${ac_cv_search_opendir+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 ac_func_search_save_LIBS=$LIBS
8582 cat >conftest.$ac_ext <<_ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8589 /* Override any GCC internal prototype to avoid an error.
8590 Use char because int might match the return type of a GCC
8591 builtin and then its argument prototype would still apply. */
8604 for ac_lib in '' x; do
8605 if test -z "$ac_lib"; then
8606 ac_res="none required"
8609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (ac_try="$ac_link"
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_link") 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_try") 2>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_search_opendir=$ac_res
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8653 rm -f core conftest.err conftest.$ac_objext \
8655 if test "${ac_cv_search_opendir+set}" = set; then
8659 if test "${ac_cv_search_opendir+set}" = set; then
8662 ac_cv_search_opendir=no
8665 LIBS=$ac_func_search_save_LIBS
8667 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8668 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8669 ac_res=$ac_cv_search_opendir
8670 if test "$ac_res" != no; then
8671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8678 for ac_header in dlfcn.h
8680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 ac_res=`eval echo '${'$as_ac_Header'}'`
8688 { echo "$as_me:$LINENO: result: $ac_res" >&5
8689 echo "${ECHO_T}$ac_res" >&6; }
8691 # Is the header compilable?
8692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 $ac_includes_default
8701 #include <$ac_header>
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 ac_header_compiler=yes
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ac_header_compiler=no
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8747 echo "${ECHO_T}$ac_header_compiler" >&6; }
8749 # Is the header present?
8750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 #include <$ac_header>
8760 if { (ac_try="$ac_cpp conftest.$ac_ext"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } >/dev/null; then
8773 if test -s conftest.err; then
8774 ac_cpp_err=$ac_c_preproc_warn_flag
8775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8782 if test -z "$ac_cpp_err"; then
8783 ac_header_preproc=yes
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_header_preproc=no
8791 rm -f conftest.err conftest.$ac_ext
8792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8793 echo "${ECHO_T}$ac_header_preproc" >&6; }
8795 # So? What about this header?
8796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8802 ac_header_preproc=yes
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8818 ## ----------------------------------- ##
8819 ## Report this to llvmbugs@cs.uiuc.edu ##
8820 ## ----------------------------------- ##
8822 ) | sed "s/^/$as_me: WARNING: /" >&2
8825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 eval "$as_ac_Header=\$ac_header_preproc"
8832 ac_res=`eval echo '${'$as_ac_Header'}'`
8833 { echo "$as_me:$LINENO: result: $ac_res" >&5
8834 echo "${ECHO_T}$ac_res" >&6; }
8837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838 cat >>confdefs.h <<_ACEOF
8839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8846 # Check whether --enable-ltdl-install was given.
8847 if test "${enable_ltdl_install+set}" = set; then
8848 enableval=$enable_ltdl_install;
8854 if test x"${enable_ltdl_install-no}" != xno; then
8856 INSTALL_LTDL_FALSE='#'
8858 INSTALL_LTDL_TRUE='#'
8864 if test x"${enable_ltdl_convenience-no}" != xno; then
8865 CONVENIENCE_LTDL_TRUE=
8866 CONVENIENCE_LTDL_FALSE='#'
8868 CONVENIENCE_LTDL_TRUE='#'
8869 CONVENIENCE_LTDL_FALSE=
8873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8876 libname_spec='lib$name'
8884 shlibpath_overrides_runpath=unknown
8886 dynamic_linker="$host_os ld.so"
8887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8888 if test "$GCC" = yes; then
8889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8891 # if the path contains ";" then we assume it to be the separator
8892 # otherwise default to the standard path separator (i.e. ":") - it is
8893 # assumed that no part of a normal pathname contains ";" but that should
8894 # okay in the real world where ";" in dirpaths is itself problematic.
8895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8902 need_lib_prefix=unknown
8903 hardcode_into_libs=no
8905 # when you set need_version to no, make sure it does not cause -set_version
8906 # flags to be left without arguments
8907 need_version=unknown
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8913 shlibpath_var=LIBPATH
8915 # AIX 3 has no versioning support, so we append a major version to the name.
8916 soname_spec='${libname}${release}${shared_ext}$major'
8923 hardcode_into_libs=yes
8924 if test "$host_cpu" = ia64; then
8925 # AIX 5 supports IA64
8926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8927 shlibpath_var=LD_LIBRARY_PATH
8929 # With GCC up to 2.95.x, collect2 would create an import file
8930 # for dependence libraries. The import file would start with
8931 # the line `#! .'. This would cause the generated library to
8932 # depend on `.', always an invalid library. This was fixed in
8933 # development snapshots of GCC prior to 3.0.
8935 aix4 | aix4.[01] | aix4.[01].*)
8936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8938 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8946 # soname into executable. Probably we can add versioning support to
8947 # collect2, so additional links can be useful in future.
8948 if test "$aix_use_runtimelinking" = yes; then
8949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8950 # instead of lib<name>.a to let people know that these are not
8951 # typical AIX shared libraries.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 # We preserve .a as extension for shared libraries through AIX4.2
8955 # and later when we are not doing run time linking.
8956 library_names_spec='${libname}${release}.a $libname.a'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8959 shlibpath_var=LIBPATH
8964 library_names_spec='$libname.ixlibrary $libname.a'
8965 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8966 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'
8970 library_names_spec='${libname}${shared_ext}'
8971 dynamic_linker="$host_os ld.so"
8972 shlibpath_var=LIBRARY_PATH
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984 # the default ld.so.conf also contains /usr/contrib/lib and
8985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986 # libtool to hard-code these into programs
8989 cygwin* | mingw* | pw32*)
8990 version_type=windows
8995 case $GCC,$host_os in
8996 yes,cygwin* | yes,mingw* | yes,pw32*)
8997 library_names_spec='$libname.dll.a'
8998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8999 postinstall_cmds='base_file=`basename \${file}`~
9000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9001 dldir=$destdir/`dirname \$dlpath`~
9002 test -d \$dldir || mkdir -p \$dldir~
9003 $install_prog $dir/$dlname \$dldir/$dlname~
9004 chmod a+x \$dldir/$dlname'
9005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9006 dlpath=$dir/\$dldll~
9008 shlibpath_overrides_runpath=yes
9012 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9017 # MinGW DLLs use traditional 'lib' prefix
9018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9020 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9021 # It is most probably a Windows format PATH printed by
9022 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9023 # path with ; separators, and with drive letters. We can handle the
9024 # drive letters (cygwin fileutils understands them), so leave them,
9025 # especially as we might pass files found there to a mingw objdump,
9026 # which wouldn't understand a cygwinified path. Ahh.
9027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9033 # pw32 DLLs use 'pw' prefix rather than 'lib'
9034 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9040 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9043 dynamic_linker='Win32 ld.exe'
9044 # FIXME: first we should search . and the directory the executable is in
9048 darwin* | rhapsody*)
9049 dynamic_linker="$host_os dyld"
9053 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9054 soname_spec='${libname}${release}${major}$shared_ext'
9055 shlibpath_overrides_runpath=yes
9056 shlibpath_var=DYLD_LIBRARY_PATH
9057 shrext_cmds='.dylib'
9058 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9059 if test "$GCC" = yes; then
9060 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"`
9062 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=no
9088 hardcode_into_libs=yes
9089 dynamic_linker='GNU ld.so'
9092 freebsd* | dragonfly*)
9093 # DragonFly does not have aout. When/if they implement a new
9094 # versioning mechanism, adjust this.
9095 if test -x /usr/bin/objformat; then
9096 objformat=`/usr/bin/objformat`
9099 freebsd[123]*) objformat=aout ;;
9103 version_type=freebsd-$objformat
9104 case $version_type in
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9115 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=yes
9120 freebsd3.[01]* | freebsdelf3.[01]*)
9121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9126 shlibpath_overrides_runpath=no
9127 hardcode_into_libs=yes
9129 freebsd*) # from 4.6 on
9130 shlibpath_overrides_runpath=yes
9131 hardcode_into_libs=yes
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 hardcode_into_libs=yes
9146 hpux9* | hpux10* | hpux11*)
9147 # Give a soname corresponding to the major version so that dld.sl refuses to
9148 # link against other versions.
9155 hardcode_into_libs=yes
9156 dynamic_linker="$host_os dld.so"
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 if test "X$HPUX_IA64_MODE" = X32; then
9162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9170 hardcode_into_libs=yes
9171 dynamic_linker="$host_os dld.sl"
9172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9181 dynamic_linker="$host_os dld.sl"
9182 shlibpath_var=SHLIB_PATH
9183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9188 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9189 postinstall_cmds='chmod 555 $lib'
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9204 irix5* | irix6* | nonstopux*)
9206 nonstopux*) version_type=nonstopux ;;
9208 if test "$lt_cv_prog_gnu_ld" = yes; then
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9219 irix5* | nonstopux*)
9223 case $LD in # libtool.m4 will add one of these switches to LD
9224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9225 libsuff= shlibsuff= libmagic=32-bit;;
9226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9227 libsuff=32 shlibsuff=N32 libmagic=N32;;
9228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9230 *) libsuff= shlibsuff= libmagic=never-match;;
9234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9235 shlibpath_overrides_runpath=no
9236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9238 hardcode_into_libs=yes
9241 # No shared lib support for Linux oldld, aout, or coff.
9242 linux*oldld* | linux*aout* | linux*coff*)
9246 # This must be Linux ELF.
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=no
9256 # This implies no fast_install, which is unacceptable.
9257 # Some rework will be needed to allow for fast_install
9258 # before this can be enabled.
9259 hardcode_into_libs=yes
9261 # Append ld.so.conf contents to the search path
9262 if test -f /etc/ld.so.conf; then
9263 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' ' '`
9264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9267 # We used to test for /lib/ld.so.1 and disable shared libraries on
9268 # powerpc, because MkLinux only supported shared libraries with the
9269 # GNU dynamic linker. Since this was broken with cross compilers,
9270 # most powerpc-linux boxes support dynamic linking these days and
9271 # people can always --disable-shared, the test was removed, and we
9272 # assume the GNU/Linux dynamic linker is in use.
9273 dynamic_linker='GNU/Linux ld.so'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=no
9284 hardcode_into_libs=yes
9285 dynamic_linker='GNU ld.so'
9292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9295 dynamic_linker='NetBSD (a.out) ld.so'
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 dynamic_linker='NetBSD ld.elf_so'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=yes
9303 hardcode_into_libs=yes
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=yes
9325 sys_lib_dlsearch_path_spec="/usr/lib"
9327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9330 *) need_version=no ;;
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9337 openbsd2.[89] | openbsd2.[89].*)
9338 shlibpath_overrides_runpath=no
9341 shlibpath_overrides_runpath=yes
9345 shlibpath_overrides_runpath=yes
9350 libname_spec='$name'
9353 library_names_spec='$libname${shared_ext} $libname.a'
9354 dynamic_linker='OS/2 ld.exe'
9355 shlibpath_var=LIBPATH
9358 osf3* | osf4* | osf5*)
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=yes
9377 hardcode_into_libs=yes
9378 # ldd complains unless libraries are executable
9379 postinstall_cmds='chmod +x $lib'
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 shlibpath_overrides_runpath=yes
9388 if test "$with_gnu_ld" = yes; then
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 case $host_vendor in
9401 shlibpath_overrides_runpath=no
9403 export_dynamic_flag_spec='${wl}-Blargedynsym'
9404 runpath_var=LD_RUN_PATH
9412 shlibpath_overrides_runpath=no
9413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9419 if test -d /usr/nec ;then
9421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9422 soname_spec='$libname${shared_ext}.$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9428 version_type=freebsd-elf
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 hardcode_into_libs=yes
9435 if test "$with_gnu_ld" = yes; then
9436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9437 shlibpath_overrides_runpath=no
9439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9440 shlibpath_overrides_runpath=yes
9443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9447 sys_lib_dlsearch_path_spec='/usr/lib'
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462 echo "${ECHO_T}$dynamic_linker" >&6; }
9463 test "$dynamic_linker" = no && can_build_shared=no
9465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466 if test "$GCC" = yes; then
9467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9471 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9472 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9473 if test "${libltdl_cv_shlibext+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 eval libltdl_cv_shlibext=$shrext_cmds
9481 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9482 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9483 if test -n "$libltdl_cv_shlibext"; then
9485 cat >>confdefs.h <<_ACEOF
9486 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9492 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9493 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9494 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 libltdl_cv_shlibpath_var="$shlibpath_var"
9499 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9500 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9501 if test -n "$libltdl_cv_shlibpath_var"; then
9503 cat >>confdefs.h <<_ACEOF
9504 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9510 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9511 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9512 if test "${libltdl_cv_sys_search_path+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9517 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9518 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9519 if test -n "$libltdl_cv_sys_search_path"; then
9521 for dir in $libltdl_cv_sys_search_path; do
9522 if test -z "$sys_search_path"; then
9523 sys_search_path="$dir"
9525 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9529 cat >>confdefs.h <<_ACEOF
9530 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9535 { echo "$as_me:$LINENO: checking for objdir" >&5
9536 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9537 if test "${libltdl_cv_objdir+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 libltdl_cv_objdir="$objdir"
9541 if test -n "$objdir"; then
9544 rm -f .libs 2>/dev/null
9545 mkdir .libs 2>/dev/null
9546 if test -d .libs; then
9547 libltdl_cv_objdir=.libs
9549 # MS-DOS does not allow filenames that begin with a dot.
9550 libltdl_cv_objdir=_libs
9552 rmdir .libs 2>/dev/null
9556 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9557 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9559 cat >>confdefs.h <<_ACEOF
9560 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9568 # Check for command to grab the raw symbol name followed by C symbol from nm.
9569 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9570 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9571 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 # These are sane defaults that work on at least a few old systems.
9576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9578 # Character class describing NM global symbol codes.
9579 symcode='[BCDEGRST]'
9581 # Regexp to match symbols that can be accessed directly from C.
9582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9584 # Transform an extracted symbol line into a proper C declaration
9585 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9587 # Transform an extracted symbol line into symbol name and symbol address
9588 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'"
9590 # Define system-specific variables.
9595 cygwin* | mingw* | pw32*)
9596 symcode='[ABCDGISTW]'
9598 hpux*) # Its linker distinguishes data from code symbols
9599 if test "$host_cpu" = ia64; then
9600 symcode='[ABCDEGRST]'
9602 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9603 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'"
9606 if test "$host_cpu" = ia64; then
9607 symcode='[ABCDGIRSTW]'
9608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9609 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'"
9613 symcode='[BCDEGRST]'
9616 symcode='[BCDEGQRST]'
9627 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9635 # Handle CRLF in mingw tool chain
9639 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9643 # If we're using GNU nm, then use its standard symbol codes.
9644 case `$NM -V 2>&1` in
9645 *GNU* | *'with BFD'*)
9646 symcode='[ABCDGIRSTW]' ;;
9649 # Try without a prefix undercore, then with it.
9650 for ac_symprfx in "" "_"; do
9652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9653 symxfrm="\\1 $ac_symprfx\\2 \\2"
9655 # Write the raw and C identifiers.
9656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9658 # Check to see that the pipe works correctly.
9662 cat > conftest.$ac_ext <<EOF
9667 void nm_test_func(){}
9671 int main(){nm_test_var='a';nm_test_func();return(0);}
9674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9675 (eval $ac_compile) 2>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; then
9679 # Now try to grab the symbols.
9681 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9682 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && test -s "$nlist"; then
9686 # Try sorting and uniquifying the output.
9687 if sort "$nlist" | uniq > "$nlist"T; then
9688 mv -f "$nlist"T "$nlist"
9693 # Make sure that we snagged all the symbols we need.
9694 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9695 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9696 cat <<EOF > conftest.$ac_ext
9702 # Now generate the symbol file.
9703 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9705 cat <<EOF >> conftest.$ac_ext
9706 #if defined (__STDC__) && __STDC__
9707 # define lt_ptr_t void *
9709 # define lt_ptr_t char *
9713 /* The mapping between symbol names and symbols. */
9718 lt_preloaded_symbols[] =
9721 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9722 cat <<\EOF >> conftest.$ac_ext
9730 # Now try linking the two files.
9731 mv conftest.$ac_objext conftstm.$ac_objext
9732 lt_save_LIBS="$LIBS"
9733 lt_save_CFLAGS="$CFLAGS"
9734 LIBS="conftstm.$ac_objext"
9735 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9743 LIBS="$lt_save_LIBS"
9744 CFLAGS="$lt_save_CFLAGS"
9746 echo "cannot find nm_test_func in $nlist" >&5
9749 echo "cannot find nm_test_var in $nlist" >&5
9752 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9755 echo "$progname: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9758 rm -f conftest* conftst*
9760 # Do not use the global_symbol_pipe unless it works.
9761 if test "$pipe_works" = yes; then
9764 lt_cv_sys_global_symbol_pipe=
9770 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9771 lt_cv_sys_global_symbol_to_cdecl=
9773 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9774 { echo "$as_me:$LINENO: result: failed" >&5
9775 echo "${ECHO_T}failed" >&6; }
9777 { echo "$as_me:$LINENO: result: ok" >&5
9778 echo "${ECHO_T}ok" >&6; }
9782 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9783 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9784 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9788 libltdl_cv_preloaded_symbols=yes
9790 libltdl_cv_preloaded_symbols=no
9794 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9795 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9796 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9798 cat >>confdefs.h <<\_ACEOF
9799 #define HAVE_PRELOADED_SYMBOLS 1
9807 ac_cpp='$CPP $CPPFLAGS'
9808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9813 { echo "$as_me:$LINENO: checking for shl_load" >&5
9814 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9815 if test "${ac_cv_func_shl_load+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 cat >conftest.$ac_ext <<_ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9826 #define shl_load innocuous_shl_load
9828 /* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char shl_load (); below.
9830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831 <limits.h> exists even on freestanding compilers. */
9834 # include <limits.h>
9836 # include <assert.h>
9841 /* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9848 /* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851 #if defined __stub_shl_load || defined __stub___shl_load
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_func_shl_load=yes
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_func_shl_load=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9909 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9910 if test $ac_cv_func_shl_load = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_SHL_LOAD 1
9917 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9918 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 ac_check_lib_save_LIBS=$LIBS
9924 cat >conftest.$ac_ext <<_ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9931 /* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_try") 2>&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_lib_dld_shl_load=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_cv_lib_dld_shl_load=no
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9993 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9994 if test $ac_cv_lib_dld_shl_load = yes; then
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_SHL_LOAD 1
10000 LIBADD_DL="$LIBADD_DL -ldld"
10002 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10003 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10004 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 ac_check_lib_save_LIBS=$LIBS
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10016 /* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_link") 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10046 { (case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_try") 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_try") 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10065 ac_cv_lib_dl_dlopen=yes
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 ac_cv_lib_dl_dlopen=no
10073 rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10079 if test $ac_cv_lib_dl_dlopen = yes; then
10081 cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_LIBDL 1
10085 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10094 # include <dlfcn.h>
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10140 cat >>confdefs.h <<\_ACEOF
10141 #define HAVE_LIBDL 1
10143 libltdl_cv_func_dlopen="yes"
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10149 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10150 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-lsvld $LIBS"
10155 cat >conftest.$ac_ext <<_ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10162 /* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>conftest.er1
10186 grep -v '^ *+' conftest.er1 >conftest.err
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } &&
10191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192 { (case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_try") 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_lib_svld_dlopen=yes
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 ac_cv_lib_svld_dlopen=no
10219 rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221 LIBS=$ac_check_lib_save_LIBS
10223 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10225 if test $ac_cv_lib_svld_dlopen = yes; then
10227 cat >>confdefs.h <<\_ACEOF
10228 #define HAVE_LIBDL 1
10231 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10233 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10234 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 ac_check_lib_save_LIBS=$LIBS
10240 cat >conftest.$ac_ext <<_ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10257 return dld_link ();
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
10271 grep -v '^ *+' conftest.er1 >conftest.err
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10277 { (case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_try") 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest$ac_exeext'
10287 { (case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_try") 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_lib_dld_dld_link=yes
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_cv_lib_dld_dld_link=no
10304 rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10309 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10310 if test $ac_cv_lib_dld_dld_link = yes; then
10312 cat >>confdefs.h <<\_ACEOF
10316 LIBADD_DL="$LIBADD_DL -ldld"
10318 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10319 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10320 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 cat >conftest.$ac_ext <<_ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331 #define _dyld_func_lookup innocuous__dyld_func_lookup
10333 /* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char _dyld_func_lookup (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10339 # include <limits.h>
10341 # include <assert.h>
10344 #undef _dyld_func_lookup
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10352 char _dyld_func_lookup ();
10353 /* The GNU C library defines this for functions which it implements
10354 to always fail with ENOSYS. Some functions are actually named
10355 something starting with __ and the normal name is an alias. */
10356 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10363 return _dyld_func_lookup ();
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (ac_try="$ac_link"
10370 case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_try") 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_cv_func__dyld_func_lookup=yes
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_cv_func__dyld_func_lookup=no
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10413 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10414 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10415 if test $ac_cv_func__dyld_func_lookup = yes; then
10417 cat >>confdefs.h <<\_ACEOF
10418 #define HAVE_DYLD 1
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10444 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10446 lt_save_LIBS="$LIBS"
10447 LIBS="$LIBS $LIBADD_DL"
10449 for ac_func in dlerror
10451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 cat >conftest.$ac_ext <<_ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10465 #define $ac_func innocuous_$ac_func
10467 /* System header to define __stub macros and hopefully few prototypes,
10468 which can conflict with char $ac_func (); below.
10469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10470 <limits.h> exists even on freestanding compilers. */
10473 # include <limits.h>
10475 # include <assert.h>
10480 /* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
10487 /* The GNU C library defines this for functions which it implements
10488 to always fail with ENOSYS. Some functions are actually named
10489 something starting with __ and the normal name is an alias. */
10490 #if defined __stub_$ac_func || defined __stub___$ac_func
10497 return $ac_func ();
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (ac_try="$ac_link"
10504 case "(($ac_try" in
10505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506 *) ac_try_echo=$ac_try;;
10508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10509 (eval "$ac_link") 2>conftest.er1
10511 grep -v '^ *+' conftest.er1 >conftest.err
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10517 { (case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_try") 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try='test -s conftest$ac_exeext'
10527 { (case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_try") 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 eval "$as_ac_var=yes"
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 eval "$as_ac_var=no"
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10547 ac_res=`eval echo '${'$as_ac_var'}'`
10548 { echo "$as_me:$LINENO: result: $ac_res" >&5
10549 echo "${ECHO_T}$ac_res" >&6; }
10550 if test `eval echo '${'$as_ac_var'}'` = yes; then
10551 cat >>confdefs.h <<_ACEOF
10552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10558 LIBS="$lt_save_LIBS"
10561 ac_cpp='$CPP $CPPFLAGS'
10562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10568 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10569 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10570 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 ac_cv_sys_symbol_underscore=no
10574 cat > conftest.$ac_ext <<EOF
10575 void nm_test_func(){}
10576 int main(){nm_test_func;return 0;}
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; then
10583 # Now try to grab the symbols.
10584 ac_nlist=conftest.nm
10585 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10586 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && test -s "$ac_nlist"; then
10590 # See whether the symbols have a leading underscore.
10591 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10592 ac_cv_sys_symbol_underscore=yes
10594 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10597 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10601 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10604 echo "configure: failed program was:" >&5
10610 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10611 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10614 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10615 if test x"$libltdl_cv_func_dlopen" = xyes ||
10616 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10617 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10618 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10619 if test "${libltdl_cv_need_uscore+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 libltdl_cv_need_uscore=unknown
10624 LIBS="$LIBS $LIBADD_DL"
10625 if test "$cross_compiling" = yes; then :
10626 libltdl_cv_need_uscore=cross
10628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10629 lt_status=$lt_dlunknown
10630 cat > conftest.$ac_ext <<EOF
10631 #line 10631 "configure"
10632 #include "confdefs.h"
10641 # define LT_DLGLOBAL RTLD_GLOBAL
10644 # define LT_DLGLOBAL DL_GLOBAL
10646 # define LT_DLGLOBAL 0
10650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10651 find out it does not work in some platform. */
10652 #ifndef LT_DLLAZY_OR_NOW
10654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10657 # define LT_DLLAZY_OR_NOW DL_LAZY
10660 # define LT_DLLAZY_OR_NOW RTLD_NOW
10663 # define LT_DLLAZY_OR_NOW DL_NOW
10665 # define LT_DLLAZY_OR_NOW 0
10673 extern "C" void exit (int);
10676 void fnord() { int i=42;}
10679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10680 int status = $lt_dlunknown;
10684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10685 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10686 /* dlclose (self); */
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10699 (./conftest; exit; ) >&5 2>/dev/null
10701 case x$lt_status in
10702 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10703 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10704 x$lt_dlunknown|x*) ;;
10707 # compilation failed
10716 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10717 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10721 if test x"$libltdl_cv_need_uscore" = xyes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define NEED_USCORE 1
10730 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10731 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10732 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 # PORTME does your system automatically load deplibs for dlopen?
10736 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10737 # For now, we just catch OSes we know something about -- in the
10738 # future, we'll try test this programmatically.
10739 libltdl_cv_sys_dlopen_deplibs=unknown
10741 aix3*|aix4.1.*|aix4.2.*)
10742 # Unknown whether this is true for these versions of AIX, but
10743 # we want this `case' here to explicitly catch those versions.
10744 libltdl_cv_sys_dlopen_deplibs=unknown
10747 libltdl_cv_sys_dlopen_deplibs=yes
10750 # Assuming the user has installed a libdl from somewhere, this is true
10751 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10752 libltdl_cv_sys_dlopen_deplibs=yes
10754 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10755 # GNU and its variants, using gnu ld.so (Glibc)
10756 libltdl_cv_sys_dlopen_deplibs=yes
10759 libltdl_cv_sys_dlopen_deplibs=yes
10762 libltdl_cv_sys_dlopen_deplibs=yes
10764 irix[12345]*|irix6.[01]*)
10765 # Catch all versions of IRIX before 6.2, and indicate that we don't
10766 # know how it worked for any of those versions.
10767 libltdl_cv_sys_dlopen_deplibs=unknown
10770 # The case above catches anything before 6.2, and it's known that
10771 # at 6.2 and later dlopen does load deplibs.
10772 libltdl_cv_sys_dlopen_deplibs=yes
10775 libltdl_cv_sys_dlopen_deplibs=yes
10778 libltdl_cv_sys_dlopen_deplibs=yes
10781 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10782 # it did *not* use an RPATH in a shared library to find objects the
10783 # library depends on, so we explictly say `no'.
10784 libltdl_cv_sys_dlopen_deplibs=no
10786 osf5.0|osf5.0a|osf5.1)
10787 # dlopen *does* load deplibs and with the right loader patch applied
10788 # it even uses RPATH in a shared library to search for shared objects
10789 # that the library depends on, but there's no easy way to know if that
10790 # patch is installed. Since this is the case, all we can really
10791 # say is unknown -- it depends on the patch being installed. If
10792 # it is, this changes to `yes'. Without it, it would be `no'.
10793 libltdl_cv_sys_dlopen_deplibs=unknown
10796 # the two cases above should catch all versions of osf <= 5.1. Read
10797 # the comments above for what we know about them.
10798 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10799 # is used to find them so we can finally say `yes'.
10800 libltdl_cv_sys_dlopen_deplibs=yes
10803 libltdl_cv_sys_dlopen_deplibs=yes
10805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10806 libltdl_cv_sys_dlopen_deplibs=yes
10811 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10812 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10813 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10815 cat >>confdefs.h <<\_ACEOF
10816 #define LTDL_DLOPEN_DEPLIBS 1
10822 for ac_header in argz.h
10824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 ac_res=`eval echo '${'$as_ac_Header'}'`
10832 { echo "$as_me:$LINENO: result: $ac_res" >&5
10833 echo "${ECHO_T}$ac_res" >&6; }
10835 # Is the header compilable?
10836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 #include <$ac_header>
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
10856 grep -v '^ *+' conftest.er1 >conftest.err
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest.$ac_objext'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_header_compiler=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_header_compiler=no
10889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10891 echo "${ECHO_T}$ac_header_compiler" >&6; }
10893 # Is the header present?
10894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10896 cat >conftest.$ac_ext <<_ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 #include <$ac_header>
10904 if { (ac_try="$ac_cpp conftest.$ac_ext"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } >/dev/null; then
10917 if test -s conftest.err; then
10918 ac_cpp_err=$ac_c_preproc_warn_flag
10919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10926 if test -z "$ac_cpp_err"; then
10927 ac_header_preproc=yes
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 ac_header_preproc=no
10935 rm -f conftest.err conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937 echo "${ECHO_T}$ac_header_preproc" >&6; }
10939 # So? What about this header?
10940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946 ac_header_preproc=yes
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10962 ## ----------------------------------- ##
10963 ## Report this to llvmbugs@cs.uiuc.edu ##
10964 ## ----------------------------------- ##
10966 ) | sed "s/^/$as_me: WARNING: /" >&2
10969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 eval "$as_ac_Header=\$ac_header_preproc"
10976 ac_res=`eval echo '${'$as_ac_Header'}'`
10977 { echo "$as_me:$LINENO: result: $ac_res" >&5
10978 echo "${ECHO_T}$ac_res" >&6; }
10981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10982 cat >>confdefs.h <<_ACEOF
10983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10991 { echo "$as_me:$LINENO: checking for error_t" >&5
10992 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10993 if test "${ac_cv_type_error_t+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11006 typedef error_t ac__type_new_;
11010 if ((ac__type_new_ *) 0)
11012 if (sizeof (ac__type_new_))
11018 rm -f conftest.$ac_objext
11019 if { (ac_try="$ac_compile"
11020 case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_compile") 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11033 { (case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_try") 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 ac_cv_type_error_t=yes
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 ac_cv_type_error_t=no
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11063 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11064 if test $ac_cv_type_error_t = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define HAVE_ERROR_T 1
11073 cat >>confdefs.h <<\_ACEOF
11074 #define error_t int
11085 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 cat >conftest.$ac_ext <<_ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11101 #define $ac_func innocuous_$ac_func
11103 /* System header to define __stub macros and hopefully few prototypes,
11104 which can conflict with char $ac_func (); below.
11105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11106 <limits.h> exists even on freestanding compilers. */
11109 # include <limits.h>
11111 # include <assert.h>
11116 /* Override any GCC internal prototype to avoid an error.
11117 Use char because int might match the return type of a GCC
11118 builtin and then its argument prototype would still apply. */
11123 /* The GNU C library defines this for functions which it implements
11124 to always fail with ENOSYS. Some functions are actually named
11125 something starting with __ and the normal name is an alias. */
11126 #if defined __stub_$ac_func || defined __stub___$ac_func
11133 return $ac_func ();
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (ac_try="$ac_link"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_link") 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11153 { (case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_try") 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; } &&
11162 { ac_try='test -s conftest$ac_exeext'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 eval "$as_ac_var=yes"
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 eval "$as_ac_var=no"
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11183 ac_res=`eval echo '${'$as_ac_var'}'`
11184 { echo "$as_me:$LINENO: result: $ac_res" >&5
11185 echo "${ECHO_T}$ac_res" >&6; }
11186 if test `eval echo '${'$as_ac_var'}'` = yes; then
11187 cat >>confdefs.h <<_ACEOF
11188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11221 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 ac_res=`eval echo '${'$as_ac_Header'}'`
11232 { echo "$as_me:$LINENO: result: $ac_res" >&5
11233 echo "${ECHO_T}$ac_res" >&6; }
11235 # Is the header compilable?
11236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11238 cat >conftest.$ac_ext <<_ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 $ac_includes_default
11245 #include <$ac_header>
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } &&
11261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11262 { (case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_try") 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest.$ac_objext'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_try") 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 ac_header_compiler=yes
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 ac_header_compiler=no
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11291 echo "${ECHO_T}$ac_header_compiler" >&6; }
11293 # Is the header present?
11294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11296 cat >conftest.$ac_ext <<_ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302 #include <$ac_header>
11304 if { (ac_try="$ac_cpp conftest.$ac_ext"
11305 case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11312 grep -v '^ *+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } >/dev/null; then
11317 if test -s conftest.err; then
11318 ac_cpp_err=$ac_c_preproc_warn_flag
11319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11326 if test -z "$ac_cpp_err"; then
11327 ac_header_preproc=yes
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_header_preproc=no
11335 rm -f conftest.err conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11337 echo "${ECHO_T}$ac_header_preproc" >&6; }
11339 # So? What about this header?
11340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11346 ac_header_preproc=yes
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11362 ## ----------------------------------- ##
11363 ## Report this to llvmbugs@cs.uiuc.edu ##
11364 ## ----------------------------------- ##
11366 ) | sed "s/^/$as_me: WARNING: /" >&2
11369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 eval "$as_ac_Header=\$ac_header_preproc"
11376 ac_res=`eval echo '${'$as_ac_Header'}'`
11377 { echo "$as_me:$LINENO: result: $ac_res" >&5
11378 echo "${ECHO_T}$ac_res" >&6; }
11381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11382 cat >>confdefs.h <<_ACEOF
11383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11394 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11407 # Is the header compilable?
11408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 $ac_includes_default
11417 #include <$ac_header>
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11434 { (case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_try") 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try='test -s conftest.$ac_objext'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_header_compiler=yes
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_header_compiler=no
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463 echo "${ECHO_T}$ac_header_compiler" >&6; }
11465 # Is the header present?
11466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 #include <$ac_header>
11476 if { (ac_try="$ac_cpp conftest.$ac_ext"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } >/dev/null; then
11489 if test -s conftest.err; then
11490 ac_cpp_err=$ac_c_preproc_warn_flag
11491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11498 if test -z "$ac_cpp_err"; then
11499 ac_header_preproc=yes
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_header_preproc=no
11507 rm -f conftest.err conftest.$ac_ext
11508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509 echo "${ECHO_T}$ac_header_preproc" >&6; }
11511 # So? What about this header?
11512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518 ac_header_preproc=yes
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11534 ## ----------------------------------- ##
11535 ## Report this to llvmbugs@cs.uiuc.edu ##
11536 ## ----------------------------------- ##
11538 ) | sed "s/^/$as_me: WARNING: /" >&2
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 eval "$as_ac_Header=\$ac_header_preproc"
11548 ac_res=`eval echo '${'$as_ac_Header'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11554 cat >>confdefs.h <<_ACEOF
11555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564 for ac_header in string.h strings.h
11566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 ac_res=`eval echo '${'$as_ac_Header'}'`
11574 { echo "$as_me:$LINENO: result: $ac_res" >&5
11575 echo "${ECHO_T}$ac_res" >&6; }
11577 # Is the header compilable?
11578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 $ac_includes_default
11587 #include <$ac_header>
11589 rm -f conftest.$ac_objext
11590 if { (ac_try="$ac_compile"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_compile") 2>conftest.er1
11598 grep -v '^ *+' conftest.er1 >conftest.err
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11604 { (case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_try") 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_try") 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_header_compiler=yes
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_header_compiler=no
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6; }
11635 # Is the header present?
11636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11638 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 #include <$ac_header>
11646 if { (ac_try="$ac_cpp conftest.$ac_ext"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } >/dev/null; then
11659 if test -s conftest.err; then
11660 ac_cpp_err=$ac_c_preproc_warn_flag
11661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11668 if test -z "$ac_cpp_err"; then
11669 ac_header_preproc=yes
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 ac_header_preproc=no
11677 rm -f conftest.err conftest.$ac_ext
11678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11679 echo "${ECHO_T}$ac_header_preproc" >&6; }
11681 # So? What about this header?
11682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11688 ac_header_preproc=yes
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11704 ## ----------------------------------- ##
11705 ## Report this to llvmbugs@cs.uiuc.edu ##
11706 ## ----------------------------------- ##
11708 ) | sed "s/^/$as_me: WARNING: /" >&2
11711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 eval "$as_ac_Header=\$ac_header_preproc"
11718 ac_res=`eval echo '${'$as_ac_Header'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11735 for ac_func in strchr index
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11751 #define $ac_func innocuous_$ac_func
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11759 # include <limits.h>
11761 # include <assert.h>
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11773 /* The GNU C library defines this for functions which it implements
11774 to always fail with ENOSYS. Some functions are actually named
11775 something starting with __ and the normal name is an alias. */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11783 return $ac_func ();
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 eval "$as_ac_var=yes"
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 eval "$as_ac_var=no"
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11833 ac_res=`eval echo '${'$as_ac_var'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_var'}'` = yes; then
11837 cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846 for ac_func in strrchr rindex
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define $ac_func innocuous_$ac_func
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11870 # include <limits.h>
11872 # include <assert.h>
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11884 /* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11894 return $ac_func ();
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 eval "$as_ac_var=no"
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948 cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11957 for ac_func in memcpy bcopy
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11973 #define $ac_func innocuous_$ac_func
11975 /* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below.
11977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978 <limits.h> exists even on freestanding compilers. */
11981 # include <limits.h>
11983 # include <assert.h>
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11995 /* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998 #if defined __stub_$ac_func || defined __stub___$ac_func
12005 return $ac_func ();
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (ac_try="$ac_link"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_link") 2>conftest.er1
12019 grep -v '^ *+' conftest.er1 >conftest.err
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 eval "$as_ac_var=yes"
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 eval "$as_ac_var=no"
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12055 ac_res=`eval echo '${'$as_ac_var'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057 echo "${ECHO_T}$ac_res" >&6; }
12058 if test `eval echo '${'$as_ac_var'}'` = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12068 for ac_func in memmove strcmp
12070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12084 #define $ac_func innocuous_$ac_func
12086 /* System header to define __stub macros and hopefully few prototypes,
12087 which can conflict with char $ac_func (); below.
12088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12089 <limits.h> exists even on freestanding compilers. */
12092 # include <limits.h>
12094 # include <assert.h>
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12106 /* The GNU C library defines this for functions which it implements
12107 to always fail with ENOSYS. Some functions are actually named
12108 something starting with __ and the normal name is an alias. */
12109 #if defined __stub_$ac_func || defined __stub___$ac_func
12116 return $ac_func ();
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (ac_try="$ac_link"
12123 case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_link") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest$ac_exeext'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 eval "$as_ac_var=yes"
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 eval "$as_ac_var=no"
12163 rm -f core conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12166 ac_res=`eval echo '${'$as_ac_var'}'`
12167 { echo "$as_me:$LINENO: result: $ac_res" >&5
12168 echo "${ECHO_T}$ac_res" >&6; }
12169 if test `eval echo '${'$as_ac_var'}'` = yes; then
12170 cat >>confdefs.h <<_ACEOF
12171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12180 for ac_func in closedir opendir readdir
12182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12196 #define $ac_func innocuous_$ac_func
12198 /* System header to define __stub macros and hopefully few prototypes,
12199 which can conflict with char $ac_func (); below.
12200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12201 <limits.h> exists even on freestanding compilers. */
12204 # include <limits.h>
12206 # include <assert.h>
12211 /* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
12218 /* The GNU C library defines this for functions which it implements
12219 to always fail with ENOSYS. Some functions are actually named
12220 something starting with __ and the normal name is an alias. */
12221 #if defined __stub_$ac_func || defined __stub___$ac_func
12228 return $ac_func ();
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (ac_try="$ac_link"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_link") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 eval "$as_ac_var=yes"
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 eval "$as_ac_var=no"
12275 rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12278 ac_res=`eval echo '${'$as_ac_var'}'`
12279 { echo "$as_me:$LINENO: result: $ac_res" >&5
12280 echo "${ECHO_T}$ac_res" >&6; }
12281 if test `eval echo '${'$as_ac_var'}'` = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12290 # Check whether --enable-shared was given.
12291 if test "${enable_shared+set}" = set; then
12292 enableval=$enable_shared; p=${PACKAGE-default}
12294 yes) enable_shared=yes ;;
12295 no) enable_shared=no ;;
12298 # Look at the argument we got. We use all the common list separators.
12299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12300 for pkg in $enableval; do
12302 if test "X$pkg" = "X$p"; then
12314 # Check whether --enable-static was given.
12315 if test "${enable_static+set}" = set; then
12316 enableval=$enable_static; p=${PACKAGE-default}
12318 yes) enable_static=yes ;;
12319 no) enable_static=no ;;
12322 # Look at the argument we got. We use all the common list separators.
12323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12324 for pkg in $enableval; do
12326 if test "X$pkg" = "X$p"; then
12338 # Check whether --enable-fast-install was given.
12339 if test "${enable_fast_install+set}" = set; then
12340 enableval=$enable_fast_install; p=${PACKAGE-default}
12342 yes) enable_fast_install=yes ;;
12343 no) enable_fast_install=no ;;
12345 enable_fast_install=no
12346 # Look at the argument we got. We use all the common list separators.
12347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12348 for pkg in $enableval; do
12350 if test "X$pkg" = "X$p"; then
12351 enable_fast_install=yes
12358 enable_fast_install=yes
12362 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12363 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12364 if test "${lt_cv_path_SED+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 # Loop through the user's path and test for sed and gsed.
12368 # Then use that list of sed's as ones to test for truncation.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12373 test -z "$as_dir" && as_dir=.
12374 for lt_ac_prog in sed gsed; do
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12377 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12384 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12385 # along with /bin/sed that truncates output.
12386 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12387 test ! -f $lt_ac_sed && continue
12388 cat /dev/null > conftest.in
12390 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12391 # Check for GNU sed and select it if it is found.
12392 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12393 lt_cv_path_SED=$lt_ac_sed
12397 cat conftest.in conftest.in >conftest.tmp
12398 mv conftest.tmp conftest.in
12399 cp conftest.in conftest.nl
12401 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12402 cmp -s conftest.out conftest.nl || break
12403 # 10000 chars as input seems more than enough
12404 test $lt_ac_count -gt 10 && break
12405 lt_ac_count=`expr $lt_ac_count + 1`
12406 if test $lt_ac_count -gt $lt_ac_max; then
12407 lt_ac_max=$lt_ac_count
12408 lt_cv_path_SED=$lt_ac_sed
12415 SED=$lt_cv_path_SED
12416 { echo "$as_me:$LINENO: result: $SED" >&5
12417 echo "${ECHO_T}$SED" >&6; }
12420 # Check whether --with-gnu-ld was given.
12421 if test "${with_gnu_ld+set}" = set; then
12422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12428 if test "$GCC" = yes; then
12429 # Check if gcc -print-prog-name=ld gives a path.
12430 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12431 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12434 # gcc leaves a trailing carriage return which upsets mingw
12435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12440 # Accept absolute paths.
12442 re_direlt='/[^/][^/]*/\.\./'
12443 # Canonicalize the pathname of ld
12444 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12445 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12446 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12448 test -z "$LD" && LD="$ac_prog"
12451 # If it fails, then pretend we aren't using GCC.
12455 # If it is relative, then search for the first ld in PATH.
12456 with_gnu_ld=unknown
12459 elif test "$with_gnu_ld" = yes; then
12460 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12463 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12466 if test "${lt_cv_path_LD+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 if test -z "$LD"; then
12470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12471 for ac_dir in $PATH; do
12473 test -z "$ac_dir" && ac_dir=.
12474 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12475 lt_cv_path_LD="$ac_dir/$ac_prog"
12476 # Check to see if the program is GNU ld. I'd rather use --version,
12477 # but apparently some variants of GNU ld only accept -v.
12478 # Break only if it was the GNU/non-GNU ld that we prefer.
12479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12480 *GNU* | *'with BFD'*)
12481 test "$with_gnu_ld" != no && break
12484 test "$with_gnu_ld" != yes && break
12491 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12495 LD="$lt_cv_path_LD"
12496 if test -n "$LD"; then
12497 { echo "$as_me:$LINENO: result: $LD" >&5
12498 echo "${ECHO_T}$LD" >&6; }
12500 { echo "$as_me:$LINENO: result: no" >&5
12501 echo "${ECHO_T}no" >&6; }
12503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12505 { (exit 1); exit 1; }; }
12506 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12508 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12512 case `$LD -v 2>&1 </dev/null` in
12513 *GNU* | *'with BFD'*)
12514 lt_cv_prog_gnu_ld=yes
12517 lt_cv_prog_gnu_ld=no
12521 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12522 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12523 with_gnu_ld=$lt_cv_prog_gnu_ld
12526 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12527 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12528 if test "${lt_cv_ld_reload_flag+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 lt_cv_ld_reload_flag='-r'
12533 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12534 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12535 reload_flag=$lt_cv_ld_reload_flag
12536 case $reload_flag in
12538 *) reload_flag=" $reload_flag" ;;
12540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12543 if test "$GCC" = yes; then
12544 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12551 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12552 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12553 if test "${lt_cv_deplibs_check_method+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 lt_cv_file_magic_cmd='$MAGIC_CMD'
12557 lt_cv_file_magic_test_file=
12558 lt_cv_deplibs_check_method='unknown'
12559 # Need to set the preceding variable on all platforms that support
12560 # interlibrary dependencies.
12561 # 'none' -- dependencies not supported.
12562 # `unknown' -- same as none, but documents that we really don't know.
12563 # 'pass_all' -- all dependencies passed with no checks.
12564 # 'test_compile' -- check by making test program.
12565 # 'file_magic [[regex]]' -- check by looking for files in library path
12566 # which responds to the $file_magic_cmd with a given extended regex.
12567 # If you have `file' or equivalent on your system and you're not sure
12568 # whether `pass_all' will *always* work, you probably want this one.
12572 lt_cv_deplibs_check_method=pass_all
12576 lt_cv_deplibs_check_method=pass_all
12580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12581 lt_cv_file_magic_cmd='/usr/bin/file -L'
12582 lt_cv_file_magic_test_file=/shlib/libc.so
12586 # func_win32_libid is a shell function defined in ltmain.sh
12587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12588 lt_cv_file_magic_cmd='func_win32_libid'
12592 # Base MSYS/MinGW do not provide the 'file' command needed by
12593 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12594 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12595 lt_cv_file_magic_cmd='$OBJDUMP -f'
12598 darwin* | rhapsody*)
12599 lt_cv_deplibs_check_method=pass_all
12602 freebsd* | kfreebsd*-gnu | dragonfly*)
12603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12606 # Not sure whether the presence of OpenBSD here was a mistake.
12607 # Let's accept both of them until this is cleared up.
12608 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12609 lt_cv_file_magic_cmd=/usr/bin/file
12610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12614 lt_cv_deplibs_check_method=pass_all
12619 lt_cv_deplibs_check_method=pass_all
12622 hpux10.20* | hpux11*)
12623 lt_cv_file_magic_cmd=/usr/bin/file
12626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12627 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12630 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]'
12631 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12635 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12641 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12645 irix5* | irix6* | nonstopux*)
12647 *-32|*"-32 ") libmagic=32-bit;;
12648 *-n32|*"-n32 ") libmagic=N32;;
12649 *-64|*"-64 ") libmagic=64-bit;;
12650 *) libmagic=never-match;;
12652 lt_cv_deplibs_check_method=pass_all
12655 # This must be Linux ELF.
12657 lt_cv_deplibs_check_method=pass_all
12661 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12670 lt_cv_file_magic_cmd=/usr/bin/file
12671 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12675 lt_cv_deplibs_check_method=unknown
12679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12686 osf3* | osf4* | osf5*)
12687 lt_cv_deplibs_check_method=pass_all
12691 lt_cv_deplibs_check_method=pass_all
12695 case $host_vendor in
12697 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]'
12698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12701 lt_cv_deplibs_check_method=pass_all
12704 lt_cv_file_magic_cmd='/bin/file'
12705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12708 lt_cv_file_magic_cmd='/bin/file'
12709 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12710 lt_cv_file_magic_test_file=/lib/libc.so
12713 lt_cv_deplibs_check_method=pass_all
12716 lt_cv_deplibs_check_method=pass_all
12721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12722 lt_cv_deplibs_check_method=pass_all
12727 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12728 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12729 file_magic_cmd=$lt_cv_file_magic_cmd
12730 deplibs_check_method=$lt_cv_deplibs_check_method
12731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12735 # If no C compiler was specified, use CC.
12738 # If no C compiler flags were specified, use CFLAGS.
12739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12741 # Allow CC to be a program name with arguments.
12744 # Check whether --enable-libtool-lock was given.
12745 if test "${enable_libtool_lock+set}" = set; then
12746 enableval=$enable_libtool_lock;
12749 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12751 # Some flags need to be propagated to the compiler or linker for good
12755 # Find out which ABI we are using.
12756 echo 'int i;' > conftest.$ac_ext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; then
12762 case `/usr/bin/file conftest.$ac_objext` in
12764 HPUX_IA64_MODE="32"
12767 HPUX_IA64_MODE="64"
12774 # Find out which ABI we are using.
12775 echo '#line 12775 "configure"' > conftest.$ac_ext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; then
12781 if test "$lt_cv_prog_gnu_ld" = yes; then
12782 case `/usr/bin/file conftest.$ac_objext` in
12784 LD="${LD-ld} -melf32bsmip"
12787 LD="${LD-ld} -melf32bmipn32"
12790 LD="${LD-ld} -melf64bmip"
12794 case `/usr/bin/file conftest.$ac_objext` in
12810 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12811 # Find out which ABI we are using.
12812 echo 'int i;' > conftest.$ac_ext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814 (eval $ac_compile) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; then
12818 case `/usr/bin/file conftest.o` in
12822 LD="${LD-ld} -m elf_i386"
12824 ppc64-*linux*|powerpc64-*linux*)
12825 LD="${LD-ld} -m elf32ppclinux"
12828 LD="${LD-ld} -m elf_s390"
12831 LD="${LD-ld} -m elf32_sparc"
12838 LD="${LD-ld} -m elf_x86_64"
12840 ppc*-*linux*|powerpc*-*linux*)
12841 LD="${LD-ld} -m elf64ppc"
12844 LD="${LD-ld} -m elf64_s390"
12847 LD="${LD-ld} -m elf64_sparc"
12857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12858 SAVE_CFLAGS="$CFLAGS"
12859 CFLAGS="$CFLAGS -belf"
12860 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12861 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12862 if test "${lt_cv_cc_needs_belf+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_cpp='$CPP $CPPFLAGS'
12867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871 cat >conftest.$ac_ext <<_ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (ac_try="$ac_link"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893 (eval "$ac_link") 2>conftest.er1
12895 grep -v '^ *+' conftest.er1 >conftest.err
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901 { (case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_try") 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest$ac_exeext'
12911 { (case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_try") 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 lt_cv_cc_needs_belf=yes
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 lt_cv_cc_needs_belf=no
12928 rm -f core conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12938 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12939 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12941 CFLAGS="$SAVE_CFLAGS"
12945 # Find out which ABI we are using.
12946 echo 'int i;' > conftest.$ac_ext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; then
12952 case `/usr/bin/file conftest.o` in
12954 case $lt_cv_prog_gnu_ld in
12955 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12956 *) LD="${LD-ld} -64" ;;
12967 need_locks="$enable_libtool_lock"
12972 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12973 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12974 (test "X$CXX" != "Xg++"))) ; then
12976 ac_cpp='$CXXCPP $CPPFLAGS'
12977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12980 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12981 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12982 if test -z "$CXXCPP"; then
12983 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 # Double quotes because CXXCPP needs to be expanded
12987 for CXXCPP in "$CXX -E" "/lib/cpp"
12989 ac_preproc_ok=false
12990 for ac_cxx_preproc_warn_flag in '' yes
12992 # Use a header file that comes with gcc, so configuring glibc
12993 # with a fresh cross-compiler works.
12994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12995 # <limits.h> exists even on freestanding compilers.
12996 # On the NeXT, cc -E runs the code through the compiler's parser,
12997 # not just through cpp. "Syntax error" is here to catch this case.
12998 cat >conftest.$ac_ext <<_ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13005 # include <limits.h>
13007 # include <assert.h>
13011 if { (ac_try="$ac_cpp conftest.$ac_ext"
13012 case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13019 grep -v '^ *+' conftest.er1 >conftest.err
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } >/dev/null; then
13024 if test -s conftest.err; then
13025 ac_cpp_err=$ac_cxx_preproc_warn_flag
13026 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13033 if test -z "$ac_cpp_err"; then
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 # Broken: fails on valid input.
13043 rm -f conftest.err conftest.$ac_ext
13045 # OK, works on sane cases. Now check whether nonexistent headers
13046 # can be detected and how.
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 #include <ac_nonexistent.h>
13055 if { (ac_try="$ac_cpp conftest.$ac_ext"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13063 grep -v '^ *+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } >/dev/null; then
13068 if test -s conftest.err; then
13069 ac_cpp_err=$ac_cxx_preproc_warn_flag
13070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13077 if test -z "$ac_cpp_err"; then
13078 # Broken: success on invalid input.
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 # Passes both tests.
13089 rm -f conftest.err conftest.$ac_ext
13092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13093 rm -f conftest.err conftest.$ac_ext
13094 if $ac_preproc_ok; then
13099 ac_cv_prog_CXXCPP=$CXXCPP
13102 CXXCPP=$ac_cv_prog_CXXCPP
13104 ac_cv_prog_CXXCPP=$CXXCPP
13106 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13107 echo "${ECHO_T}$CXXCPP" >&6; }
13108 ac_preproc_ok=false
13109 for ac_cxx_preproc_warn_flag in '' yes
13111 # Use a header file that comes with gcc, so configuring glibc
13112 # with a fresh cross-compiler works.
13113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114 # <limits.h> exists even on freestanding compilers.
13115 # On the NeXT, cc -E runs the code through the compiler's parser,
13116 # not just through cpp. "Syntax error" is here to catch this case.
13117 cat >conftest.$ac_ext <<_ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13124 # include <limits.h>
13126 # include <assert.h>
13130 if { (ac_try="$ac_cpp conftest.$ac_ext"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13138 grep -v '^ *+' conftest.er1 >conftest.err
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } >/dev/null; then
13143 if test -s conftest.err; then
13144 ac_cpp_err=$ac_cxx_preproc_warn_flag
13145 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13152 if test -z "$ac_cpp_err"; then
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 # Broken: fails on valid input.
13162 rm -f conftest.err conftest.$ac_ext
13164 # OK, works on sane cases. Now check whether nonexistent headers
13165 # can be detected and how.
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 #include <ac_nonexistent.h>
13174 if { (ac_try="$ac_cpp conftest.$ac_ext"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } >/dev/null; then
13187 if test -s conftest.err; then
13188 ac_cpp_err=$ac_cxx_preproc_warn_flag
13189 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13196 if test -z "$ac_cpp_err"; then
13197 # Broken: success on invalid input.
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 # Passes both tests.
13208 rm -f conftest.err conftest.$ac_ext
13211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13212 rm -f conftest.err conftest.$ac_ext
13213 if $ac_preproc_ok; then
13216 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13217 See \`config.log' for more details." >&5
13218 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13219 See \`config.log' for more details." >&2;}
13220 { (exit 1); exit 1; }; }
13224 ac_cpp='$CXXCPP $CPPFLAGS'
13225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13236 if test -n "$ac_tool_prefix"; then
13237 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13243 if test "${ac_cv_prog_F77+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 if test -n "$F77"; then
13247 ac_cv_prog_F77="$F77" # Let the user override the test.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13256 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 F77=$ac_cv_prog_F77
13267 if test -n "$F77"; then
13268 { echo "$as_me:$LINENO: result: $F77" >&5
13269 echo "${ECHO_T}$F77" >&6; }
13271 { echo "$as_me:$LINENO: result: no" >&5
13272 echo "${ECHO_T}no" >&6; }
13276 test -n "$F77" && break
13279 if test -z "$F77"; then
13281 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
13283 # Extract the first word of "$ac_prog", so it can be a program name with args.
13284 set dummy $ac_prog; ac_word=$2
13285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13287 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 if test -n "$ac_ct_F77"; then
13291 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294 for as_dir in $PATH
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13300 ac_cv_prog_ac_ct_F77="$ac_prog"
13301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13311 if test -n "$ac_ct_F77"; then
13312 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13313 echo "${ECHO_T}$ac_ct_F77" >&6; }
13315 { echo "$as_me:$LINENO: result: no" >&5
13316 echo "${ECHO_T}no" >&6; }
13320 test -n "$ac_ct_F77" && break
13323 if test "x$ac_ct_F77" = x; then
13326 case $cross_compiling:$ac_tool_warned in
13328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13329 whose name does not start with the host triplet. If you think this
13330 configuration is useful to you, please write to autoconf@gnu.org." >&5
13331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13332 whose name does not start with the host triplet. If you think this
13333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13334 ac_tool_warned=yes ;;
13341 # Provide some information about the compiler.
13342 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13343 ac_compiler=`set X $ac_compile; echo $2`
13344 { (ac_try="$ac_compiler --version >&5"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_compiler --version >&5") 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }
13354 { (ac_try="$ac_compiler -v >&5"
13355 case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_compiler -v >&5") 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }
13364 { (ac_try="$ac_compiler -V >&5"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_compiler -V >&5") 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }
13376 # If we don't use `.F' as extension, the preprocessor is not run on the
13377 # input file. (Note that this only needs to work for GNU compilers.)
13378 ac_save_ext=$ac_ext
13380 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13381 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13382 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 cat >conftest.$ac_ext <<_ACEOF
13393 rm -f conftest.$ac_objext
13394 if { (ac_try="$ac_compile"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_compile") 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; } &&
13417 { ac_try='test -s conftest.$ac_objext'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_compiler_gnu=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13436 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13439 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13440 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13441 ac_ext=$ac_save_ext
13442 ac_test_FFLAGS=${FFLAGS+set}
13443 ac_save_FFLAGS=$FFLAGS
13445 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13446 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13447 if test "${ac_cv_prog_f77_g+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 cat >conftest.$ac_ext <<_ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_compile") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13471 { (case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_try") 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest.$ac_objext'
13481 { (case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_try") 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_cv_prog_f77_g=yes
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ac_cv_prog_f77_g=no
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13502 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13503 if test "$ac_test_FFLAGS" = set; then
13504 FFLAGS=$ac_save_FFLAGS
13505 elif test $ac_cv_prog_f77_g = yes; then
13506 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13512 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13519 G77=`test $ac_compiler_gnu = yes && echo yes`
13521 ac_cpp='$CPP $CPPFLAGS'
13522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13528 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13530 # find the maximum length of command line arguments
13531 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13532 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13533 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 # On DJGPP, this test can blow up pretty badly due to problems in libc
13542 # (any single argument exceeding 2000 bytes causes a buffer overrun
13543 # during glob expansion). Even if it were fixed, the result of this
13544 # check would be larger than it should be.
13545 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13549 # Under GNU Hurd, this test is not required because there is
13550 # no limit to the length of command line arguments.
13551 # Libtool will interpret -1 as no limit whatsoever
13552 lt_cv_sys_max_cmd_len=-1;
13556 # On Win9x/ME, this test blows up -- it succeeds, but takes
13557 # about 5 minutes as the teststring grows exponentially.
13558 # Worse, since 9x/ME are not pre-emptively multitasking,
13559 # you end up with a "frozen" computer, even though with patience
13560 # the test eventually succeeds (with a max line length of 256k).
13561 # Instead, let's just punt: use the minimum linelength reported by
13562 # all of the supported platforms: 8192 (on NT/2K/XP).
13563 lt_cv_sys_max_cmd_len=8192;
13567 # On AmigaOS with pdksh, this test takes hours, literally.
13568 # So we just punt and use a minimum line length of 8192.
13569 lt_cv_sys_max_cmd_len=8192;
13572 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13573 # This has been around since 386BSD, at least. Likely further.
13574 if test -x /sbin/sysctl; then
13575 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13576 elif test -x /usr/sbin/sysctl; then
13577 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13579 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13581 # And add a safety zone
13582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13587 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13588 lt_cv_sys_max_cmd_len=196608
13592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13594 # nice to cause kernel panics so lets avoid the loop below.
13595 # First set a reasonable default.
13596 lt_cv_sys_max_cmd_len=16384
13598 if test -x /sbin/sysconfig; then
13599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13605 lt_cv_sys_max_cmd_len=102400
13607 sysv5* | sco5v6* | sysv4.2uw2*)
13608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13609 if test -n "$kargmax"; then
13610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13612 lt_cv_sys_max_cmd_len=32768
13616 # If test is not a shell built-in, we'll probably end up computing a
13617 # maximum length that is only half of the actual maximum length, but
13619 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13620 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13621 = "XX$teststring") >/dev/null 2>&1 &&
13622 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13623 lt_cv_sys_max_cmd_len=$new_result &&
13624 test $i != 17 # 1/2 MB should be enough
13627 teststring=$teststring$teststring
13630 # Add a significant safety factor because C++ compilers can tack on massive
13631 # amounts of additional arguments before passing them to the linker.
13632 # It appears as though 1/2 is a usable value.
13633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13639 if test -n $lt_cv_sys_max_cmd_len ; then
13640 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13641 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13643 { echo "$as_me:$LINENO: result: none" >&5
13644 echo "${ECHO_T}none" >&6; }
13650 # Check for command to grab the raw symbol name followed by C symbol from nm.
13651 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13652 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13653 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 # These are sane defaults that work on at least a few old systems.
13658 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13660 # Character class describing NM global symbol codes.
13661 symcode='[BCDEGRST]'
13663 # Regexp to match symbols that can be accessed directly from C.
13664 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13666 # Transform an extracted symbol line into a proper C declaration
13667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13669 # Transform an extracted symbol line into symbol name and symbol address
13670 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'"
13672 # Define system-specific variables.
13677 cygwin* | mingw* | pw32*)
13678 symcode='[ABCDGISTW]'
13680 hpux*) # Its linker distinguishes data from code symbols
13681 if test "$host_cpu" = ia64; then
13682 symcode='[ABCDEGRST]'
13684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13685 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'"
13688 if test "$host_cpu" = ia64; then
13689 symcode='[ABCDGIRSTW]'
13690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13691 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'"
13694 irix* | nonstopux*)
13695 symcode='[BCDEGRST]'
13698 symcode='[BCDEGQRST]'
13709 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13717 # Handle CRLF in mingw tool chain
13721 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13725 # If we're using GNU nm, then use its standard symbol codes.
13726 case `$NM -V 2>&1` in
13727 *GNU* | *'with BFD'*)
13728 symcode='[ABCDGIRSTW]' ;;
13731 # Try without a prefix undercore, then with it.
13732 for ac_symprfx in "" "_"; do
13734 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13735 symxfrm="\\1 $ac_symprfx\\2 \\2"
13737 # Write the raw and C identifiers.
13738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13740 # Check to see that the pipe works correctly.
13744 cat > conftest.$ac_ext <<EOF
13749 void nm_test_func(){}
13753 int main(){nm_test_var='a';nm_test_func();return(0);}
13756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13757 (eval $ac_compile) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; then
13761 # Now try to grab the symbols.
13763 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13764 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && test -s "$nlist"; then
13768 # Try sorting and uniquifying the output.
13769 if sort "$nlist" | uniq > "$nlist"T; then
13770 mv -f "$nlist"T "$nlist"
13775 # Make sure that we snagged all the symbols we need.
13776 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13777 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13778 cat <<EOF > conftest.$ac_ext
13784 # Now generate the symbol file.
13785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13787 cat <<EOF >> conftest.$ac_ext
13788 #if defined (__STDC__) && __STDC__
13789 # define lt_ptr_t void *
13791 # define lt_ptr_t char *
13795 /* The mapping between symbol names and symbols. */
13800 lt_preloaded_symbols[] =
13803 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13804 cat <<\EOF >> conftest.$ac_ext
13812 # Now try linking the two files.
13813 mv conftest.$ac_objext conftstm.$ac_objext
13814 lt_save_LIBS="$LIBS"
13815 lt_save_CFLAGS="$CFLAGS"
13816 LIBS="conftstm.$ac_objext"
13817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13819 (eval $ac_link) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13825 LIBS="$lt_save_LIBS"
13826 CFLAGS="$lt_save_CFLAGS"
13828 echo "cannot find nm_test_func in $nlist" >&5
13831 echo "cannot find nm_test_var in $nlist" >&5
13834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13837 echo "$progname: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13840 rm -f conftest* conftst*
13842 # Do not use the global_symbol_pipe unless it works.
13843 if test "$pipe_works" = yes; then
13846 lt_cv_sys_global_symbol_pipe=
13852 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13853 lt_cv_sys_global_symbol_to_cdecl=
13855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13856 { echo "$as_me:$LINENO: result: failed" >&5
13857 echo "${ECHO_T}failed" >&6; }
13859 { echo "$as_me:$LINENO: result: ok" >&5
13860 echo "${ECHO_T}ok" >&6; }
13863 { echo "$as_me:$LINENO: checking for objdir" >&5
13864 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13865 if test "${lt_cv_objdir+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 rm -f .libs 2>/dev/null
13869 mkdir .libs 2>/dev/null
13870 if test -d .libs; then
13873 # MS-DOS does not allow filenames that begin with a dot.
13876 rmdir .libs 2>/dev/null
13878 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13879 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13880 objdir=$lt_cv_objdir
13888 # AIX sometimes has problems with the GCC collect2 program. For some
13889 # reason, if we set the COLLECT_NAMES environment variable, the problems
13890 # vanish in a puff of smoke.
13891 if test "X${COLLECT_NAMES+set}" != Xset; then
13893 export COLLECT_NAMES
13898 # Sed substitution that helps us do robust quoting. It backslashifies
13899 # metacharacters that are still active within double-quoted strings.
13900 Xsed='sed -e 1s/^X//'
13901 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13903 # Same as above, but do not quote variable references.
13904 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13906 # Sed substitution to delay expansion of an escaped shell variable in a
13907 # double_quote_subst'ed string.
13908 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13910 # Sed substitution to avoid accidental globbing in evaled expressions
13911 no_glob_subst='s/\*/\\\*/g'
13916 # Global variables:
13917 default_ofile=mklib
13918 can_build_shared=yes
13920 # All known linkers require a `.a' archive for static linking (except MSVC,
13921 # which needs '.lib').
13923 ltmain="$ac_aux_dir/ltmain.sh"
13924 ofile="$default_ofile"
13925 with_gnu_ld="$lt_cv_prog_gnu_ld"
13927 if test -n "$ac_tool_prefix"; then
13928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13929 set dummy ${ac_tool_prefix}ar; ac_word=$2
13930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13932 if test "${ac_cv_prog_AR+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 if test -n "$AR"; then
13936 ac_cv_prog_AR="$AR" # Let the user override the test.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13945 ac_cv_prog_AR="${ac_tool_prefix}ar"
13946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 if test -n "$AR"; then
13957 { echo "$as_me:$LINENO: result: $AR" >&5
13958 echo "${ECHO_T}$AR" >&6; }
13960 { echo "$as_me:$LINENO: result: no" >&5
13961 echo "${ECHO_T}no" >&6; }
13966 if test -z "$ac_cv_prog_AR"; then
13968 # Extract the first word of "ar", so it can be a program name with args.
13969 set dummy ar; ac_word=$2
13970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13972 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 if test -n "$ac_ct_AR"; then
13976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
13984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13985 ac_cv_prog_ac_ct_AR="ar"
13986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13996 if test -n "$ac_ct_AR"; then
13997 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13998 echo "${ECHO_T}$ac_ct_AR" >&6; }
14000 { echo "$as_me:$LINENO: result: no" >&5
14001 echo "${ECHO_T}no" >&6; }
14004 if test "x$ac_ct_AR" = x; then
14007 case $cross_compiling:$ac_tool_warned in
14009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14010 whose name does not start with the host triplet. If you think this
14011 configuration is useful to you, please write to autoconf@gnu.org." >&5
14012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14013 whose name does not start with the host triplet. If you think this
14014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14015 ac_tool_warned=yes ;;
14020 AR="$ac_cv_prog_AR"
14023 if test -n "$ac_tool_prefix"; then
14024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14025 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14028 if test "${ac_cv_prog_RANLIB+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 if test -n "$RANLIB"; then
14032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14041 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14051 RANLIB=$ac_cv_prog_RANLIB
14052 if test -n "$RANLIB"; then
14053 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14054 echo "${ECHO_T}$RANLIB" >&6; }
14056 { echo "$as_me:$LINENO: result: no" >&5
14057 echo "${ECHO_T}no" >&6; }
14062 if test -z "$ac_cv_prog_RANLIB"; then
14063 ac_ct_RANLIB=$RANLIB
14064 # Extract the first word of "ranlib", so it can be a program name with args.
14065 set dummy ranlib; ac_word=$2
14066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 if test -n "$ac_ct_RANLIB"; then
14072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14081 ac_cv_prog_ac_ct_RANLIB="ranlib"
14082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14092 if test -n "$ac_ct_RANLIB"; then
14093 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14094 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14096 { echo "$as_me:$LINENO: result: no" >&5
14097 echo "${ECHO_T}no" >&6; }
14100 if test "x$ac_ct_RANLIB" = x; then
14103 case $cross_compiling:$ac_tool_warned in
14105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14106 whose name does not start with the host triplet. If you think this
14107 configuration is useful to you, please write to autoconf@gnu.org." >&5
14108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14109 whose name does not start with the host triplet. If you think this
14110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14111 ac_tool_warned=yes ;;
14113 RANLIB=$ac_ct_RANLIB
14116 RANLIB="$ac_cv_prog_RANLIB"
14119 if test -n "$ac_tool_prefix"; then
14120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14121 set dummy ${ac_tool_prefix}strip; ac_word=$2
14122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14124 if test "${ac_cv_prog_STRIP+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 if test -n "$STRIP"; then
14128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $PATH
14134 test -z "$as_dir" && as_dir=.
14135 for ac_exec_ext in '' $ac_executable_extensions; do
14136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 STRIP=$ac_cv_prog_STRIP
14148 if test -n "$STRIP"; then
14149 { echo "$as_me:$LINENO: result: $STRIP" >&5
14150 echo "${ECHO_T}$STRIP" >&6; }
14152 { echo "$as_me:$LINENO: result: no" >&5
14153 echo "${ECHO_T}no" >&6; }
14158 if test -z "$ac_cv_prog_STRIP"; then
14160 # Extract the first word of "strip", so it can be a program name with args.
14161 set dummy strip; ac_word=$2
14162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14164 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 if test -n "$ac_ct_STRIP"; then
14168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14177 ac_cv_prog_ac_ct_STRIP="strip"
14178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14188 if test -n "$ac_ct_STRIP"; then
14189 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14190 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14192 { echo "$as_me:$LINENO: result: no" >&5
14193 echo "${ECHO_T}no" >&6; }
14196 if test "x$ac_ct_STRIP" = x; then
14199 case $cross_compiling:$ac_tool_warned in
14201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14202 whose name does not start with the host triplet. If you think this
14203 configuration is useful to you, please write to autoconf@gnu.org." >&5
14204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14205 whose name does not start with the host triplet. If you think this
14206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14207 ac_tool_warned=yes ;;
14212 STRIP="$ac_cv_prog_STRIP"
14217 old_CFLAGS="$CFLAGS"
14219 # Set sane defaults for various variables
14220 test -z "$AR" && AR=ar
14221 test -z "$AR_FLAGS" && AR_FLAGS=cru
14222 test -z "$AS" && AS=as
14223 test -z "$CC" && CC=cc
14224 test -z "$LTCC" && LTCC=$CC
14225 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14226 test -z "$DLLTOOL" && DLLTOOL=dlltool
14227 test -z "$LD" && LD=ld
14228 test -z "$LN_S" && LN_S="ln -s"
14229 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14230 test -z "$NM" && NM=nm
14231 test -z "$SED" && SED=sed
14232 test -z "$OBJDUMP" && OBJDUMP=objdump
14233 test -z "$RANLIB" && RANLIB=:
14234 test -z "$STRIP" && STRIP=:
14235 test -z "$ac_objext" && ac_objext=o
14237 # Determine commands to create old-style static archives.
14238 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14239 old_postinstall_cmds='chmod 644 $oldlib'
14240 old_postuninstall_cmds=
14242 if test -n "$RANLIB"; then
14245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14251 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14254 for cc_temp in $compiler""; do
14256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14265 # Only perform the check for file, if the check method requires it
14266 case $deplibs_check_method in
14268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14269 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14270 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14271 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14279 lt_save_MAGIC_CMD="$MAGIC_CMD"
14280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14282 for ac_dir in $ac_dummy; do
14284 test -z "$ac_dir" && ac_dir=.
14285 if test -f $ac_dir/${ac_tool_prefix}file; then
14286 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14287 if test -n "$file_magic_test_file"; then
14288 case $deplibs_check_method in
14290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14293 $EGREP "$file_magic_regex" > /dev/null; then
14298 *** Warning: the command libtool uses to detect shared libraries,
14299 *** $file_magic_cmd, produces output that libtool cannot recognize.
14300 *** The result is that libtool may fail to recognize shared libraries
14301 *** as such. This will affect the creation of libtool libraries that
14302 *** depend on shared libraries, but programs linked with such libtool
14303 *** libraries will work regardless of this problem. Nevertheless, you
14304 *** may want to report the problem to your system manager and/or to
14305 *** bug-libtool@gnu.org
14315 MAGIC_CMD="$lt_save_MAGIC_CMD"
14320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14321 if test -n "$MAGIC_CMD"; then
14322 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14323 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14325 { echo "$as_me:$LINENO: result: no" >&5
14326 echo "${ECHO_T}no" >&6; }
14329 if test -z "$lt_cv_path_MAGIC_CMD"; then
14330 if test -n "$ac_tool_prefix"; then
14331 { echo "$as_me:$LINENO: checking for file" >&5
14332 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14333 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14341 lt_save_MAGIC_CMD="$MAGIC_CMD"
14342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14344 for ac_dir in $ac_dummy; do
14346 test -z "$ac_dir" && ac_dir=.
14347 if test -f $ac_dir/file; then
14348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14349 if test -n "$file_magic_test_file"; then
14350 case $deplibs_check_method in
14352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14355 $EGREP "$file_magic_regex" > /dev/null; then
14360 *** Warning: the command libtool uses to detect shared libraries,
14361 *** $file_magic_cmd, produces output that libtool cannot recognize.
14362 *** The result is that libtool may fail to recognize shared libraries
14363 *** as such. This will affect the creation of libtool libraries that
14364 *** depend on shared libraries, but programs linked with such libtool
14365 *** libraries will work regardless of this problem. Nevertheless, you
14366 *** may want to report the problem to your system manager and/or to
14367 *** bug-libtool@gnu.org
14377 MAGIC_CMD="$lt_save_MAGIC_CMD"
14382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14383 if test -n "$MAGIC_CMD"; then
14384 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14385 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14387 { echo "$as_me:$LINENO: result: no" >&5
14388 echo "${ECHO_T}no" >&6; }
14401 enable_win32_dll=no
14403 # Check whether --enable-libtool-lock was given.
14404 if test "${enable_libtool_lock+set}" = set; then
14405 enableval=$enable_libtool_lock;
14408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14411 # Check whether --with-pic was given.
14412 if test "${with_pic+set}" = set; then
14413 withval=$with_pic; pic_mode="$withval"
14418 test -z "$pic_mode" && pic_mode=default
14420 # Use C for the default configuration in the libtool script
14424 ac_cpp='$CPP $CPPFLAGS'
14425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14430 # Source file extension for C test sources.
14433 # Object file extension for compiled C test sources.
14437 # Code to be used in simple compile tests
14438 lt_simple_compile_test_code="int some_variable = 0;\n"
14440 # Code to be used in simple link tests
14441 lt_simple_link_test_code='int main(){return(0);}\n'
14444 # If no C compiler was specified, use CC.
14447 # If no C compiler flags were specified, use CFLAGS.
14448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14450 # Allow CC to be a program name with arguments.
14454 # save warnings/boilerplate of simple test code
14455 ac_outfile=conftest.$ac_objext
14456 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14457 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14458 _lt_compiler_boilerplate=`cat conftest.err`
14461 ac_outfile=conftest.$ac_objext
14462 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14463 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14464 _lt_linker_boilerplate=`cat conftest.err`
14469 lt_prog_compiler_no_builtin_flag=
14471 if test "$GCC" = yes; then
14472 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14475 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14476 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14477 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 lt_cv_prog_compiler_rtti_exceptions=no
14481 ac_outfile=conftest.$ac_objext
14482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14483 lt_compiler_flag="-fno-rtti -fno-exceptions"
14484 # Insert the option either (1) after the last *FLAGS variable, or
14485 # (2) before a word containing "conftest.", or (3) at the end.
14486 # Note that $ac_compile itself does not contain backslashes and begins
14487 # with a dollar sign (not a hyphen), so the echo should work correctly.
14488 # The option is referenced via a variable to avoid confusing sed.
14489 lt_compile=`echo "$ac_compile" | $SED \
14490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14492 -e 's:$: $lt_compiler_flag:'`
14493 (eval echo "\"\$as_me:14493: $lt_compile\"" >&5)
14494 (eval "$lt_compile" 2>conftest.err)
14496 cat conftest.err >&5
14497 echo "$as_me:14497: \$? = $ac_status" >&5
14498 if (exit $ac_status) && test -s "$ac_outfile"; then
14499 # The compiler can only warn and ignore the option if not recognized
14500 # So say no if there are warnings other than the usual output.
14501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14504 lt_cv_prog_compiler_rtti_exceptions=yes
14510 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14511 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14514 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14521 lt_prog_compiler_wl=
14522 lt_prog_compiler_pic=
14523 lt_prog_compiler_static=
14525 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14528 if test "$GCC" = yes; then
14529 lt_prog_compiler_wl='-Wl,'
14530 lt_prog_compiler_static='-static'
14534 # All AIX code is PIC.
14535 if test "$host_cpu" = ia64; then
14536 # AIX 5 now supports IA64 processor
14537 lt_prog_compiler_static='-Bstatic'
14542 # FIXME: we need at least 68020 code to build shared libraries, but
14543 # adding the `-m68020' flag to GCC prevents building anything better,
14545 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14548 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14549 # PIC is the default for these OSes.
14552 mingw* | pw32* | os2*)
14553 # This hack is so that the source file can tell whether it is being
14554 # built for inclusion in a dll (and should export symbols for example).
14555 lt_prog_compiler_pic='-DDLL_EXPORT'
14558 darwin* | rhapsody*)
14559 # PIC is the default on this platform
14560 # Common symbols not allowed in MH_DYLIB files
14561 lt_prog_compiler_pic='-fno-common'
14565 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14566 # Instead, we relocate shared libraries at runtime.
14570 # Just because we use GCC doesn't mean we suddenly get shared libraries
14571 # on systems that don't support them.
14572 lt_prog_compiler_can_build_shared=no
14577 if test -d /usr/nec; then
14578 lt_prog_compiler_pic=-Kconform_pic
14583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14584 # not for PA HP-UX.
14590 lt_prog_compiler_pic='-fPIC'
14596 lt_prog_compiler_pic='-fPIC'
14600 # PORTME Check for flag to pass linker flags through the system compiler.
14603 lt_prog_compiler_wl='-Wl,'
14604 if test "$host_cpu" = ia64; then
14605 # AIX 5 now supports IA64 processor
14606 lt_prog_compiler_static='-Bstatic'
14608 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14612 # PIC is the default on this platform
14613 # Common symbols not allowed in MH_DYLIB files
14614 case $cc_basename in
14616 lt_prog_compiler_pic='-qnocommon'
14617 lt_prog_compiler_wl='-Wl,'
14622 mingw* | pw32* | os2*)
14623 # This hack is so that the source file can tell whether it is being
14624 # built for inclusion in a dll (and should export symbols for example).
14625 lt_prog_compiler_pic='-DDLL_EXPORT'
14628 hpux9* | hpux10* | hpux11*)
14629 lt_prog_compiler_wl='-Wl,'
14630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14631 # not for PA HP-UX.
14637 lt_prog_compiler_pic='+Z'
14640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14641 lt_prog_compiler_static='${wl}-a ${wl}archive'
14644 irix5* | irix6* | nonstopux*)
14645 lt_prog_compiler_wl='-Wl,'
14646 # PIC (with -KPIC) is the default.
14647 lt_prog_compiler_static='-non_shared'
14651 lt_prog_compiler_pic='-KPIC'
14652 lt_prog_compiler_static='-Bstatic'
14656 case $cc_basename in
14658 lt_prog_compiler_wl='-Wl,'
14659 lt_prog_compiler_pic='-KPIC'
14660 lt_prog_compiler_static='-static'
14662 pgcc* | pgf77* | pgf90* | pgf95*)
14663 # Portland Group compilers (*not* the Pentium gcc compiler,
14664 # which looks to be a dead project)
14665 lt_prog_compiler_wl='-Wl,'
14666 lt_prog_compiler_pic='-fpic'
14667 lt_prog_compiler_static='-Bstatic'
14670 lt_prog_compiler_wl='-Wl,'
14671 # All Alpha code is PIC.
14672 lt_prog_compiler_static='-non_shared'
14677 osf3* | osf4* | osf5*)
14678 lt_prog_compiler_wl='-Wl,'
14679 # All OSF/1 code is PIC.
14680 lt_prog_compiler_static='-non_shared'
14684 lt_prog_compiler_pic='-KPIC'
14685 lt_prog_compiler_static='-Bstatic'
14686 case $cc_basename in
14687 f77* | f90* | f95*)
14688 lt_prog_compiler_wl='-Qoption ld ';;
14690 lt_prog_compiler_wl='-Wl,';;
14695 lt_prog_compiler_wl='-Qoption ld '
14696 lt_prog_compiler_pic='-PIC'
14697 lt_prog_compiler_static='-Bstatic'
14700 sysv4 | sysv4.2uw2* | sysv4.3*)
14701 lt_prog_compiler_wl='-Wl,'
14702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-Bstatic'
14707 if test -d /usr/nec ;then
14708 lt_prog_compiler_pic='-Kconform_pic'
14709 lt_prog_compiler_static='-Bstatic'
14713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14714 lt_prog_compiler_wl='-Wl,'
14715 lt_prog_compiler_pic='-KPIC'
14716 lt_prog_compiler_static='-Bstatic'
14720 lt_prog_compiler_wl='-Wl,'
14721 lt_prog_compiler_can_build_shared=no
14725 lt_prog_compiler_pic='-pic'
14726 lt_prog_compiler_static='-Bstatic'
14730 lt_prog_compiler_can_build_shared=no
14735 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14736 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14739 # Check to make sure the PIC flag actually works.
14741 if test -n "$lt_prog_compiler_pic"; then
14743 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14744 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14745 if test "${lt_prog_compiler_pic_works+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 lt_prog_compiler_pic_works=no
14749 ac_outfile=conftest.$ac_objext
14750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14752 # Insert the option either (1) after the last *FLAGS variable, or
14753 # (2) before a word containing "conftest.", or (3) at the end.
14754 # Note that $ac_compile itself does not contain backslashes and begins
14755 # with a dollar sign (not a hyphen), so the echo should work correctly.
14756 # The option is referenced via a variable to avoid confusing sed.
14757 lt_compile=`echo "$ac_compile" | $SED \
14758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760 -e 's:$: $lt_compiler_flag:'`
14761 (eval echo "\"\$as_me:14761: $lt_compile\"" >&5)
14762 (eval "$lt_compile" 2>conftest.err)
14764 cat conftest.err >&5
14765 echo "$as_me:14765: \$? = $ac_status" >&5
14766 if (exit $ac_status) && test -s "$ac_outfile"; then
14767 # The compiler can only warn and ignore the option if not recognized
14768 # So say no if there are warnings other than the usual output.
14769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14772 lt_prog_compiler_pic_works=yes
14778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14779 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14781 if test x"$lt_prog_compiler_pic_works" = xyes; then
14782 case $lt_prog_compiler_pic in
14784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14787 lt_prog_compiler_pic=
14788 lt_prog_compiler_can_build_shared=no
14793 # For platforms which do not support PIC, -DPIC is meaningless:
14795 lt_prog_compiler_pic=
14798 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14803 # Check to make sure the static flag actually works.
14805 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14806 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14807 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14808 if test "${lt_prog_compiler_static_works+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 lt_prog_compiler_static_works=no
14812 save_LDFLAGS="$LDFLAGS"
14813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14814 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14816 # The linker can only warn and ignore the option if not recognized
14817 # So say no if there are warnings
14818 if test -s conftest.err; then
14819 # Append any errors to the config.log.
14820 cat conftest.err 1>&5
14821 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14823 if diff conftest.exp conftest.er2 >/dev/null; then
14824 lt_prog_compiler_static_works=yes
14827 lt_prog_compiler_static_works=yes
14831 LDFLAGS="$save_LDFLAGS"
14834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14835 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14837 if test x"$lt_prog_compiler_static_works" = xyes; then
14840 lt_prog_compiler_static=
14844 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14845 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 lt_cv_prog_compiler_c_o=no
14850 $rm -r conftest 2>/dev/null
14854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14856 lt_compiler_flag="-o out/conftest2.$ac_objext"
14857 # Insert the option either (1) after the last *FLAGS variable, or
14858 # (2) before a word containing "conftest.", or (3) at the end.
14859 # Note that $ac_compile itself does not contain backslashes and begins
14860 # with a dollar sign (not a hyphen), so the echo should work correctly.
14861 lt_compile=`echo "$ac_compile" | $SED \
14862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14864 -e 's:$: $lt_compiler_flag:'`
14865 (eval echo "\"\$as_me:14865: $lt_compile\"" >&5)
14866 (eval "$lt_compile" 2>out/conftest.err)
14868 cat out/conftest.err >&5
14869 echo "$as_me:14869: \$? = $ac_status" >&5
14870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14872 # The compiler can only warn and ignore the option if not recognized
14873 # So say no if there are warnings
14874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14877 lt_cv_prog_compiler_c_o=yes
14882 # SGI C++ compiler will create directory out/ii_files/ for
14883 # template instantiation
14884 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14885 $rm out/* && rmdir out
14891 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14892 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14895 hard_links="nottested"
14896 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14897 # do not overwrite the value of need_locks provided by the user
14898 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14899 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14904 ln conftest.a conftest.b 2>&5 || hard_links=no
14905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14906 { echo "$as_me:$LINENO: result: $hard_links" >&5
14907 echo "${ECHO_T}$hard_links" >&6; }
14908 if test "$hard_links" = no; then
14909 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14910 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14917 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14918 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14921 allow_undefined_flag=
14922 enable_shared_with_static_runtimes=no
14924 archive_expsym_cmds=
14925 old_archive_From_new_cmds=
14926 old_archive_from_expsyms_cmds=
14927 export_dynamic_flag_spec=
14928 whole_archive_flag_spec=
14929 thread_safe_flag_spec=
14930 hardcode_libdir_flag_spec=
14931 hardcode_libdir_flag_spec_ld=
14932 hardcode_libdir_separator=
14934 hardcode_minus_L=no
14935 hardcode_shlibpath_var=unsupported
14936 link_all_deplibs=unknown
14937 hardcode_automatic=no
14939 module_expsym_cmds=
14940 always_export_symbols=no
14941 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14942 # include_expsyms should be a list of space-separated symbols to be *always*
14943 # included in the symbol list
14945 # exclude_expsyms can be an extended regexp of symbols to exclude
14946 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14947 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14948 # as well as any symbol that contains `d'.
14949 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14950 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14951 # platforms (ab)use it in PIC code, but their linkers get confused if
14952 # the symbol is explicitly referenced. Since portable code cannot
14953 # rely on this symbol name, it's probably fine to never include it in
14954 # preloaded symbol tables.
14955 extract_expsyms_cmds=
14956 # Just being paranoid about ensuring that cc_basename is set.
14957 for cc_temp in $compiler""; do
14959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14968 cygwin* | mingw* | pw32*)
14969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14970 # When not using gcc, we currently assume that we are using
14971 # Microsoft Visual C++.
14972 if test "$GCC" != yes; then
14977 # we just hope/assume this is gcc and not c89 (= MSVC++)
14986 if test "$with_gnu_ld" = yes; then
14987 # If archive_cmds runs LD, not CC, wlarc should be empty
14990 # Set some defaults for GNU ld with shared library support. These
14991 # are reset later if shared libraries are not supported. Putting them
14992 # here allows them to be overridden if necessary.
14993 runpath_var=LD_RUN_PATH
14994 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14995 export_dynamic_flag_spec='${wl}--export-dynamic'
14996 # ancient GNU ld didn't support --whole-archive et. al.
14997 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14998 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15000 whole_archive_flag_spec=
15002 supports_anon_versioning=no
15003 case `$LD -v 2>/dev/null` in
15004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15007 *\ 2.11.*) ;; # other 2.11 versions
15008 *) supports_anon_versioning=yes ;;
15011 # See if GNU ld supports shared libraries.
15013 aix3* | aix4* | aix5*)
15014 # On AIX/PPC, the GNU linker is very broken
15015 if test "$host_cpu" != ia64; then
15019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15020 *** to be unable to reliably create shared libraries on AIX.
15021 *** Therefore, libtool is disabling shared libraries support. If you
15022 *** really care for shared libraries, you may want to modify your PATH
15023 *** so that a non-GNU linker is found, and then restart.
15030 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)'
15031 hardcode_libdir_flag_spec='-L$libdir'
15032 hardcode_minus_L=yes
15034 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15035 # that the semantics of dynamic libraries on AmigaOS, at least up
15036 # to version 4, is to share data among multiple programs linked
15037 # with the same dynamic library. Since this doesn't match the
15038 # behavior of shared libraries on other platforms, we can't use
15044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045 allow_undefined_flag=unsupported
15046 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15047 # support --undefined. This deserves some investigation. FIXME
15048 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15054 cygwin* | mingw* | pw32*)
15055 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15056 # as there is no search path for DLLs.
15057 hardcode_libdir_flag_spec='-L$libdir'
15058 allow_undefined_flag=unsupported
15059 always_export_symbols=no
15060 enable_shared_with_static_runtimes=yes
15061 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15063 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15065 # If the export-symbols file already is a .def file (1st line
15066 # is EXPORTS), use it as is; otherwise, prepend...
15067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15068 cp $export_symbols $output_objdir/$soname.def;
15070 echo EXPORTS > $output_objdir/$soname.def;
15071 cat $export_symbols >> $output_objdir/$soname.def;
15073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15081 hardcode_shlibpath_var=no
15082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15083 export_dynamic_flag_spec='${wl}-E'
15084 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15085 # Instead, shared libraries are loaded at an image base (0x10000000 by
15086 # default) and relocated if they conflict, which is a slow very memory
15087 # consuming and fragmenting process. To avoid this, we pick a random,
15088 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15089 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15090 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15091 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'
15095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097 case $cc_basename,$host_cpu in
15098 pgcc*) # Portland Group C compiler
15099 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'
15100 tmp_addflag=' $pic_flag'
15102 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15103 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'
15104 tmp_addflag=' $pic_flag -Mnomain' ;;
15105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15106 tmp_addflag=' -i_dynamic' ;;
15107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15108 tmp_addflag=' -i_dynamic -nofor_main' ;;
15109 ifc* | ifort*) # Intel Fortran compiler
15110 tmp_addflag=' -nofor_main' ;;
15112 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15114 if test $supports_anon_versioning = yes; then
15115 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15117 $echo "local: *; };" >> $output_objdir/$libname.ver~
15118 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15141 *** create shared libraries on Solaris systems. Therefore, libtool
15142 *** is disabling shared libraries support. We urge you to upgrade GNU
15143 *** binutils to release 2.9.1 or newer. Another option is to modify
15144 *** your PATH or compiler configuration so that the native linker is
15145 *** used, and then restart.
15148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15157 case `$LD -v 2>&1` in
15158 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15162 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15163 *** reliably create shared libraries on SCO systems. Therefore, libtool
15164 *** is disabling shared libraries support. We urge you to upgrade GNU
15165 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15166 *** your PATH or compiler configuration so that the native linker is
15167 *** used, and then restart.
15172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15186 hardcode_direct=yes
15187 hardcode_shlibpath_var=no
15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15200 if test "$ld_shlibs" = no; then
15202 hardcode_libdir_flag_spec=
15203 export_dynamic_flag_spec=
15204 whole_archive_flag_spec=
15207 # PORTME fill in a description of your system's linker (not GNU ld)
15210 allow_undefined_flag=unsupported
15211 always_export_symbols=yes
15212 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'
15213 # Note: this linker hardcodes the directories in LIBPATH if there
15214 # are no directories specified by -L.
15215 hardcode_minus_L=yes
15216 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15217 # Neither direct hardcoding nor static linking is supported with a
15219 hardcode_direct=unsupported
15224 if test "$host_cpu" = ia64; then
15225 # On IA64, the linker does run time linking by default, so we don't
15226 # have to do anything special.
15227 aix_use_runtimelinking=no
15228 exp_sym_flag='-Bexport'
15231 # If we're using GNU nm, then we don't want the "-C" option.
15232 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15233 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15234 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'
15236 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'
15238 aix_use_runtimelinking=no
15240 # Test if we are trying to use run time linking or normal
15241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15242 # need to do runtime linking.
15243 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15244 for ld_flag in $LDFLAGS; do
15245 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15246 aix_use_runtimelinking=yes
15253 exp_sym_flag='-bexport'
15254 no_entry_flag='-bnoentry'
15257 # When large executables or shared objects are built, AIX ld can
15258 # have problems creating the table of contents. If linking a library
15259 # or program results in "error TOC overflow" add -mminimal-toc to
15260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15264 hardcode_direct=yes
15265 hardcode_libdir_separator=':'
15266 link_all_deplibs=yes
15268 if test "$GCC" = yes; then
15269 case $host_os in aix4.[012]|aix4.[012].*)
15270 # We only want to do this on AIX 4.2 and lower, the check
15271 # below for broken collect2 doesn't work under 4.3+
15272 collect2name=`${CC} -print-prog-name=collect2`
15273 if test -f "$collect2name" && \
15274 strings "$collect2name" | grep resolve_lib_name >/dev/null
15276 # We have reworked collect2
15277 hardcode_direct=yes
15279 # We have old collect2
15280 hardcode_direct=unsupported
15281 # It fails to find uninstalled libraries when the uninstalled
15282 # path is not listed in the libpath. Setting hardcode_minus_L
15283 # to unsupported forces relinking
15284 hardcode_minus_L=yes
15285 hardcode_libdir_flag_spec='-L$libdir'
15286 hardcode_libdir_separator=
15290 shared_flag='-shared'
15291 if test "$aix_use_runtimelinking" = yes; then
15292 shared_flag="$shared_flag "'${wl}-G'
15296 if test "$host_cpu" = ia64; then
15297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15298 # chokes on -Wl,-G. The following line is correct:
15301 if test "$aix_use_runtimelinking" = yes; then
15302 shared_flag='${wl}-G'
15304 shared_flag='${wl}-bM:SRE'
15309 # It seems that -bexpall does not export symbols beginning with
15310 # underscore (_), so it is better to generate a list of symbols to export.
15311 always_export_symbols=yes
15312 if test "$aix_use_runtimelinking" = yes; then
15313 # Warning - without using the other runtime loading flags (-brtl),
15314 # -berok will link without error, but may produce a broken library.
15315 allow_undefined_flag='-berok'
15316 # Determine the default libpath from the value encoded in an empty executable.
15317 cat >conftest.$ac_ext <<_ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15369 # Check for a 64-bit object if we didn't find anything.
15370 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; }
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15379 rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15383 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15384 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"
15386 if test "$host_cpu" = ia64; then
15387 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15388 allow_undefined_flag="-z nodefs"
15389 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"
15391 # Determine the default libpath from the value encoded in an empty executable.
15392 cat >conftest.$ac_ext <<_ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (ac_try="$ac_link"
15409 case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_link") 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422 { (case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_try") 2>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest$ac_exeext'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15444 # Check for a 64-bit object if we didn't find anything.
15445 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; }
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15459 # Warning - without using the other run time loading flags,
15460 # -berok will link without error, but may produce a broken library.
15461 no_undefined_flag=' ${wl}-bernotok'
15462 allow_undefined_flag=' ${wl}-berok'
15463 # Exported symbols can be pulled into shared objects from archives
15464 whole_archive_flag_spec='$convenience'
15465 archive_cmds_need_lc=yes
15466 # This is similar to how AIX traditionally builds its shared libraries.
15467 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'
15473 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)'
15474 hardcode_libdir_flag_spec='-L$libdir'
15475 hardcode_minus_L=yes
15476 # see comment about different semantics on the GNU ld section
15481 export_dynamic_flag_spec=-rdynamic
15484 cygwin* | mingw* | pw32*)
15485 # When not using gcc, we currently assume that we are using
15486 # Microsoft Visual C++.
15487 # hardcode_libdir_flag_spec is actually meaningless, as there is
15488 # no search path for DLLs.
15489 hardcode_libdir_flag_spec=' '
15490 allow_undefined_flag=unsupported
15491 # Tell ltmain to make .lib files, not .a files.
15493 # Tell ltmain to make .dll files, not .so files.
15495 # FIXME: Setting linknames here is a bad hack.
15496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15497 # The linker will automatically build a .lib file if we build a DLL.
15498 old_archive_From_new_cmds='true'
15499 # FIXME: Should let the user specify the lib program.
15500 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15501 fix_srcfile_path='`cygpath -w "$srcfile"`'
15502 enable_shared_with_static_runtimes=yes
15505 darwin* | rhapsody*)
15507 rhapsody* | darwin1.[012])
15508 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15512 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15514 case ${MACOSX_DEPLOYMENT_TARGET} in
15516 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15519 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15525 archive_cmds_need_lc=no
15527 hardcode_automatic=yes
15528 hardcode_shlibpath_var=unsupported
15529 whole_archive_flag_spec=''
15530 link_all_deplibs=yes
15531 if test "$GCC" = yes ; then
15532 output_verbose_link_cmd='echo'
15533 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15534 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15536 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}'
15537 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}'
15539 case $cc_basename in
15541 output_verbose_link_cmd='echo'
15542 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15543 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15545 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}'
15546 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}'
15556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 hardcode_libdir_flag_spec='-L$libdir'
15558 hardcode_shlibpath_var=no
15565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15566 # support. Future versions do this automatically, but an explicit c++rt0.o
15567 # does not break anything, and helps significantly (at the cost of a little
15570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15571 hardcode_libdir_flag_spec='-R$libdir'
15572 hardcode_direct=yes
15573 hardcode_shlibpath_var=no
15576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_direct=yes
15580 hardcode_minus_L=yes
15581 hardcode_shlibpath_var=no
15584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15585 freebsd* | kfreebsd*-gnu | dragonfly*)
15586 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15587 hardcode_libdir_flag_spec='-R$libdir'
15588 hardcode_direct=yes
15589 hardcode_shlibpath_var=no
15593 if test "$GCC" = yes; then
15594 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'
15596 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'
15598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15599 hardcode_libdir_separator=:
15600 hardcode_direct=yes
15602 # hardcode_minus_L: Not really in the search PATH,
15603 # but as the default location of the library.
15604 hardcode_minus_L=yes
15605 export_dynamic_flag_spec='${wl}-E'
15609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15610 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15614 if test "$with_gnu_ld" = no; then
15615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15616 hardcode_libdir_separator=:
15618 hardcode_direct=yes
15619 export_dynamic_flag_spec='${wl}-E'
15621 # hardcode_minus_L: Not really in the search PATH,
15622 # but as the default location of the library.
15623 hardcode_minus_L=yes
15628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15631 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15643 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15653 if test "$with_gnu_ld" = no; then
15654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15655 hardcode_libdir_separator=:
15659 hardcode_libdir_flag_spec_ld='+b $libdir'
15661 hardcode_shlibpath_var=no
15664 hardcode_direct=yes
15665 export_dynamic_flag_spec='${wl}-E'
15667 # hardcode_minus_L: Not really in the search PATH,
15668 # but as the default location of the library.
15669 hardcode_minus_L=yes
15675 irix5* | irix6* | nonstopux*)
15676 if test "$GCC" = yes; then
15677 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'
15679 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'
15680 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15683 hardcode_libdir_separator=:
15684 link_all_deplibs=yes
15688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15691 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15693 hardcode_libdir_flag_spec='-R$libdir'
15694 hardcode_direct=yes
15695 hardcode_shlibpath_var=no
15699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_direct=yes
15701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702 hardcode_libdir_separator=:
15703 hardcode_shlibpath_var=no
15707 hardcode_direct=yes
15708 hardcode_shlibpath_var=no
15709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15711 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15713 export_dynamic_flag_spec='${wl}-E'
15716 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_libdir_flag_spec='-R$libdir'
15721 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15729 hardcode_libdir_flag_spec='-L$libdir'
15730 hardcode_minus_L=yes
15731 allow_undefined_flag=unsupported
15732 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'
15733 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15737 if test "$GCC" = yes; then
15738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15739 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'
15741 allow_undefined_flag=' -expect_unresolved \*'
15742 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'
15744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator=:
15748 osf4* | osf5*) # as osf3* with the addition of -msym flag
15749 if test "$GCC" = yes; then
15750 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15751 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'
15752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15754 allow_undefined_flag=' -expect_unresolved \*'
15755 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'
15756 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15757 $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'
15759 # Both c and cxx compiler support -rpath directly
15760 hardcode_libdir_flag_spec='-rpath $libdir'
15762 hardcode_libdir_separator=:
15766 no_undefined_flag=' -z text'
15767 if test "$GCC" = yes; then
15769 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15770 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15771 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15774 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15778 hardcode_libdir_flag_spec='-R$libdir'
15779 hardcode_shlibpath_var=no
15781 solaris2.[0-5] | solaris2.[0-5].*) ;;
15783 # The compiler driver will combine linker options so we
15784 # cannot just pass the convience library names through
15785 # without $wl, iff we do not link with $LD.
15786 # Luckily, gcc supports the same syntax we need for Sun Studio.
15787 # Supported since Solaris 2.6 (maybe 2.5.1?)
15790 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15792 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' ;;
15795 link_all_deplibs=yes
15799 if test "x$host_vendor" = xsequent; then
15800 # Use $CC to link under sequent, because it throws in some extra .o
15801 # files that make .init and .fini sections work.
15802 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15804 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15806 hardcode_libdir_flag_spec='-L$libdir'
15807 hardcode_direct=yes
15808 hardcode_minus_L=yes
15809 hardcode_shlibpath_var=no
15813 case $host_vendor in
15815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_direct=yes # is this really true???
15819 ## LD is ld it makes a PLAMLIB
15820 ## CC just makes a GrossModule.
15821 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15822 reload_cmds='$CC -r -o $output$reload_objs'
15826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15827 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15830 runpath_var='LD_RUN_PATH'
15831 hardcode_shlibpath_var=no
15835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_shlibpath_var=no
15837 export_dynamic_flag_spec='-Bexport'
15841 if test -d /usr/nec; then
15842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_shlibpath_var=no
15844 runpath_var=LD_RUN_PATH
15845 hardcode_runpath_var=yes
15850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15851 no_undefined_flag='${wl}-z,text'
15852 archive_cmds_need_lc=no
15853 hardcode_shlibpath_var=no
15854 runpath_var='LD_RUN_PATH'
15856 if test "$GCC" = yes; then
15857 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15860 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 sysv5* | sco3.2v5* | sco5v6*)
15866 # Note: We can NOT use -z defs as we might desire, because we do not
15867 # link with -lc, and that would cause any symbols used from libc to
15868 # always be unresolved, which means just about no library would
15869 # ever link correctly. If we're not using GNU ld we use -z text
15870 # though, which does catch some bad symbols but isn't as heavy-handed
15872 no_undefined_flag='${wl}-z,text'
15873 allow_undefined_flag='${wl}-z,nodefs'
15874 archive_cmds_need_lc=no
15875 hardcode_shlibpath_var=no
15876 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15877 hardcode_libdir_separator=':'
15878 link_all_deplibs=yes
15879 export_dynamic_flag_spec='${wl}-Bexport'
15880 runpath_var='LD_RUN_PATH'
15882 if test "$GCC" = yes; then
15883 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15893 hardcode_libdir_flag_spec='-L$libdir'
15894 hardcode_shlibpath_var=no
15903 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15904 echo "${ECHO_T}$ld_shlibs" >&6; }
15905 test "$ld_shlibs" = no && can_build_shared=no
15908 # Do we need to explicitly link libc?
15910 case "x$archive_cmds_need_lc" in
15912 # Assume -lc should be added
15913 archive_cmds_need_lc=yes
15915 if test "$enable_shared" = yes && test "$GCC" = yes; then
15916 case $archive_cmds in
15918 # FIXME: we may have to deal with multi-command sequences.
15921 # Test whether the compiler implicitly links with -lc since on some
15922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15923 # to ld, don't add -lc before -lgcc.
15924 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15925 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930 (eval $ac_compile) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } 2>conftest.err; then
15936 libobjs=conftest.$ac_objext
15938 wl=$lt_prog_compiler_wl
15939 pic_flag=$lt_prog_compiler_pic
15945 lt_save_allow_undefined_flag=$allow_undefined_flag
15946 allow_undefined_flag=
15947 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15948 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }
15953 archive_cmds_need_lc=no
15955 archive_cmds_need_lc=yes
15957 allow_undefined_flag=$lt_save_allow_undefined_flag
15959 cat conftest.err 1>&5
15962 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15963 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15970 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15971 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15972 library_names_spec=
15973 libname_spec='lib$name'
15977 postuninstall_cmds=
15981 shlibpath_overrides_runpath=unknown
15983 dynamic_linker="$host_os ld.so"
15984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15985 if test "$GCC" = yes; then
15986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15987 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15988 # if the path contains ";" then we assume it to be the separator
15989 # otherwise default to the standard path separator (i.e. ":") - it is
15990 # assumed that no part of a normal pathname contains ";" but that should
15991 # okay in the real world where ";" in dirpaths is itself problematic.
15992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15999 need_lib_prefix=unknown
16000 hardcode_into_libs=no
16002 # when you set need_version to no, make sure it does not cause -set_version
16003 # flags to be left without arguments
16004 need_version=unknown
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16010 shlibpath_var=LIBPATH
16012 # AIX 3 has no versioning support, so we append a major version to the name.
16013 soname_spec='${libname}${release}${shared_ext}$major'
16020 hardcode_into_libs=yes
16021 if test "$host_cpu" = ia64; then
16022 # AIX 5 supports IA64
16023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16024 shlibpath_var=LD_LIBRARY_PATH
16026 # With GCC up to 2.95.x, collect2 would create an import file
16027 # for dependence libraries. The import file would start with
16028 # the line `#! .'. This would cause the generated library to
16029 # depend on `.', always an invalid library. This was fixed in
16030 # development snapshots of GCC prior to 3.0.
16032 aix4 | aix4.[01] | aix4.[01].*)
16033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16038 can_build_shared=no
16042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16043 # soname into executable. Probably we can add versioning support to
16044 # collect2, so additional links can be useful in future.
16045 if test "$aix_use_runtimelinking" = yes; then
16046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16047 # instead of lib<name>.a to let people know that these are not
16048 # typical AIX shared libraries.
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 # We preserve .a as extension for shared libraries through AIX4.2
16052 # and later when we are not doing run time linking.
16053 library_names_spec='${libname}${release}.a $libname.a'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LIBPATH
16061 library_names_spec='$libname.ixlibrary $libname.a'
16062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16063 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'
16067 library_names_spec='${libname}${shared_ext}'
16068 dynamic_linker="$host_os ld.so"
16069 shlibpath_var=LIBRARY_PATH
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16081 # the default ld.so.conf also contains /usr/contrib/lib and
16082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16083 # libtool to hard-code these into programs
16086 cygwin* | mingw* | pw32*)
16087 version_type=windows
16092 case $GCC,$host_os in
16093 yes,cygwin* | yes,mingw* | yes,pw32*)
16094 library_names_spec='$libname.dll.a'
16095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16096 postinstall_cmds='base_file=`basename \${file}`~
16097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16098 dldir=$destdir/`dirname \$dlpath`~
16099 test -d \$dldir || mkdir -p \$dldir~
16100 $install_prog $dir/$dlname \$dldir/$dlname~
16101 chmod a+x \$dldir/$dlname'
16102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16103 dlpath=$dir/\$dldll~
16105 shlibpath_overrides_runpath=yes
16109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16114 # MinGW DLLs use traditional 'lib' prefix
16115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16118 # It is most probably a Windows format PATH printed by
16119 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16120 # path with ; separators, and with drive letters. We can handle the
16121 # drive letters (cygwin fileutils understands them), so leave them,
16122 # especially as we might pass files found there to a mingw objdump,
16123 # which wouldn't understand a cygwinified path. Ahh.
16124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16130 # pw32 DLLs use 'pw' prefix rather than 'lib'
16131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16140 dynamic_linker='Win32 ld.exe'
16141 # FIXME: first we should search . and the directory the executable is in
16145 darwin* | rhapsody*)
16146 dynamic_linker="$host_os dyld"
16147 version_type=darwin
16150 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16151 soname_spec='${libname}${release}${major}$shared_ext'
16152 shlibpath_overrides_runpath=yes
16153 shlibpath_var=DYLD_LIBRARY_PATH
16154 shrext_cmds='.dylib'
16155 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16156 if test "$GCC" = yes; then
16157 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"`
16159 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16161 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=no
16185 hardcode_into_libs=yes
16186 dynamic_linker='GNU ld.so'
16189 freebsd* | dragonfly*)
16190 # DragonFly does not have aout. When/if they implement a new
16191 # versioning mechanism, adjust this.
16192 if test -x /usr/bin/objformat; then
16193 objformat=`/usr/bin/objformat`
16196 freebsd[123]*) objformat=aout ;;
16197 *) objformat=elf ;;
16200 version_type=freebsd-$objformat
16201 case $version_type in
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16212 shlibpath_var=LD_LIBRARY_PATH
16215 shlibpath_overrides_runpath=yes
16217 freebsd3.[01]* | freebsdelf3.[01]*)
16218 shlibpath_overrides_runpath=yes
16219 hardcode_into_libs=yes
16221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16223 shlibpath_overrides_runpath=no
16224 hardcode_into_libs=yes
16226 freebsd*) # from 4.6 on
16227 shlibpath_overrides_runpath=yes
16228 hardcode_into_libs=yes
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 hardcode_into_libs=yes
16243 hpux9* | hpux10* | hpux11*)
16244 # Give a soname corresponding to the major version so that dld.sl refuses to
16245 # link against other versions.
16252 hardcode_into_libs=yes
16253 dynamic_linker="$host_os dld.so"
16254 shlibpath_var=LD_LIBRARY_PATH
16255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 if test "X$HPUX_IA64_MODE" = X32; then
16259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16267 hardcode_into_libs=yes
16268 dynamic_linker="$host_os dld.sl"
16269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272 soname_spec='${libname}${release}${shared_ext}$major'
16273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16278 dynamic_linker="$host_os dld.sl"
16279 shlibpath_var=SHLIB_PATH
16280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16286 postinstall_cmds='chmod 555 $lib'
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 hardcode_into_libs=yes
16301 irix5* | irix6* | nonstopux*)
16303 nonstopux*) version_type=nonstopux ;;
16305 if test "$lt_cv_prog_gnu_ld" = yes; then
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16316 irix5* | nonstopux*)
16317 libsuff= shlibsuff=
16320 case $LD in # libtool.m4 will add one of these switches to LD
16321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16322 libsuff= shlibsuff= libmagic=32-bit;;
16323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16324 libsuff=32 shlibsuff=N32 libmagic=N32;;
16325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16327 *) libsuff= shlibsuff= libmagic=never-match;;
16331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16332 shlibpath_overrides_runpath=no
16333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16335 hardcode_into_libs=yes
16338 # No shared lib support for Linux oldld, aout, or coff.
16339 linux*oldld* | linux*aout* | linux*coff*)
16343 # This must be Linux ELF.
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 soname_spec='${libname}${release}${shared_ext}$major'
16350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16351 shlibpath_var=LD_LIBRARY_PATH
16352 shlibpath_overrides_runpath=no
16353 # This implies no fast_install, which is unacceptable.
16354 # Some rework will be needed to allow for fast_install
16355 # before this can be enabled.
16356 hardcode_into_libs=yes
16358 # Append ld.so.conf contents to the search path
16359 if test -f /etc/ld.so.conf; then
16360 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' ' '`
16361 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16364 # We used to test for /lib/ld.so.1 and disable shared libraries on
16365 # powerpc, because MkLinux only supported shared libraries with the
16366 # GNU dynamic linker. Since this was broken with cross compilers,
16367 # most powerpc-linux boxes support dynamic linking these days and
16368 # people can always --disable-shared, the test was removed, and we
16369 # assume the GNU/Linux dynamic linker is in use.
16370 dynamic_linker='GNU/Linux ld.so'
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=no
16381 hardcode_into_libs=yes
16382 dynamic_linker='GNU ld.so'
16389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16392 dynamic_linker='NetBSD (a.out) ld.so'
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 dynamic_linker='NetBSD ld.elf_so'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=yes
16400 hardcode_into_libs=yes
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=yes
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=yes
16422 sys_lib_dlsearch_path_spec="/usr/lib"
16424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16427 *) need_version=no ;;
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16431 shlibpath_var=LD_LIBRARY_PATH
16432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16434 openbsd2.[89] | openbsd2.[89].*)
16435 shlibpath_overrides_runpath=no
16438 shlibpath_overrides_runpath=yes
16442 shlibpath_overrides_runpath=yes
16447 libname_spec='$name'
16450 library_names_spec='$libname${shared_ext} $libname.a'
16451 dynamic_linker='OS/2 ld.exe'
16452 shlibpath_var=LIBPATH
16455 osf3* | osf4* | osf5*)
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 shlibpath_var=LD_LIBRARY_PATH
16462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 shlibpath_overrides_runpath=yes
16474 hardcode_into_libs=yes
16475 # ldd complains unless libraries are executable
16476 postinstall_cmds='chmod +x $lib'
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=yes
16485 if test "$with_gnu_ld" = yes; then
16493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16494 soname_spec='${libname}${release}${shared_ext}$major'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 case $host_vendor in
16498 shlibpath_overrides_runpath=no
16500 export_dynamic_flag_spec='${wl}-Blargedynsym'
16501 runpath_var=LD_RUN_PATH
16509 shlibpath_overrides_runpath=no
16510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16516 if test -d /usr/nec ;then
16518 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16519 soname_spec='$libname${shared_ext}.$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16525 version_type=freebsd-elf
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 hardcode_into_libs=yes
16532 if test "$with_gnu_ld" = yes; then
16533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16534 shlibpath_overrides_runpath=no
16536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16537 shlibpath_overrides_runpath=yes
16540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16544 sys_lib_dlsearch_path_spec='/usr/lib'
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16558 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16559 echo "${ECHO_T}$dynamic_linker" >&6; }
16560 test "$dynamic_linker" = no && can_build_shared=no
16562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16563 if test "$GCC" = yes; then
16564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16567 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16568 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16570 if test -n "$hardcode_libdir_flag_spec" || \
16571 test -n "$runpath_var" || \
16572 test "X$hardcode_automatic" = "Xyes" ; then
16574 # We can hardcode non-existant directories.
16575 if test "$hardcode_direct" != no &&
16576 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16577 # have to relink, otherwise we might link with an installed library
16578 # when we should be linking with a yet-to-be-installed one
16579 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16580 test "$hardcode_minus_L" != no; then
16581 # Linking always hardcodes the temporary library directory.
16582 hardcode_action=relink
16584 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16585 hardcode_action=immediate
16588 # We cannot hardcode anything, or else we can only hardcode existing
16590 hardcode_action=unsupported
16592 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16593 echo "${ECHO_T}$hardcode_action" >&6; }
16595 if test "$hardcode_action" = relink; then
16596 # Fast installation is not supported
16597 enable_fast_install=no
16598 elif test "$shlibpath_overrides_runpath" = yes ||
16599 test "$enable_shared" = no; then
16600 # Fast installation is not necessary
16601 enable_fast_install=needless
16606 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16607 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16608 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16609 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16610 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16611 { echo "$as_me:$LINENO: result: yes" >&5
16612 echo "${ECHO_T}yes" >&6; }
16614 # FIXME - insert some real tests, host_os isn't really good enough
16617 if test -n "$STRIP" ; then
16618 striplib="$STRIP -x"
16619 { echo "$as_me:$LINENO: result: yes" >&5
16620 echo "${ECHO_T}yes" >&6; }
16622 { echo "$as_me:$LINENO: result: no" >&5
16623 echo "${ECHO_T}no" >&6; }
16627 { echo "$as_me:$LINENO: result: no" >&5
16628 echo "${ECHO_T}no" >&6; }
16633 if test "x$enable_dlopen" != xyes; then
16634 enable_dlopen=unknown
16635 enable_dlopen_self=unknown
16636 enable_dlopen_self_static=unknown
16643 lt_cv_dlopen="load_add_on"
16645 lt_cv_dlopen_self=yes
16649 lt_cv_dlopen="LoadLibrary"
16654 lt_cv_dlopen="dlopen"
16659 # if libdl is installed we need to link against it
16660 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16661 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16662 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 ac_check_lib_save_LIBS=$LIBS
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16674 /* Override any GCC internal prototype to avoid an error.
16675 Use char because int might match the return type of a GCC
16676 builtin and then its argument prototype would still apply. */
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (ac_try="$ac_link"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_link") 2>conftest.er1
16698 grep -v '^ *+' conftest.er1 >conftest.err
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest$ac_exeext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_cv_lib_dl_dlopen=yes
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ac_cv_lib_dl_dlopen=no
16731 rm -f core conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16737 if test $ac_cv_lib_dl_dlopen = yes; then
16738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16741 lt_cv_dlopen="dyld"
16743 lt_cv_dlopen_self=yes
16750 { echo "$as_me:$LINENO: checking for shl_load" >&5
16751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16752 if test "${ac_cv_func_shl_load+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16763 #define shl_load innocuous_shl_load
16765 /* System header to define __stub macros and hopefully few prototypes,
16766 which can conflict with char shl_load (); below.
16767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768 <limits.h> exists even on freestanding compilers. */
16771 # include <limits.h>
16773 # include <assert.h>
16778 /* Override any GCC internal prototype to avoid an error.
16779 Use char because int might match the return type of a GCC
16780 builtin and then its argument prototype would still apply. */
16785 /* The GNU C library defines this for functions which it implements
16786 to always fail with ENOSYS. Some functions are actually named
16787 something starting with __ and the normal name is an alias. */
16788 #if defined __stub_shl_load || defined __stub___shl_load
16795 return shl_load ();
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (ac_try="$ac_link"
16802 case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
16809 grep -v '^ *+' conftest.er1 >conftest.err
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_func_shl_load=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_func_shl_load=no
16842 rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16845 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16847 if test $ac_cv_func_shl_load = yes; then
16848 lt_cv_dlopen="shl_load"
16850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 ac_check_lib_save_LIBS=$LIBS
16857 cat >conftest.$ac_ext <<_ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16864 /* Override any GCC internal prototype to avoid an error.
16865 Use char because int might match the return type of a GCC
16866 builtin and then its argument prototype would still apply. */
16874 return shl_load ();
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest$ac_exeext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_cv_lib_dld_shl_load=yes
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_cv_lib_dld_shl_load=no
16921 rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16923 LIBS=$ac_check_lib_save_LIBS
16925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16927 if test $ac_cv_lib_dld_shl_load = yes; then
16928 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16930 { echo "$as_me:$LINENO: checking for dlopen" >&5
16931 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16932 if test "${ac_cv_func_dlopen+set}" = set; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16943 #define dlopen innocuous_dlopen
16945 /* System header to define __stub macros and hopefully few prototypes,
16946 which can conflict with char dlopen (); below.
16947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948 <limits.h> exists even on freestanding compilers. */
16951 # include <limits.h>
16953 # include <assert.h>
16958 /* Override any GCC internal prototype to avoid an error.
16959 Use char because int might match the return type of a GCC
16960 builtin and then its argument prototype would still apply. */
16965 /* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
16968 #if defined __stub_dlopen || defined __stub___dlopen
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_link") 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_cv_func_dlopen=yes
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_cv_func_dlopen=no
17022 rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17025 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17026 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17027 if test $ac_cv_func_dlopen = yes; then
17028 lt_cv_dlopen="dlopen"
17030 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17031 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17032 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 ac_check_lib_save_LIBS=$LIBS
17037 cat >conftest.$ac_ext <<_ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17044 /* Override any GCC internal prototype to avoid an error.
17045 Use char because int might match the return type of a GCC
17046 builtin and then its argument prototype would still apply. */
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (ac_try="$ac_link"
17061 case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_link") 2>conftest.er1
17068 grep -v '^ *+' conftest.er1 >conftest.err
17070 cat conftest.err >&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17074 { (case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest$ac_exeext'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 ac_cv_lib_dl_dlopen=yes
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 ac_cv_lib_dl_dlopen=no
17101 rm -f core conftest.err conftest.$ac_objext \
17102 conftest$ac_exeext conftest.$ac_ext
17103 LIBS=$ac_check_lib_save_LIBS
17105 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17106 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17107 if test $ac_cv_lib_dl_dlopen = yes; then
17108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17110 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17111 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 ac_check_lib_save_LIBS=$LIBS
17116 LIBS="-lsvld $LIBS"
17117 cat >conftest.$ac_ext <<_ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17124 /* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (ac_try="$ac_link"
17141 case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_link") 2>conftest.er1
17148 grep -v '^ *+' conftest.er1 >conftest.err
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest$ac_exeext'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_cv_lib_svld_dlopen=yes
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 ac_cv_lib_svld_dlopen=no
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17185 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17186 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17187 if test $ac_cv_lib_svld_dlopen = yes; then
17188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17190 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17191 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17192 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 ac_check_lib_save_LIBS=$LIBS
17197 cat >conftest.$ac_ext <<_ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17214 return dld_link ();
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_link") 2>conftest.er1
17228 grep -v '^ *+' conftest.er1 >conftest.err
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
17233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest$ac_exeext'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_lib_dld_dld_link=yes
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_cv_lib_dld_dld_link=no
17261 rm -f core conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17265 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17266 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17267 if test $ac_cv_lib_dld_dld_link = yes; then
17268 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17289 if test "x$lt_cv_dlopen" != xno; then
17295 case $lt_cv_dlopen in
17297 save_CPPFLAGS="$CPPFLAGS"
17298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17300 save_LDFLAGS="$LDFLAGS"
17301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17304 LIBS="$lt_cv_dlopen_libs $LIBS"
17306 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17307 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17308 if test "${lt_cv_dlopen_self+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 if test "$cross_compiling" = yes; then :
17312 lt_cv_dlopen_self=cross
17314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17315 lt_status=$lt_dlunknown
17316 cat > conftest.$ac_ext <<EOF
17317 #line 17317 "configure"
17318 #include "confdefs.h"
17327 # define LT_DLGLOBAL RTLD_GLOBAL
17330 # define LT_DLGLOBAL DL_GLOBAL
17332 # define LT_DLGLOBAL 0
17336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17337 find out it does not work in some platform. */
17338 #ifndef LT_DLLAZY_OR_NOW
17340 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17343 # define LT_DLLAZY_OR_NOW DL_LAZY
17346 # define LT_DLLAZY_OR_NOW RTLD_NOW
17349 # define LT_DLLAZY_OR_NOW DL_NOW
17351 # define LT_DLLAZY_OR_NOW 0
17359 extern "C" void exit (int);
17362 void fnord() { int i=42;}
17365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17366 int status = $lt_dlunknown;
17370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17372 /* dlclose (self); */
17380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381 (eval $ac_link) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17385 (./conftest; exit; ) >&5 2>/dev/null
17387 case x$lt_status in
17388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17390 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17393 # compilation failed
17394 lt_cv_dlopen_self=no
17401 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17402 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17404 if test "x$lt_cv_dlopen_self" = xyes; then
17405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17406 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17407 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17408 if test "${lt_cv_dlopen_self_static+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 if test "$cross_compiling" = yes; then :
17412 lt_cv_dlopen_self_static=cross
17414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17415 lt_status=$lt_dlunknown
17416 cat > conftest.$ac_ext <<EOF
17417 #line 17417 "configure"
17418 #include "confdefs.h"
17427 # define LT_DLGLOBAL RTLD_GLOBAL
17430 # define LT_DLGLOBAL DL_GLOBAL
17432 # define LT_DLGLOBAL 0
17436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17437 find out it does not work in some platform. */
17438 #ifndef LT_DLLAZY_OR_NOW
17440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17443 # define LT_DLLAZY_OR_NOW DL_LAZY
17446 # define LT_DLLAZY_OR_NOW RTLD_NOW
17449 # define LT_DLLAZY_OR_NOW DL_NOW
17451 # define LT_DLLAZY_OR_NOW 0
17459 extern "C" void exit (int);
17462 void fnord() { int i=42;}
17465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17466 int status = $lt_dlunknown;
17470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17471 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17472 /* dlclose (self); */
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17485 (./conftest; exit; ) >&5 2>/dev/null
17487 case x$lt_status in
17488 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17489 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17490 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17493 # compilation failed
17494 lt_cv_dlopen_self_static=no
17501 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17502 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17505 CPPFLAGS="$save_CPPFLAGS"
17506 LDFLAGS="$save_LDFLAGS"
17511 case $lt_cv_dlopen_self in
17512 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17513 *) enable_dlopen_self=unknown ;;
17516 case $lt_cv_dlopen_self_static in
17517 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17518 *) enable_dlopen_self_static=unknown ;;
17523 # Report which library types will actually be built
17524 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17525 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17526 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17527 echo "${ECHO_T}$can_build_shared" >&6; }
17529 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17530 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17531 test "$can_build_shared" = "no" && enable_shared=no
17533 # On AIX, shared libraries and static libraries use the same namespace, and
17534 # are all built from PIC.
17537 test "$enable_shared" = yes && enable_static=no
17538 if test -n "$RANLIB"; then
17539 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17540 postinstall_cmds='$RANLIB $lib'
17545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17546 test "$enable_shared" = yes && enable_static=no
17550 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17551 echo "${ECHO_T}$enable_shared" >&6; }
17553 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17555 # Make sure either enable_shared or enable_static is yes.
17556 test "$enable_shared" = yes || enable_static=yes
17557 { echo "$as_me:$LINENO: result: $enable_static" >&5
17558 echo "${ECHO_T}$enable_static" >&6; }
17560 # The else clause should only fire when bootstrapping the
17561 # libtool distribution, otherwise you forgot to ship ltmain.sh
17562 # with your package, and you will get complaints that there are
17563 # no rules to generate ltmain.sh.
17564 if test -f "$ltmain"; then
17565 # See if we are running on zsh, and set the options which allow our commands through
17566 # without removal of \ escapes.
17567 if test -n "${ZSH_VERSION+set}" ; then
17568 setopt NO_GLOB_SUBST
17570 # Now quote all the things that may contain metacharacters while being
17571 # careful not to overquote the AC_SUBSTed values. We take copies of the
17572 # variables and quote the copies for generation of the libtool script.
17573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17577 deplibs_check_method reload_flag reload_cmds need_locks \
17578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17579 lt_cv_sys_global_symbol_to_c_name_address \
17580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17581 old_postinstall_cmds old_postuninstall_cmds \
17585 lt_prog_compiler_wl \
17586 lt_prog_compiler_pic \
17587 lt_prog_compiler_static \
17588 lt_prog_compiler_no_builtin_flag \
17589 export_dynamic_flag_spec \
17590 thread_safe_flag_spec \
17591 whole_archive_flag_spec \
17592 enable_shared_with_static_runtimes \
17594 old_archive_from_new_cmds \
17599 compiler_lib_search_path \
17601 archive_expsym_cmds \
17603 postuninstall_cmds \
17604 old_archive_from_expsyms_cmds \
17605 allow_undefined_flag \
17606 no_undefined_flag \
17607 export_symbols_cmds \
17608 hardcode_libdir_flag_spec \
17609 hardcode_libdir_flag_spec_ld \
17610 hardcode_libdir_separator \
17611 hardcode_automatic \
17613 module_expsym_cmds \
17614 lt_cv_prog_compiler_c_o \
17616 include_expsyms; do
17619 old_archive_cmds | \
17620 old_archive_from_new_cmds | \
17622 archive_expsym_cmds | \
17624 module_expsym_cmds | \
17625 old_archive_from_expsyms_cmds | \
17626 export_symbols_cmds | \
17627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17628 postinstall_cmds | postuninstall_cmds | \
17629 old_postinstall_cmds | old_postuninstall_cmds | \
17630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17631 # Double-quote double-evaled strings.
17632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17641 *'\$0 --fallback-echo"')
17642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17646 cfgfile="${ofile}T"
17647 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17649 { echo "$as_me:$LINENO: creating $ofile" >&5
17650 echo "$as_me: creating $ofile" >&6;}
17652 cat <<__EOF__ >> "$cfgfile"
17655 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17656 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17657 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17659 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17660 # Free Software Foundation, Inc.
17662 # This file is part of GNU Libtool:
17663 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17665 # This program is free software; you can redistribute it and/or modify
17666 # it under the terms of the GNU General Public License as published by
17667 # the Free Software Foundation; either version 2 of the License, or
17668 # (at your option) any later version.
17670 # This program is distributed in the hope that it will be useful, but
17671 # WITHOUT ANY WARRANTY; without even the implied warranty of
17672 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17673 # General Public License for more details.
17675 # You should have received a copy of the GNU General Public License
17676 # along with this program; if not, write to the Free Software
17677 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17679 # As a special exception to the GNU General Public License, if you
17680 # distribute this file as part of a program that contains a
17681 # configuration script generated by Autoconf, you may include it under
17682 # the same distribution terms that you use for the rest of that program.
17684 # A sed program that does not truncate output.
17687 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17688 Xsed="$SED -e 1s/^X//"
17690 # The HP-UX ksh and POSIX shell print the target directory to stdout
17691 # if CDPATH is set.
17692 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17694 # The names of the tagged configurations supported by this script.
17697 # ### BEGIN LIBTOOL CONFIG
17699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17701 # Shell to use when invoking shell scripts.
17704 # Whether or not to build shared libraries.
17705 build_libtool_libs=$enable_shared
17707 # Whether or not to build static libraries.
17708 build_old_libs=$enable_static
17710 # Whether or not to add -lc for building shared libraries.
17711 build_libtool_need_lc=$archive_cmds_need_lc
17713 # Whether or not to disallow shared libs when runtime libs are static
17714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17716 # Whether or not to optimize for fast installation.
17717 fast_install=$enable_fast_install
17720 host_alias=$host_alias
17724 # The build system.
17725 build_alias=$build_alias
17729 # An echo program that does not interpret backslashes.
17734 AR_FLAGS=$lt_AR_FLAGS
17739 # LTCC compiler flags.
17740 LTCFLAGS=$lt_LTCFLAGS
17742 # A language-specific compiler.
17745 # Is the compiler the GNU C compiler?
17751 # The linker used to build libraries.
17754 # Whether we need hard or soft links.
17757 # A BSD-compatible nm program.
17760 # A symbol stripping program
17763 # Used to examine libraries when file_magic_cmd begins "file"
17764 MAGIC_CMD=$MAGIC_CMD
17766 # Used on cygwin: DLL creation program.
17769 # Used on cygwin: object dumper.
17772 # Used on cygwin: assembler.
17775 # The name of the directory that contains temporary libtool files.
17778 # How to create reloadable object files.
17779 reload_flag=$lt_reload_flag
17780 reload_cmds=$lt_reload_cmds
17782 # How to pass a linker flag through the compiler.
17783 wl=$lt_lt_prog_compiler_wl
17785 # Object file suffix (normally "o").
17786 objext="$ac_objext"
17788 # Old archive suffix (normally "a").
17791 # Shared library suffix (normally ".so").
17792 shrext_cmds='$shrext_cmds'
17794 # Executable file suffix (normally "").
17797 # Additional compiler flags for building library objects.
17798 pic_flag=$lt_lt_prog_compiler_pic
17801 # What is the maximum length of a command?
17802 max_cmd_len=$lt_cv_sys_max_cmd_len
17804 # Does compiler simultaneously support -c and -o options?
17805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17807 # Must we lock files when doing compilation?
17808 need_locks=$lt_need_locks
17810 # Do we need the lib prefix for modules?
17811 need_lib_prefix=$need_lib_prefix
17813 # Do we need a version for libraries?
17814 need_version=$need_version
17816 # Whether dlopen is supported.
17817 dlopen_support=$enable_dlopen
17819 # Whether dlopen of programs is supported.
17820 dlopen_self=$enable_dlopen_self
17822 # Whether dlopen of statically linked programs is supported.
17823 dlopen_self_static=$enable_dlopen_self_static
17825 # Compiler flag to prevent dynamic linking.
17826 link_static_flag=$lt_lt_prog_compiler_static
17828 # Compiler flag to turn off builtin functions.
17829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17831 # Compiler flag to allow reflexive dlopens.
17832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17834 # Compiler flag to generate shared objects directly from archives.
17835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17837 # Compiler flag to generate thread-safe objects.
17838 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17840 # Library versioning type.
17841 version_type=$version_type
17843 # Format of library name prefix.
17844 libname_spec=$lt_libname_spec
17846 # List of archive names. First name is the real one, the rest are links.
17847 # The last name is the one that the linker finds with -lNAME.
17848 library_names_spec=$lt_library_names_spec
17850 # The coded name of the library, if different from the real name.
17851 soname_spec=$lt_soname_spec
17853 # Commands used to build and install an old-style archive.
17855 old_archive_cmds=$lt_old_archive_cmds
17856 old_postinstall_cmds=$lt_old_postinstall_cmds
17857 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17859 # Create an old-style archive from a shared archive.
17860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17862 # Create a temporary old-style archive to link instead of a shared archive.
17863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17865 # Commands used to build and install a shared archive.
17866 archive_cmds=$lt_archive_cmds
17867 archive_expsym_cmds=$lt_archive_expsym_cmds
17868 postinstall_cmds=$lt_postinstall_cmds
17869 postuninstall_cmds=$lt_postuninstall_cmds
17871 # Commands used to build a loadable module (assumed same as above if empty)
17872 module_cmds=$lt_module_cmds
17873 module_expsym_cmds=$lt_module_expsym_cmds
17875 # Commands to strip libraries.
17876 old_striplib=$lt_old_striplib
17877 striplib=$lt_striplib
17879 # Dependencies to place before the objects being linked to create a
17881 predep_objects=$lt_predep_objects
17883 # Dependencies to place after the objects being linked to create a
17885 postdep_objects=$lt_postdep_objects
17887 # Dependencies to place before the objects being linked to create a
17889 predeps=$lt_predeps
17891 # Dependencies to place after the objects being linked to create a
17893 postdeps=$lt_postdeps
17895 # The library search path used internally by the compiler when linking
17896 # a shared library.
17897 compiler_lib_search_path=$lt_compiler_lib_search_path
17899 # Method to check whether dependent libraries are shared objects.
17900 deplibs_check_method=$lt_deplibs_check_method
17902 # Command to use when deplibs_check_method == file_magic.
17903 file_magic_cmd=$lt_file_magic_cmd
17905 # Flag that allows shared libraries with undefined symbols to be built.
17906 allow_undefined_flag=$lt_allow_undefined_flag
17908 # Flag that forces no undefined symbols.
17909 no_undefined_flag=$lt_no_undefined_flag
17911 # Commands used to finish a libtool library installation in a directory.
17912 finish_cmds=$lt_finish_cmds
17914 # Same as above, but a single script fragment to be evaled but not shown.
17915 finish_eval=$lt_finish_eval
17917 # Take the output of nm and produce a listing of raw symbols and C names.
17918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17920 # Transform the output of nm in a proper C declaration
17921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17923 # Transform the output of nm in a C name address pair
17924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17926 # This is the shared library runtime path variable.
17927 runpath_var=$runpath_var
17929 # This is the shared library path variable.
17930 shlibpath_var=$shlibpath_var
17932 # Is shlibpath searched before the hard-coded library search path?
17933 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17935 # How to hardcode a shared library path into an executable.
17936 hardcode_action=$hardcode_action
17938 # Whether we should hardcode library paths into libraries.
17939 hardcode_into_libs=$hardcode_into_libs
17941 # Flag to hardcode \$libdir into a binary during linking.
17942 # This must work even if \$libdir does not exist.
17943 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17945 # If ld is used when linking, flag to hardcode \$libdir into
17946 # a binary during linking. This must work even if \$libdir does
17948 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17950 # Whether we need a single -rpath flag with a separated argument.
17951 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17953 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17954 # resulting binary.
17955 hardcode_direct=$hardcode_direct
17957 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17958 # resulting binary.
17959 hardcode_minus_L=$hardcode_minus_L
17961 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17962 # the resulting binary.
17963 hardcode_shlibpath_var=$hardcode_shlibpath_var
17965 # Set to yes if building a shared library automatically hardcodes DIR into the library
17966 # and all subsequent libraries and executables linked against it.
17967 hardcode_automatic=$hardcode_automatic
17969 # Variables whose values should be saved in libtool wrapper scripts and
17970 # restored at relink time.
17971 variables_saved_for_relink="$variables_saved_for_relink"
17973 # Whether libtool must link a program against all its dependency libraries.
17974 link_all_deplibs=$link_all_deplibs
17976 # Compile-time system search path for libraries
17977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17979 # Run-time system search path for libraries
17980 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17982 # Fix the shell variable \$srcfile for the compiler.
17983 fix_srcfile_path="$fix_srcfile_path"
17985 # Set to yes if exported symbols are required.
17986 always_export_symbols=$always_export_symbols
17988 # The commands to list exported symbols.
17989 export_symbols_cmds=$lt_export_symbols_cmds
17991 # The commands to extract the exported symbol list from a shared archive.
17992 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17994 # Symbols that should not be listed in the preloaded symbols.
17995 exclude_expsyms=$lt_exclude_expsyms
17997 # Symbols that must always be exported.
17998 include_expsyms=$lt_include_expsyms
18000 # ### END LIBTOOL CONFIG
18007 cat <<\EOF >> "$cfgfile"
18009 # AIX sometimes has problems with the GCC collect2 program. For some
18010 # reason, if we set the COLLECT_NAMES environment variable, the problems
18011 # vanish in a puff of smoke.
18012 if test "X${COLLECT_NAMES+set}" != Xset; then
18014 export COLLECT_NAMES
18020 # We use sed instead of cat because bash on DJGPP gets confused if
18021 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18022 # text mode, it properly converts lines to CR/LF. This bash problem
18023 # is reportedly fixed, but why not run on old versions too?
18024 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18026 mv -f "$cfgfile" "$ofile" || \
18027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18031 # If there is no Makefile yet, we rely on a make rule to execute
18032 # `config.status --recheck' to rerun these tests and create the
18033 # libtool script then.
18034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035 if test -f "$ltmain_in"; then
18036 test -f Makefile && make "$ltmain"
18042 ac_cpp='$CPP $CPPFLAGS'
18043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18050 # Check whether --with-tags was given.
18051 if test "${with_tags+set}" = set; then
18052 withval=$with_tags; tagnames="$withval"
18056 if test -f "$ltmain" && test -n "$tagnames"; then
18057 if test ! -f "${ofile}"; then
18058 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18059 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18062 if test -z "$LTCC"; then
18063 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18064 if test -z "$LTCC"; then
18065 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18066 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18068 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18069 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18072 if test -z "$LTCFLAGS"; then
18073 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18076 # Extract list of available tagged configurations in $ofile.
18077 # Note that this assumes the entire list is on one line.
18078 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18081 for tagname in $tagnames; do
18083 # Check whether tagname contains only valid characters
18084 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18086 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18087 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18088 { (exit 1); exit 1; }; }
18092 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18094 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18095 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18096 { (exit 1); exit 1; }; }
18099 # Update the list of available tags.
18100 if test -n "$tagname"; then
18101 echo appending configuration tag \"$tagname\" to $ofile
18105 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18106 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18107 (test "X$CXX" != "Xg++"))) ; then
18109 ac_cpp='$CXXCPP $CPPFLAGS'
18110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18117 archive_cmds_need_lc_CXX=no
18118 allow_undefined_flag_CXX=
18119 always_export_symbols_CXX=no
18120 archive_expsym_cmds_CXX=
18121 export_dynamic_flag_spec_CXX=
18122 hardcode_direct_CXX=no
18123 hardcode_libdir_flag_spec_CXX=
18124 hardcode_libdir_flag_spec_ld_CXX=
18125 hardcode_libdir_separator_CXX=
18126 hardcode_minus_L_CXX=no
18127 hardcode_shlibpath_var_CXX=unsupported
18128 hardcode_automatic_CXX=no
18130 module_expsym_cmds_CXX=
18131 link_all_deplibs_CXX=unknown
18132 old_archive_cmds_CXX=$old_archive_cmds
18133 no_undefined_flag_CXX=
18134 whole_archive_flag_spec_CXX=
18135 enable_shared_with_static_runtimes_CXX=no
18137 # Dependencies to place before and after the object being linked:
18138 predep_objects_CXX=
18139 postdep_objects_CXX=
18142 compiler_lib_search_path_CXX=
18144 # Source file extension for C++ test sources.
18147 # Object file extension for compiled C++ test sources.
18151 # Code to be used in simple compile tests
18152 lt_simple_compile_test_code="int some_variable = 0;\n"
18154 # Code to be used in simple link tests
18155 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18159 # If no C compiler was specified, use CC.
18162 # If no C compiler flags were specified, use CFLAGS.
18163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18165 # Allow CC to be a program name with arguments.
18169 # save warnings/boilerplate of simple test code
18170 ac_outfile=conftest.$ac_objext
18171 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18173 _lt_compiler_boilerplate=`cat conftest.err`
18176 ac_outfile=conftest.$ac_objext
18177 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18179 _lt_linker_boilerplate=`cat conftest.err`
18183 # Allow CC to be a program name with arguments.
18188 lt_save_with_gnu_ld=$with_gnu_ld
18189 lt_save_path_LD=$lt_cv_path_LD
18190 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18191 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18193 $as_unset lt_cv_prog_gnu_ld
18195 if test -n "${lt_cv_path_LDCXX+set}"; then
18196 lt_cv_path_LD=$lt_cv_path_LDCXX
18198 $as_unset lt_cv_path_LD
18200 test -z "${LDCXX+set}" || LD=$LDCXX
18204 for cc_temp in $compiler""; do
18206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18215 # We don't want -fno-exception wen compiling C++ code, so set the
18216 # no_builtin_flag separately
18217 if test "$GXX" = yes; then
18218 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18220 lt_prog_compiler_no_builtin_flag_CXX=
18223 if test "$GXX" = yes; then
18224 # Set up default GNU C++ configuration
18227 # Check whether --with-gnu-ld was given.
18228 if test "${with_gnu_ld+set}" = set; then
18229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18235 if test "$GCC" = yes; then
18236 # Check if gcc -print-prog-name=ld gives a path.
18237 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18238 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18241 # gcc leaves a trailing carriage return which upsets mingw
18242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18247 # Accept absolute paths.
18249 re_direlt='/[^/][^/]*/\.\./'
18250 # Canonicalize the pathname of ld
18251 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18252 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18253 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18255 test -z "$LD" && LD="$ac_prog"
18258 # If it fails, then pretend we aren't using GCC.
18262 # If it is relative, then search for the first ld in PATH.
18263 with_gnu_ld=unknown
18266 elif test "$with_gnu_ld" = yes; then
18267 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18268 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18270 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18271 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18273 if test "${lt_cv_path_LD+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 if test -z "$LD"; then
18277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18278 for ac_dir in $PATH; do
18280 test -z "$ac_dir" && ac_dir=.
18281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18282 lt_cv_path_LD="$ac_dir/$ac_prog"
18283 # Check to see if the program is GNU ld. I'd rather use --version,
18284 # but apparently some variants of GNU ld only accept -v.
18285 # Break only if it was the GNU/non-GNU ld that we prefer.
18286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18287 *GNU* | *'with BFD'*)
18288 test "$with_gnu_ld" != no && break
18291 test "$with_gnu_ld" != yes && break
18298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18302 LD="$lt_cv_path_LD"
18303 if test -n "$LD"; then
18304 { echo "$as_me:$LINENO: result: $LD" >&5
18305 echo "${ECHO_T}$LD" >&6; }
18307 { echo "$as_me:$LINENO: result: no" >&5
18308 echo "${ECHO_T}no" >&6; }
18310 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18311 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18312 { (exit 1); exit 1; }; }
18313 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18314 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18315 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18319 case `$LD -v 2>&1 </dev/null` in
18320 *GNU* | *'with BFD'*)
18321 lt_cv_prog_gnu_ld=yes
18324 lt_cv_prog_gnu_ld=no
18328 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18329 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18330 with_gnu_ld=$lt_cv_prog_gnu_ld
18334 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18335 # archiving commands below assume that GNU ld is being used.
18336 if test "$with_gnu_ld" = yes; then
18337 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18338 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'
18340 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18343 # If archive_cmds runs LD, not CC, wlarc should be empty
18344 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18345 # investigate it a little bit more. (MM)
18348 # ancient GNU ld didn't support --whole-archive et. al.
18349 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18350 grep 'no-whole-archive' > /dev/null; then
18351 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18353 whole_archive_flag_spec_CXX=
18359 # A generic and very simple default shared library creation
18360 # command for GNU C++ for the case where it uses the native
18361 # linker, instead of GNU ld. If possible, this setting should
18362 # overridden to take advantage of the native linker features on
18363 # the platform it is being used on.
18364 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18367 # Commands to make compiler produce verbose output that lists
18368 # what "hidden" libraries, object files and flags are used when
18369 # linking a shared library.
18370 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18378 # PORTME: fill in a description of your system's C++ link characteristics
18379 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18380 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18384 # FIXME: insert proper C++ library support
18388 if test "$host_cpu" = ia64; then
18389 # On IA64, the linker does run time linking by default, so we don't
18390 # have to do anything special.
18391 aix_use_runtimelinking=no
18392 exp_sym_flag='-Bexport'
18395 aix_use_runtimelinking=no
18397 # Test if we are trying to use run time linking or normal
18398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18399 # need to do runtime linking.
18400 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18401 for ld_flag in $LDFLAGS; do
18404 aix_use_runtimelinking=yes
18412 exp_sym_flag='-bexport'
18413 no_entry_flag='-bnoentry'
18416 # When large executables or shared objects are built, AIX ld can
18417 # have problems creating the table of contents. If linking a library
18418 # or program results in "error TOC overflow" add -mminimal-toc to
18419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18422 archive_cmds_CXX=''
18423 hardcode_direct_CXX=yes
18424 hardcode_libdir_separator_CXX=':'
18425 link_all_deplibs_CXX=yes
18427 if test "$GXX" = yes; then
18428 case $host_os in aix4.[012]|aix4.[012].*)
18429 # We only want to do this on AIX 4.2 and lower, the check
18430 # below for broken collect2 doesn't work under 4.3+
18431 collect2name=`${CC} -print-prog-name=collect2`
18432 if test -f "$collect2name" && \
18433 strings "$collect2name" | grep resolve_lib_name >/dev/null
18435 # We have reworked collect2
18436 hardcode_direct_CXX=yes
18438 # We have old collect2
18439 hardcode_direct_CXX=unsupported
18440 # It fails to find uninstalled libraries when the uninstalled
18441 # path is not listed in the libpath. Setting hardcode_minus_L
18442 # to unsupported forces relinking
18443 hardcode_minus_L_CXX=yes
18444 hardcode_libdir_flag_spec_CXX='-L$libdir'
18445 hardcode_libdir_separator_CXX=
18449 shared_flag='-shared'
18450 if test "$aix_use_runtimelinking" = yes; then
18451 shared_flag="$shared_flag "'${wl}-G'
18455 if test "$host_cpu" = ia64; then
18456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18457 # chokes on -Wl,-G. The following line is correct:
18460 if test "$aix_use_runtimelinking" = yes; then
18461 shared_flag='${wl}-G'
18463 shared_flag='${wl}-bM:SRE'
18468 # It seems that -bexpall does not export symbols beginning with
18469 # underscore (_), so it is better to generate a list of symbols to export.
18470 always_export_symbols_CXX=yes
18471 if test "$aix_use_runtimelinking" = yes; then
18472 # Warning - without using the other runtime loading flags (-brtl),
18473 # -berok will link without error, but may produce a broken library.
18474 allow_undefined_flag_CXX='-berok'
18475 # Determine the default libpath from the value encoded in an empty executable.
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_link") 2>conftest.er1
18500 grep -v '^ *+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } &&
18505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18506 { (case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_try") 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try='test -s conftest$ac_exeext'
18516 { (case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_try") 2>&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18528 # Check for a 64-bit object if we didn't find anything.
18529 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; }
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18538 rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18540 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18542 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18544 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"
18546 if test "$host_cpu" = ia64; then
18547 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18548 allow_undefined_flag_CXX="-z nodefs"
18549 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"
18551 # Determine the default libpath from the value encoded in an empty executable.
18552 cat >conftest.$ac_ext <<_ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_link") 2>conftest.er1
18576 grep -v '^ *+' conftest.er1 >conftest.err
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest$ac_exeext'
18592 { (case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_try") 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18604 # Check for a 64-bit object if we didn't find anything.
18605 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; }
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18614 rm -f core conftest.err conftest.$ac_objext \
18615 conftest$ac_exeext conftest.$ac_ext
18616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18618 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18619 # Warning - without using the other run time loading flags,
18620 # -berok will link without error, but may produce a broken library.
18621 no_undefined_flag_CXX=' ${wl}-bernotok'
18622 allow_undefined_flag_CXX=' ${wl}-berok'
18623 # Exported symbols can be pulled into shared objects from archives
18624 whole_archive_flag_spec_CXX='$convenience'
18625 archive_cmds_need_lc_CXX=yes
18626 # This is similar to how AIX traditionally builds its shared libraries.
18627 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'
18633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18634 allow_undefined_flag_CXX=unsupported
18635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18636 # support --undefined. This deserves some investigation. FIXME
18637 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18644 case $cc_basename in
18646 # FIXME: insert proper C++ library support
18652 cygwin* | mingw* | pw32*)
18653 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18654 # as there is no search path for DLLs.
18655 hardcode_libdir_flag_spec_CXX='-L$libdir'
18656 allow_undefined_flag_CXX=unsupported
18657 always_export_symbols_CXX=no
18658 enable_shared_with_static_runtimes_CXX=yes
18660 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18661 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'
18662 # If the export-symbols file already is a .def file (1st line
18663 # is EXPORTS), use it as is; otherwise, prepend...
18664 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18665 cp $export_symbols $output_objdir/$soname.def;
18667 echo EXPORTS > $output_objdir/$soname.def;
18668 cat $export_symbols >> $output_objdir/$soname.def;
18670 $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'
18675 darwin* | rhapsody*)
18677 rhapsody* | darwin1.[012])
18678 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18682 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18684 case ${MACOSX_DEPLOYMENT_TARGET} in
18686 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18689 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18695 archive_cmds_need_lc_CXX=no
18696 hardcode_direct_CXX=no
18697 hardcode_automatic_CXX=yes
18698 hardcode_shlibpath_var_CXX=unsupported
18699 whole_archive_flag_spec_CXX=''
18700 link_all_deplibs_CXX=yes
18702 if test "$GXX" = yes ; then
18703 lt_int_apple_cc_single_mod=no
18704 output_verbose_link_cmd='echo'
18705 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18706 lt_int_apple_cc_single_mod=yes
18708 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18709 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18711 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'
18713 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18715 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18716 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}'
18718 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}'
18720 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}'
18722 case $cc_basename in
18724 output_verbose_link_cmd='echo'
18725 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'
18726 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18728 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}'
18729 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}'
18739 case $cc_basename in
18741 # FIXME: insert proper C++ library support
18745 # Green Hills C++ Compiler
18746 # FIXME: insert proper C++ library support
18750 # FIXME: insert proper C++ library support
18756 # C++ shared libraries reported to be fairly broken before switch to ELF
18760 archive_cmds_need_lc_CXX=no
18762 freebsd* | kfreebsd*-gnu | dragonfly*)
18763 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18770 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18771 hardcode_libdir_separator_CXX=:
18772 export_dynamic_flag_spec_CXX='${wl}-E'
18773 hardcode_direct_CXX=yes
18774 hardcode_minus_L_CXX=yes # Not in the search PATH,
18775 # but as the default
18776 # location of the library.
18778 case $cc_basename in
18780 # FIXME: insert proper C++ library support
18784 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'
18785 # Commands to make compiler produce verbose output that lists
18786 # what "hidden" libraries, object files and flags are used when
18787 # linking a shared library.
18789 # There doesn't appear to be a way to prevent this compiler from
18790 # explicitly linking system object files so we need to strip them
18791 # from the output so that they don't get included in the library
18793 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'
18796 if test "$GXX" = yes; then
18797 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'
18799 # FIXME: insert proper C++ library support
18806 if test $with_gnu_ld = no; then
18807 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18808 hardcode_libdir_separator_CXX=:
18812 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18815 export_dynamic_flag_spec_CXX='${wl}-E'
18821 hardcode_direct_CXX=no
18822 hardcode_shlibpath_var_CXX=no
18825 hardcode_direct_CXX=yes
18826 hardcode_minus_L_CXX=yes # Not in the search PATH,
18827 # but as the default
18828 # location of the library.
18832 case $cc_basename in
18834 # FIXME: insert proper C++ library support
18840 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849 # Commands to make compiler produce verbose output that lists
18850 # what "hidden" libraries, object files and flags are used when
18851 # linking a shared library.
18853 # There doesn't appear to be a way to prevent this compiler from
18854 # explicitly linking system object files so we need to strip them
18855 # from the output so that they don't get included in the library
18857 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'
18860 if test "$GXX" = yes; then
18861 if test $with_gnu_ld = no; then
18864 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18870 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'
18875 # FIXME: insert proper C++ library support
18882 hardcode_direct_CXX=no
18883 hardcode_shlibpath_var_CXX=no
18884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18885 export_dynamic_flag_spec_CXX='${wl}-E'
18886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18887 # Instead, shared libraries are loaded at an image base (0x10000000 by
18888 # default) and relocated if they conflict, which is a slow very memory
18889 # consuming and fragmenting process. To avoid this, we pick a random,
18890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18892 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'
18893 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'
18896 case $cc_basename in
18899 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'
18901 # Archives containing C++ object files must be created using
18902 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18903 # necessary to make sure instantiated templates are included
18905 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18908 if test "$GXX" = yes; then
18909 if test "$with_gnu_ld" = no; then
18910 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'
18912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
18915 link_all_deplibs_CXX=yes
18918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18919 hardcode_libdir_separator_CXX=:
18922 case $cc_basename in
18924 # Kuck and Associates, Inc. (KAI) C++ Compiler
18926 # KCC will only create a shared library if the output file
18927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18928 # to its proper name (with version) after linking.
18929 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'
18930 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'
18931 # Commands to make compiler produce verbose output that lists
18932 # what "hidden" libraries, object files and flags are used when
18933 # linking a shared library.
18935 # There doesn't appear to be a way to prevent this compiler from
18936 # explicitly linking system object files so we need to strip them
18937 # from the output so that they don't get included in the library
18939 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'
18941 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18944 # Archives containing C++ object files must be created using
18945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18951 # version 8.0 and above of icpc choke on multiply defined symbols
18952 # if we add $predep_objects and $postdep_objects, however 7.1 and
18953 # earlier do not add the objects themselves.
18954 case `$CC -V 2>&1` in
18956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18957 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'
18959 *) # Version 8.0 or newer
18962 ia64*) tmp_idyn=' -i_dynamic';;
18964 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18965 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'
18968 archive_cmds_need_lc_CXX=no
18969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18971 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18974 # Portland Group C++ compiler
18975 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18976 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'
18978 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18980 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'
18984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18985 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'
18987 runpath_var=LD_RUN_PATH
18988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18989 hardcode_libdir_separator_CXX=:
18991 # Commands to make compiler produce verbose output that lists
18992 # what "hidden" libraries, object files and flags are used when
18993 # linking a shared library.
18995 # There doesn't appear to be a way to prevent this compiler from
18996 # explicitly linking system object files so we need to strip them
18997 # from the output so that they don't get included in the library
18999 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'
19004 # FIXME: insert proper C++ library support
19008 # FIXME: insert proper C++ library support
19012 case $cc_basename in
19014 # FIXME: insert proper C++ library support
19018 # FIXME: insert proper C++ library support
19024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19025 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19027 hardcode_libdir_flag_spec_CXX='-R$libdir'
19028 hardcode_direct_CXX=yes
19029 hardcode_shlibpath_var_CXX=no
19031 # Workaround some broken pre-1.5 toolchains
19032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19035 # C++ shared libraries are fairly broken
19039 hardcode_direct_CXX=yes
19040 hardcode_shlibpath_var_CXX=no
19041 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19043 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19044 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19045 export_dynamic_flag_spec_CXX='${wl}-E'
19046 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19048 output_verbose_link_cmd='echo'
19051 case $cc_basename in
19053 # Kuck and Associates, Inc. (KAI) C++ Compiler
19055 # KCC will only create a shared library if the output file
19056 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19057 # to its proper name (with version) after linking.
19058 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'
19060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19061 hardcode_libdir_separator_CXX=:
19063 # Archives containing C++ object files must be created using
19064 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19065 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19069 # Rational C++ 2.4.1
19070 # FIXME: insert proper C++ library support
19074 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19075 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'
19077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19078 hardcode_libdir_separator_CXX=:
19080 # Commands to make compiler produce verbose output that lists
19081 # what "hidden" libraries, object files and flags are used when
19082 # linking a shared library.
19084 # There doesn't appear to be a way to prevent this compiler from
19085 # explicitly linking system object files so we need to strip them
19086 # from the output so that they don't get included in the library
19088 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'
19091 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19092 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19093 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'
19095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19096 hardcode_libdir_separator_CXX=:
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19104 # FIXME: insert proper C++ library support
19111 case $cc_basename in
19113 # Kuck and Associates, Inc. (KAI) C++ Compiler
19115 # KCC will only create a shared library if the output file
19116 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19117 # to its proper name (with version) after linking.
19118 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'
19120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19121 hardcode_libdir_separator_CXX=:
19123 # Archives containing C++ object files must be created using
19124 # the KAI C++ compiler.
19125 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19128 # Rational C++ 2.4.1
19129 # FIXME: insert proper C++ library support
19133 allow_undefined_flag_CXX=' -expect_unresolved \*'
19134 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'
19135 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19136 echo "-hidden">> $lib.exp~
19137 $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~
19140 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19141 hardcode_libdir_separator_CXX=:
19143 # Commands to make compiler produce verbose output that lists
19144 # what "hidden" libraries, object files and flags are used when
19145 # linking a shared library.
19147 # There doesn't appear to be a way to prevent this compiler from
19148 # explicitly linking system object files so we need to strip them
19149 # from the output so that they don't get included in the library
19151 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'
19154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19155 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19156 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'
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19159 hardcode_libdir_separator_CXX=:
19161 # Commands to make compiler produce verbose output that lists
19162 # what "hidden" libraries, object files and flags are used when
19163 # linking a shared library.
19164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19167 # FIXME: insert proper C++ library support
19174 # FIXME: insert proper C++ library support
19178 case $cc_basename in
19181 # FIXME: insert proper C++ library support
19186 # FIXME: insert proper C++ library support
19190 # FIXME: insert proper C++ library support
19196 case $cc_basename in
19198 # Sun C++ 4.2, 5.x and Centerline C++
19199 archive_cmds_need_lc_CXX=yes
19200 no_undefined_flag_CXX=' -zdefs'
19201 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19202 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19203 $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'
19205 hardcode_libdir_flag_spec_CXX='-R$libdir'
19206 hardcode_shlibpath_var_CXX=no
19208 solaris2.[0-5] | solaris2.[0-5].*) ;;
19210 # The C++ compiler is used as linker so we must use $wl
19211 # flag to pass the commands to the underlying system
19212 # linker. We must also pass each convience library through
19213 # to the system linker between allextract/defaultextract.
19214 # The C++ compiler will combine linker options so we
19215 # cannot just pass the convience library names through
19217 # Supported since Solaris 2.6 (maybe 2.5.1?)
19218 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'
19221 link_all_deplibs_CXX=yes
19223 output_verbose_link_cmd='echo'
19225 # Archives containing C++ object files must be created using
19226 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19227 # necessary to make sure instantiated templates are included
19229 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19232 # Green Hills C++ Compiler
19233 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19235 # The C++ compiler must be used to create the archive.
19236 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19239 # GNU C++ compiler with Solaris linker
19240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19241 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19242 if $CC --version | grep -v '^2\.7' > /dev/null; then
19243 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19244 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19245 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19247 # Commands to make compiler produce verbose output that lists
19248 # what "hidden" libraries, object files and flags are used when
19249 # linking a shared library.
19250 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19252 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19254 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19258 # Commands to make compiler produce verbose output that lists
19259 # what "hidden" libraries, object files and flags are used when
19260 # linking a shared library.
19261 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19264 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19270 no_undefined_flag_CXX='${wl}-z,text'
19271 archive_cmds_need_lc_CXX=no
19272 hardcode_shlibpath_var_CXX=no
19273 runpath_var='LD_RUN_PATH'
19275 case $cc_basename in
19277 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19278 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19281 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286 sysv5* | sco3.2v5* | sco5v6*)
19287 # Note: We can NOT use -z defs as we might desire, because we do not
19288 # link with -lc, and that would cause any symbols used from libc to
19289 # always be unresolved, which means just about no library would
19290 # ever link correctly. If we're not using GNU ld we use -z text
19291 # though, which does catch some bad symbols but isn't as heavy-handed
19293 # For security reasons, it is highly recommended that you always
19294 # use absolute paths for naming shared libraries, and exclude the
19295 # DT_RUNPATH tag from executables and libraries. But doing so
19296 # requires that you compile everything twice, which is a pain.
19297 # So that behaviour is only enabled if SCOABSPATH is set to a
19298 # non-empty value in the environment. Most likely only useful for
19299 # creating official distributions of packages.
19300 # This is a hack until libtool officially supports absolute path
19301 # names for shared libraries.
19302 no_undefined_flag_CXX='${wl}-z,text'
19303 allow_undefined_flag_CXX='${wl}-z,nodefs'
19304 archive_cmds_need_lc_CXX=no
19305 hardcode_shlibpath_var_CXX=no
19306 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19307 hardcode_libdir_separator_CXX=':'
19308 link_all_deplibs_CXX=yes
19309 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19310 runpath_var='LD_RUN_PATH'
19312 case $cc_basename in
19314 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19315 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19318 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 case $cc_basename in
19326 # NonStop-UX NCC 3.20
19327 # FIXME: insert proper C++ library support
19331 # FIXME: insert proper C++ library support
19337 # FIXME: insert proper C++ library support
19341 # FIXME: insert proper C++ library support
19345 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19346 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19347 test "$ld_shlibs_CXX" = no && can_build_shared=no
19353 cat > conftest.$ac_ext <<EOF
19357 Foo (void) { a = 0; }
19363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; then
19368 # Parse the compiler output and extract the necessary
19369 # objects, libraries and library flags.
19371 # Sentinel used to keep track of whether or not we are before
19372 # the conftest object file.
19373 pre_test_object_deps_done=no
19375 # The `*' in the case matches for architectures that use `case' in
19376 # $output_verbose_cmd can trigger glob expansion during the loop
19377 # eval without this substitution.
19378 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19380 for p in `eval $output_verbose_link_cmd`; do
19384 # Some compilers place space between "-{L,R}" and the path.
19385 # Remove the space.
19386 if test $p = "-L" \
19387 || test $p = "-R"; then
19394 if test "$pre_test_object_deps_done" = no; then
19397 # Internal compiler library paths should come after those
19398 # provided the user. The postdeps already come after the
19399 # user supplied libs so there is no need to process them.
19400 if test -z "$compiler_lib_search_path_CXX"; then
19401 compiler_lib_search_path_CXX="${prev}${p}"
19403 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19406 # The "-l" case would never come before the object being
19407 # linked, so don't bother handling this case.
19410 if test -z "$postdeps_CXX"; then
19411 postdeps_CXX="${prev}${p}"
19413 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19419 # This assumes that the test object file only shows up
19420 # once in the compiler output.
19421 if test "$p" = "conftest.$objext"; then
19422 pre_test_object_deps_done=yes
19426 if test "$pre_test_object_deps_done" = no; then
19427 if test -z "$predep_objects_CXX"; then
19428 predep_objects_CXX="$p"
19430 predep_objects_CXX="$predep_objects_CXX $p"
19433 if test -z "$postdep_objects_CXX"; then
19434 postdep_objects_CXX="$p"
19436 postdep_objects_CXX="$postdep_objects_CXX $p"
19441 *) ;; # Ignore the rest.
19449 echo "libtool.m4: error: problem compiling CXX test program"
19452 $rm -f confest.$objext
19454 # PORTME: override above test on systems where it is broken
19457 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19458 # hack all around it, let's just trust "g++" to DTRT.
19459 predep_objects_CXX=
19460 postdep_objects_CXX=
19465 case $cc_basename in
19467 # Adding this requires a known-good setup of shared libraries for
19468 # Sun compiler versions before 5.6, else PIC objects from an old
19469 # archive will be linked into the output, leading to subtle bugs.
19470 postdeps_CXX='-lCstd -lCrun'
19477 case " $postdeps_CXX " in
19478 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19481 lt_prog_compiler_wl_CXX=
19482 lt_prog_compiler_pic_CXX=
19483 lt_prog_compiler_static_CXX=
19485 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19486 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19488 # C++ specific cases for pic, static, wl, etc.
19489 if test "$GXX" = yes; then
19490 lt_prog_compiler_wl_CXX='-Wl,'
19491 lt_prog_compiler_static_CXX='-static'
19495 # All AIX code is PIC.
19496 if test "$host_cpu" = ia64; then
19497 # AIX 5 now supports IA64 processor
19498 lt_prog_compiler_static_CXX='-Bstatic'
19502 # FIXME: we need at least 68020 code to build shared libraries, but
19503 # adding the `-m68020' flag to GCC prevents building anything better,
19505 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19507 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19508 # PIC is the default for these OSes.
19510 mingw* | os2* | pw32*)
19511 # This hack is so that the source file can tell whether it is being
19512 # built for inclusion in a dll (and should export symbols for example).
19513 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19515 darwin* | rhapsody*)
19516 # PIC is the default on this platform
19517 # Common symbols not allowed in MH_DYLIB files
19518 lt_prog_compiler_pic_CXX='-fno-common'
19521 # DJGPP does not support shared libraries at all
19522 lt_prog_compiler_pic_CXX=
19525 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19526 # Instead, we relocate shared libraries at runtime.
19529 if test -d /usr/nec; then
19530 lt_prog_compiler_pic_CXX=-Kconform_pic
19534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19535 # not for PA HP-UX.
19540 lt_prog_compiler_pic_CXX='-fPIC'
19545 lt_prog_compiler_pic_CXX='-fPIC'
19551 # All AIX code is PIC.
19552 if test "$host_cpu" = ia64; then
19553 # AIX 5 now supports IA64 processor
19554 lt_prog_compiler_static_CXX='-Bstatic'
19556 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19560 case $cc_basename in
19562 # Green Hills C++ Compiler
19563 # _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"
19568 # PIC is the default on this platform
19569 # Common symbols not allowed in MH_DYLIB files
19570 case $cc_basename in
19572 lt_prog_compiler_pic_CXX='-qnocommon'
19573 lt_prog_compiler_wl_CXX='-Wl,'
19578 case $cc_basename in
19580 lt_prog_compiler_pic_CXX='-KPIC'
19583 # Green Hills C++ Compiler
19584 lt_prog_compiler_pic_CXX='-pic'
19590 freebsd* | kfreebsd*-gnu | dragonfly*)
19591 # FreeBSD uses GNU C++
19593 hpux9* | hpux10* | hpux11*)
19594 case $cc_basename in
19596 lt_prog_compiler_wl_CXX='-Wl,'
19597 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19598 if test "$host_cpu" != ia64; then
19599 lt_prog_compiler_pic_CXX='+Z'
19603 lt_prog_compiler_wl_CXX='-Wl,'
19604 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19610 lt_prog_compiler_pic_CXX='+Z'
19619 # This is c89, which is MS Visual C++ (no shared libs)
19620 # Anyone wants to do a port?
19622 irix5* | irix6* | nonstopux*)
19623 case $cc_basename in
19625 lt_prog_compiler_wl_CXX='-Wl,'
19626 lt_prog_compiler_static_CXX='-non_shared'
19627 # CC pic flag -KPIC is the default.
19634 case $cc_basename in
19637 lt_prog_compiler_wl_CXX='--backend -Wl,'
19638 lt_prog_compiler_pic_CXX='-fPIC'
19642 lt_prog_compiler_wl_CXX='-Wl,'
19643 lt_prog_compiler_pic_CXX='-KPIC'
19644 lt_prog_compiler_static_CXX='-static'
19647 # Portland Group C++ compiler.
19648 lt_prog_compiler_wl_CXX='-Wl,'
19649 lt_prog_compiler_pic_CXX='-fpic'
19650 lt_prog_compiler_static_CXX='-Bstatic'
19654 # Make sure the PIC flag is empty. It appears that all Alpha
19655 # Linux and Compaq Tru64 Unix objects are PIC.
19656 lt_prog_compiler_pic_CXX=
19657 lt_prog_compiler_static_CXX='-non_shared'
19668 case $cc_basename in
19670 lt_prog_compiler_pic_CXX='-W c,exportall'
19678 osf3* | osf4* | osf5*)
19679 case $cc_basename in
19681 lt_prog_compiler_wl_CXX='--backend -Wl,'
19684 # Rational C++ 2.4.1
19685 lt_prog_compiler_pic_CXX='-pic'
19688 # Digital/Compaq C++
19689 lt_prog_compiler_wl_CXX='-Wl,'
19690 # Make sure the PIC flag is empty. It appears that all Alpha
19691 # Linux and Compaq Tru64 Unix objects are PIC.
19692 lt_prog_compiler_pic_CXX=
19693 lt_prog_compiler_static_CXX='-non_shared'
19702 case $cc_basename in
19704 # Sun C++ 4.2, 5.x and Centerline C++
19705 lt_prog_compiler_pic_CXX='-KPIC'
19706 lt_prog_compiler_static_CXX='-Bstatic'
19707 lt_prog_compiler_wl_CXX='-Qoption ld '
19710 # Green Hills C++ Compiler
19711 lt_prog_compiler_pic_CXX='-PIC'
19718 case $cc_basename in
19721 lt_prog_compiler_pic_CXX='-pic'
19722 lt_prog_compiler_static_CXX='-Bstatic'
19726 lt_prog_compiler_pic_CXX='-pic'
19733 case $cc_basename in
19735 # NonStop-UX NCC 3.20
19736 lt_prog_compiler_pic_CXX='-KPIC'
19742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19743 case $cc_basename in
19745 lt_prog_compiler_wl_CXX='-Wl,'
19746 lt_prog_compiler_pic_CXX='-KPIC'
19747 lt_prog_compiler_static_CXX='-Bstatic'
19754 lt_prog_compiler_can_build_shared_CXX=no
19759 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19760 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19763 # Check to make sure the PIC flag actually works.
19765 if test -n "$lt_prog_compiler_pic_CXX"; then
19767 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19768 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19769 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 lt_prog_compiler_pic_works_CXX=no
19773 ac_outfile=conftest.$ac_objext
19774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19775 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19776 # Insert the option either (1) after the last *FLAGS variable, or
19777 # (2) before a word containing "conftest.", or (3) at the end.
19778 # Note that $ac_compile itself does not contain backslashes and begins
19779 # with a dollar sign (not a hyphen), so the echo should work correctly.
19780 # The option is referenced via a variable to avoid confusing sed.
19781 lt_compile=`echo "$ac_compile" | $SED \
19782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19784 -e 's:$: $lt_compiler_flag:'`
19785 (eval echo "\"\$as_me:19785: $lt_compile\"" >&5)
19786 (eval "$lt_compile" 2>conftest.err)
19788 cat conftest.err >&5
19789 echo "$as_me:19789: \$? = $ac_status" >&5
19790 if (exit $ac_status) && test -s "$ac_outfile"; then
19791 # The compiler can only warn and ignore the option if not recognized
19792 # So say no if there are warnings other than the usual output.
19793 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19796 lt_prog_compiler_pic_works_CXX=yes
19802 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19803 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19805 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19806 case $lt_prog_compiler_pic_CXX in
19808 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19811 lt_prog_compiler_pic_CXX=
19812 lt_prog_compiler_can_build_shared_CXX=no
19817 # For platforms which do not support PIC, -DPIC is meaningless:
19819 lt_prog_compiler_pic_CXX=
19822 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19827 # Check to make sure the static flag actually works.
19829 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19830 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19831 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19832 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 lt_prog_compiler_static_works_CXX=no
19836 save_LDFLAGS="$LDFLAGS"
19837 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19838 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19840 # The linker can only warn and ignore the option if not recognized
19841 # So say no if there are warnings
19842 if test -s conftest.err; then
19843 # Append any errors to the config.log.
19844 cat conftest.err 1>&5
19845 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19847 if diff conftest.exp conftest.er2 >/dev/null; then
19848 lt_prog_compiler_static_works_CXX=yes
19851 lt_prog_compiler_static_works_CXX=yes
19855 LDFLAGS="$save_LDFLAGS"
19858 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19859 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19861 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19864 lt_prog_compiler_static_CXX=
19868 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19869 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19870 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 lt_cv_prog_compiler_c_o_CXX=no
19874 $rm -r conftest 2>/dev/null
19878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19880 lt_compiler_flag="-o out/conftest2.$ac_objext"
19881 # Insert the option either (1) after the last *FLAGS variable, or
19882 # (2) before a word containing "conftest.", or (3) at the end.
19883 # Note that $ac_compile itself does not contain backslashes and begins
19884 # with a dollar sign (not a hyphen), so the echo should work correctly.
19885 lt_compile=`echo "$ac_compile" | $SED \
19886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19888 -e 's:$: $lt_compiler_flag:'`
19889 (eval echo "\"\$as_me:19889: $lt_compile\"" >&5)
19890 (eval "$lt_compile" 2>out/conftest.err)
19892 cat out/conftest.err >&5
19893 echo "$as_me:19893: \$? = $ac_status" >&5
19894 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19896 # The compiler can only warn and ignore the option if not recognized
19897 # So say no if there are warnings
19898 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19899 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19900 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19901 lt_cv_prog_compiler_c_o_CXX=yes
19906 # SGI C++ compiler will create directory out/ii_files/ for
19907 # template instantiation
19908 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19909 $rm out/* && rmdir out
19915 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19916 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19919 hard_links="nottested"
19920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19921 # do not overwrite the value of need_locks provided by the user
19922 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19923 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19928 ln conftest.a conftest.b 2>&5 || hard_links=no
19929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19930 { echo "$as_me:$LINENO: result: $hard_links" >&5
19931 echo "${ECHO_T}$hard_links" >&6; }
19932 if test "$hard_links" = no; then
19933 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19934 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19941 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19942 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19947 # If we're using GNU nm, then we don't want the "-C" option.
19948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19950 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'
19952 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'
19956 export_symbols_cmds_CXX="$ltdll_cmds"
19959 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'
19962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19966 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19967 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19968 test "$ld_shlibs_CXX" = no && can_build_shared=no
19971 # Do we need to explicitly link libc?
19973 case "x$archive_cmds_need_lc_CXX" in
19975 # Assume -lc should be added
19976 archive_cmds_need_lc_CXX=yes
19978 if test "$enable_shared" = yes && test "$GCC" = yes; then
19979 case $archive_cmds_CXX in
19981 # FIXME: we may have to deal with multi-command sequences.
19984 # Test whether the compiler implicitly links with -lc since on some
19985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19986 # to ld, don't add -lc before -lgcc.
19987 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19988 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } 2>conftest.err; then
19999 libobjs=conftest.$ac_objext
20001 wl=$lt_prog_compiler_wl_CXX
20002 pic_flag=$lt_prog_compiler_pic_CXX
20008 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20009 allow_undefined_flag_CXX=
20010 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20011 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }
20016 archive_cmds_need_lc_CXX=no
20018 archive_cmds_need_lc_CXX=yes
20020 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20022 cat conftest.err 1>&5
20025 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20026 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20033 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20035 library_names_spec=
20036 libname_spec='lib$name'
20040 postuninstall_cmds=
20044 shlibpath_overrides_runpath=unknown
20046 dynamic_linker="$host_os ld.so"
20047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20048 if test "$GCC" = yes; then
20049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20050 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20051 # if the path contains ";" then we assume it to be the separator
20052 # otherwise default to the standard path separator (i.e. ":") - it is
20053 # assumed that no part of a normal pathname contains ";" but that should
20054 # okay in the real world where ";" in dirpaths is itself problematic.
20055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20062 need_lib_prefix=unknown
20063 hardcode_into_libs=no
20065 # when you set need_version to no, make sure it does not cause -set_version
20066 # flags to be left without arguments
20067 need_version=unknown
20072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20073 shlibpath_var=LIBPATH
20075 # AIX 3 has no versioning support, so we append a major version to the name.
20076 soname_spec='${libname}${release}${shared_ext}$major'
20083 hardcode_into_libs=yes
20084 if test "$host_cpu" = ia64; then
20085 # AIX 5 supports IA64
20086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20087 shlibpath_var=LD_LIBRARY_PATH
20089 # With GCC up to 2.95.x, collect2 would create an import file
20090 # for dependence libraries. The import file would start with
20091 # the line `#! .'. This would cause the generated library to
20092 # depend on `.', always an invalid library. This was fixed in
20093 # development snapshots of GCC prior to 3.0.
20095 aix4 | aix4.[01] | aix4.[01].*)
20096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20101 can_build_shared=no
20105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20106 # soname into executable. Probably we can add versioning support to
20107 # collect2, so additional links can be useful in future.
20108 if test "$aix_use_runtimelinking" = yes; then
20109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20110 # instead of lib<name>.a to let people know that these are not
20111 # typical AIX shared libraries.
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20114 # We preserve .a as extension for shared libraries through AIX4.2
20115 # and later when we are not doing run time linking.
20116 library_names_spec='${libname}${release}.a $libname.a'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20119 shlibpath_var=LIBPATH
20124 library_names_spec='$libname.ixlibrary $libname.a'
20125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20126 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'
20130 library_names_spec='${libname}${shared_ext}'
20131 dynamic_linker="$host_os ld.so"
20132 shlibpath_var=LIBRARY_PATH
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20141 shlibpath_var=LD_LIBRARY_PATH
20142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20144 # the default ld.so.conf also contains /usr/contrib/lib and
20145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20146 # libtool to hard-code these into programs
20149 cygwin* | mingw* | pw32*)
20150 version_type=windows
20155 case $GCC,$host_os in
20156 yes,cygwin* | yes,mingw* | yes,pw32*)
20157 library_names_spec='$libname.dll.a'
20158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20159 postinstall_cmds='base_file=`basename \${file}`~
20160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20161 dldir=$destdir/`dirname \$dlpath`~
20162 test -d \$dldir || mkdir -p \$dldir~
20163 $install_prog $dir/$dlname \$dldir/$dlname~
20164 chmod a+x \$dldir/$dlname'
20165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20166 dlpath=$dir/\$dldll~
20168 shlibpath_overrides_runpath=yes
20172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20177 # MinGW DLLs use traditional 'lib' prefix
20178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20181 # It is most probably a Windows format PATH printed by
20182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20183 # path with ; separators, and with drive letters. We can handle the
20184 # drive letters (cygwin fileutils understands them), so leave them,
20185 # especially as we might pass files found there to a mingw objdump,
20186 # which wouldn't understand a cygwinified path. Ahh.
20187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20193 # pw32 DLLs use 'pw' prefix rather than 'lib'
20194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20203 dynamic_linker='Win32 ld.exe'
20204 # FIXME: first we should search . and the directory the executable is in
20208 darwin* | rhapsody*)
20209 dynamic_linker="$host_os dyld"
20210 version_type=darwin
20213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20214 soname_spec='${libname}${release}${major}$shared_ext'
20215 shlibpath_overrides_runpath=yes
20216 shlibpath_var=DYLD_LIBRARY_PATH
20217 shrext_cmds='.dylib'
20218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20219 if test "$GCC" = yes; then
20220 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"`
20222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 shlibpath_var=LD_LIBRARY_PATH
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 shlibpath_overrides_runpath=no
20248 hardcode_into_libs=yes
20249 dynamic_linker='GNU ld.so'
20252 freebsd* | dragonfly*)
20253 # DragonFly does not have aout. When/if they implement a new
20254 # versioning mechanism, adjust this.
20255 if test -x /usr/bin/objformat; then
20256 objformat=`/usr/bin/objformat`
20259 freebsd[123]*) objformat=aout ;;
20260 *) objformat=elf ;;
20263 version_type=freebsd-$objformat
20264 case $version_type in
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20275 shlibpath_var=LD_LIBRARY_PATH
20278 shlibpath_overrides_runpath=yes
20280 freebsd3.[01]* | freebsdelf3.[01]*)
20281 shlibpath_overrides_runpath=yes
20282 hardcode_into_libs=yes
20284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20286 shlibpath_overrides_runpath=no
20287 hardcode_into_libs=yes
20289 freebsd*) # from 4.6 on
20290 shlibpath_overrides_runpath=yes
20291 hardcode_into_libs=yes
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 hardcode_into_libs=yes
20306 hpux9* | hpux10* | hpux11*)
20307 # Give a soname corresponding to the major version so that dld.sl refuses to
20308 # link against other versions.
20315 hardcode_into_libs=yes
20316 dynamic_linker="$host_os dld.so"
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20321 if test "X$HPUX_IA64_MODE" = X32; then
20322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20330 hardcode_into_libs=yes
20331 dynamic_linker="$host_os dld.sl"
20332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 soname_spec='${libname}${release}${shared_ext}$major'
20336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20341 dynamic_linker="$host_os dld.sl"
20342 shlibpath_var=SHLIB_PATH
20343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20349 postinstall_cmds='chmod 555 $lib'
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=no
20361 hardcode_into_libs=yes
20364 irix5* | irix6* | nonstopux*)
20366 nonstopux*) version_type=nonstopux ;;
20368 if test "$lt_cv_prog_gnu_ld" = yes; then
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20379 irix5* | nonstopux*)
20380 libsuff= shlibsuff=
20383 case $LD in # libtool.m4 will add one of these switches to LD
20384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20385 libsuff= shlibsuff= libmagic=32-bit;;
20386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20387 libsuff=32 shlibsuff=N32 libmagic=N32;;
20388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20390 *) libsuff= shlibsuff= libmagic=never-match;;
20394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20395 shlibpath_overrides_runpath=no
20396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20398 hardcode_into_libs=yes
20401 # No shared lib support for Linux oldld, aout, or coff.
20402 linux*oldld* | linux*aout* | linux*coff*)
20406 # This must be Linux ELF.
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20414 shlibpath_var=LD_LIBRARY_PATH
20415 shlibpath_overrides_runpath=no
20416 # This implies no fast_install, which is unacceptable.
20417 # Some rework will be needed to allow for fast_install
20418 # before this can be enabled.
20419 hardcode_into_libs=yes
20421 # Append ld.so.conf contents to the search path
20422 if test -f /etc/ld.so.conf; then
20423 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' ' '`
20424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20427 # We used to test for /lib/ld.so.1 and disable shared libraries on
20428 # powerpc, because MkLinux only supported shared libraries with the
20429 # GNU dynamic linker. Since this was broken with cross compilers,
20430 # most powerpc-linux boxes support dynamic linking these days and
20431 # people can always --disable-shared, the test was removed, and we
20432 # assume the GNU/Linux dynamic linker is in use.
20433 dynamic_linker='GNU/Linux ld.so'
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20441 soname_spec='${libname}${release}${shared_ext}$major'
20442 shlibpath_var=LD_LIBRARY_PATH
20443 shlibpath_overrides_runpath=no
20444 hardcode_into_libs=yes
20445 dynamic_linker='GNU ld.so'
20452 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20455 dynamic_linker='NetBSD (a.out) ld.so'
20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20458 soname_spec='${libname}${release}${shared_ext}$major'
20459 dynamic_linker='NetBSD ld.elf_so'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=yes
20463 hardcode_into_libs=yes
20468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 shlibpath_overrides_runpath=yes
20477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20478 soname_spec='${libname}${release}${shared_ext}$major'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 shlibpath_overrides_runpath=yes
20485 sys_lib_dlsearch_path_spec="/usr/lib"
20487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20490 *) need_version=no ;;
20492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20494 shlibpath_var=LD_LIBRARY_PATH
20495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20497 openbsd2.[89] | openbsd2.[89].*)
20498 shlibpath_overrides_runpath=no
20501 shlibpath_overrides_runpath=yes
20505 shlibpath_overrides_runpath=yes
20510 libname_spec='$name'
20513 library_names_spec='$libname${shared_ext} $libname.a'
20514 dynamic_linker='OS/2 ld.exe'
20515 shlibpath_var=LIBPATH
20518 osf3* | osf4* | osf5*)
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 shlibpath_overrides_runpath=yes
20537 hardcode_into_libs=yes
20538 # ldd complains unless libraries are executable
20539 postinstall_cmds='chmod +x $lib'
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 shlibpath_overrides_runpath=yes
20548 if test "$with_gnu_ld" = yes; then
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557 soname_spec='${libname}${release}${shared_ext}$major'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 case $host_vendor in
20561 shlibpath_overrides_runpath=no
20563 export_dynamic_flag_spec='${wl}-Blargedynsym'
20564 runpath_var=LD_RUN_PATH
20572 shlibpath_overrides_runpath=no
20573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20579 if test -d /usr/nec ;then
20581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582 soname_spec='$libname${shared_ext}.$major'
20583 shlibpath_var=LD_LIBRARY_PATH
20587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20588 version_type=freebsd-elf
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20592 soname_spec='${libname}${release}${shared_ext}$major'
20593 shlibpath_var=LD_LIBRARY_PATH
20594 hardcode_into_libs=yes
20595 if test "$with_gnu_ld" = yes; then
20596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20597 shlibpath_overrides_runpath=no
20599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20600 shlibpath_overrides_runpath=yes
20603 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20607 sys_lib_dlsearch_path_spec='/usr/lib'
20612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20613 soname_spec='${libname}${release}${shared_ext}$major'
20614 shlibpath_var=LD_LIBRARY_PATH
20621 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20622 echo "${ECHO_T}$dynamic_linker" >&6; }
20623 test "$dynamic_linker" = no && can_build_shared=no
20625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20626 if test "$GCC" = yes; then
20627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20630 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20631 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20632 hardcode_action_CXX=
20633 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20634 test -n "$runpath_var_CXX" || \
20635 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20637 # We can hardcode non-existant directories.
20638 if test "$hardcode_direct_CXX" != no &&
20639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20640 # have to relink, otherwise we might link with an installed library
20641 # when we should be linking with a yet-to-be-installed one
20642 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20643 test "$hardcode_minus_L_CXX" != no; then
20644 # Linking always hardcodes the temporary library directory.
20645 hardcode_action_CXX=relink
20647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20648 hardcode_action_CXX=immediate
20651 # We cannot hardcode anything, or else we can only hardcode existing
20653 hardcode_action_CXX=unsupported
20655 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20656 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20658 if test "$hardcode_action_CXX" = relink; then
20659 # Fast installation is not supported
20660 enable_fast_install=no
20661 elif test "$shlibpath_overrides_runpath" = yes ||
20662 test "$enable_shared" = no; then
20663 # Fast installation is not necessary
20664 enable_fast_install=needless
20668 # The else clause should only fire when bootstrapping the
20669 # libtool distribution, otherwise you forgot to ship ltmain.sh
20670 # with your package, and you will get complaints that there are
20671 # no rules to generate ltmain.sh.
20672 if test -f "$ltmain"; then
20673 # See if we are running on zsh, and set the options which allow our commands through
20674 # without removal of \ escapes.
20675 if test -n "${ZSH_VERSION+set}" ; then
20676 setopt NO_GLOB_SUBST
20678 # Now quote all the things that may contain metacharacters while being
20679 # careful not to overquote the AC_SUBSTed values. We take copies of the
20680 # variables and quote the copies for generation of the libtool script.
20681 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20683 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20684 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20685 deplibs_check_method reload_flag reload_cmds need_locks \
20686 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20687 lt_cv_sys_global_symbol_to_c_name_address \
20688 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20689 old_postinstall_cmds old_postuninstall_cmds \
20693 lt_prog_compiler_wl_CXX \
20694 lt_prog_compiler_pic_CXX \
20695 lt_prog_compiler_static_CXX \
20696 lt_prog_compiler_no_builtin_flag_CXX \
20697 export_dynamic_flag_spec_CXX \
20698 thread_safe_flag_spec_CXX \
20699 whole_archive_flag_spec_CXX \
20700 enable_shared_with_static_runtimes_CXX \
20701 old_archive_cmds_CXX \
20702 old_archive_from_new_cmds_CXX \
20703 predep_objects_CXX \
20704 postdep_objects_CXX \
20707 compiler_lib_search_path_CXX \
20709 archive_expsym_cmds_CXX \
20710 postinstall_cmds_CXX \
20711 postuninstall_cmds_CXX \
20712 old_archive_from_expsyms_cmds_CXX \
20713 allow_undefined_flag_CXX \
20714 no_undefined_flag_CXX \
20715 export_symbols_cmds_CXX \
20716 hardcode_libdir_flag_spec_CXX \
20717 hardcode_libdir_flag_spec_ld_CXX \
20718 hardcode_libdir_separator_CXX \
20719 hardcode_automatic_CXX \
20721 module_expsym_cmds_CXX \
20722 lt_cv_prog_compiler_c_o_CXX \
20723 exclude_expsyms_CXX \
20724 include_expsyms_CXX; do
20727 old_archive_cmds_CXX | \
20728 old_archive_from_new_cmds_CXX | \
20729 archive_cmds_CXX | \
20730 archive_expsym_cmds_CXX | \
20731 module_cmds_CXX | \
20732 module_expsym_cmds_CXX | \
20733 old_archive_from_expsyms_cmds_CXX | \
20734 export_symbols_cmds_CXX | \
20735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20736 postinstall_cmds | postuninstall_cmds | \
20737 old_postinstall_cmds | old_postuninstall_cmds | \
20738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20739 # Double-quote double-evaled strings.
20740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20749 *'\$0 --fallback-echo"')
20750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20756 cat <<__EOF__ >> "$cfgfile"
20757 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20761 # Shell to use when invoking shell scripts.
20764 # Whether or not to build shared libraries.
20765 build_libtool_libs=$enable_shared
20767 # Whether or not to build static libraries.
20768 build_old_libs=$enable_static
20770 # Whether or not to add -lc for building shared libraries.
20771 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20773 # Whether or not to disallow shared libs when runtime libs are static
20774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20776 # Whether or not to optimize for fast installation.
20777 fast_install=$enable_fast_install
20780 host_alias=$host_alias
20784 # The build system.
20785 build_alias=$build_alias
20789 # An echo program that does not interpret backslashes.
20794 AR_FLAGS=$lt_AR_FLAGS
20799 # LTCC compiler flags.
20800 LTCFLAGS=$lt_LTCFLAGS
20802 # A language-specific compiler.
20803 CC=$lt_compiler_CXX
20805 # Is the compiler the GNU C compiler?
20811 # The linker used to build libraries.
20814 # Whether we need hard or soft links.
20817 # A BSD-compatible nm program.
20820 # A symbol stripping program
20823 # Used to examine libraries when file_magic_cmd begins "file"
20824 MAGIC_CMD=$MAGIC_CMD
20826 # Used on cygwin: DLL creation program.
20829 # Used on cygwin: object dumper.
20832 # Used on cygwin: assembler.
20835 # The name of the directory that contains temporary libtool files.
20838 # How to create reloadable object files.
20839 reload_flag=$lt_reload_flag
20840 reload_cmds=$lt_reload_cmds
20842 # How to pass a linker flag through the compiler.
20843 wl=$lt_lt_prog_compiler_wl_CXX
20845 # Object file suffix (normally "o").
20846 objext="$ac_objext"
20848 # Old archive suffix (normally "a").
20851 # Shared library suffix (normally ".so").
20852 shrext_cmds='$shrext_cmds'
20854 # Executable file suffix (normally "").
20857 # Additional compiler flags for building library objects.
20858 pic_flag=$lt_lt_prog_compiler_pic_CXX
20861 # What is the maximum length of a command?
20862 max_cmd_len=$lt_cv_sys_max_cmd_len
20864 # Does compiler simultaneously support -c and -o options?
20865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20867 # Must we lock files when doing compilation?
20868 need_locks=$lt_need_locks
20870 # Do we need the lib prefix for modules?
20871 need_lib_prefix=$need_lib_prefix
20873 # Do we need a version for libraries?
20874 need_version=$need_version
20876 # Whether dlopen is supported.
20877 dlopen_support=$enable_dlopen
20879 # Whether dlopen of programs is supported.
20880 dlopen_self=$enable_dlopen_self
20882 # Whether dlopen of statically linked programs is supported.
20883 dlopen_self_static=$enable_dlopen_self_static
20885 # Compiler flag to prevent dynamic linking.
20886 link_static_flag=$lt_lt_prog_compiler_static_CXX
20888 # Compiler flag to turn off builtin functions.
20889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20891 # Compiler flag to allow reflexive dlopens.
20892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20894 # Compiler flag to generate shared objects directly from archives.
20895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20897 # Compiler flag to generate thread-safe objects.
20898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20900 # Library versioning type.
20901 version_type=$version_type
20903 # Format of library name prefix.
20904 libname_spec=$lt_libname_spec
20906 # List of archive names. First name is the real one, the rest are links.
20907 # The last name is the one that the linker finds with -lNAME.
20908 library_names_spec=$lt_library_names_spec
20910 # The coded name of the library, if different from the real name.
20911 soname_spec=$lt_soname_spec
20913 # Commands used to build and install an old-style archive.
20915 old_archive_cmds=$lt_old_archive_cmds_CXX
20916 old_postinstall_cmds=$lt_old_postinstall_cmds
20917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20919 # Create an old-style archive from a shared archive.
20920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20922 # Create a temporary old-style archive to link instead of a shared archive.
20923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20925 # Commands used to build and install a shared archive.
20926 archive_cmds=$lt_archive_cmds_CXX
20927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20928 postinstall_cmds=$lt_postinstall_cmds
20929 postuninstall_cmds=$lt_postuninstall_cmds
20931 # Commands used to build a loadable module (assumed same as above if empty)
20932 module_cmds=$lt_module_cmds_CXX
20933 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20935 # Commands to strip libraries.
20936 old_striplib=$lt_old_striplib
20937 striplib=$lt_striplib
20939 # Dependencies to place before the objects being linked to create a
20941 predep_objects=$lt_predep_objects_CXX
20943 # Dependencies to place after the objects being linked to create a
20945 postdep_objects=$lt_postdep_objects_CXX
20947 # Dependencies to place before the objects being linked to create a
20949 predeps=$lt_predeps_CXX
20951 # Dependencies to place after the objects being linked to create a
20953 postdeps=$lt_postdeps_CXX
20955 # The library search path used internally by the compiler when linking
20956 # a shared library.
20957 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20959 # Method to check whether dependent libraries are shared objects.
20960 deplibs_check_method=$lt_deplibs_check_method
20962 # Command to use when deplibs_check_method == file_magic.
20963 file_magic_cmd=$lt_file_magic_cmd
20965 # Flag that allows shared libraries with undefined symbols to be built.
20966 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20968 # Flag that forces no undefined symbols.
20969 no_undefined_flag=$lt_no_undefined_flag_CXX
20971 # Commands used to finish a libtool library installation in a directory.
20972 finish_cmds=$lt_finish_cmds
20974 # Same as above, but a single script fragment to be evaled but not shown.
20975 finish_eval=$lt_finish_eval
20977 # Take the output of nm and produce a listing of raw symbols and C names.
20978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20980 # Transform the output of nm in a proper C declaration
20981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20983 # Transform the output of nm in a C name address pair
20984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20986 # This is the shared library runtime path variable.
20987 runpath_var=$runpath_var
20989 # This is the shared library path variable.
20990 shlibpath_var=$shlibpath_var
20992 # Is shlibpath searched before the hard-coded library search path?
20993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20995 # How to hardcode a shared library path into an executable.
20996 hardcode_action=$hardcode_action_CXX
20998 # Whether we should hardcode library paths into libraries.
20999 hardcode_into_libs=$hardcode_into_libs
21001 # Flag to hardcode \$libdir into a binary during linking.
21002 # This must work even if \$libdir does not exist.
21003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21005 # If ld is used when linking, flag to hardcode \$libdir into
21006 # a binary during linking. This must work even if \$libdir does
21008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21010 # Whether we need a single -rpath flag with a separated argument.
21011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21014 # resulting binary.
21015 hardcode_direct=$hardcode_direct_CXX
21017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21018 # resulting binary.
21019 hardcode_minus_L=$hardcode_minus_L_CXX
21021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21022 # the resulting binary.
21023 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21025 # Set to yes if building a shared library automatically hardcodes DIR into the library
21026 # and all subsequent libraries and executables linked against it.
21027 hardcode_automatic=$hardcode_automatic_CXX
21029 # Variables whose values should be saved in libtool wrapper scripts and
21030 # restored at relink time.
21031 variables_saved_for_relink="$variables_saved_for_relink"
21033 # Whether libtool must link a program against all its dependency libraries.
21034 link_all_deplibs=$link_all_deplibs_CXX
21036 # Compile-time system search path for libraries
21037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21039 # Run-time system search path for libraries
21040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21042 # Fix the shell variable \$srcfile for the compiler.
21043 fix_srcfile_path="$fix_srcfile_path_CXX"
21045 # Set to yes if exported symbols are required.
21046 always_export_symbols=$always_export_symbols_CXX
21048 # The commands to list exported symbols.
21049 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21051 # The commands to extract the exported symbol list from a shared archive.
21052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21054 # Symbols that should not be listed in the preloaded symbols.
21055 exclude_expsyms=$lt_exclude_expsyms_CXX
21057 # Symbols that must always be exported.
21058 include_expsyms=$lt_include_expsyms_CXX
21060 # ### END LIBTOOL TAG CONFIG: $tagname
21066 # If there is no Makefile yet, we rely on a make rule to execute
21067 # `config.status --recheck' to rerun these tests and create the
21068 # libtool script then.
21069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21070 if test -f "$ltmain_in"; then
21071 test -f Makefile && make "$ltmain"
21077 ac_cpp='$CPP $CPPFLAGS'
21078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086 with_gnu_ldcxx=$with_gnu_ld
21087 with_gnu_ld=$lt_save_with_gnu_ld
21088 lt_cv_path_LDCXX=$lt_cv_path_LD
21089 lt_cv_path_LD=$lt_save_path_LD
21090 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21091 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21099 if test -n "$F77" && test "X$F77" != "Xno"; then
21102 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21103 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21107 archive_cmds_need_lc_F77=no
21108 allow_undefined_flag_F77=
21109 always_export_symbols_F77=no
21110 archive_expsym_cmds_F77=
21111 export_dynamic_flag_spec_F77=
21112 hardcode_direct_F77=no
21113 hardcode_libdir_flag_spec_F77=
21114 hardcode_libdir_flag_spec_ld_F77=
21115 hardcode_libdir_separator_F77=
21116 hardcode_minus_L_F77=no
21117 hardcode_automatic_F77=no
21119 module_expsym_cmds_F77=
21120 link_all_deplibs_F77=unknown
21121 old_archive_cmds_F77=$old_archive_cmds
21122 no_undefined_flag_F77=
21123 whole_archive_flag_spec_F77=
21124 enable_shared_with_static_runtimes_F77=no
21126 # Source file extension for f77 test sources.
21129 # Object file extension for compiled f77 test sources.
21133 # Code to be used in simple compile tests
21134 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21136 # Code to be used in simple link tests
21137 lt_simple_link_test_code=" program t\n end\n"
21139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21141 # If no C compiler was specified, use CC.
21144 # If no C compiler flags were specified, use CFLAGS.
21145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21147 # Allow CC to be a program name with arguments.
21151 # save warnings/boilerplate of simple test code
21152 ac_outfile=conftest.$ac_objext
21153 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21155 _lt_compiler_boilerplate=`cat conftest.err`
21158 ac_outfile=conftest.$ac_objext
21159 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21161 _lt_linker_boilerplate=`cat conftest.err`
21165 # Allow CC to be a program name with arguments.
21170 for cc_temp in $compiler""; do
21172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21181 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21182 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21183 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21184 echo "${ECHO_T}$can_build_shared" >&6; }
21186 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21187 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21188 test "$can_build_shared" = "no" && enable_shared=no
21190 # On AIX, shared libraries and static libraries use the same namespace, and
21191 # are all built from PIC.
21194 test "$enable_shared" = yes && enable_static=no
21195 if test -n "$RANLIB"; then
21196 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21197 postinstall_cmds='$RANLIB $lib'
21201 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21202 test "$enable_shared" = yes && enable_static=no
21206 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21207 echo "${ECHO_T}$enable_shared" >&6; }
21209 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21210 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21211 # Make sure either enable_shared or enable_static is yes.
21212 test "$enable_shared" = yes || enable_static=yes
21213 { echo "$as_me:$LINENO: result: $enable_static" >&5
21214 echo "${ECHO_T}$enable_static" >&6; }
21219 lt_prog_compiler_wl_F77=
21220 lt_prog_compiler_pic_F77=
21221 lt_prog_compiler_static_F77=
21223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21226 if test "$GCC" = yes; then
21227 lt_prog_compiler_wl_F77='-Wl,'
21228 lt_prog_compiler_static_F77='-static'
21232 # All AIX code is PIC.
21233 if test "$host_cpu" = ia64; then
21234 # AIX 5 now supports IA64 processor
21235 lt_prog_compiler_static_F77='-Bstatic'
21240 # FIXME: we need at least 68020 code to build shared libraries, but
21241 # adding the `-m68020' flag to GCC prevents building anything better,
21243 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21246 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21247 # PIC is the default for these OSes.
21250 mingw* | pw32* | os2*)
21251 # This hack is so that the source file can tell whether it is being
21252 # built for inclusion in a dll (and should export symbols for example).
21253 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21256 darwin* | rhapsody*)
21257 # PIC is the default on this platform
21258 # Common symbols not allowed in MH_DYLIB files
21259 lt_prog_compiler_pic_F77='-fno-common'
21263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21264 # Instead, we relocate shared libraries at runtime.
21268 # Just because we use GCC doesn't mean we suddenly get shared libraries
21269 # on systems that don't support them.
21270 lt_prog_compiler_can_build_shared_F77=no
21275 if test -d /usr/nec; then
21276 lt_prog_compiler_pic_F77=-Kconform_pic
21281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21282 # not for PA HP-UX.
21288 lt_prog_compiler_pic_F77='-fPIC'
21294 lt_prog_compiler_pic_F77='-fPIC'
21298 # PORTME Check for flag to pass linker flags through the system compiler.
21301 lt_prog_compiler_wl_F77='-Wl,'
21302 if test "$host_cpu" = ia64; then
21303 # AIX 5 now supports IA64 processor
21304 lt_prog_compiler_static_F77='-Bstatic'
21306 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21310 # PIC is the default on this platform
21311 # Common symbols not allowed in MH_DYLIB files
21312 case $cc_basename in
21314 lt_prog_compiler_pic_F77='-qnocommon'
21315 lt_prog_compiler_wl_F77='-Wl,'
21320 mingw* | pw32* | os2*)
21321 # This hack is so that the source file can tell whether it is being
21322 # built for inclusion in a dll (and should export symbols for example).
21323 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21326 hpux9* | hpux10* | hpux11*)
21327 lt_prog_compiler_wl_F77='-Wl,'
21328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21329 # not for PA HP-UX.
21335 lt_prog_compiler_pic_F77='+Z'
21338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21339 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21342 irix5* | irix6* | nonstopux*)
21343 lt_prog_compiler_wl_F77='-Wl,'
21344 # PIC (with -KPIC) is the default.
21345 lt_prog_compiler_static_F77='-non_shared'
21349 lt_prog_compiler_pic_F77='-KPIC'
21350 lt_prog_compiler_static_F77='-Bstatic'
21354 case $cc_basename in
21356 lt_prog_compiler_wl_F77='-Wl,'
21357 lt_prog_compiler_pic_F77='-KPIC'
21358 lt_prog_compiler_static_F77='-static'
21360 pgcc* | pgf77* | pgf90* | pgf95*)
21361 # Portland Group compilers (*not* the Pentium gcc compiler,
21362 # which looks to be a dead project)
21363 lt_prog_compiler_wl_F77='-Wl,'
21364 lt_prog_compiler_pic_F77='-fpic'
21365 lt_prog_compiler_static_F77='-Bstatic'
21368 lt_prog_compiler_wl_F77='-Wl,'
21369 # All Alpha code is PIC.
21370 lt_prog_compiler_static_F77='-non_shared'
21375 osf3* | osf4* | osf5*)
21376 lt_prog_compiler_wl_F77='-Wl,'
21377 # All OSF/1 code is PIC.
21378 lt_prog_compiler_static_F77='-non_shared'
21382 lt_prog_compiler_pic_F77='-KPIC'
21383 lt_prog_compiler_static_F77='-Bstatic'
21384 case $cc_basename in
21385 f77* | f90* | f95*)
21386 lt_prog_compiler_wl_F77='-Qoption ld ';;
21388 lt_prog_compiler_wl_F77='-Wl,';;
21393 lt_prog_compiler_wl_F77='-Qoption ld '
21394 lt_prog_compiler_pic_F77='-PIC'
21395 lt_prog_compiler_static_F77='-Bstatic'
21398 sysv4 | sysv4.2uw2* | sysv4.3*)
21399 lt_prog_compiler_wl_F77='-Wl,'
21400 lt_prog_compiler_pic_F77='-KPIC'
21401 lt_prog_compiler_static_F77='-Bstatic'
21405 if test -d /usr/nec ;then
21406 lt_prog_compiler_pic_F77='-Kconform_pic'
21407 lt_prog_compiler_static_F77='-Bstatic'
21411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21412 lt_prog_compiler_wl_F77='-Wl,'
21413 lt_prog_compiler_pic_F77='-KPIC'
21414 lt_prog_compiler_static_F77='-Bstatic'
21418 lt_prog_compiler_wl_F77='-Wl,'
21419 lt_prog_compiler_can_build_shared_F77=no
21423 lt_prog_compiler_pic_F77='-pic'
21424 lt_prog_compiler_static_F77='-Bstatic'
21428 lt_prog_compiler_can_build_shared_F77=no
21433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21434 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21437 # Check to make sure the PIC flag actually works.
21439 if test -n "$lt_prog_compiler_pic_F77"; then
21441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21443 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 lt_prog_compiler_pic_works_F77=no
21447 ac_outfile=conftest.$ac_objext
21448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21449 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21450 # Insert the option either (1) after the last *FLAGS variable, or
21451 # (2) before a word containing "conftest.", or (3) at the end.
21452 # Note that $ac_compile itself does not contain backslashes and begins
21453 # with a dollar sign (not a hyphen), so the echo should work correctly.
21454 # The option is referenced via a variable to avoid confusing sed.
21455 lt_compile=`echo "$ac_compile" | $SED \
21456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21458 -e 's:$: $lt_compiler_flag:'`
21459 (eval echo "\"\$as_me:21459: $lt_compile\"" >&5)
21460 (eval "$lt_compile" 2>conftest.err)
21462 cat conftest.err >&5
21463 echo "$as_me:21463: \$? = $ac_status" >&5
21464 if (exit $ac_status) && test -s "$ac_outfile"; then
21465 # The compiler can only warn and ignore the option if not recognized
21466 # So say no if there are warnings other than the usual output.
21467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21470 lt_prog_compiler_pic_works_F77=yes
21476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21477 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21479 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21480 case $lt_prog_compiler_pic_F77 in
21482 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21485 lt_prog_compiler_pic_F77=
21486 lt_prog_compiler_can_build_shared_F77=no
21491 # For platforms which do not support PIC, -DPIC is meaningless:
21493 lt_prog_compiler_pic_F77=
21496 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21501 # Check to make sure the static flag actually works.
21503 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21506 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 lt_prog_compiler_static_works_F77=no
21510 save_LDFLAGS="$LDFLAGS"
21511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21512 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21514 # The linker can only warn and ignore the option if not recognized
21515 # So say no if there are warnings
21516 if test -s conftest.err; then
21517 # Append any errors to the config.log.
21518 cat conftest.err 1>&5
21519 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21521 if diff conftest.exp conftest.er2 >/dev/null; then
21522 lt_prog_compiler_static_works_F77=yes
21525 lt_prog_compiler_static_works_F77=yes
21529 LDFLAGS="$save_LDFLAGS"
21532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21533 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21535 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21538 lt_prog_compiler_static_F77=
21542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21544 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 lt_cv_prog_compiler_c_o_F77=no
21548 $rm -r conftest 2>/dev/null
21552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21554 lt_compiler_flag="-o out/conftest2.$ac_objext"
21555 # Insert the option either (1) after the last *FLAGS variable, or
21556 # (2) before a word containing "conftest.", or (3) at the end.
21557 # Note that $ac_compile itself does not contain backslashes and begins
21558 # with a dollar sign (not a hyphen), so the echo should work correctly.
21559 lt_compile=`echo "$ac_compile" | $SED \
21560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21562 -e 's:$: $lt_compiler_flag:'`
21563 (eval echo "\"\$as_me:21563: $lt_compile\"" >&5)
21564 (eval "$lt_compile" 2>out/conftest.err)
21566 cat out/conftest.err >&5
21567 echo "$as_me:21567: \$? = $ac_status" >&5
21568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21570 # The compiler can only warn and ignore the option if not recognized
21571 # So say no if there are warnings
21572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21575 lt_cv_prog_compiler_c_o_F77=yes
21580 # SGI C++ compiler will create directory out/ii_files/ for
21581 # template instantiation
21582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21583 $rm out/* && rmdir out
21589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21593 hard_links="nottested"
21594 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21595 # do not overwrite the value of need_locks provided by the user
21596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21602 ln conftest.a conftest.b 2>&5 || hard_links=no
21603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21604 { echo "$as_me:$LINENO: result: $hard_links" >&5
21605 echo "${ECHO_T}$hard_links" >&6; }
21606 if test "$hard_links" = no; then
21607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21619 allow_undefined_flag_F77=
21620 enable_shared_with_static_runtimes_F77=no
21622 archive_expsym_cmds_F77=
21623 old_archive_From_new_cmds_F77=
21624 old_archive_from_expsyms_cmds_F77=
21625 export_dynamic_flag_spec_F77=
21626 whole_archive_flag_spec_F77=
21627 thread_safe_flag_spec_F77=
21628 hardcode_libdir_flag_spec_F77=
21629 hardcode_libdir_flag_spec_ld_F77=
21630 hardcode_libdir_separator_F77=
21631 hardcode_direct_F77=no
21632 hardcode_minus_L_F77=no
21633 hardcode_shlibpath_var_F77=unsupported
21634 link_all_deplibs_F77=unknown
21635 hardcode_automatic_F77=no
21637 module_expsym_cmds_F77=
21638 always_export_symbols_F77=no
21639 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21640 # include_expsyms should be a list of space-separated symbols to be *always*
21641 # included in the symbol list
21642 include_expsyms_F77=
21643 # exclude_expsyms can be an extended regexp of symbols to exclude
21644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21646 # as well as any symbol that contains `d'.
21647 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21649 # platforms (ab)use it in PIC code, but their linkers get confused if
21650 # the symbol is explicitly referenced. Since portable code cannot
21651 # rely on this symbol name, it's probably fine to never include it in
21652 # preloaded symbol tables.
21653 extract_expsyms_cmds=
21654 # Just being paranoid about ensuring that cc_basename is set.
21655 for cc_temp in $compiler""; do
21657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21666 cygwin* | mingw* | pw32*)
21667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21668 # When not using gcc, we currently assume that we are using
21669 # Microsoft Visual C++.
21670 if test "$GCC" != yes; then
21675 # we just hope/assume this is gcc and not c89 (= MSVC++)
21684 if test "$with_gnu_ld" = yes; then
21685 # If archive_cmds runs LD, not CC, wlarc should be empty
21688 # Set some defaults for GNU ld with shared library support. These
21689 # are reset later if shared libraries are not supported. Putting them
21690 # here allows them to be overridden if necessary.
21691 runpath_var=LD_RUN_PATH
21692 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21693 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21694 # ancient GNU ld didn't support --whole-archive et. al.
21695 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21696 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21698 whole_archive_flag_spec_F77=
21700 supports_anon_versioning=no
21701 case `$LD -v 2>/dev/null` in
21702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21705 *\ 2.11.*) ;; # other 2.11 versions
21706 *) supports_anon_versioning=yes ;;
21709 # See if GNU ld supports shared libraries.
21711 aix3* | aix4* | aix5*)
21712 # On AIX/PPC, the GNU linker is very broken
21713 if test "$host_cpu" != ia64; then
21717 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21718 *** to be unable to reliably create shared libraries on AIX.
21719 *** Therefore, libtool is disabling shared libraries support. If you
21720 *** really care for shared libraries, you may want to modify your PATH
21721 *** so that a non-GNU linker is found, and then restart.
21728 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)'
21729 hardcode_libdir_flag_spec_F77='-L$libdir'
21730 hardcode_minus_L_F77=yes
21732 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21733 # that the semantics of dynamic libraries on AmigaOS, at least up
21734 # to version 4, is to share data among multiple programs linked
21735 # with the same dynamic library. Since this doesn't match the
21736 # behavior of shared libraries on other platforms, we can't use
21742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743 allow_undefined_flag_F77=unsupported
21744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21745 # support --undefined. This deserves some investigation. FIXME
21746 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21752 cygwin* | mingw* | pw32*)
21753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21754 # as there is no search path for DLLs.
21755 hardcode_libdir_flag_spec_F77='-L$libdir'
21756 allow_undefined_flag_F77=unsupported
21757 always_export_symbols_F77=no
21758 enable_shared_with_static_runtimes_F77=yes
21759 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21762 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21763 # If the export-symbols file already is a .def file (1st line
21764 # is EXPORTS), use it as is; otherwise, prepend...
21765 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21766 cp $export_symbols $output_objdir/$soname.def;
21768 echo EXPORTS > $output_objdir/$soname.def;
21769 cat $export_symbols >> $output_objdir/$soname.def;
21771 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21778 hardcode_direct_F77=no
21779 hardcode_shlibpath_var_F77=no
21780 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21781 export_dynamic_flag_spec_F77='${wl}-E'
21782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21783 # Instead, shared libraries are loaded at an image base (0x10000000 by
21784 # default) and relocated if they conflict, which is a slow very memory
21785 # consuming and fragmenting process. To avoid this, we pick a random,
21786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21788 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'
21789 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'
21793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21795 case $cc_basename,$host_cpu in
21796 pgcc*) # Portland Group C compiler
21797 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'
21798 tmp_addflag=' $pic_flag'
21800 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21801 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'
21802 tmp_addflag=' $pic_flag -Mnomain' ;;
21803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21804 tmp_addflag=' -i_dynamic' ;;
21805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21806 tmp_addflag=' -i_dynamic -nofor_main' ;;
21807 ifc* | ifort*) # Intel Fortran compiler
21808 tmp_addflag=' -nofor_main' ;;
21810 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21812 if test $supports_anon_versioning = yes; then
21813 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21815 $echo "local: *; };" >> $output_objdir/$libname.ver~
21816 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21825 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21834 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21839 *** create shared libraries on Solaris systems. Therefore, libtool
21840 *** is disabling shared libraries support. We urge you to upgrade GNU
21841 *** binutils to release 2.9.1 or newer. Another option is to modify
21842 *** your PATH or compiler configuration so that the native linker is
21843 *** used, and then restart.
21846 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21855 case `$LD -v 2>&1` in
21856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21861 *** reliably create shared libraries on SCO systems. Therefore, libtool
21862 *** is disabling shared libraries support. We urge you to upgrade GNU
21863 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21864 *** your PATH or compiler configuration so that the native linker is
21865 *** used, and then restart.
21870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21871 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21873 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21882 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21884 hardcode_direct_F77=yes
21885 hardcode_shlibpath_var_F77=no
21889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21898 if test "$ld_shlibs_F77" = no; then
21900 hardcode_libdir_flag_spec_F77=
21901 export_dynamic_flag_spec_F77=
21902 whole_archive_flag_spec_F77=
21905 # PORTME fill in a description of your system's linker (not GNU ld)
21908 allow_undefined_flag_F77=unsupported
21909 always_export_symbols_F77=yes
21910 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'
21911 # Note: this linker hardcodes the directories in LIBPATH if there
21912 # are no directories specified by -L.
21913 hardcode_minus_L_F77=yes
21914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21915 # Neither direct hardcoding nor static linking is supported with a
21917 hardcode_direct_F77=unsupported
21922 if test "$host_cpu" = ia64; then
21923 # On IA64, the linker does run time linking by default, so we don't
21924 # have to do anything special.
21925 aix_use_runtimelinking=no
21926 exp_sym_flag='-Bexport'
21929 # If we're using GNU nm, then we don't want the "-C" option.
21930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21931 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21932 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'
21934 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'
21936 aix_use_runtimelinking=no
21938 # Test if we are trying to use run time linking or normal
21939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21940 # need to do runtime linking.
21941 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21942 for ld_flag in $LDFLAGS; do
21943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21944 aix_use_runtimelinking=yes
21951 exp_sym_flag='-bexport'
21952 no_entry_flag='-bnoentry'
21955 # When large executables or shared objects are built, AIX ld can
21956 # have problems creating the table of contents. If linking a library
21957 # or program results in "error TOC overflow" add -mminimal-toc to
21958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21961 archive_cmds_F77=''
21962 hardcode_direct_F77=yes
21963 hardcode_libdir_separator_F77=':'
21964 link_all_deplibs_F77=yes
21966 if test "$GCC" = yes; then
21967 case $host_os in aix4.[012]|aix4.[012].*)
21968 # We only want to do this on AIX 4.2 and lower, the check
21969 # below for broken collect2 doesn't work under 4.3+
21970 collect2name=`${CC} -print-prog-name=collect2`
21971 if test -f "$collect2name" && \
21972 strings "$collect2name" | grep resolve_lib_name >/dev/null
21974 # We have reworked collect2
21975 hardcode_direct_F77=yes
21977 # We have old collect2
21978 hardcode_direct_F77=unsupported
21979 # It fails to find uninstalled libraries when the uninstalled
21980 # path is not listed in the libpath. Setting hardcode_minus_L
21981 # to unsupported forces relinking
21982 hardcode_minus_L_F77=yes
21983 hardcode_libdir_flag_spec_F77='-L$libdir'
21984 hardcode_libdir_separator_F77=
21988 shared_flag='-shared'
21989 if test "$aix_use_runtimelinking" = yes; then
21990 shared_flag="$shared_flag "'${wl}-G'
21994 if test "$host_cpu" = ia64; then
21995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21996 # chokes on -Wl,-G. The following line is correct:
21999 if test "$aix_use_runtimelinking" = yes; then
22000 shared_flag='${wl}-G'
22002 shared_flag='${wl}-bM:SRE'
22007 # It seems that -bexpall does not export symbols beginning with
22008 # underscore (_), so it is better to generate a list of symbols to export.
22009 always_export_symbols_F77=yes
22010 if test "$aix_use_runtimelinking" = yes; then
22011 # Warning - without using the other runtime loading flags (-brtl),
22012 # -berok will link without error, but may produce a broken library.
22013 allow_undefined_flag_F77='-berok'
22014 # Determine the default libpath from the value encoded in an empty executable.
22015 cat >conftest.$ac_ext <<_ACEOF
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_link") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } &&
22034 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22035 { (case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_try") 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest$ac_exeext'
22045 { (case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_try") 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22057 # Check for a 64-bit object if we didn't find anything.
22058 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; }
22061 echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22067 rm -f core conftest.err conftest.$ac_objext \
22068 conftest$ac_exeext conftest.$ac_ext
22069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22071 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22072 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"
22074 if test "$host_cpu" = ia64; then
22075 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22076 allow_undefined_flag_F77="-z nodefs"
22077 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"
22079 # Determine the default libpath from the value encoded in an empty executable.
22080 cat >conftest.$ac_ext <<_ACEOF
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_link") 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } &&
22099 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22100 { (case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_try") 2>&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; } &&
22109 { ac_try='test -s conftest$ac_exeext'
22110 { (case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_try") 2>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22122 # Check for a 64-bit object if we didn't find anything.
22123 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; }
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22132 rm -f core conftest.err conftest.$ac_objext \
22133 conftest$ac_exeext conftest.$ac_ext
22134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22136 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22137 # Warning - without using the other run time loading flags,
22138 # -berok will link without error, but may produce a broken library.
22139 no_undefined_flag_F77=' ${wl}-bernotok'
22140 allow_undefined_flag_F77=' ${wl}-berok'
22141 # Exported symbols can be pulled into shared objects from archives
22142 whole_archive_flag_spec_F77='$convenience'
22143 archive_cmds_need_lc_F77=yes
22144 # This is similar to how AIX traditionally builds its shared libraries.
22145 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'
22151 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)'
22152 hardcode_libdir_flag_spec_F77='-L$libdir'
22153 hardcode_minus_L_F77=yes
22154 # see comment about different semantics on the GNU ld section
22159 export_dynamic_flag_spec_F77=-rdynamic
22162 cygwin* | mingw* | pw32*)
22163 # When not using gcc, we currently assume that we are using
22164 # Microsoft Visual C++.
22165 # hardcode_libdir_flag_spec is actually meaningless, as there is
22166 # no search path for DLLs.
22167 hardcode_libdir_flag_spec_F77=' '
22168 allow_undefined_flag_F77=unsupported
22169 # Tell ltmain to make .lib files, not .a files.
22171 # Tell ltmain to make .dll files, not .so files.
22173 # FIXME: Setting linknames here is a bad hack.
22174 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22175 # The linker will automatically build a .lib file if we build a DLL.
22176 old_archive_From_new_cmds_F77='true'
22177 # FIXME: Should let the user specify the lib program.
22178 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22179 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22180 enable_shared_with_static_runtimes_F77=yes
22183 darwin* | rhapsody*)
22185 rhapsody* | darwin1.[012])
22186 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22190 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22192 case ${MACOSX_DEPLOYMENT_TARGET} in
22194 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22197 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22203 archive_cmds_need_lc_F77=no
22204 hardcode_direct_F77=no
22205 hardcode_automatic_F77=yes
22206 hardcode_shlibpath_var_F77=unsupported
22207 whole_archive_flag_spec_F77=''
22208 link_all_deplibs_F77=yes
22209 if test "$GCC" = yes ; then
22210 output_verbose_link_cmd='echo'
22211 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22212 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22214 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}'
22215 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}'
22217 case $cc_basename in
22219 output_verbose_link_cmd='echo'
22220 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22221 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22223 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}'
22224 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}'
22234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22235 hardcode_libdir_flag_spec_F77='-L$libdir'
22236 hardcode_shlibpath_var_F77=no
22243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22244 # support. Future versions do this automatically, but an explicit c++rt0.o
22245 # does not break anything, and helps significantly (at the cost of a little
22248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22249 hardcode_libdir_flag_spec_F77='-R$libdir'
22250 hardcode_direct_F77=yes
22251 hardcode_shlibpath_var_F77=no
22254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22257 hardcode_direct_F77=yes
22258 hardcode_minus_L_F77=yes
22259 hardcode_shlibpath_var_F77=no
22262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22263 freebsd* | kfreebsd*-gnu | dragonfly*)
22264 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22265 hardcode_libdir_flag_spec_F77='-R$libdir'
22266 hardcode_direct_F77=yes
22267 hardcode_shlibpath_var_F77=no
22271 if test "$GCC" = yes; then
22272 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'
22274 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'
22276 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22277 hardcode_libdir_separator_F77=:
22278 hardcode_direct_F77=yes
22280 # hardcode_minus_L: Not really in the search PATH,
22281 # but as the default location of the library.
22282 hardcode_minus_L_F77=yes
22283 export_dynamic_flag_spec_F77='${wl}-E'
22287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22290 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22292 if test "$with_gnu_ld" = no; then
22293 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22294 hardcode_libdir_separator_F77=:
22296 hardcode_direct_F77=yes
22297 export_dynamic_flag_spec_F77='${wl}-E'
22299 # hardcode_minus_L: Not really in the search PATH,
22300 # but as the default location of the library.
22301 hardcode_minus_L_F77=yes
22306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22309 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22321 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22327 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22331 if test "$with_gnu_ld" = no; then
22332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22333 hardcode_libdir_separator_F77=:
22337 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22338 hardcode_direct_F77=no
22339 hardcode_shlibpath_var_F77=no
22342 hardcode_direct_F77=yes
22343 export_dynamic_flag_spec_F77='${wl}-E'
22345 # hardcode_minus_L: Not really in the search PATH,
22346 # but as the default location of the library.
22347 hardcode_minus_L_F77=yes
22353 irix5* | irix6* | nonstopux*)
22354 if test "$GCC" = yes; then
22355 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'
22357 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'
22358 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22361 hardcode_libdir_separator_F77=:
22362 link_all_deplibs_F77=yes
22366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22369 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22371 hardcode_libdir_flag_spec_F77='-R$libdir'
22372 hardcode_direct_F77=yes
22373 hardcode_shlibpath_var_F77=no
22377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22378 hardcode_direct_F77=yes
22379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22380 hardcode_libdir_separator_F77=:
22381 hardcode_shlibpath_var_F77=no
22385 hardcode_direct_F77=yes
22386 hardcode_shlibpath_var_F77=no
22387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22388 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22389 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22391 export_dynamic_flag_spec_F77='${wl}-E'
22394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22396 hardcode_libdir_flag_spec_F77='-R$libdir'
22399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22407 hardcode_libdir_flag_spec_F77='-L$libdir'
22408 hardcode_minus_L_F77=yes
22409 allow_undefined_flag_F77=unsupported
22410 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'
22411 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22415 if test "$GCC" = yes; then
22416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22417 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'
22419 allow_undefined_flag_F77=' -expect_unresolved \*'
22420 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'
22422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22423 hardcode_libdir_separator_F77=:
22426 osf4* | osf5*) # as osf3* with the addition of -msym flag
22427 if test "$GCC" = yes; then
22428 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22429 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'
22430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22432 allow_undefined_flag_F77=' -expect_unresolved \*'
22433 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'
22434 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~
22435 $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'
22437 # Both c and cxx compiler support -rpath directly
22438 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22440 hardcode_libdir_separator_F77=:
22444 no_undefined_flag_F77=' -z text'
22445 if test "$GCC" = yes; then
22447 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22448 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22449 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22456 hardcode_libdir_flag_spec_F77='-R$libdir'
22457 hardcode_shlibpath_var_F77=no
22459 solaris2.[0-5] | solaris2.[0-5].*) ;;
22461 # The compiler driver will combine linker options so we
22462 # cannot just pass the convience library names through
22463 # without $wl, iff we do not link with $LD.
22464 # Luckily, gcc supports the same syntax we need for Sun Studio.
22465 # Supported since Solaris 2.6 (maybe 2.5.1?)
22468 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22470 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' ;;
22473 link_all_deplibs_F77=yes
22477 if test "x$host_vendor" = xsequent; then
22478 # Use $CC to link under sequent, because it throws in some extra .o
22479 # files that make .init and .fini sections work.
22480 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22482 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22484 hardcode_libdir_flag_spec_F77='-L$libdir'
22485 hardcode_direct_F77=yes
22486 hardcode_minus_L_F77=yes
22487 hardcode_shlibpath_var_F77=no
22491 case $host_vendor in
22493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22494 hardcode_direct_F77=yes # is this really true???
22497 ## LD is ld it makes a PLAMLIB
22498 ## CC just makes a GrossModule.
22499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22500 reload_cmds_F77='$CC -r -o $output$reload_objs'
22501 hardcode_direct_F77=no
22504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22505 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22508 runpath_var='LD_RUN_PATH'
22509 hardcode_shlibpath_var_F77=no
22513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22514 hardcode_shlibpath_var_F77=no
22515 export_dynamic_flag_spec_F77='-Bexport'
22519 if test -d /usr/nec; then
22520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22521 hardcode_shlibpath_var_F77=no
22522 runpath_var=LD_RUN_PATH
22523 hardcode_runpath_var=yes
22528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22529 no_undefined_flag_F77='${wl}-z,text'
22530 archive_cmds_need_lc_F77=no
22531 hardcode_shlibpath_var_F77=no
22532 runpath_var='LD_RUN_PATH'
22534 if test "$GCC" = yes; then
22535 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22536 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22538 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22543 sysv5* | sco3.2v5* | sco5v6*)
22544 # Note: We can NOT use -z defs as we might desire, because we do not
22545 # link with -lc, and that would cause any symbols used from libc to
22546 # always be unresolved, which means just about no library would
22547 # ever link correctly. If we're not using GNU ld we use -z text
22548 # though, which does catch some bad symbols but isn't as heavy-handed
22550 no_undefined_flag_F77='${wl}-z,text'
22551 allow_undefined_flag_F77='${wl}-z,nodefs'
22552 archive_cmds_need_lc_F77=no
22553 hardcode_shlibpath_var_F77=no
22554 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22555 hardcode_libdir_separator_F77=':'
22556 link_all_deplibs_F77=yes
22557 export_dynamic_flag_spec_F77='${wl}-Bexport'
22558 runpath_var='LD_RUN_PATH'
22560 if test "$GCC" = yes; then
22561 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22562 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22564 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22571 hardcode_libdir_flag_spec_F77='-L$libdir'
22572 hardcode_shlibpath_var_F77=no
22581 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22582 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22583 test "$ld_shlibs_F77" = no && can_build_shared=no
22586 # Do we need to explicitly link libc?
22588 case "x$archive_cmds_need_lc_F77" in
22590 # Assume -lc should be added
22591 archive_cmds_need_lc_F77=yes
22593 if test "$enable_shared" = yes && test "$GCC" = yes; then
22594 case $archive_cmds_F77 in
22596 # FIXME: we may have to deal with multi-command sequences.
22599 # Test whether the compiler implicitly links with -lc since on some
22600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22601 # to ld, don't add -lc before -lgcc.
22602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22608 (eval $ac_compile) 2>&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } 2>conftest.err; then
22614 libobjs=conftest.$ac_objext
22616 wl=$lt_prog_compiler_wl_F77
22617 pic_flag=$lt_prog_compiler_pic_F77
22623 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22624 allow_undefined_flag_F77=
22625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22626 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }
22631 archive_cmds_need_lc_F77=no
22633 archive_cmds_need_lc_F77=yes
22635 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22637 cat conftest.err 1>&5
22640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22641 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22650 library_names_spec=
22651 libname_spec='lib$name'
22655 postuninstall_cmds=
22659 shlibpath_overrides_runpath=unknown
22661 dynamic_linker="$host_os ld.so"
22662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22663 if test "$GCC" = yes; then
22664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22666 # if the path contains ";" then we assume it to be the separator
22667 # otherwise default to the standard path separator (i.e. ":") - it is
22668 # assumed that no part of a normal pathname contains ";" but that should
22669 # okay in the real world where ";" in dirpaths is itself problematic.
22670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22677 need_lib_prefix=unknown
22678 hardcode_into_libs=no
22680 # when you set need_version to no, make sure it does not cause -set_version
22681 # flags to be left without arguments
22682 need_version=unknown
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22688 shlibpath_var=LIBPATH
22690 # AIX 3 has no versioning support, so we append a major version to the name.
22691 soname_spec='${libname}${release}${shared_ext}$major'
22698 hardcode_into_libs=yes
22699 if test "$host_cpu" = ia64; then
22700 # AIX 5 supports IA64
22701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22702 shlibpath_var=LD_LIBRARY_PATH
22704 # With GCC up to 2.95.x, collect2 would create an import file
22705 # for dependence libraries. The import file would start with
22706 # the line `#! .'. This would cause the generated library to
22707 # depend on `.', always an invalid library. This was fixed in
22708 # development snapshots of GCC prior to 3.0.
22710 aix4 | aix4.[01] | aix4.[01].*)
22711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22716 can_build_shared=no
22720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22721 # soname into executable. Probably we can add versioning support to
22722 # collect2, so additional links can be useful in future.
22723 if test "$aix_use_runtimelinking" = yes; then
22724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22725 # instead of lib<name>.a to let people know that these are not
22726 # typical AIX shared libraries.
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22729 # We preserve .a as extension for shared libraries through AIX4.2
22730 # and later when we are not doing run time linking.
22731 library_names_spec='${libname}${release}.a $libname.a'
22732 soname_spec='${libname}${release}${shared_ext}$major'
22734 shlibpath_var=LIBPATH
22739 library_names_spec='$libname.ixlibrary $libname.a'
22740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22741 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'
22745 library_names_spec='${libname}${shared_ext}'
22746 dynamic_linker="$host_os ld.so"
22747 shlibpath_var=LIBRARY_PATH
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22756 shlibpath_var=LD_LIBRARY_PATH
22757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22759 # the default ld.so.conf also contains /usr/contrib/lib and
22760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22761 # libtool to hard-code these into programs
22764 cygwin* | mingw* | pw32*)
22765 version_type=windows
22770 case $GCC,$host_os in
22771 yes,cygwin* | yes,mingw* | yes,pw32*)
22772 library_names_spec='$libname.dll.a'
22773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22774 postinstall_cmds='base_file=`basename \${file}`~
22775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22776 dldir=$destdir/`dirname \$dlpath`~
22777 test -d \$dldir || mkdir -p \$dldir~
22778 $install_prog $dir/$dlname \$dldir/$dlname~
22779 chmod a+x \$dldir/$dlname'
22780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22781 dlpath=$dir/\$dldll~
22783 shlibpath_overrides_runpath=yes
22787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22792 # MinGW DLLs use traditional 'lib' prefix
22793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22796 # It is most probably a Windows format PATH printed by
22797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22798 # path with ; separators, and with drive letters. We can handle the
22799 # drive letters (cygwin fileutils understands them), so leave them,
22800 # especially as we might pass files found there to a mingw objdump,
22801 # which wouldn't understand a cygwinified path. Ahh.
22802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22808 # pw32 DLLs use 'pw' prefix rather than 'lib'
22809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22818 dynamic_linker='Win32 ld.exe'
22819 # FIXME: first we should search . and the directory the executable is in
22823 darwin* | rhapsody*)
22824 dynamic_linker="$host_os dyld"
22825 version_type=darwin
22828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22829 soname_spec='${libname}${release}${major}$shared_ext'
22830 shlibpath_overrides_runpath=yes
22831 shlibpath_var=DYLD_LIBRARY_PATH
22832 shrext_cmds='.dylib'
22833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22834 if test "$GCC" = yes; then
22835 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"`
22837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22847 soname_spec='${libname}${release}${shared_ext}$major'
22848 shlibpath_var=LD_LIBRARY_PATH
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 shlibpath_overrides_runpath=no
22863 hardcode_into_libs=yes
22864 dynamic_linker='GNU ld.so'
22867 freebsd* | dragonfly*)
22868 # DragonFly does not have aout. When/if they implement a new
22869 # versioning mechanism, adjust this.
22870 if test -x /usr/bin/objformat; then
22871 objformat=`/usr/bin/objformat`
22874 freebsd[123]*) objformat=aout ;;
22875 *) objformat=elf ;;
22878 version_type=freebsd-$objformat
22879 case $version_type in
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22890 shlibpath_var=LD_LIBRARY_PATH
22893 shlibpath_overrides_runpath=yes
22895 freebsd3.[01]* | freebsdelf3.[01]*)
22896 shlibpath_overrides_runpath=yes
22897 hardcode_into_libs=yes
22899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22901 shlibpath_overrides_runpath=no
22902 hardcode_into_libs=yes
22904 freebsd*) # from 4.6 on
22905 shlibpath_overrides_runpath=yes
22906 hardcode_into_libs=yes
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 hardcode_into_libs=yes
22921 hpux9* | hpux10* | hpux11*)
22922 # Give a soname corresponding to the major version so that dld.sl refuses to
22923 # link against other versions.
22930 hardcode_into_libs=yes
22931 dynamic_linker="$host_os dld.so"
22932 shlibpath_var=LD_LIBRARY_PATH
22933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22935 soname_spec='${libname}${release}${shared_ext}$major'
22936 if test "X$HPUX_IA64_MODE" = X32; then
22937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22945 hardcode_into_libs=yes
22946 dynamic_linker="$host_os dld.sl"
22947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 soname_spec='${libname}${release}${shared_ext}$major'
22951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22956 dynamic_linker="$host_os dld.sl"
22957 shlibpath_var=SHLIB_PATH
22958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22960 soname_spec='${libname}${release}${shared_ext}$major'
22963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22964 postinstall_cmds='chmod 555 $lib'
22971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22974 shlibpath_var=LD_LIBRARY_PATH
22975 shlibpath_overrides_runpath=no
22976 hardcode_into_libs=yes
22979 irix5* | irix6* | nonstopux*)
22981 nonstopux*) version_type=nonstopux ;;
22983 if test "$lt_cv_prog_gnu_ld" = yes; then
22991 soname_spec='${libname}${release}${shared_ext}$major'
22992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22994 irix5* | nonstopux*)
22995 libsuff= shlibsuff=
22998 case $LD in # libtool.m4 will add one of these switches to LD
22999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23000 libsuff= shlibsuff= libmagic=32-bit;;
23001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23002 libsuff=32 shlibsuff=N32 libmagic=N32;;
23003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23005 *) libsuff= shlibsuff= libmagic=never-match;;
23009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23010 shlibpath_overrides_runpath=no
23011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23013 hardcode_into_libs=yes
23016 # No shared lib support for Linux oldld, aout, or coff.
23017 linux*oldld* | linux*aout* | linux*coff*)
23021 # This must be Linux ELF.
23026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23027 soname_spec='${libname}${release}${shared_ext}$major'
23028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23029 shlibpath_var=LD_LIBRARY_PATH
23030 shlibpath_overrides_runpath=no
23031 # This implies no fast_install, which is unacceptable.
23032 # Some rework will be needed to allow for fast_install
23033 # before this can be enabled.
23034 hardcode_into_libs=yes
23036 # Append ld.so.conf contents to the search path
23037 if test -f /etc/ld.so.conf; then
23038 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' ' '`
23039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23042 # We used to test for /lib/ld.so.1 and disable shared libraries on
23043 # powerpc, because MkLinux only supported shared libraries with the
23044 # GNU dynamic linker. Since this was broken with cross compilers,
23045 # most powerpc-linux boxes support dynamic linking these days and
23046 # people can always --disable-shared, the test was removed, and we
23047 # assume the GNU/Linux dynamic linker is in use.
23048 dynamic_linker='GNU/Linux ld.so'
23055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23056 soname_spec='${libname}${release}${shared_ext}$major'
23057 shlibpath_var=LD_LIBRARY_PATH
23058 shlibpath_overrides_runpath=no
23059 hardcode_into_libs=yes
23060 dynamic_linker='GNU ld.so'
23067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23070 dynamic_linker='NetBSD (a.out) ld.so'
23072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23073 soname_spec='${libname}${release}${shared_ext}$major'
23074 dynamic_linker='NetBSD ld.elf_so'
23076 shlibpath_var=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath=yes
23078 hardcode_into_libs=yes
23083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23084 shlibpath_var=LD_LIBRARY_PATH
23085 shlibpath_overrides_runpath=yes
23092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23093 soname_spec='${libname}${release}${shared_ext}$major'
23094 shlibpath_var=LD_LIBRARY_PATH
23095 shlibpath_overrides_runpath=yes
23100 sys_lib_dlsearch_path_spec="/usr/lib"
23102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23105 *) need_version=no ;;
23107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23109 shlibpath_var=LD_LIBRARY_PATH
23110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23112 openbsd2.[89] | openbsd2.[89].*)
23113 shlibpath_overrides_runpath=no
23116 shlibpath_overrides_runpath=yes
23120 shlibpath_overrides_runpath=yes
23125 libname_spec='$name'
23128 library_names_spec='$libname${shared_ext} $libname.a'
23129 dynamic_linker='OS/2 ld.exe'
23130 shlibpath_var=LIBPATH
23133 osf3* | osf4* | osf5*)
23137 soname_spec='${libname}${release}${shared_ext}$major'
23138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23139 shlibpath_var=LD_LIBRARY_PATH
23140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 shlibpath_overrides_runpath=yes
23152 hardcode_into_libs=yes
23153 # ldd complains unless libraries are executable
23154 postinstall_cmds='chmod +x $lib'
23159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23161 shlibpath_var=LD_LIBRARY_PATH
23162 shlibpath_overrides_runpath=yes
23163 if test "$with_gnu_ld" = yes; then
23171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23172 soname_spec='${libname}${release}${shared_ext}$major'
23173 shlibpath_var=LD_LIBRARY_PATH
23174 case $host_vendor in
23176 shlibpath_overrides_runpath=no
23178 export_dynamic_flag_spec='${wl}-Blargedynsym'
23179 runpath_var=LD_RUN_PATH
23187 shlibpath_overrides_runpath=no
23188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23194 if test -d /usr/nec ;then
23196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23197 soname_spec='$libname${shared_ext}.$major'
23198 shlibpath_var=LD_LIBRARY_PATH
23202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23203 version_type=freebsd-elf
23206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23207 soname_spec='${libname}${release}${shared_ext}$major'
23208 shlibpath_var=LD_LIBRARY_PATH
23209 hardcode_into_libs=yes
23210 if test "$with_gnu_ld" = yes; then
23211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23212 shlibpath_overrides_runpath=no
23214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23215 shlibpath_overrides_runpath=yes
23218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23222 sys_lib_dlsearch_path_spec='/usr/lib'
23227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23228 soname_spec='${libname}${release}${shared_ext}$major'
23229 shlibpath_var=LD_LIBRARY_PATH
23236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23237 echo "${ECHO_T}$dynamic_linker" >&6; }
23238 test "$dynamic_linker" = no && can_build_shared=no
23240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23241 if test "$GCC" = yes; then
23242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23247 hardcode_action_F77=
23248 if test -n "$hardcode_libdir_flag_spec_F77" || \
23249 test -n "$runpath_var_F77" || \
23250 test "X$hardcode_automatic_F77" = "Xyes" ; then
23252 # We can hardcode non-existant directories.
23253 if test "$hardcode_direct_F77" != no &&
23254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23255 # have to relink, otherwise we might link with an installed library
23256 # when we should be linking with a yet-to-be-installed one
23257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23258 test "$hardcode_minus_L_F77" != no; then
23259 # Linking always hardcodes the temporary library directory.
23260 hardcode_action_F77=relink
23262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23263 hardcode_action_F77=immediate
23266 # We cannot hardcode anything, or else we can only hardcode existing
23268 hardcode_action_F77=unsupported
23270 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23271 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23273 if test "$hardcode_action_F77" = relink; then
23274 # Fast installation is not supported
23275 enable_fast_install=no
23276 elif test "$shlibpath_overrides_runpath" = yes ||
23277 test "$enable_shared" = no; then
23278 # Fast installation is not necessary
23279 enable_fast_install=needless
23283 # The else clause should only fire when bootstrapping the
23284 # libtool distribution, otherwise you forgot to ship ltmain.sh
23285 # with your package, and you will get complaints that there are
23286 # no rules to generate ltmain.sh.
23287 if test -f "$ltmain"; then
23288 # See if we are running on zsh, and set the options which allow our commands through
23289 # without removal of \ escapes.
23290 if test -n "${ZSH_VERSION+set}" ; then
23291 setopt NO_GLOB_SUBST
23293 # Now quote all the things that may contain metacharacters while being
23294 # careful not to overquote the AC_SUBSTed values. We take copies of the
23295 # variables and quote the copies for generation of the libtool script.
23296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23300 deplibs_check_method reload_flag reload_cmds need_locks \
23301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23302 lt_cv_sys_global_symbol_to_c_name_address \
23303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23304 old_postinstall_cmds old_postuninstall_cmds \
23308 lt_prog_compiler_wl_F77 \
23309 lt_prog_compiler_pic_F77 \
23310 lt_prog_compiler_static_F77 \
23311 lt_prog_compiler_no_builtin_flag_F77 \
23312 export_dynamic_flag_spec_F77 \
23313 thread_safe_flag_spec_F77 \
23314 whole_archive_flag_spec_F77 \
23315 enable_shared_with_static_runtimes_F77 \
23316 old_archive_cmds_F77 \
23317 old_archive_from_new_cmds_F77 \
23318 predep_objects_F77 \
23319 postdep_objects_F77 \
23322 compiler_lib_search_path_F77 \
23324 archive_expsym_cmds_F77 \
23325 postinstall_cmds_F77 \
23326 postuninstall_cmds_F77 \
23327 old_archive_from_expsyms_cmds_F77 \
23328 allow_undefined_flag_F77 \
23329 no_undefined_flag_F77 \
23330 export_symbols_cmds_F77 \
23331 hardcode_libdir_flag_spec_F77 \
23332 hardcode_libdir_flag_spec_ld_F77 \
23333 hardcode_libdir_separator_F77 \
23334 hardcode_automatic_F77 \
23336 module_expsym_cmds_F77 \
23337 lt_cv_prog_compiler_c_o_F77 \
23338 exclude_expsyms_F77 \
23339 include_expsyms_F77; do
23342 old_archive_cmds_F77 | \
23343 old_archive_from_new_cmds_F77 | \
23344 archive_cmds_F77 | \
23345 archive_expsym_cmds_F77 | \
23346 module_cmds_F77 | \
23347 module_expsym_cmds_F77 | \
23348 old_archive_from_expsyms_cmds_F77 | \
23349 export_symbols_cmds_F77 | \
23350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23351 postinstall_cmds | postuninstall_cmds | \
23352 old_postinstall_cmds | old_postuninstall_cmds | \
23353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23354 # Double-quote double-evaled strings.
23355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23364 *'\$0 --fallback-echo"')
23365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23371 cat <<__EOF__ >> "$cfgfile"
23372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23376 # Shell to use when invoking shell scripts.
23379 # Whether or not to build shared libraries.
23380 build_libtool_libs=$enable_shared
23382 # Whether or not to build static libraries.
23383 build_old_libs=$enable_static
23385 # Whether or not to add -lc for building shared libraries.
23386 build_libtool_need_lc=$archive_cmds_need_lc_F77
23388 # Whether or not to disallow shared libs when runtime libs are static
23389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23391 # Whether or not to optimize for fast installation.
23392 fast_install=$enable_fast_install
23395 host_alias=$host_alias
23399 # The build system.
23400 build_alias=$build_alias
23404 # An echo program that does not interpret backslashes.
23409 AR_FLAGS=$lt_AR_FLAGS
23414 # LTCC compiler flags.
23415 LTCFLAGS=$lt_LTCFLAGS
23417 # A language-specific compiler.
23418 CC=$lt_compiler_F77
23420 # Is the compiler the GNU C compiler?
23426 # The linker used to build libraries.
23429 # Whether we need hard or soft links.
23432 # A BSD-compatible nm program.
23435 # A symbol stripping program
23438 # Used to examine libraries when file_magic_cmd begins "file"
23439 MAGIC_CMD=$MAGIC_CMD
23441 # Used on cygwin: DLL creation program.
23444 # Used on cygwin: object dumper.
23447 # Used on cygwin: assembler.
23450 # The name of the directory that contains temporary libtool files.
23453 # How to create reloadable object files.
23454 reload_flag=$lt_reload_flag
23455 reload_cmds=$lt_reload_cmds
23457 # How to pass a linker flag through the compiler.
23458 wl=$lt_lt_prog_compiler_wl_F77
23460 # Object file suffix (normally "o").
23461 objext="$ac_objext"
23463 # Old archive suffix (normally "a").
23466 # Shared library suffix (normally ".so").
23467 shrext_cmds='$shrext_cmds'
23469 # Executable file suffix (normally "").
23472 # Additional compiler flags for building library objects.
23473 pic_flag=$lt_lt_prog_compiler_pic_F77
23476 # What is the maximum length of a command?
23477 max_cmd_len=$lt_cv_sys_max_cmd_len
23479 # Does compiler simultaneously support -c and -o options?
23480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23482 # Must we lock files when doing compilation?
23483 need_locks=$lt_need_locks
23485 # Do we need the lib prefix for modules?
23486 need_lib_prefix=$need_lib_prefix
23488 # Do we need a version for libraries?
23489 need_version=$need_version
23491 # Whether dlopen is supported.
23492 dlopen_support=$enable_dlopen
23494 # Whether dlopen of programs is supported.
23495 dlopen_self=$enable_dlopen_self
23497 # Whether dlopen of statically linked programs is supported.
23498 dlopen_self_static=$enable_dlopen_self_static
23500 # Compiler flag to prevent dynamic linking.
23501 link_static_flag=$lt_lt_prog_compiler_static_F77
23503 # Compiler flag to turn off builtin functions.
23504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23506 # Compiler flag to allow reflexive dlopens.
23507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23509 # Compiler flag to generate shared objects directly from archives.
23510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23512 # Compiler flag to generate thread-safe objects.
23513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23515 # Library versioning type.
23516 version_type=$version_type
23518 # Format of library name prefix.
23519 libname_spec=$lt_libname_spec
23521 # List of archive names. First name is the real one, the rest are links.
23522 # The last name is the one that the linker finds with -lNAME.
23523 library_names_spec=$lt_library_names_spec
23525 # The coded name of the library, if different from the real name.
23526 soname_spec=$lt_soname_spec
23528 # Commands used to build and install an old-style archive.
23530 old_archive_cmds=$lt_old_archive_cmds_F77
23531 old_postinstall_cmds=$lt_old_postinstall_cmds
23532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23534 # Create an old-style archive from a shared archive.
23535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23537 # Create a temporary old-style archive to link instead of a shared archive.
23538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23540 # Commands used to build and install a shared archive.
23541 archive_cmds=$lt_archive_cmds_F77
23542 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23543 postinstall_cmds=$lt_postinstall_cmds
23544 postuninstall_cmds=$lt_postuninstall_cmds
23546 # Commands used to build a loadable module (assumed same as above if empty)
23547 module_cmds=$lt_module_cmds_F77
23548 module_expsym_cmds=$lt_module_expsym_cmds_F77
23550 # Commands to strip libraries.
23551 old_striplib=$lt_old_striplib
23552 striplib=$lt_striplib
23554 # Dependencies to place before the objects being linked to create a
23556 predep_objects=$lt_predep_objects_F77
23558 # Dependencies to place after the objects being linked to create a
23560 postdep_objects=$lt_postdep_objects_F77
23562 # Dependencies to place before the objects being linked to create a
23564 predeps=$lt_predeps_F77
23566 # Dependencies to place after the objects being linked to create a
23568 postdeps=$lt_postdeps_F77
23570 # The library search path used internally by the compiler when linking
23571 # a shared library.
23572 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23574 # Method to check whether dependent libraries are shared objects.
23575 deplibs_check_method=$lt_deplibs_check_method
23577 # Command to use when deplibs_check_method == file_magic.
23578 file_magic_cmd=$lt_file_magic_cmd
23580 # Flag that allows shared libraries with undefined symbols to be built.
23581 allow_undefined_flag=$lt_allow_undefined_flag_F77
23583 # Flag that forces no undefined symbols.
23584 no_undefined_flag=$lt_no_undefined_flag_F77
23586 # Commands used to finish a libtool library installation in a directory.
23587 finish_cmds=$lt_finish_cmds
23589 # Same as above, but a single script fragment to be evaled but not shown.
23590 finish_eval=$lt_finish_eval
23592 # Take the output of nm and produce a listing of raw symbols and C names.
23593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23595 # Transform the output of nm in a proper C declaration
23596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23598 # Transform the output of nm in a C name address pair
23599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23601 # This is the shared library runtime path variable.
23602 runpath_var=$runpath_var
23604 # This is the shared library path variable.
23605 shlibpath_var=$shlibpath_var
23607 # Is shlibpath searched before the hard-coded library search path?
23608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23610 # How to hardcode a shared library path into an executable.
23611 hardcode_action=$hardcode_action_F77
23613 # Whether we should hardcode library paths into libraries.
23614 hardcode_into_libs=$hardcode_into_libs
23616 # Flag to hardcode \$libdir into a binary during linking.
23617 # This must work even if \$libdir does not exist.
23618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23620 # If ld is used when linking, flag to hardcode \$libdir into
23621 # a binary during linking. This must work even if \$libdir does
23623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23625 # Whether we need a single -rpath flag with a separated argument.
23626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23629 # resulting binary.
23630 hardcode_direct=$hardcode_direct_F77
23632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23633 # resulting binary.
23634 hardcode_minus_L=$hardcode_minus_L_F77
23636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23637 # the resulting binary.
23638 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23640 # Set to yes if building a shared library automatically hardcodes DIR into the library
23641 # and all subsequent libraries and executables linked against it.
23642 hardcode_automatic=$hardcode_automatic_F77
23644 # Variables whose values should be saved in libtool wrapper scripts and
23645 # restored at relink time.
23646 variables_saved_for_relink="$variables_saved_for_relink"
23648 # Whether libtool must link a program against all its dependency libraries.
23649 link_all_deplibs=$link_all_deplibs_F77
23651 # Compile-time system search path for libraries
23652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23654 # Run-time system search path for libraries
23655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23657 # Fix the shell variable \$srcfile for the compiler.
23658 fix_srcfile_path="$fix_srcfile_path_F77"
23660 # Set to yes if exported symbols are required.
23661 always_export_symbols=$always_export_symbols_F77
23663 # The commands to list exported symbols.
23664 export_symbols_cmds=$lt_export_symbols_cmds_F77
23666 # The commands to extract the exported symbol list from a shared archive.
23667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23669 # Symbols that should not be listed in the preloaded symbols.
23670 exclude_expsyms=$lt_exclude_expsyms_F77
23672 # Symbols that must always be exported.
23673 include_expsyms=$lt_include_expsyms_F77
23675 # ### END LIBTOOL TAG CONFIG: $tagname
23681 # If there is no Makefile yet, we rely on a make rule to execute
23682 # `config.status --recheck' to rerun these tests and create the
23683 # libtool script then.
23684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23685 if test -f "$ltmain_in"; then
23686 test -f Makefile && make "$ltmain"
23692 ac_cpp='$CPP $CPPFLAGS'
23693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23705 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23707 ac_cpp='$CPP $CPPFLAGS'
23708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23713 # Source file extension for Java test sources.
23716 # Object file extension for compiled Java test sources.
23720 # Code to be used in simple compile tests
23721 lt_simple_compile_test_code="class foo {}\n"
23723 # Code to be used in simple link tests
23724 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23728 # If no C compiler was specified, use CC.
23731 # If no C compiler flags were specified, use CFLAGS.
23732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23734 # Allow CC to be a program name with arguments.
23738 # save warnings/boilerplate of simple test code
23739 ac_outfile=conftest.$ac_objext
23740 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23742 _lt_compiler_boilerplate=`cat conftest.err`
23745 ac_outfile=conftest.$ac_objext
23746 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23748 _lt_linker_boilerplate=`cat conftest.err`
23752 # Allow CC to be a program name with arguments.
23757 for cc_temp in $compiler""; do
23759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23768 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23769 archive_cmds_need_lc_GCJ=no
23771 old_archive_cmds_GCJ=$old_archive_cmds
23774 lt_prog_compiler_no_builtin_flag_GCJ=
23776 if test "$GCC" = yes; then
23777 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23780 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23781 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23782 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 lt_cv_prog_compiler_rtti_exceptions=no
23786 ac_outfile=conftest.$ac_objext
23787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23788 lt_compiler_flag="-fno-rtti -fno-exceptions"
23789 # Insert the option either (1) after the last *FLAGS variable, or
23790 # (2) before a word containing "conftest.", or (3) at the end.
23791 # Note that $ac_compile itself does not contain backslashes and begins
23792 # with a dollar sign (not a hyphen), so the echo should work correctly.
23793 # The option is referenced via a variable to avoid confusing sed.
23794 lt_compile=`echo "$ac_compile" | $SED \
23795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23797 -e 's:$: $lt_compiler_flag:'`
23798 (eval echo "\"\$as_me:23798: $lt_compile\"" >&5)
23799 (eval "$lt_compile" 2>conftest.err)
23801 cat conftest.err >&5
23802 echo "$as_me:23802: \$? = $ac_status" >&5
23803 if (exit $ac_status) && test -s "$ac_outfile"; then
23804 # The compiler can only warn and ignore the option if not recognized
23805 # So say no if there are warnings other than the usual output.
23806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23809 lt_cv_prog_compiler_rtti_exceptions=yes
23815 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23816 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23818 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23819 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23826 lt_prog_compiler_wl_GCJ=
23827 lt_prog_compiler_pic_GCJ=
23828 lt_prog_compiler_static_GCJ=
23830 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23831 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23833 if test "$GCC" = yes; then
23834 lt_prog_compiler_wl_GCJ='-Wl,'
23835 lt_prog_compiler_static_GCJ='-static'
23839 # All AIX code is PIC.
23840 if test "$host_cpu" = ia64; then
23841 # AIX 5 now supports IA64 processor
23842 lt_prog_compiler_static_GCJ='-Bstatic'
23847 # FIXME: we need at least 68020 code to build shared libraries, but
23848 # adding the `-m68020' flag to GCC prevents building anything better,
23850 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23853 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23854 # PIC is the default for these OSes.
23857 mingw* | pw32* | os2*)
23858 # This hack is so that the source file can tell whether it is being
23859 # built for inclusion in a dll (and should export symbols for example).
23860 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23863 darwin* | rhapsody*)
23864 # PIC is the default on this platform
23865 # Common symbols not allowed in MH_DYLIB files
23866 lt_prog_compiler_pic_GCJ='-fno-common'
23870 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23871 # Instead, we relocate shared libraries at runtime.
23875 # Just because we use GCC doesn't mean we suddenly get shared libraries
23876 # on systems that don't support them.
23877 lt_prog_compiler_can_build_shared_GCJ=no
23882 if test -d /usr/nec; then
23883 lt_prog_compiler_pic_GCJ=-Kconform_pic
23888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23889 # not for PA HP-UX.
23895 lt_prog_compiler_pic_GCJ='-fPIC'
23901 lt_prog_compiler_pic_GCJ='-fPIC'
23905 # PORTME Check for flag to pass linker flags through the system compiler.
23908 lt_prog_compiler_wl_GCJ='-Wl,'
23909 if test "$host_cpu" = ia64; then
23910 # AIX 5 now supports IA64 processor
23911 lt_prog_compiler_static_GCJ='-Bstatic'
23913 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23917 # PIC is the default on this platform
23918 # Common symbols not allowed in MH_DYLIB files
23919 case $cc_basename in
23921 lt_prog_compiler_pic_GCJ='-qnocommon'
23922 lt_prog_compiler_wl_GCJ='-Wl,'
23927 mingw* | pw32* | os2*)
23928 # This hack is so that the source file can tell whether it is being
23929 # built for inclusion in a dll (and should export symbols for example).
23930 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23933 hpux9* | hpux10* | hpux11*)
23934 lt_prog_compiler_wl_GCJ='-Wl,'
23935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23936 # not for PA HP-UX.
23942 lt_prog_compiler_pic_GCJ='+Z'
23945 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23946 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23949 irix5* | irix6* | nonstopux*)
23950 lt_prog_compiler_wl_GCJ='-Wl,'
23951 # PIC (with -KPIC) is the default.
23952 lt_prog_compiler_static_GCJ='-non_shared'
23956 lt_prog_compiler_pic_GCJ='-KPIC'
23957 lt_prog_compiler_static_GCJ='-Bstatic'
23961 case $cc_basename in
23963 lt_prog_compiler_wl_GCJ='-Wl,'
23964 lt_prog_compiler_pic_GCJ='-KPIC'
23965 lt_prog_compiler_static_GCJ='-static'
23967 pgcc* | pgf77* | pgf90* | pgf95*)
23968 # Portland Group compilers (*not* the Pentium gcc compiler,
23969 # which looks to be a dead project)
23970 lt_prog_compiler_wl_GCJ='-Wl,'
23971 lt_prog_compiler_pic_GCJ='-fpic'
23972 lt_prog_compiler_static_GCJ='-Bstatic'
23975 lt_prog_compiler_wl_GCJ='-Wl,'
23976 # All Alpha code is PIC.
23977 lt_prog_compiler_static_GCJ='-non_shared'
23982 osf3* | osf4* | osf5*)
23983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 # All OSF/1 code is PIC.
23985 lt_prog_compiler_static_GCJ='-non_shared'
23989 lt_prog_compiler_pic_GCJ='-KPIC'
23990 lt_prog_compiler_static_GCJ='-Bstatic'
23991 case $cc_basename in
23992 f77* | f90* | f95*)
23993 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23995 lt_prog_compiler_wl_GCJ='-Wl,';;
24000 lt_prog_compiler_wl_GCJ='-Qoption ld '
24001 lt_prog_compiler_pic_GCJ='-PIC'
24002 lt_prog_compiler_static_GCJ='-Bstatic'
24005 sysv4 | sysv4.2uw2* | sysv4.3*)
24006 lt_prog_compiler_wl_GCJ='-Wl,'
24007 lt_prog_compiler_pic_GCJ='-KPIC'
24008 lt_prog_compiler_static_GCJ='-Bstatic'
24012 if test -d /usr/nec ;then
24013 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24014 lt_prog_compiler_static_GCJ='-Bstatic'
24018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24019 lt_prog_compiler_wl_GCJ='-Wl,'
24020 lt_prog_compiler_pic_GCJ='-KPIC'
24021 lt_prog_compiler_static_GCJ='-Bstatic'
24025 lt_prog_compiler_wl_GCJ='-Wl,'
24026 lt_prog_compiler_can_build_shared_GCJ=no
24030 lt_prog_compiler_pic_GCJ='-pic'
24031 lt_prog_compiler_static_GCJ='-Bstatic'
24035 lt_prog_compiler_can_build_shared_GCJ=no
24040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24041 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24044 # Check to make sure the PIC flag actually works.
24046 if test -n "$lt_prog_compiler_pic_GCJ"; then
24048 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24050 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 lt_prog_compiler_pic_works_GCJ=no
24054 ac_outfile=conftest.$ac_objext
24055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24056 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24057 # Insert the option either (1) after the last *FLAGS variable, or
24058 # (2) before a word containing "conftest.", or (3) at the end.
24059 # Note that $ac_compile itself does not contain backslashes and begins
24060 # with a dollar sign (not a hyphen), so the echo should work correctly.
24061 # The option is referenced via a variable to avoid confusing sed.
24062 lt_compile=`echo "$ac_compile" | $SED \
24063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24065 -e 's:$: $lt_compiler_flag:'`
24066 (eval echo "\"\$as_me:24066: $lt_compile\"" >&5)
24067 (eval "$lt_compile" 2>conftest.err)
24069 cat conftest.err >&5
24070 echo "$as_me:24070: \$? = $ac_status" >&5
24071 if (exit $ac_status) && test -s "$ac_outfile"; then
24072 # The compiler can only warn and ignore the option if not recognized
24073 # So say no if there are warnings other than the usual output.
24074 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24077 lt_prog_compiler_pic_works_GCJ=yes
24083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24084 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24086 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24087 case $lt_prog_compiler_pic_GCJ in
24089 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24092 lt_prog_compiler_pic_GCJ=
24093 lt_prog_compiler_can_build_shared_GCJ=no
24098 # For platforms which do not support PIC, -DPIC is meaningless:
24100 lt_prog_compiler_pic_GCJ=
24103 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24108 # Check to make sure the static flag actually works.
24110 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24111 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24112 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24113 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24116 lt_prog_compiler_static_works_GCJ=no
24117 save_LDFLAGS="$LDFLAGS"
24118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24119 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24121 # The linker can only warn and ignore the option if not recognized
24122 # So say no if there are warnings
24123 if test -s conftest.err; then
24124 # Append any errors to the config.log.
24125 cat conftest.err 1>&5
24126 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24128 if diff conftest.exp conftest.er2 >/dev/null; then
24129 lt_prog_compiler_static_works_GCJ=yes
24132 lt_prog_compiler_static_works_GCJ=yes
24136 LDFLAGS="$save_LDFLAGS"
24139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24140 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24142 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24145 lt_prog_compiler_static_GCJ=
24149 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24151 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24154 lt_cv_prog_compiler_c_o_GCJ=no
24155 $rm -r conftest 2>/dev/null
24159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24161 lt_compiler_flag="-o out/conftest2.$ac_objext"
24162 # Insert the option either (1) after the last *FLAGS variable, or
24163 # (2) before a word containing "conftest.", or (3) at the end.
24164 # Note that $ac_compile itself does not contain backslashes and begins
24165 # with a dollar sign (not a hyphen), so the echo should work correctly.
24166 lt_compile=`echo "$ac_compile" | $SED \
24167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24169 -e 's:$: $lt_compiler_flag:'`
24170 (eval echo "\"\$as_me:24170: $lt_compile\"" >&5)
24171 (eval "$lt_compile" 2>out/conftest.err)
24173 cat out/conftest.err >&5
24174 echo "$as_me:24174: \$? = $ac_status" >&5
24175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24177 # The compiler can only warn and ignore the option if not recognized
24178 # So say no if there are warnings
24179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24182 lt_cv_prog_compiler_c_o_GCJ=yes
24187 # SGI C++ compiler will create directory out/ii_files/ for
24188 # template instantiation
24189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24190 $rm out/* && rmdir out
24196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24200 hard_links="nottested"
24201 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24202 # do not overwrite the value of need_locks provided by the user
24203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24209 ln conftest.a conftest.b 2>&5 || hard_links=no
24210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24211 { echo "$as_me:$LINENO: result: $hard_links" >&5
24212 echo "${ECHO_T}$hard_links" >&6; }
24213 if test "$hard_links" = no; then
24214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24222 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24226 allow_undefined_flag_GCJ=
24227 enable_shared_with_static_runtimes_GCJ=no
24229 archive_expsym_cmds_GCJ=
24230 old_archive_From_new_cmds_GCJ=
24231 old_archive_from_expsyms_cmds_GCJ=
24232 export_dynamic_flag_spec_GCJ=
24233 whole_archive_flag_spec_GCJ=
24234 thread_safe_flag_spec_GCJ=
24235 hardcode_libdir_flag_spec_GCJ=
24236 hardcode_libdir_flag_spec_ld_GCJ=
24237 hardcode_libdir_separator_GCJ=
24238 hardcode_direct_GCJ=no
24239 hardcode_minus_L_GCJ=no
24240 hardcode_shlibpath_var_GCJ=unsupported
24241 link_all_deplibs_GCJ=unknown
24242 hardcode_automatic_GCJ=no
24244 module_expsym_cmds_GCJ=
24245 always_export_symbols_GCJ=no
24246 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24247 # include_expsyms should be a list of space-separated symbols to be *always*
24248 # included in the symbol list
24249 include_expsyms_GCJ=
24250 # exclude_expsyms can be an extended regexp of symbols to exclude
24251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24253 # as well as any symbol that contains `d'.
24254 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24256 # platforms (ab)use it in PIC code, but their linkers get confused if
24257 # the symbol is explicitly referenced. Since portable code cannot
24258 # rely on this symbol name, it's probably fine to never include it in
24259 # preloaded symbol tables.
24260 extract_expsyms_cmds=
24261 # Just being paranoid about ensuring that cc_basename is set.
24262 for cc_temp in $compiler""; do
24264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24273 cygwin* | mingw* | pw32*)
24274 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24275 # When not using gcc, we currently assume that we are using
24276 # Microsoft Visual C++.
24277 if test "$GCC" != yes; then
24282 # we just hope/assume this is gcc and not c89 (= MSVC++)
24291 if test "$with_gnu_ld" = yes; then
24292 # If archive_cmds runs LD, not CC, wlarc should be empty
24295 # Set some defaults for GNU ld with shared library support. These
24296 # are reset later if shared libraries are not supported. Putting them
24297 # here allows them to be overridden if necessary.
24298 runpath_var=LD_RUN_PATH
24299 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24300 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24301 # ancient GNU ld didn't support --whole-archive et. al.
24302 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24303 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24305 whole_archive_flag_spec_GCJ=
24307 supports_anon_versioning=no
24308 case `$LD -v 2>/dev/null` in
24309 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24310 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24311 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24312 *\ 2.11.*) ;; # other 2.11 versions
24313 *) supports_anon_versioning=yes ;;
24316 # See if GNU ld supports shared libraries.
24318 aix3* | aix4* | aix5*)
24319 # On AIX/PPC, the GNU linker is very broken
24320 if test "$host_cpu" != ia64; then
24324 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24325 *** to be unable to reliably create shared libraries on AIX.
24326 *** Therefore, libtool is disabling shared libraries support. If you
24327 *** really care for shared libraries, you may want to modify your PATH
24328 *** so that a non-GNU linker is found, and then restart.
24335 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)'
24336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24337 hardcode_minus_L_GCJ=yes
24339 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24340 # that the semantics of dynamic libraries on AmigaOS, at least up
24341 # to version 4, is to share data among multiple programs linked
24342 # with the same dynamic library. Since this doesn't match the
24343 # behavior of shared libraries on other platforms, we can't use
24349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350 allow_undefined_flag_GCJ=unsupported
24351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24352 # support --undefined. This deserves some investigation. FIXME
24353 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24359 cygwin* | mingw* | pw32*)
24360 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24361 # as there is no search path for DLLs.
24362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24363 allow_undefined_flag_GCJ=unsupported
24364 always_export_symbols_GCJ=no
24365 enable_shared_with_static_runtimes_GCJ=yes
24366 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24370 # If the export-symbols file already is a .def file (1st line
24371 # is EXPORTS), use it as is; otherwise, prepend...
24372 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24373 cp $export_symbols $output_objdir/$soname.def;
24375 echo EXPORTS > $output_objdir/$soname.def;
24376 cat $export_symbols >> $output_objdir/$soname.def;
24378 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24385 hardcode_direct_GCJ=no
24386 hardcode_shlibpath_var_GCJ=no
24387 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24388 export_dynamic_flag_spec_GCJ='${wl}-E'
24389 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24390 # Instead, shared libraries are loaded at an image base (0x10000000 by
24391 # default) and relocated if they conflict, which is a slow very memory
24392 # consuming and fragmenting process. To avoid this, we pick a random,
24393 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24394 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24395 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'
24396 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'
24400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24402 case $cc_basename,$host_cpu in
24403 pgcc*) # Portland Group C compiler
24404 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'
24405 tmp_addflag=' $pic_flag'
24407 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24408 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'
24409 tmp_addflag=' $pic_flag -Mnomain' ;;
24410 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24411 tmp_addflag=' -i_dynamic' ;;
24412 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24413 tmp_addflag=' -i_dynamic -nofor_main' ;;
24414 ifc* | ifort*) # Intel Fortran compiler
24415 tmp_addflag=' -nofor_main' ;;
24417 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24419 if test $supports_anon_versioning = yes; then
24420 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24422 $echo "local: *; };" >> $output_objdir/$libname.ver~
24423 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24432 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24441 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24445 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24446 *** create shared libraries on Solaris systems. Therefore, libtool
24447 *** is disabling shared libraries support. We urge you to upgrade GNU
24448 *** binutils to release 2.9.1 or newer. Another option is to modify
24449 *** your PATH or compiler configuration so that the native linker is
24450 *** used, and then restart.
24453 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24455 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24462 case `$LD -v 2>&1` in
24463 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24467 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24468 *** reliably create shared libraries on SCO systems. Therefore, libtool
24469 *** is disabling shared libraries support. We urge you to upgrade GNU
24470 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24471 *** your PATH or compiler configuration so that the native linker is
24472 *** used, and then restart.
24477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24478 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24479 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24480 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24489 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24491 hardcode_direct_GCJ=yes
24492 hardcode_shlibpath_var_GCJ=no
24496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24505 if test "$ld_shlibs_GCJ" = no; then
24507 hardcode_libdir_flag_spec_GCJ=
24508 export_dynamic_flag_spec_GCJ=
24509 whole_archive_flag_spec_GCJ=
24512 # PORTME fill in a description of your system's linker (not GNU ld)
24515 allow_undefined_flag_GCJ=unsupported
24516 always_export_symbols_GCJ=yes
24517 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'
24518 # Note: this linker hardcodes the directories in LIBPATH if there
24519 # are no directories specified by -L.
24520 hardcode_minus_L_GCJ=yes
24521 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24522 # Neither direct hardcoding nor static linking is supported with a
24524 hardcode_direct_GCJ=unsupported
24529 if test "$host_cpu" = ia64; then
24530 # On IA64, the linker does run time linking by default, so we don't
24531 # have to do anything special.
24532 aix_use_runtimelinking=no
24533 exp_sym_flag='-Bexport'
24536 # If we're using GNU nm, then we don't want the "-C" option.
24537 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24538 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24539 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'
24541 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'
24543 aix_use_runtimelinking=no
24545 # Test if we are trying to use run time linking or normal
24546 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24547 # need to do runtime linking.
24548 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24549 for ld_flag in $LDFLAGS; do
24550 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24551 aix_use_runtimelinking=yes
24558 exp_sym_flag='-bexport'
24559 no_entry_flag='-bnoentry'
24562 # When large executables or shared objects are built, AIX ld can
24563 # have problems creating the table of contents. If linking a library
24564 # or program results in "error TOC overflow" add -mminimal-toc to
24565 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24566 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24568 archive_cmds_GCJ=''
24569 hardcode_direct_GCJ=yes
24570 hardcode_libdir_separator_GCJ=':'
24571 link_all_deplibs_GCJ=yes
24573 if test "$GCC" = yes; then
24574 case $host_os in aix4.[012]|aix4.[012].*)
24575 # We only want to do this on AIX 4.2 and lower, the check
24576 # below for broken collect2 doesn't work under 4.3+
24577 collect2name=`${CC} -print-prog-name=collect2`
24578 if test -f "$collect2name" && \
24579 strings "$collect2name" | grep resolve_lib_name >/dev/null
24581 # We have reworked collect2
24582 hardcode_direct_GCJ=yes
24584 # We have old collect2
24585 hardcode_direct_GCJ=unsupported
24586 # It fails to find uninstalled libraries when the uninstalled
24587 # path is not listed in the libpath. Setting hardcode_minus_L
24588 # to unsupported forces relinking
24589 hardcode_minus_L_GCJ=yes
24590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24591 hardcode_libdir_separator_GCJ=
24595 shared_flag='-shared'
24596 if test "$aix_use_runtimelinking" = yes; then
24597 shared_flag="$shared_flag "'${wl}-G'
24601 if test "$host_cpu" = ia64; then
24602 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24603 # chokes on -Wl,-G. The following line is correct:
24606 if test "$aix_use_runtimelinking" = yes; then
24607 shared_flag='${wl}-G'
24609 shared_flag='${wl}-bM:SRE'
24614 # It seems that -bexpall does not export symbols beginning with
24615 # underscore (_), so it is better to generate a list of symbols to export.
24616 always_export_symbols_GCJ=yes
24617 if test "$aix_use_runtimelinking" = yes; then
24618 # Warning - without using the other runtime loading flags (-brtl),
24619 # -berok will link without error, but may produce a broken library.
24620 allow_undefined_flag_GCJ='-berok'
24621 # Determine the default libpath from the value encoded in an empty executable.
24622 cat >conftest.$ac_ext <<_ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (ac_try="$ac_link"
24639 case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644 (eval "$ac_link") 2>conftest.er1
24646 grep -v '^ *+' conftest.er1 >conftest.err
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } &&
24651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24652 { (case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_try") 2>&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; } &&
24661 { ac_try='test -s conftest$ac_exeext'
24662 { (case "(($ac_try" in
24663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_try") 2>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; }; then
24672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24674 # Check for a 64-bit object if we didn't find anything.
24675 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; }
24678 echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24684 rm -f core conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
24686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24688 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24689 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"
24691 if test "$host_cpu" = ia64; then
24692 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24693 allow_undefined_flag_GCJ="-z nodefs"
24694 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"
24696 # Determine the default libpath from the value encoded in an empty executable.
24697 cat >conftest.$ac_ext <<_ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24712 rm -f conftest.$ac_objext conftest$ac_exeext
24713 if { (ac_try="$ac_link"
24714 case "(($ac_try" in
24715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_link") 2>conftest.er1
24721 grep -v '^ *+' conftest.er1 >conftest.err
24723 cat conftest.err >&5
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); } &&
24726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24727 { (case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_try") 2>&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; } &&
24736 { ac_try='test -s conftest$ac_exeext'
24737 { (case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742 (eval "$ac_try") 2>&5
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; }; then
24747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24749 # Check for a 64-bit object if we didn't find anything.
24750 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; }
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24759 rm -f core conftest.err conftest.$ac_objext \
24760 conftest$ac_exeext conftest.$ac_ext
24761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24763 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24764 # Warning - without using the other run time loading flags,
24765 # -berok will link without error, but may produce a broken library.
24766 no_undefined_flag_GCJ=' ${wl}-bernotok'
24767 allow_undefined_flag_GCJ=' ${wl}-berok'
24768 # Exported symbols can be pulled into shared objects from archives
24769 whole_archive_flag_spec_GCJ='$convenience'
24770 archive_cmds_need_lc_GCJ=yes
24771 # This is similar to how AIX traditionally builds its shared libraries.
24772 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'
24778 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)'
24779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24780 hardcode_minus_L_GCJ=yes
24781 # see comment about different semantics on the GNU ld section
24786 export_dynamic_flag_spec_GCJ=-rdynamic
24789 cygwin* | mingw* | pw32*)
24790 # When not using gcc, we currently assume that we are using
24791 # Microsoft Visual C++.
24792 # hardcode_libdir_flag_spec is actually meaningless, as there is
24793 # no search path for DLLs.
24794 hardcode_libdir_flag_spec_GCJ=' '
24795 allow_undefined_flag_GCJ=unsupported
24796 # Tell ltmain to make .lib files, not .a files.
24798 # Tell ltmain to make .dll files, not .so files.
24800 # FIXME: Setting linknames here is a bad hack.
24801 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24802 # The linker will automatically build a .lib file if we build a DLL.
24803 old_archive_From_new_cmds_GCJ='true'
24804 # FIXME: Should let the user specify the lib program.
24805 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24806 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24807 enable_shared_with_static_runtimes_GCJ=yes
24810 darwin* | rhapsody*)
24812 rhapsody* | darwin1.[012])
24813 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24816 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24817 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24819 case ${MACOSX_DEPLOYMENT_TARGET} in
24821 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24824 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24830 archive_cmds_need_lc_GCJ=no
24831 hardcode_direct_GCJ=no
24832 hardcode_automatic_GCJ=yes
24833 hardcode_shlibpath_var_GCJ=unsupported
24834 whole_archive_flag_spec_GCJ=''
24835 link_all_deplibs_GCJ=yes
24836 if test "$GCC" = yes ; then
24837 output_verbose_link_cmd='echo'
24838 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24839 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24840 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24841 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}'
24842 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}'
24844 case $cc_basename in
24846 output_verbose_link_cmd='echo'
24847 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24848 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24849 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24850 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}'
24851 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}'
24861 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24862 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24863 hardcode_shlibpath_var_GCJ=no
24870 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24871 # support. Future versions do this automatically, but an explicit c++rt0.o
24872 # does not break anything, and helps significantly (at the cost of a little
24875 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24876 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24877 hardcode_direct_GCJ=yes
24878 hardcode_shlibpath_var_GCJ=no
24881 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24884 hardcode_direct_GCJ=yes
24885 hardcode_minus_L_GCJ=yes
24886 hardcode_shlibpath_var_GCJ=no
24889 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24890 freebsd* | kfreebsd*-gnu | dragonfly*)
24891 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24892 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24893 hardcode_direct_GCJ=yes
24894 hardcode_shlibpath_var_GCJ=no
24898 if test "$GCC" = yes; then
24899 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'
24901 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'
24903 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24904 hardcode_libdir_separator_GCJ=:
24905 hardcode_direct_GCJ=yes
24907 # hardcode_minus_L: Not really in the search PATH,
24908 # but as the default location of the library.
24909 hardcode_minus_L_GCJ=yes
24910 export_dynamic_flag_spec_GCJ='${wl}-E'
24914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24915 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24917 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24919 if test "$with_gnu_ld" = no; then
24920 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24921 hardcode_libdir_separator_GCJ=:
24923 hardcode_direct_GCJ=yes
24924 export_dynamic_flag_spec_GCJ='${wl}-E'
24926 # hardcode_minus_L: Not really in the search PATH,
24927 # but as the default location of the library.
24928 hardcode_minus_L_GCJ=yes
24933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24936 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24939 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24942 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24948 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24951 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24954 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24958 if test "$with_gnu_ld" = no; then
24959 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24960 hardcode_libdir_separator_GCJ=:
24964 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24965 hardcode_direct_GCJ=no
24966 hardcode_shlibpath_var_GCJ=no
24969 hardcode_direct_GCJ=yes
24970 export_dynamic_flag_spec_GCJ='${wl}-E'
24972 # hardcode_minus_L: Not really in the search PATH,
24973 # but as the default location of the library.
24974 hardcode_minus_L_GCJ=yes
24980 irix5* | irix6* | nonstopux*)
24981 if test "$GCC" = yes; then
24982 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'
24984 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'
24985 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24988 hardcode_libdir_separator_GCJ=:
24989 link_all_deplibs_GCJ=yes
24993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24994 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24996 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24999 hardcode_direct_GCJ=yes
25000 hardcode_shlibpath_var_GCJ=no
25004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25005 hardcode_direct_GCJ=yes
25006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25007 hardcode_libdir_separator_GCJ=:
25008 hardcode_shlibpath_var_GCJ=no
25012 hardcode_direct_GCJ=yes
25013 hardcode_shlibpath_var_GCJ=no
25014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25015 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25016 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25018 export_dynamic_flag_spec_GCJ='${wl}-E'
25021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25022 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25035 hardcode_minus_L_GCJ=yes
25036 allow_undefined_flag_GCJ=unsupported
25037 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'
25038 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25042 if test "$GCC" = yes; then
25043 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25044 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'
25046 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25047 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'
25049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25050 hardcode_libdir_separator_GCJ=:
25053 osf4* | osf5*) # as osf3* with the addition of -msym flag
25054 if test "$GCC" = yes; then
25055 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25056 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'
25057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25059 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25060 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'
25061 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~
25062 $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'
25064 # Both c and cxx compiler support -rpath directly
25065 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25067 hardcode_libdir_separator_GCJ=:
25071 no_undefined_flag_GCJ=' -z text'
25072 if test "$GCC" = yes; then
25074 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25075 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25076 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25079 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25084 hardcode_shlibpath_var_GCJ=no
25086 solaris2.[0-5] | solaris2.[0-5].*) ;;
25088 # The compiler driver will combine linker options so we
25089 # cannot just pass the convience library names through
25090 # without $wl, iff we do not link with $LD.
25091 # Luckily, gcc supports the same syntax we need for Sun Studio.
25092 # Supported since Solaris 2.6 (maybe 2.5.1?)
25095 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25097 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' ;;
25100 link_all_deplibs_GCJ=yes
25104 if test "x$host_vendor" = xsequent; then
25105 # Use $CC to link under sequent, because it throws in some extra .o
25106 # files that make .init and .fini sections work.
25107 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25109 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25112 hardcode_direct_GCJ=yes
25113 hardcode_minus_L_GCJ=yes
25114 hardcode_shlibpath_var_GCJ=no
25118 case $host_vendor in
25120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25121 hardcode_direct_GCJ=yes # is this really true???
25124 ## LD is ld it makes a PLAMLIB
25125 ## CC just makes a GrossModule.
25126 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25127 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25128 hardcode_direct_GCJ=no
25131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25132 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25135 runpath_var='LD_RUN_PATH'
25136 hardcode_shlibpath_var_GCJ=no
25140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141 hardcode_shlibpath_var_GCJ=no
25142 export_dynamic_flag_spec_GCJ='-Bexport'
25146 if test -d /usr/nec; then
25147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25148 hardcode_shlibpath_var_GCJ=no
25149 runpath_var=LD_RUN_PATH
25150 hardcode_runpath_var=yes
25155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25156 no_undefined_flag_GCJ='${wl}-z,text'
25157 archive_cmds_need_lc_GCJ=no
25158 hardcode_shlibpath_var_GCJ=no
25159 runpath_var='LD_RUN_PATH'
25161 if test "$GCC" = yes; then
25162 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25163 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25165 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25170 sysv5* | sco3.2v5* | sco5v6*)
25171 # Note: We can NOT use -z defs as we might desire, because we do not
25172 # link with -lc, and that would cause any symbols used from libc to
25173 # always be unresolved, which means just about no library would
25174 # ever link correctly. If we're not using GNU ld we use -z text
25175 # though, which does catch some bad symbols but isn't as heavy-handed
25177 no_undefined_flag_GCJ='${wl}-z,text'
25178 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25179 archive_cmds_need_lc_GCJ=no
25180 hardcode_shlibpath_var_GCJ=no
25181 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25182 hardcode_libdir_separator_GCJ=':'
25183 link_all_deplibs_GCJ=yes
25184 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25185 runpath_var='LD_RUN_PATH'
25187 if test "$GCC" = yes; then
25188 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25189 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25191 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25198 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25199 hardcode_shlibpath_var_GCJ=no
25208 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25209 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25210 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25213 # Do we need to explicitly link libc?
25215 case "x$archive_cmds_need_lc_GCJ" in
25217 # Assume -lc should be added
25218 archive_cmds_need_lc_GCJ=yes
25220 if test "$enable_shared" = yes && test "$GCC" = yes; then
25221 case $archive_cmds_GCJ in
25223 # FIXME: we may have to deal with multi-command sequences.
25226 # Test whether the compiler implicitly links with -lc since on some
25227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25228 # to ld, don't add -lc before -lgcc.
25229 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25230 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25235 (eval $ac_compile) 2>&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } 2>conftest.err; then
25241 libobjs=conftest.$ac_objext
25243 wl=$lt_prog_compiler_wl_GCJ
25244 pic_flag=$lt_prog_compiler_pic_GCJ
25250 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25251 allow_undefined_flag_GCJ=
25252 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25253 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }
25258 archive_cmds_need_lc_GCJ=no
25260 archive_cmds_need_lc_GCJ=yes
25262 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25264 cat conftest.err 1>&5
25267 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25268 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25275 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25277 library_names_spec=
25278 libname_spec='lib$name'
25282 postuninstall_cmds=
25286 shlibpath_overrides_runpath=unknown
25288 dynamic_linker="$host_os ld.so"
25289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25290 if test "$GCC" = yes; then
25291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25292 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25293 # if the path contains ";" then we assume it to be the separator
25294 # otherwise default to the standard path separator (i.e. ":") - it is
25295 # assumed that no part of a normal pathname contains ";" but that should
25296 # okay in the real world where ";" in dirpaths is itself problematic.
25297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25304 need_lib_prefix=unknown
25305 hardcode_into_libs=no
25307 # when you set need_version to no, make sure it does not cause -set_version
25308 # flags to be left without arguments
25309 need_version=unknown
25314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25315 shlibpath_var=LIBPATH
25317 # AIX 3 has no versioning support, so we append a major version to the name.
25318 soname_spec='${libname}${release}${shared_ext}$major'
25325 hardcode_into_libs=yes
25326 if test "$host_cpu" = ia64; then
25327 # AIX 5 supports IA64
25328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25329 shlibpath_var=LD_LIBRARY_PATH
25331 # With GCC up to 2.95.x, collect2 would create an import file
25332 # for dependence libraries. The import file would start with
25333 # the line `#! .'. This would cause the generated library to
25334 # depend on `.', always an invalid library. This was fixed in
25335 # development snapshots of GCC prior to 3.0.
25337 aix4 | aix4.[01] | aix4.[01].*)
25338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25340 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25343 can_build_shared=no
25347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25348 # soname into executable. Probably we can add versioning support to
25349 # collect2, so additional links can be useful in future.
25350 if test "$aix_use_runtimelinking" = yes; then
25351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25352 # instead of lib<name>.a to let people know that these are not
25353 # typical AIX shared libraries.
25354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25356 # We preserve .a as extension for shared libraries through AIX4.2
25357 # and later when we are not doing run time linking.
25358 library_names_spec='${libname}${release}.a $libname.a'
25359 soname_spec='${libname}${release}${shared_ext}$major'
25361 shlibpath_var=LIBPATH
25366 library_names_spec='$libname.ixlibrary $libname.a'
25367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25368 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'
25372 library_names_spec='${libname}${shared_ext}'
25373 dynamic_linker="$host_os ld.so"
25374 shlibpath_var=LIBRARY_PATH
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25381 soname_spec='${libname}${release}${shared_ext}$major'
25382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25383 shlibpath_var=LD_LIBRARY_PATH
25384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25386 # the default ld.so.conf also contains /usr/contrib/lib and
25387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25388 # libtool to hard-code these into programs
25391 cygwin* | mingw* | pw32*)
25392 version_type=windows
25397 case $GCC,$host_os in
25398 yes,cygwin* | yes,mingw* | yes,pw32*)
25399 library_names_spec='$libname.dll.a'
25400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25401 postinstall_cmds='base_file=`basename \${file}`~
25402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25403 dldir=$destdir/`dirname \$dlpath`~
25404 test -d \$dldir || mkdir -p \$dldir~
25405 $install_prog $dir/$dlname \$dldir/$dlname~
25406 chmod a+x \$dldir/$dlname'
25407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25408 dlpath=$dir/\$dldll~
25410 shlibpath_overrides_runpath=yes
25414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25416 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25419 # MinGW DLLs use traditional 'lib' prefix
25420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25422 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25423 # It is most probably a Windows format PATH printed by
25424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25425 # path with ; separators, and with drive letters. We can handle the
25426 # drive letters (cygwin fileutils understands them), so leave them,
25427 # especially as we might pass files found there to a mingw objdump,
25428 # which wouldn't understand a cygwinified path. Ahh.
25429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25435 # pw32 DLLs use 'pw' prefix rather than 'lib'
25436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25445 dynamic_linker='Win32 ld.exe'
25446 # FIXME: first we should search . and the directory the executable is in
25450 darwin* | rhapsody*)
25451 dynamic_linker="$host_os dyld"
25452 version_type=darwin
25455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25456 soname_spec='${libname}${release}${major}$shared_ext'
25457 shlibpath_overrides_runpath=yes
25458 shlibpath_var=DYLD_LIBRARY_PATH
25459 shrext_cmds='.dylib'
25460 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25461 if test "$GCC" = yes; then
25462 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"`
25464 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25474 soname_spec='${libname}${release}${shared_ext}$major'
25475 shlibpath_var=LD_LIBRARY_PATH
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25489 shlibpath_overrides_runpath=no
25490 hardcode_into_libs=yes
25491 dynamic_linker='GNU ld.so'
25494 freebsd* | dragonfly*)
25495 # DragonFly does not have aout. When/if they implement a new
25496 # versioning mechanism, adjust this.
25497 if test -x /usr/bin/objformat; then
25498 objformat=`/usr/bin/objformat`
25501 freebsd[123]*) objformat=aout ;;
25502 *) objformat=elf ;;
25505 version_type=freebsd-$objformat
25506 case $version_type in
25508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25517 shlibpath_var=LD_LIBRARY_PATH
25520 shlibpath_overrides_runpath=yes
25522 freebsd3.[01]* | freebsdelf3.[01]*)
25523 shlibpath_overrides_runpath=yes
25524 hardcode_into_libs=yes
25526 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25527 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25528 shlibpath_overrides_runpath=no
25529 hardcode_into_libs=yes
25531 freebsd*) # from 4.6 on
25532 shlibpath_overrides_runpath=yes
25533 hardcode_into_libs=yes
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 shlibpath_var=LD_LIBRARY_PATH
25545 hardcode_into_libs=yes
25548 hpux9* | hpux10* | hpux11*)
25549 # Give a soname corresponding to the major version so that dld.sl refuses to
25550 # link against other versions.
25557 hardcode_into_libs=yes
25558 dynamic_linker="$host_os dld.so"
25559 shlibpath_var=LD_LIBRARY_PATH
25560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25562 soname_spec='${libname}${release}${shared_ext}$major'
25563 if test "X$HPUX_IA64_MODE" = X32; then
25564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25572 hardcode_into_libs=yes
25573 dynamic_linker="$host_os dld.sl"
25574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25577 soname_spec='${libname}${release}${shared_ext}$major'
25578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25583 dynamic_linker="$host_os dld.sl"
25584 shlibpath_var=SHLIB_PATH
25585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25587 soname_spec='${libname}${release}${shared_ext}$major'
25590 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25591 postinstall_cmds='chmod 555 $lib'
25598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25599 soname_spec='${libname}${release}${shared_ext}$major'
25600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25601 shlibpath_var=LD_LIBRARY_PATH
25602 shlibpath_overrides_runpath=no
25603 hardcode_into_libs=yes
25606 irix5* | irix6* | nonstopux*)
25608 nonstopux*) version_type=nonstopux ;;
25610 if test "$lt_cv_prog_gnu_ld" = yes; then
25618 soname_spec='${libname}${release}${shared_ext}$major'
25619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25621 irix5* | nonstopux*)
25622 libsuff= shlibsuff=
25625 case $LD in # libtool.m4 will add one of these switches to LD
25626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25627 libsuff= shlibsuff= libmagic=32-bit;;
25628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25629 libsuff=32 shlibsuff=N32 libmagic=N32;;
25630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25632 *) libsuff= shlibsuff= libmagic=never-match;;
25636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25637 shlibpath_overrides_runpath=no
25638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25640 hardcode_into_libs=yes
25643 # No shared lib support for Linux oldld, aout, or coff.
25644 linux*oldld* | linux*aout* | linux*coff*)
25648 # This must be Linux ELF.
25653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25654 soname_spec='${libname}${release}${shared_ext}$major'
25655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25656 shlibpath_var=LD_LIBRARY_PATH
25657 shlibpath_overrides_runpath=no
25658 # This implies no fast_install, which is unacceptable.
25659 # Some rework will be needed to allow for fast_install
25660 # before this can be enabled.
25661 hardcode_into_libs=yes
25663 # Append ld.so.conf contents to the search path
25664 if test -f /etc/ld.so.conf; then
25665 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' ' '`
25666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25669 # We used to test for /lib/ld.so.1 and disable shared libraries on
25670 # powerpc, because MkLinux only supported shared libraries with the
25671 # GNU dynamic linker. Since this was broken with cross compilers,
25672 # most powerpc-linux boxes support dynamic linking these days and
25673 # people can always --disable-shared, the test was removed, and we
25674 # assume the GNU/Linux dynamic linker is in use.
25675 dynamic_linker='GNU/Linux ld.so'
25682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25683 soname_spec='${libname}${release}${shared_ext}$major'
25684 shlibpath_var=LD_LIBRARY_PATH
25685 shlibpath_overrides_runpath=no
25686 hardcode_into_libs=yes
25687 dynamic_linker='GNU ld.so'
25694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25697 dynamic_linker='NetBSD (a.out) ld.so'
25699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25700 soname_spec='${libname}${release}${shared_ext}$major'
25701 dynamic_linker='NetBSD ld.elf_so'
25703 shlibpath_var=LD_LIBRARY_PATH
25704 shlibpath_overrides_runpath=yes
25705 hardcode_into_libs=yes
25710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25711 shlibpath_var=LD_LIBRARY_PATH
25712 shlibpath_overrides_runpath=yes
25719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25720 soname_spec='${libname}${release}${shared_ext}$major'
25721 shlibpath_var=LD_LIBRARY_PATH
25722 shlibpath_overrides_runpath=yes
25727 sys_lib_dlsearch_path_spec="/usr/lib"
25729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25732 *) need_version=no ;;
25734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25736 shlibpath_var=LD_LIBRARY_PATH
25737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25739 openbsd2.[89] | openbsd2.[89].*)
25740 shlibpath_overrides_runpath=no
25743 shlibpath_overrides_runpath=yes
25747 shlibpath_overrides_runpath=yes
25752 libname_spec='$name'
25755 library_names_spec='$libname${shared_ext} $libname.a'
25756 dynamic_linker='OS/2 ld.exe'
25757 shlibpath_var=LIBPATH
25760 osf3* | osf4* | osf5*)
25764 soname_spec='${libname}${release}${shared_ext}$major'
25765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25766 shlibpath_var=LD_LIBRARY_PATH
25767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 shlibpath_overrides_runpath=yes
25779 hardcode_into_libs=yes
25780 # ldd complains unless libraries are executable
25781 postinstall_cmds='chmod +x $lib'
25786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25788 shlibpath_var=LD_LIBRARY_PATH
25789 shlibpath_overrides_runpath=yes
25790 if test "$with_gnu_ld" = yes; then
25798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25799 soname_spec='${libname}${release}${shared_ext}$major'
25800 shlibpath_var=LD_LIBRARY_PATH
25801 case $host_vendor in
25803 shlibpath_overrides_runpath=no
25805 export_dynamic_flag_spec='${wl}-Blargedynsym'
25806 runpath_var=LD_RUN_PATH
25814 shlibpath_overrides_runpath=no
25815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25821 if test -d /usr/nec ;then
25823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25824 soname_spec='$libname${shared_ext}.$major'
25825 shlibpath_var=LD_LIBRARY_PATH
25829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25830 version_type=freebsd-elf
25833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25834 soname_spec='${libname}${release}${shared_ext}$major'
25835 shlibpath_var=LD_LIBRARY_PATH
25836 hardcode_into_libs=yes
25837 if test "$with_gnu_ld" = yes; then
25838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25839 shlibpath_overrides_runpath=no
25841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25842 shlibpath_overrides_runpath=yes
25845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25849 sys_lib_dlsearch_path_spec='/usr/lib'
25854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25855 soname_spec='${libname}${release}${shared_ext}$major'
25856 shlibpath_var=LD_LIBRARY_PATH
25863 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25864 echo "${ECHO_T}$dynamic_linker" >&6; }
25865 test "$dynamic_linker" = no && can_build_shared=no
25867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25868 if test "$GCC" = yes; then
25869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25872 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25874 hardcode_action_GCJ=
25875 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25876 test -n "$runpath_var_GCJ" || \
25877 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25879 # We can hardcode non-existant directories.
25880 if test "$hardcode_direct_GCJ" != no &&
25881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25882 # have to relink, otherwise we might link with an installed library
25883 # when we should be linking with a yet-to-be-installed one
25884 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25885 test "$hardcode_minus_L_GCJ" != no; then
25886 # Linking always hardcodes the temporary library directory.
25887 hardcode_action_GCJ=relink
25889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25890 hardcode_action_GCJ=immediate
25893 # We cannot hardcode anything, or else we can only hardcode existing
25895 hardcode_action_GCJ=unsupported
25897 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25898 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25900 if test "$hardcode_action_GCJ" = relink; then
25901 # Fast installation is not supported
25902 enable_fast_install=no
25903 elif test "$shlibpath_overrides_runpath" = yes ||
25904 test "$enable_shared" = no; then
25905 # Fast installation is not necessary
25906 enable_fast_install=needless
25910 # The else clause should only fire when bootstrapping the
25911 # libtool distribution, otherwise you forgot to ship ltmain.sh
25912 # with your package, and you will get complaints that there are
25913 # no rules to generate ltmain.sh.
25914 if test -f "$ltmain"; then
25915 # See if we are running on zsh, and set the options which allow our commands through
25916 # without removal of \ escapes.
25917 if test -n "${ZSH_VERSION+set}" ; then
25918 setopt NO_GLOB_SUBST
25920 # Now quote all the things that may contain metacharacters while being
25921 # careful not to overquote the AC_SUBSTed values. We take copies of the
25922 # variables and quote the copies for generation of the libtool script.
25923 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25925 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25926 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25927 deplibs_check_method reload_flag reload_cmds need_locks \
25928 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25929 lt_cv_sys_global_symbol_to_c_name_address \
25930 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25931 old_postinstall_cmds old_postuninstall_cmds \
25935 lt_prog_compiler_wl_GCJ \
25936 lt_prog_compiler_pic_GCJ \
25937 lt_prog_compiler_static_GCJ \
25938 lt_prog_compiler_no_builtin_flag_GCJ \
25939 export_dynamic_flag_spec_GCJ \
25940 thread_safe_flag_spec_GCJ \
25941 whole_archive_flag_spec_GCJ \
25942 enable_shared_with_static_runtimes_GCJ \
25943 old_archive_cmds_GCJ \
25944 old_archive_from_new_cmds_GCJ \
25945 predep_objects_GCJ \
25946 postdep_objects_GCJ \
25949 compiler_lib_search_path_GCJ \
25951 archive_expsym_cmds_GCJ \
25952 postinstall_cmds_GCJ \
25953 postuninstall_cmds_GCJ \
25954 old_archive_from_expsyms_cmds_GCJ \
25955 allow_undefined_flag_GCJ \
25956 no_undefined_flag_GCJ \
25957 export_symbols_cmds_GCJ \
25958 hardcode_libdir_flag_spec_GCJ \
25959 hardcode_libdir_flag_spec_ld_GCJ \
25960 hardcode_libdir_separator_GCJ \
25961 hardcode_automatic_GCJ \
25963 module_expsym_cmds_GCJ \
25964 lt_cv_prog_compiler_c_o_GCJ \
25965 exclude_expsyms_GCJ \
25966 include_expsyms_GCJ; do
25969 old_archive_cmds_GCJ | \
25970 old_archive_from_new_cmds_GCJ | \
25971 archive_cmds_GCJ | \
25972 archive_expsym_cmds_GCJ | \
25973 module_cmds_GCJ | \
25974 module_expsym_cmds_GCJ | \
25975 old_archive_from_expsyms_cmds_GCJ | \
25976 export_symbols_cmds_GCJ | \
25977 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25978 postinstall_cmds | postuninstall_cmds | \
25979 old_postinstall_cmds | old_postuninstall_cmds | \
25980 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25981 # Double-quote double-evaled strings.
25982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25991 *'\$0 --fallback-echo"')
25992 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25998 cat <<__EOF__ >> "$cfgfile"
25999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26003 # Shell to use when invoking shell scripts.
26006 # Whether or not to build shared libraries.
26007 build_libtool_libs=$enable_shared
26009 # Whether or not to build static libraries.
26010 build_old_libs=$enable_static
26012 # Whether or not to add -lc for building shared libraries.
26013 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26015 # Whether or not to disallow shared libs when runtime libs are static
26016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26018 # Whether or not to optimize for fast installation.
26019 fast_install=$enable_fast_install
26022 host_alias=$host_alias
26026 # The build system.
26027 build_alias=$build_alias
26031 # An echo program that does not interpret backslashes.
26036 AR_FLAGS=$lt_AR_FLAGS
26041 # LTCC compiler flags.
26042 LTCFLAGS=$lt_LTCFLAGS
26044 # A language-specific compiler.
26045 CC=$lt_compiler_GCJ
26047 # Is the compiler the GNU C compiler?
26053 # The linker used to build libraries.
26056 # Whether we need hard or soft links.
26059 # A BSD-compatible nm program.
26062 # A symbol stripping program
26065 # Used to examine libraries when file_magic_cmd begins "file"
26066 MAGIC_CMD=$MAGIC_CMD
26068 # Used on cygwin: DLL creation program.
26071 # Used on cygwin: object dumper.
26074 # Used on cygwin: assembler.
26077 # The name of the directory that contains temporary libtool files.
26080 # How to create reloadable object files.
26081 reload_flag=$lt_reload_flag
26082 reload_cmds=$lt_reload_cmds
26084 # How to pass a linker flag through the compiler.
26085 wl=$lt_lt_prog_compiler_wl_GCJ
26087 # Object file suffix (normally "o").
26088 objext="$ac_objext"
26090 # Old archive suffix (normally "a").
26093 # Shared library suffix (normally ".so").
26094 shrext_cmds='$shrext_cmds'
26096 # Executable file suffix (normally "").
26099 # Additional compiler flags for building library objects.
26100 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26103 # What is the maximum length of a command?
26104 max_cmd_len=$lt_cv_sys_max_cmd_len
26106 # Does compiler simultaneously support -c and -o options?
26107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26109 # Must we lock files when doing compilation?
26110 need_locks=$lt_need_locks
26112 # Do we need the lib prefix for modules?
26113 need_lib_prefix=$need_lib_prefix
26115 # Do we need a version for libraries?
26116 need_version=$need_version
26118 # Whether dlopen is supported.
26119 dlopen_support=$enable_dlopen
26121 # Whether dlopen of programs is supported.
26122 dlopen_self=$enable_dlopen_self
26124 # Whether dlopen of statically linked programs is supported.
26125 dlopen_self_static=$enable_dlopen_self_static
26127 # Compiler flag to prevent dynamic linking.
26128 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26130 # Compiler flag to turn off builtin functions.
26131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26133 # Compiler flag to allow reflexive dlopens.
26134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26136 # Compiler flag to generate shared objects directly from archives.
26137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26139 # Compiler flag to generate thread-safe objects.
26140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26142 # Library versioning type.
26143 version_type=$version_type
26145 # Format of library name prefix.
26146 libname_spec=$lt_libname_spec
26148 # List of archive names. First name is the real one, the rest are links.
26149 # The last name is the one that the linker finds with -lNAME.
26150 library_names_spec=$lt_library_names_spec
26152 # The coded name of the library, if different from the real name.
26153 soname_spec=$lt_soname_spec
26155 # Commands used to build and install an old-style archive.
26157 old_archive_cmds=$lt_old_archive_cmds_GCJ
26158 old_postinstall_cmds=$lt_old_postinstall_cmds
26159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26161 # Create an old-style archive from a shared archive.
26162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26164 # Create a temporary old-style archive to link instead of a shared archive.
26165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26167 # Commands used to build and install a shared archive.
26168 archive_cmds=$lt_archive_cmds_GCJ
26169 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26170 postinstall_cmds=$lt_postinstall_cmds
26171 postuninstall_cmds=$lt_postuninstall_cmds
26173 # Commands used to build a loadable module (assumed same as above if empty)
26174 module_cmds=$lt_module_cmds_GCJ
26175 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26177 # Commands to strip libraries.
26178 old_striplib=$lt_old_striplib
26179 striplib=$lt_striplib
26181 # Dependencies to place before the objects being linked to create a
26183 predep_objects=$lt_predep_objects_GCJ
26185 # Dependencies to place after the objects being linked to create a
26187 postdep_objects=$lt_postdep_objects_GCJ
26189 # Dependencies to place before the objects being linked to create a
26191 predeps=$lt_predeps_GCJ
26193 # Dependencies to place after the objects being linked to create a
26195 postdeps=$lt_postdeps_GCJ
26197 # The library search path used internally by the compiler when linking
26198 # a shared library.
26199 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26201 # Method to check whether dependent libraries are shared objects.
26202 deplibs_check_method=$lt_deplibs_check_method
26204 # Command to use when deplibs_check_method == file_magic.
26205 file_magic_cmd=$lt_file_magic_cmd
26207 # Flag that allows shared libraries with undefined symbols to be built.
26208 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26210 # Flag that forces no undefined symbols.
26211 no_undefined_flag=$lt_no_undefined_flag_GCJ
26213 # Commands used to finish a libtool library installation in a directory.
26214 finish_cmds=$lt_finish_cmds
26216 # Same as above, but a single script fragment to be evaled but not shown.
26217 finish_eval=$lt_finish_eval
26219 # Take the output of nm and produce a listing of raw symbols and C names.
26220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26222 # Transform the output of nm in a proper C declaration
26223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26225 # Transform the output of nm in a C name address pair
26226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26228 # This is the shared library runtime path variable.
26229 runpath_var=$runpath_var
26231 # This is the shared library path variable.
26232 shlibpath_var=$shlibpath_var
26234 # Is shlibpath searched before the hard-coded library search path?
26235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26237 # How to hardcode a shared library path into an executable.
26238 hardcode_action=$hardcode_action_GCJ
26240 # Whether we should hardcode library paths into libraries.
26241 hardcode_into_libs=$hardcode_into_libs
26243 # Flag to hardcode \$libdir into a binary during linking.
26244 # This must work even if \$libdir does not exist.
26245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26247 # If ld is used when linking, flag to hardcode \$libdir into
26248 # a binary during linking. This must work even if \$libdir does
26250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26252 # Whether we need a single -rpath flag with a separated argument.
26253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26256 # resulting binary.
26257 hardcode_direct=$hardcode_direct_GCJ
26259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26260 # resulting binary.
26261 hardcode_minus_L=$hardcode_minus_L_GCJ
26263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26264 # the resulting binary.
26265 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26267 # Set to yes if building a shared library automatically hardcodes DIR into the library
26268 # and all subsequent libraries and executables linked against it.
26269 hardcode_automatic=$hardcode_automatic_GCJ
26271 # Variables whose values should be saved in libtool wrapper scripts and
26272 # restored at relink time.
26273 variables_saved_for_relink="$variables_saved_for_relink"
26275 # Whether libtool must link a program against all its dependency libraries.
26276 link_all_deplibs=$link_all_deplibs_GCJ
26278 # Compile-time system search path for libraries
26279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26281 # Run-time system search path for libraries
26282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26284 # Fix the shell variable \$srcfile for the compiler.
26285 fix_srcfile_path="$fix_srcfile_path_GCJ"
26287 # Set to yes if exported symbols are required.
26288 always_export_symbols=$always_export_symbols_GCJ
26290 # The commands to list exported symbols.
26291 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26293 # The commands to extract the exported symbol list from a shared archive.
26294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26296 # Symbols that should not be listed in the preloaded symbols.
26297 exclude_expsyms=$lt_exclude_expsyms_GCJ
26299 # Symbols that must always be exported.
26300 include_expsyms=$lt_include_expsyms_GCJ
26302 # ### END LIBTOOL TAG CONFIG: $tagname
26308 # If there is no Makefile yet, we rely on a make rule to execute
26309 # `config.status --recheck' to rerun these tests and create the
26310 # libtool script then.
26311 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26312 if test -f "$ltmain_in"; then
26313 test -f Makefile && make "$ltmain"
26319 ac_cpp='$CPP $CPPFLAGS'
26320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26333 ac_cpp='$CPP $CPPFLAGS'
26334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26339 # Source file extension for RC test sources.
26342 # Object file extension for compiled RC test sources.
26346 # Code to be used in simple compile tests
26347 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26349 # Code to be used in simple link tests
26350 lt_simple_link_test_code="$lt_simple_compile_test_code"
26352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26354 # If no C compiler was specified, use CC.
26357 # If no C compiler flags were specified, use CFLAGS.
26358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26360 # Allow CC to be a program name with arguments.
26364 # save warnings/boilerplate of simple test code
26365 ac_outfile=conftest.$ac_objext
26366 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26368 _lt_compiler_boilerplate=`cat conftest.err`
26371 ac_outfile=conftest.$ac_objext
26372 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26374 _lt_linker_boilerplate=`cat conftest.err`
26378 # Allow CC to be a program name with arguments.
26383 for cc_temp in $compiler""; do
26385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26393 lt_cv_prog_compiler_c_o_RC=yes
26395 # The else clause should only fire when bootstrapping the
26396 # libtool distribution, otherwise you forgot to ship ltmain.sh
26397 # with your package, and you will get complaints that there are
26398 # no rules to generate ltmain.sh.
26399 if test -f "$ltmain"; then
26400 # See if we are running on zsh, and set the options which allow our commands through
26401 # without removal of \ escapes.
26402 if test -n "${ZSH_VERSION+set}" ; then
26403 setopt NO_GLOB_SUBST
26405 # Now quote all the things that may contain metacharacters while being
26406 # careful not to overquote the AC_SUBSTed values. We take copies of the
26407 # variables and quote the copies for generation of the libtool script.
26408 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26410 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26411 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26412 deplibs_check_method reload_flag reload_cmds need_locks \
26413 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26414 lt_cv_sys_global_symbol_to_c_name_address \
26415 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26416 old_postinstall_cmds old_postuninstall_cmds \
26420 lt_prog_compiler_wl_RC \
26421 lt_prog_compiler_pic_RC \
26422 lt_prog_compiler_static_RC \
26423 lt_prog_compiler_no_builtin_flag_RC \
26424 export_dynamic_flag_spec_RC \
26425 thread_safe_flag_spec_RC \
26426 whole_archive_flag_spec_RC \
26427 enable_shared_with_static_runtimes_RC \
26428 old_archive_cmds_RC \
26429 old_archive_from_new_cmds_RC \
26430 predep_objects_RC \
26431 postdep_objects_RC \
26434 compiler_lib_search_path_RC \
26436 archive_expsym_cmds_RC \
26437 postinstall_cmds_RC \
26438 postuninstall_cmds_RC \
26439 old_archive_from_expsyms_cmds_RC \
26440 allow_undefined_flag_RC \
26441 no_undefined_flag_RC \
26442 export_symbols_cmds_RC \
26443 hardcode_libdir_flag_spec_RC \
26444 hardcode_libdir_flag_spec_ld_RC \
26445 hardcode_libdir_separator_RC \
26446 hardcode_automatic_RC \
26448 module_expsym_cmds_RC \
26449 lt_cv_prog_compiler_c_o_RC \
26450 exclude_expsyms_RC \
26451 include_expsyms_RC; do
26454 old_archive_cmds_RC | \
26455 old_archive_from_new_cmds_RC | \
26456 archive_cmds_RC | \
26457 archive_expsym_cmds_RC | \
26459 module_expsym_cmds_RC | \
26460 old_archive_from_expsyms_cmds_RC | \
26461 export_symbols_cmds_RC | \
26462 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26463 postinstall_cmds | postuninstall_cmds | \
26464 old_postinstall_cmds | old_postuninstall_cmds | \
26465 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26466 # Double-quote double-evaled strings.
26467 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26476 *'\$0 --fallback-echo"')
26477 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26483 cat <<__EOF__ >> "$cfgfile"
26484 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26488 # Shell to use when invoking shell scripts.
26491 # Whether or not to build shared libraries.
26492 build_libtool_libs=$enable_shared
26494 # Whether or not to build static libraries.
26495 build_old_libs=$enable_static
26497 # Whether or not to add -lc for building shared libraries.
26498 build_libtool_need_lc=$archive_cmds_need_lc_RC
26500 # Whether or not to disallow shared libs when runtime libs are static
26501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26503 # Whether or not to optimize for fast installation.
26504 fast_install=$enable_fast_install
26507 host_alias=$host_alias
26511 # The build system.
26512 build_alias=$build_alias
26516 # An echo program that does not interpret backslashes.
26521 AR_FLAGS=$lt_AR_FLAGS
26526 # LTCC compiler flags.
26527 LTCFLAGS=$lt_LTCFLAGS
26529 # A language-specific compiler.
26532 # Is the compiler the GNU C compiler?
26538 # The linker used to build libraries.
26541 # Whether we need hard or soft links.
26544 # A BSD-compatible nm program.
26547 # A symbol stripping program
26550 # Used to examine libraries when file_magic_cmd begins "file"
26551 MAGIC_CMD=$MAGIC_CMD
26553 # Used on cygwin: DLL creation program.
26556 # Used on cygwin: object dumper.
26559 # Used on cygwin: assembler.
26562 # The name of the directory that contains temporary libtool files.
26565 # How to create reloadable object files.
26566 reload_flag=$lt_reload_flag
26567 reload_cmds=$lt_reload_cmds
26569 # How to pass a linker flag through the compiler.
26570 wl=$lt_lt_prog_compiler_wl_RC
26572 # Object file suffix (normally "o").
26573 objext="$ac_objext"
26575 # Old archive suffix (normally "a").
26578 # Shared library suffix (normally ".so").
26579 shrext_cmds='$shrext_cmds'
26581 # Executable file suffix (normally "").
26584 # Additional compiler flags for building library objects.
26585 pic_flag=$lt_lt_prog_compiler_pic_RC
26588 # What is the maximum length of a command?
26589 max_cmd_len=$lt_cv_sys_max_cmd_len
26591 # Does compiler simultaneously support -c and -o options?
26592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26594 # Must we lock files when doing compilation?
26595 need_locks=$lt_need_locks
26597 # Do we need the lib prefix for modules?
26598 need_lib_prefix=$need_lib_prefix
26600 # Do we need a version for libraries?
26601 need_version=$need_version
26603 # Whether dlopen is supported.
26604 dlopen_support=$enable_dlopen
26606 # Whether dlopen of programs is supported.
26607 dlopen_self=$enable_dlopen_self
26609 # Whether dlopen of statically linked programs is supported.
26610 dlopen_self_static=$enable_dlopen_self_static
26612 # Compiler flag to prevent dynamic linking.
26613 link_static_flag=$lt_lt_prog_compiler_static_RC
26615 # Compiler flag to turn off builtin functions.
26616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26618 # Compiler flag to allow reflexive dlopens.
26619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26621 # Compiler flag to generate shared objects directly from archives.
26622 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26624 # Compiler flag to generate thread-safe objects.
26625 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26627 # Library versioning type.
26628 version_type=$version_type
26630 # Format of library name prefix.
26631 libname_spec=$lt_libname_spec
26633 # List of archive names. First name is the real one, the rest are links.
26634 # The last name is the one that the linker finds with -lNAME.
26635 library_names_spec=$lt_library_names_spec
26637 # The coded name of the library, if different from the real name.
26638 soname_spec=$lt_soname_spec
26640 # Commands used to build and install an old-style archive.
26642 old_archive_cmds=$lt_old_archive_cmds_RC
26643 old_postinstall_cmds=$lt_old_postinstall_cmds
26644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26646 # Create an old-style archive from a shared archive.
26647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26649 # Create a temporary old-style archive to link instead of a shared archive.
26650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26652 # Commands used to build and install a shared archive.
26653 archive_cmds=$lt_archive_cmds_RC
26654 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26655 postinstall_cmds=$lt_postinstall_cmds
26656 postuninstall_cmds=$lt_postuninstall_cmds
26658 # Commands used to build a loadable module (assumed same as above if empty)
26659 module_cmds=$lt_module_cmds_RC
26660 module_expsym_cmds=$lt_module_expsym_cmds_RC
26662 # Commands to strip libraries.
26663 old_striplib=$lt_old_striplib
26664 striplib=$lt_striplib
26666 # Dependencies to place before the objects being linked to create a
26668 predep_objects=$lt_predep_objects_RC
26670 # Dependencies to place after the objects being linked to create a
26672 postdep_objects=$lt_postdep_objects_RC
26674 # Dependencies to place before the objects being linked to create a
26676 predeps=$lt_predeps_RC
26678 # Dependencies to place after the objects being linked to create a
26680 postdeps=$lt_postdeps_RC
26682 # The library search path used internally by the compiler when linking
26683 # a shared library.
26684 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26686 # Method to check whether dependent libraries are shared objects.
26687 deplibs_check_method=$lt_deplibs_check_method
26689 # Command to use when deplibs_check_method == file_magic.
26690 file_magic_cmd=$lt_file_magic_cmd
26692 # Flag that allows shared libraries with undefined symbols to be built.
26693 allow_undefined_flag=$lt_allow_undefined_flag_RC
26695 # Flag that forces no undefined symbols.
26696 no_undefined_flag=$lt_no_undefined_flag_RC
26698 # Commands used to finish a libtool library installation in a directory.
26699 finish_cmds=$lt_finish_cmds
26701 # Same as above, but a single script fragment to be evaled but not shown.
26702 finish_eval=$lt_finish_eval
26704 # Take the output of nm and produce a listing of raw symbols and C names.
26705 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26707 # Transform the output of nm in a proper C declaration
26708 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26710 # Transform the output of nm in a C name address pair
26711 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26713 # This is the shared library runtime path variable.
26714 runpath_var=$runpath_var
26716 # This is the shared library path variable.
26717 shlibpath_var=$shlibpath_var
26719 # Is shlibpath searched before the hard-coded library search path?
26720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26722 # How to hardcode a shared library path into an executable.
26723 hardcode_action=$hardcode_action_RC
26725 # Whether we should hardcode library paths into libraries.
26726 hardcode_into_libs=$hardcode_into_libs
26728 # Flag to hardcode \$libdir into a binary during linking.
26729 # This must work even if \$libdir does not exist.
26730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26732 # If ld is used when linking, flag to hardcode \$libdir into
26733 # a binary during linking. This must work even if \$libdir does
26735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26737 # Whether we need a single -rpath flag with a separated argument.
26738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26740 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26741 # resulting binary.
26742 hardcode_direct=$hardcode_direct_RC
26744 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26745 # resulting binary.
26746 hardcode_minus_L=$hardcode_minus_L_RC
26748 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26749 # the resulting binary.
26750 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26752 # Set to yes if building a shared library automatically hardcodes DIR into the library
26753 # and all subsequent libraries and executables linked against it.
26754 hardcode_automatic=$hardcode_automatic_RC
26756 # Variables whose values should be saved in libtool wrapper scripts and
26757 # restored at relink time.
26758 variables_saved_for_relink="$variables_saved_for_relink"
26760 # Whether libtool must link a program against all its dependency libraries.
26761 link_all_deplibs=$link_all_deplibs_RC
26763 # Compile-time system search path for libraries
26764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26766 # Run-time system search path for libraries
26767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26769 # Fix the shell variable \$srcfile for the compiler.
26770 fix_srcfile_path="$fix_srcfile_path_RC"
26772 # Set to yes if exported symbols are required.
26773 always_export_symbols=$always_export_symbols_RC
26775 # The commands to list exported symbols.
26776 export_symbols_cmds=$lt_export_symbols_cmds_RC
26778 # The commands to extract the exported symbol list from a shared archive.
26779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26781 # Symbols that should not be listed in the preloaded symbols.
26782 exclude_expsyms=$lt_exclude_expsyms_RC
26784 # Symbols that must always be exported.
26785 include_expsyms=$lt_include_expsyms_RC
26787 # ### END LIBTOOL TAG CONFIG: $tagname
26793 # If there is no Makefile yet, we rely on a make rule to execute
26794 # `config.status --recheck' to rerun these tests and create the
26795 # libtool script then.
26796 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26797 if test -f "$ltmain_in"; then
26798 test -f Makefile && make "$ltmain"
26804 ac_cpp='$CPP $CPPFLAGS'
26805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26814 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26815 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26816 { (exit 1); exit 1; }; }
26820 # Append the new tag name to the list of available tags.
26821 if test -n "$tagname" ; then
26822 available_tags="$available_tags $tagname"
26828 # Now substitute the updated list of available tags.
26829 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26830 mv "${ofile}T" "$ofile"
26834 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26835 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26836 { (exit 1); exit 1; }; }
26842 # This can be used to rebuild libtool when needed
26843 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26845 # Always use our own libtool.
26846 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26848 # Prevent multiple expansion
26870 if test "$lt_cv_dlopen_self" = "yes" ; then
26872 cat >>confdefs.h <<\_ACEOF
26873 #define CAN_DLOPEN_SELF 1
26879 if test "$WITH_LLVMGCCDIR" = "default" ; then
26880 LLVMGCC="llvm-gcc${EXEEXT}"
26881 LLVMGXX="llvm-g++${EXEEXT}"
26882 LLVMGCCCOMMAND="$LLVMGCC"
26883 LLVMGXXCOMMAND="$LLVMGXX"
26884 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26886 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26888 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26889 set dummy $LLVMGCC; ac_word=$2
26890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26892 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26893 echo $ECHO_N "(cached) $ECHO_C" >&6
26897 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26901 for as_dir in $PATH
26904 test -z "$as_dir" && as_dir=.
26905 for ac_exec_ext in '' $ac_executable_extensions; do
26906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26907 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26918 LLVMGCC=$ac_cv_path_LLVMGCC
26919 if test -n "$LLVMGCC"; then
26920 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26921 echo "${ECHO_T}$LLVMGCC" >&6; }
26923 { echo "$as_me:$LINENO: result: no" >&5
26924 echo "${ECHO_T}no" >&6; }
26928 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26929 set dummy $LLVMGXX; ac_word=$2
26930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26932 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26933 echo $ECHO_N "(cached) $ECHO_C" >&6
26937 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26941 for as_dir in $PATH
26944 test -z "$as_dir" && as_dir=.
26945 for ac_exec_ext in '' $ac_executable_extensions; do
26946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26947 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26958 LLVMGXX=$ac_cv_path_LLVMGXX
26959 if test -n "$LLVMGXX"; then
26960 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26961 echo "${ECHO_T}$LLVMGXX" >&6; }
26963 { echo "$as_me:$LINENO: result: no" >&5
26964 echo "${ECHO_T}no" >&6; }
26969 if test -z "$LLVMGCC"; then
26970 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26971 LLVMGCCCOMMAND="$LLVMGCC"
26973 if test -z "$LLVMGXX"; then
26974 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26975 LLVMGXXCOMMAND="$LLVMGXX"
26982 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26984 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26989 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26990 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27003 if test "$GCC" != "yes" && test "$ICC" != "yes"
27005 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27006 echo "$as_me: error: gcc|icc required but not found" >&2;}
27007 { (exit 1); exit 1; }; }
27010 if test "$GXX" != "yes" && test "$IXX" != "yes"
27012 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27013 echo "$as_me: error: g++|icc required but not found" >&2;}
27014 { (exit 1); exit 1; }; }
27017 if test "$GCC" = "yes"
27019 cat >conftest.$ac_ext <<_ACEOF
27020 #if !defined(__GNUC__) || __GNUC__ < 3
27021 #error Unsupported GCC version
27025 rm -f conftest.$ac_objext
27026 if { (ac_try="$ac_compile"
27027 case "(($ac_try" in
27028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029 *) ac_try_echo=$ac_try;;
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032 (eval "$ac_compile") 2>conftest.er1
27034 grep -v '^ *+' conftest.er1 >conftest.err
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } &&
27039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27040 { (case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_try") 2>&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; } &&
27049 { ac_try='test -s conftest.$ac_objext'
27050 { (case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055 (eval "$ac_try") 2>&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; }; then
27061 echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27064 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27065 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27066 { (exit 1); exit 1; }; }
27069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27072 if test -z "$llvm_cv_gnu_make_command"
27074 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27075 echo "$as_me: error: GNU Make required but not found" >&2;}
27076 { (exit 1); exit 1; }; }
27079 { echo "$as_me:$LINENO: result: ok" >&5
27080 echo "${ECHO_T}ok" >&6; }
27084 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27085 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27086 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27087 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 ac_check_lib_save_LIBS=$LIBS
27091 cat >conftest.$ac_ext <<_ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h. */
27098 /* Override any GCC internal prototype to avoid an error.
27099 Use char because int might match the return type of a GCC
27100 builtin and then its argument prototype would still apply. */
27108 return elf_begin ();
27113 rm -f conftest.$ac_objext conftest$ac_exeext
27114 if { (ac_try="$ac_link"
27115 case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_link") 2>conftest.er1
27122 grep -v '^ *+' conftest.er1 >conftest.err
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } &&
27127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27128 { (case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_try") 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; } &&
27137 { ac_try='test -s conftest$ac_exeext'
27138 { (case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_try") 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27147 ac_cv_lib_elf_elf_begin=yes
27149 echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27152 ac_cv_lib_elf_elf_begin=no
27155 rm -f core conftest.err conftest.$ac_objext \
27156 conftest$ac_exeext conftest.$ac_ext
27157 LIBS=$ac_check_lib_save_LIBS
27159 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27160 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27161 if test $ac_cv_lib_elf_elf_begin = yes; then
27162 cat >>confdefs.h <<_ACEOF
27163 #define HAVE_LIBELF 1
27171 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27172 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27173 if test "${ac_cv_lib_m_sin+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27176 ac_check_lib_save_LIBS=$LIBS
27178 cat >conftest.$ac_ext <<_ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27185 /* Override any GCC internal prototype to avoid an error.
27186 Use char because int might match the return type of a GCC
27187 builtin and then its argument prototype would still apply. */
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_link") 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
27214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27215 { (case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_try") 2>&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; } &&
27224 { ac_try='test -s conftest$ac_exeext'
27225 { (case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_try") 2>&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; }; then
27234 ac_cv_lib_m_sin=yes
27236 echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27242 rm -f core conftest.err conftest.$ac_objext \
27243 conftest$ac_exeext conftest.$ac_ext
27244 LIBS=$ac_check_lib_save_LIBS
27246 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27247 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27248 if test $ac_cv_lib_m_sin = yes; then
27249 cat >>confdefs.h <<_ACEOF
27250 #define HAVE_LIBM 1
27257 if test "$llvm_cv_os_type" = "MingW" ; then
27259 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27260 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27261 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27262 echo $ECHO_N "(cached) $ECHO_C" >&6
27264 ac_check_lib_save_LIBS=$LIBS
27265 LIBS="-limagehlp $LIBS"
27266 cat >conftest.$ac_ext <<_ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h. */
27282 rm -f conftest.$ac_objext conftest$ac_exeext
27283 if { (ac_try="$ac_link"
27284 case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_link") 2>conftest.er1
27291 grep -v '^ *+' conftest.er1 >conftest.err
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
27296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27297 { (case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_try") 2>&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; } &&
27306 { ac_try='test -s conftest$ac_exeext'
27307 { (case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_try") 2>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; }; then
27316 ac_cv_lib_imagehlp_main=yes
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 ac_cv_lib_imagehlp_main=no
27324 rm -f core conftest.err conftest.$ac_objext \
27325 conftest$ac_exeext conftest.$ac_ext
27326 LIBS=$ac_check_lib_save_LIBS
27328 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27329 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27330 if test $ac_cv_lib_imagehlp_main = yes; then
27331 cat >>confdefs.h <<_ACEOF
27332 #define HAVE_LIBIMAGEHLP 1
27335 LIBS="-limagehlp $LIBS"
27340 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27341 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27342 if test "${ac_cv_lib_psapi_main+set}" = set; then
27343 echo $ECHO_N "(cached) $ECHO_C" >&6
27345 ac_check_lib_save_LIBS=$LIBS
27346 LIBS="-lpsapi $LIBS"
27347 cat >conftest.$ac_ext <<_ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h. */
27363 rm -f conftest.$ac_objext conftest$ac_exeext
27364 if { (ac_try="$ac_link"
27365 case "(($ac_try" in
27366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367 *) ac_try_echo=$ac_try;;
27369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370 (eval "$ac_link") 2>conftest.er1
27372 grep -v '^ *+' conftest.er1 >conftest.err
27374 cat conftest.err >&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } &&
27377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27378 { (case "(($ac_try" in
27379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380 *) ac_try_echo=$ac_try;;
27382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383 (eval "$ac_try") 2>&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; } &&
27387 { ac_try='test -s conftest$ac_exeext'
27388 { (case "(($ac_try" in
27389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390 *) ac_try_echo=$ac_try;;
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393 (eval "$ac_try") 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; }; then
27397 ac_cv_lib_psapi_main=yes
27399 echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27402 ac_cv_lib_psapi_main=no
27405 rm -f core conftest.err conftest.$ac_objext \
27406 conftest$ac_exeext conftest.$ac_ext
27407 LIBS=$ac_check_lib_save_LIBS
27409 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27410 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27411 if test $ac_cv_lib_psapi_main = yes; then
27412 cat >>confdefs.h <<_ACEOF
27413 #define HAVE_LIBPSAPI 1
27416 LIBS="-lpsapi $LIBS"
27422 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27423 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27424 if test "${ac_cv_search_dlopen+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 ac_func_search_save_LIBS=$LIBS
27428 cat >conftest.$ac_ext <<_ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27435 /* Override any GCC internal prototype to avoid an error.
27436 Use char because int might match the return type of a GCC
27437 builtin and then its argument prototype would still apply. */
27450 for ac_lib in '' dl; do
27451 if test -z "$ac_lib"; then
27452 ac_res="none required"
27455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
27466 grep -v '^ *+' conftest.er1 >conftest.err
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
27491 ac_cv_search_dlopen=$ac_res
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27499 rm -f core conftest.err conftest.$ac_objext \
27501 if test "${ac_cv_search_dlopen+set}" = set; then
27505 if test "${ac_cv_search_dlopen+set}" = set; then
27508 ac_cv_search_dlopen=no
27510 rm conftest.$ac_ext
27511 LIBS=$ac_func_search_save_LIBS
27513 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27514 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27515 ac_res=$ac_cv_search_dlopen
27516 if test "$ac_res" != no; then
27517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27519 cat >>confdefs.h <<\_ACEOF
27520 #define HAVE_DLOPEN 1
27524 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27525 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27529 if test "$llvm_cv_enable_libffi" = "yes" ; then
27530 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27531 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27532 if test "${ac_cv_search_ffi_call+set}" = set; then
27533 echo $ECHO_N "(cached) $ECHO_C" >&6
27535 ac_func_search_save_LIBS=$LIBS
27536 cat >conftest.$ac_ext <<_ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h. */
27543 /* Override any GCC internal prototype to avoid an error.
27544 Use char because int might match the return type of a GCC
27545 builtin and then its argument prototype would still apply. */
27553 return ffi_call ();
27558 for ac_lib in '' ffi; do
27559 if test -z "$ac_lib"; then
27560 ac_res="none required"
27563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27565 rm -f conftest.$ac_objext conftest$ac_exeext
27566 if { (ac_try="$ac_link"
27567 case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_link") 2>conftest.er1
27574 grep -v '^ *+' conftest.er1 >conftest.err
27576 cat conftest.err >&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } &&
27579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27580 { (case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_try") 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; } &&
27589 { ac_try='test -s conftest$ac_exeext'
27590 { (case "(($ac_try" in
27591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592 *) ac_try_echo=$ac_try;;
27594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595 (eval "$ac_try") 2>&5
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; }; then
27599 ac_cv_search_ffi_call=$ac_res
27601 echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27607 rm -f core conftest.err conftest.$ac_objext \
27609 if test "${ac_cv_search_ffi_call+set}" = set; then
27613 if test "${ac_cv_search_ffi_call+set}" = set; then
27616 ac_cv_search_ffi_call=no
27618 rm conftest.$ac_ext
27619 LIBS=$ac_func_search_save_LIBS
27621 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27622 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27623 ac_res=$ac_cv_search_ffi_call
27624 if test "$ac_res" != no; then
27625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27627 cat >>confdefs.h <<\_ACEOF
27628 #define HAVE_FFI_CALL 1
27632 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27633 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27638 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27639 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27640 if test "${ac_cv_search_mallinfo+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 ac_func_search_save_LIBS=$LIBS
27644 cat >conftest.$ac_ext <<_ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h. */
27651 /* Override any GCC internal prototype to avoid an error.
27652 Use char because int might match the return type of a GCC
27653 builtin and then its argument prototype would still apply. */
27661 return mallinfo ();
27666 for ac_lib in '' malloc; do
27667 if test -z "$ac_lib"; then
27668 ac_res="none required"
27671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_link") 2>conftest.er1
27682 grep -v '^ *+' conftest.er1 >conftest.err
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } &&
27687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27688 { (case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_try") 2>&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest$ac_exeext'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; }; then
27707 ac_cv_search_mallinfo=$ac_res
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27715 rm -f core conftest.err conftest.$ac_objext \
27717 if test "${ac_cv_search_mallinfo+set}" = set; then
27721 if test "${ac_cv_search_mallinfo+set}" = set; then
27724 ac_cv_search_mallinfo=no
27726 rm conftest.$ac_ext
27727 LIBS=$ac_func_search_save_LIBS
27729 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27730 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27731 ac_res=$ac_cv_search_mallinfo
27732 if test "$ac_res" != no; then
27733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27735 cat >>confdefs.h <<\_ACEOF
27736 #define HAVE_MALLINFO 1
27742 if test "$ENABLE_THREADS" -eq 1 ; then
27744 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27745 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27746 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27747 echo $ECHO_N "(cached) $ECHO_C" >&6
27749 ac_check_lib_save_LIBS=$LIBS
27750 LIBS="-lpthread $LIBS"
27751 cat >conftest.$ac_ext <<_ACEOF
27754 cat confdefs.h >>conftest.$ac_ext
27755 cat >>conftest.$ac_ext <<_ACEOF
27756 /* end confdefs.h. */
27758 /* Override any GCC internal prototype to avoid an error.
27759 Use char because int might match the return type of a GCC
27760 builtin and then its argument prototype would still apply. */
27764 char pthread_mutex_init ();
27768 return pthread_mutex_init ();
27773 rm -f conftest.$ac_objext conftest$ac_exeext
27774 if { (ac_try="$ac_link"
27775 case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_link") 2>conftest.er1
27782 grep -v '^ *+' conftest.er1 >conftest.err
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
27787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } &&
27797 { ac_try='test -s conftest$ac_exeext'
27798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
27807 ac_cv_lib_pthread_pthread_mutex_init=yes
27809 echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27812 ac_cv_lib_pthread_pthread_mutex_init=no
27815 rm -f core conftest.err conftest.$ac_objext \
27816 conftest$ac_exeext conftest.$ac_ext
27817 LIBS=$ac_check_lib_save_LIBS
27819 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27820 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27821 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27822 cat >>confdefs.h <<_ACEOF
27823 #define HAVE_LIBPTHREAD 1
27826 LIBS="-lpthread $LIBS"
27830 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27831 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27832 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27835 ac_func_search_save_LIBS=$LIBS
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27843 /* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27849 char pthread_mutex_lock ();
27853 return pthread_mutex_lock ();
27858 for ac_lib in '' pthread; do
27859 if test -z "$ac_lib"; then
27860 ac_res="none required"
27863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27874 grep -v '^ *+' conftest.er1 >conftest.err
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_cv_search_pthread_mutex_lock=$ac_res
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27907 rm -f core conftest.err conftest.$ac_objext \
27909 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27913 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27916 ac_cv_search_pthread_mutex_lock=no
27918 rm conftest.$ac_ext
27919 LIBS=$ac_func_search_save_LIBS
27921 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27922 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27923 ac_res=$ac_cv_search_pthread_mutex_lock
27924 if test "$ac_res" != no; then
27925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27927 cat >>confdefs.h <<\_ACEOF
27928 #define HAVE_PTHREAD_MUTEX_LOCK 1
27933 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27934 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27935 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27938 ac_func_search_save_LIBS=$LIBS
27939 cat >conftest.$ac_ext <<_ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h. */
27946 /* Override any GCC internal prototype to avoid an error.
27947 Use char because int might match the return type of a GCC
27948 builtin and then its argument prototype would still apply. */
27952 char pthread_rwlock_init ();
27956 return pthread_rwlock_init ();
27961 for ac_lib in '' pthread; do
27962 if test -z "$ac_lib"; then
27963 ac_res="none required"
27966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27968 rm -f conftest.$ac_objext conftest$ac_exeext
27969 if { (ac_try="$ac_link"
27970 case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_link") 2>conftest.er1
27977 grep -v '^ *+' conftest.er1 >conftest.err
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
27993 { (case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_try") 2>&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
28002 ac_cv_search_pthread_rwlock_init=$ac_res
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28010 rm -f core conftest.err conftest.$ac_objext \
28012 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28016 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28019 ac_cv_search_pthread_rwlock_init=no
28021 rm conftest.$ac_ext
28022 LIBS=$ac_func_search_save_LIBS
28024 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28025 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28026 ac_res=$ac_cv_search_pthread_rwlock_init
28027 if test "$ac_res" != no; then
28028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28030 cat >>confdefs.h <<\_ACEOF
28031 #define HAVE_PTHREAD_RWLOCK_INIT 1
28039 # Check whether --with-udis86 was given.
28040 if test "${with_udis86+set}" = set; then
28041 withval=$with_udis86;
28046 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28049 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28050 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28051 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28054 ac_check_lib_save_LIBS=$LIBS
28055 LIBS="-ludis86 $LIBS"
28056 cat >conftest.$ac_ext <<_ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h. */
28063 /* Override any GCC internal prototype to avoid an error.
28064 Use char because int might match the return type of a GCC
28065 builtin and then its argument prototype would still apply. */
28078 rm -f conftest.$ac_objext conftest$ac_exeext
28079 if { (ac_try="$ac_link"
28080 case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_link") 2>conftest.er1
28087 grep -v '^ *+' conftest.er1 >conftest.err
28089 cat conftest.err >&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } &&
28092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28093 { (case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_try") 2>&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest$ac_exeext'
28103 { (case "(($ac_try" in
28104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 *) ac_try_echo=$ac_try;;
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 (eval "$ac_try") 2>&5
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); }; }; then
28112 ac_cv_lib_udis86_ud_init=yes
28114 echo "$as_me: failed program was:" >&5
28115 sed 's/^/| /' conftest.$ac_ext >&5
28117 ac_cv_lib_udis86_ud_init=no
28120 rm -f core conftest.err conftest.$ac_objext \
28121 conftest$ac_exeext conftest.$ac_ext
28122 LIBS=$ac_check_lib_save_LIBS
28124 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28125 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28126 if test $ac_cv_lib_udis86_ud_init = yes; then
28127 cat >>confdefs.h <<_ACEOF
28128 #define HAVE_LIBUDIS86 1
28131 LIBS="-ludis86 $LIBS"
28135 echo "Error! You need to have libudis86 around."
28147 cat >>confdefs.h <<_ACEOF
28148 #define USE_UDIS86 $USE_UDIS86
28158 ac_header_dirent=no
28159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28160 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28161 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28162 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28164 echo $ECHO_N "(cached) $ECHO_C" >&6
28166 cat >conftest.$ac_ext <<_ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28172 #include <sys/types.h>
28184 rm -f conftest.$ac_objext
28185 if { (ac_try="$ac_compile"
28186 case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_compile") 2>conftest.er1
28193 grep -v '^ *+' conftest.er1 >conftest.err
28195 cat conftest.err >&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } &&
28198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28199 { (case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_try") 2>&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; } &&
28208 { ac_try='test -s conftest.$ac_objext'
28209 { (case "(($ac_try" in
28210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211 *) ac_try_echo=$ac_try;;
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214 (eval "$ac_try") 2>&5
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
28218 eval "$as_ac_Header=yes"
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28223 eval "$as_ac_Header=no"
28226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28228 ac_res=`eval echo '${'$as_ac_Header'}'`
28229 { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28232 cat >>confdefs.h <<_ACEOF
28233 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28236 ac_header_dirent=$ac_hdr; break
28240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28241 if test $ac_header_dirent = dirent.h; then
28242 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28243 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28244 if test "${ac_cv_search_opendir+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28247 ac_func_search_save_LIBS=$LIBS
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28255 /* Override any GCC internal prototype to avoid an error.
28256 Use char because int might match the return type of a GCC
28257 builtin and then its argument prototype would still apply. */
28270 for ac_lib in '' dir; do
28271 if test -z "$ac_lib"; then
28272 ac_res="none required"
28275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28277 rm -f conftest.$ac_objext conftest$ac_exeext
28278 if { (ac_try="$ac_link"
28279 case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_link") 2>conftest.er1
28286 grep -v '^ *+' conftest.er1 >conftest.err
28288 cat conftest.err >&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } &&
28291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28292 { (case "(($ac_try" in
28293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294 *) ac_try_echo=$ac_try;;
28296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297 (eval "$ac_try") 2>&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); }; } &&
28301 { ac_try='test -s conftest$ac_exeext'
28302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 ac_cv_search_opendir=$ac_res
28313 echo "$as_me: failed program was:" >&5
28314 sed 's/^/| /' conftest.$ac_ext >&5
28319 rm -f core conftest.err conftest.$ac_objext \
28321 if test "${ac_cv_search_opendir+set}" = set; then
28325 if test "${ac_cv_search_opendir+set}" = set; then
28328 ac_cv_search_opendir=no
28330 rm conftest.$ac_ext
28331 LIBS=$ac_func_search_save_LIBS
28333 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28334 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28335 ac_res=$ac_cv_search_opendir
28336 if test "$ac_res" != no; then
28337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28344 if test "${ac_cv_search_opendir+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28347 ac_func_search_save_LIBS=$LIBS
28348 cat >conftest.$ac_ext <<_ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28355 /* Override any GCC internal prototype to avoid an error.
28356 Use char because int might match the return type of a GCC
28357 builtin and then its argument prototype would still apply. */
28370 for ac_lib in '' x; do
28371 if test -z "$ac_lib"; then
28372 ac_res="none required"
28375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28377 rm -f conftest.$ac_objext conftest$ac_exeext
28378 if { (ac_try="$ac_link"
28379 case "(($ac_try" in
28380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381 *) ac_try_echo=$ac_try;;
28383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384 (eval "$ac_link") 2>conftest.er1
28386 grep -v '^ *+' conftest.er1 >conftest.err
28388 cat conftest.err >&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); } &&
28391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28392 { (case "(($ac_try" in
28393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394 *) ac_try_echo=$ac_try;;
28396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28397 (eval "$ac_try") 2>&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; } &&
28401 { ac_try='test -s conftest$ac_exeext'
28402 { (case "(($ac_try" in
28403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404 *) ac_try_echo=$ac_try;;
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407 (eval "$ac_try") 2>&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); }; }; then
28411 ac_cv_search_opendir=$ac_res
28413 echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28419 rm -f core conftest.err conftest.$ac_objext \
28421 if test "${ac_cv_search_opendir+set}" = set; then
28425 if test "${ac_cv_search_opendir+set}" = set; then
28428 ac_cv_search_opendir=no
28430 rm conftest.$ac_ext
28431 LIBS=$ac_func_search_save_LIBS
28433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28435 ac_res=$ac_cv_search_opendir
28436 if test "$ac_res" != no; then
28437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28443 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28444 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28445 if test "${ac_cv_header_mmap_anon+set}" = set; then
28446 echo $ECHO_N "(cached) $ECHO_C" >&6
28449 ac_cpp='$CPP $CPPFLAGS'
28450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28454 cat >conftest.$ac_ext <<_ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h. */
28460 #include <sys/mman.h>
28461 #include <unistd.h>
28466 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28471 rm -f conftest.$ac_objext
28472 if { (ac_try="$ac_compile"
28473 case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_compile") 2>conftest.er1
28480 grep -v '^ *+' conftest.er1 >conftest.err
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486 { (case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491 (eval "$ac_try") 2>&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); }; } &&
28495 { ac_try='test -s conftest.$ac_objext'
28496 { (case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_try") 2>&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; }; then
28505 ac_cv_header_mmap_anon=yes
28507 echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 ac_cv_header_mmap_anon=no
28513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515 ac_cpp='$CPP $CPPFLAGS'
28516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28522 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28523 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28524 if test "$ac_cv_header_mmap_anon" = yes; then
28526 cat >>confdefs.h <<\_ACEOF
28527 #define HAVE_MMAP_ANONYMOUS 1
28532 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28534 if test "${ac_cv_header_stat_broken+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28537 cat >conftest.$ac_ext <<_ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h. */
28543 #include <sys/types.h>
28544 #include <sys/stat.h>
28546 #if defined S_ISBLK && defined S_IFDIR
28547 # if S_ISBLK (S_IFDIR)
28552 #if defined S_ISBLK && defined S_IFCHR
28553 # if S_ISBLK (S_IFCHR)
28558 #if defined S_ISLNK && defined S_IFREG
28559 # if S_ISLNK (S_IFREG)
28564 #if defined S_ISSOCK && defined S_IFREG
28565 # if S_ISSOCK (S_IFREG)
28571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28572 $EGREP "You lose" >/dev/null 2>&1; then
28573 ac_cv_header_stat_broken=yes
28575 ac_cv_header_stat_broken=no
28580 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28581 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28582 if test $ac_cv_header_stat_broken = yes; then
28584 cat >>confdefs.h <<\_ACEOF
28585 #define STAT_MACROS_BROKEN 1
28590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28592 if test "${ac_cv_header_stdc+set}" = set; then
28593 echo $ECHO_N "(cached) $ECHO_C" >&6
28595 cat >conftest.$ac_ext <<_ACEOF
28598 cat confdefs.h >>conftest.$ac_ext
28599 cat >>conftest.$ac_ext <<_ACEOF
28600 /* end confdefs.h. */
28601 #include <stdlib.h>
28602 #include <stdarg.h>
28603 #include <string.h>
28614 rm -f conftest.$ac_objext
28615 if { (ac_try="$ac_compile"
28616 case "(($ac_try" in
28617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_compile") 2>conftest.er1
28623 grep -v '^ *+' conftest.er1 >conftest.err
28625 cat conftest.err >&5
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); } &&
28628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28629 { (case "(($ac_try" in
28630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631 *) ac_try_echo=$ac_try;;
28633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634 (eval "$ac_try") 2>&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; } &&
28638 { ac_try='test -s conftest.$ac_objext'
28639 { (case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_try") 2>&5
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648 ac_cv_header_stdc=yes
28650 echo "$as_me: failed program was:" >&5
28651 sed 's/^/| /' conftest.$ac_ext >&5
28653 ac_cv_header_stdc=no
28656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28658 if test $ac_cv_header_stdc = yes; then
28659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28660 cat >conftest.$ac_ext <<_ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h. */
28666 #include <string.h>
28669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28670 $EGREP "memchr" >/dev/null 2>&1; then
28673 ac_cv_header_stdc=no
28679 if test $ac_cv_header_stdc = yes; then
28680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28681 cat >conftest.$ac_ext <<_ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h. */
28687 #include <stdlib.h>
28690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28691 $EGREP "free" >/dev/null 2>&1; then
28694 ac_cv_header_stdc=no
28700 if test $ac_cv_header_stdc = yes; then
28701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28702 if test "$cross_compiling" = yes; then
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28712 #include <stdlib.h>
28713 #if ((' ' & 0x0FF) == 0x020)
28714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28717 # define ISLOWER(c) \
28718 (('a' <= (c) && (c) <= 'i') \
28719 || ('j' <= (c) && (c) <= 'r') \
28720 || ('s' <= (c) && (c) <= 'z'))
28721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28729 for (i = 0; i < 256; i++)
28730 if (XOR (islower (i), ISLOWER (i))
28731 || toupper (i) != TOUPPER (i))
28736 rm -f conftest$ac_exeext
28737 if { (ac_try="$ac_link"
28738 case "(($ac_try" in
28739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740 *) ac_try_echo=$ac_try;;
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743 (eval "$ac_link") 2>&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28747 { (case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_try") 2>&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28758 echo "$as_me: program exited with status $ac_status" >&5
28759 echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28762 ( exit $ac_status )
28763 ac_cv_header_stdc=no
28765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28771 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28772 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28773 if test $ac_cv_header_stdc = yes; then
28775 cat >>confdefs.h <<\_ACEOF
28776 #define STDC_HEADERS 1
28781 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28782 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28783 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28786 cat >conftest.$ac_ext <<_ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h. */
28792 #include <sys/types.h>
28793 #include <sys/wait.h>
28794 #ifndef WEXITSTATUS
28795 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28798 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28806 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28811 rm -f conftest.$ac_objext
28812 if { (ac_try="$ac_compile"
28813 case "(($ac_try" in
28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 *) ac_try_echo=$ac_try;;
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_compile") 2>conftest.er1
28820 grep -v '^ *+' conftest.er1 >conftest.err
28822 cat conftest.err >&5
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); } &&
28825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28826 { (case "(($ac_try" in
28827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828 *) ac_try_echo=$ac_try;;
28830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831 (eval "$ac_try") 2>&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; } &&
28835 { ac_try='test -s conftest.$ac_objext'
28836 { (case "(($ac_try" in
28837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838 *) ac_try_echo=$ac_try;;
28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841 (eval "$ac_try") 2>&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
28845 ac_cv_header_sys_wait_h=yes
28847 echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28850 ac_cv_header_sys_wait_h=no
28853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28856 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28857 if test $ac_cv_header_sys_wait_h = yes; then
28859 cat >>confdefs.h <<\_ACEOF
28860 #define HAVE_SYS_WAIT_H 1
28865 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28866 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28867 if test "${ac_cv_header_time+set}" = set; then
28868 echo $ECHO_N "(cached) $ECHO_C" >&6
28870 cat >conftest.$ac_ext <<_ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h. */
28876 #include <sys/types.h>
28877 #include <sys/time.h>
28883 if ((struct tm *) 0)
28889 rm -f conftest.$ac_objext
28890 if { (ac_try="$ac_compile"
28891 case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_compile") 2>conftest.er1
28898 grep -v '^ *+' conftest.er1 >conftest.err
28900 cat conftest.err >&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
28903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28904 { (case "(($ac_try" in
28905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906 *) ac_try_echo=$ac_try;;
28908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909 (eval "$ac_try") 2>&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; } &&
28913 { ac_try='test -s conftest.$ac_objext'
28914 { (case "(($ac_try" in
28915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28919 (eval "$ac_try") 2>&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
28923 ac_cv_header_time=yes
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 ac_cv_header_time=no
28931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28933 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28934 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28935 if test $ac_cv_header_time = yes; then
28937 cat >>confdefs.h <<\_ACEOF
28938 #define TIME_WITH_SYS_TIME 1
28950 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28957 echo $ECHO_N "(cached) $ECHO_C" >&6
28959 ac_res=`eval echo '${'$as_ac_Header'}'`
28960 { echo "$as_me:$LINENO: result: $ac_res" >&5
28961 echo "${ECHO_T}$ac_res" >&6; }
28963 # Is the header compilable?
28964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28966 cat >conftest.$ac_ext <<_ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h. */
28972 $ac_includes_default
28973 #include <$ac_header>
28975 rm -f conftest.$ac_objext
28976 if { (ac_try="$ac_compile"
28977 case "(($ac_try" in
28978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28979 *) ac_try_echo=$ac_try;;
28981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982 (eval "$ac_compile") 2>conftest.er1
28984 grep -v '^ *+' conftest.er1 >conftest.err
28986 cat conftest.err >&5
28987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988 (exit $ac_status); } &&
28989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28990 { (case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_try") 2>&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); }; } &&
28999 { ac_try='test -s conftest.$ac_objext'
29000 { (case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_try") 2>&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
29009 ac_header_compiler=yes
29011 echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29014 ac_header_compiler=no
29017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29019 echo "${ECHO_T}$ac_header_compiler" >&6; }
29021 # Is the header present?
29022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29024 cat >conftest.$ac_ext <<_ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h. */
29030 #include <$ac_header>
29032 if { (ac_try="$ac_cpp conftest.$ac_ext"
29033 case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29040 grep -v '^ *+' conftest.er1 >conftest.err
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); } >/dev/null; then
29045 if test -s conftest.err; then
29046 ac_cpp_err=$ac_c_preproc_warn_flag
29047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29054 if test -z "$ac_cpp_err"; then
29055 ac_header_preproc=yes
29057 echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29060 ac_header_preproc=no
29063 rm -f conftest.err conftest.$ac_ext
29064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29065 echo "${ECHO_T}$ac_header_preproc" >&6; }
29067 # So? What about this header?
29068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29074 ac_header_preproc=yes
29077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29090 ## ----------------------------------- ##
29091 ## Report this to llvmbugs@cs.uiuc.edu ##
29092 ## ----------------------------------- ##
29094 ) | sed "s/^/$as_me: WARNING: /" >&2
29097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29102 eval "$as_ac_Header=\$ac_header_preproc"
29104 ac_res=`eval echo '${'$as_ac_Header'}'`
29105 { echo "$as_me:$LINENO: result: $ac_res" >&5
29106 echo "${ECHO_T}$ac_res" >&6; }
29109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29110 cat >>confdefs.h <<_ACEOF
29111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29124 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29131 echo $ECHO_N "(cached) $ECHO_C" >&6
29133 ac_res=`eval echo '${'$as_ac_Header'}'`
29134 { echo "$as_me:$LINENO: result: $ac_res" >&5
29135 echo "${ECHO_T}$ac_res" >&6; }
29137 # Is the header compilable?
29138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29140 cat >conftest.$ac_ext <<_ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h. */
29146 $ac_includes_default
29147 #include <$ac_header>
29149 rm -f conftest.$ac_objext
29150 if { (ac_try="$ac_compile"
29151 case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_compile") 2>conftest.er1
29158 grep -v '^ *+' conftest.er1 >conftest.err
29160 cat conftest.err >&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); } &&
29163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29164 { (case "(($ac_try" in
29165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166 *) ac_try_echo=$ac_try;;
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169 (eval "$ac_try") 2>&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); }; } &&
29173 { ac_try='test -s conftest.$ac_objext'
29174 { (case "(($ac_try" in
29175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176 *) ac_try_echo=$ac_try;;
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179 (eval "$ac_try") 2>&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; }; then
29183 ac_header_compiler=yes
29185 echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29188 ac_header_compiler=no
29191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29193 echo "${ECHO_T}$ac_header_compiler" >&6; }
29195 # Is the header present?
29196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29198 cat >conftest.$ac_ext <<_ACEOF
29201 cat confdefs.h >>conftest.$ac_ext
29202 cat >>conftest.$ac_ext <<_ACEOF
29203 /* end confdefs.h. */
29204 #include <$ac_header>
29206 if { (ac_try="$ac_cpp conftest.$ac_ext"
29207 case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29214 grep -v '^ *+' conftest.er1 >conftest.err
29216 cat conftest.err >&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); } >/dev/null; then
29219 if test -s conftest.err; then
29220 ac_cpp_err=$ac_c_preproc_warn_flag
29221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29228 if test -z "$ac_cpp_err"; then
29229 ac_header_preproc=yes
29231 echo "$as_me: failed program was:" >&5
29232 sed 's/^/| /' conftest.$ac_ext >&5
29234 ac_header_preproc=no
29237 rm -f conftest.err conftest.$ac_ext
29238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29239 echo "${ECHO_T}$ac_header_preproc" >&6; }
29241 # So? What about this header?
29242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29248 ac_header_preproc=yes
29251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29264 ## ----------------------------------- ##
29265 ## Report this to llvmbugs@cs.uiuc.edu ##
29266 ## ----------------------------------- ##
29268 ) | sed "s/^/$as_me: WARNING: /" >&2
29271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274 echo $ECHO_N "(cached) $ECHO_C" >&6
29276 eval "$as_ac_Header=\$ac_header_preproc"
29278 ac_res=`eval echo '${'$as_ac_Header'}'`
29279 { echo "$as_me:$LINENO: result: $ac_res" >&5
29280 echo "${ECHO_T}$ac_res" >&6; }
29283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29284 cat >>confdefs.h <<_ACEOF
29285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29294 for ac_header in utime.h windows.h
29296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29303 ac_res=`eval echo '${'$as_ac_Header'}'`
29304 { echo "$as_me:$LINENO: result: $ac_res" >&5
29305 echo "${ECHO_T}$ac_res" >&6; }
29307 # Is the header compilable?
29308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29310 cat >conftest.$ac_ext <<_ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h. */
29316 $ac_includes_default
29317 #include <$ac_header>
29319 rm -f conftest.$ac_objext
29320 if { (ac_try="$ac_compile"
29321 case "(($ac_try" in
29322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323 *) ac_try_echo=$ac_try;;
29325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326 (eval "$ac_compile") 2>conftest.er1
29328 grep -v '^ *+' conftest.er1 >conftest.err
29330 cat conftest.err >&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); } &&
29333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29334 { (case "(($ac_try" in
29335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336 *) ac_try_echo=$ac_try;;
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339 (eval "$ac_try") 2>&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; } &&
29343 { ac_try='test -s conftest.$ac_objext'
29344 { (case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_try") 2>&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; }; then
29353 ac_header_compiler=yes
29355 echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29358 ac_header_compiler=no
29361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29363 echo "${ECHO_T}$ac_header_compiler" >&6; }
29365 # Is the header present?
29366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29368 cat >conftest.$ac_ext <<_ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h. */
29374 #include <$ac_header>
29376 if { (ac_try="$ac_cpp conftest.$ac_ext"
29377 case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29384 grep -v '^ *+' conftest.er1 >conftest.err
29386 cat conftest.err >&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); } >/dev/null; then
29389 if test -s conftest.err; then
29390 ac_cpp_err=$ac_c_preproc_warn_flag
29391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29398 if test -z "$ac_cpp_err"; then
29399 ac_header_preproc=yes
29401 echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29404 ac_header_preproc=no
29407 rm -f conftest.err conftest.$ac_ext
29408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29409 echo "${ECHO_T}$ac_header_preproc" >&6; }
29411 # So? What about this header?
29412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29418 ac_header_preproc=yes
29421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29434 ## ----------------------------------- ##
29435 ## Report this to llvmbugs@cs.uiuc.edu ##
29436 ## ----------------------------------- ##
29438 ) | sed "s/^/$as_me: WARNING: /" >&2
29441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 eval "$as_ac_Header=\$ac_header_preproc"
29448 ac_res=`eval echo '${'$as_ac_Header'}'`
29449 { echo "$as_me:$LINENO: result: $ac_res" >&5
29450 echo "${ECHO_T}$ac_res" >&6; }
29453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29454 cat >>confdefs.h <<_ACEOF
29455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29466 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29473 echo $ECHO_N "(cached) $ECHO_C" >&6
29475 ac_res=`eval echo '${'$as_ac_Header'}'`
29476 { echo "$as_me:$LINENO: result: $ac_res" >&5
29477 echo "${ECHO_T}$ac_res" >&6; }
29479 # Is the header compilable?
29480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29482 cat >conftest.$ac_ext <<_ACEOF
29485 cat confdefs.h >>conftest.$ac_ext
29486 cat >>conftest.$ac_ext <<_ACEOF
29487 /* end confdefs.h. */
29488 $ac_includes_default
29489 #include <$ac_header>
29491 rm -f conftest.$ac_objext
29492 if { (ac_try="$ac_compile"
29493 case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_compile") 2>conftest.er1
29500 grep -v '^ *+' conftest.er1 >conftest.err
29502 cat conftest.err >&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } &&
29505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29506 { (case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_try") 2>&5
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; } &&
29515 { ac_try='test -s conftest.$ac_objext'
29516 { (case "(($ac_try" in
29517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29518 *) ac_try_echo=$ac_try;;
29520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29521 (eval "$ac_try") 2>&5
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); }; }; then
29525 ac_header_compiler=yes
29527 echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29530 ac_header_compiler=no
29533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29535 echo "${ECHO_T}$ac_header_compiler" >&6; }
29537 # Is the header present?
29538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29540 cat >conftest.$ac_ext <<_ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h. */
29546 #include <$ac_header>
29548 if { (ac_try="$ac_cpp conftest.$ac_ext"
29549 case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29556 grep -v '^ *+' conftest.er1 >conftest.err
29558 cat conftest.err >&5
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); } >/dev/null; then
29561 if test -s conftest.err; then
29562 ac_cpp_err=$ac_c_preproc_warn_flag
29563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29570 if test -z "$ac_cpp_err"; then
29571 ac_header_preproc=yes
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29576 ac_header_preproc=no
29579 rm -f conftest.err conftest.$ac_ext
29580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29581 echo "${ECHO_T}$ac_header_preproc" >&6; }
29583 # So? What about this header?
29584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29590 ac_header_preproc=yes
29593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29606 ## ----------------------------------- ##
29607 ## Report this to llvmbugs@cs.uiuc.edu ##
29608 ## ----------------------------------- ##
29610 ) | sed "s/^/$as_me: WARNING: /" >&2
29613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29616 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 eval "$as_ac_Header=\$ac_header_preproc"
29620 ac_res=`eval echo '${'$as_ac_Header'}'`
29621 { echo "$as_me:$LINENO: result: $ac_res" >&5
29622 echo "${ECHO_T}$ac_res" >&6; }
29625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29626 cat >>confdefs.h <<_ACEOF
29627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29638 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29645 echo $ECHO_N "(cached) $ECHO_C" >&6
29647 ac_res=`eval echo '${'$as_ac_Header'}'`
29648 { echo "$as_me:$LINENO: result: $ac_res" >&5
29649 echo "${ECHO_T}$ac_res" >&6; }
29651 # Is the header compilable?
29652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29654 cat >conftest.$ac_ext <<_ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h. */
29660 $ac_includes_default
29661 #include <$ac_header>
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_compile") 2>conftest.er1
29672 grep -v '^ *+' conftest.er1 >conftest.err
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } &&
29677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29678 { (case "(($ac_try" in
29679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680 *) ac_try_echo=$ac_try;;
29682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683 (eval "$ac_try") 2>&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; } &&
29687 { ac_try='test -s conftest.$ac_objext'
29688 { (case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693 (eval "$ac_try") 2>&5
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
29697 ac_header_compiler=yes
29699 echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29702 ac_header_compiler=no
29705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29707 echo "${ECHO_T}$ac_header_compiler" >&6; }
29709 # Is the header present?
29710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29712 cat >conftest.$ac_ext <<_ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h. */
29718 #include <$ac_header>
29720 if { (ac_try="$ac_cpp conftest.$ac_ext"
29721 case "(($ac_try" in
29722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723 *) ac_try_echo=$ac_try;;
29725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29728 grep -v '^ *+' conftest.er1 >conftest.err
29730 cat conftest.err >&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); } >/dev/null; then
29733 if test -s conftest.err; then
29734 ac_cpp_err=$ac_c_preproc_warn_flag
29735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29742 if test -z "$ac_cpp_err"; then
29743 ac_header_preproc=yes
29745 echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29748 ac_header_preproc=no
29751 rm -f conftest.err conftest.$ac_ext
29752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29753 echo "${ECHO_T}$ac_header_preproc" >&6; }
29755 # So? What about this header?
29756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29762 ac_header_preproc=yes
29765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29778 ## ----------------------------------- ##
29779 ## Report this to llvmbugs@cs.uiuc.edu ##
29780 ## ----------------------------------- ##
29782 ) | sed "s/^/$as_me: WARNING: /" >&2
29785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29788 echo $ECHO_N "(cached) $ECHO_C" >&6
29790 eval "$as_ac_Header=\$ac_header_preproc"
29792 ac_res=`eval echo '${'$as_ac_Header'}'`
29793 { echo "$as_me:$LINENO: result: $ac_res" >&5
29794 echo "${ECHO_T}$ac_res" >&6; }
29797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29798 cat >>confdefs.h <<_ACEOF
29799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29806 if test "$ENABLE_THREADS" -eq 1 ; then
29808 for ac_header in pthread.h
29810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29815 echo $ECHO_N "(cached) $ECHO_C" >&6
29817 ac_res=`eval echo '${'$as_ac_Header'}'`
29818 { echo "$as_me:$LINENO: result: $ac_res" >&5
29819 echo "${ECHO_T}$ac_res" >&6; }
29821 # Is the header compilable?
29822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29824 cat >conftest.$ac_ext <<_ACEOF
29827 cat confdefs.h >>conftest.$ac_ext
29828 cat >>conftest.$ac_ext <<_ACEOF
29829 /* end confdefs.h. */
29830 $ac_includes_default
29831 #include <$ac_header>
29833 rm -f conftest.$ac_objext
29834 if { (ac_try="$ac_compile"
29835 case "(($ac_try" in
29836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837 *) ac_try_echo=$ac_try;;
29839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840 (eval "$ac_compile") 2>conftest.er1
29842 grep -v '^ *+' conftest.er1 >conftest.err
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); } &&
29847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29848 { (case "(($ac_try" in
29849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29850 *) ac_try_echo=$ac_try;;
29852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29853 (eval "$ac_try") 2>&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest.$ac_objext'
29858 { (case "(($ac_try" in
29859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_try") 2>&5
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; }; then
29867 ac_header_compiler=yes
29869 echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29872 ac_header_compiler=no
29875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29877 echo "${ECHO_T}$ac_header_compiler" >&6; }
29879 # Is the header present?
29880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29882 cat >conftest.$ac_ext <<_ACEOF
29885 cat confdefs.h >>conftest.$ac_ext
29886 cat >>conftest.$ac_ext <<_ACEOF
29887 /* end confdefs.h. */
29888 #include <$ac_header>
29890 if { (ac_try="$ac_cpp conftest.$ac_ext"
29891 case "(($ac_try" in
29892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29893 *) ac_try_echo=$ac_try;;
29895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29898 grep -v '^ *+' conftest.er1 >conftest.err
29900 cat conftest.err >&5
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); } >/dev/null; then
29903 if test -s conftest.err; then
29904 ac_cpp_err=$ac_c_preproc_warn_flag
29905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29912 if test -z "$ac_cpp_err"; then
29913 ac_header_preproc=yes
29915 echo "$as_me: failed program was:" >&5
29916 sed 's/^/| /' conftest.$ac_ext >&5
29918 ac_header_preproc=no
29921 rm -f conftest.err conftest.$ac_ext
29922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29923 echo "${ECHO_T}$ac_header_preproc" >&6; }
29925 # So? What about this header?
29926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29932 ac_header_preproc=yes
29935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29948 ## ----------------------------------- ##
29949 ## Report this to llvmbugs@cs.uiuc.edu ##
29950 ## ----------------------------------- ##
29952 ) | sed "s/^/$as_me: WARNING: /" >&2
29955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
29960 eval "$as_ac_Header=\$ac_header_preproc"
29962 ac_res=`eval echo '${'$as_ac_Header'}'`
29963 { echo "$as_me:$LINENO: result: $ac_res" >&5
29964 echo "${ECHO_T}$ac_res" >&6; }
29967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29968 cat >>confdefs.h <<_ACEOF
29969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29985 if test "$llvm_cv_enable_libffi" = "yes" ; then
29988 for ac_header in ffi.h ffi/ffi.h
29990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29995 echo $ECHO_N "(cached) $ECHO_C" >&6
29997 ac_res=`eval echo '${'$as_ac_Header'}'`
29998 { echo "$as_me:$LINENO: result: $ac_res" >&5
29999 echo "${ECHO_T}$ac_res" >&6; }
30001 # Is the header compilable?
30002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30004 cat >conftest.$ac_ext <<_ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h. */
30010 $ac_includes_default
30011 #include <$ac_header>
30013 rm -f conftest.$ac_objext
30014 if { (ac_try="$ac_compile"
30015 case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_compile") 2>conftest.er1
30022 grep -v '^ *+' conftest.er1 >conftest.err
30024 cat conftest.err >&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); } &&
30027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30028 { (case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_try") 2>&5
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); }; } &&
30037 { ac_try='test -s conftest.$ac_objext'
30038 { (case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_try") 2>&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; }; then
30047 ac_header_compiler=yes
30049 echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30052 ac_header_compiler=no
30055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30057 echo "${ECHO_T}$ac_header_compiler" >&6; }
30059 # Is the header present?
30060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30062 cat >conftest.$ac_ext <<_ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h. */
30068 #include <$ac_header>
30070 if { (ac_try="$ac_cpp conftest.$ac_ext"
30071 case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30078 grep -v '^ *+' conftest.er1 >conftest.err
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } >/dev/null; then
30083 if test -s conftest.err; then
30084 ac_cpp_err=$ac_c_preproc_warn_flag
30085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30092 if test -z "$ac_cpp_err"; then
30093 ac_header_preproc=yes
30095 echo "$as_me: failed program was:" >&5
30096 sed 's/^/| /' conftest.$ac_ext >&5
30098 ac_header_preproc=no
30101 rm -f conftest.err conftest.$ac_ext
30102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30103 echo "${ECHO_T}$ac_header_preproc" >&6; }
30105 # So? What about this header?
30106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30112 ac_header_preproc=yes
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30128 ## ----------------------------------- ##
30129 ## Report this to llvmbugs@cs.uiuc.edu ##
30130 ## ----------------------------------- ##
30132 ) | sed "s/^/$as_me: WARNING: /" >&2
30135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30138 echo $ECHO_N "(cached) $ECHO_C" >&6
30140 eval "$as_ac_Header=\$ac_header_preproc"
30142 ac_res=`eval echo '${'$as_ac_Header'}'`
30143 { echo "$as_me:$LINENO: result: $ac_res" >&5
30144 echo "${ECHO_T}$ac_res" >&6; }
30147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30148 cat >>confdefs.h <<_ACEOF
30149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30160 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30161 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30162 if test "${ac_cv_huge_val_sanity+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30167 ac_cpp='$CXXCPP $CPPFLAGS'
30168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30173 if test "$cross_compiling" = yes; then
30174 ac_cv_huge_val_sanity=yes
30176 cat >conftest.$ac_ext <<_ACEOF
30179 cat confdefs.h >>conftest.$ac_ext
30180 cat >>conftest.$ac_ext <<_ACEOF
30181 /* end confdefs.h. */
30186 double x = HUGE_VAL; return x != x;
30191 rm -f conftest$ac_exeext
30192 if { (ac_try="$ac_link"
30193 case "(($ac_try" in
30194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195 *) ac_try_echo=$ac_try;;
30197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198 (eval "$ac_link") 2>&5
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_huge_val_sanity=yes
30213 echo "$as_me: program exited with status $ac_status" >&5
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30217 ( exit $ac_status )
30218 ac_cv_huge_val_sanity=no
30220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30225 ac_cpp='$CPP $CPPFLAGS'
30226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30232 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30233 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30234 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30237 { echo "$as_me:$LINENO: checking for pid_t" >&5
30238 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30239 if test "${ac_cv_type_pid_t+set}" = set; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30242 cat >conftest.$ac_ext <<_ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h. */
30248 $ac_includes_default
30249 typedef pid_t ac__type_new_;
30253 if ((ac__type_new_ *) 0)
30255 if (sizeof (ac__type_new_))
30261 rm -f conftest.$ac_objext
30262 if { (ac_try="$ac_compile"
30263 case "(($ac_try" in
30264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265 *) ac_try_echo=$ac_try;;
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268 (eval "$ac_compile") 2>conftest.er1
30270 grep -v '^ *+' conftest.er1 >conftest.err
30272 cat conftest.err >&5
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } &&
30275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30276 { (case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_try") 2>&5
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; } &&
30285 { ac_try='test -s conftest.$ac_objext'
30286 { (case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_try") 2>&5
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; }; then
30295 ac_cv_type_pid_t=yes
30297 echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30300 ac_cv_type_pid_t=no
30303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30305 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30306 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30307 if test $ac_cv_type_pid_t = yes; then
30311 cat >>confdefs.h <<_ACEOF
30317 { echo "$as_me:$LINENO: checking for size_t" >&5
30318 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30319 if test "${ac_cv_type_size_t+set}" = set; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30322 cat >conftest.$ac_ext <<_ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h. */
30328 $ac_includes_default
30329 typedef size_t ac__type_new_;
30333 if ((ac__type_new_ *) 0)
30335 if (sizeof (ac__type_new_))
30341 rm -f conftest.$ac_objext
30342 if { (ac_try="$ac_compile"
30343 case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_compile") 2>conftest.er1
30350 grep -v '^ *+' conftest.er1 >conftest.err
30352 cat conftest.err >&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); } &&
30355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30356 { (case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_try") 2>&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; } &&
30365 { ac_try='test -s conftest.$ac_objext'
30366 { (case "(($ac_try" in
30367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368 *) ac_try_echo=$ac_try;;
30370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30371 (eval "$ac_try") 2>&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; }; then
30375 ac_cv_type_size_t=yes
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30380 ac_cv_type_size_t=no
30383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30385 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30386 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30387 if test $ac_cv_type_size_t = yes; then
30391 cat >>confdefs.h <<_ACEOF
30392 #define size_t unsigned int
30397 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30398 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30399 if test "${ac_cv_type_signal+set}" = set; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 cat >conftest.$ac_ext <<_ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h. */
30408 #include <sys/types.h>
30409 #include <signal.h>
30414 return *(signal (0, 0)) (0) == 1;
30419 rm -f conftest.$ac_objext
30420 if { (ac_try="$ac_compile"
30421 case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_compile") 2>conftest.er1
30428 grep -v '^ *+' conftest.er1 >conftest.err
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
30433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30434 { (case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_try") 2>&5
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; } &&
30443 { ac_try='test -s conftest.$ac_objext'
30444 { (case "(($ac_try" in
30445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446 *) ac_try_echo=$ac_try;;
30448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449 (eval "$ac_try") 2>&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); }; }; then
30453 ac_cv_type_signal=int
30455 echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30458 ac_cv_type_signal=void
30461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30463 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30464 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30466 cat >>confdefs.h <<_ACEOF
30467 #define RETSIGTYPE $ac_cv_type_signal
30471 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30473 if test "${ac_cv_struct_tm+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 cat >conftest.$ac_ext <<_ACEOF
30479 cat confdefs.h >>conftest.$ac_ext
30480 cat >>conftest.$ac_ext <<_ACEOF
30481 /* end confdefs.h. */
30482 #include <sys/types.h>
30488 struct tm *tp; tp->tm_sec;
30493 rm -f conftest.$ac_objext
30494 if { (ac_try="$ac_compile"
30495 case "(($ac_try" in
30496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497 *) ac_try_echo=$ac_try;;
30499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30500 (eval "$ac_compile") 2>conftest.er1
30502 grep -v '^ *+' conftest.er1 >conftest.err
30504 cat conftest.err >&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); } &&
30507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30508 { (case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_try") 2>&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; } &&
30517 { ac_try='test -s conftest.$ac_objext'
30518 { (case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_try") 2>&5
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; }; then
30527 ac_cv_struct_tm=time.h
30529 echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30532 ac_cv_struct_tm=sys/time.h
30535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30537 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30538 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30539 if test $ac_cv_struct_tm = sys/time.h; then
30541 cat >>confdefs.h <<\_ACEOF
30542 #define TM_IN_SYS_TIME 1
30547 { echo "$as_me:$LINENO: checking for int64_t" >&5
30548 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30549 if test "${ac_cv_type_int64_t+set}" = set; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30552 cat >conftest.$ac_ext <<_ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h. */
30558 $ac_includes_default
30559 typedef int64_t ac__type_new_;
30563 if ((ac__type_new_ *) 0)
30565 if (sizeof (ac__type_new_))
30571 rm -f conftest.$ac_objext
30572 if { (ac_try="$ac_compile"
30573 case "(($ac_try" in
30574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575 *) ac_try_echo=$ac_try;;
30577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578 (eval "$ac_compile") 2>conftest.er1
30580 grep -v '^ *+' conftest.er1 >conftest.err
30582 cat conftest.err >&5
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); } &&
30585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30586 { (case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_try") 2>&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); }; } &&
30595 { ac_try='test -s conftest.$ac_objext'
30596 { (case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_try") 2>&5
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); }; }; then
30605 ac_cv_type_int64_t=yes
30607 echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30610 ac_cv_type_int64_t=no
30613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30615 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30616 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30617 if test $ac_cv_type_int64_t = yes; then
30619 cat >>confdefs.h <<_ACEOF
30620 #define HAVE_INT64_T 1
30625 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30626 echo "$as_me: error: Type int64_t required but not found" >&2;}
30627 { (exit 1); exit 1; }; }
30630 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30631 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30632 if test "${ac_cv_type_uint64_t+set}" = set; then
30633 echo $ECHO_N "(cached) $ECHO_C" >&6
30635 cat >conftest.$ac_ext <<_ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h. */
30641 $ac_includes_default
30642 typedef uint64_t ac__type_new_;
30646 if ((ac__type_new_ *) 0)
30648 if (sizeof (ac__type_new_))
30654 rm -f conftest.$ac_objext
30655 if { (ac_try="$ac_compile"
30656 case "(($ac_try" in
30657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658 *) ac_try_echo=$ac_try;;
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661 (eval "$ac_compile") 2>conftest.er1
30663 grep -v '^ *+' conftest.er1 >conftest.err
30665 cat conftest.err >&5
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); } &&
30668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30669 { (case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_try") 2>&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); }; } &&
30678 { ac_try='test -s conftest.$ac_objext'
30679 { (case "(($ac_try" in
30680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681 *) ac_try_echo=$ac_try;;
30683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684 (eval "$ac_try") 2>&5
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; }; then
30688 ac_cv_type_uint64_t=yes
30690 echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30693 ac_cv_type_uint64_t=no
30696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30698 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30699 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30700 if test $ac_cv_type_uint64_t = yes; then
30702 cat >>confdefs.h <<_ACEOF
30703 #define HAVE_UINT64_T 1
30708 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30709 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30710 if test "${ac_cv_type_u_int64_t+set}" = set; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30713 cat >conftest.$ac_ext <<_ACEOF
30716 cat confdefs.h >>conftest.$ac_ext
30717 cat >>conftest.$ac_ext <<_ACEOF
30718 /* end confdefs.h. */
30719 $ac_includes_default
30720 typedef u_int64_t ac__type_new_;
30724 if ((ac__type_new_ *) 0)
30726 if (sizeof (ac__type_new_))
30732 rm -f conftest.$ac_objext
30733 if { (ac_try="$ac_compile"
30734 case "(($ac_try" in
30735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_compile") 2>conftest.er1
30741 grep -v '^ *+' conftest.er1 >conftest.err
30743 cat conftest.err >&5
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } &&
30746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30747 { (case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_try") 2>&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; } &&
30756 { ac_try='test -s conftest.$ac_objext'
30757 { (case "(($ac_try" in
30758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759 *) ac_try_echo=$ac_try;;
30761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762 (eval "$ac_try") 2>&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; }; then
30766 ac_cv_type_u_int64_t=yes
30768 echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30771 ac_cv_type_u_int64_t=no
30774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30776 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30777 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30778 if test $ac_cv_type_u_int64_t = yes; then
30780 cat >>confdefs.h <<_ACEOF
30781 #define HAVE_U_INT64_T 1
30786 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30787 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30788 { (exit 1); exit 1; }; }
30802 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30808 echo $ECHO_N "(cached) $ECHO_C" >&6
30810 cat >conftest.$ac_ext <<_ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30818 #define $ac_func innocuous_$ac_func
30820 /* System header to define __stub macros and hopefully few prototypes,
30821 which can conflict with char $ac_func (); below.
30822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30823 <limits.h> exists even on freestanding compilers. */
30826 # include <limits.h>
30828 # include <assert.h>
30833 /* Override any GCC internal prototype to avoid an error.
30834 Use char because int might match the return type of a GCC
30835 builtin and then its argument prototype would still apply. */
30840 /* The GNU C library defines this for functions which it implements
30841 to always fail with ENOSYS. Some functions are actually named
30842 something starting with __ and the normal name is an alias. */
30843 #if defined __stub_$ac_func || defined __stub___$ac_func
30850 return $ac_func ();
30855 rm -f conftest.$ac_objext conftest$ac_exeext
30856 if { (ac_try="$ac_link"
30857 case "(($ac_try" in
30858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859 *) ac_try_echo=$ac_try;;
30861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862 (eval "$ac_link") 2>conftest.er1
30864 grep -v '^ *+' conftest.er1 >conftest.err
30866 cat conftest.err >&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); } &&
30869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30870 { (case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_try") 2>&5
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; } &&
30879 { ac_try='test -s conftest$ac_exeext'
30880 { (case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_try") 2>&5
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); }; }; then
30889 eval "$as_ac_var=yes"
30891 echo "$as_me: failed program was:" >&5
30892 sed 's/^/| /' conftest.$ac_ext >&5
30894 eval "$as_ac_var=no"
30897 rm -f core conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
30900 ac_res=`eval echo '${'$as_ac_var'}'`
30901 { echo "$as_me:$LINENO: result: $ac_res" >&5
30902 echo "${ECHO_T}$ac_res" >&6; }
30903 if test `eval echo '${'$as_ac_var'}'` = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30915 for ac_func in powf fmodf strtof round
30917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30921 echo $ECHO_N "(cached) $ECHO_C" >&6
30923 cat >conftest.$ac_ext <<_ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h. */
30929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30931 #define $ac_func innocuous_$ac_func
30933 /* System header to define __stub macros and hopefully few prototypes,
30934 which can conflict with char $ac_func (); below.
30935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30936 <limits.h> exists even on freestanding compilers. */
30939 # include <limits.h>
30941 # include <assert.h>
30946 /* Override any GCC internal prototype to avoid an error.
30947 Use char because int might match the return type of a GCC
30948 builtin and then its argument prototype would still apply. */
30953 /* The GNU C library defines this for functions which it implements
30954 to always fail with ENOSYS. Some functions are actually named
30955 something starting with __ and the normal name is an alias. */
30956 #if defined __stub_$ac_func || defined __stub___$ac_func
30963 return $ac_func ();
30968 rm -f conftest.$ac_objext conftest$ac_exeext
30969 if { (ac_try="$ac_link"
30970 case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975 (eval "$ac_link") 2>conftest.er1
30977 grep -v '^ *+' conftest.er1 >conftest.err
30979 cat conftest.err >&5
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } &&
30982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30983 { (case "(($ac_try" in
30984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985 *) ac_try_echo=$ac_try;;
30987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988 (eval "$ac_try") 2>&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); }; } &&
30992 { ac_try='test -s conftest$ac_exeext'
30993 { (case "(($ac_try" in
30994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995 *) ac_try_echo=$ac_try;;
30997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998 (eval "$ac_try") 2>&5
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
31002 eval "$as_ac_var=yes"
31004 echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31007 eval "$as_ac_var=no"
31010 rm -f core conftest.err conftest.$ac_objext \
31011 conftest$ac_exeext conftest.$ac_ext
31013 ac_res=`eval echo '${'$as_ac_var'}'`
31014 { echo "$as_me:$LINENO: result: $ac_res" >&5
31015 echo "${ECHO_T}$ac_res" >&6; }
31016 if test `eval echo '${'$as_ac_var'}'` = yes; then
31017 cat >>confdefs.h <<_ACEOF
31018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31029 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31037 cat >conftest.$ac_ext <<_ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h. */
31043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31045 #define $ac_func innocuous_$ac_func
31047 /* System header to define __stub macros and hopefully few prototypes,
31048 which can conflict with char $ac_func (); below.
31049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31050 <limits.h> exists even on freestanding compilers. */
31053 # include <limits.h>
31055 # include <assert.h>
31060 /* Override any GCC internal prototype to avoid an error.
31061 Use char because int might match the return type of a GCC
31062 builtin and then its argument prototype would still apply. */
31067 /* The GNU C library defines this for functions which it implements
31068 to always fail with ENOSYS. Some functions are actually named
31069 something starting with __ and the normal name is an alias. */
31070 #if defined __stub_$ac_func || defined __stub___$ac_func
31077 return $ac_func ();
31082 rm -f conftest.$ac_objext conftest$ac_exeext
31083 if { (ac_try="$ac_link"
31084 case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_link") 2>conftest.er1
31091 grep -v '^ *+' conftest.er1 >conftest.err
31093 cat conftest.err >&5
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); } &&
31096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31097 { (case "(($ac_try" in
31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31099 *) ac_try_echo=$ac_try;;
31101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31102 (eval "$ac_try") 2>&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; } &&
31106 { ac_try='test -s conftest$ac_exeext'
31107 { (case "(($ac_try" in
31108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_try") 2>&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; }; then
31116 eval "$as_ac_var=yes"
31118 echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31121 eval "$as_ac_var=no"
31124 rm -f core conftest.err conftest.$ac_objext \
31125 conftest$ac_exeext conftest.$ac_ext
31127 ac_res=`eval echo '${'$as_ac_var'}'`
31128 { echo "$as_me:$LINENO: result: $ac_res" >&5
31129 echo "${ECHO_T}$ac_res" >&6; }
31130 if test `eval echo '${'$as_ac_var'}'` = yes; then
31131 cat >>confdefs.h <<_ACEOF
31132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31141 for ac_func in isatty mkdtemp mkstemp
31143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31147 echo $ECHO_N "(cached) $ECHO_C" >&6
31149 cat >conftest.$ac_ext <<_ACEOF
31152 cat confdefs.h >>conftest.$ac_ext
31153 cat >>conftest.$ac_ext <<_ACEOF
31154 /* end confdefs.h. */
31155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31157 #define $ac_func innocuous_$ac_func
31159 /* System header to define __stub macros and hopefully few prototypes,
31160 which can conflict with char $ac_func (); below.
31161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31162 <limits.h> exists even on freestanding compilers. */
31165 # include <limits.h>
31167 # include <assert.h>
31172 /* Override any GCC internal prototype to avoid an error.
31173 Use char because int might match the return type of a GCC
31174 builtin and then its argument prototype would still apply. */
31179 /* The GNU C library defines this for functions which it implements
31180 to always fail with ENOSYS. Some functions are actually named
31181 something starting with __ and the normal name is an alias. */
31182 #if defined __stub_$ac_func || defined __stub___$ac_func
31189 return $ac_func ();
31194 rm -f conftest.$ac_objext conftest$ac_exeext
31195 if { (ac_try="$ac_link"
31196 case "(($ac_try" in
31197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198 *) ac_try_echo=$ac_try;;
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201 (eval "$ac_link") 2>conftest.er1
31203 grep -v '^ *+' conftest.er1 >conftest.err
31205 cat conftest.err >&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } &&
31208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31209 { (case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_try") 2>&5
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; } &&
31218 { ac_try='test -s conftest$ac_exeext'
31219 { (case "(($ac_try" in
31220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221 *) ac_try_echo=$ac_try;;
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224 (eval "$ac_try") 2>&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 eval "$as_ac_var=yes"
31230 echo "$as_me: failed program was:" >&5
31231 sed 's/^/| /' conftest.$ac_ext >&5
31233 eval "$as_ac_var=no"
31236 rm -f core conftest.err conftest.$ac_objext \
31237 conftest$ac_exeext conftest.$ac_ext
31239 ac_res=`eval echo '${'$as_ac_var'}'`
31240 { echo "$as_me:$LINENO: result: $ac_res" >&5
31241 echo "${ECHO_T}$ac_res" >&6; }
31242 if test `eval echo '${'$as_ac_var'}'` = yes; then
31243 cat >>confdefs.h <<_ACEOF
31244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31257 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31263 echo $ECHO_N "(cached) $ECHO_C" >&6
31265 cat >conftest.$ac_ext <<_ACEOF
31268 cat confdefs.h >>conftest.$ac_ext
31269 cat >>conftest.$ac_ext <<_ACEOF
31270 /* end confdefs.h. */
31271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31273 #define $ac_func innocuous_$ac_func
31275 /* System header to define __stub macros and hopefully few prototypes,
31276 which can conflict with char $ac_func (); below.
31277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31278 <limits.h> exists even on freestanding compilers. */
31281 # include <limits.h>
31283 # include <assert.h>
31288 /* Override any GCC internal prototype to avoid an error.
31289 Use char because int might match the return type of a GCC
31290 builtin and then its argument prototype would still apply. */
31295 /* The GNU C library defines this for functions which it implements
31296 to always fail with ENOSYS. Some functions are actually named
31297 something starting with __ and the normal name is an alias. */
31298 #if defined __stub_$ac_func || defined __stub___$ac_func
31305 return $ac_func ();
31310 rm -f conftest.$ac_objext conftest$ac_exeext
31311 if { (ac_try="$ac_link"
31312 case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_link") 2>conftest.er1
31319 grep -v '^ *+' conftest.er1 >conftest.err
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } &&
31324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31325 { (case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_try") 2>&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; } &&
31334 { ac_try='test -s conftest$ac_exeext'
31335 { (case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_try") 2>&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; }; then
31344 eval "$as_ac_var=yes"
31346 echo "$as_me: failed program was:" >&5
31347 sed 's/^/| /' conftest.$ac_ext >&5
31349 eval "$as_ac_var=no"
31352 rm -f core conftest.err conftest.$ac_objext \
31353 conftest$ac_exeext conftest.$ac_ext
31355 ac_res=`eval echo '${'$as_ac_var'}'`
31356 { echo "$as_me:$LINENO: result: $ac_res" >&5
31357 echo "${ECHO_T}$ac_res" >&6; }
31358 if test `eval echo '${'$as_ac_var'}'` = yes; then
31359 cat >>confdefs.h <<_ACEOF
31360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31370 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31376 echo $ECHO_N "(cached) $ECHO_C" >&6
31378 cat >conftest.$ac_ext <<_ACEOF
31381 cat confdefs.h >>conftest.$ac_ext
31382 cat >>conftest.$ac_ext <<_ACEOF
31383 /* end confdefs.h. */
31384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31386 #define $ac_func innocuous_$ac_func
31388 /* System header to define __stub macros and hopefully few prototypes,
31389 which can conflict with char $ac_func (); below.
31390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31391 <limits.h> exists even on freestanding compilers. */
31394 # include <limits.h>
31396 # include <assert.h>
31401 /* Override any GCC internal prototype to avoid an error.
31402 Use char because int might match the return type of a GCC
31403 builtin and then its argument prototype would still apply. */
31408 /* The GNU C library defines this for functions which it implements
31409 to always fail with ENOSYS. Some functions are actually named
31410 something starting with __ and the normal name is an alias. */
31411 #if defined __stub_$ac_func || defined __stub___$ac_func
31418 return $ac_func ();
31423 rm -f conftest.$ac_objext conftest$ac_exeext
31424 if { (ac_try="$ac_link"
31425 case "(($ac_try" in
31426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427 *) ac_try_echo=$ac_try;;
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430 (eval "$ac_link") 2>conftest.er1
31432 grep -v '^ *+' conftest.er1 >conftest.err
31434 cat conftest.err >&5
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); } &&
31437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31438 { (case "(($ac_try" in
31439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440 *) ac_try_echo=$ac_try;;
31442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443 (eval "$ac_try") 2>&5
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; } &&
31447 { ac_try='test -s conftest$ac_exeext'
31448 { (case "(($ac_try" in
31449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450 *) ac_try_echo=$ac_try;;
31452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453 (eval "$ac_try") 2>&5
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
31457 eval "$as_ac_var=yes"
31459 echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31462 eval "$as_ac_var=no"
31465 rm -f core conftest.err conftest.$ac_objext \
31466 conftest$ac_exeext conftest.$ac_ext
31468 ac_res=`eval echo '${'$as_ac_var'}'`
31469 { echo "$as_me:$LINENO: result: $ac_res" >&5
31470 echo "${ECHO_T}$ac_res" >&6; }
31471 if test `eval echo '${'$as_ac_var'}'` = yes; then
31472 cat >>confdefs.h <<_ACEOF
31473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31483 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31491 cat >conftest.$ac_ext <<_ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h. */
31497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31499 #define $ac_func innocuous_$ac_func
31501 /* System header to define __stub macros and hopefully few prototypes,
31502 which can conflict with char $ac_func (); below.
31503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31504 <limits.h> exists even on freestanding compilers. */
31507 # include <limits.h>
31509 # include <assert.h>
31514 /* Override any GCC internal prototype to avoid an error.
31515 Use char because int might match the return type of a GCC
31516 builtin and then its argument prototype would still apply. */
31521 /* The GNU C library defines this for functions which it implements
31522 to always fail with ENOSYS. Some functions are actually named
31523 something starting with __ and the normal name is an alias. */
31524 #if defined __stub_$ac_func || defined __stub___$ac_func
31531 return $ac_func ();
31536 rm -f conftest.$ac_objext conftest$ac_exeext
31537 if { (ac_try="$ac_link"
31538 case "(($ac_try" in
31539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31540 *) ac_try_echo=$ac_try;;
31542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543 (eval "$ac_link") 2>conftest.er1
31545 grep -v '^ *+' conftest.er1 >conftest.err
31547 cat conftest.err >&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); } &&
31550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31551 { (case "(($ac_try" in
31552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553 *) ac_try_echo=$ac_try;;
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556 (eval "$ac_try") 2>&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); }; } &&
31560 { ac_try='test -s conftest$ac_exeext'
31561 { (case "(($ac_try" in
31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563 *) ac_try_echo=$ac_try;;
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566 (eval "$ac_try") 2>&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; }; then
31570 eval "$as_ac_var=yes"
31572 echo "$as_me: failed program was:" >&5
31573 sed 's/^/| /' conftest.$ac_ext >&5
31575 eval "$as_ac_var=no"
31578 rm -f core conftest.err conftest.$ac_objext \
31579 conftest$ac_exeext conftest.$ac_ext
31581 ac_res=`eval echo '${'$as_ac_var'}'`
31582 { echo "$as_me:$LINENO: result: $ac_res" >&5
31583 echo "${ECHO_T}$ac_res" >&6; }
31584 if test `eval echo '${'$as_ac_var'}'` = yes; then
31585 cat >>confdefs.h <<_ACEOF
31586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31592 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31593 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31594 if test "${llvm_cv_c_printf_a+set}" = set; then
31595 echo $ECHO_N "(cached) $ECHO_C" >&6
31598 ac_cpp='$CPP $CPPFLAGS'
31599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31603 if test "$cross_compiling" = yes; then
31604 llvmac_cv_c_printf_a=no
31606 cat >conftest.$ac_ext <<_ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h. */
31615 #include <stdlib.h>
31621 volatile double A, B;
31625 sprintf(Buffer, "%a", A);
31629 if (A != 0x1.999999999999ap-4)
31636 rm -f conftest$ac_exeext
31637 if { (ac_try="$ac_link"
31638 case "(($ac_try" in
31639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640 *) ac_try_echo=$ac_try;;
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643 (eval "$ac_link") 2>&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31647 { (case "(($ac_try" in
31648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649 *) ac_try_echo=$ac_try;;
31651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652 (eval "$ac_try") 2>&5
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; }; then
31656 llvm_cv_c_printf_a=yes
31658 echo "$as_me: program exited with status $ac_status" >&5
31659 echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31662 ( exit $ac_status )
31663 llvmac_cv_c_printf_a=no
31665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31670 ac_cpp='$CPP $CPPFLAGS'
31671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31676 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31677 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31678 if test "$llvm_cv_c_printf_a" = "yes"; then
31680 cat >>confdefs.h <<\_ACEOF
31681 #define HAVE_PRINTF_A 1
31686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31687 # for constant arguments. Useless!
31688 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31689 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31690 if test "${ac_cv_working_alloca_h+set}" = set; then
31691 echo $ECHO_N "(cached) $ECHO_C" >&6
31693 cat >conftest.$ac_ext <<_ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h. */
31699 #include <alloca.h>
31703 char *p = (char *) alloca (2 * sizeof (int));
31709 rm -f conftest.$ac_objext conftest$ac_exeext
31710 if { (ac_try="$ac_link"
31711 case "(($ac_try" in
31712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716 (eval "$ac_link") 2>conftest.er1
31718 grep -v '^ *+' conftest.er1 >conftest.err
31720 cat conftest.err >&5
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); } &&
31723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31724 { (case "(($ac_try" in
31725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31726 *) ac_try_echo=$ac_try;;
31728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31729 (eval "$ac_try") 2>&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; } &&
31733 { ac_try='test -s conftest$ac_exeext'
31734 { (case "(($ac_try" in
31735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736 *) ac_try_echo=$ac_try;;
31738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739 (eval "$ac_try") 2>&5
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; }; then
31743 ac_cv_working_alloca_h=yes
31745 echo "$as_me: failed program was:" >&5
31746 sed 's/^/| /' conftest.$ac_ext >&5
31748 ac_cv_working_alloca_h=no
31751 rm -f core conftest.err conftest.$ac_objext \
31752 conftest$ac_exeext conftest.$ac_ext
31754 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31755 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31756 if test $ac_cv_working_alloca_h = yes; then
31758 cat >>confdefs.h <<\_ACEOF
31759 #define HAVE_ALLOCA_H 1
31764 { echo "$as_me:$LINENO: checking for alloca" >&5
31765 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31766 if test "${ac_cv_func_alloca_works+set}" = set; then
31767 echo $ECHO_N "(cached) $ECHO_C" >&6
31769 cat >conftest.$ac_ext <<_ACEOF
31772 cat confdefs.h >>conftest.$ac_ext
31773 cat >>conftest.$ac_ext <<_ACEOF
31774 /* end confdefs.h. */
31776 # define alloca __builtin_alloca
31779 # include <malloc.h>
31780 # define alloca _alloca
31783 # include <alloca.h>
31788 # ifndef alloca /* predefined by HP cc +Olibcalls */
31799 char *p = (char *) alloca (1);
31805 rm -f conftest.$ac_objext conftest$ac_exeext
31806 if { (ac_try="$ac_link"
31807 case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_link") 2>conftest.er1
31814 grep -v '^ *+' conftest.er1 >conftest.err
31816 cat conftest.err >&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); } &&
31819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31820 { (case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_try") 2>&5
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; } &&
31829 { ac_try='test -s conftest$ac_exeext'
31830 { (case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_try") 2>&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; }; then
31839 ac_cv_func_alloca_works=yes
31841 echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31844 ac_cv_func_alloca_works=no
31847 rm -f core conftest.err conftest.$ac_objext \
31848 conftest$ac_exeext conftest.$ac_ext
31850 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31851 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31853 if test $ac_cv_func_alloca_works = yes; then
31855 cat >>confdefs.h <<\_ACEOF
31856 #define HAVE_ALLOCA 1
31860 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31861 # that cause trouble. Some versions do not even contain alloca or
31862 # contain a buggy version. If you still want to use their alloca,
31863 # use ar to extract alloca.o from them instead of compiling alloca.c.
31865 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31867 cat >>confdefs.h <<\_ACEOF
31872 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31873 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31874 if test "${ac_cv_os_cray+set}" = set; then
31875 echo $ECHO_N "(cached) $ECHO_C" >&6
31877 cat >conftest.$ac_ext <<_ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h. */
31883 #if defined CRAY && ! defined CRAY2
31890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31891 $EGREP "webecray" >/dev/null 2>&1; then
31899 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31900 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31901 if test $ac_cv_os_cray = yes; then
31902 for ac_func in _getb67 GETB67 getb67; do
31903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31907 echo $ECHO_N "(cached) $ECHO_C" >&6
31909 cat >conftest.$ac_ext <<_ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h. */
31915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31917 #define $ac_func innocuous_$ac_func
31919 /* System header to define __stub macros and hopefully few prototypes,
31920 which can conflict with char $ac_func (); below.
31921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31922 <limits.h> exists even on freestanding compilers. */
31925 # include <limits.h>
31927 # include <assert.h>
31932 /* Override any GCC internal prototype to avoid an error.
31933 Use char because int might match the return type of a GCC
31934 builtin and then its argument prototype would still apply. */
31939 /* The GNU C library defines this for functions which it implements
31940 to always fail with ENOSYS. Some functions are actually named
31941 something starting with __ and the normal name is an alias. */
31942 #if defined __stub_$ac_func || defined __stub___$ac_func
31949 return $ac_func ();
31954 rm -f conftest.$ac_objext conftest$ac_exeext
31955 if { (ac_try="$ac_link"
31956 case "(($ac_try" in
31957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31958 *) ac_try_echo=$ac_try;;
31960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961 (eval "$ac_link") 2>conftest.er1
31963 grep -v '^ *+' conftest.er1 >conftest.err
31965 cat conftest.err >&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); } &&
31968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31969 { (case "(($ac_try" in
31970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971 *) ac_try_echo=$ac_try;;
31973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974 (eval "$ac_try") 2>&5
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); }; } &&
31978 { ac_try='test -s conftest$ac_exeext'
31979 { (case "(($ac_try" in
31980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981 *) ac_try_echo=$ac_try;;
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984 (eval "$ac_try") 2>&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; }; then
31988 eval "$as_ac_var=yes"
31990 echo "$as_me: failed program was:" >&5
31991 sed 's/^/| /' conftest.$ac_ext >&5
31993 eval "$as_ac_var=no"
31996 rm -f core conftest.err conftest.$ac_objext \
31997 conftest$ac_exeext conftest.$ac_ext
31999 ac_res=`eval echo '${'$as_ac_var'}'`
32000 { echo "$as_me:$LINENO: result: $ac_res" >&5
32001 echo "${ECHO_T}$ac_res" >&6; }
32002 if test `eval echo '${'$as_ac_var'}'` = yes; then
32004 cat >>confdefs.h <<_ACEOF
32005 #define CRAY_STACKSEG_END $ac_func
32014 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32015 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32016 if test "${ac_cv_c_stack_direction+set}" = set; then
32017 echo $ECHO_N "(cached) $ECHO_C" >&6
32019 if test "$cross_compiling" = yes; then
32020 ac_cv_c_stack_direction=0
32022 cat >conftest.$ac_ext <<_ACEOF
32025 cat confdefs.h >>conftest.$ac_ext
32026 cat >>conftest.$ac_ext <<_ACEOF
32027 /* end confdefs.h. */
32028 $ac_includes_default
32030 find_stack_direction ()
32032 static char *addr = 0;
32037 return find_stack_direction ();
32040 return (&dummy > addr) ? 1 : -1;
32046 return find_stack_direction () < 0;
32049 rm -f conftest$ac_exeext
32050 if { (ac_try="$ac_link"
32051 case "(($ac_try" in
32052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32053 *) ac_try_echo=$ac_try;;
32055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32056 (eval "$ac_link") 2>&5
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 ac_cv_c_stack_direction=1
32071 echo "$as_me: program exited with status $ac_status" >&5
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32075 ( exit $ac_status )
32076 ac_cv_c_stack_direction=-1
32078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32083 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32084 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32086 cat >>confdefs.h <<_ACEOF
32087 #define STACK_DIRECTION $ac_cv_c_stack_direction
32094 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32095 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32096 if test "${ac_cv_func_rand48+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32100 ac_cpp='$CXXCPP $CPPFLAGS'
32101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32105 cat >conftest.$ac_ext <<_ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h. */
32111 #include <stdlib.h>
32115 srand48(0);lrand48();drand48();
32120 rm -f conftest.$ac_objext
32121 if { (ac_try="$ac_compile"
32122 case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_compile") 2>conftest.er1
32129 grep -v '^ *+' conftest.er1 >conftest.err
32131 cat conftest.err >&5
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); } &&
32134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32135 { (case "(($ac_try" in
32136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137 *) ac_try_echo=$ac_try;;
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_try") 2>&5
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; } &&
32144 { ac_try='test -s conftest.$ac_objext'
32145 { (case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_try") 2>&5
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); }; }; then
32154 ac_cv_func_rand48=yes
32156 echo "$as_me: failed program was:" >&5
32157 sed 's/^/| /' conftest.$ac_ext >&5
32159 ac_cv_func_rand48=no
32162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32164 ac_cpp='$CPP $CPPFLAGS'
32165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32170 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32171 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32173 if test "$ac_cv_func_rand48" = "yes" ; then
32175 cat >>confdefs.h <<\_ACEOF
32176 #define HAVE_RAND48 1
32182 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32183 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32184 if test "${ac_cv_cxx_namespaces+set}" = set; then
32185 echo $ECHO_N "(cached) $ECHO_C" >&6
32188 ac_cpp='$CXXCPP $CPPFLAGS'
32189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32193 cat >conftest.$ac_ext <<_ACEOF
32196 cat confdefs.h >>conftest.$ac_ext
32197 cat >>conftest.$ac_ext <<_ACEOF
32198 /* end confdefs.h. */
32199 namespace Outer { namespace Inner { int i = 0; }}
32203 using namespace Outer::Inner; return i;
32208 rm -f conftest.$ac_objext
32209 if { (ac_try="$ac_compile"
32210 case "(($ac_try" in
32211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32212 *) ac_try_echo=$ac_try;;
32214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32215 (eval "$ac_compile") 2>conftest.er1
32217 grep -v '^ *+' conftest.er1 >conftest.err
32219 cat conftest.err >&5
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); } &&
32222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; } &&
32232 { ac_try='test -s conftest.$ac_objext'
32233 { (case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_try") 2>&5
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); }; }; then
32242 ac_cv_cxx_namespaces=yes
32244 echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32247 ac_cv_cxx_namespaces=no
32250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32252 ac_cpp='$CPP $CPPFLAGS'
32253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32260 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32261 if test "$ac_cv_cxx_namespaces" = yes; then
32263 cat >>confdefs.h <<\_ACEOF
32264 #define HAVE_NAMESPACES
32269 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32270 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32271 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32272 echo $ECHO_N "(cached) $ECHO_C" >&6
32276 ac_cpp='$CXXCPP $CPPFLAGS'
32277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32281 cat >conftest.$ac_ext <<_ACEOF
32284 cat confdefs.h >>conftest.$ac_ext
32285 cat >>conftest.$ac_ext <<_ACEOF
32286 /* end confdefs.h. */
32287 #include <iterator>
32288 #ifdef HAVE_NAMESPACES
32289 using namespace std;
32294 iterator<int,int,int> t; return 0;
32299 rm -f conftest.$ac_objext
32300 if { (ac_try="$ac_compile"
32301 case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_compile") 2>conftest.er1
32308 grep -v '^ *+' conftest.er1 >conftest.err
32310 cat conftest.err >&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); } &&
32313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest.$ac_objext'
32324 { (case "(($ac_try" in
32325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326 *) ac_try_echo=$ac_try;;
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329 (eval "$ac_try") 2>&5
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; }; then
32333 ac_cv_cxx_have_std_iterator=yes
32335 echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32338 ac_cv_cxx_have_std_iterator=no
32341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32343 ac_cpp='$CPP $CPPFLAGS'
32344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32351 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32352 if test "$ac_cv_cxx_have_std_iterator" = yes
32355 cat >>confdefs.h <<\_ACEOF
32356 #define HAVE_STD_ITERATOR 1
32361 cat >>confdefs.h <<\_ACEOF
32362 #define HAVE_STD_ITERATOR 0
32367 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32368 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32369 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32374 ac_cpp='$CXXCPP $CPPFLAGS'
32375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32379 cat >conftest.$ac_ext <<_ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h. */
32385 #include <iterator>
32386 #ifdef HAVE_NAMESPACES
32387 using namespace std;
32392 bidirectional_iterator<int,int> t; return 0;
32397 rm -f conftest.$ac_objext
32398 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32406 grep -v '^ *+' conftest.er1 >conftest.err
32408 cat conftest.err >&5
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); } &&
32411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; } &&
32421 { ac_try='test -s conftest.$ac_objext'
32422 { (case "(($ac_try" in
32423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424 *) ac_try_echo=$ac_try;;
32426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427 (eval "$ac_try") 2>&5
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
32431 ac_cv_cxx_have_bi_iterator=yes
32433 echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32436 ac_cv_cxx_have_bi_iterator=no
32439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441 ac_cpp='$CPP $CPPFLAGS'
32442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32448 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32449 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32450 if test "$ac_cv_cxx_have_bi_iterator" = yes
32453 cat >>confdefs.h <<\_ACEOF
32454 #define HAVE_BI_ITERATOR 1
32459 cat >>confdefs.h <<\_ACEOF
32460 #define HAVE_BI_ITERATOR 0
32465 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32466 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32467 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32468 echo $ECHO_N "(cached) $ECHO_C" >&6
32472 ac_cpp='$CXXCPP $CPPFLAGS'
32473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32477 cat >conftest.$ac_ext <<_ACEOF
32480 cat confdefs.h >>conftest.$ac_ext
32481 cat >>conftest.$ac_ext <<_ACEOF
32482 /* end confdefs.h. */
32483 #include <iterator>
32484 #ifdef HAVE_NAMESPACES
32485 using namespace std;
32490 forward_iterator<int,int> t; return 0;
32495 rm -f conftest.$ac_objext
32496 if { (ac_try="$ac_compile"
32497 case "(($ac_try" in
32498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499 *) ac_try_echo=$ac_try;;
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_compile") 2>conftest.er1
32504 grep -v '^ *+' conftest.er1 >conftest.err
32506 cat conftest.err >&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } &&
32509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32510 { (case "(($ac_try" in
32511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512 *) ac_try_echo=$ac_try;;
32514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515 (eval "$ac_try") 2>&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; } &&
32519 { ac_try='test -s conftest.$ac_objext'
32520 { (case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_try") 2>&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); }; }; then
32529 ac_cv_cxx_have_fwd_iterator=yes
32531 echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32534 ac_cv_cxx_have_fwd_iterator=no
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32539 ac_cpp='$CPP $CPPFLAGS'
32540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32547 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32548 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32551 cat >>confdefs.h <<\_ACEOF
32552 #define HAVE_FWD_ITERATOR 1
32557 cat >>confdefs.h <<\_ACEOF
32558 #define HAVE_FWD_ITERATOR 0
32564 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32565 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32566 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32567 echo $ECHO_N "(cached) $ECHO_C" >&6
32570 ac_cpp='$CXXCPP $CPPFLAGS'
32571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32575 cat >conftest.$ac_ext <<_ACEOF
32578 cat confdefs.h >>conftest.$ac_ext
32579 cat >>conftest.$ac_ext <<_ACEOF
32580 /* end confdefs.h. */
32590 rm -f conftest.$ac_objext
32591 if { (ac_try="$ac_compile"
32592 case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_compile") 2>conftest.er1
32599 grep -v '^ *+' conftest.er1 >conftest.err
32601 cat conftest.err >&5
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); } &&
32604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 ac_cv_func_isnan_in_math_h=yes
32626 echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32629 ac_cv_func_isnan_in_math_h=no
32632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32634 ac_cpp='$CPP $CPPFLAGS'
32635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32640 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32641 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32644 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_ISNAN_IN_MATH_H 1
32652 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32653 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32654 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32655 echo $ECHO_N "(cached) $ECHO_C" >&6
32658 ac_cpp='$CXXCPP $CPPFLAGS'
32659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32663 cat >conftest.$ac_ext <<_ACEOF
32666 cat confdefs.h >>conftest.$ac_ext
32667 cat >>conftest.$ac_ext <<_ACEOF
32668 /* end confdefs.h. */
32678 rm -f conftest.$ac_objext
32679 if { (ac_try="$ac_compile"
32680 case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_compile") 2>conftest.er1
32687 grep -v '^ *+' conftest.er1 >conftest.err
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest.$ac_objext'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
32712 ac_cv_func_isnan_in_cmath=yes
32714 echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32717 ac_cv_func_isnan_in_cmath=no
32720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32722 ac_cpp='$CPP $CPPFLAGS'
32723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32728 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32729 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32731 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_ISNAN_IN_CMATH 1
32739 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32740 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32741 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32742 echo $ECHO_N "(cached) $ECHO_C" >&6
32745 ac_cpp='$CXXCPP $CPPFLAGS'
32746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32750 cat >conftest.$ac_ext <<_ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h. */
32760 float f; std::isnan(f);
32765 rm -f conftest.$ac_objext
32766 if { (ac_try="$ac_compile"
32767 case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_compile") 2>conftest.er1
32774 grep -v '^ *+' conftest.er1 >conftest.err
32776 cat conftest.err >&5
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); } &&
32779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32780 { (case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_try") 2>&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest.$ac_objext'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; }; then
32799 ac_cv_func_std_isnan_in_cmath=yes
32801 echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32804 ac_cv_func_std_isnan_in_cmath=no
32807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32809 ac_cpp='$CPP $CPPFLAGS'
32810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32815 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32816 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32818 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32820 cat >>confdefs.h <<\_ACEOF
32821 #define HAVE_STD_ISNAN_IN_CMATH 1
32827 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32828 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32829 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32830 echo $ECHO_N "(cached) $ECHO_C" >&6
32833 ac_cpp='$CXXCPP $CPPFLAGS'
32834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32838 cat >conftest.$ac_ext <<_ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h. */
32853 rm -f conftest.$ac_objext
32854 if { (ac_try="$ac_compile"
32855 case "(($ac_try" in
32856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857 *) ac_try_echo=$ac_try;;
32859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860 (eval "$ac_compile") 2>conftest.er1
32862 grep -v '^ *+' conftest.er1 >conftest.err
32864 cat conftest.err >&5
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); } &&
32867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32868 { (case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_try") 2>&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); }; } &&
32877 { ac_try='test -s conftest.$ac_objext'
32878 { (case "(($ac_try" in
32879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880 *) ac_try_echo=$ac_try;;
32882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883 (eval "$ac_try") 2>&5
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); }; }; then
32887 ac_cv_func_isinf_in_math_h=yes
32889 echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.$ac_ext >&5
32892 ac_cv_func_isinf_in_math_h=no
32895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32897 ac_cpp='$CPP $CPPFLAGS'
32898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32903 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32904 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32906 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32908 cat >>confdefs.h <<\_ACEOF
32909 #define HAVE_ISINF_IN_MATH_H 1
32914 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32915 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32916 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32920 ac_cpp='$CXXCPP $CPPFLAGS'
32921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32925 cat >conftest.$ac_ext <<_ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h. */
32940 rm -f conftest.$ac_objext
32941 if { (ac_try="$ac_compile"
32942 case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_compile") 2>conftest.er1
32949 grep -v '^ *+' conftest.er1 >conftest.err
32951 cat conftest.err >&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); } &&
32954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32955 { (case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_try") 2>&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; } &&
32964 { ac_try='test -s conftest.$ac_objext'
32965 { (case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_try") 2>&5
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
32974 ac_cv_func_isinf_in_cmath=yes
32976 echo "$as_me: failed program was:" >&5
32977 sed 's/^/| /' conftest.$ac_ext >&5
32979 ac_cv_func_isinf_in_cmath=no
32982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32984 ac_cpp='$CPP $CPPFLAGS'
32985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32990 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32991 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32993 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32995 cat >>confdefs.h <<\_ACEOF
32996 #define HAVE_ISINF_IN_CMATH 1
33001 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33002 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33003 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33004 echo $ECHO_N "(cached) $ECHO_C" >&6
33007 ac_cpp='$CXXCPP $CPPFLAGS'
33008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33012 cat >conftest.$ac_ext <<_ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h. */
33022 float f; std::isinf(f)}
33027 rm -f conftest.$ac_objext
33028 if { (ac_try="$ac_compile"
33029 case "(($ac_try" in
33030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_compile") 2>conftest.er1
33036 grep -v '^ *+' conftest.er1 >conftest.err
33038 cat conftest.err >&5
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); } &&
33041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33042 { (case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_try") 2>&5
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; } &&
33051 { ac_try='test -s conftest.$ac_objext'
33052 { (case "(($ac_try" in
33053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33054 *) ac_try_echo=$ac_try;;
33056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33057 (eval "$ac_try") 2>&5
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
33061 ac_cv_func_std_isinf_in_cmath=yes
33063 echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33066 ac_cv_func_std_isinf_in_cmath=no
33069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071 ac_cpp='$CPP $CPPFLAGS'
33072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33077 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33078 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33080 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33082 cat >>confdefs.h <<\_ACEOF
33083 #define HAVE_STD_ISINF_IN_CMATH 1
33088 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33089 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33090 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33091 echo $ECHO_N "(cached) $ECHO_C" >&6
33094 ac_cpp='$CXXCPP $CPPFLAGS'
33095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33099 cat >conftest.$ac_ext <<_ACEOF
33102 cat confdefs.h >>conftest.$ac_ext
33103 cat >>conftest.$ac_ext <<_ACEOF
33104 /* end confdefs.h. */
33105 #include <ieeefp.h>
33109 float f; finite(f);
33114 rm -f conftest.$ac_objext
33115 if { (ac_try="$ac_compile"
33116 case "(($ac_try" in
33117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118 *) ac_try_echo=$ac_try;;
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121 (eval "$ac_compile") 2>conftest.er1
33123 grep -v '^ *+' conftest.er1 >conftest.err
33125 cat conftest.err >&5
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); } &&
33128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33129 { (case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_try") 2>&5
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; } &&
33138 { ac_try='test -s conftest.$ac_objext'
33139 { (case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_try") 2>&5
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; }; then
33148 ac_cv_func_finite_in_ieeefp_h=yes
33150 echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33153 ac_cv_func_finite_in_ieeefp_h=no
33156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33158 ac_cpp='$CPP $CPPFLAGS'
33159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33164 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33165 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33167 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33169 cat >>confdefs.h <<\_ACEOF
33170 #define HAVE_FINITE_IN_IEEEFP_H 1
33177 if test "$llvm_cv_platform_type" = "Unix" ; then
33180 for ac_header in stdlib.h unistd.h
33182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33187 echo $ECHO_N "(cached) $ECHO_C" >&6
33189 ac_res=`eval echo '${'$as_ac_Header'}'`
33190 { echo "$as_me:$LINENO: result: $ac_res" >&5
33191 echo "${ECHO_T}$ac_res" >&6; }
33193 # Is the header compilable?
33194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33196 cat >conftest.$ac_ext <<_ACEOF
33199 cat confdefs.h >>conftest.$ac_ext
33200 cat >>conftest.$ac_ext <<_ACEOF
33201 /* end confdefs.h. */
33202 $ac_includes_default
33203 #include <$ac_header>
33205 rm -f conftest.$ac_objext
33206 if { (ac_try="$ac_compile"
33207 case "(($ac_try" in
33208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209 *) ac_try_echo=$ac_try;;
33211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212 (eval "$ac_compile") 2>conftest.er1
33214 grep -v '^ *+' conftest.er1 >conftest.err
33216 cat conftest.err >&5
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); } &&
33219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33220 { (case "(($ac_try" in
33221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222 *) ac_try_echo=$ac_try;;
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225 (eval "$ac_try") 2>&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; } &&
33229 { ac_try='test -s conftest.$ac_objext'
33230 { (case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_try") 2>&5
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; }; then
33239 ac_header_compiler=yes
33241 echo "$as_me: failed program was:" >&5
33242 sed 's/^/| /' conftest.$ac_ext >&5
33244 ac_header_compiler=no
33247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33249 echo "${ECHO_T}$ac_header_compiler" >&6; }
33251 # Is the header present?
33252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33254 cat >conftest.$ac_ext <<_ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h. */
33260 #include <$ac_header>
33262 if { (ac_try="$ac_cpp conftest.$ac_ext"
33263 case "(($ac_try" in
33264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33265 *) ac_try_echo=$ac_try;;
33267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33270 grep -v '^ *+' conftest.er1 >conftest.err
33272 cat conftest.err >&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); } >/dev/null; then
33275 if test -s conftest.err; then
33276 ac_cpp_err=$ac_c_preproc_warn_flag
33277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33284 if test -z "$ac_cpp_err"; then
33285 ac_header_preproc=yes
33287 echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.$ac_ext >&5
33290 ac_header_preproc=no
33293 rm -f conftest.err conftest.$ac_ext
33294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33295 echo "${ECHO_T}$ac_header_preproc" >&6; }
33297 # So? What about this header?
33298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33304 ac_header_preproc=yes
33307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33320 ## ----------------------------------- ##
33321 ## Report this to llvmbugs@cs.uiuc.edu ##
33322 ## ----------------------------------- ##
33324 ) | sed "s/^/$as_me: WARNING: /" >&2
33327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33330 echo $ECHO_N "(cached) $ECHO_C" >&6
33332 eval "$as_ac_Header=\$ac_header_preproc"
33334 ac_res=`eval echo '${'$as_ac_Header'}'`
33335 { echo "$as_me:$LINENO: result: $ac_res" >&5
33336 echo "${ECHO_T}$ac_res" >&6; }
33339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33340 cat >>confdefs.h <<_ACEOF
33341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33349 for ac_func in getpagesize
33351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33355 echo $ECHO_N "(cached) $ECHO_C" >&6
33357 cat >conftest.$ac_ext <<_ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h. */
33363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33365 #define $ac_func innocuous_$ac_func
33367 /* System header to define __stub macros and hopefully few prototypes,
33368 which can conflict with char $ac_func (); below.
33369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33370 <limits.h> exists even on freestanding compilers. */
33373 # include <limits.h>
33375 # include <assert.h>
33380 /* Override any GCC internal prototype to avoid an error.
33381 Use char because int might match the return type of a GCC
33382 builtin and then its argument prototype would still apply. */
33387 /* The GNU C library defines this for functions which it implements
33388 to always fail with ENOSYS. Some functions are actually named
33389 something starting with __ and the normal name is an alias. */
33390 #if defined __stub_$ac_func || defined __stub___$ac_func
33397 return $ac_func ();
33402 rm -f conftest.$ac_objext conftest$ac_exeext
33403 if { (ac_try="$ac_link"
33404 case "(($ac_try" in
33405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33406 *) ac_try_echo=$ac_try;;
33408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33409 (eval "$ac_link") 2>conftest.er1
33411 grep -v '^ *+' conftest.er1 >conftest.err
33413 cat conftest.err >&5
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); } &&
33416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33417 { (case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_try") 2>&5
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; } &&
33426 { ac_try='test -s conftest$ac_exeext'
33427 { (case "(($ac_try" in
33428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33429 *) ac_try_echo=$ac_try;;
33431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33432 (eval "$ac_try") 2>&5
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; }; then
33436 eval "$as_ac_var=yes"
33438 echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33441 eval "$as_ac_var=no"
33444 rm -f core conftest.err conftest.$ac_objext \
33445 conftest$ac_exeext conftest.$ac_ext
33447 ac_res=`eval echo '${'$as_ac_var'}'`
33448 { echo "$as_me:$LINENO: result: $ac_res" >&5
33449 echo "${ECHO_T}$ac_res" >&6; }
33450 if test `eval echo '${'$as_ac_var'}'` = yes; then
33451 cat >>confdefs.h <<_ACEOF
33452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33458 { echo "$as_me:$LINENO: checking for working mmap" >&5
33459 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33460 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33463 if test "$cross_compiling" = yes; then
33464 ac_cv_func_mmap_fixed_mapped=no
33466 cat >conftest.$ac_ext <<_ACEOF
33469 cat confdefs.h >>conftest.$ac_ext
33470 cat >>conftest.$ac_ext <<_ACEOF
33471 /* end confdefs.h. */
33472 $ac_includes_default
33473 /* malloc might have been renamed as rpl_malloc. */
33476 /* Thanks to Mike Haertel and Jim Avera for this test.
33477 Here is a matrix of mmap possibilities:
33478 mmap private not fixed
33479 mmap private fixed at somewhere currently unmapped
33480 mmap private fixed at somewhere already mapped
33481 mmap shared not fixed
33482 mmap shared fixed at somewhere currently unmapped
33483 mmap shared fixed at somewhere already mapped
33484 For private mappings, we should verify that changes cannot be read()
33485 back from the file, nor mmap's back from the file at a different
33486 address. (There have been systems where private was not correctly
33487 implemented like the infamous i386 svr4.0, and systems where the
33488 VM page cache was not coherent with the file system buffer cache
33489 like early versions of FreeBSD and possibly contemporary NetBSD.)
33490 For shared mappings, we should conversely verify that changes get
33491 propagated back to all the places they're supposed to be.
33493 Grep wants private fixed already mapped.
33494 The main things grep needs to know about mmap are:
33495 * does it exist and is it safe to write into the mmap'd area
33496 * how to use it (BSD variants) */
33499 #include <sys/mman.h>
33501 #if !STDC_HEADERS && !HAVE_STDLIB_H
33505 /* This mess was copied from the GNU getpagesize.h. */
33506 #if !HAVE_GETPAGESIZE
33507 /* Assume that all systems that can run configure have sys/param.h. */
33508 # if !HAVE_SYS_PARAM_H
33509 # define HAVE_SYS_PARAM_H 1
33512 # ifdef _SC_PAGESIZE
33513 # define getpagesize() sysconf(_SC_PAGESIZE)
33514 # else /* no _SC_PAGESIZE */
33515 # if HAVE_SYS_PARAM_H
33516 # include <sys/param.h>
33517 # ifdef EXEC_PAGESIZE
33518 # define getpagesize() EXEC_PAGESIZE
33519 # else /* no EXEC_PAGESIZE */
33521 # define getpagesize() NBPG * CLSIZE
33524 # endif /* no CLSIZE */
33525 # else /* no NBPG */
33527 # define getpagesize() NBPC
33528 # else /* no NBPC */
33530 # define getpagesize() PAGESIZE
33531 # endif /* PAGESIZE */
33532 # endif /* no NBPC */
33533 # endif /* no NBPG */
33534 # endif /* no EXEC_PAGESIZE */
33535 # else /* no HAVE_SYS_PARAM_H */
33536 # define getpagesize() 8192 /* punt totally */
33537 # endif /* no HAVE_SYS_PARAM_H */
33538 # endif /* no _SC_PAGESIZE */
33540 #endif /* no HAVE_GETPAGESIZE */
33545 char *data, *data2, *data3;
33549 pagesize = getpagesize ();
33551 /* First, make a file with some known garbage in it. */
33552 data = (char *) malloc (pagesize);
33555 for (i = 0; i < pagesize; ++i)
33556 *(data + i) = rand ();
33558 fd = creat ("conftest.mmap", 0600);
33561 if (write (fd, data, pagesize) != pagesize)
33565 /* Next, try to mmap the file at a fixed address which already has
33566 something else allocated at it. If we can, also make sure that
33567 we see the same garbage. */
33568 fd = open ("conftest.mmap", O_RDWR);
33571 data2 = (char *) malloc (2 * pagesize);
33574 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33575 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33576 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33578 for (i = 0; i < pagesize; ++i)
33579 if (*(data + i) != *(data2 + i))
33582 /* Finally, make sure that changes to the mapped area do not
33583 percolate back to the file as seen by read(). (This is a bug on
33584 some variants of i386 svr4.0.) */
33585 for (i = 0; i < pagesize; ++i)
33586 *(data2 + i) = *(data2 + i) + 1;
33587 data3 = (char *) malloc (pagesize);
33590 if (read (fd, data3, pagesize) != pagesize)
33592 for (i = 0; i < pagesize; ++i)
33593 if (*(data + i) != *(data3 + i))
33599 rm -f conftest$ac_exeext
33600 if { (ac_try="$ac_link"
33601 case "(($ac_try" in
33602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33603 *) ac_try_echo=$ac_try;;
33605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33606 (eval "$ac_link") 2>&5
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33610 { (case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_try") 2>&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; }; then
33619 ac_cv_func_mmap_fixed_mapped=yes
33621 echo "$as_me: program exited with status $ac_status" >&5
33622 echo "$as_me: failed program was:" >&5
33623 sed 's/^/| /' conftest.$ac_ext >&5
33625 ( exit $ac_status )
33626 ac_cv_func_mmap_fixed_mapped=no
33628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33633 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33634 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33635 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33637 cat >>confdefs.h <<\_ACEOF
33638 #define HAVE_MMAP 1
33642 rm -f conftest.mmap
33644 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33645 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33646 if test "${ac_cv_func_mmap_file+set}" = set; then
33647 echo $ECHO_N "(cached) $ECHO_C" >&6
33650 ac_cpp='$CPP $CPPFLAGS'
33651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33655 if test "$cross_compiling" = yes; then
33656 ac_cv_func_mmap_file=no
33658 cat >conftest.$ac_ext <<_ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h. */
33666 #include <sys/types.h>
33667 #include <sys/mman.h>
33675 fd = creat ("foo",0777);
33676 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33678 return (fd != (int) MAP_FAILED);
33683 rm -f conftest$ac_exeext
33684 if { (ac_try="$ac_link"
33685 case "(($ac_try" in
33686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33687 *) ac_try_echo=$ac_try;;
33689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33690 (eval "$ac_link") 2>&5
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33694 { (case "(($ac_try" in
33695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696 *) ac_try_echo=$ac_try;;
33698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699 (eval "$ac_try") 2>&5
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); }; }; then
33703 ac_cv_func_mmap_file=yes
33705 echo "$as_me: program exited with status $ac_status" >&5
33706 echo "$as_me: failed program was:" >&5
33707 sed 's/^/| /' conftest.$ac_ext >&5
33709 ( exit $ac_status )
33710 ac_cv_func_mmap_file=no
33712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33717 ac_cpp='$CPP $CPPFLAGS'
33718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33724 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33725 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33726 if test "$ac_cv_func_mmap_file" = yes; then
33728 cat >>confdefs.h <<\_ACEOF
33729 #define HAVE_MMAP_FILE
33736 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33737 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33738 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33741 if test "$llvm_cv_os_type" = "Interix" ; then
33742 ac_cv_need_dev_zero_for_mmap=yes
33744 ac_cv_need_dev_zero_for_mmap=no
33748 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33749 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33750 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33752 cat >>confdefs.h <<\_ACEOF
33753 #define NEED_DEV_ZERO_FOR_MMAP 1
33758 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33760 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33761 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33763 if test "$ac_cv_func_mmap_file" = "no"
33765 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33766 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33770 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33771 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33772 cat >conftest.$ac_ext <<_ACEOF
33775 cat confdefs.h >>conftest.$ac_ext
33776 cat >>conftest.$ac_ext <<_ACEOF
33777 /* end confdefs.h. */
33779 volatile unsigned long val = 1;
33780 __sync_synchronize();
33781 __sync_val_compare_and_swap(&val, 1, 0);
33782 __sync_add_and_fetch(&val, 1);
33783 __sync_sub_and_fetch(&val, 1);
33788 rm -f conftest.$ac_objext conftest$ac_exeext
33789 if { (ac_try="$ac_link"
33790 case "(($ac_try" in
33791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792 *) ac_try_echo=$ac_try;;
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795 (eval "$ac_link") 2>conftest.er1
33797 grep -v '^ *+' conftest.er1 >conftest.err
33799 cat conftest.err >&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
33802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33803 { (case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_try") 2>&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; } &&
33812 { ac_try='test -s conftest$ac_exeext'
33813 { (case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_try") 2>&5
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; }; then
33822 { echo "$as_me:$LINENO: result: yes" >&5
33823 echo "${ECHO_T}yes" >&6; }
33825 cat >>confdefs.h <<\_ACEOF
33826 #define LLVM_MULTITHREADED 1
33830 echo "$as_me: failed program was:" >&5
33831 sed 's/^/| /' conftest.$ac_ext >&5
33833 { echo "$as_me:$LINENO: result: no" >&5
33834 echo "${ECHO_T}no" >&6; }
33836 cat >>confdefs.h <<\_ACEOF
33837 #define LLVM_MULTITHREADED 0
33840 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33841 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
33844 rm -f core conftest.err conftest.$ac_objext \
33845 conftest$ac_exeext conftest.$ac_ext
33850 for ac_func in __dso_handle
33852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33858 cat >conftest.$ac_ext <<_ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h. */
33864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33866 #define $ac_func innocuous_$ac_func
33868 /* System header to define __stub macros and hopefully few prototypes,
33869 which can conflict with char $ac_func (); below.
33870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33871 <limits.h> exists even on freestanding compilers. */
33874 # include <limits.h>
33876 # include <assert.h>
33881 /* Override any GCC internal prototype to avoid an error.
33882 Use char because int might match the return type of a GCC
33883 builtin and then its argument prototype would still apply. */
33888 /* The GNU C library defines this for functions which it implements
33889 to always fail with ENOSYS. Some functions are actually named
33890 something starting with __ and the normal name is an alias. */
33891 #if defined __stub_$ac_func || defined __stub___$ac_func
33898 return $ac_func ();
33903 rm -f conftest.$ac_objext conftest$ac_exeext
33904 if { (ac_try="$ac_link"
33905 case "(($ac_try" in
33906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907 *) ac_try_echo=$ac_try;;
33909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910 (eval "$ac_link") 2>conftest.er1
33912 grep -v '^ *+' conftest.er1 >conftest.err
33914 cat conftest.err >&5
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); } &&
33917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33918 { (case "(($ac_try" in
33919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920 *) ac_try_echo=$ac_try;;
33922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923 (eval "$ac_try") 2>&5
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest$ac_exeext'
33928 { (case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933 (eval "$ac_try") 2>&5
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
33937 eval "$as_ac_var=yes"
33939 echo "$as_me: failed program was:" >&5
33940 sed 's/^/| /' conftest.$ac_ext >&5
33942 eval "$as_ac_var=no"
33945 rm -f core conftest.err conftest.$ac_objext \
33946 conftest$ac_exeext conftest.$ac_ext
33948 ac_res=`eval echo '${'$as_ac_var'}'`
33949 { echo "$as_me:$LINENO: result: $ac_res" >&5
33950 echo "${ECHO_T}$ac_res" >&6; }
33951 if test `eval echo '${'$as_ac_var'}'` = yes; then
33952 cat >>confdefs.h <<_ACEOF
33953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33960 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33961 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33962 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33963 echo $ECHO_N "(cached) $ECHO_C" >&6
33965 llvm_cv_llvmgcc_sanity="no"
33966 if test -x "$LLVMGCC" ; then
33967 cp /dev/null conftest.c
33968 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33969 grep 'target datalayout =' > /dev/null 2>&1
33970 if test $? -eq 0 ; then
33971 llvm_cv_llvmgcc_sanity="yes"
33976 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33977 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33979 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33980 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33981 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33982 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33983 LLVMCC1=$llvmcc1path
33985 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33986 LLVMCC1PLUS=$llvmcc1pluspath
33988 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33989 LLVMGCCDIR=$llvmgccdir
33991 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33992 LLVMGCCLIBEXEC=$llvmgcclibexec
33994 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33995 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33996 LLVMGCC_VERSION=$llvmgccversion
33998 LLVMGCC_MAJVERS=$llvmgccmajvers
34000 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34001 LLVMGCC_LANGS=$llvmgcclangs
34003 { echo "$as_me:$LINENO: result: ok" >&5
34004 echo "${ECHO_T}ok" >&6; }
34007 SHLIBEXT=$libltdl_cv_shlibext
34010 # Translate the various configuration directories and other basic
34011 # information into substitutions that will end up in Makefile.config.in
34012 # that these configured values can be used by the makefiles
34013 if test "${prefix}" = "NONE" ; then
34014 prefix="/usr/local"
34016 eval LLVM_PREFIX="${prefix}";
34017 eval LLVM_BINDIR="${prefix}/bin";
34018 eval LLVM_LIBDIR="${prefix}/lib";
34019 eval LLVM_DATADIR="${prefix}/share/llvm";
34020 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34021 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34022 eval LLVM_INCLUDEDIR="${prefix}/include";
34023 eval LLVM_INFODIR="${prefix}/info";
34024 eval LLVM_MANDIR="${prefix}/man";
34025 LLVM_CONFIGTIME=`date`
34037 # Place the various directores into the config.h file as #defines so that we
34038 # can know about the installation paths within LLVM.
34040 cat >>confdefs.h <<_ACEOF
34041 #define LLVM_PREFIX "$LLVM_PREFIX"
34045 cat >>confdefs.h <<_ACEOF
34046 #define LLVM_BINDIR "$LLVM_BINDIR"
34050 cat >>confdefs.h <<_ACEOF
34051 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34055 cat >>confdefs.h <<_ACEOF
34056 #define LLVM_DATADIR "$LLVM_DATADIR"
34060 cat >>confdefs.h <<_ACEOF
34061 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34065 cat >>confdefs.h <<_ACEOF
34066 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34070 cat >>confdefs.h <<_ACEOF
34071 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34075 cat >>confdefs.h <<_ACEOF
34076 #define LLVM_INFODIR "$LLVM_INFODIR"
34080 cat >>confdefs.h <<_ACEOF
34081 #define LLVM_MANDIR "$LLVM_MANDIR"
34085 cat >>confdefs.h <<_ACEOF
34086 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34090 cat >>confdefs.h <<_ACEOF
34091 #define LLVM_HOSTTRIPLE "$host"
34095 # Determine which bindings to build.
34096 if test "$BINDINGS_TO_BUILD" = auto ; then
34097 BINDINGS_TO_BUILD=""
34098 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34099 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34102 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34105 # This isn't really configurey, but it avoids having to repeat the list in
34110 # Do any work necessary to ensure that bindings have what they need.
34111 binding_prereqs_failed=0
34112 for a_binding in $BINDINGS_TO_BUILD ; do
34113 case "$a_binding" in
34115 if test "x$OCAMLC" = x ; then
34116 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34117 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34118 binding_prereqs_failed=1
34120 if test "x$OCAMLDEP" = x ; then
34121 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34122 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34123 binding_prereqs_failed=1
34125 if test "x$OCAMLOPT" = x ; then
34126 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34127 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34129 if test "x$with_ocaml_libdir" != xauto ; then
34130 OCAML_LIBDIR=$with_ocaml_libdir
34133 ocaml_stdlib="`"$OCAMLC" -where`"
34134 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34136 # ocaml stdlib is beneath our prefix; use stdlib
34137 OCAML_LIBDIR=$ocaml_stdlib
34140 # ocaml stdlib is outside our prefix; use libdir/ocaml
34141 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34148 if test "$binding_prereqs_failed" = 1 ; then
34149 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34150 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34151 { (exit 1); exit 1; }; }
34154 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34155 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34156 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34157 echo $ECHO_N "(cached) $ECHO_C" >&6
34160 ac_cpp='$CXXCPP $CPPFLAGS'
34161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34165 oldcxxflags="$CXXFLAGS"
34166 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34167 cat >conftest.$ac_ext <<_ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h. */
34182 rm -f conftest.$ac_objext
34183 if { (ac_try="$ac_compile"
34184 case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_compile") 2>conftest.er1
34191 grep -v '^ *+' conftest.er1 >conftest.err
34193 cat conftest.err >&5
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); } &&
34196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34197 { (case "(($ac_try" in
34198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199 *) ac_try_echo=$ac_try;;
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202 (eval "$ac_try") 2>&5
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; } &&
34206 { ac_try='test -s conftest.$ac_objext'
34207 { (case "(($ac_try" in
34208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34209 *) ac_try_echo=$ac_try;;
34211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34212 (eval "$ac_try") 2>&5
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); }; }; then
34216 llvm_cv_cxx_visibility_inlines_hidden=yes
34218 echo "$as_me: failed program was:" >&5
34219 sed 's/^/| /' conftest.$ac_ext >&5
34221 llvm_cv_cxx_visibility_inlines_hidden=no
34224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34225 CXXFLAGS="$oldcxxflags"
34227 ac_cpp='$CPP $CPPFLAGS'
34228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34234 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34235 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34236 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34237 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34240 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34245 if test "$llvm_cv_link_use_r" = "yes" ; then
34252 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34253 RDYNAMIC="-Wl,-export-dynamic"
34260 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34262 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34264 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34266 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34268 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
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/llvmc/plugins/Base/Base.td"
34283 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34286 ac_config_commands="$ac_config_commands setup"
34288 ac_config_commands="$ac_config_commands Makefile"
34291 ac_config_commands="$ac_config_commands Makefile.common"
34294 ac_config_commands="$ac_config_commands examples/Makefile"
34297 ac_config_commands="$ac_config_commands lib/Makefile"
34300 ac_config_commands="$ac_config_commands runtime/Makefile"
34303 ac_config_commands="$ac_config_commands test/Makefile"
34306 ac_config_commands="$ac_config_commands test/Makefile.tests"
34309 ac_config_commands="$ac_config_commands unittests/Makefile"
34312 ac_config_commands="$ac_config_commands tools/Makefile"
34315 ac_config_commands="$ac_config_commands utils/Makefile"
34318 ac_config_commands="$ac_config_commands projects/Makefile"
34321 ac_config_commands="$ac_config_commands bindings/Makefile"
34324 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34328 cat >confcache <<\_ACEOF
34329 # This file is a shell script that caches the results of configure
34330 # tests run on this system so they can be shared between configure
34331 # scripts and configure runs, see configure's option --config-cache.
34332 # It is not useful on other systems. If it contains results you don't
34333 # want to keep, you may remove or edit it.
34335 # config.status only pays attention to the cache file if you give it
34336 # the --recheck option to rerun configure.
34338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34340 # following values.
34344 # The following way of writing the cache mishandles newlines in values,
34345 # but we know of no workaround that is simple, portable, and efficient.
34346 # So, we kill variables containing newlines.
34347 # Ultrix sh set writes to stderr and can't be redirected directly,
34348 # and sets the high bit in the cache file unless we assign to the vars.
34350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34351 eval ac_val=\$$ac_var
34355 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34356 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34359 _ | IFS | as_nl) ;; #(
34360 *) $as_unset $ac_var ;;
34366 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34367 *${as_nl}ac_space=\ *)
34368 # `set' does not quote correctly, so add quotes (double-quote
34369 # substitution turns \\\\ into \\, and sed turns \\ into \).
34372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34375 # `set' quotes correctly as required by POSIX, so do not add quotes.
34376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34387 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34389 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34390 if test -w "$cache_file"; then
34391 test "x$cache_file" != "x/dev/null" &&
34392 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34393 echo "$as_me: updating cache $cache_file" >&6;}
34394 cat confcache >$cache_file
34396 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34397 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34403 # Let make expand exec_prefix.
34404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34406 DEFS=-DHAVE_CONFIG_H
34410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34411 # 1. Remove the extension, and $U if already installed.
34412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34413 ac_i=`echo "$ac_i" | sed "$ac_script"`
34414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34415 # will be set to the directory where LIBOBJS objects are built.
34416 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34417 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34419 LIBOBJS=$ac_libobjs
34421 LTLIBOBJS=$ac_ltlibobjs
34424 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34425 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34426 Usually this means the macro was only invoked conditionally." >&5
34427 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34428 Usually this means the macro was only invoked conditionally." >&2;}
34429 { (exit 1); exit 1; }; }
34431 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34432 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34433 Usually this means the macro was only invoked conditionally." >&5
34434 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34435 Usually this means the macro was only invoked conditionally." >&2;}
34436 { (exit 1); exit 1; }; }
34439 : ${CONFIG_STATUS=./config.status}
34440 ac_clean_files_save=$ac_clean_files
34441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34444 cat >$CONFIG_STATUS <<_ACEOF
34446 # Generated by $as_me.
34447 # Run this file to recreate the current configuration.
34448 # Compiler output produced by configure, useful for debugging
34449 # configure, is in config.log if it exists.
34452 ac_cs_recheck=false
34454 SHELL=\${CONFIG_SHELL-$SHELL}
34457 cat >>$CONFIG_STATUS <<\_ACEOF
34458 ## --------------------- ##
34459 ## M4sh Initialization. ##
34460 ## --------------------- ##
34462 # Be Bourne compatible
34463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34467 # is contrary to our usage. Disable this feature.
34468 alias -g '${1+"$@"}'='"$@"'
34469 setopt NO_GLOB_SUBST
34471 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34473 BIN_SH=xpg4; export BIN_SH # for Tru64
34474 DUALCASE=1; export DUALCASE # for MKS sh
34478 # Avoid depending upon Character Ranges.
34479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34482 as_cr_digits='0123456789'
34483 as_cr_alnum=$as_cr_Letters$as_cr_digits
34485 # The user is always right.
34486 if test "${PATH_SEPARATOR+set}" != set; then
34487 echo "#! /bin/sh" >conf$$.sh
34488 echo "exit 0" >>conf$$.sh
34490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34498 # Support unset when possible.
34499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34507 # We need space, tab and new line, in precisely that order. Quoting is
34508 # there to prevent editors from complaining about space-tab.
34509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34510 # splitting by setting IFS to empty value.)
34515 # Find who we are. Look in the path if we contain no directory separator.
34517 *[\\/]* ) as_myself=$0 ;;
34518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34519 for as_dir in $PATH
34522 test -z "$as_dir" && as_dir=.
34523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34529 # We did not find ourselves, most probably we were run as `sh COMMAND'
34530 # in which case we are not to be found in the path.
34531 if test "x$as_myself" = x; then
34534 if test ! -f "$as_myself"; then
34535 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34536 { (exit 1); exit 1; }
34539 # Work around bugs in pre-3.0 UWIN ksh.
34540 for as_var in ENV MAIL MAILPATH
34541 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34549 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34550 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34551 LC_TELEPHONE LC_TIME
34553 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34554 eval $as_var=C; export $as_var
34556 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34560 # Required to use basename.
34561 if expr a : '\(a\)' >/dev/null 2>&1 &&
34562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34569 as_basename=basename
34575 # Name of the executable.
34576 as_me=`$as_basename -- "$0" ||
34577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34578 X"$0" : 'X\(//\)$' \| \
34579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34581 sed '/^.*\/\([^/][^/]*\)\/*$/{
34600 as_lineno_1=$LINENO
34601 as_lineno_2=$LINENO
34602 test "x$as_lineno_1" != "x$as_lineno_2" &&
34603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34606 # uniformly replaced by the line number. The first 'sed' inserts a
34607 # line-number line after each line using $LINENO; the second 'sed'
34608 # does the real work. The second script uses 'N' to pair each
34609 # line-number line with the line containing $LINENO, and appends
34610 # trailing '-' during substitution so that $LINENO is not a special
34611 # case at line end.
34612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34613 # scripts with optimization help from Paolo Bonzini. Blame Lee
34614 # E. McMahon (1931-1989) for sed's syntax. :-)
34626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34629 ' >$as_me.lineno &&
34630 chmod +x "$as_me.lineno" ||
34631 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34632 { (exit 1); exit 1; }; }
34634 # Don't try to exec as it changes $[0], causing all sort of problems
34635 # (the dirname of $[0] is not the place where we might find the
34636 # original and so on. Autoconf is especially sensitive to this).
34637 . "./$as_me.lineno"
34638 # Exit status is that of the last command.
34643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34649 ECHO_C= ECHO_N= ECHO_T=
34650 case `echo -n x` in
34652 case `echo 'x\c'` in
34653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34660 if expr a : '\(a\)' >/dev/null 2>&1 &&
34661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34667 rm -f conf$$ conf$$.exe conf$$.file
34668 if test -d conf$$.dir; then
34669 rm -f conf$$.dir/conf$$.file
34675 if ln -s conf$$.file conf$$ 2>/dev/null; then
34677 # ... but there are two gotchas:
34678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34680 # In both cases, we have to default to `cp -p'.
34681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34683 elif ln conf$$.file conf$$ 2>/dev/null; then
34688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34689 rmdir conf$$.dir 2>/dev/null
34691 if mkdir -p . 2>/dev/null; then
34694 test -d ./-p && rmdir ./-p
34698 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34699 # systems may use methods other than mode bits to determine executability.
34700 cat >conf$$.file <<_ASEOF
34704 chmod +x conf$$.file
34705 if test -x conf$$.file >/dev/null 2>&1; then
34706 as_executable_p="test -x"
34712 # Sed expression to map a string onto a valid CPP name.
34713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34715 # Sed expression to map a string onto a valid variable name.
34716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34721 # Save the log message, to keep $[0] and so on meaningful, and to
34722 # report actual input values of CONFIG_FILES etc. instead of their
34723 # values after options handling.
34725 This file was extended by llvm $as_me 2.6svn, which was
34726 generated by GNU Autoconf 2.60. Invocation command line was
34728 CONFIG_FILES = $CONFIG_FILES
34729 CONFIG_HEADERS = $CONFIG_HEADERS
34730 CONFIG_LINKS = $CONFIG_LINKS
34731 CONFIG_COMMANDS = $CONFIG_COMMANDS
34734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34739 cat >>$CONFIG_STATUS <<_ACEOF
34740 # Files that config.status was made for.
34741 config_files="$ac_config_files"
34742 config_headers="$ac_config_headers"
34743 config_commands="$ac_config_commands"
34747 cat >>$CONFIG_STATUS <<\_ACEOF
34749 \`$as_me' instantiates files from templates according to the
34750 current configuration.
34752 Usage: $0 [OPTIONS] [FILE]...
34754 -h, --help print this help, then exit
34755 -V, --version print version number, then exit
34756 -q, --quiet do not print progress messages
34757 -d, --debug don't remove temporary files
34758 --recheck update $as_me by reconfiguring in the same conditions
34759 --file=FILE[:TEMPLATE]
34760 instantiate the configuration file FILE
34761 --header=FILE[:TEMPLATE]
34762 instantiate the configuration header FILE
34764 Configuration files:
34767 Configuration headers:
34770 Configuration commands:
34773 Report bugs to <bug-autoconf@gnu.org>."
34776 cat >>$CONFIG_STATUS <<_ACEOF
34778 llvm config.status 2.6svn
34779 configured by $0, generated by GNU Autoconf 2.60,
34780 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34782 Copyright (C) 2006 Free Software Foundation, Inc.
34783 This config.status script is free software; the Free Software Foundation
34784 gives unlimited permission to copy, distribute and modify it."
34791 cat >>$CONFIG_STATUS <<\_ACEOF
34792 # If no file are specified by the user, then we need to provide default
34793 # value. By we need to know if files were specified by the user.
34799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34811 # Handling of the options.
34812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34815 echo "$ac_cs_version"; exit ;;
34816 --debug | --debu | --deb | --de | --d | -d )
34818 --file | --fil | --fi | --f )
34820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34821 ac_need_defaults=false;;
34822 --header | --heade | --head | --hea )
34824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34825 ac_need_defaults=false;;
34827 # Conflict between --help and --header
34828 { echo "$as_me: error: ambiguous option: $1
34829 Try \`$0 --help' for more information." >&2
34830 { (exit 1); exit 1; }; };;
34831 --help | --hel | -h )
34832 echo "$ac_cs_usage"; exit ;;
34833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34837 # This is an error.
34838 -*) { echo "$as_me: error: unrecognized option: $1
34839 Try \`$0 --help' for more information." >&2
34840 { (exit 1); exit 1; }; } ;;
34842 *) ac_config_targets="$ac_config_targets $1"
34843 ac_need_defaults=false ;;
34849 ac_configure_extra_args=
34851 if $ac_cs_silent; then
34853 ac_configure_extra_args="$ac_configure_extra_args --silent"
34857 cat >>$CONFIG_STATUS <<_ACEOF
34858 if \$ac_cs_recheck; then
34859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34860 CONFIG_SHELL=$SHELL
34861 export CONFIG_SHELL
34862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34866 cat >>$CONFIG_STATUS <<\_ACEOF
34870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34871 ## Running $as_me. ##
34877 cat >>$CONFIG_STATUS <<_ACEOF
34881 llvm_src="${srcdir}"
34885 cat >>$CONFIG_STATUS <<\_ACEOF
34887 # Handling of arguments.
34888 for ac_config_target in $ac_config_targets
34890 case $ac_config_target in
34891 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34892 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
34893 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
34894 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34895 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34896 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34897 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34898 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34899 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34900 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34901 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34902 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34903 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34904 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34905 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34906 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34907 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34908 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34909 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34910 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34911 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34912 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34913 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34914 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34916 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34917 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34918 { (exit 1); exit 1; }; };;
34923 # If the user did not use the arguments to specify the items to instantiate,
34924 # then the envvar interface is used. Set only those that are not.
34925 # We use the long form for the default assignment because of an extremely
34926 # bizarre bug on SunOS 4.1.3.
34927 if $ac_need_defaults; then
34928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34933 # Have a temporary directory for convenience. Make it in the build tree
34934 # simply because there is no reason against having it here, and in addition,
34935 # creating and moving files from /tmp can sometimes cause problems.
34936 # Hook for its removal unless debugging.
34937 # Note that there is a small window in which the directory will not be cleaned:
34938 # after its creation but before its name has been assigned to `$tmp'.
34942 trap 'exit_status=$?
34943 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34945 trap '{ (exit 1); exit 1; }' 1 2 13 15
34947 # Create a (secure) tmp directory for tmp files.
34950 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34951 test -n "$tmp" && test -d "$tmp"
34954 tmp=./conf$$-$RANDOM
34955 (umask 077 && mkdir "$tmp")
34958 echo "$me: cannot create a temporary directory in ." >&2
34959 { (exit 1); exit 1; }
34963 # Set up the sed scripts for CONFIG_FILES section.
34966 # No need to generate the scripts if there are no CONFIG_FILES.
34967 # This happens for instance when ./config.status config.h
34968 if test -n "$CONFIG_FILES"; then
34975 for ac_last_try in false false false false false :; do
34976 cat >conf$$subs.sed <<_ACEOF
34977 SHELL!$SHELL$ac_delim
34978 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34979 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34980 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34981 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34982 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34983 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34984 exec_prefix!$exec_prefix$ac_delim
34985 prefix!$prefix$ac_delim
34986 program_transform_name!$program_transform_name$ac_delim
34987 bindir!$bindir$ac_delim
34988 sbindir!$sbindir$ac_delim
34989 libexecdir!$libexecdir$ac_delim
34990 datarootdir!$datarootdir$ac_delim
34991 datadir!$datadir$ac_delim
34992 sysconfdir!$sysconfdir$ac_delim
34993 sharedstatedir!$sharedstatedir$ac_delim
34994 localstatedir!$localstatedir$ac_delim
34995 includedir!$includedir$ac_delim
34996 oldincludedir!$oldincludedir$ac_delim
34997 docdir!$docdir$ac_delim
34998 infodir!$infodir$ac_delim
34999 htmldir!$htmldir$ac_delim
35000 dvidir!$dvidir$ac_delim
35001 pdfdir!$pdfdir$ac_delim
35002 psdir!$psdir$ac_delim
35003 libdir!$libdir$ac_delim
35004 localedir!$localedir$ac_delim
35005 mandir!$mandir$ac_delim
35006 DEFS!$DEFS$ac_delim
35007 ECHO_C!$ECHO_C$ac_delim
35008 ECHO_N!$ECHO_N$ac_delim
35009 ECHO_T!$ECHO_T$ac_delim
35010 LIBS!$LIBS$ac_delim
35011 build_alias!$build_alias$ac_delim
35012 host_alias!$host_alias$ac_delim
35013 target_alias!$target_alias$ac_delim
35014 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35015 subdirs!$subdirs$ac_delim
35016 build!$build$ac_delim
35017 build_cpu!$build_cpu$ac_delim
35018 build_vendor!$build_vendor$ac_delim
35019 build_os!$build_os$ac_delim
35020 host!$host$ac_delim
35021 host_cpu!$host_cpu$ac_delim
35022 host_vendor!$host_vendor$ac_delim
35023 host_os!$host_os$ac_delim
35024 target!$target$ac_delim
35025 target_cpu!$target_cpu$ac_delim
35026 target_vendor!$target_vendor$ac_delim
35027 target_os!$target_os$ac_delim
35029 LINKALL!$LINKALL$ac_delim
35030 NOLINKALL!$NOLINKALL$ac_delim
35031 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35032 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35033 ARCH!$ARCH$ac_delim
35034 ENDIAN!$ENDIAN$ac_delim
35036 CFLAGS!$CFLAGS$ac_delim
35037 LDFLAGS!$LDFLAGS$ac_delim
35038 CPPFLAGS!$CPPFLAGS$ac_delim
35039 ac_ct_CC!$ac_ct_CC$ac_delim
35040 EXEEXT!$EXEEXT$ac_delim
35041 OBJEXT!$OBJEXT$ac_delim
35043 GREP!$GREP$ac_delim
35044 EGREP!$EGREP$ac_delim
35045 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35046 BUILD_CC!$BUILD_CC$ac_delim
35047 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35048 BUILD_CXX!$BUILD_CXX$ac_delim
35049 CVSBUILD!$CVSBUILD$ac_delim
35050 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35051 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35052 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35053 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35054 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35055 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35057 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35058 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35059 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35060 ENABLE_PIC!$ENABLE_PIC$ac_delim
35061 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35062 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35063 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35064 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35065 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35066 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35068 CXXFLAGS!$CXXFLAGS$ac_delim
35069 ac_ct_CXX!$ac_ct_CXX$ac_delim
35071 ifGNUmake!$ifGNUmake$ac_delim
35072 LN_S!$LN_S$ac_delim
35076 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35078 elif $ac_last_try; then
35079 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35081 { (exit 1); exit 1; }; }
35083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35088 if test -n "$ac_eof"; then
35089 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35090 ac_eof=`expr $ac_eof + 1`
35093 cat >>$CONFIG_STATUS <<_ACEOF
35094 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35099 s/^/s,@/; s/!/@,|#_!!_#|/
35102 s/'"$ac_delim"'$/,g/; t
35104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35105 ' >>$CONFIG_STATUS <conf$$subs.sed
35106 rm -f conf$$subs.sed
35107 cat >>$CONFIG_STATUS <<_ACEOF
35113 for ac_last_try in false false false false false :; do
35114 cat >conf$$subs.sed <<_ACEOF
35116 DATE!$DATE$ac_delim
35117 FIND!$FIND$ac_delim
35118 MKDIR!$MKDIR$ac_delim
35120 RANLIB!$RANLIB$ac_delim
35124 BINPWD!$BINPWD$ac_delim
35125 GRAPHVIZ!$GRAPHVIZ$ac_delim
35128 DOTTY!$DOTTY$ac_delim
35129 PERL!$PERL$ac_delim
35130 HAVE_PERL!$HAVE_PERL$ac_delim
35131 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35132 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35133 INSTALL_DATA!$INSTALL_DATA$ac_delim
35134 BZIP2!$BZIP2$ac_delim
35135 DOXYGEN!$DOXYGEN$ac_delim
35136 GROFF!$GROFF$ac_delim
35137 GZIP!$GZIP$ac_delim
35138 POD2HTML!$POD2HTML$ac_delim
35139 POD2MAN!$POD2MAN$ac_delim
35140 RUNTEST!$RUNTEST$ac_delim
35141 TCLSH!$TCLSH$ac_delim
35143 OCAMLC!$OCAMLC$ac_delim
35144 OCAMLOPT!$OCAMLOPT$ac_delim
35145 OCAMLDEP!$OCAMLDEP$ac_delim
35146 OCAMLDOC!$OCAMLDOC$ac_delim
35148 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35149 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35150 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35151 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35152 LIBADD_DL!$LIBADD_DL$ac_delim
35153 ECHO!$ECHO$ac_delim
35155 STRIP!$STRIP$ac_delim
35156 CXXCPP!$CXXCPP$ac_delim
35158 FFLAGS!$FFLAGS$ac_delim
35159 ac_ct_F77!$ac_ct_F77$ac_delim
35160 LIBTOOL!$LIBTOOL$ac_delim
35161 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35162 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35163 LLVMGCC!$LLVMGCC$ac_delim
35164 LLVMGXX!$LLVMGXX$ac_delim
35165 USE_UDIS86!$USE_UDIS86$ac_delim
35166 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35167 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35168 ALLOCA!$ALLOCA$ac_delim
35169 MMAP_FILE!$MMAP_FILE$ac_delim
35170 LLVMCC1!$LLVMCC1$ac_delim
35171 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35172 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35173 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35174 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35175 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35176 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35177 SHLIBEXT!$SHLIBEXT$ac_delim
35178 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35179 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35180 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35181 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35182 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35183 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35184 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35185 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35186 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35187 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35188 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35189 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35190 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35191 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35192 RPATH!$RPATH$ac_delim
35193 RDYNAMIC!$RDYNAMIC$ac_delim
35194 LIBOBJS!$LIBOBJS$ac_delim
35195 LTLIBOBJS!$LTLIBOBJS$ac_delim
35198 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
35200 elif $ac_last_try; then
35201 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35202 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35203 { (exit 1); exit 1; }; }
35205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35209 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35210 if test -n "$ac_eof"; then
35211 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35212 ac_eof=`expr $ac_eof + 1`
35215 cat >>$CONFIG_STATUS <<_ACEOF
35216 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35220 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35221 s/^/s,@/; s/!/@,|#_!!_#|/
35224 s/'"$ac_delim"'$/,g/; t
35226 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35227 ' >>$CONFIG_STATUS <conf$$subs.sed
35228 rm -f conf$$subs.sed
35229 cat >>$CONFIG_STATUS <<_ACEOF
35236 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35237 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35238 # trailing colons and then remove the whole line if VPATH becomes empty
35239 # (actually we leave an empty line to preserve line numbers).
35240 if test "x$srcdir" = x.; then
35241 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35242 s/:*\$(srcdir):*/:/
35243 s/:*\${srcdir}:*/:/
35245 s/^\([^=]*=[ ]*\):*/\1/
35251 cat >>$CONFIG_STATUS <<\_ACEOF
35252 fi # test -n "$CONFIG_FILES"
35255 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35258 :[FHLC]) ac_mode=$ac_tag; continue;;
35260 case $ac_mode$ac_tag in
35262 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35263 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35264 { (exit 1); exit 1; }; };;
35265 :[FH]-) ac_tag=-:-;;
35266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35283 -) ac_f="$tmp/stdin";;
35284 *) # Look for the file first in the build tree, then in the source tree
35285 # (if the path is not absolute). The absolute path cannot be DOS-style,
35286 # because $ac_f cannot contain `:'.
35290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35292 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35293 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35294 { (exit 1); exit 1; }; };;
35296 ac_file_inputs="$ac_file_inputs $ac_f"
35299 # Let's still pretend it is `configure' which instantiates (i.e., don't
35300 # use $as_me), people would be surprised to read:
35301 # /* config.h. Generated by config.status. */
35302 configure_input="Generated from "`IFS=:
35303 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35304 if test x"$ac_file" != x-; then
35305 configure_input="$ac_file. $configure_input"
35306 { echo "$as_me:$LINENO: creating $ac_file" >&5
35307 echo "$as_me: creating $ac_file" >&6;}
35311 *:-:* | *:-) cat >"$tmp/stdin";;
35316 ac_dir=`$as_dirname -- "$ac_file" ||
35317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35318 X"$ac_file" : 'X\(//\)[^/]' \| \
35319 X"$ac_file" : 'X\(//\)$' \| \
35320 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35326 /^X\(\/\/\)[^/].*/{
35341 -*) as_dir=./$as_dir;;
35343 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35347 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35348 *) as_qdir=$as_dir;;
35350 as_dirs="'$as_qdir' $as_dirs"
35351 as_dir=`$as_dirname -- "$as_dir" ||
35352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35353 X"$as_dir" : 'X\(//\)[^/]' \| \
35354 X"$as_dir" : 'X\(//\)$' \| \
35355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35361 /^X\(\/\/\)[^/].*/{
35374 test -d "$as_dir" && break
35376 test -z "$as_dirs" || eval "mkdir $as_dirs"
35377 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35378 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35379 { (exit 1); exit 1; }; }; }
35383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35385 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35386 # A ".." for each directory in $ac_dir_suffix.
35387 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35388 case $ac_top_builddir_sub in
35389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35393 ac_abs_top_builddir=$ac_pwd
35394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35395 # for backward compatibility:
35396 ac_top_builddir=$ac_top_build_prefix
35399 .) # We are building in place.
35401 ac_top_srcdir=$ac_top_builddir_sub
35402 ac_abs_top_srcdir=$ac_pwd ;;
35403 [\\/]* | ?:[\\/]* ) # Absolute name.
35404 ac_srcdir=$srcdir$ac_dir_suffix;
35405 ac_top_srcdir=$srcdir
35406 ac_abs_top_srcdir=$srcdir ;;
35407 *) # Relative name.
35408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35409 ac_top_srcdir=$ac_top_build_prefix$srcdir
35410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35427 cat >>$CONFIG_STATUS <<\_ACEOF
35428 # If the template does not know about datarootdir, expand it.
35429 # FIXME: This hack should be removed a few years after 2.60.
35430 ac_datarootdir_hack=; ac_datarootdir_seen=
35432 case `sed -n '/datarootdir/ {
35441 ' $ac_file_inputs` in
35442 *datarootdir*) ac_datarootdir_seen=yes;;
35443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35444 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35445 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35447 cat >>$CONFIG_STATUS <<_ACEOF
35448 ac_datarootdir_hack='
35449 s&@datadir@&$datadir&g
35450 s&@docdir@&$docdir&g
35451 s&@infodir@&$infodir&g
35452 s&@localedir@&$localedir&g
35453 s&@mandir@&$mandir&g
35454 s&\\\${datarootdir}&$datarootdir&g' ;;
35458 # Neutralize VPATH when `$srcdir' = `.'.
35459 # Shell code in configure.ac might set extrasub.
35460 # FIXME: do we really want to maintain this feature?
35461 cat >>$CONFIG_STATUS <<_ACEOF
35465 cat >>$CONFIG_STATUS <<\_ACEOF
35467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35468 s&@configure_input@&$configure_input&;t t
35469 s&@top_builddir@&$ac_top_builddir_sub&;t t
35470 s&@srcdir@&$ac_srcdir&;t t
35471 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35472 s&@top_srcdir@&$ac_top_srcdir&;t t
35473 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35474 s&@builddir@&$ac_builddir&;t t
35475 s&@abs_builddir@&$ac_abs_builddir&;t t
35476 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35477 s&@INSTALL@&$ac_INSTALL&;t t
35478 $ac_datarootdir_hack
35479 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35484 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35485 which seems to be undefined. Please make sure it is defined." >&5
35486 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35487 which seems to be undefined. Please make sure it is defined." >&2;}
35491 -) cat "$tmp/out"; rm -f "$tmp/out";;
35492 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35501 # Transform confdefs.h into a sed script `conftest.defines', that
35502 # substitutes the proper values into config.h.in to produce config.h.
35503 rm -f conftest.defines conftest.tail
35504 # First, append a space to every undef/define line, to ease matching.
35505 echo 's/$/ /' >conftest.defines
35506 # Then, protect against being on the right side of a sed subst, or in
35507 # an unquoted here document, in config.status. If some macros were
35508 # called several times there might be several #defines for the same
35509 # symbol, which is useless. But do not sort them, since the last
35510 # AC_DEFINE must be honored.
35511 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35512 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35513 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35514 # PARAMS is the parameter list in the macro definition--in most cases, it's
35515 # just an empty string.
35516 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35517 ac_dB='\\)[ (].*,\\1define\\2'
35525 s/^[ ]*#[ ]*define[ ][ ]*//
35530 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35531 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35532 ' >>conftest.defines
35534 # Remove the space that was appended to ease matching.
35535 # Then replace #undef with comments. This is necessary, for
35536 # example, in the case of _POSIX_SOURCE, which is predefined and required
35537 # on some systems where configure will not decide to define it.
35538 # (The regexp can be short, since the line contains either #define or #undef.)
35540 s,^[ #]*u.*,/* & */,' >>conftest.defines
35542 # Break up conftest.defines:
35543 ac_max_sed_lines=50
35545 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35546 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35547 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35549 ac_in='$ac_file_inputs'
35550 ac_out='"$tmp/out1"'
35551 ac_nxt='"$tmp/out2"'
35555 # Write a here document:
35556 cat >>$CONFIG_STATUS <<_ACEOF
35557 # First, check the format of the line:
35558 cat >"\$tmp/defines.sed" <<\\CEOF
35559 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35560 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35564 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35566 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35567 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35568 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35569 grep . conftest.tail >/dev/null || break
35570 rm -f conftest.defines
35571 mv conftest.tail conftest.defines
35573 rm -f conftest.defines conftest.tail
35575 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35576 cat >>$CONFIG_STATUS <<\_ACEOF
35577 if test x"$ac_file" != x-; then
35578 echo "/* $configure_input */" >"$tmp/config.h"
35579 cat "$ac_result" >>"$tmp/config.h"
35580 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35581 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35582 echo "$as_me: $ac_file is unchanged" >&6;}
35585 mv "$tmp/config.h" $ac_file
35588 echo "/* $configure_input */"
35594 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35595 echo "$as_me: executing $ac_file commands" >&6;}
35600 case $ac_file$ac_mode in
35601 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35603 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35605 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35607 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35609 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35611 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35613 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35615 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35617 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35619 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35621 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35623 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35624 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35625 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35626 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35632 { (exit 0); exit 0; }
35634 chmod +x $CONFIG_STATUS
35635 ac_clean_files=$ac_clean_files_save
35638 # configure is writing to config.log, and then calls config.status.
35639 # config.status does its own redirection, appending to config.log.
35640 # Unfortunately, on DOS this fails, as config.log is still kept open
35641 # by configure, so config.status won't be able to write to it; its
35642 # output is simply discarded. So we exec the FD to /dev/null,
35643 # effectively closing config.log, so it can be properly (re)opened and
35644 # appended to by config.status. When coming back to configure, we
35645 # need to make the FD available again.
35646 if test "$no_create" != yes; then
35648 ac_config_status_args=
35649 test "$silent" = yes &&
35650 ac_config_status_args="$ac_config_status_args --quiet"
35652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35655 # would make configure fail if this is the last instruction.
35656 $ac_cs_success || { (exit 1); exit 1; }
35660 # CONFIG_SUBDIRS section.
35662 if test "$no_recursion" != yes; then
35664 # Remove --cache-file and --srcdir arguments so they do not pile up.
35665 ac_sub_configure_args=
35667 eval "set x $ac_configure_args"
35671 if test -n "$ac_prev"; then
35676 -cache-file | --cache-file | --cache-fil | --cache-fi \
35677 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35678 ac_prev=cache_file ;;
35679 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35680 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35683 --config-cache | -C)
35685 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35687 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35689 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35691 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35695 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35697 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35701 # Always prepend --prefix to ensure using the same prefix
35702 # in subdir configurations.
35703 ac_arg="--prefix=$prefix"
35705 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35707 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35710 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35712 # Do not complain, so a configure script can configure whichever
35713 # parts of a large source tree are present.
35714 test -d "$srcdir/$ac_dir" || continue
35716 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35717 echo "$as_me:$LINENO: $ac_msg" >&5
35721 -*) as_dir=./$as_dir;;
35723 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35727 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35728 *) as_qdir=$as_dir;;
35730 as_dirs="'$as_qdir' $as_dirs"
35731 as_dir=`$as_dirname -- "$as_dir" ||
35732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35733 X"$as_dir" : 'X\(//\)[^/]' \| \
35734 X"$as_dir" : 'X\(//\)$' \| \
35735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35741 /^X\(\/\/\)[^/].*/{
35754 test -d "$as_dir" && break
35756 test -z "$as_dirs" || eval "mkdir $as_dirs"
35757 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35758 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35759 { (exit 1); exit 1; }; }; }
35763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35766 # A ".." for each directory in $ac_dir_suffix.
35767 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35768 case $ac_top_builddir_sub in
35769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35773 ac_abs_top_builddir=$ac_pwd
35774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35775 # for backward compatibility:
35776 ac_top_builddir=$ac_top_build_prefix
35779 .) # We are building in place.
35781 ac_top_srcdir=$ac_top_builddir_sub
35782 ac_abs_top_srcdir=$ac_pwd ;;
35783 [\\/]* | ?:[\\/]* ) # Absolute name.
35784 ac_srcdir=$srcdir$ac_dir_suffix;
35785 ac_top_srcdir=$srcdir
35786 ac_abs_top_srcdir=$srcdir ;;
35787 *) # Relative name.
35788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35789 ac_top_srcdir=$ac_top_build_prefix$srcdir
35790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35797 # Check for guested configure; otherwise get Cygnus style configure.
35798 if test -f "$ac_srcdir/configure.gnu"; then
35799 ac_sub_configure=$ac_srcdir/configure.gnu
35800 elif test -f "$ac_srcdir/configure"; then
35801 ac_sub_configure=$ac_srcdir/configure
35802 elif test -f "$ac_srcdir/configure.in"; then
35803 # This should be Cygnus configure.
35804 ac_sub_configure=$ac_aux_dir/configure
35806 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35807 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35811 # The recursion is here.
35812 if test -n "$ac_sub_configure"; then
35813 # Make the cache file name correct relative to the subdirectory.
35814 case $cache_file in
35815 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35816 *) # Relative name.
35817 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35820 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35821 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35822 # The eval makes quoting arguments work.
35823 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35824 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35825 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35826 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35827 { (exit 1); exit 1; }; }