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
889 CONVENIENCE_LTDL_TRUE
890 CONVENIENCE_LTDL_FALSE
928 ENABLE_VISIBILITY_INLINES_HIDDEN
934 ac_precious_vars='build_alias
948 ac_subdirs_all='projects/sample
950 projects/llvm-stacker
957 projects/llvm-poolalloc
959 projects/llvm-kernel'
961 # Initialize some variables set by options.
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name=s,x,x,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068 eval enable_$ac_feature=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1251 -site=* | --site=* | --sit=*)
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package| sed 's/-/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/-/_/g'`
1293 eval with_$ac_package=no ;;
1296 # Obsolete; use --with-x.
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1344 # Be sure to have absolute directory names.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1350 eval ac_val=\$$ac_var
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380 test "$silent" = yes && exec 6>/dev/null
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-expensive-checks
1539 --enable-debug-runtime
1540 --enable-jit Enable Just In Time Compiling (default is YES)
1541 --enable-doxygen Build doxygen documentation (default is NO)
1542 --enable-threads Use threads if available (default is YES)
1543 --enable-pic Build LLVM with Position Independent Code (default
1545 --enable-targets Build specific host targets:
1546 all,host-only,{target-name} (default=all)
1547 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1549 --enable-bindings Build specific language bindings:
1550 all,auto,none,{binding-name} (default=auto)
1551 --enable-ltdl-install install libltdl
1552 --enable-shared[=PKGS] build shared libraries
1554 --enable-static[=PKGS] build static libraries
1556 --enable-fast-install[=PKGS]
1557 optimize for fast installation
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1566 --with-llvmgcc Specify location of llvm-gcc driver (default
1568 --with-llvmgxx Specify location of llvm-g++ driver (default
1570 --with-extra-options Specify addtional options to compile LLVM with
1571 --with-ocaml-libdir Specify install location for ocaml bindings (default
1573 --with-binutils-include Specify path to binutils/include/ containing
1574 plugin-api.h file for gold plugin.
1575 --with-tclinclude directory where tcl headers are
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-pic try to use only PIC/non-PIC objects [default=use
1579 --with-tags[=TAGS] include additional configurations [automatic]
1580 --with-udis86=<path> Use udis86 external x86 disassembler library
1582 Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
1592 CXXCPP C++ preprocessor
1593 F77 Fortran 77 compiler command
1594 FFLAGS Fortran 77 compiler flags
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1599 Report bugs to <llvmbugs@cs.uiuc.edu>.
1604 if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
1606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607 test -d "$ac_dir" || continue
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1627 .) # We are building in place.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1651 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1660 llvm configure 2.6svn
1661 generated by GNU Autoconf 2.60
1663 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1664 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1668 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1672 cat >config.log <<_ACEOF
1673 This file contains any messages produced by compilers while
1674 running configure, to aid debugging if configure makes a mistake.
1676 It was created by llvm $as_me 2.6svn, which was
1677 generated by GNU Autoconf 2.60. Invocation command line was
1689 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1690 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1691 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1692 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1693 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1695 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1696 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1698 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1699 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1700 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1701 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1702 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1703 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1704 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 echo "PATH: $as_dir"
1729 # Keep a trace of the command line.
1730 # Strip out --no-create and --no-recursion so they do not pile up.
1731 # Strip out --silent because we don't want to record it for future runs.
1732 # Also quote any args containing shell meta-characters.
1733 # Make two passes to allow for proper duplicate-argument suppression.
1737 ac_must_keep_next=false
1743 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745 | -silent | --silent | --silen | --sile | --sil)
1748 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1753 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1754 if test $ac_must_keep_next = true; then
1755 ac_must_keep_next=false # Got value, back to normal.
1758 *=* | --config-cache | -C | -disable-* | --disable-* \
1759 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1760 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1761 | -with-* | --with-* | -without-* | --without-* | --x)
1762 case "$ac_configure_args0 " in
1763 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 -* ) ac_must_keep_next=true ;;
1769 ac_configure_args="$ac_configure_args '$ac_arg'"
1774 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1775 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1777 # When interrupted or exit'd, cleanup temporary files, and complete
1778 # config.log. We remove comments because anyway the quotes in there
1779 # would cause problems or look ugly.
1780 # WARNING: Use '\'' to represent an apostrophe within the trap.
1781 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1782 trap 'exit_status=$?
1783 # Save into config.log some information that might help in debugging.
1788 ## ---------------- ##
1789 ## Cache variables. ##
1790 ## ---------------- ##
1793 # The following way of writing the cache mishandles newlines in values,
1795 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1796 eval ac_val=\$$ac_var
1800 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1801 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 _ | IFS | as_nl) ;; #(
1805 *) $as_unset $ac_var ;;
1810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811 *${as_nl}ac_space=\ *)
1813 "s/'\''/'\''\\\\'\'''\''/g;
1814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825 ## ----------------- ##
1826 ## Output variables. ##
1827 ## ----------------- ##
1830 for ac_var in $ac_subst_vars
1832 eval ac_val=\$$ac_var
1834 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 echo "$ac_var='\''$ac_val'\''"
1840 if test -n "$ac_subst_files"; then
1842 ## ------------------- ##
1843 ## File substitutions. ##
1844 ## ------------------- ##
1847 for ac_var in $ac_subst_files
1849 eval ac_val=\$$ac_var
1851 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 echo "$ac_var='\''$ac_val'\''"
1858 if test -s confdefs.h; then
1868 test "$ac_signal" != 0 &&
1869 echo "$as_me: caught signal $ac_signal"
1870 echo "$as_me: exit $exit_status"
1872 rm -f core *.core core.conftest.* &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 for ac_signal in 1 2 13 15; do
1877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1882 rm -f -r conftest* confdefs.h
1884 # Predefined preprocessor variables.
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 # Let the site file select an alternate cache file if it wants to.
1912 # Prefer explicitly selected file to automatically selected ones.
1913 if test -n "$CONFIG_SITE"; then
1914 set x "$CONFIG_SITE"
1915 elif test "x$prefix" != xNONE; then
1916 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1918 set x "$ac_default_prefix/share/config.site" \
1919 "$ac_default_prefix/etc/config.site"
1924 if test -r "$ac_site_file"; then
1925 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926 echo "$as_me: loading site script $ac_site_file" >&6;}
1927 sed 's/^/| /' "$ac_site_file" >&5
1932 if test -r "$cache_file"; then
1933 # Some versions of bash will fail to source /dev/null (special
1934 # files actually), so we avoid doing that.
1935 if test -f "$cache_file"; then
1936 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937 echo "$as_me: loading cache $cache_file" >&6;}
1939 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940 *) . "./$cache_file";;
1944 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945 echo "$as_me: creating cache $cache_file" >&6;}
1949 # Check that the precious variables saved in the cache have kept the same
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1959 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1970 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1971 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1972 echo "$as_me: former value: $ac_old_val" >&2;}
1973 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1974 echo "$as_me: current value: $ac_new_val" >&2;}
1975 ac_cache_corrupted=:
1978 # Pass precious variables to config.status.
1979 if test "$ac_new_set" = set; then
1981 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1982 *) ac_arg=$ac_var=$ac_new_val ;;
1984 case " $ac_configure_args " in
1985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1986 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990 if $ac_cache_corrupted; then
1991 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1992 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1993 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1994 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1995 { (exit 1); exit 1; }; }
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2039 for ac_dir in autoconf "$srcdir"/autoconf; do
2040 if test -f "$ac_dir/install-sh"; then
2042 ac_install_sh="$ac_aux_dir/install-sh -c"
2044 elif test -f "$ac_dir/install.sh"; then
2046 ac_install_sh="$ac_aux_dir/install.sh -c"
2048 elif test -f "$ac_dir/shtool"; then
2050 ac_install_sh="$ac_aux_dir/shtool install -c"
2054 if test -z "$ac_aux_dir"; then
2055 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2056 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2057 { (exit 1); exit 1; }; }
2060 # These three variables are undocumented and unsupported,
2061 # and are intended to be withdrawn in a future Autoconf release.
2062 # They can cause serious problems if a builder's source tree is in a directory
2063 # whose full name contains unusual characters.
2064 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2065 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2066 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070 if test ${srcdir} != "." ; then
2071 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2072 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2073 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2074 { (exit 1); exit 1; }; }
2078 for i in `ls ${srcdir}/projects`
2080 if test -d ${srcdir}/projects/${i} ; then
2083 sample) subdirs="$subdirs projects/sample"
2085 privbracket) subdirs="$subdirs projects/privbracket"
2087 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2089 # llvm-test is the old name of the test-suite, kept here for backwards
2091 llvm-test) subdirs="$subdirs projects/llvm-test"
2093 test-suite) subdirs="$subdirs projects/test-suite"
2095 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2097 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2099 llvm-java) subdirs="$subdirs projects/llvm-java"
2101 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2103 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2105 poolalloc) subdirs="$subdirs projects/poolalloc"
2107 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2110 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2111 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2118 # Make sure we can run config.sub.
2119 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2120 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2121 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2122 { (exit 1); exit 1; }; }
2124 { echo "$as_me:$LINENO: checking build system type" >&5
2125 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2126 if test "${ac_cv_build+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 ac_build_alias=$build_alias
2130 test "x$ac_build_alias" = x &&
2131 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2132 test "x$ac_build_alias" = x &&
2133 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2134 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2135 { (exit 1); exit 1; }; }
2136 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2137 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2139 { (exit 1); exit 1; }; }
2142 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2143 echo "${ECHO_T}$ac_cv_build" >&6; }
2144 case $ac_cv_build in
2146 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2147 echo "$as_me: error: invalid value of canonical build" >&2;}
2148 { (exit 1); exit 1; }; };;
2151 ac_save_IFS=$IFS; IFS='-'
2157 # Remember, the first character of IFS is used to create $*,
2158 # except with old shells:
2161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2164 { echo "$as_me:$LINENO: checking host system type" >&5
2165 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2166 if test "${ac_cv_host+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test "x$host_alias" = x; then
2170 ac_cv_host=$ac_cv_build
2172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2173 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2174 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2175 { (exit 1); exit 1; }; }
2179 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2180 echo "${ECHO_T}$ac_cv_host" >&6; }
2183 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2184 echo "$as_me: error: invalid value of canonical host" >&2;}
2185 { (exit 1); exit 1; }; };;
2188 ac_save_IFS=$IFS; IFS='-'
2194 # Remember, the first character of IFS is used to create $*,
2195 # except with old shells:
2198 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2201 { echo "$as_me:$LINENO: checking target system type" >&5
2202 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2203 if test "${ac_cv_target+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 if test "x$target_alias" = x; then
2207 ac_cv_target=$ac_cv_host
2209 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2210 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2211 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2212 { (exit 1); exit 1; }; }
2216 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2217 echo "${ECHO_T}$ac_cv_target" >&6; }
2218 case $ac_cv_target in
2220 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2221 echo "$as_me: error: invalid value of canonical target" >&2;}
2222 { (exit 1); exit 1; }; };;
2224 target=$ac_cv_target
2225 ac_save_IFS=$IFS; IFS='-'
2231 # Remember, the first character of IFS is used to create $*,
2232 # except with old shells:
2235 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2238 # The aliases save the names the user supplied, while $host etc.
2239 # will get canonicalized.
2240 test -n "$target_alias" &&
2241 test "$program_prefix$program_suffix$program_transform_name" = \
2243 program_prefix=${target_alias}-
2245 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2246 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2247 if test "${llvm_cv_os_type+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 llvm_cv_link_all_option="-Wl,--whole-archive"
2253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2254 llvm_cv_os_type="AIX"
2255 llvm_cv_platform_type="Unix" ;;
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="IRIX"
2260 llvm_cv_platform_type="Unix" ;;
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="Cygwin"
2265 llvm_cv_platform_type="Unix" ;;
2267 llvm_cv_link_all_option="-Wl,-all_load"
2268 llvm_cv_no_link_all_option="-Wl,-noall_load"
2269 llvm_cv_os_type="Darwin"
2270 llvm_cv_platform_type="Unix" ;;
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="FreeBSD"
2275 llvm_cv_platform_type="Unix" ;;
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="OpenBSD"
2280 llvm_cv_platform_type="Unix" ;;
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="NetBSD"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="DragonFly"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="HP-UX"
2295 llvm_cv_platform_type="Unix" ;;
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="Interix"
2300 llvm_cv_platform_type="Unix" ;;
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="Linux"
2305 llvm_cv_platform_type="Unix" ;;
2307 llvm_cv_link_all_option="-Wl,-z,allextract"
2308 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2309 llvm_cv_os_type="SunOS"
2310 llvm_cv_platform_type="Unix" ;;
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="Win32"
2315 llvm_cv_platform_type="Win32" ;;
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="MingW"
2320 llvm_cv_platform_type="Win32" ;;
2322 llvm_cv_link_all_option=""
2323 llvm_cv_no_link_all_option=""
2324 llvm_cv_os_type="Unknown"
2325 llvm_cv_platform_type="Unknown" ;;
2328 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2329 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2331 if test "$llvm_cv_os_type" = "Unknown" ; then
2332 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2333 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2334 { (exit 1); exit 1; }; }
2340 LINKALL=$llvm_cv_link_all_option
2342 NOLINKALL=$llvm_cv_no_link_all_option
2345 case $llvm_cv_platform_type in
2348 cat >>confdefs.h <<\_ACEOF
2349 #define LLVM_ON_UNIX 1
2359 cat >>confdefs.h <<\_ACEOF
2360 #define LLVM_ON_WIN32 1
2370 { echo "$as_me:$LINENO: checking target architecture" >&5
2371 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2372 if test "${llvm_cv_target_arch+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 i?86-*) llvm_cv_target_arch="x86" ;;
2377 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2378 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2379 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2380 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2381 ia64-*) llvm_cv_target_arch="IA64" ;;
2382 arm-* | armv??-*) llvm_cv_target_arch="ARM" ;;
2383 mips-*) llvm_cv_target_arch="Mips" ;;
2384 pic16-*) llvm_cv_target_arch="PIC16" ;;
2385 xcore-*) llvm_cv_target_arch="XCore" ;;
2386 *) llvm_cv_target_arch="Unknown" ;;
2389 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2390 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2392 if test "$llvm_cv_target_arch" = "Unknown" ; then
2393 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2394 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2397 ARCH=$llvm_cv_target_arch
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 if test -n "$CC"; then
2435 { echo "$as_me:$LINENO: result: $CC" >&5
2436 echo "${ECHO_T}$CC" >&6; }
2438 { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2444 if test -z "$ac_cv_prog_CC"; then
2446 # Extract the first word of "gcc", so it can be a program name with args.
2447 set dummy gcc; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$ac_ct_CC"; then
2454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_ac_ct_CC="gcc"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2474 if test -n "$ac_ct_CC"; then
2475 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2476 echo "${ECHO_T}$ac_ct_CC" >&6; }
2478 { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2482 if test "x$ac_ct_CC" = x; then
2485 case $cross_compiling:$ac_tool_warned in
2487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&5
2490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493 ac_tool_warned=yes ;;
2501 if test -z "$CC"; then
2502 if test -n "$ac_tool_prefix"; then
2503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2504 set dummy ${ac_tool_prefix}cc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_CC="${ac_tool_prefix}cc"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 if test -n "$CC"; then
2532 { echo "$as_me:$LINENO: result: $CC" >&5
2533 echo "${ECHO_T}$CC" >&6; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2542 if test -z "$CC"; then
2543 # Extract the first word of "cc", so it can be a program name with args.
2544 set dummy cc; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2562 ac_prog_rejected=yes
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 if test $ac_prog_rejected = yes; then
2574 # We found a bogon in the path, so make sure we never use it.
2575 set dummy $ac_cv_prog_CC
2577 if test $# != 0; then
2578 # We chose a different compiler from the bogus one.
2579 # However, it has the same basename, so the bogon will be chosen
2580 # first if we set CC to just the basename; use the full file name.
2582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2588 if test -n "$CC"; then
2589 { echo "$as_me:$LINENO: result: $CC" >&5
2590 echo "${ECHO_T}$CC" >&6; }
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2598 if test -z "$CC"; then
2599 if test -n "$ac_tool_prefix"; then
2600 for ac_prog in cl.exe
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$CC"; then
2631 { echo "$as_me:$LINENO: result: $CC" >&5
2632 echo "${ECHO_T}$CC" >&6; }
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2639 test -n "$CC" && break
2642 if test -z "$CC"; then
2644 for ac_prog in cl.exe
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_ac_ct_CC="$ac_prog"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 echo "${ECHO_T}$ac_ct_CC" >&6; }
2678 { echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6; }
2683 test -n "$ac_ct_CC" && break
2686 if test "x$ac_ct_CC" = x; then
2689 case $cross_compiling:$ac_tool_warned in
2691 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet. If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&5
2694 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2695 whose name does not start with the host triplet. If you think this
2696 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2697 ac_tool_warned=yes ;;
2706 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: no acceptable C compiler found in \$PATH
2709 See \`config.log' for more details." >&2;}
2710 { (exit 1); exit 1; }; }
2712 # Provide some information about the compiler.
2713 echo "$as_me:$LINENO: checking for C compiler version" >&5
2714 ac_compiler=`set X $ac_compile; echo $2`
2715 { (ac_try="$ac_compiler --version >&5"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compiler --version >&5") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }
2725 { (ac_try="$ac_compiler -v >&5"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compiler -v >&5") 2>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }
2735 { (ac_try="$ac_compiler -V >&5"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compiler -V >&5") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2761 ac_clean_files_save=$ac_clean_files
2762 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2763 # Try to create an executable without -o first, disregard a.out.
2764 # It will help us diagnose broken compilers, and finding out an intuition
2766 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2767 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2768 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2770 # List of possible output files, starting from the most likely.
2771 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2772 # only as a last resort. b.out is created by i960 compilers.
2773 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2775 # The IRIX 6 linker writes into existing files which may not be
2776 # executable, retaining their permissions. Remove them first so a
2777 # subsequent execution test works.
2779 for ac_file in $ac_files
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2788 if { (ac_try="$ac_link_default"
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_link_default") 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; then
2798 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2799 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2800 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2801 # so that the user can short-circuit this test for compilers unknown to
2803 for ac_file in $ac_files
2805 test -f "$ac_file" || continue
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2810 # We found the default executable, but exeext='' is most
2814 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2818 # We set ac_cv_exeext here because the later test for it is not
2819 # safe: cross compilers may not add the suffix if given an `-o'
2820 # argument, so we may need to know it at that point already.
2821 # Even if this section looks crufty: it has the advantage of
2828 test "$ac_cv_exeext" = no && ac_cv_exeext=
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2834 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2835 See \`config.log' for more details." >&5
2836 echo "$as_me: error: C compiler cannot create executables
2837 See \`config.log' for more details." >&2;}
2838 { (exit 77); exit 77; }; }
2841 ac_exeext=$ac_cv_exeext
2842 { echo "$as_me:$LINENO: result: $ac_file" >&5
2843 echo "${ECHO_T}$ac_file" >&6; }
2845 # Check that the compiler produces executables we can run. If not, either
2846 # the compiler is broken, or we cross compile.
2847 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2850 # If not cross compiling, check that we can run a simple program.
2851 if test "$cross_compiling" != yes; then
2852 if { ac_try='./$ac_file'
2853 { (case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_try") 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2864 if test "$cross_compiling" = maybe; then
2867 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2877 { echo "$as_me:$LINENO: result: yes" >&5
2878 echo "${ECHO_T}yes" >&6; }
2880 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2881 ac_clean_files=$ac_clean_files_save
2882 # Check that the compiler produces executables we can run. If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2885 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2886 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2887 echo "${ECHO_T}$cross_compiling" >&6; }
2889 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2890 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2891 if { (ac_try="$ac_link"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_link") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2902 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2903 # work properly (i.e., refer to `conftest.exe'), while it won't with
2905 for ac_file in conftest.exe conftest conftest.*; do
2906 test -f "$ac_file" || continue
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2922 rm -f conftest$ac_cv_exeext
2923 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2924 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2926 rm -f conftest.$ac_ext
2927 EXEEXT=$ac_cv_exeext
2929 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2930 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2931 if test "${ac_cv_objext+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2949 rm -f conftest.o conftest.obj
2950 if { (ac_try="$ac_compile"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; then
2960 for ac_file in conftest.o conftest.obj conftest.*; do
2961 test -f "$ac_file" || continue;
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2964 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2981 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2982 echo "${ECHO_T}$ac_cv_objext" >&6; }
2983 OBJEXT=$ac_cv_objext
2985 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2986 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3023 { (case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_try") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3054 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3056 GCC=`test $ac_compiler_gnu = yes && echo yes`
3057 ac_test_CFLAGS=${CFLAGS+set}
3058 ac_save_CFLAGS=$CFLAGS
3059 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_cc_g+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 ac_save_c_werror_flag=$ac_c_werror_flag
3065 ac_c_werror_flag=yes
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3098 { (case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_try") 2>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 ac_c_werror_flag=$ac_save_c_werror_flag
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
3203 grep -v '^ *+' conftest.er1 >conftest.err
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_try") 2>&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_try") 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3247 if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249 elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3256 if test "$GCC" = yes; then
3262 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3264 if test "${ac_cv_prog_cc_c89+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_cv_prog_cc_c89=no
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3277 #include <sys/types.h>
3278 #include <sys/stat.h>
3279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280 struct buf { int x; };
3281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282 static char *e (p, i)
3288 static char *f (char * (*g) (char **, int), char **p, ...)
3293 s = g (p, va_arg (v,int));
3298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
3301 as 'x'. The following induces an error, until -std is added to get
3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
3304 that's true only with -std. */
3305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312 int test (int i, double x);
3313 struct s1 {int (*f) (int a);};
3314 struct s2 {int (*f) (double a);};
3315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3329 CC="$ac_save_CC $ac_arg"
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3339 grep -v '^ *+' conftest.er1 >conftest.err
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345 { (case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_try") 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_try") 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_prog_cc_c89=$ac_arg
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 rm -f conftest.$ac_ext
3380 case "x$ac_cv_prog_cc_c89" in
3382 { echo "$as_me:$LINENO: result: none needed" >&5
3383 echo "${ECHO_T}none needed" >&6; } ;;
3385 { echo "$as_me:$LINENO: result: unsupported" >&5
3386 echo "${ECHO_T}unsupported" >&6; } ;;
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3408 # On Suns, sometimes $CPP names a directory.
3409 if test -n "$CPP" && test -d "$CPP"; then
3412 if test -z "$CPP"; then
3413 if test "${ac_cv_prog_CPP+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 # Double quotes because CPP needs to be expanded
3417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3420 for ac_c_preproc_warn_flag in '' yes
3422 # Use a header file that comes with gcc, so configuring glibc
3423 # with a fresh cross-compiler works.
3424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3425 # <limits.h> exists even on freestanding compilers.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3435 # include <limits.h>
3437 # include <assert.h>
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449 grep -v '^ *+' conftest.er1 >conftest.err
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463 if test -z "$ac_cpp_err"; then
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 # Broken: fails on valid input.
3473 rm -f conftest.err conftest.$ac_ext
3475 # OK, works on sane cases. Now check whether nonexistent headers
3476 # can be detected and how.
3477 cat >conftest.$ac_ext <<_ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 #include <ac_nonexistent.h>
3485 if { (ac_try="$ac_cpp conftest.$ac_ext"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null; then
3498 if test -s conftest.err; then
3499 ac_cpp_err=$ac_c_preproc_warn_flag
3500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3507 if test -z "$ac_cpp_err"; then
3508 # Broken: success on invalid input.
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 # Passes both tests.
3519 rm -f conftest.err conftest.$ac_ext
3522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3523 rm -f conftest.err conftest.$ac_ext
3524 if $ac_preproc_ok; then
3536 { echo "$as_me:$LINENO: result: $CPP" >&5
3537 echo "${ECHO_T}$CPP" >&6; }
3539 for ac_c_preproc_warn_flag in '' yes
3541 # Use a header file that comes with gcc, so configuring glibc
3542 # with a fresh cross-compiler works.
3543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3544 # <limits.h> exists even on freestanding compilers.
3545 # On the NeXT, cc -E runs the code through the compiler's parser,
3546 # not just through cpp. "Syntax error" is here to catch this case.
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3554 # include <limits.h>
3556 # include <assert.h>
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 if test -z "$ac_cpp_err"; then
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 # Broken: fails on valid input.
3592 rm -f conftest.err conftest.$ac_ext
3594 # OK, works on sane cases. Now check whether nonexistent headers
3595 # can be detected and how.
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #include <ac_nonexistent.h>
3604 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev/null; then
3617 if test -s conftest.err; then
3618 ac_cpp_err=$ac_c_preproc_warn_flag
3619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3626 if test -z "$ac_cpp_err"; then
3627 # Broken: success on invalid input.
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 # Passes both tests.
3638 rm -f conftest.err conftest.$ac_ext
3641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642 rm -f conftest.err conftest.$ac_ext
3643 if $ac_preproc_ok; then
3646 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&5
3648 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3649 See \`config.log' for more details." >&2;}
3650 { (exit 1); exit 1; }; }
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3661 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3662 if test "${ac_cv_path_GREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 # Extract the first word of "grep ggrep" to use in msg output
3666 if test -z "$GREP"; then
3667 set dummy grep ggrep; ac_prog_name=$2
3668 if test "${ac_cv_path_GREP+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 ac_path_GREP_found=false
3672 # Loop through the user's path and test for each of PROGNAME-LIST
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3677 test -z "$as_dir" && as_dir=.
3678 for ac_prog in grep ggrep; do
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3681 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3682 # Check for GNU ac_path_GREP and select it if it is found.
3683 # Check for GNU $ac_path_GREP
3684 case `"$ac_path_GREP" --version 2>&1` in
3686 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3689 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3692 cat "conftest.in" "conftest.in" >"conftest.tmp"
3693 mv "conftest.tmp" "conftest.in"
3694 cp "conftest.in" "conftest.nl"
3695 echo 'GREP' >> "conftest.nl"
3696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698 ac_count=`expr $ac_count + 1`
3699 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3700 # Best one so far, save it but keep looking for a better one
3701 ac_cv_path_GREP="$ac_path_GREP"
3702 ac_path_GREP_max=$ac_count
3704 # 10*(2^10) chars as input seems more than enough
3705 test $ac_count -gt 10 && break
3707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 $ac_path_GREP_found && break 3
3721 GREP="$ac_cv_path_GREP"
3722 if test -z "$GREP"; then
3723 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3724 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3725 { (exit 1); exit 1; }; }
3729 ac_cv_path_GREP=$GREP
3734 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3735 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3736 GREP="$ac_cv_path_GREP"
3739 { echo "$as_me:$LINENO: checking for egrep" >&5
3740 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3745 then ac_cv_path_EGREP="$GREP -E"
3747 # Extract the first word of "egrep" to use in msg output
3748 if test -z "$EGREP"; then
3749 set dummy egrep; ac_prog_name=$2
3750 if test "${ac_cv_path_EGREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 ac_path_EGREP_found=false
3754 # Loop through the user's path and test for each of PROGNAME-LIST
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3759 test -z "$as_dir" && as_dir=.
3760 for ac_prog in egrep; do
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3763 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3764 # Check for GNU ac_path_EGREP and select it if it is found.
3765 # Check for GNU $ac_path_EGREP
3766 case `"$ac_path_EGREP" --version 2>&1` in
3768 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3771 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3774 cat "conftest.in" "conftest.in" >"conftest.tmp"
3775 mv "conftest.tmp" "conftest.in"
3776 cp "conftest.in" "conftest.nl"
3777 echo 'EGREP' >> "conftest.nl"
3778 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3780 ac_count=`expr $ac_count + 1`
3781 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3782 # Best one so far, save it but keep looking for a better one
3783 ac_cv_path_EGREP="$ac_path_EGREP"
3784 ac_path_EGREP_max=$ac_count
3786 # 10*(2^10) chars as input seems more than enough
3787 test $ac_count -gt 10 && break
3789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793 $ac_path_EGREP_found && break 3
3803 EGREP="$ac_cv_path_EGREP"
3804 if test -z "$EGREP"; then
3805 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3806 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3807 { (exit 1); exit 1; }; }
3811 ac_cv_path_EGREP=$EGREP
3817 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3818 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3819 EGREP="$ac_cv_path_EGREP"
3822 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3823 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3824 if test "${ac_cv_header_stdc+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_compile") 2>conftest.er1
3855 grep -v '^ *+' conftest.er1 >conftest.err
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3861 { (case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_try") 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; } &&
3870 { ac_try='test -s conftest.$ac_objext'
3871 { (case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_try") 2>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_header_stdc=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_cv_header_stdc=no
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 if test $ac_cv_header_stdc = yes; then
3891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "memchr" >/dev/null 2>&1; then
3905 ac_cv_header_stdc=no
3911 if test $ac_cv_header_stdc = yes; then
3912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 $EGREP "free" >/dev/null 2>&1; then
3926 ac_cv_header_stdc=no
3932 if test $ac_cv_header_stdc = yes; then
3933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3934 if test "$cross_compiling" = yes; then
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3945 #if ((' ' & 0x0FF) == 0x020)
3946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3949 # define ISLOWER(c) \
3950 (('a' <= (c) && (c) <= 'i') \
3951 || ('j' <= (c) && (c) <= 'r') \
3952 || ('s' <= (c) && (c) <= 'z'))
3953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3961 for (i = 0; i < 256; i++)
3962 if (XOR (islower (i), ISLOWER (i))
3963 || toupper (i) != TOUPPER (i))
3968 rm -f conftest$ac_exeext
3969 if { (ac_try="$ac_link"
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_link") 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3979 { (case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_try") 2>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3990 echo "$as_me: program exited with status $ac_status" >&5
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_cv_header_stdc=no
3997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4004 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4005 if test $ac_cv_header_stdc = yes; then
4007 cat >>confdefs.h <<\_ACEOF
4008 #define STDC_HEADERS 1
4013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4024 inttypes.h stdint.h unistd.h
4026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 $ac_includes_default
4040 #include <$ac_header>
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4051 grep -v '^ *+' conftest.er1 >conftest.err
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } &&
4056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4057 { (case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_try") 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 eval "$as_ac_Header=yes"
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 eval "$as_ac_Header=no"
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_res=`eval echo '${'$as_ac_Header'}'`
4087 { echo "$as_me:$LINENO: result: $ac_res" >&5
4088 echo "${ECHO_T}$ac_res" >&6; }
4089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4090 cat >>confdefs.h <<_ACEOF
4091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4100 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4101 if test "${ac_cv_c_bigendian+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 # See if sys/param.h defines the BYTE_ORDER macro.
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #include <sys/types.h>
4112 #include <sys/param.h>
4117 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4140 { (case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_try") 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 # It does; now see whether it defined to BIG_ENDIAN or not.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 #include <sys/types.h>
4167 #include <sys/param.h>
4172 #if BYTE_ORDER != BIG_ENDIAN
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4195 { (case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_try") 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_try") 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_c_bigendian=yes
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_c_bigendian=no
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # It does not; compile a test program.
4228 if test "$cross_compiling" = yes; then
4229 # try to guess the endianness by grepping values into an object file
4230 ac_cv_c_bigendian=unknown
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4238 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4239 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4240 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4241 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4242 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4246 _ascii (); _ebcdic ();
4251 rm -f conftest.$ac_objext
4252 if { (ac_try="$ac_compile"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_compile") 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4266 { (case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_try") 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4286 ac_cv_c_bigendian=yes
4288 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4289 if test "$ac_cv_c_bigendian" = unknown; then
4290 ac_cv_c_bigendian=no
4292 # finding both strings is unlikely to happen, but who knows?
4293 ac_cv_c_bigendian=unknown
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4316 /* Are we little or big endian? From Harbison&Steele. */
4320 char c[sizeof (long int)];
4323 return u.c[sizeof (long int) - 1] == 1;
4329 rm -f conftest$ac_exeext
4330 if { (ac_try="$ac_link"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_link") 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340 { (case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_try") 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_c_bigendian=no
4351 echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4356 ac_cv_c_bigendian=yes
4358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4367 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4368 case $ac_cv_c_bigendian in
4376 { { echo "$as_me:$LINENO: error: unknown endianness
4377 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4378 echo "$as_me: error: unknown endianness
4379 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4380 { (exit 1); exit 1; }; } ;;
4384 if test "$cross_compiling" = yes; then
4385 LLVM_CROSS_COMPILING=1
4388 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4389 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4390 if test "${ac_cv_build_exeext+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4394 ac_cv_build_exeext=.exe
4396 ac_build_prefix=${build_alias}-
4398 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4399 set dummy ${ac_build_prefix}gcc; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 if test -n "$BUILD_CC"; then
4406 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 BUILD_CC=$ac_cv_prog_BUILD_CC
4426 if test -n "$BUILD_CC"; then
4427 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4428 echo "${ECHO_T}$BUILD_CC" >&6; }
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4435 if test -z "$BUILD_CC"; then
4436 # Extract the first word of "gcc", so it can be a program name with args.
4437 set dummy gcc; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$BUILD_CC"; then
4444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_BUILD_CC="gcc"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 BUILD_CC=$ac_cv_prog_BUILD_CC
4464 if test -n "$BUILD_CC"; then
4465 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4466 echo "${ECHO_T}$BUILD_CC" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4473 if test -z "$BUILD_CC"; then
4474 # Extract the first word of "cc", so it can be a program name with args.
4475 set dummy cc; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test -n "$BUILD_CC"; then
4482 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4493 ac_prog_rejected=yes
4496 ac_cv_prog_BUILD_CC="cc"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 if test $ac_prog_rejected = yes; then
4505 # We found a bogon in the path, so make sure we never use it.
4506 set dummy $ac_cv_prog_BUILD_CC
4508 if test $# != 0; then
4509 # We chose a different compiler from the bogus one.
4510 # However, it has the same basename, so the bogon will be chosen
4511 # first if we set BUILD_CC to just the basename; use the full file name.
4513 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4518 BUILD_CC=$ac_cv_prog_BUILD_CC
4519 if test -n "$BUILD_CC"; then
4520 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4521 echo "${ECHO_T}$BUILD_CC" >&6; }
4523 { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4530 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4531 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4532 { (exit 1); exit 1; }; }
4533 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4535 echo 'int main () { return 0; }' > conftest.$ac_ext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4538 (eval $ac_build_link) 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; then
4542 for file in conftest.*; do
4544 *.c | *.o | *.obj | *.dSYM) ;;
4545 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4550 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4551 { (exit 1); exit 1; }; }
4554 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4559 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4560 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4561 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4562 ac_build_exeext=$BUILD_EXEEXT
4564 ac_build_prefix=${build_alias}-
4565 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4566 set dummy ${ac_build_prefix}g++; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$BUILD_CXX"; then
4573 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4593 if test -n "$BUILD_CXX"; then
4594 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4595 echo "${ECHO_T}$BUILD_CXX" >&6; }
4597 { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4602 if test -z "$BUILD_CXX"; then
4603 # Extract the first word of "g++", so it can be a program name with args.
4604 set dummy g++; ac_word=$2
4605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if test -n "$BUILD_CXX"; then
4611 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_BUILD_CXX="g++"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4631 if test -n "$BUILD_CXX"; then
4632 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4633 echo "${ECHO_T}$BUILD_CXX" >&6; }
4635 { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4640 if test -z "$BUILD_CXX"; then
4641 # Extract the first word of "c++", so it can be a program name with args.
4642 set dummy c++; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$BUILD_CXX"; then
4649 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4660 ac_prog_rejected=yes
4663 ac_cv_prog_BUILD_CXX="c++"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 if test $ac_prog_rejected = yes; then
4672 # We found a bogon in the path, so make sure we never use it.
4673 set dummy $ac_cv_prog_BUILD_CXX
4675 if test $# != 0; then
4676 # We chose a different compiler from the bogus one.
4677 # However, it has the same basename, so the bogon will be chosen
4678 # first if we set BUILD_CXX to just the basename; use the full file name.
4680 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4685 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4686 if test -n "$BUILD_CXX"; then
4687 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4688 echo "${ECHO_T}$BUILD_CXX" >&6; }
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4698 LLVM_CROSS_COMPILING=0
4702 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4713 # Check whether --enable-optimized was given.
4714 if test "${enable_optimized+set}" = set; then
4715 enableval=$enable_optimized;
4720 if test ${enableval} = "no" ; then
4724 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4728 # Check whether --enable-profiling was given.
4729 if test "${enable_profiling+set}" = set; then
4730 enableval=$enable_profiling;
4735 if test ${enableval} = "no" ; then
4739 ENABLE_PROFILING=ENABLE_PROFILING=1
4743 # Check whether --enable-assertions was given.
4744 if test "${enable_assertions+set}" = set; then
4745 enableval=$enable_assertions;
4750 if test ${enableval} = "yes" ; then
4754 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4758 # Check whether --enable-expensive-checks was given.
4759 if test "${enable_expensive_checks+set}" = set; then
4760 enableval=$enable_expensive_checks;
4765 if test ${enableval} = "yes" ; then
4766 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4768 EXPENSIVE_CHECKS=yes
4771 ENABLE_EXPENSIVE_CHECKS=
4777 # Check whether --enable-debug-runtime was given.
4778 if test "${enable_debug_runtime+set}" = set; then
4779 enableval=$enable_debug_runtime;
4784 if test ${enableval} = "no" ; then
4788 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4792 # Check whether --enable-jit was given.
4793 if test "${enable_jit+set}" = set; then
4794 enableval=$enable_jit;
4799 if test ${enableval} = "no"
4804 case "$llvm_cv_target_arch" in
4805 x86) TARGET_HAS_JIT=1
4807 Sparc) TARGET_HAS_JIT=0
4809 PowerPC) TARGET_HAS_JIT=1
4811 x86_64) TARGET_HAS_JIT=1
4813 Alpha) TARGET_HAS_JIT=1
4815 IA64) TARGET_HAS_JIT=0
4817 ARM) TARGET_HAS_JIT=0
4819 Mips) TARGET_HAS_JIT=0
4821 PIC16) TARGET_HAS_JIT=0
4823 XCore) TARGET_HAS_JIT=0
4830 # Check whether --enable-doxygen was given.
4831 if test "${enable_doxygen+set}" = set; then
4832 enableval=$enable_doxygen;
4837 case "$enableval" in
4838 yes) ENABLE_DOXYGEN=1
4840 no) ENABLE_DOXYGEN=0
4842 default) ENABLE_DOXYGEN=0
4844 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4845 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4846 { (exit 1); exit 1; }; } ;;
4849 # Check whether --enable-threads was given.
4850 if test "${enable_threads+set}" = set; then
4851 enableval=$enable_threads;
4856 case "$enableval" in
4857 yes) ENABLE_THREADS=1
4859 no) ENABLE_THREADS=0
4861 default) ENABLE_THREADS=1
4863 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4864 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4865 { (exit 1); exit 1; }; } ;;
4868 cat >>confdefs.h <<_ACEOF
4869 #define ENABLE_THREADS $ENABLE_THREADS
4873 # Check whether --enable-pic was given.
4874 if test "${enable_pic+set}" = set; then
4875 enableval=$enable_pic;
4880 case "$enableval" in
4885 default) ENABLE_PIC=1
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_PIC $ENABLE_PIC
4898 # Check whether --enable-targets was given.
4899 if test "${enable_targets+set}" = set; then
4900 enableval=$enable_targets;
4905 case "$enableval" in
4906 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4908 case "$llvm_cv_target_arch" in
4909 x86) TARGETS_TO_BUILD="X86" ;;
4910 x86_64) TARGETS_TO_BUILD="X86" ;;
4911 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4912 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4913 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4914 IA64) TARGETS_TO_BUILD="IA64" ;;
4915 ARM) TARGETS_TO_BUILD="ARM" ;;
4916 Mips) TARGETS_TO_BUILD="Mips" ;;
4917 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4918 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4919 XCore) TARGETS_TO_BUILD="XCore" ;;
4920 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4921 echo "$as_me: error: Can not set target to build" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4925 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4927 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4929 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4930 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4931 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4932 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4933 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4934 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4935 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4936 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4937 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4938 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4939 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4940 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4941 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4942 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4948 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4951 # Check whether --enable-cbe-printf-a was given.
4952 if test "${enable_cbe_printf_a+set}" = set; then
4953 enableval=$enable_cbe_printf_a;
4958 case "$enableval" in
4959 yes) ENABLE_CBE_PRINTF_A=1
4961 no) ENABLE_CBE_PRINTF_A=0
4963 default) ENABLE_CBE_PRINTF_A=1
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 cat >>confdefs.h <<_ACEOF
4971 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4976 # Check whether --with-llvmgccdir was given.
4977 if test "${with_llvmgccdir+set}" = set; then
4978 withval=$with_llvmgccdir;
4984 default) WITH_LLVMGCCDIR=default ;;
4985 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4986 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4987 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4988 { (exit 1); exit 1; }; } ;;
4992 # Check whether --with-llvmgcc was given.
4993 if test "${with_llvmgcc+set}" = set; then
4994 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5000 # Check whether --with-llvmgxx was given.
5001 if test "${with_llvmgxx+set}" = set; then
5002 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5007 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5008 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5009 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5010 { (exit 1); exit 1; }; };
5013 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5014 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5015 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5016 { (exit 1); exit 1; }; };
5020 # Check whether --with-extra-options was given.
5021 if test "${with_extra_options+set}" = set; then
5022 withval=$with_extra_options;
5028 default) EXTRA_OPTIONS= ;;
5029 *) EXTRA_OPTIONS=$withval ;;
5031 EXTRA_OPTIONS=$EXTRA_OPTIONS
5034 # Check whether --enable-bindings was given.
5035 if test "${enable_bindings+set}" = set; then
5036 enableval=$enable_bindings;
5041 BINDINGS_TO_BUILD=""
5042 case "$enableval" in
5043 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5044 all ) BINDINGS_TO_BUILD="ocaml" ;;
5045 none | no) BINDINGS_TO_BUILD="" ;;
5046 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5047 case "$a_binding" in
5048 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5049 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5050 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5051 { (exit 1); exit 1; }; } ;;
5058 # Check whether --with-ocaml-libdir was given.
5059 if test "${with_ocaml_libdir+set}" = set; then
5060 withval=$with_ocaml_libdir;
5066 auto) with_ocaml_libdir="$withval" ;;
5067 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5068 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5069 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5074 # Check whether --with-binutils-include was given.
5075 if test "${with_binutils_include+set}" = set; then
5076 withval=$with_binutils_include;
5082 default) WITH_BINUTILS_INCDIR=default ;;
5083 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5084 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5085 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5086 { (exit 1); exit 1; }; } ;;
5088 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5089 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5091 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5092 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5093 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5094 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5095 { (exit 1); exit 1; }; };
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5106 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5107 # On Suns, sometimes $CPP names a directory.
5108 if test -n "$CPP" && test -d "$CPP"; then
5111 if test -z "$CPP"; then
5112 if test "${ac_cv_prog_CPP+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 # Double quotes because CPP needs to be expanded
5116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5119 for ac_c_preproc_warn_flag in '' yes
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5134 # include <limits.h>
5136 # include <assert.h>
5140 if { (ac_try="$ac_cpp conftest.$ac_ext"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } >/dev/null; then
5153 if test -s conftest.err; then
5154 ac_cpp_err=$ac_c_preproc_warn_flag
5155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5162 if test -z "$ac_cpp_err"; then
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 # Broken: fails on valid input.
5172 rm -f conftest.err conftest.$ac_ext
5174 # OK, works on sane cases. Now check whether nonexistent headers
5175 # can be detected and how.
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <ac_nonexistent.h>
5184 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_c_preproc_warn_flag
5199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5206 if test -z "$ac_cpp_err"; then
5207 # Broken: success on invalid input.
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 # Passes both tests.
5218 rm -f conftest.err conftest.$ac_ext
5221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5222 rm -f conftest.err conftest.$ac_ext
5223 if $ac_preproc_ok; then
5235 { echo "$as_me:$LINENO: result: $CPP" >&5
5236 echo "${ECHO_T}$CPP" >&6; }
5238 for ac_c_preproc_warn_flag in '' yes
5240 # Use a header file that comes with gcc, so configuring glibc
5241 # with a fresh cross-compiler works.
5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5243 # <limits.h> exists even on freestanding compilers.
5244 # On the NeXT, cc -E runs the code through the compiler's parser,
5245 # not just through cpp. "Syntax error" is here to catch this case.
5246 cat >conftest.$ac_ext <<_ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5253 # include <limits.h>
5255 # include <assert.h>
5259 if { (ac_try="$ac_cpp conftest.$ac_ext"
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5281 if test -z "$ac_cpp_err"; then
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 # Broken: fails on valid input.
5291 rm -f conftest.err conftest.$ac_ext
5293 # OK, works on sane cases. Now check whether nonexistent headers
5294 # can be detected and how.
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <ac_nonexistent.h>
5303 if { (ac_try="$ac_cpp conftest.$ac_ext"
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5311 grep -v '^ *+' conftest.er1 >conftest.err
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } >/dev/null; then
5316 if test -s conftest.err; then
5317 ac_cpp_err=$ac_c_preproc_warn_flag
5318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5325 if test -z "$ac_cpp_err"; then
5326 # Broken: success on invalid input.
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 # Passes both tests.
5337 rm -f conftest.err conftest.$ac_ext
5340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5341 rm -f conftest.err conftest.$ac_ext
5342 if $ac_preproc_ok; then
5345 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5346 See \`config.log' for more details." >&5
5347 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5348 See \`config.log' for more details." >&2;}
5349 { (exit 1); exit 1; }; }
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363 if test -n "$ac_tool_prefix"; then
5366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5370 if test "${ac_cv_prog_CC+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 if test -n "$CC"; then
5374 ac_cv_prog_CC="$CC" # Let the user override the test.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 if test -n "$CC"; then
5395 { echo "$as_me:$LINENO: result: $CC" >&5
5396 echo "${ECHO_T}$CC" >&6; }
5398 { echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6; }
5403 test -n "$CC" && break
5406 if test -z "$CC"; then
5410 # Extract the first word of "$ac_prog", so it can be a program name with args.
5411 set dummy $ac_prog; ac_word=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 if test -n "$ac_ct_CC"; then
5418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_ac_ct_CC="$ac_prog"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5438 if test -n "$ac_ct_CC"; then
5439 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5440 echo "${ECHO_T}$ac_ct_CC" >&6; }
5442 { echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6; }
5447 test -n "$ac_ct_CC" && break
5450 if test "x$ac_ct_CC" = x; then
5453 case $cross_compiling:$ac_tool_warned in
5455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5456 whose name does not start with the host triplet. If you think this
5457 configuration is useful to you, please write to autoconf@gnu.org." >&5
5458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5459 whose name does not start with the host triplet. If you think this
5460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5461 ac_tool_warned=yes ;;
5468 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5469 See \`config.log' for more details." >&5
5470 echo "$as_me: error: no acceptable C compiler found in \$PATH
5471 See \`config.log' for more details." >&2;}
5472 { (exit 1); exit 1; }; }
5474 # Provide some information about the compiler.
5475 echo "$as_me:$LINENO: checking for C compiler version" >&5
5476 ac_compiler=`set X $ac_compile; echo $2`
5477 { (ac_try="$ac_compiler --version >&5"
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compiler --version >&5") 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }
5487 { (ac_try="$ac_compiler -v >&5"
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compiler -v >&5") 2>&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5497 { (ac_try="$ac_compiler -V >&5"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compiler -V >&5") 2>&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }
5508 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5509 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5510 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5546 { (case "(($ac_try" in
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_try") 2>&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (case "(($ac_try" in
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_try") 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5577 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5578 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5579 GCC=`test $ac_compiler_gnu = yes && echo yes`
5580 ac_test_CFLAGS=${CFLAGS+set}
5581 ac_save_CFLAGS=$CFLAGS
5582 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5583 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5584 if test "${ac_cv_prog_cc_g+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_save_c_werror_flag=$ac_c_werror_flag
5588 ac_c_werror_flag=yes
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5615 grep -v '^ *+' conftest.er1 >conftest.err
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5621 { (case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_try") 2>&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_try") 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5646 cat >conftest.$ac_ext <<_ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 ac_c_werror_flag=$ac_save_c_werror_flag
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732 { (case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_try") 2>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_c_werror_flag=$ac_save_c_werror_flag
5768 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5769 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5770 if test "$ac_test_CFLAGS" = set; then
5771 CFLAGS=$ac_save_CFLAGS
5772 elif test $ac_cv_prog_cc_g = yes; then
5773 if test "$GCC" = yes; then
5779 if test "$GCC" = yes; then
5785 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5786 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5787 if test "${ac_cv_prog_cc_c89+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 ac_cv_prog_cc_c89=no
5792 cat >conftest.$ac_ext <<_ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5800 #include <sys/types.h>
5801 #include <sys/stat.h>
5802 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5803 struct buf { int x; };
5804 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5805 static char *e (p, i)
5811 static char *f (char * (*g) (char **, int), char **p, ...)
5816 s = g (p, va_arg (v,int));
5821 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5822 function prototypes and stuff, but not '\xHH' hex character constants.
5823 These don't provoke an error unfortunately, instead are silently treated
5824 as 'x'. The following induces an error, until -std is added to get
5825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5826 array size at least. It's necessary to write '\x00'==0 to get something
5827 that's true only with -std. */
5828 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5830 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5831 inside strings and character constants. */
5833 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5835 int test (int i, double x);
5836 struct s1 {int (*f) (int a);};
5837 struct s2 {int (*f) (double a);};
5838 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5844 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5849 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5850 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5852 CC="$ac_save_CC $ac_arg"
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_prog_cc_c89=$ac_arg
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5895 rm -f core conftest.err conftest.$ac_objext
5896 test "x$ac_cv_prog_cc_c89" != "xno" && break
5898 rm -f conftest.$ac_ext
5903 case "x$ac_cv_prog_cc_c89" in
5905 { echo "$as_me:$LINENO: result: none needed" >&5
5906 echo "${ECHO_T}none needed" >&6; } ;;
5908 { echo "$as_me:$LINENO: result: unsupported" >&5
5909 echo "${ECHO_T}unsupported" >&6; } ;;
5911 CC="$CC $ac_cv_prog_cc_c89"
5912 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5913 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5918 ac_cpp='$CPP $CPPFLAGS'
5919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924 ac_cpp='$CXXCPP $CPPFLAGS'
5925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5928 if test -z "$CXX"; then
5929 if test -n "$CCC"; then
5932 if test -n "$ac_tool_prefix"; then
5935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939 if test "${ac_cv_prog_CXX+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 if test -n "$CXX"; then
5943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 if test -n "$CXX"; then
5964 { echo "$as_me:$LINENO: result: $CXX" >&5
5965 echo "${ECHO_T}$CXX" >&6; }
5967 { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5972 test -n "$CXX" && break
5975 if test -z "$CXX"; then
5979 # Extract the first word of "$ac_prog", so it can be a program name with args.
5980 set dummy $ac_prog; ac_word=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 if test -n "$ac_ct_CXX"; then
5987 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_ac_ct_CXX="$ac_prog"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6007 if test -n "$ac_ct_CXX"; then
6008 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6009 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6011 { echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6; }
6016 test -n "$ac_ct_CXX" && break
6019 if test "x$ac_ct_CXX" = x; then
6022 case $cross_compiling:$ac_tool_warned in
6024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6025 whose name does not start with the host triplet. If you think this
6026 configuration is useful to you, please write to autoconf@gnu.org." >&5
6027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6028 whose name does not start with the host triplet. If you think this
6029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6030 ac_tool_warned=yes ;;
6038 # Provide some information about the compiler.
6039 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6040 ac_compiler=`set X $ac_compile; echo $2`
6041 { (ac_try="$ac_compiler --version >&5"
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compiler --version >&5") 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }
6051 { (ac_try="$ac_compiler -v >&5"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compiler -v >&5") 2>&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }
6061 { (ac_try="$ac_compiler -V >&5"
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compiler -V >&5") 2>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
6072 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6073 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6074 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6110 { (case "(($ac_try" in
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_try") 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; } &&
6119 { ac_try='test -s conftest.$ac_objext'
6120 { (case "(($ac_try" in
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_try") 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6141 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6142 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6143 GXX=`test $ac_compiler_gnu = yes && echo yes`
6144 ac_test_CXXFLAGS=${CXXFLAGS+set}
6145 ac_save_CXXFLAGS=$CXXFLAGS
6146 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6147 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_cxx_g+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6152 ac_cxx_werror_flag=yes
6155 cat >conftest.$ac_ext <<_ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6185 { (case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_try") 2>&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest.$ac_objext'
6195 { (case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_try") 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_prog_cxx_g=yes
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6210 cat >conftest.$ac_ext <<_ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6240 { (case "(($ac_try" in
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_try") 2>&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_try") 2>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6266 cat >conftest.$ac_ext <<_ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1 >conftest.err
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6296 { (case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_try") 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_cv_prog_cxx_g=yes
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6333 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6334 if test "$ac_test_CXXFLAGS" = set; then
6335 CXXFLAGS=$ac_save_CXXFLAGS
6336 elif test $ac_cv_prog_cxx_g = yes; then
6337 if test "$GXX" = yes; then
6343 if test "$GXX" = yes; then
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6356 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6357 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6358 if test "${lt_cv_path_NM+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 if test -n "$NM"; then
6362 # Let the user override the test.
6365 lt_nm_to_check="${ac_tool_prefix}nm"
6366 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6367 lt_nm_to_check="$lt_nm_to_check nm"
6369 for lt_tmp_nm in $lt_nm_to_check; do
6370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6371 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6373 test -z "$ac_dir" && ac_dir=.
6374 tmp_nm="$ac_dir/$lt_tmp_nm"
6375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6376 # Check to see if the nm accepts a BSD-compat flag.
6377 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6378 # nm: unknown option "B" ignored
6379 # Tru64's nm complains that /dev/null is an invalid object file
6380 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6381 */dev/null* | *'Invalid file or object type'*)
6382 lt_cv_path_NM="$tmp_nm -B"
6386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6388 lt_cv_path_NM="$tmp_nm -p"
6392 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6393 continue # so that we can try to find one that supports BSD flags
6402 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6405 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6406 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6411 { echo "$as_me:$LINENO: checking for GNU make" >&5
6412 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6413 if test "${llvm_cv_gnu_make_command+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 llvm_cv_gnu_make_command=''
6417 for a in "$MAKE" make gmake gnumake ; do
6418 if test -z "$a" ; then continue ; fi ;
6419 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6421 llvm_cv_gnu_make_command=$a ;
6426 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6427 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6428 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6432 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6433 echo "${ECHO_T}\"Not found\"" >&6; };
6437 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6438 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6440 if test "$LN_S" = "ln -s"; then
6441 { echo "$as_me:$LINENO: result: yes" >&5
6442 echo "${ECHO_T}yes" >&6; }
6444 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6445 echo "${ECHO_T}no, using $LN_S" >&6; }
6448 # Extract the first word of "cmp", so it can be a program name with args.
6449 set dummy cmp; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_path_CMP+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6480 if test -n "$CMP"; then
6481 { echo "$as_me:$LINENO: result: $CMP" >&5
6482 echo "${ECHO_T}$CMP" >&6; }
6484 { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6489 # Extract the first word of "cp", so it can be a program name with args.
6490 set dummy cp; ac_word=$2
6491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6493 if test "${ac_cv_path_CP+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6521 if test -n "$CP"; then
6522 { echo "$as_me:$LINENO: result: $CP" >&5
6523 echo "${ECHO_T}$CP" >&6; }
6525 { echo "$as_me:$LINENO: result: no" >&5
6526 echo "${ECHO_T}no" >&6; }
6530 # Extract the first word of "date", so it can be a program name with args.
6531 set dummy date; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_path_DATE+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6561 DATE=$ac_cv_path_DATE
6562 if test -n "$DATE"; then
6563 { echo "$as_me:$LINENO: result: $DATE" >&5
6564 echo "${ECHO_T}$DATE" >&6; }
6566 { echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6; }
6571 # Extract the first word of "find", so it can be a program name with args.
6572 set dummy find; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_FIND+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6602 FIND=$ac_cv_path_FIND
6603 if test -n "$FIND"; then
6604 { echo "$as_me:$LINENO: result: $FIND" >&5
6605 echo "${ECHO_T}$FIND" >&6; }
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6612 # Extract the first word of "grep", so it can be a program name with args.
6613 set dummy grep; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_GREP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6643 GREP=$ac_cv_path_GREP
6644 if test -n "$GREP"; then
6645 { echo "$as_me:$LINENO: result: $GREP" >&5
6646 echo "${ECHO_T}$GREP" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6653 # Extract the first word of "mkdir", so it can be a program name with args.
6654 set dummy mkdir; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_MKDIR+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6684 MKDIR=$ac_cv_path_MKDIR
6685 if test -n "$MKDIR"; then
6686 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6687 echo "${ECHO_T}$MKDIR" >&6; }
6689 { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6694 # Extract the first word of "mv", so it can be a program name with args.
6695 set dummy mv; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_MV+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6726 if test -n "$MV"; then
6727 { echo "$as_me:$LINENO: result: $MV" >&5
6728 echo "${ECHO_T}$MV" >&6; }
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6735 if test -n "$ac_tool_prefix"; then
6736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_prog_RANLIB+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 if test -n "$RANLIB"; then
6744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 RANLIB=$ac_cv_prog_RANLIB
6764 if test -n "$RANLIB"; then
6765 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6766 echo "${ECHO_T}$RANLIB" >&6; }
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6774 if test -z "$ac_cv_prog_RANLIB"; then
6775 ac_ct_RANLIB=$RANLIB
6776 # Extract the first word of "ranlib", so it can be a program name with args.
6777 set dummy ranlib; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 if test -n "$ac_ct_RANLIB"; then
6784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_ac_ct_RANLIB="ranlib"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6804 if test -n "$ac_ct_RANLIB"; then
6805 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6806 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6812 if test "x$ac_ct_RANLIB" = x; then
6815 case $cross_compiling:$ac_tool_warned in
6817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6818 whose name does not start with the host triplet. If you think this
6819 configuration is useful to you, please write to autoconf@gnu.org." >&5
6820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6821 whose name does not start with the host triplet. If you think this
6822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6823 ac_tool_warned=yes ;;
6825 RANLIB=$ac_ct_RANLIB
6828 RANLIB="$ac_cv_prog_RANLIB"
6831 # Extract the first word of "rm", so it can be a program name with args.
6832 set dummy rm; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_RM+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6863 if test -n "$RM"; then
6864 { echo "$as_me:$LINENO: result: $RM" >&5
6865 echo "${ECHO_T}$RM" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "sed", so it can be a program name with args.
6873 set dummy sed; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_SED+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6904 if test -n "$SED"; then
6905 { echo "$as_me:$LINENO: result: $SED" >&5
6906 echo "${ECHO_T}$SED" >&6; }
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6913 # Extract the first word of "tar", so it can be a program name with args.
6914 set dummy tar; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_TAR+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6945 if test -n "$TAR"; then
6946 { echo "$as_me:$LINENO: result: $TAR" >&5
6947 echo "${ECHO_T}$TAR" >&6; }
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 # Extract the first word of "pwd", so it can be a program name with args.
6955 set dummy pwd; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_BINPWD+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6985 BINPWD=$ac_cv_path_BINPWD
6986 if test -n "$BINPWD"; then
6987 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6988 echo "${ECHO_T}$BINPWD" >&6; }
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6996 # Extract the first word of "Graphviz", so it can be a program name with args.
6997 set dummy Graphviz; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7027 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7028 if test -n "$GRAPHVIZ"; then
7029 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7030 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7037 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_GRAPHVIZ 1
7043 if test "$llvm_cv_os_type" = "MingW" ; then
7044 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7047 cat >>confdefs.h <<_ACEOF
7048 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7052 # Extract the first word of "dot", so it can be a program name with args.
7053 set dummy dot; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_DOT+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7084 if test -n "$DOT"; then
7085 { echo "$as_me:$LINENO: result: $DOT" >&5
7086 echo "${ECHO_T}$DOT" >&6; }
7088 { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7093 if test "$DOT" != "echo dot" ; then
7095 cat >>confdefs.h <<\_ACEOF
7099 if test "$llvm_cv_os_type" = "MingW" ; then
7100 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7103 cat >>confdefs.h <<_ACEOF
7104 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7108 for ac_prog in gv gsview32
7110 # Extract the first word of "$ac_prog", so it can be a program name with args.
7111 set dummy $ac_prog; ac_word=$2
7112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114 if test "${ac_cv_path_GV+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 if test -n "$GV"; then
7142 { echo "$as_me:$LINENO: result: $GV" >&5
7143 echo "${ECHO_T}$GV" >&6; }
7145 { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7150 test -n "$GV" && break
7152 test -n "$GV" || GV="echo gv"
7154 if test "$GV" != "echo gv" ; then
7156 cat >>confdefs.h <<\_ACEOF
7160 if test "$llvm_cv_os_type" = "MingW" ; then
7161 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7164 cat >>confdefs.h <<_ACEOF
7165 #define LLVM_PATH_GV "$GV${EXEEXT}"
7169 # Extract the first word of "dotty", so it can be a program name with args.
7170 set dummy dotty; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_path_DOTTY+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7200 DOTTY=$ac_cv_path_DOTTY
7201 if test -n "$DOTTY"; then
7202 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7203 echo "${ECHO_T}$DOTTY" >&6; }
7205 { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7210 if test "$DOTTY" != "echo dotty" ; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_DOTTY 1
7216 if test "$llvm_cv_os_type" = "MingW" ; then
7217 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7220 cat >>confdefs.h <<_ACEOF
7221 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7227 # Extract the first word of "perl", so it can be a program name with args.
7228 set dummy perl; ac_word=$2
7229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7231 if test "${ac_cv_path_PERL+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7258 PERL=$ac_cv_path_PERL
7259 if test -n "$PERL"; then
7260 { echo "$as_me:$LINENO: result: $PERL" >&5
7261 echo "${ECHO_T}$PERL" >&6; }
7263 { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7268 if test "$PERL" != "none"; then
7269 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7270 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7271 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7272 { echo "$as_me:$LINENO: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6; }
7276 { echo "$as_me:$LINENO: result: not found" >&5
7277 echo "${ECHO_T}not found" >&6; }
7282 if test x"$PERL" = xnone; then
7285 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7286 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7287 { (exit 1); exit 1; }; }
7293 # Find a good install program. We prefer a C program (faster),
7294 # so one script is as good as another. But avoid the broken or
7295 # incompatible versions:
7296 # SysV /etc/install, /usr/sbin/install
7297 # SunOS /usr/etc/install
7298 # IRIX /sbin/install
7300 # AmigaOS /C/install, which installs bootblocks on floppy discs
7301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7304 # OS/2's system install, which has a completely different semantic
7305 # ./install, which can be erroneously created by make from ./install.sh.
7306 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7308 if test -z "$INSTALL"; then
7309 if test "${ac_cv_path_install+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 # Account for people who put trailing slashes in PATH elements.
7319 ./ | .// | /cC/* | \
7320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7321 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7324 # OSF1 and SCO ODT 3.0 have their own names for install.
7325 # Don't use installbsd from OSF since it installs stuff as root
7327 for ac_prog in ginstall scoinst install; do
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7330 if test $ac_prog = install &&
7331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7332 # AIX install. It has an incompatible calling convention.
7334 elif test $ac_prog = install &&
7335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7336 # program-specific install script used by HP pwplus--don't use.
7339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7352 if test "${ac_cv_path_install+set}" = set; then
7353 INSTALL=$ac_cv_path_install
7355 # As a last resort, use the slow shell script. Don't cache a
7356 # value for INSTALL within a source directory, because that will
7357 # break other packages using the cache if that directory is
7358 # removed, or if the value is a relative name.
7359 INSTALL=$ac_install_sh
7362 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7363 echo "${ECHO_T}$INSTALL" >&6; }
7365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7366 # It thinks the first close brace ends the variable substitution.
7367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7374 # Extract the first word of "bzip2", so it can be a program name with args.
7375 set dummy bzip2; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_path_BZIP2+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 BZIP2=$ac_cv_path_BZIP2
7405 if test -n "$BZIP2"; then
7406 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7407 echo "${ECHO_T}$BZIP2" >&6; }
7409 { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7414 # Extract the first word of "doxygen", so it can be a program name with args.
7415 set dummy doxygen; ac_word=$2
7416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 DOXYGEN=$ac_cv_path_DOXYGEN
7445 if test -n "$DOXYGEN"; then
7446 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7447 echo "${ECHO_T}$DOXYGEN" >&6; }
7449 { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7454 # Extract the first word of "groff", so it can be a program name with args.
7455 set dummy groff; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_GROFF+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 GROFF=$ac_cv_path_GROFF
7485 if test -n "$GROFF"; then
7486 { echo "$as_me:$LINENO: result: $GROFF" >&5
7487 echo "${ECHO_T}$GROFF" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7494 # Extract the first word of "gzip", so it can be a program name with args.
7495 set dummy gzip; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_GZIP+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 GZIP=$ac_cv_path_GZIP
7525 if test -n "$GZIP"; then
7526 { echo "$as_me:$LINENO: result: $GZIP" >&5
7527 echo "${ECHO_T}$GZIP" >&6; }
7529 { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7534 # Extract the first word of "pod2html", so it can be a program name with args.
7535 set dummy pod2html; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_POD2HTML+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 POD2HTML=$ac_cv_path_POD2HTML
7565 if test -n "$POD2HTML"; then
7566 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7567 echo "${ECHO_T}$POD2HTML" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7574 # Extract the first word of "pod2man", so it can be a program name with args.
7575 set dummy pod2man; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_POD2MAN+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 POD2MAN=$ac_cv_path_POD2MAN
7605 if test -n "$POD2MAN"; then
7606 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7607 echo "${ECHO_T}$POD2MAN" >&6; }
7609 { echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6; }
7614 # Extract the first word of "runtest", so it can be a program name with args.
7615 set dummy runtest; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_RUNTEST+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 RUNTEST=$ac_cv_path_RUNTEST
7645 if test -n "$RUNTEST"; then
7646 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7647 echo "${ECHO_T}$RUNTEST" >&6; }
7649 { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7656 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7657 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7659 # Check whether --with-tclinclude was given.
7660 if test "${with_tclinclude+set}" = set; then
7661 withval=$with_tclinclude; with_tclinclude=${withval}
7666 if test "${ac_cv_path_tclsh+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 if test x"${with_tclinclude}" != x ; then
7671 if test -f ${with_tclinclude}/tclsh ; then
7672 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7673 elif test -f ${with_tclinclude}/src/tclsh ; then
7674 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7676 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7677 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7678 { (exit 1); exit 1; }; }
7682 if test x"${ac_cv_path_tclsh}" = x ; then
7683 { echo "$as_me:$LINENO: result: none" >&5
7684 echo "${ECHO_T}none" >&6; }
7685 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
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688 set dummy $ac_prog; ac_word=$2
7689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691 if test "${ac_cv_path_TCLSH+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 TCLSH=$ac_cv_path_TCLSH
7718 if test -n "$TCLSH"; then
7719 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7720 echo "${ECHO_T}$TCLSH" >&6; }
7722 { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7727 test -n "$TCLSH" && break
7730 if test x"${TCLSH}" = x ; then
7731 ac_cv_path_tclsh='';
7733 ac_cv_path_tclsh="${TCLSH}";
7736 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7737 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7738 TCLSH="${ac_cv_path_tclsh}"
7744 # Extract the first word of "zip", so it can be a program name with args.
7745 set dummy zip; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_ZIP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 if test -n "$ZIP"; then
7776 { echo "$as_me:$LINENO: result: $ZIP" >&5
7777 echo "${ECHO_T}$ZIP" >&6; }
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7784 for ac_prog in ocamlc
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_OCAMLC+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 OCAMLC=$ac_cv_path_OCAMLC
7817 if test -n "$OCAMLC"; then
7818 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7819 echo "${ECHO_T}$OCAMLC" >&6; }
7821 { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7826 test -n "$OCAMLC" && break
7829 for ac_prog in ocamlopt
7831 # Extract the first word of "$ac_prog", so it can be a program name with args.
7832 set dummy $ac_prog; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 OCAMLOPT=$ac_cv_path_OCAMLOPT
7862 if test -n "$OCAMLOPT"; then
7863 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7864 echo "${ECHO_T}$OCAMLOPT" >&6; }
7866 { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7871 test -n "$OCAMLOPT" && break
7874 for ac_prog in ocamldep
7876 # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy $ac_prog; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 OCAMLDEP=$ac_cv_path_OCAMLDEP
7907 if test -n "$OCAMLDEP"; then
7908 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7909 echo "${ECHO_T}$OCAMLDEP" >&6; }
7911 { echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6; }
7916 test -n "$OCAMLDEP" && break
7919 for ac_prog in ocamldoc
7921 # Extract the first word of "$ac_prog", so it can be a program name with args.
7922 set dummy $ac_prog; ac_word=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 OCAMLDOC=$ac_cv_path_OCAMLDOC
7952 if test -n "$OCAMLDOC"; then
7953 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7954 echo "${ECHO_T}$OCAMLDOC" >&6; }
7956 { echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6; }
7961 test -n "$OCAMLDOC" && break
7964 for ac_prog in gas as
7966 # Extract the first word of "$ac_prog", so it can be a program name with args.
7967 set dummy $ac_prog; ac_word=$2
7968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970 if test "${ac_cv_path_GAS+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 if test -n "$GAS"; then
7998 { echo "$as_me:$LINENO: result: $GAS" >&5
7999 echo "${ECHO_T}$GAS" >&6; }
8001 { echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6; }
8006 test -n "$GAS" && break
8010 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8011 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8012 if test "${llvm_cv_link_use_r+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8022 CFLAGS="$CFLAGS -Wl,-R."
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8033 int main() { return 0; }
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_link") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8053 { (case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_try") 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 llvm_cv_link_use_r=yes
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 llvm_cv_link_use_r=no
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
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
8091 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8092 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8093 if test "$llvm_cv_link_use_r" = yes ; then
8095 cat >>confdefs.h <<\_ACEOF
8096 #define HAVE_LINK_R 1
8102 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8103 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8104 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8114 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8125 int main() { return 0; }
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_link") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest$ac_exeext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 llvm_cv_link_use_export_dynamic=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 llvm_cv_link_use_export_dynamic=no
8172 rm -f core conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
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
8183 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8184 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8185 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8187 cat >>confdefs.h <<\_ACEOF
8188 #define HAVE_LINK_EXPORT_DYNAMIC 1
8196 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8197 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8198 if test "${ac_cv_c_const+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8211 /* FIXME: Include the comments suggested by Paul. */
8213 /* Ultrix mips cc rejects this. */
8214 typedef int charset[2];
8216 /* SunOS 4.1.1 cc rejects this. */
8217 char const *const *ccp;
8219 /* NEC SVR4.0.2 mips cc rejects this. */
8220 struct point {int x, y;};
8221 static struct point const zero = {0,0};
8222 /* AIX XL C 1.02.0.0 rejects this.
8223 It does not let you subtract one const X* pointer from another in
8224 an arm of an if-expression whose if-part is not a constant
8226 const char *g = "string";
8227 ccp = &g + (g ? g-g : 0);
8228 /* HPUX 7.0 cc rejects these. */
8231 ccp = (char const *const *) p;
8232 { /* SCO 3.2v4 cc rejects this. */
8234 char const *s = 0 ? (char *) 0 : (char const *) 0;
8239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8241 const int *foo = &x[0];
8244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8245 typedef const int *iptr;
8249 { /* AIX XL C 1.02.0.0 rejects this saying
8250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8251 struct s { int j; const int *ap[3]; };
8252 struct s *b; b->j = 5;
8254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8258 return !x[0] && !zero.x;
8265 rm -f conftest.$ac_objext
8266 if { (ac_try="$ac_compile"
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_compile") 2>conftest.er1
8274 grep -v '^ *+' conftest.er1 >conftest.err
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8280 { (case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_try") 2>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest.$ac_objext'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8310 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8311 if test $ac_cv_c_const = no; then
8313 cat >>confdefs.h <<\_ACEOF
8325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8326 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8327 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8328 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 #include <sys/types.h>
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_compile") 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365 { (case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_try") 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_try") 2>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 eval "$as_ac_Header=yes"
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 eval "$as_ac_Header=no"
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 ac_res=`eval echo '${'$as_ac_Header'}'`
8395 { echo "$as_me:$LINENO: result: $ac_res" >&5
8396 echo "${ECHO_T}$ac_res" >&6; }
8397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8398 cat >>confdefs.h <<_ACEOF
8399 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8402 ac_header_dirent=$ac_hdr; break
8406 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8407 if test $ac_header_dirent = dirent.h; then
8408 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8410 if test "${ac_cv_search_opendir+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_func_search_save_LIBS=$LIBS
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8421 /* Override any GCC internal prototype to avoid an error.
8422 Use char because int might match the return type of a GCC
8423 builtin and then its argument prototype would still apply. */
8436 for ac_lib in '' dir; do
8437 if test -z "$ac_lib"; then
8438 ac_res="none required"
8441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (ac_try="$ac_link"
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_link") 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_try") 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8477 ac_cv_search_opendir=$ac_res
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8485 rm -f core conftest.err conftest.$ac_objext \
8487 if test "${ac_cv_search_opendir+set}" = set; then
8491 if test "${ac_cv_search_opendir+set}" = set; then
8494 ac_cv_search_opendir=no
8497 LIBS=$ac_func_search_save_LIBS
8499 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8500 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8501 ac_res=$ac_cv_search_opendir
8502 if test "$ac_res" != no; then
8503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8509 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8510 if test "${ac_cv_search_opendir+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 ac_func_search_save_LIBS=$LIBS
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8521 /* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8536 for ac_lib in '' x; do
8537 if test -z "$ac_lib"; then
8538 ac_res="none required"
8541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (ac_try="$ac_link"
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_link") 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8558 { (case "(($ac_try" in
8559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560 *) ac_try_echo=$ac_try;;
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563 (eval "$ac_try") 2>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (case "(($ac_try" in
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_try") 2>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 ac_cv_search_opendir=$ac_res
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8585 rm -f core conftest.err conftest.$ac_objext \
8587 if test "${ac_cv_search_opendir+set}" = set; then
8591 if test "${ac_cv_search_opendir+set}" = set; then
8594 ac_cv_search_opendir=no
8597 LIBS=$ac_func_search_save_LIBS
8599 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8600 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8601 ac_res=$ac_cv_search_opendir
8602 if test "$ac_res" != no; then
8603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8610 for ac_header in dlfcn.h
8612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 ac_res=`eval echo '${'$as_ac_Header'}'`
8620 { echo "$as_me:$LINENO: result: $ac_res" >&5
8621 echo "${ECHO_T}$ac_res" >&6; }
8623 # Is the header compilable?
8624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8626 cat >conftest.$ac_ext <<_ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 $ac_includes_default
8633 #include <$ac_header>
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8650 { (case "(($ac_try" in
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_try") 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_try") 2>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_header_compiler=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_header_compiler=no
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8679 echo "${ECHO_T}$ac_header_compiler" >&6; }
8681 # Is the header present?
8682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8684 cat >conftest.$ac_ext <<_ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 #include <$ac_header>
8692 if { (ac_try="$ac_cpp conftest.$ac_ext"
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8700 grep -v '^ *+' conftest.er1 >conftest.err
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } >/dev/null; then
8705 if test -s conftest.err; then
8706 ac_cpp_err=$ac_c_preproc_warn_flag
8707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8714 if test -z "$ac_cpp_err"; then
8715 ac_header_preproc=yes
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_header_preproc=no
8723 rm -f conftest.err conftest.$ac_ext
8724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8725 echo "${ECHO_T}$ac_header_preproc" >&6; }
8727 # So? What about this header?
8728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8734 ac_header_preproc=yes
8737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8750 ## ----------------------------------- ##
8751 ## Report this to llvmbugs@cs.uiuc.edu ##
8752 ## ----------------------------------- ##
8754 ) | sed "s/^/$as_me: WARNING: /" >&2
8757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 eval "$as_ac_Header=\$ac_header_preproc"
8764 ac_res=`eval echo '${'$as_ac_Header'}'`
8765 { echo "$as_me:$LINENO: result: $ac_res" >&5
8766 echo "${ECHO_T}$ac_res" >&6; }
8769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8770 cat >>confdefs.h <<_ACEOF
8771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 # Check whether --enable-ltdl-install was given.
8779 if test "${enable_ltdl_install+set}" = set; then
8780 enableval=$enable_ltdl_install;
8786 if test x"${enable_ltdl_install-no}" != xno; then
8788 INSTALL_LTDL_FALSE='#'
8790 INSTALL_LTDL_TRUE='#'
8796 if test x"${enable_ltdl_convenience-no}" != xno; then
8797 CONVENIENCE_LTDL_TRUE=
8798 CONVENIENCE_LTDL_FALSE='#'
8800 CONVENIENCE_LTDL_TRUE='#'
8801 CONVENIENCE_LTDL_FALSE=
8805 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8806 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8808 libname_spec='lib$name'
8816 shlibpath_overrides_runpath=unknown
8818 dynamic_linker="$host_os ld.so"
8819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8820 if test "$GCC" = yes; then
8821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8822 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8823 # if the path contains ";" then we assume it to be the separator
8824 # otherwise default to the standard path separator (i.e. ":") - it is
8825 # assumed that no part of a normal pathname contains ";" but that should
8826 # okay in the real world where ";" in dirpaths is itself problematic.
8827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8834 need_lib_prefix=unknown
8835 hardcode_into_libs=no
8837 # when you set need_version to no, make sure it does not cause -set_version
8838 # flags to be left without arguments
8839 need_version=unknown
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8845 shlibpath_var=LIBPATH
8847 # AIX 3 has no versioning support, so we append a major version to the name.
8848 soname_spec='${libname}${release}${shared_ext}$major'
8855 hardcode_into_libs=yes
8856 if test "$host_cpu" = ia64; then
8857 # AIX 5 supports IA64
8858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8859 shlibpath_var=LD_LIBRARY_PATH
8861 # With GCC up to 2.95.x, collect2 would create an import file
8862 # for dependence libraries. The import file would start with
8863 # the line `#! .'. This would cause the generated library to
8864 # depend on `.', always an invalid library. This was fixed in
8865 # development snapshots of GCC prior to 3.0.
8867 aix4 | aix4.[01] | aix4.[01].*)
8868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8878 # soname into executable. Probably we can add versioning support to
8879 # collect2, so additional links can be useful in future.
8880 if test "$aix_use_runtimelinking" = yes; then
8881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8882 # instead of lib<name>.a to let people know that these are not
8883 # typical AIX shared libraries.
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 # We preserve .a as extension for shared libraries through AIX4.2
8887 # and later when we are not doing run time linking.
8888 library_names_spec='${libname}${release}.a $libname.a'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8891 shlibpath_var=LIBPATH
8896 library_names_spec='$libname.ixlibrary $libname.a'
8897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8898 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'
8902 library_names_spec='${libname}${shared_ext}'
8903 dynamic_linker="$host_os ld.so"
8904 shlibpath_var=LIBRARY_PATH
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911 soname_spec='${libname}${release}${shared_ext}$major'
8912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8913 shlibpath_var=LD_LIBRARY_PATH
8914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8916 # the default ld.so.conf also contains /usr/contrib/lib and
8917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8918 # libtool to hard-code these into programs
8921 cygwin* | mingw* | pw32*)
8922 version_type=windows
8927 case $GCC,$host_os in
8928 yes,cygwin* | yes,mingw* | yes,pw32*)
8929 library_names_spec='$libname.dll.a'
8930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8931 postinstall_cmds='base_file=`basename \${file}`~
8932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8933 dldir=$destdir/`dirname \$dlpath`~
8934 test -d \$dldir || mkdir -p \$dldir~
8935 $install_prog $dir/$dlname \$dldir/$dlname~
8936 chmod a+x \$dldir/$dlname'
8937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8938 dlpath=$dir/\$dldll~
8940 shlibpath_overrides_runpath=yes
8944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8949 # MinGW DLLs use traditional 'lib' prefix
8950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8953 # It is most probably a Windows format PATH printed by
8954 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8955 # path with ; separators, and with drive letters. We can handle the
8956 # drive letters (cygwin fileutils understands them), so leave them,
8957 # especially as we might pass files found there to a mingw objdump,
8958 # which wouldn't understand a cygwinified path. Ahh.
8959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8965 # pw32 DLLs use 'pw' prefix rather than 'lib'
8966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8975 dynamic_linker='Win32 ld.exe'
8976 # FIXME: first we should search . and the directory the executable is in
8980 darwin* | rhapsody*)
8981 dynamic_linker="$host_os dyld"
8985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8986 soname_spec='${libname}${release}${major}$shared_ext'
8987 shlibpath_overrides_runpath=yes
8988 shlibpath_var=DYLD_LIBRARY_PATH
8989 shrext_cmds='.dylib'
8990 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8991 if test "$GCC" = yes; then
8992 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"`
8994 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=no
9020 hardcode_into_libs=yes
9021 dynamic_linker='GNU ld.so'
9024 freebsd* | dragonfly*)
9025 # DragonFly does not have aout. When/if they implement a new
9026 # versioning mechanism, adjust this.
9027 if test -x /usr/bin/objformat; then
9028 objformat=`/usr/bin/objformat`
9031 freebsd[123]*) objformat=aout ;;
9035 version_type=freebsd-$objformat
9036 case $version_type in
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9047 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=yes
9052 freebsd3.[01]* | freebsdelf3.[01]*)
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9058 shlibpath_overrides_runpath=no
9059 hardcode_into_libs=yes
9061 freebsd*) # from 4.6 on
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 hardcode_into_libs=yes
9078 hpux9* | hpux10* | hpux11*)
9079 # Give a soname corresponding to the major version so that dld.sl refuses to
9080 # link against other versions.
9087 hardcode_into_libs=yes
9088 dynamic_linker="$host_os dld.so"
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 if test "X$HPUX_IA64_MODE" = X32; then
9094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9102 hardcode_into_libs=yes
9103 dynamic_linker="$host_os dld.sl"
9104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9113 dynamic_linker="$host_os dld.sl"
9114 shlibpath_var=SHLIB_PATH
9115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9121 postinstall_cmds='chmod 555 $lib'
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=no
9133 hardcode_into_libs=yes
9136 irix5* | irix6* | nonstopux*)
9138 nonstopux*) version_type=nonstopux ;;
9140 if test "$lt_cv_prog_gnu_ld" = yes; then
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9151 irix5* | nonstopux*)
9155 case $LD in # libtool.m4 will add one of these switches to LD
9156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9157 libsuff= shlibsuff= libmagic=32-bit;;
9158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9159 libsuff=32 shlibsuff=N32 libmagic=N32;;
9160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9162 *) libsuff= shlibsuff= libmagic=never-match;;
9166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9167 shlibpath_overrides_runpath=no
9168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9170 hardcode_into_libs=yes
9173 # No shared lib support for Linux oldld, aout, or coff.
9174 linux*oldld* | linux*aout* | linux*coff*)
9178 # This must be Linux ELF.
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=no
9188 # This implies no fast_install, which is unacceptable.
9189 # Some rework will be needed to allow for fast_install
9190 # before this can be enabled.
9191 hardcode_into_libs=yes
9193 # Append ld.so.conf contents to the search path
9194 if test -f /etc/ld.so.conf; then
9195 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' ' '`
9196 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9199 # We used to test for /lib/ld.so.1 and disable shared libraries on
9200 # powerpc, because MkLinux only supported shared libraries with the
9201 # GNU dynamic linker. Since this was broken with cross compilers,
9202 # most powerpc-linux boxes support dynamic linking these days and
9203 # people can always --disable-shared, the test was removed, and we
9204 # assume the GNU/Linux dynamic linker is in use.
9205 dynamic_linker='GNU/Linux ld.so'
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath=no
9216 hardcode_into_libs=yes
9217 dynamic_linker='GNU ld.so'
9224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9227 dynamic_linker='NetBSD (a.out) ld.so'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 dynamic_linker='NetBSD ld.elf_so'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 shlibpath_overrides_runpath=yes
9235 hardcode_into_libs=yes
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=yes
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9257 sys_lib_dlsearch_path_spec="/usr/lib"
9259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9261 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9262 *) need_version=no ;;
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9269 openbsd2.[89] | openbsd2.[89].*)
9270 shlibpath_overrides_runpath=no
9273 shlibpath_overrides_runpath=yes
9277 shlibpath_overrides_runpath=yes
9282 libname_spec='$name'
9285 library_names_spec='$libname${shared_ext} $libname.a'
9286 dynamic_linker='OS/2 ld.exe'
9287 shlibpath_var=LIBPATH
9290 osf3* | osf4* | osf5*)
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9309 hardcode_into_libs=yes
9310 # ldd complains unless libraries are executable
9311 postinstall_cmds='chmod +x $lib'
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9320 if test "$with_gnu_ld" = yes; then
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 case $host_vendor in
9333 shlibpath_overrides_runpath=no
9335 export_dynamic_flag_spec='${wl}-Blargedynsym'
9336 runpath_var=LD_RUN_PATH
9344 shlibpath_overrides_runpath=no
9345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9351 if test -d /usr/nec ;then
9353 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9354 soname_spec='$libname${shared_ext}.$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9360 version_type=freebsd-elf
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 hardcode_into_libs=yes
9367 if test "$with_gnu_ld" = yes; then
9368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9369 shlibpath_overrides_runpath=no
9371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9372 shlibpath_overrides_runpath=yes
9375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9379 sys_lib_dlsearch_path_spec='/usr/lib'
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 shlibpath_var=LD_LIBRARY_PATH
9393 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9394 echo "${ECHO_T}$dynamic_linker" >&6; }
9395 test "$dynamic_linker" = no && can_build_shared=no
9397 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9398 if test "$GCC" = yes; then
9399 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9403 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9404 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9405 if test "${libltdl_cv_shlibext+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 eval libltdl_cv_shlibext=$shrext_cmds
9413 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9414 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9415 if test -n "$libltdl_cv_shlibext"; then
9417 cat >>confdefs.h <<_ACEOF
9418 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9424 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9425 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9426 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 libltdl_cv_shlibpath_var="$shlibpath_var"
9431 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9432 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9433 if test -n "$libltdl_cv_shlibpath_var"; then
9435 cat >>confdefs.h <<_ACEOF
9436 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9442 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9443 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9444 if test "${libltdl_cv_sys_search_path+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9449 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9450 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9451 if test -n "$libltdl_cv_sys_search_path"; then
9453 for dir in $libltdl_cv_sys_search_path; do
9454 if test -z "$sys_search_path"; then
9455 sys_search_path="$dir"
9457 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9461 cat >>confdefs.h <<_ACEOF
9462 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9467 { echo "$as_me:$LINENO: checking for objdir" >&5
9468 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_objdir+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 libltdl_cv_objdir="$objdir"
9473 if test -n "$objdir"; then
9476 rm -f .libs 2>/dev/null
9477 mkdir .libs 2>/dev/null
9478 if test -d .libs; then
9479 libltdl_cv_objdir=.libs
9481 # MS-DOS does not allow filenames that begin with a dot.
9482 libltdl_cv_objdir=_libs
9484 rmdir .libs 2>/dev/null
9488 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9489 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9491 cat >>confdefs.h <<_ACEOF
9492 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9500 # Check for command to grab the raw symbol name followed by C symbol from nm.
9501 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9502 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9503 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 # These are sane defaults that work on at least a few old systems.
9508 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9510 # Character class describing NM global symbol codes.
9511 symcode='[BCDEGRST]'
9513 # Regexp to match symbols that can be accessed directly from C.
9514 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9516 # Transform an extracted symbol line into a proper C declaration
9517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9519 # Transform an extracted symbol line into symbol name and symbol address
9520 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'"
9522 # Define system-specific variables.
9527 cygwin* | mingw* | pw32*)
9528 symcode='[ABCDGISTW]'
9530 hpux*) # Its linker distinguishes data from code symbols
9531 if test "$host_cpu" = ia64; then
9532 symcode='[ABCDEGRST]'
9534 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9535 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'"
9538 if test "$host_cpu" = ia64; then
9539 symcode='[ABCDGIRSTW]'
9540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9541 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'"
9545 symcode='[BCDEGRST]'
9548 symcode='[BCDEGQRST]'
9559 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9567 # Handle CRLF in mingw tool chain
9571 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9575 # If we're using GNU nm, then use its standard symbol codes.
9576 case `$NM -V 2>&1` in
9577 *GNU* | *'with BFD'*)
9578 symcode='[ABCDGIRSTW]' ;;
9581 # Try without a prefix undercore, then with it.
9582 for ac_symprfx in "" "_"; do
9584 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9585 symxfrm="\\1 $ac_symprfx\\2 \\2"
9587 # Write the raw and C identifiers.
9588 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9590 # Check to see that the pipe works correctly.
9594 cat > conftest.$ac_ext <<EOF
9599 void nm_test_func(){}
9603 int main(){nm_test_var='a';nm_test_func();return(0);}
9606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9607 (eval $ac_compile) 2>&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; then
9611 # Now try to grab the symbols.
9613 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9614 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } && test -s "$nlist"; then
9618 # Try sorting and uniquifying the output.
9619 if sort "$nlist" | uniq > "$nlist"T; then
9620 mv -f "$nlist"T "$nlist"
9625 # Make sure that we snagged all the symbols we need.
9626 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9627 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9628 cat <<EOF > conftest.$ac_ext
9634 # Now generate the symbol file.
9635 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9637 cat <<EOF >> conftest.$ac_ext
9638 #if defined (__STDC__) && __STDC__
9639 # define lt_ptr_t void *
9641 # define lt_ptr_t char *
9645 /* The mapping between symbol names and symbols. */
9650 lt_preloaded_symbols[] =
9653 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9654 cat <<\EOF >> conftest.$ac_ext
9662 # Now try linking the two files.
9663 mv conftest.$ac_objext conftstm.$ac_objext
9664 lt_save_LIBS="$LIBS"
9665 lt_save_CFLAGS="$CFLAGS"
9666 LIBS="conftstm.$ac_objext"
9667 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669 (eval $ac_link) 2>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9675 LIBS="$lt_save_LIBS"
9676 CFLAGS="$lt_save_CFLAGS"
9678 echo "cannot find nm_test_func in $nlist" >&5
9681 echo "cannot find nm_test_var in $nlist" >&5
9684 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9687 echo "$progname: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9690 rm -f conftest* conftst*
9692 # Do not use the global_symbol_pipe unless it works.
9693 if test "$pipe_works" = yes; then
9696 lt_cv_sys_global_symbol_pipe=
9702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9703 lt_cv_sys_global_symbol_to_cdecl=
9705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9706 { echo "$as_me:$LINENO: result: failed" >&5
9707 echo "${ECHO_T}failed" >&6; }
9709 { echo "$as_me:$LINENO: result: ok" >&5
9710 echo "${ECHO_T}ok" >&6; }
9714 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9715 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9716 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9720 libltdl_cv_preloaded_symbols=yes
9722 libltdl_cv_preloaded_symbols=no
9726 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9727 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9728 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9730 cat >>confdefs.h <<\_ACEOF
9731 #define HAVE_PRELOADED_SYMBOLS 1
9739 ac_cpp='$CPP $CPPFLAGS'
9740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9745 { echo "$as_me:$LINENO: checking for shl_load" >&5
9746 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9747 if test "${ac_cv_func_shl_load+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758 #define shl_load innocuous_shl_load
9760 /* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char shl_load (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9766 # include <limits.h>
9768 # include <assert.h>
9773 /* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
9780 /* The GNU C library defines this for functions which it implements
9781 to always fail with ENOSYS. Some functions are actually named
9782 something starting with __ and the normal name is an alias. */
9783 #if defined __stub_shl_load || defined __stub___shl_load
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>conftest.er1
9804 grep -v '^ *+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9810 { (case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_try") 2>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_cv_func_shl_load=yes
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_func_shl_load=no
9837 rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9840 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9842 if test $ac_cv_func_shl_load = yes; then
9844 cat >>confdefs.h <<\_ACEOF
9845 #define HAVE_SHL_LOAD 1
9849 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9850 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 ac_check_lib_save_LIBS=$LIBS
9856 cat >conftest.$ac_ext <<_ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9863 /* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest$ac_exeext'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_lib_dld_shl_load=yes
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ac_cv_lib_dld_shl_load=no
9920 rm -f core conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9924 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9925 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9926 if test $ac_cv_lib_dld_shl_load = yes; then
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_SHL_LOAD 1
9932 LIBADD_DL="$LIBADD_DL -ldld"
9934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 ac_check_lib_save_LIBS=$LIBS
9941 cat >conftest.$ac_ext <<_ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest$ac_exeext'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_lib_dl_dlopen=yes
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_cv_lib_dl_dlopen=no
10005 rm -f core conftest.err conftest.$ac_objext \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10011 if test $ac_cv_lib_dl_dlopen = yes; then
10013 cat >>confdefs.h <<\_ACEOF
10014 #define HAVE_LIBDL 1
10017 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10026 # include <dlfcn.h>
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_LIBDL 1
10075 libltdl_cv_func_dlopen="yes"
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-lsvld $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10094 /* Override any GCC internal prototype to avoid an error.
10095 Use char because int might match the return type of a GCC
10096 builtin and then its argument prototype would still apply. */
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
10118 grep -v '^ *+' conftest.er1 >conftest.err
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest$ac_exeext'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_cv_lib_svld_dlopen=yes
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_cv_lib_svld_dlopen=no
10151 rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_lib_save_LIBS
10155 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10156 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10157 if test $ac_cv_lib_svld_dlopen = yes; then
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_LIBDL 1
10163 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10165 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10166 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10167 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 ac_check_lib_save_LIBS=$LIBS
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10189 return dld_link ();
10194 rm -f conftest.$ac_objext conftest$ac_exeext
10195 if { (ac_try="$ac_link"
10196 case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_link") 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10209 { (case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_try") 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest$ac_exeext'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_lib_dld_dld_link=yes
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 ac_cv_lib_dld_dld_link=no
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LIBS=$ac_check_lib_save_LIBS
10240 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10241 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10242 if test $ac_cv_lib_dld_dld_link = yes; then
10244 cat >>confdefs.h <<\_ACEOF
10248 LIBADD_DL="$LIBADD_DL -ldld"
10250 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10251 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10252 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10263 #define _dyld_func_lookup innocuous__dyld_func_lookup
10265 /* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char _dyld_func_lookup (); below.
10267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268 <limits.h> exists even on freestanding compilers. */
10271 # include <limits.h>
10273 # include <assert.h>
10276 #undef _dyld_func_lookup
10278 /* Override any GCC internal prototype to avoid an error.
10279 Use char because int might match the return type of a GCC
10280 builtin and then its argument prototype would still apply. */
10284 char _dyld_func_lookup ();
10285 /* The GNU C library defines this for functions which it implements
10286 to always fail with ENOSYS. Some functions are actually named
10287 something starting with __ and the normal name is an alias. */
10288 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10295 return _dyld_func_lookup ();
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (ac_try="$ac_link"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
10309 grep -v '^ *+' conftest.er1 >conftest.err
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10315 { (case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_try") 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_func__dyld_func_lookup=yes
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_func__dyld_func_lookup=no
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10345 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10346 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10347 if test $ac_cv_func__dyld_func_lookup = yes; then
10349 cat >>confdefs.h <<\_ACEOF
10350 #define HAVE_DYLD 1
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10376 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10378 lt_save_LIBS="$LIBS"
10379 LIBS="$LIBS $LIBADD_DL"
10381 for ac_func in dlerror
10383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10397 #define $ac_func innocuous_$ac_func
10399 /* System header to define __stub macros and hopefully few prototypes,
10400 which can conflict with char $ac_func (); below.
10401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402 <limits.h> exists even on freestanding compilers. */
10405 # include <limits.h>
10407 # include <assert.h>
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10419 /* The GNU C library defines this for functions which it implements
10420 to always fail with ENOSYS. Some functions are actually named
10421 something starting with __ and the normal name is an alias. */
10422 #if defined __stub_$ac_func || defined __stub___$ac_func
10429 return $ac_func ();
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (ac_try="$ac_link"
10436 case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_link") 2>conftest.er1
10443 grep -v '^ *+' conftest.er1 >conftest.err
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10449 { (case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_try") 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest$ac_exeext'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_try") 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 eval "$as_ac_var=yes"
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10473 eval "$as_ac_var=no"
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10479 ac_res=`eval echo '${'$as_ac_var'}'`
10480 { echo "$as_me:$LINENO: result: $ac_res" >&5
10481 echo "${ECHO_T}$ac_res" >&6; }
10482 if test `eval echo '${'$as_ac_var'}'` = yes; then
10483 cat >>confdefs.h <<_ACEOF
10484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10490 LIBS="$lt_save_LIBS"
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10500 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10501 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10502 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 ac_cv_sys_symbol_underscore=no
10506 cat > conftest.$ac_ext <<EOF
10507 void nm_test_func(){}
10508 int main(){nm_test_func;return 0;}
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; then
10515 # Now try to grab the symbols.
10516 ac_nlist=conftest.nm
10517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && test -s "$ac_nlist"; then
10522 # See whether the symbols have a leading underscore.
10523 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10524 ac_cv_sys_symbol_underscore=yes
10526 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10529 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10533 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10536 echo "configure: failed program was:" >&5
10542 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10543 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10546 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10547 if test x"$libltdl_cv_func_dlopen" = xyes ||
10548 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10549 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10550 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10551 if test "${libltdl_cv_need_uscore+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 libltdl_cv_need_uscore=unknown
10556 LIBS="$LIBS $LIBADD_DL"
10557 if test "$cross_compiling" = yes; then :
10558 libltdl_cv_need_uscore=cross
10560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10561 lt_status=$lt_dlunknown
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10563 "configure"
10564 #include "confdefs.h"
10573 # define LT_DLGLOBAL RTLD_GLOBAL
10576 # define LT_DLGLOBAL DL_GLOBAL
10578 # define LT_DLGLOBAL 0
10582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10583 find out it does not work in some platform. */
10584 #ifndef LT_DLLAZY_OR_NOW
10586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10589 # define LT_DLLAZY_OR_NOW DL_LAZY
10592 # define LT_DLLAZY_OR_NOW RTLD_NOW
10595 # define LT_DLLAZY_OR_NOW DL_NOW
10597 # define LT_DLLAZY_OR_NOW 0
10605 extern "C" void exit (int);
10608 void fnord() { int i=42;}
10611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10612 int status = $lt_dlunknown;
10616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10618 /* dlclose (self); */
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10631 (./conftest; exit; ) >&5 2>/dev/null
10633 case x$lt_status in
10634 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10635 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10636 x$lt_dlunknown|x*) ;;
10639 # compilation failed
10648 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10649 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10653 if test x"$libltdl_cv_need_uscore" = xyes; then
10655 cat >>confdefs.h <<\_ACEOF
10656 #define NEED_USCORE 1
10662 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10663 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10664 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 # PORTME does your system automatically load deplibs for dlopen?
10668 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10669 # For now, we just catch OSes we know something about -- in the
10670 # future, we'll try test this programmatically.
10671 libltdl_cv_sys_dlopen_deplibs=unknown
10673 aix3*|aix4.1.*|aix4.2.*)
10674 # Unknown whether this is true for these versions of AIX, but
10675 # we want this `case' here to explicitly catch those versions.
10676 libltdl_cv_sys_dlopen_deplibs=unknown
10679 libltdl_cv_sys_dlopen_deplibs=yes
10682 # Assuming the user has installed a libdl from somewhere, this is true
10683 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10684 libltdl_cv_sys_dlopen_deplibs=yes
10686 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10687 # GNU and its variants, using gnu ld.so (Glibc)
10688 libltdl_cv_sys_dlopen_deplibs=yes
10691 libltdl_cv_sys_dlopen_deplibs=yes
10694 libltdl_cv_sys_dlopen_deplibs=yes
10696 irix[12345]*|irix6.[01]*)
10697 # Catch all versions of IRIX before 6.2, and indicate that we don't
10698 # know how it worked for any of those versions.
10699 libltdl_cv_sys_dlopen_deplibs=unknown
10702 # The case above catches anything before 6.2, and it's known that
10703 # at 6.2 and later dlopen does load deplibs.
10704 libltdl_cv_sys_dlopen_deplibs=yes
10707 libltdl_cv_sys_dlopen_deplibs=yes
10710 libltdl_cv_sys_dlopen_deplibs=yes
10713 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10714 # it did *not* use an RPATH in a shared library to find objects the
10715 # library depends on, so we explictly say `no'.
10716 libltdl_cv_sys_dlopen_deplibs=no
10718 osf5.0|osf5.0a|osf5.1)
10719 # dlopen *does* load deplibs and with the right loader patch applied
10720 # it even uses RPATH in a shared library to search for shared objects
10721 # that the library depends on, but there's no easy way to know if that
10722 # patch is installed. Since this is the case, all we can really
10723 # say is unknown -- it depends on the patch being installed. If
10724 # it is, this changes to `yes'. Without it, it would be `no'.
10725 libltdl_cv_sys_dlopen_deplibs=unknown
10728 # the two cases above should catch all versions of osf <= 5.1. Read
10729 # the comments above for what we know about them.
10730 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10731 # is used to find them so we can finally say `yes'.
10732 libltdl_cv_sys_dlopen_deplibs=yes
10735 libltdl_cv_sys_dlopen_deplibs=yes
10737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10738 libltdl_cv_sys_dlopen_deplibs=yes
10743 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10744 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10745 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10747 cat >>confdefs.h <<\_ACEOF
10748 #define LTDL_DLOPEN_DEPLIBS 1
10754 for ac_header in argz.h
10756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 ac_res=`eval echo '${'$as_ac_Header'}'`
10764 { echo "$as_me:$LINENO: result: $ac_res" >&5
10765 echo "${ECHO_T}$ac_res" >&6; }
10767 # Is the header compilable?
10768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 $ac_includes_default
10777 #include <$ac_header>
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest.$ac_objext'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_header_compiler=yes
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 ac_header_compiler=no
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10823 echo "${ECHO_T}$ac_header_compiler" >&6; }
10825 # Is the header present?
10826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <$ac_header>
10836 if { (ac_try="$ac_cpp conftest.$ac_ext"
10837 case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } >/dev/null; then
10849 if test -s conftest.err; then
10850 ac_cpp_err=$ac_c_preproc_warn_flag
10851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10858 if test -z "$ac_cpp_err"; then
10859 ac_header_preproc=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_header_preproc=no
10867 rm -f conftest.err conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10869 echo "${ECHO_T}$ac_header_preproc" >&6; }
10871 # So? What about this header?
10872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10878 ac_header_preproc=yes
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10894 ## ----------------------------------- ##
10895 ## Report this to llvmbugs@cs.uiuc.edu ##
10896 ## ----------------------------------- ##
10898 ) | sed "s/^/$as_me: WARNING: /" >&2
10901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 eval "$as_ac_Header=\$ac_header_preproc"
10908 ac_res=`eval echo '${'$as_ac_Header'}'`
10909 { echo "$as_me:$LINENO: result: $ac_res" >&5
10910 echo "${ECHO_T}$ac_res" >&6; }
10913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10923 { echo "$as_me:$LINENO: checking for error_t" >&5
10924 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10925 if test "${ac_cv_type_error_t+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 cat >conftest.$ac_ext <<_ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10938 typedef error_t ac__type_new_;
10942 if ((ac__type_new_ *) 0)
10944 if (sizeof (ac__type_new_))
10950 rm -f conftest.$ac_objext
10951 if { (ac_try="$ac_compile"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10965 { (case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_try") 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; } &&
10974 { ac_try='test -s conftest.$ac_objext'
10975 { (case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_try") 2>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 ac_cv_type_error_t=yes
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10989 ac_cv_type_error_t=no
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10995 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10996 if test $ac_cv_type_error_t = yes; then
10998 cat >>confdefs.h <<_ACEOF
10999 #define HAVE_ERROR_T 1
11005 cat >>confdefs.h <<\_ACEOF
11006 #define error_t int
11017 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11033 #define $ac_func innocuous_$ac_func
11035 /* System header to define __stub macros and hopefully few prototypes,
11036 which can conflict with char $ac_func (); below.
11037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11038 <limits.h> exists even on freestanding compilers. */
11041 # include <limits.h>
11043 # include <assert.h>
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11055 /* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
11058 #if defined __stub_$ac_func || defined __stub___$ac_func
11065 return $ac_func ();
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_link") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest$ac_exeext'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 eval "$as_ac_var=yes"
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 eval "$as_ac_var=no"
11112 rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext conftest.$ac_ext
11115 ac_res=`eval echo '${'$as_ac_var'}'`
11116 { echo "$as_me:$LINENO: result: $ac_res" >&5
11117 echo "${ECHO_T}$ac_res" >&6; }
11118 if test `eval echo '${'$as_ac_var'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11153 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 ac_res=`eval echo '${'$as_ac_Header'}'`
11164 { echo "$as_me:$LINENO: result: $ac_res" >&5
11165 echo "${ECHO_T}$ac_res" >&6; }
11167 # Is the header compilable?
11168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11177 #include <$ac_header>
11179 rm -f conftest.$ac_objext
11180 if { (ac_try="$ac_compile"
11181 case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_compile") 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11194 { (case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_try") 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest.$ac_objext'
11204 { (case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_try") 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 ac_header_compiler=yes
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_header_compiler=no
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223 echo "${ECHO_T}$ac_header_compiler" >&6; }
11225 # Is the header present?
11226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 #include <$ac_header>
11236 if { (ac_try="$ac_cpp conftest.$ac_ext"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11244 grep -v '^ *+' conftest.er1 >conftest.err
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } >/dev/null; then
11249 if test -s conftest.err; then
11250 ac_cpp_err=$ac_c_preproc_warn_flag
11251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11258 if test -z "$ac_cpp_err"; then
11259 ac_header_preproc=yes
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 ac_header_preproc=no
11267 rm -f conftest.err conftest.$ac_ext
11268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269 echo "${ECHO_T}$ac_header_preproc" >&6; }
11271 # So? What about this header?
11272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11278 ac_header_preproc=yes
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11294 ## ----------------------------------- ##
11295 ## Report this to llvmbugs@cs.uiuc.edu ##
11296 ## ----------------------------------- ##
11298 ) | sed "s/^/$as_me: WARNING: /" >&2
11301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 eval "$as_ac_Header=\$ac_header_preproc"
11308 ac_res=`eval echo '${'$as_ac_Header'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310 echo "${ECHO_T}$ac_res" >&6; }
11313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11314 cat >>confdefs.h <<_ACEOF
11315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11339 # Is the header compilable?
11340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 $ac_includes_default
11349 #include <$ac_header>
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_compile") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_header_compiler=yes
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_header_compiler=no
11393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11395 echo "${ECHO_T}$ac_header_compiler" >&6; }
11397 # Is the header present?
11398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 #include <$ac_header>
11408 if { (ac_try="$ac_cpp conftest.$ac_ext"
11409 case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11416 grep -v '^ *+' conftest.er1 >conftest.err
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } >/dev/null; then
11421 if test -s conftest.err; then
11422 ac_cpp_err=$ac_c_preproc_warn_flag
11423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11430 if test -z "$ac_cpp_err"; then
11431 ac_header_preproc=yes
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 ac_header_preproc=no
11439 rm -f conftest.err conftest.$ac_ext
11440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441 echo "${ECHO_T}$ac_header_preproc" >&6; }
11443 # So? What about this header?
11444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11450 ac_header_preproc=yes
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11466 ## ----------------------------------- ##
11467 ## Report this to llvmbugs@cs.uiuc.edu ##
11468 ## ----------------------------------- ##
11470 ) | sed "s/^/$as_me: WARNING: /" >&2
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 eval "$as_ac_Header=\$ac_header_preproc"
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486 cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11496 for ac_header in string.h strings.h
11498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11509 # Is the header compilable?
11510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11519 #include <$ac_header>
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_header_compiler=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_compiler=no
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565 echo "${ECHO_T}$ac_header_compiler" >&6; }
11567 # Is the header present?
11568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <$ac_header>
11578 if { (ac_try="$ac_cpp conftest.$ac_ext"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } >/dev/null; then
11591 if test -s conftest.err; then
11592 ac_cpp_err=$ac_c_preproc_warn_flag
11593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600 if test -z "$ac_cpp_err"; then
11601 ac_header_preproc=yes
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_header_preproc=no
11609 rm -f conftest.err conftest.$ac_ext
11610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611 echo "${ECHO_T}$ac_header_preproc" >&6; }
11613 # So? What about this header?
11614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620 ac_header_preproc=yes
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11636 ## ----------------------------------- ##
11637 ## Report this to llvmbugs@cs.uiuc.edu ##
11638 ## ----------------------------------- ##
11640 ) | sed "s/^/$as_me: WARNING: /" >&2
11643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 eval "$as_ac_Header=\$ac_header_preproc"
11650 ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652 echo "${ECHO_T}$ac_res" >&6; }
11655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656 cat >>confdefs.h <<_ACEOF
11657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11667 for ac_func in strchr index
11669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11683 #define $ac_func innocuous_$ac_func
11685 /* System header to define __stub macros and hopefully few prototypes,
11686 which can conflict with char $ac_func (); below.
11687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688 <limits.h> exists even on freestanding compilers. */
11691 # include <limits.h>
11693 # include <assert.h>
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11705 /* The GNU C library defines this for functions which it implements
11706 to always fail with ENOSYS. Some functions are actually named
11707 something starting with __ and the normal name is an alias. */
11708 #if defined __stub_$ac_func || defined __stub___$ac_func
11715 return $ac_func ();
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (ac_try="$ac_link"
11722 case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_link") 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest$ac_exeext'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 eval "$as_ac_var=yes"
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 eval "$as_ac_var=no"
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11765 ac_res=`eval echo '${'$as_ac_var'}'`
11766 { echo "$as_me:$LINENO: result: $ac_res" >&5
11767 echo "${ECHO_T}$ac_res" >&6; }
11768 if test `eval echo '${'$as_ac_var'}'` = yes; then
11769 cat >>confdefs.h <<_ACEOF
11770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11778 for ac_func in strrchr rindex
11780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11794 #define $ac_func innocuous_$ac_func
11796 /* System header to define __stub macros and hopefully few prototypes,
11797 which can conflict with char $ac_func (); below.
11798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 <limits.h> exists even on freestanding compilers. */
11802 # include <limits.h>
11804 # include <assert.h>
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11816 /* The GNU C library defines this for functions which it implements
11817 to always fail with ENOSYS. Some functions are actually named
11818 something starting with __ and the normal name is an alias. */
11819 #if defined __stub_$ac_func || defined __stub___$ac_func
11826 return $ac_func ();
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (ac_try="$ac_link"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_link") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 eval "$as_ac_var=yes"
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 eval "$as_ac_var=no"
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11876 ac_res=`eval echo '${'$as_ac_var'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11879 if test `eval echo '${'$as_ac_var'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889 for ac_func in memcpy bcopy
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11905 #define $ac_func innocuous_$ac_func
11907 /* System header to define __stub macros and hopefully few prototypes,
11908 which can conflict with char $ac_func (); below.
11909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 <limits.h> exists even on freestanding compilers. */
11913 # include <limits.h>
11915 # include <assert.h>
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11927 /* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
11930 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 return $ac_func ();
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 eval "$as_ac_var=yes"
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 eval "$as_ac_var=no"
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11987 ac_res=`eval echo '${'$as_ac_var'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 if test `eval echo '${'$as_ac_var'}'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12000 for ac_func in memmove strcmp
12002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 cat >conftest.$ac_ext <<_ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016 #define $ac_func innocuous_$ac_func
12018 /* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char $ac_func (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12024 # include <limits.h>
12026 # include <assert.h>
12031 /* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined __stub_$ac_func || defined __stub___$ac_func
12048 return $ac_func ();
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 eval "$as_ac_var=yes"
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 eval "$as_ac_var=no"
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12098 ac_res=`eval echo '${'$as_ac_var'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_var'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12112 for ac_func in closedir opendir readdir
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 cat >conftest.$ac_ext <<_ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12128 #define $ac_func innocuous_$ac_func
12130 /* System header to define __stub macros and hopefully few prototypes,
12131 which can conflict with char $ac_func (); below.
12132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133 <limits.h> exists even on freestanding compilers. */
12136 # include <limits.h>
12138 # include <assert.h>
12143 /* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
12150 /* The GNU C library defines this for functions which it implements
12151 to always fail with ENOSYS. Some functions are actually named
12152 something starting with __ and the normal name is an alias. */
12153 #if defined __stub_$ac_func || defined __stub___$ac_func
12160 return $ac_func ();
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (ac_try="$ac_link"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_link") 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12180 { (case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_try") 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest$ac_exeext'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 eval "$as_ac_var=yes"
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 eval "$as_ac_var=no"
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12210 ac_res=`eval echo '${'$as_ac_var'}'`
12211 { echo "$as_me:$LINENO: result: $ac_res" >&5
12212 echo "${ECHO_T}$ac_res" >&6; }
12213 if test `eval echo '${'$as_ac_var'}'` = yes; then
12214 cat >>confdefs.h <<_ACEOF
12215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12222 # Check whether --enable-shared was given.
12223 if test "${enable_shared+set}" = set; then
12224 enableval=$enable_shared; p=${PACKAGE-default}
12226 yes) enable_shared=yes ;;
12227 no) enable_shared=no ;;
12230 # Look at the argument we got. We use all the common list separators.
12231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12232 for pkg in $enableval; do
12234 if test "X$pkg" = "X$p"; then
12246 # Check whether --enable-static was given.
12247 if test "${enable_static+set}" = set; then
12248 enableval=$enable_static; p=${PACKAGE-default}
12250 yes) enable_static=yes ;;
12251 no) enable_static=no ;;
12254 # Look at the argument we got. We use all the common list separators.
12255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256 for pkg in $enableval; do
12258 if test "X$pkg" = "X$p"; then
12270 # Check whether --enable-fast-install was given.
12271 if test "${enable_fast_install+set}" = set; then
12272 enableval=$enable_fast_install; p=${PACKAGE-default}
12274 yes) enable_fast_install=yes ;;
12275 no) enable_fast_install=no ;;
12277 enable_fast_install=no
12278 # Look at the argument we got. We use all the common list separators.
12279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12280 for pkg in $enableval; do
12282 if test "X$pkg" = "X$p"; then
12283 enable_fast_install=yes
12290 enable_fast_install=yes
12294 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12295 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12296 if test "${lt_cv_path_SED+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 # Loop through the user's path and test for sed and gsed.
12300 # Then use that list of sed's as ones to test for truncation.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12305 test -z "$as_dir" && as_dir=.
12306 for lt_ac_prog in sed gsed; do
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12309 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12316 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12317 # along with /bin/sed that truncates output.
12318 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12319 test ! -f $lt_ac_sed && continue
12320 cat /dev/null > conftest.in
12322 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12323 # Check for GNU sed and select it if it is found.
12324 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12325 lt_cv_path_SED=$lt_ac_sed
12329 cat conftest.in conftest.in >conftest.tmp
12330 mv conftest.tmp conftest.in
12331 cp conftest.in conftest.nl
12333 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12334 cmp -s conftest.out conftest.nl || break
12335 # 10000 chars as input seems more than enough
12336 test $lt_ac_count -gt 10 && break
12337 lt_ac_count=`expr $lt_ac_count + 1`
12338 if test $lt_ac_count -gt $lt_ac_max; then
12339 lt_ac_max=$lt_ac_count
12340 lt_cv_path_SED=$lt_ac_sed
12347 SED=$lt_cv_path_SED
12348 { echo "$as_me:$LINENO: result: $SED" >&5
12349 echo "${ECHO_T}$SED" >&6; }
12352 # Check whether --with-gnu-ld was given.
12353 if test "${with_gnu_ld+set}" = set; then
12354 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12360 if test "$GCC" = yes; then
12361 # Check if gcc -print-prog-name=ld gives a path.
12362 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12363 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12366 # gcc leaves a trailing carriage return which upsets mingw
12367 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12369 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12372 # Accept absolute paths.
12374 re_direlt='/[^/][^/]*/\.\./'
12375 # Canonicalize the pathname of ld
12376 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12377 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12378 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12380 test -z "$LD" && LD="$ac_prog"
12383 # If it fails, then pretend we aren't using GCC.
12387 # If it is relative, then search for the first ld in PATH.
12388 with_gnu_ld=unknown
12391 elif test "$with_gnu_ld" = yes; then
12392 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12393 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12395 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12396 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12398 if test "${lt_cv_path_LD+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 if test -z "$LD"; then
12402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12403 for ac_dir in $PATH; do
12405 test -z "$ac_dir" && ac_dir=.
12406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12407 lt_cv_path_LD="$ac_dir/$ac_prog"
12408 # Check to see if the program is GNU ld. I'd rather use --version,
12409 # but apparently some variants of GNU ld only accept -v.
12410 # Break only if it was the GNU/non-GNU ld that we prefer.
12411 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12412 *GNU* | *'with BFD'*)
12413 test "$with_gnu_ld" != no && break
12416 test "$with_gnu_ld" != yes && break
12423 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12427 LD="$lt_cv_path_LD"
12428 if test -n "$LD"; then
12429 { echo "$as_me:$LINENO: result: $LD" >&5
12430 echo "${ECHO_T}$LD" >&6; }
12432 { echo "$as_me:$LINENO: result: no" >&5
12433 echo "${ECHO_T}no" >&6; }
12435 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12436 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12437 { (exit 1); exit 1; }; }
12438 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12439 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12440 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12444 case `$LD -v 2>&1 </dev/null` in
12445 *GNU* | *'with BFD'*)
12446 lt_cv_prog_gnu_ld=yes
12449 lt_cv_prog_gnu_ld=no
12453 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12454 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12455 with_gnu_ld=$lt_cv_prog_gnu_ld
12458 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12459 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12460 if test "${lt_cv_ld_reload_flag+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 lt_cv_ld_reload_flag='-r'
12465 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12466 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12467 reload_flag=$lt_cv_ld_reload_flag
12468 case $reload_flag in
12470 *) reload_flag=" $reload_flag" ;;
12472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12475 if test "$GCC" = yes; then
12476 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12483 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12484 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12485 if test "${lt_cv_deplibs_check_method+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 lt_cv_file_magic_cmd='$MAGIC_CMD'
12489 lt_cv_file_magic_test_file=
12490 lt_cv_deplibs_check_method='unknown'
12491 # Need to set the preceding variable on all platforms that support
12492 # interlibrary dependencies.
12493 # 'none' -- dependencies not supported.
12494 # `unknown' -- same as none, but documents that we really don't know.
12495 # 'pass_all' -- all dependencies passed with no checks.
12496 # 'test_compile' -- check by making test program.
12497 # 'file_magic [[regex]]' -- check by looking for files in library path
12498 # which responds to the $file_magic_cmd with a given extended regex.
12499 # If you have `file' or equivalent on your system and you're not sure
12500 # whether `pass_all' will *always* work, you probably want this one.
12504 lt_cv_deplibs_check_method=pass_all
12508 lt_cv_deplibs_check_method=pass_all
12512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12513 lt_cv_file_magic_cmd='/usr/bin/file -L'
12514 lt_cv_file_magic_test_file=/shlib/libc.so
12518 # func_win32_libid is a shell function defined in ltmain.sh
12519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12520 lt_cv_file_magic_cmd='func_win32_libid'
12524 # Base MSYS/MinGW do not provide the 'file' command needed by
12525 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12527 lt_cv_file_magic_cmd='$OBJDUMP -f'
12530 darwin* | rhapsody*)
12531 lt_cv_deplibs_check_method=pass_all
12534 freebsd* | kfreebsd*-gnu | dragonfly*)
12535 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12538 # Not sure whether the presence of OpenBSD here was a mistake.
12539 # Let's accept both of them until this is cleared up.
12540 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12541 lt_cv_file_magic_cmd=/usr/bin/file
12542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12546 lt_cv_deplibs_check_method=pass_all
12551 lt_cv_deplibs_check_method=pass_all
12554 hpux10.20* | hpux11*)
12555 lt_cv_file_magic_cmd=/usr/bin/file
12558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12559 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12562 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]'
12563 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12567 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12573 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12577 irix5* | irix6* | nonstopux*)
12579 *-32|*"-32 ") libmagic=32-bit;;
12580 *-n32|*"-n32 ") libmagic=N32;;
12581 *-64|*"-64 ") libmagic=64-bit;;
12582 *) libmagic=never-match;;
12584 lt_cv_deplibs_check_method=pass_all
12587 # This must be Linux ELF.
12589 lt_cv_deplibs_check_method=pass_all
12593 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12602 lt_cv_file_magic_cmd=/usr/bin/file
12603 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12607 lt_cv_deplibs_check_method=unknown
12611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12618 osf3* | osf4* | osf5*)
12619 lt_cv_deplibs_check_method=pass_all
12623 lt_cv_deplibs_check_method=pass_all
12627 case $host_vendor in
12629 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]'
12630 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12633 lt_cv_deplibs_check_method=pass_all
12636 lt_cv_file_magic_cmd='/bin/file'
12637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12640 lt_cv_file_magic_cmd='/bin/file'
12641 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12642 lt_cv_file_magic_test_file=/lib/libc.so
12645 lt_cv_deplibs_check_method=pass_all
12648 lt_cv_deplibs_check_method=pass_all
12653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12654 lt_cv_deplibs_check_method=pass_all
12659 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12660 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12661 file_magic_cmd=$lt_cv_file_magic_cmd
12662 deplibs_check_method=$lt_cv_deplibs_check_method
12663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12667 # If no C compiler was specified, use CC.
12670 # If no C compiler flags were specified, use CFLAGS.
12671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12673 # Allow CC to be a program name with arguments.
12676 # Check whether --enable-libtool-lock was given.
12677 if test "${enable_libtool_lock+set}" = set; then
12678 enableval=$enable_libtool_lock;
12681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12683 # Some flags need to be propagated to the compiler or linker for good
12687 # Find out which ABI we are using.
12688 echo 'int i;' > conftest.$ac_ext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; then
12694 case `/usr/bin/file conftest.$ac_objext` in
12696 HPUX_IA64_MODE="32"
12699 HPUX_IA64_MODE="64"
12706 # Find out which ABI we are using.
12707 echo '#line 12707 "configure"' > conftest.$ac_ext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; then
12713 if test "$lt_cv_prog_gnu_ld" = yes; then
12714 case `/usr/bin/file conftest.$ac_objext` in
12716 LD="${LD-ld} -melf32bsmip"
12719 LD="${LD-ld} -melf32bmipn32"
12722 LD="${LD-ld} -melf64bmip"
12726 case `/usr/bin/file conftest.$ac_objext` in
12742 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12743 # Find out which ABI we are using.
12744 echo 'int i;' > conftest.$ac_ext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; then
12750 case `/usr/bin/file conftest.o` in
12754 LD="${LD-ld} -m elf_i386"
12756 ppc64-*linux*|powerpc64-*linux*)
12757 LD="${LD-ld} -m elf32ppclinux"
12760 LD="${LD-ld} -m elf_s390"
12763 LD="${LD-ld} -m elf32_sparc"
12770 LD="${LD-ld} -m elf_x86_64"
12772 ppc*-*linux*|powerpc*-*linux*)
12773 LD="${LD-ld} -m elf64ppc"
12776 LD="${LD-ld} -m elf64_s390"
12779 LD="${LD-ld} -m elf64_sparc"
12789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12790 SAVE_CFLAGS="$CFLAGS"
12791 CFLAGS="$CFLAGS -belf"
12792 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12793 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12794 if test "${lt_cv_cc_needs_belf+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 ac_cpp='$CPP $CPPFLAGS'
12799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>conftest.er1
12827 grep -v '^ *+' conftest.er1 >conftest.err
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12833 { (case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_try") 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_try") 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 lt_cv_cc_needs_belf=yes
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 lt_cv_cc_needs_belf=no
12860 rm -f core conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12869 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12870 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12871 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12872 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12873 CFLAGS="$SAVE_CFLAGS"
12877 # Find out which ABI we are using.
12878 echo 'int i;' > conftest.$ac_ext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; then
12884 case `/usr/bin/file conftest.o` in
12886 case $lt_cv_prog_gnu_ld in
12887 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12888 *) LD="${LD-ld} -64" ;;
12899 need_locks="$enable_libtool_lock"
12904 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12905 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12906 (test "X$CXX" != "Xg++"))) ; then
12908 ac_cpp='$CXXCPP $CPPFLAGS'
12909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12912 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12913 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12914 if test -z "$CXXCPP"; then
12915 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 # Double quotes because CXXCPP needs to be expanded
12919 for CXXCPP in "$CXX -E" "/lib/cpp"
12921 ac_preproc_ok=false
12922 for ac_cxx_preproc_warn_flag in '' yes
12924 # Use a header file that comes with gcc, so configuring glibc
12925 # with a fresh cross-compiler works.
12926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12927 # <limits.h> exists even on freestanding compilers.
12928 # On the NeXT, cc -E runs the code through the compiler's parser,
12929 # not just through cpp. "Syntax error" is here to catch this case.
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12937 # include <limits.h>
12939 # include <assert.h>
12943 if { (ac_try="$ac_cpp conftest.$ac_ext"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12951 grep -v '^ *+' conftest.er1 >conftest.err
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } >/dev/null; then
12956 if test -s conftest.err; then
12957 ac_cpp_err=$ac_cxx_preproc_warn_flag
12958 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12965 if test -z "$ac_cpp_err"; then
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 # Broken: fails on valid input.
12975 rm -f conftest.err conftest.$ac_ext
12977 # OK, works on sane cases. Now check whether nonexistent headers
12978 # can be detected and how.
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 #include <ac_nonexistent.h>
12987 if { (ac_try="$ac_cpp conftest.$ac_ext"
12988 case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12995 grep -v '^ *+' conftest.er1 >conftest.err
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } >/dev/null; then
13000 if test -s conftest.err; then
13001 ac_cpp_err=$ac_cxx_preproc_warn_flag
13002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13009 if test -z "$ac_cpp_err"; then
13010 # Broken: success on invalid input.
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 # Passes both tests.
13021 rm -f conftest.err conftest.$ac_ext
13024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13025 rm -f conftest.err conftest.$ac_ext
13026 if $ac_preproc_ok; then
13031 ac_cv_prog_CXXCPP=$CXXCPP
13034 CXXCPP=$ac_cv_prog_CXXCPP
13036 ac_cv_prog_CXXCPP=$CXXCPP
13038 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13039 echo "${ECHO_T}$CXXCPP" >&6; }
13040 ac_preproc_ok=false
13041 for ac_cxx_preproc_warn_flag in '' yes
13043 # Use a header file that comes with gcc, so configuring glibc
13044 # with a fresh cross-compiler works.
13045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13046 # <limits.h> exists even on freestanding compilers.
13047 # On the NeXT, cc -E runs the code through the compiler's parser,
13048 # not just through cpp. "Syntax error" is here to catch this case.
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13056 # include <limits.h>
13058 # include <assert.h>
13062 if { (ac_try="$ac_cpp conftest.$ac_ext"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } >/dev/null; then
13075 if test -s conftest.err; then
13076 ac_cpp_err=$ac_cxx_preproc_warn_flag
13077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13084 if test -z "$ac_cpp_err"; then
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 # Broken: fails on valid input.
13094 rm -f conftest.err conftest.$ac_ext
13096 # OK, works on sane cases. Now check whether nonexistent headers
13097 # can be detected and how.
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 #include <ac_nonexistent.h>
13106 if { (ac_try="$ac_cpp conftest.$ac_ext"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } >/dev/null; then
13119 if test -s conftest.err; then
13120 ac_cpp_err=$ac_cxx_preproc_warn_flag
13121 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13128 if test -z "$ac_cpp_err"; then
13129 # Broken: success on invalid input.
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 # Passes both tests.
13140 rm -f conftest.err conftest.$ac_ext
13143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13144 rm -f conftest.err conftest.$ac_ext
13145 if $ac_preproc_ok; then
13148 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13149 See \`config.log' for more details." >&5
13150 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13151 See \`config.log' for more details." >&2;}
13152 { (exit 1); exit 1; }; }
13156 ac_cpp='$CXXCPP $CPPFLAGS'
13157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13165 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13166 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13168 if test -n "$ac_tool_prefix"; then
13169 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
13171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13175 if test "${ac_cv_prog_F77+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 if test -n "$F77"; then
13179 ac_cv_prog_F77="$F77" # Let the user override the test.
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 F77=$ac_cv_prog_F77
13199 if test -n "$F77"; then
13200 { echo "$as_me:$LINENO: result: $F77" >&5
13201 echo "${ECHO_T}$F77" >&6; }
13203 { echo "$as_me:$LINENO: result: no" >&5
13204 echo "${ECHO_T}no" >&6; }
13208 test -n "$F77" && break
13211 if test -z "$F77"; then
13213 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
13215 # Extract the first word of "$ac_prog", so it can be a program name with args.
13216 set dummy $ac_prog; ac_word=$2
13217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13219 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 if test -n "$ac_ct_F77"; then
13223 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13232 ac_cv_prog_ac_ct_F77="$ac_prog"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13243 if test -n "$ac_ct_F77"; then
13244 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13245 echo "${ECHO_T}$ac_ct_F77" >&6; }
13247 { echo "$as_me:$LINENO: result: no" >&5
13248 echo "${ECHO_T}no" >&6; }
13252 test -n "$ac_ct_F77" && break
13255 if test "x$ac_ct_F77" = x; then
13258 case $cross_compiling:$ac_tool_warned in
13260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13261 whose name does not start with the host triplet. If you think this
13262 configuration is useful to you, please write to autoconf@gnu.org." >&5
13263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13264 whose name does not start with the host triplet. If you think this
13265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13266 ac_tool_warned=yes ;;
13273 # Provide some information about the compiler.
13274 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13275 ac_compiler=`set X $ac_compile; echo $2`
13276 { (ac_try="$ac_compiler --version >&5"
13277 case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_compiler --version >&5") 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }
13286 { (ac_try="$ac_compiler -v >&5"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_compiler -v >&5") 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }
13296 { (ac_try="$ac_compiler -V >&5"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compiler -V >&5") 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }
13308 # If we don't use `.F' as extension, the preprocessor is not run on the
13309 # input file. (Note that this only needs to work for GNU compilers.)
13310 ac_save_ext=$ac_ext
13312 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13313 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13314 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (ac_try="$ac_compile"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_compile") 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_compiler_gnu=yes
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13371 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13372 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13373 ac_ext=$ac_save_ext
13374 ac_test_FFLAGS=${FFLAGS+set}
13375 ac_save_FFLAGS=$FFLAGS
13377 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13378 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13379 if test "${ac_cv_prog_f77_g+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 cat >conftest.$ac_ext <<_ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (ac_try="$ac_compile"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_compile") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
13422 ac_cv_prog_f77_g=yes
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ac_cv_prog_f77_g=no
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13434 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13435 if test "$ac_test_FFLAGS" = set; then
13436 FFLAGS=$ac_save_FFLAGS
13437 elif test $ac_cv_prog_f77_g = yes; then
13438 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13444 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13451 G77=`test $ac_compiler_gnu = yes && echo yes`
13453 ac_cpp='$CPP $CPPFLAGS'
13454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13460 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13462 # find the maximum length of command line arguments
13463 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13464 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13465 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 # On DJGPP, this test can blow up pretty badly due to problems in libc
13474 # (any single argument exceeding 2000 bytes causes a buffer overrun
13475 # during glob expansion). Even if it were fixed, the result of this
13476 # check would be larger than it should be.
13477 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13481 # Under GNU Hurd, this test is not required because there is
13482 # no limit to the length of command line arguments.
13483 # Libtool will interpret -1 as no limit whatsoever
13484 lt_cv_sys_max_cmd_len=-1;
13488 # On Win9x/ME, this test blows up -- it succeeds, but takes
13489 # about 5 minutes as the teststring grows exponentially.
13490 # Worse, since 9x/ME are not pre-emptively multitasking,
13491 # you end up with a "frozen" computer, even though with patience
13492 # the test eventually succeeds (with a max line length of 256k).
13493 # Instead, let's just punt: use the minimum linelength reported by
13494 # all of the supported platforms: 8192 (on NT/2K/XP).
13495 lt_cv_sys_max_cmd_len=8192;
13499 # On AmigaOS with pdksh, this test takes hours, literally.
13500 # So we just punt and use a minimum line length of 8192.
13501 lt_cv_sys_max_cmd_len=8192;
13504 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13505 # This has been around since 386BSD, at least. Likely further.
13506 if test -x /sbin/sysctl; then
13507 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13508 elif test -x /usr/sbin/sysctl; then
13509 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13511 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13513 # And add a safety zone
13514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13519 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13520 lt_cv_sys_max_cmd_len=196608
13524 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13525 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13526 # nice to cause kernel panics so lets avoid the loop below.
13527 # First set a reasonable default.
13528 lt_cv_sys_max_cmd_len=16384
13530 if test -x /sbin/sysconfig; then
13531 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13532 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13537 lt_cv_sys_max_cmd_len=102400
13539 sysv5* | sco5v6* | sysv4.2uw2*)
13540 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13541 if test -n "$kargmax"; then
13542 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13544 lt_cv_sys_max_cmd_len=32768
13548 # If test is not a shell built-in, we'll probably end up computing a
13549 # maximum length that is only half of the actual maximum length, but
13551 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13552 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13553 = "XX$teststring") >/dev/null 2>&1 &&
13554 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13555 lt_cv_sys_max_cmd_len=$new_result &&
13556 test $i != 17 # 1/2 MB should be enough
13559 teststring=$teststring$teststring
13562 # Add a significant safety factor because C++ compilers can tack on massive
13563 # amounts of additional arguments before passing them to the linker.
13564 # It appears as though 1/2 is a usable value.
13565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13571 if test -n $lt_cv_sys_max_cmd_len ; then
13572 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13573 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13575 { echo "$as_me:$LINENO: result: none" >&5
13576 echo "${ECHO_T}none" >&6; }
13582 # Check for command to grab the raw symbol name followed by C symbol from nm.
13583 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13584 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 # These are sane defaults that work on at least a few old systems.
13590 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13592 # Character class describing NM global symbol codes.
13593 symcode='[BCDEGRST]'
13595 # Regexp to match symbols that can be accessed directly from C.
13596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13598 # Transform an extracted symbol line into a proper C declaration
13599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13601 # Transform an extracted symbol line into symbol name and symbol address
13602 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'"
13604 # Define system-specific variables.
13609 cygwin* | mingw* | pw32*)
13610 symcode='[ABCDGISTW]'
13612 hpux*) # Its linker distinguishes data from code symbols
13613 if test "$host_cpu" = ia64; then
13614 symcode='[ABCDEGRST]'
13616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13617 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'"
13620 if test "$host_cpu" = ia64; then
13621 symcode='[ABCDGIRSTW]'
13622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13623 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'"
13626 irix* | nonstopux*)
13627 symcode='[BCDEGRST]'
13630 symcode='[BCDEGQRST]'
13641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13649 # Handle CRLF in mingw tool chain
13653 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13657 # If we're using GNU nm, then use its standard symbol codes.
13658 case `$NM -V 2>&1` in
13659 *GNU* | *'with BFD'*)
13660 symcode='[ABCDGIRSTW]' ;;
13663 # Try without a prefix undercore, then with it.
13664 for ac_symprfx in "" "_"; do
13666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13667 symxfrm="\\1 $ac_symprfx\\2 \\2"
13669 # Write the raw and C identifiers.
13670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13672 # Check to see that the pipe works correctly.
13676 cat > conftest.$ac_ext <<EOF
13681 void nm_test_func(){}
13685 int main(){nm_test_var='a';nm_test_func();return(0);}
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; then
13693 # Now try to grab the symbols.
13695 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13696 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && test -s "$nlist"; then
13700 # Try sorting and uniquifying the output.
13701 if sort "$nlist" | uniq > "$nlist"T; then
13702 mv -f "$nlist"T "$nlist"
13707 # Make sure that we snagged all the symbols we need.
13708 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13709 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13710 cat <<EOF > conftest.$ac_ext
13716 # Now generate the symbol file.
13717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13719 cat <<EOF >> conftest.$ac_ext
13720 #if defined (__STDC__) && __STDC__
13721 # define lt_ptr_t void *
13723 # define lt_ptr_t char *
13727 /* The mapping between symbol names and symbols. */
13732 lt_preloaded_symbols[] =
13735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13736 cat <<\EOF >> conftest.$ac_ext
13744 # Now try linking the two files.
13745 mv conftest.$ac_objext conftstm.$ac_objext
13746 lt_save_LIBS="$LIBS"
13747 lt_save_CFLAGS="$CFLAGS"
13748 LIBS="conftstm.$ac_objext"
13749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13751 (eval $ac_link) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13757 LIBS="$lt_save_LIBS"
13758 CFLAGS="$lt_save_CFLAGS"
13760 echo "cannot find nm_test_func in $nlist" >&5
13763 echo "cannot find nm_test_var in $nlist" >&5
13766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13769 echo "$progname: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13772 rm -f conftest* conftst*
13774 # Do not use the global_symbol_pipe unless it works.
13775 if test "$pipe_works" = yes; then
13778 lt_cv_sys_global_symbol_pipe=
13784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13785 lt_cv_sys_global_symbol_to_cdecl=
13787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13788 { echo "$as_me:$LINENO: result: failed" >&5
13789 echo "${ECHO_T}failed" >&6; }
13791 { echo "$as_me:$LINENO: result: ok" >&5
13792 echo "${ECHO_T}ok" >&6; }
13795 { echo "$as_me:$LINENO: checking for objdir" >&5
13796 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13797 if test "${lt_cv_objdir+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 rm -f .libs 2>/dev/null
13801 mkdir .libs 2>/dev/null
13802 if test -d .libs; then
13805 # MS-DOS does not allow filenames that begin with a dot.
13808 rmdir .libs 2>/dev/null
13810 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13811 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13812 objdir=$lt_cv_objdir
13820 # AIX sometimes has problems with the GCC collect2 program. For some
13821 # reason, if we set the COLLECT_NAMES environment variable, the problems
13822 # vanish in a puff of smoke.
13823 if test "X${COLLECT_NAMES+set}" != Xset; then
13825 export COLLECT_NAMES
13830 # Sed substitution that helps us do robust quoting. It backslashifies
13831 # metacharacters that are still active within double-quoted strings.
13832 Xsed='sed -e 1s/^X//'
13833 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13835 # Same as above, but do not quote variable references.
13836 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13838 # Sed substitution to delay expansion of an escaped shell variable in a
13839 # double_quote_subst'ed string.
13840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13842 # Sed substitution to avoid accidental globbing in evaled expressions
13843 no_glob_subst='s/\*/\\\*/g'
13848 # Global variables:
13849 default_ofile=mklib
13850 can_build_shared=yes
13852 # All known linkers require a `.a' archive for static linking (except MSVC,
13853 # which needs '.lib').
13855 ltmain="$ac_aux_dir/ltmain.sh"
13856 ofile="$default_ofile"
13857 with_gnu_ld="$lt_cv_prog_gnu_ld"
13859 if test -n "$ac_tool_prefix"; then
13860 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13861 set dummy ${ac_tool_prefix}ar; ac_word=$2
13862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13864 if test "${ac_cv_prog_AR+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 if test -n "$AR"; then
13868 ac_cv_prog_AR="$AR" # Let the user override the test.
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13877 ac_cv_prog_AR="${ac_tool_prefix}ar"
13878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 if test -n "$AR"; then
13889 { echo "$as_me:$LINENO: result: $AR" >&5
13890 echo "${ECHO_T}$AR" >&6; }
13892 { echo "$as_me:$LINENO: result: no" >&5
13893 echo "${ECHO_T}no" >&6; }
13898 if test -z "$ac_cv_prog_AR"; then
13900 # Extract the first word of "ar", so it can be a program name with args.
13901 set dummy ar; ac_word=$2
13902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13904 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 if test -n "$ac_ct_AR"; then
13908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13917 ac_cv_prog_ac_ct_AR="ar"
13918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13928 if test -n "$ac_ct_AR"; then
13929 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13930 echo "${ECHO_T}$ac_ct_AR" >&6; }
13932 { echo "$as_me:$LINENO: result: no" >&5
13933 echo "${ECHO_T}no" >&6; }
13936 if test "x$ac_ct_AR" = x; then
13939 case $cross_compiling:$ac_tool_warned in
13941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13942 whose name does not start with the host triplet. If you think this
13943 configuration is useful to you, please write to autoconf@gnu.org." >&5
13944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13945 whose name does not start with the host triplet. If you think this
13946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13947 ac_tool_warned=yes ;;
13952 AR="$ac_cv_prog_AR"
13955 if test -n "$ac_tool_prefix"; then
13956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13960 if test "${ac_cv_prog_RANLIB+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 if test -n "$RANLIB"; then
13964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 RANLIB=$ac_cv_prog_RANLIB
13984 if test -n "$RANLIB"; then
13985 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13986 echo "${ECHO_T}$RANLIB" >&6; }
13988 { echo "$as_me:$LINENO: result: no" >&5
13989 echo "${ECHO_T}no" >&6; }
13994 if test -z "$ac_cv_prog_RANLIB"; then
13995 ac_ct_RANLIB=$RANLIB
13996 # Extract the first word of "ranlib", so it can be a program name with args.
13997 set dummy ranlib; ac_word=$2
13998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 if test -n "$ac_ct_RANLIB"; then
14004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14013 ac_cv_prog_ac_ct_RANLIB="ranlib"
14014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14024 if test -n "$ac_ct_RANLIB"; then
14025 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14026 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14028 { echo "$as_me:$LINENO: result: no" >&5
14029 echo "${ECHO_T}no" >&6; }
14032 if test "x$ac_ct_RANLIB" = x; then
14035 case $cross_compiling:$ac_tool_warned in
14037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14038 whose name does not start with the host triplet. If you think this
14039 configuration is useful to you, please write to autoconf@gnu.org." >&5
14040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14041 whose name does not start with the host triplet. If you think this
14042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14043 ac_tool_warned=yes ;;
14045 RANLIB=$ac_ct_RANLIB
14048 RANLIB="$ac_cv_prog_RANLIB"
14051 if test -n "$ac_tool_prefix"; then
14052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14053 set dummy ${ac_tool_prefix}strip; ac_word=$2
14054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14056 if test "${ac_cv_prog_STRIP+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 if test -n "$STRIP"; then
14060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
14068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14079 STRIP=$ac_cv_prog_STRIP
14080 if test -n "$STRIP"; then
14081 { echo "$as_me:$LINENO: result: $STRIP" >&5
14082 echo "${ECHO_T}$STRIP" >&6; }
14084 { echo "$as_me:$LINENO: result: no" >&5
14085 echo "${ECHO_T}no" >&6; }
14090 if test -z "$ac_cv_prog_STRIP"; then
14092 # Extract the first word of "strip", so it can be a program name with args.
14093 set dummy strip; ac_word=$2
14094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 if test -n "$ac_ct_STRIP"; then
14100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14109 ac_cv_prog_ac_ct_STRIP="strip"
14110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14120 if test -n "$ac_ct_STRIP"; then
14121 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14122 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14124 { echo "$as_me:$LINENO: result: no" >&5
14125 echo "${ECHO_T}no" >&6; }
14128 if test "x$ac_ct_STRIP" = x; then
14131 case $cross_compiling:$ac_tool_warned in
14133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14134 whose name does not start with the host triplet. If you think this
14135 configuration is useful to you, please write to autoconf@gnu.org." >&5
14136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14137 whose name does not start with the host triplet. If you think this
14138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14139 ac_tool_warned=yes ;;
14144 STRIP="$ac_cv_prog_STRIP"
14149 old_CFLAGS="$CFLAGS"
14151 # Set sane defaults for various variables
14152 test -z "$AR" && AR=ar
14153 test -z "$AR_FLAGS" && AR_FLAGS=cru
14154 test -z "$AS" && AS=as
14155 test -z "$CC" && CC=cc
14156 test -z "$LTCC" && LTCC=$CC
14157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14158 test -z "$DLLTOOL" && DLLTOOL=dlltool
14159 test -z "$LD" && LD=ld
14160 test -z "$LN_S" && LN_S="ln -s"
14161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14162 test -z "$NM" && NM=nm
14163 test -z "$SED" && SED=sed
14164 test -z "$OBJDUMP" && OBJDUMP=objdump
14165 test -z "$RANLIB" && RANLIB=:
14166 test -z "$STRIP" && STRIP=:
14167 test -z "$ac_objext" && ac_objext=o
14169 # Determine commands to create old-style static archives.
14170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14171 old_postinstall_cmds='chmod 644 $oldlib'
14172 old_postuninstall_cmds=
14174 if test -n "$RANLIB"; then
14177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14186 for cc_temp in $compiler""; do
14188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14197 # Only perform the check for file, if the check method requires it
14198 case $deplibs_check_method in
14200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14201 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14202 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14211 lt_save_MAGIC_CMD="$MAGIC_CMD"
14212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14214 for ac_dir in $ac_dummy; do
14216 test -z "$ac_dir" && ac_dir=.
14217 if test -f $ac_dir/${ac_tool_prefix}file; then
14218 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14219 if test -n "$file_magic_test_file"; then
14220 case $deplibs_check_method in
14222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14225 $EGREP "$file_magic_regex" > /dev/null; then
14230 *** Warning: the command libtool uses to detect shared libraries,
14231 *** $file_magic_cmd, produces output that libtool cannot recognize.
14232 *** The result is that libtool may fail to recognize shared libraries
14233 *** as such. This will affect the creation of libtool libraries that
14234 *** depend on shared libraries, but programs linked with such libtool
14235 *** libraries will work regardless of this problem. Nevertheless, you
14236 *** may want to report the problem to your system manager and/or to
14237 *** bug-libtool@gnu.org
14247 MAGIC_CMD="$lt_save_MAGIC_CMD"
14252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14253 if test -n "$MAGIC_CMD"; then
14254 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14255 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14257 { echo "$as_me:$LINENO: result: no" >&5
14258 echo "${ECHO_T}no" >&6; }
14261 if test -z "$lt_cv_path_MAGIC_CMD"; then
14262 if test -n "$ac_tool_prefix"; then
14263 { echo "$as_me:$LINENO: checking for file" >&5
14264 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14273 lt_save_MAGIC_CMD="$MAGIC_CMD"
14274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14275 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14276 for ac_dir in $ac_dummy; do
14278 test -z "$ac_dir" && ac_dir=.
14279 if test -f $ac_dir/file; then
14280 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14281 if test -n "$file_magic_test_file"; then
14282 case $deplibs_check_method in
14284 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14286 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14287 $EGREP "$file_magic_regex" > /dev/null; then
14292 *** Warning: the command libtool uses to detect shared libraries,
14293 *** $file_magic_cmd, produces output that libtool cannot recognize.
14294 *** The result is that libtool may fail to recognize shared libraries
14295 *** as such. This will affect the creation of libtool libraries that
14296 *** depend on shared libraries, but programs linked with such libtool
14297 *** libraries will work regardless of this problem. Nevertheless, you
14298 *** may want to report the problem to your system manager and/or to
14299 *** bug-libtool@gnu.org
14309 MAGIC_CMD="$lt_save_MAGIC_CMD"
14314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14315 if test -n "$MAGIC_CMD"; then
14316 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14317 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14319 { echo "$as_me:$LINENO: result: no" >&5
14320 echo "${ECHO_T}no" >&6; }
14333 enable_win32_dll=no
14335 # Check whether --enable-libtool-lock was given.
14336 if test "${enable_libtool_lock+set}" = set; then
14337 enableval=$enable_libtool_lock;
14340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14343 # Check whether --with-pic was given.
14344 if test "${with_pic+set}" = set; then
14345 withval=$with_pic; pic_mode="$withval"
14350 test -z "$pic_mode" && pic_mode=default
14352 # Use C for the default configuration in the libtool script
14356 ac_cpp='$CPP $CPPFLAGS'
14357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14362 # Source file extension for C test sources.
14365 # Object file extension for compiled C test sources.
14369 # Code to be used in simple compile tests
14370 lt_simple_compile_test_code="int some_variable = 0;\n"
14372 # Code to be used in simple link tests
14373 lt_simple_link_test_code='int main(){return(0);}\n'
14376 # If no C compiler was specified, use CC.
14379 # If no C compiler flags were specified, use CFLAGS.
14380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14382 # Allow CC to be a program name with arguments.
14386 # save warnings/boilerplate of simple test code
14387 ac_outfile=conftest.$ac_objext
14388 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14390 _lt_compiler_boilerplate=`cat conftest.err`
14393 ac_outfile=conftest.$ac_objext
14394 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14396 _lt_linker_boilerplate=`cat conftest.err`
14401 lt_prog_compiler_no_builtin_flag=
14403 if test "$GCC" = yes; then
14404 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14407 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 lt_cv_prog_compiler_rtti_exceptions=no
14413 ac_outfile=conftest.$ac_objext
14414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14415 lt_compiler_flag="-fno-rtti -fno-exceptions"
14416 # Insert the option either (1) after the last *FLAGS variable, or
14417 # (2) before a word containing "conftest.", or (3) at the end.
14418 # Note that $ac_compile itself does not contain backslashes and begins
14419 # with a dollar sign (not a hyphen), so the echo should work correctly.
14420 # The option is referenced via a variable to avoid confusing sed.
14421 lt_compile=`echo "$ac_compile" | $SED \
14422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14424 -e 's:$: $lt_compiler_flag:'`
14425 (eval echo "\"\$as_me:14425: $lt_compile\"" >&5)
14426 (eval "$lt_compile" 2>conftest.err)
14428 cat conftest.err >&5
14429 echo "$as_me:14429: \$? = $ac_status" >&5
14430 if (exit $ac_status) && test -s "$ac_outfile"; then
14431 # The compiler can only warn and ignore the option if not recognized
14432 # So say no if there are warnings other than the usual output.
14433 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14436 lt_cv_prog_compiler_rtti_exceptions=yes
14442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14446 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14453 lt_prog_compiler_wl=
14454 lt_prog_compiler_pic=
14455 lt_prog_compiler_static=
14457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14460 if test "$GCC" = yes; then
14461 lt_prog_compiler_wl='-Wl,'
14462 lt_prog_compiler_static='-static'
14466 # All AIX code is PIC.
14467 if test "$host_cpu" = ia64; then
14468 # AIX 5 now supports IA64 processor
14469 lt_prog_compiler_static='-Bstatic'
14474 # FIXME: we need at least 68020 code to build shared libraries, but
14475 # adding the `-m68020' flag to GCC prevents building anything better,
14477 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14481 # PIC is the default for these OSes.
14484 mingw* | pw32* | os2*)
14485 # This hack is so that the source file can tell whether it is being
14486 # built for inclusion in a dll (and should export symbols for example).
14487 lt_prog_compiler_pic='-DDLL_EXPORT'
14490 darwin* | rhapsody*)
14491 # PIC is the default on this platform
14492 # Common symbols not allowed in MH_DYLIB files
14493 lt_prog_compiler_pic='-fno-common'
14497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14498 # Instead, we relocate shared libraries at runtime.
14502 # Just because we use GCC doesn't mean we suddenly get shared libraries
14503 # on systems that don't support them.
14504 lt_prog_compiler_can_build_shared=no
14509 if test -d /usr/nec; then
14510 lt_prog_compiler_pic=-Kconform_pic
14515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14516 # not for PA HP-UX.
14522 lt_prog_compiler_pic='-fPIC'
14528 lt_prog_compiler_pic='-fPIC'
14532 # PORTME Check for flag to pass linker flags through the system compiler.
14535 lt_prog_compiler_wl='-Wl,'
14536 if test "$host_cpu" = ia64; then
14537 # AIX 5 now supports IA64 processor
14538 lt_prog_compiler_static='-Bstatic'
14540 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14544 # PIC is the default on this platform
14545 # Common symbols not allowed in MH_DYLIB files
14546 case $cc_basename in
14548 lt_prog_compiler_pic='-qnocommon'
14549 lt_prog_compiler_wl='-Wl,'
14554 mingw* | pw32* | os2*)
14555 # This hack is so that the source file can tell whether it is being
14556 # built for inclusion in a dll (and should export symbols for example).
14557 lt_prog_compiler_pic='-DDLL_EXPORT'
14560 hpux9* | hpux10* | hpux11*)
14561 lt_prog_compiler_wl='-Wl,'
14562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14563 # not for PA HP-UX.
14569 lt_prog_compiler_pic='+Z'
14572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14573 lt_prog_compiler_static='${wl}-a ${wl}archive'
14576 irix5* | irix6* | nonstopux*)
14577 lt_prog_compiler_wl='-Wl,'
14578 # PIC (with -KPIC) is the default.
14579 lt_prog_compiler_static='-non_shared'
14583 lt_prog_compiler_pic='-KPIC'
14584 lt_prog_compiler_static='-Bstatic'
14588 case $cc_basename in
14590 lt_prog_compiler_wl='-Wl,'
14591 lt_prog_compiler_pic='-KPIC'
14592 lt_prog_compiler_static='-static'
14594 pgcc* | pgf77* | pgf90* | pgf95*)
14595 # Portland Group compilers (*not* the Pentium gcc compiler,
14596 # which looks to be a dead project)
14597 lt_prog_compiler_wl='-Wl,'
14598 lt_prog_compiler_pic='-fpic'
14599 lt_prog_compiler_static='-Bstatic'
14602 lt_prog_compiler_wl='-Wl,'
14603 # All Alpha code is PIC.
14604 lt_prog_compiler_static='-non_shared'
14609 osf3* | osf4* | osf5*)
14610 lt_prog_compiler_wl='-Wl,'
14611 # All OSF/1 code is PIC.
14612 lt_prog_compiler_static='-non_shared'
14616 lt_prog_compiler_pic='-KPIC'
14617 lt_prog_compiler_static='-Bstatic'
14618 case $cc_basename in
14619 f77* | f90* | f95*)
14620 lt_prog_compiler_wl='-Qoption ld ';;
14622 lt_prog_compiler_wl='-Wl,';;
14627 lt_prog_compiler_wl='-Qoption ld '
14628 lt_prog_compiler_pic='-PIC'
14629 lt_prog_compiler_static='-Bstatic'
14632 sysv4 | sysv4.2uw2* | sysv4.3*)
14633 lt_prog_compiler_wl='-Wl,'
14634 lt_prog_compiler_pic='-KPIC'
14635 lt_prog_compiler_static='-Bstatic'
14639 if test -d /usr/nec ;then
14640 lt_prog_compiler_pic='-Kconform_pic'
14641 lt_prog_compiler_static='-Bstatic'
14645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14646 lt_prog_compiler_wl='-Wl,'
14647 lt_prog_compiler_pic='-KPIC'
14648 lt_prog_compiler_static='-Bstatic'
14652 lt_prog_compiler_wl='-Wl,'
14653 lt_prog_compiler_can_build_shared=no
14657 lt_prog_compiler_pic='-pic'
14658 lt_prog_compiler_static='-Bstatic'
14662 lt_prog_compiler_can_build_shared=no
14667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14668 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14671 # Check to make sure the PIC flag actually works.
14673 if test -n "$lt_prog_compiler_pic"; then
14675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14677 if test "${lt_prog_compiler_pic_works+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 lt_prog_compiler_pic_works=no
14681 ac_outfile=conftest.$ac_objext
14682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14684 # Insert the option either (1) after the last *FLAGS variable, or
14685 # (2) before a word containing "conftest.", or (3) at the end.
14686 # Note that $ac_compile itself does not contain backslashes and begins
14687 # with a dollar sign (not a hyphen), so the echo should work correctly.
14688 # The option is referenced via a variable to avoid confusing sed.
14689 lt_compile=`echo "$ac_compile" | $SED \
14690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14692 -e 's:$: $lt_compiler_flag:'`
14693 (eval echo "\"\$as_me:14693: $lt_compile\"" >&5)
14694 (eval "$lt_compile" 2>conftest.err)
14696 cat conftest.err >&5
14697 echo "$as_me:14697: \$? = $ac_status" >&5
14698 if (exit $ac_status) && test -s "$ac_outfile"; then
14699 # The compiler can only warn and ignore the option if not recognized
14700 # So say no if there are warnings other than the usual output.
14701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14704 lt_prog_compiler_pic_works=yes
14710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14711 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14713 if test x"$lt_prog_compiler_pic_works" = xyes; then
14714 case $lt_prog_compiler_pic in
14716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14719 lt_prog_compiler_pic=
14720 lt_prog_compiler_can_build_shared=no
14725 # For platforms which do not support PIC, -DPIC is meaningless:
14727 lt_prog_compiler_pic=
14730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14735 # Check to make sure the static flag actually works.
14737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14740 if test "${lt_prog_compiler_static_works+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 lt_prog_compiler_static_works=no
14744 save_LDFLAGS="$LDFLAGS"
14745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14746 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14748 # The linker can only warn and ignore the option if not recognized
14749 # So say no if there are warnings
14750 if test -s conftest.err; then
14751 # Append any errors to the config.log.
14752 cat conftest.err 1>&5
14753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14755 if diff conftest.exp conftest.er2 >/dev/null; then
14756 lt_prog_compiler_static_works=yes
14759 lt_prog_compiler_static_works=yes
14763 LDFLAGS="$save_LDFLAGS"
14766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14767 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14769 if test x"$lt_prog_compiler_static_works" = xyes; then
14772 lt_prog_compiler_static=
14776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 lt_cv_prog_compiler_c_o=no
14782 $rm -r conftest 2>/dev/null
14786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14788 lt_compiler_flag="-o out/conftest2.$ac_objext"
14789 # Insert the option either (1) after the last *FLAGS variable, or
14790 # (2) before a word containing "conftest.", or (3) at the end.
14791 # Note that $ac_compile itself does not contain backslashes and begins
14792 # with a dollar sign (not a hyphen), so the echo should work correctly.
14793 lt_compile=`echo "$ac_compile" | $SED \
14794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14796 -e 's:$: $lt_compiler_flag:'`
14797 (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14798 (eval "$lt_compile" 2>out/conftest.err)
14800 cat out/conftest.err >&5
14801 echo "$as_me:14801: \$? = $ac_status" >&5
14802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14804 # The compiler can only warn and ignore the option if not recognized
14805 # So say no if there are warnings
14806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14809 lt_cv_prog_compiler_c_o=yes
14814 # SGI C++ compiler will create directory out/ii_files/ for
14815 # template instantiation
14816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14817 $rm out/* && rmdir out
14823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14827 hard_links="nottested"
14828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14829 # do not overwrite the value of need_locks provided by the user
14830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14836 ln conftest.a conftest.b 2>&5 || hard_links=no
14837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14838 { echo "$as_me:$LINENO: result: $hard_links" >&5
14839 echo "${ECHO_T}$hard_links" >&6; }
14840 if test "$hard_links" = no; then
14841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14853 allow_undefined_flag=
14854 enable_shared_with_static_runtimes=no
14856 archive_expsym_cmds=
14857 old_archive_From_new_cmds=
14858 old_archive_from_expsyms_cmds=
14859 export_dynamic_flag_spec=
14860 whole_archive_flag_spec=
14861 thread_safe_flag_spec=
14862 hardcode_libdir_flag_spec=
14863 hardcode_libdir_flag_spec_ld=
14864 hardcode_libdir_separator=
14866 hardcode_minus_L=no
14867 hardcode_shlibpath_var=unsupported
14868 link_all_deplibs=unknown
14869 hardcode_automatic=no
14871 module_expsym_cmds=
14872 always_export_symbols=no
14873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14874 # include_expsyms should be a list of space-separated symbols to be *always*
14875 # included in the symbol list
14877 # exclude_expsyms can be an extended regexp of symbols to exclude
14878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14880 # as well as any symbol that contains `d'.
14881 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14883 # platforms (ab)use it in PIC code, but their linkers get confused if
14884 # the symbol is explicitly referenced. Since portable code cannot
14885 # rely on this symbol name, it's probably fine to never include it in
14886 # preloaded symbol tables.
14887 extract_expsyms_cmds=
14888 # Just being paranoid about ensuring that cc_basename is set.
14889 for cc_temp in $compiler""; do
14891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14900 cygwin* | mingw* | pw32*)
14901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14902 # When not using gcc, we currently assume that we are using
14903 # Microsoft Visual C++.
14904 if test "$GCC" != yes; then
14909 # we just hope/assume this is gcc and not c89 (= MSVC++)
14918 if test "$with_gnu_ld" = yes; then
14919 # If archive_cmds runs LD, not CC, wlarc should be empty
14922 # Set some defaults for GNU ld with shared library support. These
14923 # are reset later if shared libraries are not supported. Putting them
14924 # here allows them to be overridden if necessary.
14925 runpath_var=LD_RUN_PATH
14926 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14927 export_dynamic_flag_spec='${wl}--export-dynamic'
14928 # ancient GNU ld didn't support --whole-archive et. al.
14929 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14930 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14932 whole_archive_flag_spec=
14934 supports_anon_versioning=no
14935 case `$LD -v 2>/dev/null` in
14936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14939 *\ 2.11.*) ;; # other 2.11 versions
14940 *) supports_anon_versioning=yes ;;
14943 # See if GNU ld supports shared libraries.
14945 aix3* | aix4* | aix5*)
14946 # On AIX/PPC, the GNU linker is very broken
14947 if test "$host_cpu" != ia64; then
14951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14952 *** to be unable to reliably create shared libraries on AIX.
14953 *** Therefore, libtool is disabling shared libraries support. If you
14954 *** really care for shared libraries, you may want to modify your PATH
14955 *** so that a non-GNU linker is found, and then restart.
14962 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)'
14963 hardcode_libdir_flag_spec='-L$libdir'
14964 hardcode_minus_L=yes
14966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14967 # that the semantics of dynamic libraries on AmigaOS, at least up
14968 # to version 4, is to share data among multiple programs linked
14969 # with the same dynamic library. Since this doesn't match the
14970 # behavior of shared libraries on other platforms, we can't use
14976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14977 allow_undefined_flag=unsupported
14978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14979 # support --undefined. This deserves some investigation. FIXME
14980 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986 cygwin* | mingw* | pw32*)
14987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14988 # as there is no search path for DLLs.
14989 hardcode_libdir_flag_spec='-L$libdir'
14990 allow_undefined_flag=unsupported
14991 always_export_symbols=no
14992 enable_shared_with_static_runtimes=yes
14993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14997 # If the export-symbols file already is a .def file (1st line
14998 # is EXPORTS), use it as is; otherwise, prepend...
14999 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15000 cp $export_symbols $output_objdir/$soname.def;
15002 echo EXPORTS > $output_objdir/$soname.def;
15003 cat $export_symbols >> $output_objdir/$soname.def;
15005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15013 hardcode_shlibpath_var=no
15014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15015 export_dynamic_flag_spec='${wl}-E'
15016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15017 # Instead, shared libraries are loaded at an image base (0x10000000 by
15018 # default) and relocated if they conflict, which is a slow very memory
15019 # consuming and fragmenting process. To avoid this, we pick a random,
15020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15023 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'
15027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15029 case $cc_basename,$host_cpu in
15030 pgcc*) # Portland Group C compiler
15031 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'
15032 tmp_addflag=' $pic_flag'
15034 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15035 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'
15036 tmp_addflag=' $pic_flag -Mnomain' ;;
15037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15038 tmp_addflag=' -i_dynamic' ;;
15039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15040 tmp_addflag=' -i_dynamic -nofor_main' ;;
15041 ifc* | ifort*) # Intel Fortran compiler
15042 tmp_addflag=' -nofor_main' ;;
15044 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046 if test $supports_anon_versioning = yes; then
15047 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15049 $echo "local: *; };" >> $output_objdir/$libname.ver~
15050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15068 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15073 *** create shared libraries on Solaris systems. Therefore, libtool
15074 *** is disabling shared libraries support. We urge you to upgrade GNU
15075 *** binutils to release 2.9.1 or newer. Another option is to modify
15076 *** your PATH or compiler configuration so that the native linker is
15077 *** used, and then restart.
15080 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15089 case `$LD -v 2>&1` in
15090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15095 *** reliably create shared libraries on SCO systems. Therefore, libtool
15096 *** is disabling shared libraries support. We urge you to upgrade GNU
15097 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15098 *** your PATH or compiler configuration so that the native linker is
15099 *** used, and then restart.
15104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15116 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15118 hardcode_direct=yes
15119 hardcode_shlibpath_var=no
15123 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15132 if test "$ld_shlibs" = no; then
15134 hardcode_libdir_flag_spec=
15135 export_dynamic_flag_spec=
15136 whole_archive_flag_spec=
15139 # PORTME fill in a description of your system's linker (not GNU ld)
15142 allow_undefined_flag=unsupported
15143 always_export_symbols=yes
15144 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'
15145 # Note: this linker hardcodes the directories in LIBPATH if there
15146 # are no directories specified by -L.
15147 hardcode_minus_L=yes
15148 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15149 # Neither direct hardcoding nor static linking is supported with a
15151 hardcode_direct=unsupported
15156 if test "$host_cpu" = ia64; then
15157 # On IA64, the linker does run time linking by default, so we don't
15158 # have to do anything special.
15159 aix_use_runtimelinking=no
15160 exp_sym_flag='-Bexport'
15163 # If we're using GNU nm, then we don't want the "-C" option.
15164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15166 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'
15168 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'
15170 aix_use_runtimelinking=no
15172 # Test if we are trying to use run time linking or normal
15173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15174 # need to do runtime linking.
15175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15176 for ld_flag in $LDFLAGS; do
15177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15178 aix_use_runtimelinking=yes
15185 exp_sym_flag='-bexport'
15186 no_entry_flag='-bnoentry'
15189 # When large executables or shared objects are built, AIX ld can
15190 # have problems creating the table of contents. If linking a library
15191 # or program results in "error TOC overflow" add -mminimal-toc to
15192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15196 hardcode_direct=yes
15197 hardcode_libdir_separator=':'
15198 link_all_deplibs=yes
15200 if test "$GCC" = yes; then
15201 case $host_os in aix4.[012]|aix4.[012].*)
15202 # We only want to do this on AIX 4.2 and lower, the check
15203 # below for broken collect2 doesn't work under 4.3+
15204 collect2name=`${CC} -print-prog-name=collect2`
15205 if test -f "$collect2name" && \
15206 strings "$collect2name" | grep resolve_lib_name >/dev/null
15208 # We have reworked collect2
15209 hardcode_direct=yes
15211 # We have old collect2
15212 hardcode_direct=unsupported
15213 # It fails to find uninstalled libraries when the uninstalled
15214 # path is not listed in the libpath. Setting hardcode_minus_L
15215 # to unsupported forces relinking
15216 hardcode_minus_L=yes
15217 hardcode_libdir_flag_spec='-L$libdir'
15218 hardcode_libdir_separator=
15222 shared_flag='-shared'
15223 if test "$aix_use_runtimelinking" = yes; then
15224 shared_flag="$shared_flag "'${wl}-G'
15228 if test "$host_cpu" = ia64; then
15229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15230 # chokes on -Wl,-G. The following line is correct:
15233 if test "$aix_use_runtimelinking" = yes; then
15234 shared_flag='${wl}-G'
15236 shared_flag='${wl}-bM:SRE'
15241 # It seems that -bexpall does not export symbols beginning with
15242 # underscore (_), so it is better to generate a list of symbols to export.
15243 always_export_symbols=yes
15244 if test "$aix_use_runtimelinking" = yes; then
15245 # Warning - without using the other runtime loading flags (-brtl),
15246 # -berok will link without error, but may produce a broken library.
15247 allow_undefined_flag='-berok'
15248 # Determine the default libpath from the value encoded in an empty executable.
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_try") 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest$ac_exeext'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15301 # Check for a 64-bit object if we didn't find anything.
15302 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; }
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15311 rm -f core conftest.err conftest.$ac_objext \
15312 conftest$ac_exeext conftest.$ac_ext
15313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15316 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"
15318 if test "$host_cpu" = ia64; then
15319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15320 allow_undefined_flag="-z nodefs"
15321 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"
15323 # Determine the default libpath from the value encoded in an empty executable.
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15339 rm -f conftest.$ac_objext conftest$ac_exeext
15340 if { (ac_try="$ac_link"
15341 case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_link") 2>conftest.er1
15348 grep -v '^ *+' conftest.er1 >conftest.err
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354 { (case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_try") 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; } &&
15363 { ac_try='test -s conftest$ac_exeext'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15376 # Check for a 64-bit object if we didn't find anything.
15377 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; }
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15386 rm -f core conftest.err conftest.$ac_objext \
15387 conftest$ac_exeext conftest.$ac_ext
15388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15391 # Warning - without using the other run time loading flags,
15392 # -berok will link without error, but may produce a broken library.
15393 no_undefined_flag=' ${wl}-bernotok'
15394 allow_undefined_flag=' ${wl}-berok'
15395 # Exported symbols can be pulled into shared objects from archives
15396 whole_archive_flag_spec='$convenience'
15397 archive_cmds_need_lc=yes
15398 # This is similar to how AIX traditionally builds its shared libraries.
15399 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'
15405 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)'
15406 hardcode_libdir_flag_spec='-L$libdir'
15407 hardcode_minus_L=yes
15408 # see comment about different semantics on the GNU ld section
15413 export_dynamic_flag_spec=-rdynamic
15416 cygwin* | mingw* | pw32*)
15417 # When not using gcc, we currently assume that we are using
15418 # Microsoft Visual C++.
15419 # hardcode_libdir_flag_spec is actually meaningless, as there is
15420 # no search path for DLLs.
15421 hardcode_libdir_flag_spec=' '
15422 allow_undefined_flag=unsupported
15423 # Tell ltmain to make .lib files, not .a files.
15425 # Tell ltmain to make .dll files, not .so files.
15427 # FIXME: Setting linknames here is a bad hack.
15428 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15429 # The linker will automatically build a .lib file if we build a DLL.
15430 old_archive_From_new_cmds='true'
15431 # FIXME: Should let the user specify the lib program.
15432 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15433 fix_srcfile_path='`cygpath -w "$srcfile"`'
15434 enable_shared_with_static_runtimes=yes
15437 darwin* | rhapsody*)
15439 rhapsody* | darwin1.[012])
15440 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15443 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15444 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15446 case ${MACOSX_DEPLOYMENT_TARGET} in
15448 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15451 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15457 archive_cmds_need_lc=no
15459 hardcode_automatic=yes
15460 hardcode_shlibpath_var=unsupported
15461 whole_archive_flag_spec=''
15462 link_all_deplibs=yes
15463 if test "$GCC" = yes ; then
15464 output_verbose_link_cmd='echo'
15465 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15466 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15467 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15468 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}'
15469 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}'
15471 case $cc_basename in
15473 output_verbose_link_cmd='echo'
15474 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15475 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15477 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}'
15478 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}'
15488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 hardcode_libdir_flag_spec='-L$libdir'
15490 hardcode_shlibpath_var=no
15497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15498 # support. Future versions do this automatically, but an explicit c++rt0.o
15499 # does not break anything, and helps significantly (at the cost of a little
15502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15503 hardcode_libdir_flag_spec='-R$libdir'
15504 hardcode_direct=yes
15505 hardcode_shlibpath_var=no
15508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15511 hardcode_direct=yes
15512 hardcode_minus_L=yes
15513 hardcode_shlibpath_var=no
15516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15517 freebsd* | kfreebsd*-gnu | dragonfly*)
15518 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15519 hardcode_libdir_flag_spec='-R$libdir'
15520 hardcode_direct=yes
15521 hardcode_shlibpath_var=no
15525 if test "$GCC" = yes; then
15526 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'
15528 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'
15530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15531 hardcode_libdir_separator=:
15532 hardcode_direct=yes
15534 # hardcode_minus_L: Not really in the search PATH,
15535 # but as the default location of the library.
15536 hardcode_minus_L=yes
15537 export_dynamic_flag_spec='${wl}-E'
15541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15542 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15544 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15546 if test "$with_gnu_ld" = no; then
15547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15548 hardcode_libdir_separator=:
15550 hardcode_direct=yes
15551 export_dynamic_flag_spec='${wl}-E'
15553 # hardcode_minus_L: Not really in the search PATH,
15554 # but as the default location of the library.
15555 hardcode_minus_L=yes
15560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15563 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15566 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15569 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15575 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15578 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15581 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585 if test "$with_gnu_ld" = no; then
15586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15587 hardcode_libdir_separator=:
15591 hardcode_libdir_flag_spec_ld='+b $libdir'
15593 hardcode_shlibpath_var=no
15596 hardcode_direct=yes
15597 export_dynamic_flag_spec='${wl}-E'
15599 # hardcode_minus_L: Not really in the search PATH,
15600 # but as the default location of the library.
15601 hardcode_minus_L=yes
15607 irix5* | irix6* | nonstopux*)
15608 if test "$GCC" = yes; then
15609 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'
15611 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'
15612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15615 hardcode_libdir_separator=:
15616 link_all_deplibs=yes
15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15625 hardcode_libdir_flag_spec='-R$libdir'
15626 hardcode_direct=yes
15627 hardcode_shlibpath_var=no
15631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632 hardcode_direct=yes
15633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15634 hardcode_libdir_separator=:
15635 hardcode_shlibpath_var=no
15639 hardcode_direct=yes
15640 hardcode_shlibpath_var=no
15641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15645 export_dynamic_flag_spec='${wl}-E'
15648 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15650 hardcode_libdir_flag_spec='-R$libdir'
15653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15661 hardcode_libdir_flag_spec='-L$libdir'
15662 hardcode_minus_L=yes
15663 allow_undefined_flag=unsupported
15664 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'
15665 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15669 if test "$GCC" = yes; then
15670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15671 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'
15673 allow_undefined_flag=' -expect_unresolved \*'
15674 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'
15676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15677 hardcode_libdir_separator=:
15680 osf4* | osf5*) # as osf3* with the addition of -msym flag
15681 if test "$GCC" = yes; then
15682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15683 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'
15684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686 allow_undefined_flag=' -expect_unresolved \*'
15687 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'
15688 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15689 $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'
15691 # Both c and cxx compiler support -rpath directly
15692 hardcode_libdir_flag_spec='-rpath $libdir'
15694 hardcode_libdir_separator=:
15698 no_undefined_flag=' -z text'
15699 if test "$GCC" = yes; then
15701 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15706 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15710 hardcode_libdir_flag_spec='-R$libdir'
15711 hardcode_shlibpath_var=no
15713 solaris2.[0-5] | solaris2.[0-5].*) ;;
15715 # The compiler driver will combine linker options so we
15716 # cannot just pass the convience library names through
15717 # without $wl, iff we do not link with $LD.
15718 # Luckily, gcc supports the same syntax we need for Sun Studio.
15719 # Supported since Solaris 2.6 (maybe 2.5.1?)
15722 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15724 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' ;;
15727 link_all_deplibs=yes
15731 if test "x$host_vendor" = xsequent; then
15732 # Use $CC to link under sequent, because it throws in some extra .o
15733 # files that make .init and .fini sections work.
15734 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15736 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15738 hardcode_libdir_flag_spec='-L$libdir'
15739 hardcode_direct=yes
15740 hardcode_minus_L=yes
15741 hardcode_shlibpath_var=no
15745 case $host_vendor in
15747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_direct=yes # is this really true???
15751 ## LD is ld it makes a PLAMLIB
15752 ## CC just makes a GrossModule.
15753 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15754 reload_cmds='$CC -r -o $output$reload_objs'
15758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15762 runpath_var='LD_RUN_PATH'
15763 hardcode_shlibpath_var=no
15767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_shlibpath_var=no
15769 export_dynamic_flag_spec='-Bexport'
15773 if test -d /usr/nec; then
15774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775 hardcode_shlibpath_var=no
15776 runpath_var=LD_RUN_PATH
15777 hardcode_runpath_var=yes
15782 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15783 no_undefined_flag='${wl}-z,text'
15784 archive_cmds_need_lc=no
15785 hardcode_shlibpath_var=no
15786 runpath_var='LD_RUN_PATH'
15788 if test "$GCC" = yes; then
15789 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15790 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15792 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15793 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15797 sysv5* | sco3.2v5* | sco5v6*)
15798 # Note: We can NOT use -z defs as we might desire, because we do not
15799 # link with -lc, and that would cause any symbols used from libc to
15800 # always be unresolved, which means just about no library would
15801 # ever link correctly. If we're not using GNU ld we use -z text
15802 # though, which does catch some bad symbols but isn't as heavy-handed
15804 no_undefined_flag='${wl}-z,text'
15805 allow_undefined_flag='${wl}-z,nodefs'
15806 archive_cmds_need_lc=no
15807 hardcode_shlibpath_var=no
15808 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15809 hardcode_libdir_separator=':'
15810 link_all_deplibs=yes
15811 export_dynamic_flag_spec='${wl}-Bexport'
15812 runpath_var='LD_RUN_PATH'
15814 if test "$GCC" = yes; then
15815 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15816 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15818 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_libdir_flag_spec='-L$libdir'
15826 hardcode_shlibpath_var=no
15835 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15836 echo "${ECHO_T}$ld_shlibs" >&6; }
15837 test "$ld_shlibs" = no && can_build_shared=no
15840 # Do we need to explicitly link libc?
15842 case "x$archive_cmds_need_lc" in
15844 # Assume -lc should be added
15845 archive_cmds_need_lc=yes
15847 if test "$enable_shared" = yes && test "$GCC" = yes; then
15848 case $archive_cmds in
15850 # FIXME: we may have to deal with multi-command sequences.
15853 # Test whether the compiler implicitly links with -lc since on some
15854 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15855 # to ld, don't add -lc before -lgcc.
15856 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15857 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } 2>conftest.err; then
15868 libobjs=conftest.$ac_objext
15870 wl=$lt_prog_compiler_wl
15871 pic_flag=$lt_prog_compiler_pic
15877 lt_save_allow_undefined_flag=$allow_undefined_flag
15878 allow_undefined_flag=
15879 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15880 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }
15885 archive_cmds_need_lc=no
15887 archive_cmds_need_lc=yes
15889 allow_undefined_flag=$lt_save_allow_undefined_flag
15891 cat conftest.err 1>&5
15894 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15895 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15902 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15903 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15904 library_names_spec=
15905 libname_spec='lib$name'
15909 postuninstall_cmds=
15913 shlibpath_overrides_runpath=unknown
15915 dynamic_linker="$host_os ld.so"
15916 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15917 if test "$GCC" = yes; then
15918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15919 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15920 # if the path contains ";" then we assume it to be the separator
15921 # otherwise default to the standard path separator (i.e. ":") - it is
15922 # assumed that no part of a normal pathname contains ";" but that should
15923 # okay in the real world where ";" in dirpaths is itself problematic.
15924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15929 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15931 need_lib_prefix=unknown
15932 hardcode_into_libs=no
15934 # when you set need_version to no, make sure it does not cause -set_version
15935 # flags to be left without arguments
15936 need_version=unknown
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15942 shlibpath_var=LIBPATH
15944 # AIX 3 has no versioning support, so we append a major version to the name.
15945 soname_spec='${libname}${release}${shared_ext}$major'
15952 hardcode_into_libs=yes
15953 if test "$host_cpu" = ia64; then
15954 # AIX 5 supports IA64
15955 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15956 shlibpath_var=LD_LIBRARY_PATH
15958 # With GCC up to 2.95.x, collect2 would create an import file
15959 # for dependence libraries. The import file would start with
15960 # the line `#! .'. This would cause the generated library to
15961 # depend on `.', always an invalid library. This was fixed in
15962 # development snapshots of GCC prior to 3.0.
15964 aix4 | aix4.[01] | aix4.[01].*)
15965 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15967 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15970 can_build_shared=no
15974 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15975 # soname into executable. Probably we can add versioning support to
15976 # collect2, so additional links can be useful in future.
15977 if test "$aix_use_runtimelinking" = yes; then
15978 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15979 # instead of lib<name>.a to let people know that these are not
15980 # typical AIX shared libraries.
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983 # We preserve .a as extension for shared libraries through AIX4.2
15984 # and later when we are not doing run time linking.
15985 library_names_spec='${libname}${release}.a $libname.a'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15988 shlibpath_var=LIBPATH
15993 library_names_spec='$libname.ixlibrary $libname.a'
15994 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15995 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'
15999 library_names_spec='${libname}${shared_ext}'
16000 dynamic_linker="$host_os ld.so"
16001 shlibpath_var=LIBRARY_PATH
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16012 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16013 # the default ld.so.conf also contains /usr/contrib/lib and
16014 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16015 # libtool to hard-code these into programs
16018 cygwin* | mingw* | pw32*)
16019 version_type=windows
16024 case $GCC,$host_os in
16025 yes,cygwin* | yes,mingw* | yes,pw32*)
16026 library_names_spec='$libname.dll.a'
16027 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16028 postinstall_cmds='base_file=`basename \${file}`~
16029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16030 dldir=$destdir/`dirname \$dlpath`~
16031 test -d \$dldir || mkdir -p \$dldir~
16032 $install_prog $dir/$dlname \$dldir/$dlname~
16033 chmod a+x \$dldir/$dlname'
16034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16035 dlpath=$dir/\$dldll~
16037 shlibpath_overrides_runpath=yes
16041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16042 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16043 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16046 # MinGW DLLs use traditional 'lib' prefix
16047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16048 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16049 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16050 # It is most probably a Windows format PATH printed by
16051 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16052 # path with ; separators, and with drive letters. We can handle the
16053 # drive letters (cygwin fileutils understands them), so leave them,
16054 # especially as we might pass files found there to a mingw objdump,
16055 # which wouldn't understand a cygwinified path. Ahh.
16056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16062 # pw32 DLLs use 'pw' prefix rather than 'lib'
16063 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16069 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16072 dynamic_linker='Win32 ld.exe'
16073 # FIXME: first we should search . and the directory the executable is in
16077 darwin* | rhapsody*)
16078 dynamic_linker="$host_os dyld"
16079 version_type=darwin
16082 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16083 soname_spec='${libname}${release}${major}$shared_ext'
16084 shlibpath_overrides_runpath=yes
16085 shlibpath_var=DYLD_LIBRARY_PATH
16086 shrext_cmds='.dylib'
16087 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16088 if test "$GCC" = yes; then
16089 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"`
16091 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16102 shlibpath_var=LD_LIBRARY_PATH
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=no
16117 hardcode_into_libs=yes
16118 dynamic_linker='GNU ld.so'
16121 freebsd* | dragonfly*)
16122 # DragonFly does not have aout. When/if they implement a new
16123 # versioning mechanism, adjust this.
16124 if test -x /usr/bin/objformat; then
16125 objformat=`/usr/bin/objformat`
16128 freebsd[123]*) objformat=aout ;;
16129 *) objformat=elf ;;
16132 version_type=freebsd-$objformat
16133 case $version_type in
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16144 shlibpath_var=LD_LIBRARY_PATH
16147 shlibpath_overrides_runpath=yes
16149 freebsd3.[01]* | freebsdelf3.[01]*)
16150 shlibpath_overrides_runpath=yes
16151 hardcode_into_libs=yes
16153 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16154 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16155 shlibpath_overrides_runpath=no
16156 hardcode_into_libs=yes
16158 freebsd*) # from 4.6 on
16159 shlibpath_overrides_runpath=yes
16160 hardcode_into_libs=yes
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 hardcode_into_libs=yes
16175 hpux9* | hpux10* | hpux11*)
16176 # Give a soname corresponding to the major version so that dld.sl refuses to
16177 # link against other versions.
16184 hardcode_into_libs=yes
16185 dynamic_linker="$host_os dld.so"
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 if test "X$HPUX_IA64_MODE" = X32; then
16191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16199 hardcode_into_libs=yes
16200 dynamic_linker="$host_os dld.sl"
16201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16210 dynamic_linker="$host_os dld.sl"
16211 shlibpath_var=SHLIB_PATH
16212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16217 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16218 postinstall_cmds='chmod 555 $lib'
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=no
16230 hardcode_into_libs=yes
16233 irix5* | irix6* | nonstopux*)
16235 nonstopux*) version_type=nonstopux ;;
16237 if test "$lt_cv_prog_gnu_ld" = yes; then
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16248 irix5* | nonstopux*)
16249 libsuff= shlibsuff=
16252 case $LD in # libtool.m4 will add one of these switches to LD
16253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16254 libsuff= shlibsuff= libmagic=32-bit;;
16255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16256 libsuff=32 shlibsuff=N32 libmagic=N32;;
16257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16259 *) libsuff= shlibsuff= libmagic=never-match;;
16263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16264 shlibpath_overrides_runpath=no
16265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16267 hardcode_into_libs=yes
16270 # No shared lib support for Linux oldld, aout, or coff.
16271 linux*oldld* | linux*aout* | linux*coff*)
16275 # This must be Linux ELF.
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 shlibpath_overrides_runpath=no
16285 # This implies no fast_install, which is unacceptable.
16286 # Some rework will be needed to allow for fast_install
16287 # before this can be enabled.
16288 hardcode_into_libs=yes
16290 # Append ld.so.conf contents to the search path
16291 if test -f /etc/ld.so.conf; then
16292 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' ' '`
16293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16296 # We used to test for /lib/ld.so.1 and disable shared libraries on
16297 # powerpc, because MkLinux only supported shared libraries with the
16298 # GNU dynamic linker. Since this was broken with cross compilers,
16299 # most powerpc-linux boxes support dynamic linking these days and
16300 # people can always --disable-shared, the test was removed, and we
16301 # assume the GNU/Linux dynamic linker is in use.
16302 dynamic_linker='GNU/Linux ld.so'
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 shlibpath_overrides_runpath=no
16313 hardcode_into_libs=yes
16314 dynamic_linker='GNU ld.so'
16321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16324 dynamic_linker='NetBSD (a.out) ld.so'
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 dynamic_linker='NetBSD ld.elf_so'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16332 hardcode_into_libs=yes
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16354 sys_lib_dlsearch_path_spec="/usr/lib"
16356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16359 *) need_version=no ;;
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16366 openbsd2.[89] | openbsd2.[89].*)
16367 shlibpath_overrides_runpath=no
16370 shlibpath_overrides_runpath=yes
16374 shlibpath_overrides_runpath=yes
16379 libname_spec='$name'
16382 library_names_spec='$libname${shared_ext} $libname.a'
16383 dynamic_linker='OS/2 ld.exe'
16384 shlibpath_var=LIBPATH
16387 osf3* | osf4* | osf5*)
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 hardcode_into_libs=yes
16407 # ldd complains unless libraries are executable
16408 postinstall_cmds='chmod +x $lib'
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=yes
16417 if test "$with_gnu_ld" = yes; then
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 case $host_vendor in
16430 shlibpath_overrides_runpath=no
16432 export_dynamic_flag_spec='${wl}-Blargedynsym'
16433 runpath_var=LD_RUN_PATH
16441 shlibpath_overrides_runpath=no
16442 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16448 if test -d /usr/nec ;then
16450 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16451 soname_spec='$libname${shared_ext}.$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16457 version_type=freebsd-elf
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 hardcode_into_libs=yes
16464 if test "$with_gnu_ld" = yes; then
16465 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16466 shlibpath_overrides_runpath=no
16468 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16469 shlibpath_overrides_runpath=yes
16472 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16476 sys_lib_dlsearch_path_spec='/usr/lib'
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LD_LIBRARY_PATH
16490 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16491 echo "${ECHO_T}$dynamic_linker" >&6; }
16492 test "$dynamic_linker" = no && can_build_shared=no
16494 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16495 if test "$GCC" = yes; then
16496 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16499 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16500 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16502 if test -n "$hardcode_libdir_flag_spec" || \
16503 test -n "$runpath_var" || \
16504 test "X$hardcode_automatic" = "Xyes" ; then
16506 # We can hardcode non-existant directories.
16507 if test "$hardcode_direct" != no &&
16508 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16509 # have to relink, otherwise we might link with an installed library
16510 # when we should be linking with a yet-to-be-installed one
16511 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16512 test "$hardcode_minus_L" != no; then
16513 # Linking always hardcodes the temporary library directory.
16514 hardcode_action=relink
16516 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16517 hardcode_action=immediate
16520 # We cannot hardcode anything, or else we can only hardcode existing
16522 hardcode_action=unsupported
16524 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16525 echo "${ECHO_T}$hardcode_action" >&6; }
16527 if test "$hardcode_action" = relink; then
16528 # Fast installation is not supported
16529 enable_fast_install=no
16530 elif test "$shlibpath_overrides_runpath" = yes ||
16531 test "$enable_shared" = no; then
16532 # Fast installation is not necessary
16533 enable_fast_install=needless
16538 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16539 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16540 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16541 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16542 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16543 { echo "$as_me:$LINENO: result: yes" >&5
16544 echo "${ECHO_T}yes" >&6; }
16546 # FIXME - insert some real tests, host_os isn't really good enough
16549 if test -n "$STRIP" ; then
16550 striplib="$STRIP -x"
16551 { echo "$as_me:$LINENO: result: yes" >&5
16552 echo "${ECHO_T}yes" >&6; }
16554 { echo "$as_me:$LINENO: result: no" >&5
16555 echo "${ECHO_T}no" >&6; }
16559 { echo "$as_me:$LINENO: result: no" >&5
16560 echo "${ECHO_T}no" >&6; }
16565 if test "x$enable_dlopen" != xyes; then
16566 enable_dlopen=unknown
16567 enable_dlopen_self=unknown
16568 enable_dlopen_self_static=unknown
16575 lt_cv_dlopen="load_add_on"
16577 lt_cv_dlopen_self=yes
16581 lt_cv_dlopen="LoadLibrary"
16586 lt_cv_dlopen="dlopen"
16591 # if libdl is installed we need to link against it
16592 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 ac_check_lib_save_LIBS=$LIBS
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16606 /* Override any GCC internal prototype to avoid an error.
16607 Use char because int might match the return type of a GCC
16608 builtin and then its argument prototype would still apply. */
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16636 { (case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_try") 2>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest$ac_exeext'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_lib_dl_dlopen=yes
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_cv_lib_dl_dlopen=no
16663 rm -f core conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16667 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16668 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16669 if test $ac_cv_lib_dl_dlopen = yes; then
16670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16673 lt_cv_dlopen="dyld"
16675 lt_cv_dlopen_self=yes
16682 { echo "$as_me:$LINENO: checking for shl_load" >&5
16683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16684 if test "${ac_cv_func_shl_load+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16695 #define shl_load innocuous_shl_load
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char shl_load (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
16703 # include <limits.h>
16705 # include <assert.h>
16710 /* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
16717 /* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720 #if defined __stub_shl_load || defined __stub___shl_load
16727 return shl_load ();
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_cv_func_shl_load=yes
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 ac_cv_func_shl_load=no
16774 rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16779 if test $ac_cv_func_shl_load = yes; then
16780 lt_cv_dlopen="shl_load"
16782 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 ac_check_lib_save_LIBS=$LIBS
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16806 return shl_load ();
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_cv_lib_dld_shl_load=yes
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16850 ac_cv_lib_dld_shl_load=no
16853 rm -f core conftest.err conftest.$ac_objext \
16854 conftest$ac_exeext conftest.$ac_ext
16855 LIBS=$ac_check_lib_save_LIBS
16857 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16858 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16859 if test $ac_cv_lib_dld_shl_load = yes; then
16860 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16862 { echo "$as_me:$LINENO: checking for dlopen" >&5
16863 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16864 if test "${ac_cv_func_dlopen+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 cat >conftest.$ac_ext <<_ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16875 #define dlopen innocuous_dlopen
16877 /* System header to define __stub macros and hopefully few prototypes,
16878 which can conflict with char dlopen (); below.
16879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16880 <limits.h> exists even on freestanding compilers. */
16883 # include <limits.h>
16885 # include <assert.h>
16890 /* Override any GCC internal prototype to avoid an error.
16891 Use char because int might match the return type of a GCC
16892 builtin and then its argument prototype would still apply. */
16897 /* The GNU C library defines this for functions which it implements
16898 to always fail with ENOSYS. Some functions are actually named
16899 something starting with __ and the normal name is an alias. */
16900 #if defined __stub_dlopen || defined __stub___dlopen
16912 rm -f conftest.$ac_objext conftest$ac_exeext
16913 if { (ac_try="$ac_link"
16914 case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_link") 2>conftest.er1
16921 grep -v '^ *+' conftest.er1 >conftest.err
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16927 { (case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_try") 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; } &&
16936 { ac_try='test -s conftest$ac_exeext'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 ac_cv_func_dlopen=yes
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16951 ac_cv_func_dlopen=no
16954 rm -f core conftest.err conftest.$ac_objext \
16955 conftest$ac_exeext conftest.$ac_ext
16957 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16958 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16959 if test $ac_cv_func_dlopen = yes; then
16960 lt_cv_dlopen="dlopen"
16962 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 ac_check_lib_save_LIBS=$LIBS
16969 cat >conftest.$ac_ext <<_ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16976 /* Override any GCC internal prototype to avoid an error.
16977 Use char because int might match the return type of a GCC
16978 builtin and then its argument prototype would still apply. */
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>conftest.er1
17000 grep -v '^ *+' conftest.er1 >conftest.err
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_cv_lib_dl_dlopen=yes
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 ac_cv_lib_dl_dlopen=no
17033 rm -f core conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17035 LIBS=$ac_check_lib_save_LIBS
17037 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17039 if test $ac_cv_lib_dl_dlopen = yes; then
17040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17042 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17043 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17044 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 ac_check_lib_save_LIBS=$LIBS
17048 LIBS="-lsvld $LIBS"
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17056 /* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_lib_svld_dlopen=yes
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_cv_lib_svld_dlopen=no
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17115 LIBS=$ac_check_lib_save_LIBS
17117 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17118 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17119 if test $ac_cv_lib_svld_dlopen = yes; then
17120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17122 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17123 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17124 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 ac_check_lib_save_LIBS=$LIBS
17129 cat >conftest.$ac_ext <<_ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17136 /* Override any GCC internal prototype to avoid an error.
17137 Use char because int might match the return type of a GCC
17138 builtin and then its argument prototype would still apply. */
17146 return dld_link ();
17151 rm -f conftest.$ac_objext conftest$ac_exeext
17152 if { (ac_try="$ac_link"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_link") 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest$ac_exeext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_cv_lib_dld_dld_link=yes
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_cv_lib_dld_dld_link=no
17193 rm -f core conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17198 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17199 if test $ac_cv_lib_dld_dld_link = yes; then
17200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17221 if test "x$lt_cv_dlopen" != xno; then
17227 case $lt_cv_dlopen in
17229 save_CPPFLAGS="$CPPFLAGS"
17230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17232 save_LDFLAGS="$LDFLAGS"
17233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17236 LIBS="$lt_cv_dlopen_libs $LIBS"
17238 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17239 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17240 if test "${lt_cv_dlopen_self+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 if test "$cross_compiling" = yes; then :
17244 lt_cv_dlopen_self=cross
17246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17247 lt_status=$lt_dlunknown
17248 cat > conftest.$ac_ext <<EOF
17249 #line 17249 "configure"
17250 #include "confdefs.h"
17259 # define LT_DLGLOBAL RTLD_GLOBAL
17262 # define LT_DLGLOBAL DL_GLOBAL
17264 # define LT_DLGLOBAL 0
17268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17269 find out it does not work in some platform. */
17270 #ifndef LT_DLLAZY_OR_NOW
17272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17275 # define LT_DLLAZY_OR_NOW DL_LAZY
17278 # define LT_DLLAZY_OR_NOW RTLD_NOW
17281 # define LT_DLLAZY_OR_NOW DL_NOW
17283 # define LT_DLLAZY_OR_NOW 0
17291 extern "C" void exit (int);
17294 void fnord() { int i=42;}
17297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17298 int status = $lt_dlunknown;
17302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17304 /* dlclose (self); */
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17317 (./conftest; exit; ) >&5 2>/dev/null
17319 case x$lt_status in
17320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17322 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17325 # compilation failed
17326 lt_cv_dlopen_self=no
17333 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17334 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17336 if test "x$lt_cv_dlopen_self" = xyes; then
17337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17338 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17339 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17340 if test "${lt_cv_dlopen_self_static+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 if test "$cross_compiling" = yes; then :
17344 lt_cv_dlopen_self_static=cross
17346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17347 lt_status=$lt_dlunknown
17348 cat > conftest.$ac_ext <<EOF
17349 #line 17349 "configure"
17350 #include "confdefs.h"
17359 # define LT_DLGLOBAL RTLD_GLOBAL
17362 # define LT_DLGLOBAL DL_GLOBAL
17364 # define LT_DLGLOBAL 0
17368 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17369 find out it does not work in some platform. */
17370 #ifndef LT_DLLAZY_OR_NOW
17372 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17375 # define LT_DLLAZY_OR_NOW DL_LAZY
17378 # define LT_DLLAZY_OR_NOW RTLD_NOW
17381 # define LT_DLLAZY_OR_NOW DL_NOW
17383 # define LT_DLLAZY_OR_NOW 0
17391 extern "C" void exit (int);
17394 void fnord() { int i=42;}
17397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17398 int status = $lt_dlunknown;
17402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17403 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17404 /* dlclose (self); */
17412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413 (eval $ac_link) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17417 (./conftest; exit; ) >&5 2>/dev/null
17419 case x$lt_status in
17420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17422 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17425 # compilation failed
17426 lt_cv_dlopen_self_static=no
17433 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17437 CPPFLAGS="$save_CPPFLAGS"
17438 LDFLAGS="$save_LDFLAGS"
17443 case $lt_cv_dlopen_self in
17444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17445 *) enable_dlopen_self=unknown ;;
17448 case $lt_cv_dlopen_self_static in
17449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17450 *) enable_dlopen_self_static=unknown ;;
17455 # Report which library types will actually be built
17456 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17457 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17458 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17459 echo "${ECHO_T}$can_build_shared" >&6; }
17461 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17462 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17463 test "$can_build_shared" = "no" && enable_shared=no
17465 # On AIX, shared libraries and static libraries use the same namespace, and
17466 # are all built from PIC.
17469 test "$enable_shared" = yes && enable_static=no
17470 if test -n "$RANLIB"; then
17471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17472 postinstall_cmds='$RANLIB $lib'
17477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17478 test "$enable_shared" = yes && enable_static=no
17482 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17483 echo "${ECHO_T}$enable_shared" >&6; }
17485 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17487 # Make sure either enable_shared or enable_static is yes.
17488 test "$enable_shared" = yes || enable_static=yes
17489 { echo "$as_me:$LINENO: result: $enable_static" >&5
17490 echo "${ECHO_T}$enable_static" >&6; }
17492 # The else clause should only fire when bootstrapping the
17493 # libtool distribution, otherwise you forgot to ship ltmain.sh
17494 # with your package, and you will get complaints that there are
17495 # no rules to generate ltmain.sh.
17496 if test -f "$ltmain"; then
17497 # See if we are running on zsh, and set the options which allow our commands through
17498 # without removal of \ escapes.
17499 if test -n "${ZSH_VERSION+set}" ; then
17500 setopt NO_GLOB_SUBST
17502 # Now quote all the things that may contain metacharacters while being
17503 # careful not to overquote the AC_SUBSTed values. We take copies of the
17504 # variables and quote the copies for generation of the libtool script.
17505 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17509 deplibs_check_method reload_flag reload_cmds need_locks \
17510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17511 lt_cv_sys_global_symbol_to_c_name_address \
17512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17513 old_postinstall_cmds old_postuninstall_cmds \
17517 lt_prog_compiler_wl \
17518 lt_prog_compiler_pic \
17519 lt_prog_compiler_static \
17520 lt_prog_compiler_no_builtin_flag \
17521 export_dynamic_flag_spec \
17522 thread_safe_flag_spec \
17523 whole_archive_flag_spec \
17524 enable_shared_with_static_runtimes \
17526 old_archive_from_new_cmds \
17531 compiler_lib_search_path \
17533 archive_expsym_cmds \
17535 postuninstall_cmds \
17536 old_archive_from_expsyms_cmds \
17537 allow_undefined_flag \
17538 no_undefined_flag \
17539 export_symbols_cmds \
17540 hardcode_libdir_flag_spec \
17541 hardcode_libdir_flag_spec_ld \
17542 hardcode_libdir_separator \
17543 hardcode_automatic \
17545 module_expsym_cmds \
17546 lt_cv_prog_compiler_c_o \
17548 include_expsyms; do
17551 old_archive_cmds | \
17552 old_archive_from_new_cmds | \
17554 archive_expsym_cmds | \
17556 module_expsym_cmds | \
17557 old_archive_from_expsyms_cmds | \
17558 export_symbols_cmds | \
17559 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17560 postinstall_cmds | postuninstall_cmds | \
17561 old_postinstall_cmds | old_postuninstall_cmds | \
17562 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17563 # Double-quote double-evaled strings.
17564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17573 *'\$0 --fallback-echo"')
17574 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17578 cfgfile="${ofile}T"
17579 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17581 { echo "$as_me:$LINENO: creating $ofile" >&5
17582 echo "$as_me: creating $ofile" >&6;}
17584 cat <<__EOF__ >> "$cfgfile"
17587 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17588 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17589 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17591 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17592 # Free Software Foundation, Inc.
17594 # This file is part of GNU Libtool:
17595 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17597 # This program is free software; you can redistribute it and/or modify
17598 # it under the terms of the GNU General Public License as published by
17599 # the Free Software Foundation; either version 2 of the License, or
17600 # (at your option) any later version.
17602 # This program is distributed in the hope that it will be useful, but
17603 # WITHOUT ANY WARRANTY; without even the implied warranty of
17604 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17605 # General Public License for more details.
17607 # You should have received a copy of the GNU General Public License
17608 # along with this program; if not, write to the Free Software
17609 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17611 # As a special exception to the GNU General Public License, if you
17612 # distribute this file as part of a program that contains a
17613 # configuration script generated by Autoconf, you may include it under
17614 # the same distribution terms that you use for the rest of that program.
17616 # A sed program that does not truncate output.
17619 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17620 Xsed="$SED -e 1s/^X//"
17622 # The HP-UX ksh and POSIX shell print the target directory to stdout
17623 # if CDPATH is set.
17624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17626 # The names of the tagged configurations supported by this script.
17629 # ### BEGIN LIBTOOL CONFIG
17631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17633 # Shell to use when invoking shell scripts.
17636 # Whether or not to build shared libraries.
17637 build_libtool_libs=$enable_shared
17639 # Whether or not to build static libraries.
17640 build_old_libs=$enable_static
17642 # Whether or not to add -lc for building shared libraries.
17643 build_libtool_need_lc=$archive_cmds_need_lc
17645 # Whether or not to disallow shared libs when runtime libs are static
17646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17648 # Whether or not to optimize for fast installation.
17649 fast_install=$enable_fast_install
17652 host_alias=$host_alias
17656 # The build system.
17657 build_alias=$build_alias
17661 # An echo program that does not interpret backslashes.
17666 AR_FLAGS=$lt_AR_FLAGS
17671 # LTCC compiler flags.
17672 LTCFLAGS=$lt_LTCFLAGS
17674 # A language-specific compiler.
17677 # Is the compiler the GNU C compiler?
17683 # The linker used to build libraries.
17686 # Whether we need hard or soft links.
17689 # A BSD-compatible nm program.
17692 # A symbol stripping program
17695 # Used to examine libraries when file_magic_cmd begins "file"
17696 MAGIC_CMD=$MAGIC_CMD
17698 # Used on cygwin: DLL creation program.
17701 # Used on cygwin: object dumper.
17704 # Used on cygwin: assembler.
17707 # The name of the directory that contains temporary libtool files.
17710 # How to create reloadable object files.
17711 reload_flag=$lt_reload_flag
17712 reload_cmds=$lt_reload_cmds
17714 # How to pass a linker flag through the compiler.
17715 wl=$lt_lt_prog_compiler_wl
17717 # Object file suffix (normally "o").
17718 objext="$ac_objext"
17720 # Old archive suffix (normally "a").
17723 # Shared library suffix (normally ".so").
17724 shrext_cmds='$shrext_cmds'
17726 # Executable file suffix (normally "").
17729 # Additional compiler flags for building library objects.
17730 pic_flag=$lt_lt_prog_compiler_pic
17733 # What is the maximum length of a command?
17734 max_cmd_len=$lt_cv_sys_max_cmd_len
17736 # Does compiler simultaneously support -c and -o options?
17737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17739 # Must we lock files when doing compilation?
17740 need_locks=$lt_need_locks
17742 # Do we need the lib prefix for modules?
17743 need_lib_prefix=$need_lib_prefix
17745 # Do we need a version for libraries?
17746 need_version=$need_version
17748 # Whether dlopen is supported.
17749 dlopen_support=$enable_dlopen
17751 # Whether dlopen of programs is supported.
17752 dlopen_self=$enable_dlopen_self
17754 # Whether dlopen of statically linked programs is supported.
17755 dlopen_self_static=$enable_dlopen_self_static
17757 # Compiler flag to prevent dynamic linking.
17758 link_static_flag=$lt_lt_prog_compiler_static
17760 # Compiler flag to turn off builtin functions.
17761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17763 # Compiler flag to allow reflexive dlopens.
17764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17766 # Compiler flag to generate shared objects directly from archives.
17767 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17769 # Compiler flag to generate thread-safe objects.
17770 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17772 # Library versioning type.
17773 version_type=$version_type
17775 # Format of library name prefix.
17776 libname_spec=$lt_libname_spec
17778 # List of archive names. First name is the real one, the rest are links.
17779 # The last name is the one that the linker finds with -lNAME.
17780 library_names_spec=$lt_library_names_spec
17782 # The coded name of the library, if different from the real name.
17783 soname_spec=$lt_soname_spec
17785 # Commands used to build and install an old-style archive.
17787 old_archive_cmds=$lt_old_archive_cmds
17788 old_postinstall_cmds=$lt_old_postinstall_cmds
17789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17791 # Create an old-style archive from a shared archive.
17792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17794 # Create a temporary old-style archive to link instead of a shared archive.
17795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17797 # Commands used to build and install a shared archive.
17798 archive_cmds=$lt_archive_cmds
17799 archive_expsym_cmds=$lt_archive_expsym_cmds
17800 postinstall_cmds=$lt_postinstall_cmds
17801 postuninstall_cmds=$lt_postuninstall_cmds
17803 # Commands used to build a loadable module (assumed same as above if empty)
17804 module_cmds=$lt_module_cmds
17805 module_expsym_cmds=$lt_module_expsym_cmds
17807 # Commands to strip libraries.
17808 old_striplib=$lt_old_striplib
17809 striplib=$lt_striplib
17811 # Dependencies to place before the objects being linked to create a
17813 predep_objects=$lt_predep_objects
17815 # Dependencies to place after the objects being linked to create a
17817 postdep_objects=$lt_postdep_objects
17819 # Dependencies to place before the objects being linked to create a
17821 predeps=$lt_predeps
17823 # Dependencies to place after the objects being linked to create a
17825 postdeps=$lt_postdeps
17827 # The library search path used internally by the compiler when linking
17828 # a shared library.
17829 compiler_lib_search_path=$lt_compiler_lib_search_path
17831 # Method to check whether dependent libraries are shared objects.
17832 deplibs_check_method=$lt_deplibs_check_method
17834 # Command to use when deplibs_check_method == file_magic.
17835 file_magic_cmd=$lt_file_magic_cmd
17837 # Flag that allows shared libraries with undefined symbols to be built.
17838 allow_undefined_flag=$lt_allow_undefined_flag
17840 # Flag that forces no undefined symbols.
17841 no_undefined_flag=$lt_no_undefined_flag
17843 # Commands used to finish a libtool library installation in a directory.
17844 finish_cmds=$lt_finish_cmds
17846 # Same as above, but a single script fragment to be evaled but not shown.
17847 finish_eval=$lt_finish_eval
17849 # Take the output of nm and produce a listing of raw symbols and C names.
17850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17852 # Transform the output of nm in a proper C declaration
17853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17855 # Transform the output of nm in a C name address pair
17856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17858 # This is the shared library runtime path variable.
17859 runpath_var=$runpath_var
17861 # This is the shared library path variable.
17862 shlibpath_var=$shlibpath_var
17864 # Is shlibpath searched before the hard-coded library search path?
17865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17867 # How to hardcode a shared library path into an executable.
17868 hardcode_action=$hardcode_action
17870 # Whether we should hardcode library paths into libraries.
17871 hardcode_into_libs=$hardcode_into_libs
17873 # Flag to hardcode \$libdir into a binary during linking.
17874 # This must work even if \$libdir does not exist.
17875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17877 # If ld is used when linking, flag to hardcode \$libdir into
17878 # a binary during linking. This must work even if \$libdir does
17880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17882 # Whether we need a single -rpath flag with a separated argument.
17883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17886 # resulting binary.
17887 hardcode_direct=$hardcode_direct
17889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17890 # resulting binary.
17891 hardcode_minus_L=$hardcode_minus_L
17893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17894 # the resulting binary.
17895 hardcode_shlibpath_var=$hardcode_shlibpath_var
17897 # Set to yes if building a shared library automatically hardcodes DIR into the library
17898 # and all subsequent libraries and executables linked against it.
17899 hardcode_automatic=$hardcode_automatic
17901 # Variables whose values should be saved in libtool wrapper scripts and
17902 # restored at relink time.
17903 variables_saved_for_relink="$variables_saved_for_relink"
17905 # Whether libtool must link a program against all its dependency libraries.
17906 link_all_deplibs=$link_all_deplibs
17908 # Compile-time system search path for libraries
17909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17911 # Run-time system search path for libraries
17912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17914 # Fix the shell variable \$srcfile for the compiler.
17915 fix_srcfile_path="$fix_srcfile_path"
17917 # Set to yes if exported symbols are required.
17918 always_export_symbols=$always_export_symbols
17920 # The commands to list exported symbols.
17921 export_symbols_cmds=$lt_export_symbols_cmds
17923 # The commands to extract the exported symbol list from a shared archive.
17924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17926 # Symbols that should not be listed in the preloaded symbols.
17927 exclude_expsyms=$lt_exclude_expsyms
17929 # Symbols that must always be exported.
17930 include_expsyms=$lt_include_expsyms
17932 # ### END LIBTOOL CONFIG
17939 cat <<\EOF >> "$cfgfile"
17941 # AIX sometimes has problems with the GCC collect2 program. For some
17942 # reason, if we set the COLLECT_NAMES environment variable, the problems
17943 # vanish in a puff of smoke.
17944 if test "X${COLLECT_NAMES+set}" != Xset; then
17946 export COLLECT_NAMES
17952 # We use sed instead of cat because bash on DJGPP gets confused if
17953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17954 # text mode, it properly converts lines to CR/LF. This bash problem
17955 # is reportedly fixed, but why not run on old versions too?
17956 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17958 mv -f "$cfgfile" "$ofile" || \
17959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17963 # If there is no Makefile yet, we rely on a make rule to execute
17964 # `config.status --recheck' to rerun these tests and create the
17965 # libtool script then.
17966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17967 if test -f "$ltmain_in"; then
17968 test -f Makefile && make "$ltmain"
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17982 # Check whether --with-tags was given.
17983 if test "${with_tags+set}" = set; then
17984 withval=$with_tags; tagnames="$withval"
17988 if test -f "$ltmain" && test -n "$tagnames"; then
17989 if test ! -f "${ofile}"; then
17990 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17991 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17994 if test -z "$LTCC"; then
17995 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17996 if test -z "$LTCC"; then
17997 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17998 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18000 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18001 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18004 if test -z "$LTCFLAGS"; then
18005 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18008 # Extract list of available tagged configurations in $ofile.
18009 # Note that this assumes the entire list is on one line.
18010 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18013 for tagname in $tagnames; do
18015 # Check whether tagname contains only valid characters
18016 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18018 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18019 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18020 { (exit 1); exit 1; }; }
18024 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18026 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18027 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18028 { (exit 1); exit 1; }; }
18031 # Update the list of available tags.
18032 if test -n "$tagname"; then
18033 echo appending configuration tag \"$tagname\" to $ofile
18037 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18038 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18039 (test "X$CXX" != "Xg++"))) ; then
18041 ac_cpp='$CXXCPP $CPPFLAGS'
18042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18049 archive_cmds_need_lc_CXX=no
18050 allow_undefined_flag_CXX=
18051 always_export_symbols_CXX=no
18052 archive_expsym_cmds_CXX=
18053 export_dynamic_flag_spec_CXX=
18054 hardcode_direct_CXX=no
18055 hardcode_libdir_flag_spec_CXX=
18056 hardcode_libdir_flag_spec_ld_CXX=
18057 hardcode_libdir_separator_CXX=
18058 hardcode_minus_L_CXX=no
18059 hardcode_shlibpath_var_CXX=unsupported
18060 hardcode_automatic_CXX=no
18062 module_expsym_cmds_CXX=
18063 link_all_deplibs_CXX=unknown
18064 old_archive_cmds_CXX=$old_archive_cmds
18065 no_undefined_flag_CXX=
18066 whole_archive_flag_spec_CXX=
18067 enable_shared_with_static_runtimes_CXX=no
18069 # Dependencies to place before and after the object being linked:
18070 predep_objects_CXX=
18071 postdep_objects_CXX=
18074 compiler_lib_search_path_CXX=
18076 # Source file extension for C++ test sources.
18079 # Object file extension for compiled C++ test sources.
18083 # Code to be used in simple compile tests
18084 lt_simple_compile_test_code="int some_variable = 0;\n"
18086 # Code to be used in simple link tests
18087 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18091 # If no C compiler was specified, use CC.
18094 # If no C compiler flags were specified, use CFLAGS.
18095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18097 # Allow CC to be a program name with arguments.
18101 # save warnings/boilerplate of simple test code
18102 ac_outfile=conftest.$ac_objext
18103 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18104 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18105 _lt_compiler_boilerplate=`cat conftest.err`
18108 ac_outfile=conftest.$ac_objext
18109 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18110 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18111 _lt_linker_boilerplate=`cat conftest.err`
18115 # Allow CC to be a program name with arguments.
18120 lt_save_with_gnu_ld=$with_gnu_ld
18121 lt_save_path_LD=$lt_cv_path_LD
18122 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18123 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18125 $as_unset lt_cv_prog_gnu_ld
18127 if test -n "${lt_cv_path_LDCXX+set}"; then
18128 lt_cv_path_LD=$lt_cv_path_LDCXX
18130 $as_unset lt_cv_path_LD
18132 test -z "${LDCXX+set}" || LD=$LDCXX
18136 for cc_temp in $compiler""; do
18138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18144 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18147 # We don't want -fno-exception wen compiling C++ code, so set the
18148 # no_builtin_flag separately
18149 if test "$GXX" = yes; then
18150 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18152 lt_prog_compiler_no_builtin_flag_CXX=
18155 if test "$GXX" = yes; then
18156 # Set up default GNU C++ configuration
18159 # Check whether --with-gnu-ld was given.
18160 if test "${with_gnu_ld+set}" = set; then
18161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18167 if test "$GCC" = yes; then
18168 # Check if gcc -print-prog-name=ld gives a path.
18169 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18170 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18173 # gcc leaves a trailing carriage return which upsets mingw
18174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18179 # Accept absolute paths.
18181 re_direlt='/[^/][^/]*/\.\./'
18182 # Canonicalize the pathname of ld
18183 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18184 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18185 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18187 test -z "$LD" && LD="$ac_prog"
18190 # If it fails, then pretend we aren't using GCC.
18194 # If it is relative, then search for the first ld in PATH.
18195 with_gnu_ld=unknown
18198 elif test "$with_gnu_ld" = yes; then
18199 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18200 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18202 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18203 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18205 if test "${lt_cv_path_LD+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 if test -z "$LD"; then
18209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18210 for ac_dir in $PATH; do
18212 test -z "$ac_dir" && ac_dir=.
18213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18214 lt_cv_path_LD="$ac_dir/$ac_prog"
18215 # Check to see if the program is GNU ld. I'd rather use --version,
18216 # but apparently some variants of GNU ld only accept -v.
18217 # Break only if it was the GNU/non-GNU ld that we prefer.
18218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18219 *GNU* | *'with BFD'*)
18220 test "$with_gnu_ld" != no && break
18223 test "$with_gnu_ld" != yes && break
18230 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18234 LD="$lt_cv_path_LD"
18235 if test -n "$LD"; then
18236 { echo "$as_me:$LINENO: result: $LD" >&5
18237 echo "${ECHO_T}$LD" >&6; }
18239 { echo "$as_me:$LINENO: result: no" >&5
18240 echo "${ECHO_T}no" >&6; }
18242 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18243 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18244 { (exit 1); exit 1; }; }
18245 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18246 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18247 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18251 case `$LD -v 2>&1 </dev/null` in
18252 *GNU* | *'with BFD'*)
18253 lt_cv_prog_gnu_ld=yes
18256 lt_cv_prog_gnu_ld=no
18260 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18261 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18262 with_gnu_ld=$lt_cv_prog_gnu_ld
18266 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18267 # archiving commands below assume that GNU ld is being used.
18268 if test "$with_gnu_ld" = yes; then
18269 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18270 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'
18272 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18273 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18275 # If archive_cmds runs LD, not CC, wlarc should be empty
18276 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18277 # investigate it a little bit more. (MM)
18280 # ancient GNU ld didn't support --whole-archive et. al.
18281 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18282 grep 'no-whole-archive' > /dev/null; then
18283 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18285 whole_archive_flag_spec_CXX=
18291 # A generic and very simple default shared library creation
18292 # command for GNU C++ for the case where it uses the native
18293 # linker, instead of GNU ld. If possible, this setting should
18294 # overridden to take advantage of the native linker features on
18295 # the platform it is being used on.
18296 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18299 # Commands to make compiler produce verbose output that lists
18300 # what "hidden" libraries, object files and flags are used when
18301 # linking a shared library.
18302 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18310 # PORTME: fill in a description of your system's C++ link characteristics
18311 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18312 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18316 # FIXME: insert proper C++ library support
18320 if test "$host_cpu" = ia64; then
18321 # On IA64, the linker does run time linking by default, so we don't
18322 # have to do anything special.
18323 aix_use_runtimelinking=no
18324 exp_sym_flag='-Bexport'
18327 aix_use_runtimelinking=no
18329 # Test if we are trying to use run time linking or normal
18330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18331 # need to do runtime linking.
18332 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18333 for ld_flag in $LDFLAGS; do
18336 aix_use_runtimelinking=yes
18344 exp_sym_flag='-bexport'
18345 no_entry_flag='-bnoentry'
18348 # When large executables or shared objects are built, AIX ld can
18349 # have problems creating the table of contents. If linking a library
18350 # or program results in "error TOC overflow" add -mminimal-toc to
18351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18354 archive_cmds_CXX=''
18355 hardcode_direct_CXX=yes
18356 hardcode_libdir_separator_CXX=':'
18357 link_all_deplibs_CXX=yes
18359 if test "$GXX" = yes; then
18360 case $host_os in aix4.[012]|aix4.[012].*)
18361 # We only want to do this on AIX 4.2 and lower, the check
18362 # below for broken collect2 doesn't work under 4.3+
18363 collect2name=`${CC} -print-prog-name=collect2`
18364 if test -f "$collect2name" && \
18365 strings "$collect2name" | grep resolve_lib_name >/dev/null
18367 # We have reworked collect2
18368 hardcode_direct_CXX=yes
18370 # We have old collect2
18371 hardcode_direct_CXX=unsupported
18372 # It fails to find uninstalled libraries when the uninstalled
18373 # path is not listed in the libpath. Setting hardcode_minus_L
18374 # to unsupported forces relinking
18375 hardcode_minus_L_CXX=yes
18376 hardcode_libdir_flag_spec_CXX='-L$libdir'
18377 hardcode_libdir_separator_CXX=
18381 shared_flag='-shared'
18382 if test "$aix_use_runtimelinking" = yes; then
18383 shared_flag="$shared_flag "'${wl}-G'
18387 if test "$host_cpu" = ia64; then
18388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18389 # chokes on -Wl,-G. The following line is correct:
18392 if test "$aix_use_runtimelinking" = yes; then
18393 shared_flag='${wl}-G'
18395 shared_flag='${wl}-bM:SRE'
18400 # It seems that -bexpall does not export symbols beginning with
18401 # underscore (_), so it is better to generate a list of symbols to export.
18402 always_export_symbols_CXX=yes
18403 if test "$aix_use_runtimelinking" = yes; then
18404 # Warning - without using the other runtime loading flags (-brtl),
18405 # -berok will link without error, but may produce a broken library.
18406 allow_undefined_flag_CXX='-berok'
18407 # Determine the default libpath from the value encoded in an empty executable.
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_link") 2>conftest.er1
18432 grep -v '^ *+' conftest.er1 >conftest.err
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18460 # Check for a 64-bit object if we didn't find anything.
18461 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; }
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18470 rm -f core conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18474 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18476 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"
18478 if test "$host_cpu" = ia64; then
18479 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18480 allow_undefined_flag_CXX="-z nodefs"
18481 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"
18483 # Determine the default libpath from the value encoded in an empty executable.
18484 cat >conftest.$ac_ext <<_ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
18508 grep -v '^ *+' conftest.er1 >conftest.err
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest$ac_exeext'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18536 # Check for a 64-bit object if we didn't find anything.
18537 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18546 rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18550 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18551 # Warning - without using the other run time loading flags,
18552 # -berok will link without error, but may produce a broken library.
18553 no_undefined_flag_CXX=' ${wl}-bernotok'
18554 allow_undefined_flag_CXX=' ${wl}-berok'
18555 # Exported symbols can be pulled into shared objects from archives
18556 whole_archive_flag_spec_CXX='$convenience'
18557 archive_cmds_need_lc_CXX=yes
18558 # This is similar to how AIX traditionally builds its shared libraries.
18559 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'
18565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18566 allow_undefined_flag_CXX=unsupported
18567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18568 # support --undefined. This deserves some investigation. FIXME
18569 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576 case $cc_basename in
18578 # FIXME: insert proper C++ library support
18584 cygwin* | mingw* | pw32*)
18585 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18586 # as there is no search path for DLLs.
18587 hardcode_libdir_flag_spec_CXX='-L$libdir'
18588 allow_undefined_flag_CXX=unsupported
18589 always_export_symbols_CXX=no
18590 enable_shared_with_static_runtimes_CXX=yes
18592 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18593 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'
18594 # If the export-symbols file already is a .def file (1st line
18595 # is EXPORTS), use it as is; otherwise, prepend...
18596 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18597 cp $export_symbols $output_objdir/$soname.def;
18599 echo EXPORTS > $output_objdir/$soname.def;
18600 cat $export_symbols >> $output_objdir/$soname.def;
18602 $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'
18607 darwin* | rhapsody*)
18609 rhapsody* | darwin1.[012])
18610 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18614 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18616 case ${MACOSX_DEPLOYMENT_TARGET} in
18618 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18621 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18627 archive_cmds_need_lc_CXX=no
18628 hardcode_direct_CXX=no
18629 hardcode_automatic_CXX=yes
18630 hardcode_shlibpath_var_CXX=unsupported
18631 whole_archive_flag_spec_CXX=''
18632 link_all_deplibs_CXX=yes
18634 if test "$GXX" = yes ; then
18635 lt_int_apple_cc_single_mod=no
18636 output_verbose_link_cmd='echo'
18637 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18638 lt_int_apple_cc_single_mod=yes
18640 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18641 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18643 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'
18645 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18646 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18647 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18648 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}'
18650 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}'
18652 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}'
18654 case $cc_basename in
18656 output_verbose_link_cmd='echo'
18657 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'
18658 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18659 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18660 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}'
18661 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}'
18671 case $cc_basename in
18673 # FIXME: insert proper C++ library support
18677 # Green Hills C++ Compiler
18678 # FIXME: insert proper C++ library support
18682 # FIXME: insert proper C++ library support
18688 # C++ shared libraries reported to be fairly broken before switch to ELF
18692 archive_cmds_need_lc_CXX=no
18694 freebsd* | kfreebsd*-gnu | dragonfly*)
18695 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18702 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18703 hardcode_libdir_separator_CXX=:
18704 export_dynamic_flag_spec_CXX='${wl}-E'
18705 hardcode_direct_CXX=yes
18706 hardcode_minus_L_CXX=yes # Not in the search PATH,
18707 # but as the default
18708 # location of the library.
18710 case $cc_basename in
18712 # FIXME: insert proper C++ library support
18716 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'
18717 # Commands to make compiler produce verbose output that lists
18718 # what "hidden" libraries, object files and flags are used when
18719 # linking a shared library.
18721 # There doesn't appear to be a way to prevent this compiler from
18722 # explicitly linking system object files so we need to strip them
18723 # from the output so that they don't get included in the library
18725 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'
18728 if test "$GXX" = yes; then
18729 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'
18731 # FIXME: insert proper C++ library support
18738 if test $with_gnu_ld = no; then
18739 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18740 hardcode_libdir_separator_CXX=:
18744 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18747 export_dynamic_flag_spec_CXX='${wl}-E'
18753 hardcode_direct_CXX=no
18754 hardcode_shlibpath_var_CXX=no
18757 hardcode_direct_CXX=yes
18758 hardcode_minus_L_CXX=yes # Not in the search PATH,
18759 # but as the default
18760 # location of the library.
18764 case $cc_basename in
18766 # FIXME: insert proper C++ library support
18772 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18775 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18778 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18781 # Commands to make compiler produce verbose output that lists
18782 # what "hidden" libraries, object files and flags are used when
18783 # linking a shared library.
18785 # There doesn't appear to be a way to prevent this compiler from
18786 # explicitly linking system object files so we need to strip them
18787 # from the output so that they don't get included in the library
18789 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'
18792 if test "$GXX" = yes; then
18793 if test $with_gnu_ld = no; then
18796 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18799 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18802 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'
18807 # FIXME: insert proper C++ library support
18814 hardcode_direct_CXX=no
18815 hardcode_shlibpath_var_CXX=no
18816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18817 export_dynamic_flag_spec_CXX='${wl}-E'
18818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18819 # Instead, shared libraries are loaded at an image base (0x10000000 by
18820 # default) and relocated if they conflict, which is a slow very memory
18821 # consuming and fragmenting process. To avoid this, we pick a random,
18822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18823 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18824 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'
18825 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'
18828 case $cc_basename in
18831 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'
18833 # Archives containing C++ object files must be created using
18834 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18835 # necessary to make sure instantiated templates are included
18837 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18840 if test "$GXX" = yes; then
18841 if test "$with_gnu_ld" = no; then
18842 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'
18844 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'
18847 link_all_deplibs_CXX=yes
18850 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18851 hardcode_libdir_separator_CXX=:
18854 case $cc_basename in
18856 # Kuck and Associates, Inc. (KAI) C++ Compiler
18858 # KCC will only create a shared library if the output file
18859 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18860 # to its proper name (with version) after linking.
18861 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'
18862 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'
18863 # Commands to make compiler produce verbose output that lists
18864 # what "hidden" libraries, object files and flags are used when
18865 # linking a shared library.
18867 # There doesn't appear to be a way to prevent this compiler from
18868 # explicitly linking system object files so we need to strip them
18869 # from the output so that they don't get included in the library
18871 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'
18873 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18876 # Archives containing C++ object files must be created using
18877 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18878 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18883 # version 8.0 and above of icpc choke on multiply defined symbols
18884 # if we add $predep_objects and $postdep_objects, however 7.1 and
18885 # earlier do not add the objects themselves.
18886 case `$CC -V 2>&1` in
18888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18889 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'
18891 *) # Version 8.0 or newer
18894 ia64*) tmp_idyn=' -i_dynamic';;
18896 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18897 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'
18900 archive_cmds_need_lc_CXX=no
18901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18903 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18906 # Portland Group C++ compiler
18907 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18908 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'
18910 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18912 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'
18916 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18917 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'
18919 runpath_var=LD_RUN_PATH
18920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18921 hardcode_libdir_separator_CXX=:
18923 # Commands to make compiler produce verbose output that lists
18924 # what "hidden" libraries, object files and flags are used when
18925 # linking a shared library.
18927 # There doesn't appear to be a way to prevent this compiler from
18928 # explicitly linking system object files so we need to strip them
18929 # from the output so that they don't get included in the library
18931 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'
18936 # FIXME: insert proper C++ library support
18940 # FIXME: insert proper C++ library support
18944 case $cc_basename in
18946 # FIXME: insert proper C++ library support
18950 # FIXME: insert proper C++ library support
18956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18957 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18959 hardcode_libdir_flag_spec_CXX='-R$libdir'
18960 hardcode_direct_CXX=yes
18961 hardcode_shlibpath_var_CXX=no
18963 # Workaround some broken pre-1.5 toolchains
18964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18967 # C++ shared libraries are fairly broken
18971 hardcode_direct_CXX=yes
18972 hardcode_shlibpath_var_CXX=no
18973 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18976 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18977 export_dynamic_flag_spec_CXX='${wl}-E'
18978 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18980 output_verbose_link_cmd='echo'
18983 case $cc_basename in
18985 # Kuck and Associates, Inc. (KAI) C++ Compiler
18987 # KCC will only create a shared library if the output file
18988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18989 # to its proper name (with version) after linking.
18990 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'
18992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18993 hardcode_libdir_separator_CXX=:
18995 # Archives containing C++ object files must be created using
18996 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18997 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19001 # Rational C++ 2.4.1
19002 # FIXME: insert proper C++ library support
19006 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19007 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'
19009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19010 hardcode_libdir_separator_CXX=:
19012 # Commands to make compiler produce verbose output that lists
19013 # what "hidden" libraries, object files and flags are used when
19014 # linking a shared library.
19016 # There doesn't appear to be a way to prevent this compiler from
19017 # explicitly linking system object files so we need to strip them
19018 # from the output so that they don't get included in the library
19020 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'
19023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19024 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19025 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'
19027 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19028 hardcode_libdir_separator_CXX=:
19030 # Commands to make compiler produce verbose output that lists
19031 # what "hidden" libraries, object files and flags are used when
19032 # linking a shared library.
19033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19036 # FIXME: insert proper C++ library support
19043 case $cc_basename in
19045 # Kuck and Associates, Inc. (KAI) C++ Compiler
19047 # KCC will only create a shared library if the output file
19048 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19049 # to its proper name (with version) after linking.
19050 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'
19052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19053 hardcode_libdir_separator_CXX=:
19055 # Archives containing C++ object files must be created using
19056 # the KAI C++ compiler.
19057 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19060 # Rational C++ 2.4.1
19061 # FIXME: insert proper C++ library support
19065 allow_undefined_flag_CXX=' -expect_unresolved \*'
19066 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'
19067 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19068 echo "-hidden">> $lib.exp~
19069 $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~
19072 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19073 hardcode_libdir_separator_CXX=:
19075 # Commands to make compiler produce verbose output that lists
19076 # what "hidden" libraries, object files and flags are used when
19077 # linking a shared library.
19079 # There doesn't appear to be a way to prevent this compiler from
19080 # explicitly linking system object files so we need to strip them
19081 # from the output so that they don't get included in the library
19083 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'
19086 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19088 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'
19090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19091 hardcode_libdir_separator_CXX=:
19093 # Commands to make compiler produce verbose output that lists
19094 # what "hidden" libraries, object files and flags are used when
19095 # linking a shared library.
19096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19099 # FIXME: insert proper C++ library support
19106 # FIXME: insert proper C++ library support
19110 case $cc_basename in
19113 # FIXME: insert proper C++ library support
19118 # FIXME: insert proper C++ library support
19122 # FIXME: insert proper C++ library support
19128 case $cc_basename in
19130 # Sun C++ 4.2, 5.x and Centerline C++
19131 archive_cmds_need_lc_CXX=yes
19132 no_undefined_flag_CXX=' -zdefs'
19133 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19134 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19135 $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'
19137 hardcode_libdir_flag_spec_CXX='-R$libdir'
19138 hardcode_shlibpath_var_CXX=no
19140 solaris2.[0-5] | solaris2.[0-5].*) ;;
19142 # The C++ compiler is used as linker so we must use $wl
19143 # flag to pass the commands to the underlying system
19144 # linker. We must also pass each convience library through
19145 # to the system linker between allextract/defaultextract.
19146 # The C++ compiler will combine linker options so we
19147 # cannot just pass the convience library names through
19149 # Supported since Solaris 2.6 (maybe 2.5.1?)
19150 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'
19153 link_all_deplibs_CXX=yes
19155 output_verbose_link_cmd='echo'
19157 # Archives containing C++ object files must be created using
19158 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19159 # necessary to make sure instantiated templates are included
19161 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19164 # Green Hills C++ Compiler
19165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19167 # The C++ compiler must be used to create the archive.
19168 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19171 # GNU C++ compiler with Solaris linker
19172 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19173 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19174 if $CC --version | grep -v '^2\.7' > /dev/null; then
19175 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19176 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19177 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19179 # Commands to make compiler produce verbose output that lists
19180 # what "hidden" libraries, object files and flags are used when
19181 # linking a shared library.
19182 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19184 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19186 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19187 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19188 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19190 # Commands to make compiler produce verbose output that lists
19191 # what "hidden" libraries, object files and flags are used when
19192 # linking a shared library.
19193 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19196 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19201 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19202 no_undefined_flag_CXX='${wl}-z,text'
19203 archive_cmds_need_lc_CXX=no
19204 hardcode_shlibpath_var_CXX=no
19205 runpath_var='LD_RUN_PATH'
19207 case $cc_basename in
19209 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19210 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19213 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19214 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19218 sysv5* | sco3.2v5* | sco5v6*)
19219 # Note: We can NOT use -z defs as we might desire, because we do not
19220 # link with -lc, and that would cause any symbols used from libc to
19221 # always be unresolved, which means just about no library would
19222 # ever link correctly. If we're not using GNU ld we use -z text
19223 # though, which does catch some bad symbols but isn't as heavy-handed
19225 # For security reasons, it is highly recommended that you always
19226 # use absolute paths for naming shared libraries, and exclude the
19227 # DT_RUNPATH tag from executables and libraries. But doing so
19228 # requires that you compile everything twice, which is a pain.
19229 # So that behaviour is only enabled if SCOABSPATH is set to a
19230 # non-empty value in the environment. Most likely only useful for
19231 # creating official distributions of packages.
19232 # This is a hack until libtool officially supports absolute path
19233 # names for shared libraries.
19234 no_undefined_flag_CXX='${wl}-z,text'
19235 allow_undefined_flag_CXX='${wl}-z,nodefs'
19236 archive_cmds_need_lc_CXX=no
19237 hardcode_shlibpath_var_CXX=no
19238 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19239 hardcode_libdir_separator_CXX=':'
19240 link_all_deplibs_CXX=yes
19241 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19242 runpath_var='LD_RUN_PATH'
19244 case $cc_basename in
19246 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19247 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19250 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19251 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19256 case $cc_basename in
19258 # NonStop-UX NCC 3.20
19259 # FIXME: insert proper C++ library support
19263 # FIXME: insert proper C++ library support
19269 # FIXME: insert proper C++ library support
19273 # FIXME: insert proper C++ library support
19277 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19278 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19279 test "$ld_shlibs_CXX" = no && can_build_shared=no
19285 cat > conftest.$ac_ext <<EOF
19289 Foo (void) { a = 0; }
19295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19296 (eval $ac_compile) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; then
19300 # Parse the compiler output and extract the necessary
19301 # objects, libraries and library flags.
19303 # Sentinel used to keep track of whether or not we are before
19304 # the conftest object file.
19305 pre_test_object_deps_done=no
19307 # The `*' in the case matches for architectures that use `case' in
19308 # $output_verbose_cmd can trigger glob expansion during the loop
19309 # eval without this substitution.
19310 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19312 for p in `eval $output_verbose_link_cmd`; do
19316 # Some compilers place space between "-{L,R}" and the path.
19317 # Remove the space.
19318 if test $p = "-L" \
19319 || test $p = "-R"; then
19326 if test "$pre_test_object_deps_done" = no; then
19329 # Internal compiler library paths should come after those
19330 # provided the user. The postdeps already come after the
19331 # user supplied libs so there is no need to process them.
19332 if test -z "$compiler_lib_search_path_CXX"; then
19333 compiler_lib_search_path_CXX="${prev}${p}"
19335 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19338 # The "-l" case would never come before the object being
19339 # linked, so don't bother handling this case.
19342 if test -z "$postdeps_CXX"; then
19343 postdeps_CXX="${prev}${p}"
19345 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19351 # This assumes that the test object file only shows up
19352 # once in the compiler output.
19353 if test "$p" = "conftest.$objext"; then
19354 pre_test_object_deps_done=yes
19358 if test "$pre_test_object_deps_done" = no; then
19359 if test -z "$predep_objects_CXX"; then
19360 predep_objects_CXX="$p"
19362 predep_objects_CXX="$predep_objects_CXX $p"
19365 if test -z "$postdep_objects_CXX"; then
19366 postdep_objects_CXX="$p"
19368 postdep_objects_CXX="$postdep_objects_CXX $p"
19373 *) ;; # Ignore the rest.
19381 echo "libtool.m4: error: problem compiling CXX test program"
19384 $rm -f confest.$objext
19386 # PORTME: override above test on systems where it is broken
19389 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19390 # hack all around it, let's just trust "g++" to DTRT.
19391 predep_objects_CXX=
19392 postdep_objects_CXX=
19397 case $cc_basename in
19399 # Adding this requires a known-good setup of shared libraries for
19400 # Sun compiler versions before 5.6, else PIC objects from an old
19401 # archive will be linked into the output, leading to subtle bugs.
19402 postdeps_CXX='-lCstd -lCrun'
19409 case " $postdeps_CXX " in
19410 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19413 lt_prog_compiler_wl_CXX=
19414 lt_prog_compiler_pic_CXX=
19415 lt_prog_compiler_static_CXX=
19417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19420 # C++ specific cases for pic, static, wl, etc.
19421 if test "$GXX" = yes; then
19422 lt_prog_compiler_wl_CXX='-Wl,'
19423 lt_prog_compiler_static_CXX='-static'
19427 # All AIX code is PIC.
19428 if test "$host_cpu" = ia64; then
19429 # AIX 5 now supports IA64 processor
19430 lt_prog_compiler_static_CXX='-Bstatic'
19434 # FIXME: we need at least 68020 code to build shared libraries, but
19435 # adding the `-m68020' flag to GCC prevents building anything better,
19437 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19439 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19440 # PIC is the default for these OSes.
19442 mingw* | os2* | pw32*)
19443 # This hack is so that the source file can tell whether it is being
19444 # built for inclusion in a dll (and should export symbols for example).
19445 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19447 darwin* | rhapsody*)
19448 # PIC is the default on this platform
19449 # Common symbols not allowed in MH_DYLIB files
19450 lt_prog_compiler_pic_CXX='-fno-common'
19453 # DJGPP does not support shared libraries at all
19454 lt_prog_compiler_pic_CXX=
19457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19458 # Instead, we relocate shared libraries at runtime.
19461 if test -d /usr/nec; then
19462 lt_prog_compiler_pic_CXX=-Kconform_pic
19466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19467 # not for PA HP-UX.
19472 lt_prog_compiler_pic_CXX='-fPIC'
19477 lt_prog_compiler_pic_CXX='-fPIC'
19483 # All AIX code is PIC.
19484 if test "$host_cpu" = ia64; then
19485 # AIX 5 now supports IA64 processor
19486 lt_prog_compiler_static_CXX='-Bstatic'
19488 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19492 case $cc_basename in
19494 # Green Hills C++ Compiler
19495 # _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"
19500 # PIC is the default on this platform
19501 # Common symbols not allowed in MH_DYLIB files
19502 case $cc_basename in
19504 lt_prog_compiler_pic_CXX='-qnocommon'
19505 lt_prog_compiler_wl_CXX='-Wl,'
19510 case $cc_basename in
19512 lt_prog_compiler_pic_CXX='-KPIC'
19515 # Green Hills C++ Compiler
19516 lt_prog_compiler_pic_CXX='-pic'
19522 freebsd* | kfreebsd*-gnu | dragonfly*)
19523 # FreeBSD uses GNU C++
19525 hpux9* | hpux10* | hpux11*)
19526 case $cc_basename in
19528 lt_prog_compiler_wl_CXX='-Wl,'
19529 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19530 if test "$host_cpu" != ia64; then
19531 lt_prog_compiler_pic_CXX='+Z'
19535 lt_prog_compiler_wl_CXX='-Wl,'
19536 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19542 lt_prog_compiler_pic_CXX='+Z'
19551 # This is c89, which is MS Visual C++ (no shared libs)
19552 # Anyone wants to do a port?
19554 irix5* | irix6* | nonstopux*)
19555 case $cc_basename in
19557 lt_prog_compiler_wl_CXX='-Wl,'
19558 lt_prog_compiler_static_CXX='-non_shared'
19559 # CC pic flag -KPIC is the default.
19566 case $cc_basename in
19569 lt_prog_compiler_wl_CXX='--backend -Wl,'
19570 lt_prog_compiler_pic_CXX='-fPIC'
19574 lt_prog_compiler_wl_CXX='-Wl,'
19575 lt_prog_compiler_pic_CXX='-KPIC'
19576 lt_prog_compiler_static_CXX='-static'
19579 # Portland Group C++ compiler.
19580 lt_prog_compiler_wl_CXX='-Wl,'
19581 lt_prog_compiler_pic_CXX='-fpic'
19582 lt_prog_compiler_static_CXX='-Bstatic'
19586 # Make sure the PIC flag is empty. It appears that all Alpha
19587 # Linux and Compaq Tru64 Unix objects are PIC.
19588 lt_prog_compiler_pic_CXX=
19589 lt_prog_compiler_static_CXX='-non_shared'
19600 case $cc_basename in
19602 lt_prog_compiler_pic_CXX='-W c,exportall'
19610 osf3* | osf4* | osf5*)
19611 case $cc_basename in
19613 lt_prog_compiler_wl_CXX='--backend -Wl,'
19616 # Rational C++ 2.4.1
19617 lt_prog_compiler_pic_CXX='-pic'
19620 # Digital/Compaq C++
19621 lt_prog_compiler_wl_CXX='-Wl,'
19622 # Make sure the PIC flag is empty. It appears that all Alpha
19623 # Linux and Compaq Tru64 Unix objects are PIC.
19624 lt_prog_compiler_pic_CXX=
19625 lt_prog_compiler_static_CXX='-non_shared'
19634 case $cc_basename in
19636 # Sun C++ 4.2, 5.x and Centerline C++
19637 lt_prog_compiler_pic_CXX='-KPIC'
19638 lt_prog_compiler_static_CXX='-Bstatic'
19639 lt_prog_compiler_wl_CXX='-Qoption ld '
19642 # Green Hills C++ Compiler
19643 lt_prog_compiler_pic_CXX='-PIC'
19650 case $cc_basename in
19653 lt_prog_compiler_pic_CXX='-pic'
19654 lt_prog_compiler_static_CXX='-Bstatic'
19658 lt_prog_compiler_pic_CXX='-pic'
19665 case $cc_basename in
19667 # NonStop-UX NCC 3.20
19668 lt_prog_compiler_pic_CXX='-KPIC'
19674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19675 case $cc_basename in
19677 lt_prog_compiler_wl_CXX='-Wl,'
19678 lt_prog_compiler_pic_CXX='-KPIC'
19679 lt_prog_compiler_static_CXX='-Bstatic'
19686 lt_prog_compiler_can_build_shared_CXX=no
19691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19692 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19695 # Check to make sure the PIC flag actually works.
19697 if test -n "$lt_prog_compiler_pic_CXX"; then
19699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19701 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 lt_prog_compiler_pic_works_CXX=no
19705 ac_outfile=conftest.$ac_objext
19706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19707 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19708 # Insert the option either (1) after the last *FLAGS variable, or
19709 # (2) before a word containing "conftest.", or (3) at the end.
19710 # Note that $ac_compile itself does not contain backslashes and begins
19711 # with a dollar sign (not a hyphen), so the echo should work correctly.
19712 # The option is referenced via a variable to avoid confusing sed.
19713 lt_compile=`echo "$ac_compile" | $SED \
19714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19716 -e 's:$: $lt_compiler_flag:'`
19717 (eval echo "\"\$as_me:19717: $lt_compile\"" >&5)
19718 (eval "$lt_compile" 2>conftest.err)
19720 cat conftest.err >&5
19721 echo "$as_me:19721: \$? = $ac_status" >&5
19722 if (exit $ac_status) && test -s "$ac_outfile"; then
19723 # The compiler can only warn and ignore the option if not recognized
19724 # So say no if there are warnings other than the usual output.
19725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19728 lt_prog_compiler_pic_works_CXX=yes
19734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19735 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19737 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19738 case $lt_prog_compiler_pic_CXX in
19740 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19743 lt_prog_compiler_pic_CXX=
19744 lt_prog_compiler_can_build_shared_CXX=no
19749 # For platforms which do not support PIC, -DPIC is meaningless:
19751 lt_prog_compiler_pic_CXX=
19754 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19759 # Check to make sure the static flag actually works.
19761 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19764 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 lt_prog_compiler_static_works_CXX=no
19768 save_LDFLAGS="$LDFLAGS"
19769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19770 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19772 # The linker can only warn and ignore the option if not recognized
19773 # So say no if there are warnings
19774 if test -s conftest.err; then
19775 # Append any errors to the config.log.
19776 cat conftest.err 1>&5
19777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19779 if diff conftest.exp conftest.er2 >/dev/null; then
19780 lt_prog_compiler_static_works_CXX=yes
19783 lt_prog_compiler_static_works_CXX=yes
19787 LDFLAGS="$save_LDFLAGS"
19790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19791 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19793 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19796 lt_prog_compiler_static_CXX=
19800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19802 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 lt_cv_prog_compiler_c_o_CXX=no
19806 $rm -r conftest 2>/dev/null
19810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19812 lt_compiler_flag="-o out/conftest2.$ac_objext"
19813 # Insert the option either (1) after the last *FLAGS variable, or
19814 # (2) before a word containing "conftest.", or (3) at the end.
19815 # Note that $ac_compile itself does not contain backslashes and begins
19816 # with a dollar sign (not a hyphen), so the echo should work correctly.
19817 lt_compile=`echo "$ac_compile" | $SED \
19818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19820 -e 's:$: $lt_compiler_flag:'`
19821 (eval echo "\"\$as_me:19821: $lt_compile\"" >&5)
19822 (eval "$lt_compile" 2>out/conftest.err)
19824 cat out/conftest.err >&5
19825 echo "$as_me:19825: \$? = $ac_status" >&5
19826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19828 # The compiler can only warn and ignore the option if not recognized
19829 # So say no if there are warnings
19830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19833 lt_cv_prog_compiler_c_o_CXX=yes
19838 # SGI C++ compiler will create directory out/ii_files/ for
19839 # template instantiation
19840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19841 $rm out/* && rmdir out
19847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19851 hard_links="nottested"
19852 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19853 # do not overwrite the value of need_locks provided by the user
19854 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19860 ln conftest.a conftest.b 2>&5 || hard_links=no
19861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19862 { echo "$as_me:$LINENO: result: $hard_links" >&5
19863 echo "${ECHO_T}$hard_links" >&6; }
19864 if test "$hard_links" = no; then
19865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19876 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19879 # If we're using GNU nm, then we don't want the "-C" option.
19880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19881 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19882 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'
19884 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'
19888 export_symbols_cmds_CXX="$ltdll_cmds"
19891 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'
19894 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19900 test "$ld_shlibs_CXX" = no && can_build_shared=no
19903 # Do we need to explicitly link libc?
19905 case "x$archive_cmds_need_lc_CXX" in
19907 # Assume -lc should be added
19908 archive_cmds_need_lc_CXX=yes
19910 if test "$enable_shared" = yes && test "$GCC" = yes; then
19911 case $archive_cmds_CXX in
19913 # FIXME: we may have to deal with multi-command sequences.
19916 # Test whether the compiler implicitly links with -lc since on some
19917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19918 # to ld, don't add -lc before -lgcc.
19919 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } 2>conftest.err; then
19931 libobjs=conftest.$ac_objext
19933 wl=$lt_prog_compiler_wl_CXX
19934 pic_flag=$lt_prog_compiler_pic_CXX
19940 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19941 allow_undefined_flag_CXX=
19942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19943 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }
19948 archive_cmds_need_lc_CXX=no
19950 archive_cmds_need_lc_CXX=yes
19952 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19954 cat conftest.err 1>&5
19957 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19958 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19965 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19967 library_names_spec=
19968 libname_spec='lib$name'
19972 postuninstall_cmds=
19976 shlibpath_overrides_runpath=unknown
19978 dynamic_linker="$host_os ld.so"
19979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19980 if test "$GCC" = yes; then
19981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19982 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19983 # if the path contains ";" then we assume it to be the separator
19984 # otherwise default to the standard path separator (i.e. ":") - it is
19985 # assumed that no part of a normal pathname contains ";" but that should
19986 # okay in the real world where ";" in dirpaths is itself problematic.
19987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19992 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19994 need_lib_prefix=unknown
19995 hardcode_into_libs=no
19997 # when you set need_version to no, make sure it does not cause -set_version
19998 # flags to be left without arguments
19999 need_version=unknown
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20005 shlibpath_var=LIBPATH
20007 # AIX 3 has no versioning support, so we append a major version to the name.
20008 soname_spec='${libname}${release}${shared_ext}$major'
20015 hardcode_into_libs=yes
20016 if test "$host_cpu" = ia64; then
20017 # AIX 5 supports IA64
20018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20019 shlibpath_var=LD_LIBRARY_PATH
20021 # With GCC up to 2.95.x, collect2 would create an import file
20022 # for dependence libraries. The import file would start with
20023 # the line `#! .'. This would cause the generated library to
20024 # depend on `.', always an invalid library. This was fixed in
20025 # development snapshots of GCC prior to 3.0.
20027 aix4 | aix4.[01] | aix4.[01].*)
20028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20030 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20033 can_build_shared=no
20037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20038 # soname into executable. Probably we can add versioning support to
20039 # collect2, so additional links can be useful in future.
20040 if test "$aix_use_runtimelinking" = yes; then
20041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20042 # instead of lib<name>.a to let people know that these are not
20043 # typical AIX shared libraries.
20044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20046 # We preserve .a as extension for shared libraries through AIX4.2
20047 # and later when we are not doing run time linking.
20048 library_names_spec='${libname}${release}.a $libname.a'
20049 soname_spec='${libname}${release}${shared_ext}$major'
20051 shlibpath_var=LIBPATH
20056 library_names_spec='$libname.ixlibrary $libname.a'
20057 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20058 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'
20062 library_names_spec='${libname}${shared_ext}'
20063 dynamic_linker="$host_os ld.so"
20064 shlibpath_var=LIBRARY_PATH
20070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20071 soname_spec='${libname}${release}${shared_ext}$major'
20072 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20073 shlibpath_var=LD_LIBRARY_PATH
20074 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20075 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20076 # the default ld.so.conf also contains /usr/contrib/lib and
20077 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20078 # libtool to hard-code these into programs
20081 cygwin* | mingw* | pw32*)
20082 version_type=windows
20087 case $GCC,$host_os in
20088 yes,cygwin* | yes,mingw* | yes,pw32*)
20089 library_names_spec='$libname.dll.a'
20090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20091 postinstall_cmds='base_file=`basename \${file}`~
20092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20093 dldir=$destdir/`dirname \$dlpath`~
20094 test -d \$dldir || mkdir -p \$dldir~
20095 $install_prog $dir/$dlname \$dldir/$dlname~
20096 chmod a+x \$dldir/$dlname'
20097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20098 dlpath=$dir/\$dldll~
20100 shlibpath_overrides_runpath=yes
20104 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20105 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20106 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20109 # MinGW DLLs use traditional 'lib' prefix
20110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20111 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20112 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20113 # It is most probably a Windows format PATH printed by
20114 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20115 # path with ; separators, and with drive letters. We can handle the
20116 # drive letters (cygwin fileutils understands them), so leave them,
20117 # especially as we might pass files found there to a mingw objdump,
20118 # which wouldn't understand a cygwinified path. Ahh.
20119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20125 # pw32 DLLs use 'pw' prefix rather than 'lib'
20126 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20132 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20135 dynamic_linker='Win32 ld.exe'
20136 # FIXME: first we should search . and the directory the executable is in
20140 darwin* | rhapsody*)
20141 dynamic_linker="$host_os dyld"
20142 version_type=darwin
20145 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20146 soname_spec='${libname}${release}${major}$shared_ext'
20147 shlibpath_overrides_runpath=yes
20148 shlibpath_var=DYLD_LIBRARY_PATH
20149 shrext_cmds='.dylib'
20150 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20151 if test "$GCC" = yes; then
20152 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"`
20154 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20156 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 shlibpath_var=LD_LIBRARY_PATH
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20177 soname_spec='${libname}${release}${shared_ext}$major'
20178 shlibpath_var=LD_LIBRARY_PATH
20179 shlibpath_overrides_runpath=no
20180 hardcode_into_libs=yes
20181 dynamic_linker='GNU ld.so'
20184 freebsd* | dragonfly*)
20185 # DragonFly does not have aout. When/if they implement a new
20186 # versioning mechanism, adjust this.
20187 if test -x /usr/bin/objformat; then
20188 objformat=`/usr/bin/objformat`
20191 freebsd[123]*) objformat=aout ;;
20192 *) objformat=elf ;;
20195 version_type=freebsd-$objformat
20196 case $version_type in
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20207 shlibpath_var=LD_LIBRARY_PATH
20210 shlibpath_overrides_runpath=yes
20212 freebsd3.[01]* | freebsdelf3.[01]*)
20213 shlibpath_overrides_runpath=yes
20214 hardcode_into_libs=yes
20216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20218 shlibpath_overrides_runpath=no
20219 hardcode_into_libs=yes
20221 freebsd*) # from 4.6 on
20222 shlibpath_overrides_runpath=yes
20223 hardcode_into_libs=yes
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20235 hardcode_into_libs=yes
20238 hpux9* | hpux10* | hpux11*)
20239 # Give a soname corresponding to the major version so that dld.sl refuses to
20240 # link against other versions.
20247 hardcode_into_libs=yes
20248 dynamic_linker="$host_os dld.so"
20249 shlibpath_var=LD_LIBRARY_PATH
20250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 if test "X$HPUX_IA64_MODE" = X32; then
20254 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20262 hardcode_into_libs=yes
20263 dynamic_linker="$host_os dld.sl"
20264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20273 dynamic_linker="$host_os dld.sl"
20274 shlibpath_var=SHLIB_PATH
20275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277 soname_spec='${libname}${release}${shared_ext}$major'
20280 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20281 postinstall_cmds='chmod 555 $lib'
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20289 soname_spec='${libname}${release}${shared_ext}$major'
20290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=no
20293 hardcode_into_libs=yes
20296 irix5* | irix6* | nonstopux*)
20298 nonstopux*) version_type=nonstopux ;;
20300 if test "$lt_cv_prog_gnu_ld" = yes; then
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20311 irix5* | nonstopux*)
20312 libsuff= shlibsuff=
20315 case $LD in # libtool.m4 will add one of these switches to LD
20316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20317 libsuff= shlibsuff= libmagic=32-bit;;
20318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20319 libsuff=32 shlibsuff=N32 libmagic=N32;;
20320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20322 *) libsuff= shlibsuff= libmagic=never-match;;
20326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20327 shlibpath_overrides_runpath=no
20328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20330 hardcode_into_libs=yes
20333 # No shared lib support for Linux oldld, aout, or coff.
20334 linux*oldld* | linux*aout* | linux*coff*)
20338 # This must be Linux ELF.
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 shlibpath_overrides_runpath=no
20348 # This implies no fast_install, which is unacceptable.
20349 # Some rework will be needed to allow for fast_install
20350 # before this can be enabled.
20351 hardcode_into_libs=yes
20353 # Append ld.so.conf contents to the search path
20354 if test -f /etc/ld.so.conf; then
20355 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' ' '`
20356 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20359 # We used to test for /lib/ld.so.1 and disable shared libraries on
20360 # powerpc, because MkLinux only supported shared libraries with the
20361 # GNU dynamic linker. Since this was broken with cross compilers,
20362 # most powerpc-linux boxes support dynamic linking these days and
20363 # people can always --disable-shared, the test was removed, and we
20364 # assume the GNU/Linux dynamic linker is in use.
20365 dynamic_linker='GNU/Linux ld.so'
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 shlibpath_var=LD_LIBRARY_PATH
20375 shlibpath_overrides_runpath=no
20376 hardcode_into_libs=yes
20377 dynamic_linker='GNU ld.so'
20384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20387 dynamic_linker='NetBSD (a.out) ld.so'
20389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 dynamic_linker='NetBSD ld.elf_so'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 shlibpath_overrides_runpath=yes
20395 hardcode_into_libs=yes
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 shlibpath_overrides_runpath=yes
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 soname_spec='${libname}${release}${shared_ext}$major'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20417 sys_lib_dlsearch_path_spec="/usr/lib"
20419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20422 *) need_version=no ;;
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20429 openbsd2.[89] | openbsd2.[89].*)
20430 shlibpath_overrides_runpath=no
20433 shlibpath_overrides_runpath=yes
20437 shlibpath_overrides_runpath=yes
20442 libname_spec='$name'
20445 library_names_spec='$libname${shared_ext} $libname.a'
20446 dynamic_linker='OS/2 ld.exe'
20447 shlibpath_var=LIBPATH
20450 osf3* | osf4* | osf5*)
20454 soname_spec='${libname}${release}${shared_ext}$major'
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=yes
20469 hardcode_into_libs=yes
20470 # ldd complains unless libraries are executable
20471 postinstall_cmds='chmod +x $lib'
20476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20478 shlibpath_var=LD_LIBRARY_PATH
20479 shlibpath_overrides_runpath=yes
20480 if test "$with_gnu_ld" = yes; then
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 case $host_vendor in
20493 shlibpath_overrides_runpath=no
20495 export_dynamic_flag_spec='${wl}-Blargedynsym'
20496 runpath_var=LD_RUN_PATH
20504 shlibpath_overrides_runpath=no
20505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20511 if test -d /usr/nec ;then
20513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20514 soname_spec='$libname${shared_ext}.$major'
20515 shlibpath_var=LD_LIBRARY_PATH
20519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20520 version_type=freebsd-elf
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 hardcode_into_libs=yes
20527 if test "$with_gnu_ld" = yes; then
20528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20529 shlibpath_overrides_runpath=no
20531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20532 shlibpath_overrides_runpath=yes
20535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20539 sys_lib_dlsearch_path_spec='/usr/lib'
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20545 soname_spec='${libname}${release}${shared_ext}$major'
20546 shlibpath_var=LD_LIBRARY_PATH
20553 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20554 echo "${ECHO_T}$dynamic_linker" >&6; }
20555 test "$dynamic_linker" = no && can_build_shared=no
20557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20558 if test "$GCC" = yes; then
20559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20562 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20564 hardcode_action_CXX=
20565 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20566 test -n "$runpath_var_CXX" || \
20567 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20569 # We can hardcode non-existant directories.
20570 if test "$hardcode_direct_CXX" != no &&
20571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20572 # have to relink, otherwise we might link with an installed library
20573 # when we should be linking with a yet-to-be-installed one
20574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20575 test "$hardcode_minus_L_CXX" != no; then
20576 # Linking always hardcodes the temporary library directory.
20577 hardcode_action_CXX=relink
20579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20580 hardcode_action_CXX=immediate
20583 # We cannot hardcode anything, or else we can only hardcode existing
20585 hardcode_action_CXX=unsupported
20587 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20588 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20590 if test "$hardcode_action_CXX" = relink; then
20591 # Fast installation is not supported
20592 enable_fast_install=no
20593 elif test "$shlibpath_overrides_runpath" = yes ||
20594 test "$enable_shared" = no; then
20595 # Fast installation is not necessary
20596 enable_fast_install=needless
20600 # The else clause should only fire when bootstrapping the
20601 # libtool distribution, otherwise you forgot to ship ltmain.sh
20602 # with your package, and you will get complaints that there are
20603 # no rules to generate ltmain.sh.
20604 if test -f "$ltmain"; then
20605 # See if we are running on zsh, and set the options which allow our commands through
20606 # without removal of \ escapes.
20607 if test -n "${ZSH_VERSION+set}" ; then
20608 setopt NO_GLOB_SUBST
20610 # Now quote all the things that may contain metacharacters while being
20611 # careful not to overquote the AC_SUBSTed values. We take copies of the
20612 # variables and quote the copies for generation of the libtool script.
20613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20617 deplibs_check_method reload_flag reload_cmds need_locks \
20618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20619 lt_cv_sys_global_symbol_to_c_name_address \
20620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20621 old_postinstall_cmds old_postuninstall_cmds \
20625 lt_prog_compiler_wl_CXX \
20626 lt_prog_compiler_pic_CXX \
20627 lt_prog_compiler_static_CXX \
20628 lt_prog_compiler_no_builtin_flag_CXX \
20629 export_dynamic_flag_spec_CXX \
20630 thread_safe_flag_spec_CXX \
20631 whole_archive_flag_spec_CXX \
20632 enable_shared_with_static_runtimes_CXX \
20633 old_archive_cmds_CXX \
20634 old_archive_from_new_cmds_CXX \
20635 predep_objects_CXX \
20636 postdep_objects_CXX \
20639 compiler_lib_search_path_CXX \
20641 archive_expsym_cmds_CXX \
20642 postinstall_cmds_CXX \
20643 postuninstall_cmds_CXX \
20644 old_archive_from_expsyms_cmds_CXX \
20645 allow_undefined_flag_CXX \
20646 no_undefined_flag_CXX \
20647 export_symbols_cmds_CXX \
20648 hardcode_libdir_flag_spec_CXX \
20649 hardcode_libdir_flag_spec_ld_CXX \
20650 hardcode_libdir_separator_CXX \
20651 hardcode_automatic_CXX \
20653 module_expsym_cmds_CXX \
20654 lt_cv_prog_compiler_c_o_CXX \
20655 exclude_expsyms_CXX \
20656 include_expsyms_CXX; do
20659 old_archive_cmds_CXX | \
20660 old_archive_from_new_cmds_CXX | \
20661 archive_cmds_CXX | \
20662 archive_expsym_cmds_CXX | \
20663 module_cmds_CXX | \
20664 module_expsym_cmds_CXX | \
20665 old_archive_from_expsyms_cmds_CXX | \
20666 export_symbols_cmds_CXX | \
20667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20668 postinstall_cmds | postuninstall_cmds | \
20669 old_postinstall_cmds | old_postuninstall_cmds | \
20670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20671 # Double-quote double-evaled strings.
20672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20681 *'\$0 --fallback-echo"')
20682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20688 cat <<__EOF__ >> "$cfgfile"
20689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20693 # Shell to use when invoking shell scripts.
20696 # Whether or not to build shared libraries.
20697 build_libtool_libs=$enable_shared
20699 # Whether or not to build static libraries.
20700 build_old_libs=$enable_static
20702 # Whether or not to add -lc for building shared libraries.
20703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20705 # Whether or not to disallow shared libs when runtime libs are static
20706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20708 # Whether or not to optimize for fast installation.
20709 fast_install=$enable_fast_install
20712 host_alias=$host_alias
20716 # The build system.
20717 build_alias=$build_alias
20721 # An echo program that does not interpret backslashes.
20726 AR_FLAGS=$lt_AR_FLAGS
20731 # LTCC compiler flags.
20732 LTCFLAGS=$lt_LTCFLAGS
20734 # A language-specific compiler.
20735 CC=$lt_compiler_CXX
20737 # Is the compiler the GNU C compiler?
20743 # The linker used to build libraries.
20746 # Whether we need hard or soft links.
20749 # A BSD-compatible nm program.
20752 # A symbol stripping program
20755 # Used to examine libraries when file_magic_cmd begins "file"
20756 MAGIC_CMD=$MAGIC_CMD
20758 # Used on cygwin: DLL creation program.
20761 # Used on cygwin: object dumper.
20764 # Used on cygwin: assembler.
20767 # The name of the directory that contains temporary libtool files.
20770 # How to create reloadable object files.
20771 reload_flag=$lt_reload_flag
20772 reload_cmds=$lt_reload_cmds
20774 # How to pass a linker flag through the compiler.
20775 wl=$lt_lt_prog_compiler_wl_CXX
20777 # Object file suffix (normally "o").
20778 objext="$ac_objext"
20780 # Old archive suffix (normally "a").
20783 # Shared library suffix (normally ".so").
20784 shrext_cmds='$shrext_cmds'
20786 # Executable file suffix (normally "").
20789 # Additional compiler flags for building library objects.
20790 pic_flag=$lt_lt_prog_compiler_pic_CXX
20793 # What is the maximum length of a command?
20794 max_cmd_len=$lt_cv_sys_max_cmd_len
20796 # Does compiler simultaneously support -c and -o options?
20797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20799 # Must we lock files when doing compilation?
20800 need_locks=$lt_need_locks
20802 # Do we need the lib prefix for modules?
20803 need_lib_prefix=$need_lib_prefix
20805 # Do we need a version for libraries?
20806 need_version=$need_version
20808 # Whether dlopen is supported.
20809 dlopen_support=$enable_dlopen
20811 # Whether dlopen of programs is supported.
20812 dlopen_self=$enable_dlopen_self
20814 # Whether dlopen of statically linked programs is supported.
20815 dlopen_self_static=$enable_dlopen_self_static
20817 # Compiler flag to prevent dynamic linking.
20818 link_static_flag=$lt_lt_prog_compiler_static_CXX
20820 # Compiler flag to turn off builtin functions.
20821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20823 # Compiler flag to allow reflexive dlopens.
20824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20826 # Compiler flag to generate shared objects directly from archives.
20827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20829 # Compiler flag to generate thread-safe objects.
20830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20832 # Library versioning type.
20833 version_type=$version_type
20835 # Format of library name prefix.
20836 libname_spec=$lt_libname_spec
20838 # List of archive names. First name is the real one, the rest are links.
20839 # The last name is the one that the linker finds with -lNAME.
20840 library_names_spec=$lt_library_names_spec
20842 # The coded name of the library, if different from the real name.
20843 soname_spec=$lt_soname_spec
20845 # Commands used to build and install an old-style archive.
20847 old_archive_cmds=$lt_old_archive_cmds_CXX
20848 old_postinstall_cmds=$lt_old_postinstall_cmds
20849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20851 # Create an old-style archive from a shared archive.
20852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20854 # Create a temporary old-style archive to link instead of a shared archive.
20855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20857 # Commands used to build and install a shared archive.
20858 archive_cmds=$lt_archive_cmds_CXX
20859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20860 postinstall_cmds=$lt_postinstall_cmds
20861 postuninstall_cmds=$lt_postuninstall_cmds
20863 # Commands used to build a loadable module (assumed same as above if empty)
20864 module_cmds=$lt_module_cmds_CXX
20865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20867 # Commands to strip libraries.
20868 old_striplib=$lt_old_striplib
20869 striplib=$lt_striplib
20871 # Dependencies to place before the objects being linked to create a
20873 predep_objects=$lt_predep_objects_CXX
20875 # Dependencies to place after the objects being linked to create a
20877 postdep_objects=$lt_postdep_objects_CXX
20879 # Dependencies to place before the objects being linked to create a
20881 predeps=$lt_predeps_CXX
20883 # Dependencies to place after the objects being linked to create a
20885 postdeps=$lt_postdeps_CXX
20887 # The library search path used internally by the compiler when linking
20888 # a shared library.
20889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20891 # Method to check whether dependent libraries are shared objects.
20892 deplibs_check_method=$lt_deplibs_check_method
20894 # Command to use when deplibs_check_method == file_magic.
20895 file_magic_cmd=$lt_file_magic_cmd
20897 # Flag that allows shared libraries with undefined symbols to be built.
20898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20900 # Flag that forces no undefined symbols.
20901 no_undefined_flag=$lt_no_undefined_flag_CXX
20903 # Commands used to finish a libtool library installation in a directory.
20904 finish_cmds=$lt_finish_cmds
20906 # Same as above, but a single script fragment to be evaled but not shown.
20907 finish_eval=$lt_finish_eval
20909 # Take the output of nm and produce a listing of raw symbols and C names.
20910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20912 # Transform the output of nm in a proper C declaration
20913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20915 # Transform the output of nm in a C name address pair
20916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20918 # This is the shared library runtime path variable.
20919 runpath_var=$runpath_var
20921 # This is the shared library path variable.
20922 shlibpath_var=$shlibpath_var
20924 # Is shlibpath searched before the hard-coded library search path?
20925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20927 # How to hardcode a shared library path into an executable.
20928 hardcode_action=$hardcode_action_CXX
20930 # Whether we should hardcode library paths into libraries.
20931 hardcode_into_libs=$hardcode_into_libs
20933 # Flag to hardcode \$libdir into a binary during linking.
20934 # This must work even if \$libdir does not exist.
20935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20937 # If ld is used when linking, flag to hardcode \$libdir into
20938 # a binary during linking. This must work even if \$libdir does
20940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20942 # Whether we need a single -rpath flag with a separated argument.
20943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20946 # resulting binary.
20947 hardcode_direct=$hardcode_direct_CXX
20949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20950 # resulting binary.
20951 hardcode_minus_L=$hardcode_minus_L_CXX
20953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20954 # the resulting binary.
20955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20957 # Set to yes if building a shared library automatically hardcodes DIR into the library
20958 # and all subsequent libraries and executables linked against it.
20959 hardcode_automatic=$hardcode_automatic_CXX
20961 # Variables whose values should be saved in libtool wrapper scripts and
20962 # restored at relink time.
20963 variables_saved_for_relink="$variables_saved_for_relink"
20965 # Whether libtool must link a program against all its dependency libraries.
20966 link_all_deplibs=$link_all_deplibs_CXX
20968 # Compile-time system search path for libraries
20969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20971 # Run-time system search path for libraries
20972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20974 # Fix the shell variable \$srcfile for the compiler.
20975 fix_srcfile_path="$fix_srcfile_path_CXX"
20977 # Set to yes if exported symbols are required.
20978 always_export_symbols=$always_export_symbols_CXX
20980 # The commands to list exported symbols.
20981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20983 # The commands to extract the exported symbol list from a shared archive.
20984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20986 # Symbols that should not be listed in the preloaded symbols.
20987 exclude_expsyms=$lt_exclude_expsyms_CXX
20989 # Symbols that must always be exported.
20990 include_expsyms=$lt_include_expsyms_CXX
20992 # ### END LIBTOOL TAG CONFIG: $tagname
20998 # If there is no Makefile yet, we rely on a make rule to execute
20999 # `config.status --recheck' to rerun these tests and create the
21000 # libtool script then.
21001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21002 if test -f "$ltmain_in"; then
21003 test -f Makefile && make "$ltmain"
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21018 with_gnu_ldcxx=$with_gnu_ld
21019 with_gnu_ld=$lt_save_with_gnu_ld
21020 lt_cv_path_LDCXX=$lt_cv_path_LD
21021 lt_cv_path_LD=$lt_save_path_LD
21022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21031 if test -n "$F77" && test "X$F77" != "Xno"; then
21034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21039 archive_cmds_need_lc_F77=no
21040 allow_undefined_flag_F77=
21041 always_export_symbols_F77=no
21042 archive_expsym_cmds_F77=
21043 export_dynamic_flag_spec_F77=
21044 hardcode_direct_F77=no
21045 hardcode_libdir_flag_spec_F77=
21046 hardcode_libdir_flag_spec_ld_F77=
21047 hardcode_libdir_separator_F77=
21048 hardcode_minus_L_F77=no
21049 hardcode_automatic_F77=no
21051 module_expsym_cmds_F77=
21052 link_all_deplibs_F77=unknown
21053 old_archive_cmds_F77=$old_archive_cmds
21054 no_undefined_flag_F77=
21055 whole_archive_flag_spec_F77=
21056 enable_shared_with_static_runtimes_F77=no
21058 # Source file extension for f77 test sources.
21061 # Object file extension for compiled f77 test sources.
21065 # Code to be used in simple compile tests
21066 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21068 # Code to be used in simple link tests
21069 lt_simple_link_test_code=" program t\n end\n"
21071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21073 # If no C compiler was specified, use CC.
21076 # If no C compiler flags were specified, use CFLAGS.
21077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21079 # Allow CC to be a program name with arguments.
21083 # save warnings/boilerplate of simple test code
21084 ac_outfile=conftest.$ac_objext
21085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21087 _lt_compiler_boilerplate=`cat conftest.err`
21090 ac_outfile=conftest.$ac_objext
21091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21093 _lt_linker_boilerplate=`cat conftest.err`
21097 # Allow CC to be a program name with arguments.
21102 for cc_temp in $compiler""; do
21104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21113 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21115 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21116 echo "${ECHO_T}$can_build_shared" >&6; }
21118 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21120 test "$can_build_shared" = "no" && enable_shared=no
21122 # On AIX, shared libraries and static libraries use the same namespace, and
21123 # are all built from PIC.
21126 test "$enable_shared" = yes && enable_static=no
21127 if test -n "$RANLIB"; then
21128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21129 postinstall_cmds='$RANLIB $lib'
21133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21134 test "$enable_shared" = yes && enable_static=no
21138 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21139 echo "${ECHO_T}$enable_shared" >&6; }
21141 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21143 # Make sure either enable_shared or enable_static is yes.
21144 test "$enable_shared" = yes || enable_static=yes
21145 { echo "$as_me:$LINENO: result: $enable_static" >&5
21146 echo "${ECHO_T}$enable_static" >&6; }
21151 lt_prog_compiler_wl_F77=
21152 lt_prog_compiler_pic_F77=
21153 lt_prog_compiler_static_F77=
21155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21158 if test "$GCC" = yes; then
21159 lt_prog_compiler_wl_F77='-Wl,'
21160 lt_prog_compiler_static_F77='-static'
21164 # All AIX code is PIC.
21165 if test "$host_cpu" = ia64; then
21166 # AIX 5 now supports IA64 processor
21167 lt_prog_compiler_static_F77='-Bstatic'
21172 # FIXME: we need at least 68020 code to build shared libraries, but
21173 # adding the `-m68020' flag to GCC prevents building anything better,
21175 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21179 # PIC is the default for these OSes.
21182 mingw* | pw32* | os2*)
21183 # This hack is so that the source file can tell whether it is being
21184 # built for inclusion in a dll (and should export symbols for example).
21185 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21188 darwin* | rhapsody*)
21189 # PIC is the default on this platform
21190 # Common symbols not allowed in MH_DYLIB files
21191 lt_prog_compiler_pic_F77='-fno-common'
21195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21196 # Instead, we relocate shared libraries at runtime.
21200 # Just because we use GCC doesn't mean we suddenly get shared libraries
21201 # on systems that don't support them.
21202 lt_prog_compiler_can_build_shared_F77=no
21207 if test -d /usr/nec; then
21208 lt_prog_compiler_pic_F77=-Kconform_pic
21213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21214 # not for PA HP-UX.
21220 lt_prog_compiler_pic_F77='-fPIC'
21226 lt_prog_compiler_pic_F77='-fPIC'
21230 # PORTME Check for flag to pass linker flags through the system compiler.
21233 lt_prog_compiler_wl_F77='-Wl,'
21234 if test "$host_cpu" = ia64; then
21235 # AIX 5 now supports IA64 processor
21236 lt_prog_compiler_static_F77='-Bstatic'
21238 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21242 # PIC is the default on this platform
21243 # Common symbols not allowed in MH_DYLIB files
21244 case $cc_basename in
21246 lt_prog_compiler_pic_F77='-qnocommon'
21247 lt_prog_compiler_wl_F77='-Wl,'
21252 mingw* | pw32* | os2*)
21253 # This hack is so that the source file can tell whether it is being
21254 # built for inclusion in a dll (and should export symbols for example).
21255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21258 hpux9* | hpux10* | hpux11*)
21259 lt_prog_compiler_wl_F77='-Wl,'
21260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21261 # not for PA HP-UX.
21267 lt_prog_compiler_pic_F77='+Z'
21270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21271 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21274 irix5* | irix6* | nonstopux*)
21275 lt_prog_compiler_wl_F77='-Wl,'
21276 # PIC (with -KPIC) is the default.
21277 lt_prog_compiler_static_F77='-non_shared'
21281 lt_prog_compiler_pic_F77='-KPIC'
21282 lt_prog_compiler_static_F77='-Bstatic'
21286 case $cc_basename in
21288 lt_prog_compiler_wl_F77='-Wl,'
21289 lt_prog_compiler_pic_F77='-KPIC'
21290 lt_prog_compiler_static_F77='-static'
21292 pgcc* | pgf77* | pgf90* | pgf95*)
21293 # Portland Group compilers (*not* the Pentium gcc compiler,
21294 # which looks to be a dead project)
21295 lt_prog_compiler_wl_F77='-Wl,'
21296 lt_prog_compiler_pic_F77='-fpic'
21297 lt_prog_compiler_static_F77='-Bstatic'
21300 lt_prog_compiler_wl_F77='-Wl,'
21301 # All Alpha code is PIC.
21302 lt_prog_compiler_static_F77='-non_shared'
21307 osf3* | osf4* | osf5*)
21308 lt_prog_compiler_wl_F77='-Wl,'
21309 # All OSF/1 code is PIC.
21310 lt_prog_compiler_static_F77='-non_shared'
21314 lt_prog_compiler_pic_F77='-KPIC'
21315 lt_prog_compiler_static_F77='-Bstatic'
21316 case $cc_basename in
21317 f77* | f90* | f95*)
21318 lt_prog_compiler_wl_F77='-Qoption ld ';;
21320 lt_prog_compiler_wl_F77='-Wl,';;
21325 lt_prog_compiler_wl_F77='-Qoption ld '
21326 lt_prog_compiler_pic_F77='-PIC'
21327 lt_prog_compiler_static_F77='-Bstatic'
21330 sysv4 | sysv4.2uw2* | sysv4.3*)
21331 lt_prog_compiler_wl_F77='-Wl,'
21332 lt_prog_compiler_pic_F77='-KPIC'
21333 lt_prog_compiler_static_F77='-Bstatic'
21337 if test -d /usr/nec ;then
21338 lt_prog_compiler_pic_F77='-Kconform_pic'
21339 lt_prog_compiler_static_F77='-Bstatic'
21343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 lt_prog_compiler_pic_F77='-KPIC'
21346 lt_prog_compiler_static_F77='-Bstatic'
21350 lt_prog_compiler_wl_F77='-Wl,'
21351 lt_prog_compiler_can_build_shared_F77=no
21355 lt_prog_compiler_pic_F77='-pic'
21356 lt_prog_compiler_static_F77='-Bstatic'
21360 lt_prog_compiler_can_build_shared_F77=no
21365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21369 # Check to make sure the PIC flag actually works.
21371 if test -n "$lt_prog_compiler_pic_F77"; then
21373 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21375 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21376 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 lt_prog_compiler_pic_works_F77=no
21379 ac_outfile=conftest.$ac_objext
21380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21381 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21382 # Insert the option either (1) after the last *FLAGS variable, or
21383 # (2) before a word containing "conftest.", or (3) at the end.
21384 # Note that $ac_compile itself does not contain backslashes and begins
21385 # with a dollar sign (not a hyphen), so the echo should work correctly.
21386 # The option is referenced via a variable to avoid confusing sed.
21387 lt_compile=`echo "$ac_compile" | $SED \
21388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21390 -e 's:$: $lt_compiler_flag:'`
21391 (eval echo "\"\$as_me:21391: $lt_compile\"" >&5)
21392 (eval "$lt_compile" 2>conftest.err)
21394 cat conftest.err >&5
21395 echo "$as_me:21395: \$? = $ac_status" >&5
21396 if (exit $ac_status) && test -s "$ac_outfile"; then
21397 # The compiler can only warn and ignore the option if not recognized
21398 # So say no if there are warnings other than the usual output.
21399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21402 lt_prog_compiler_pic_works_F77=yes
21408 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21409 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21411 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21412 case $lt_prog_compiler_pic_F77 in
21414 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21417 lt_prog_compiler_pic_F77=
21418 lt_prog_compiler_can_build_shared_F77=no
21423 # For platforms which do not support PIC, -DPIC is meaningless:
21425 lt_prog_compiler_pic_F77=
21428 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21433 # Check to make sure the static flag actually works.
21435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21436 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21438 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 lt_prog_compiler_static_works_F77=no
21442 save_LDFLAGS="$LDFLAGS"
21443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21446 # The linker can only warn and ignore the option if not recognized
21447 # So say no if there are warnings
21448 if test -s conftest.err; then
21449 # Append any errors to the config.log.
21450 cat conftest.err 1>&5
21451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21453 if diff conftest.exp conftest.er2 >/dev/null; then
21454 lt_prog_compiler_static_works_F77=yes
21457 lt_prog_compiler_static_works_F77=yes
21461 LDFLAGS="$save_LDFLAGS"
21464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21465 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21467 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21470 lt_prog_compiler_static_F77=
21474 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 lt_cv_prog_compiler_c_o_F77=no
21480 $rm -r conftest 2>/dev/null
21484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21486 lt_compiler_flag="-o out/conftest2.$ac_objext"
21487 # Insert the option either (1) after the last *FLAGS variable, or
21488 # (2) before a word containing "conftest.", or (3) at the end.
21489 # Note that $ac_compile itself does not contain backslashes and begins
21490 # with a dollar sign (not a hyphen), so the echo should work correctly.
21491 lt_compile=`echo "$ac_compile" | $SED \
21492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21494 -e 's:$: $lt_compiler_flag:'`
21495 (eval echo "\"\$as_me:21495: $lt_compile\"" >&5)
21496 (eval "$lt_compile" 2>out/conftest.err)
21498 cat out/conftest.err >&5
21499 echo "$as_me:21499: \$? = $ac_status" >&5
21500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21502 # The compiler can only warn and ignore the option if not recognized
21503 # So say no if there are warnings
21504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21507 lt_cv_prog_compiler_c_o_F77=yes
21512 # SGI C++ compiler will create directory out/ii_files/ for
21513 # template instantiation
21514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21515 $rm out/* && rmdir out
21521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21525 hard_links="nottested"
21526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21527 # do not overwrite the value of need_locks provided by the user
21528 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21534 ln conftest.a conftest.b 2>&5 || hard_links=no
21535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21536 { echo "$as_me:$LINENO: result: $hard_links" >&5
21537 echo "${ECHO_T}$hard_links" >&6; }
21538 if test "$hard_links" = no; then
21539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21547 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21551 allow_undefined_flag_F77=
21552 enable_shared_with_static_runtimes_F77=no
21554 archive_expsym_cmds_F77=
21555 old_archive_From_new_cmds_F77=
21556 old_archive_from_expsyms_cmds_F77=
21557 export_dynamic_flag_spec_F77=
21558 whole_archive_flag_spec_F77=
21559 thread_safe_flag_spec_F77=
21560 hardcode_libdir_flag_spec_F77=
21561 hardcode_libdir_flag_spec_ld_F77=
21562 hardcode_libdir_separator_F77=
21563 hardcode_direct_F77=no
21564 hardcode_minus_L_F77=no
21565 hardcode_shlibpath_var_F77=unsupported
21566 link_all_deplibs_F77=unknown
21567 hardcode_automatic_F77=no
21569 module_expsym_cmds_F77=
21570 always_export_symbols_F77=no
21571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21572 # include_expsyms should be a list of space-separated symbols to be *always*
21573 # included in the symbol list
21574 include_expsyms_F77=
21575 # exclude_expsyms can be an extended regexp of symbols to exclude
21576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21578 # as well as any symbol that contains `d'.
21579 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21581 # platforms (ab)use it in PIC code, but their linkers get confused if
21582 # the symbol is explicitly referenced. Since portable code cannot
21583 # rely on this symbol name, it's probably fine to never include it in
21584 # preloaded symbol tables.
21585 extract_expsyms_cmds=
21586 # Just being paranoid about ensuring that cc_basename is set.
21587 for cc_temp in $compiler""; do
21589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21598 cygwin* | mingw* | pw32*)
21599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21600 # When not using gcc, we currently assume that we are using
21601 # Microsoft Visual C++.
21602 if test "$GCC" != yes; then
21607 # we just hope/assume this is gcc and not c89 (= MSVC++)
21616 if test "$with_gnu_ld" = yes; then
21617 # If archive_cmds runs LD, not CC, wlarc should be empty
21620 # Set some defaults for GNU ld with shared library support. These
21621 # are reset later if shared libraries are not supported. Putting them
21622 # here allows them to be overridden if necessary.
21623 runpath_var=LD_RUN_PATH
21624 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21625 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21626 # ancient GNU ld didn't support --whole-archive et. al.
21627 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21628 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21630 whole_archive_flag_spec_F77=
21632 supports_anon_versioning=no
21633 case `$LD -v 2>/dev/null` in
21634 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21637 *\ 2.11.*) ;; # other 2.11 versions
21638 *) supports_anon_versioning=yes ;;
21641 # See if GNU ld supports shared libraries.
21643 aix3* | aix4* | aix5*)
21644 # On AIX/PPC, the GNU linker is very broken
21645 if test "$host_cpu" != ia64; then
21649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21650 *** to be unable to reliably create shared libraries on AIX.
21651 *** Therefore, libtool is disabling shared libraries support. If you
21652 *** really care for shared libraries, you may want to modify your PATH
21653 *** so that a non-GNU linker is found, and then restart.
21660 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)'
21661 hardcode_libdir_flag_spec_F77='-L$libdir'
21662 hardcode_minus_L_F77=yes
21664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21665 # that the semantics of dynamic libraries on AmigaOS, at least up
21666 # to version 4, is to share data among multiple programs linked
21667 # with the same dynamic library. Since this doesn't match the
21668 # behavior of shared libraries on other platforms, we can't use
21674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21675 allow_undefined_flag_F77=unsupported
21676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21677 # support --undefined. This deserves some investigation. FIXME
21678 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21684 cygwin* | mingw* | pw32*)
21685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21686 # as there is no search path for DLLs.
21687 hardcode_libdir_flag_spec_F77='-L$libdir'
21688 allow_undefined_flag_F77=unsupported
21689 always_export_symbols_F77=no
21690 enable_shared_with_static_runtimes_F77=yes
21691 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21695 # If the export-symbols file already is a .def file (1st line
21696 # is EXPORTS), use it as is; otherwise, prepend...
21697 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21698 cp $export_symbols $output_objdir/$soname.def;
21700 echo EXPORTS > $output_objdir/$soname.def;
21701 cat $export_symbols >> $output_objdir/$soname.def;
21703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21710 hardcode_direct_F77=no
21711 hardcode_shlibpath_var_F77=no
21712 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21713 export_dynamic_flag_spec_F77='${wl}-E'
21714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21715 # Instead, shared libraries are loaded at an image base (0x10000000 by
21716 # default) and relocated if they conflict, which is a slow very memory
21717 # consuming and fragmenting process. To avoid this, we pick a random,
21718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21720 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'
21721 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'
21725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21727 case $cc_basename,$host_cpu in
21728 pgcc*) # Portland Group C compiler
21729 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'
21730 tmp_addflag=' $pic_flag'
21732 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21733 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'
21734 tmp_addflag=' $pic_flag -Mnomain' ;;
21735 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21736 tmp_addflag=' -i_dynamic' ;;
21737 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21738 tmp_addflag=' -i_dynamic -nofor_main' ;;
21739 ifc* | ifort*) # Intel Fortran compiler
21740 tmp_addflag=' -nofor_main' ;;
21742 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21744 if test $supports_anon_versioning = yes; then
21745 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21747 $echo "local: *; };" >> $output_objdir/$libname.ver~
21748 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21757 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21760 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21761 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21766 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21771 *** create shared libraries on Solaris systems. Therefore, libtool
21772 *** is disabling shared libraries support. We urge you to upgrade GNU
21773 *** binutils to release 2.9.1 or newer. Another option is to modify
21774 *** your PATH or compiler configuration so that the native linker is
21775 *** used, and then restart.
21778 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21779 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21780 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21787 case `$LD -v 2>&1` in
21788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21793 *** reliably create shared libraries on SCO systems. Therefore, libtool
21794 *** is disabling shared libraries support. We urge you to upgrade GNU
21795 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21796 *** your PATH or compiler configuration so that the native linker is
21797 *** used, and then restart.
21802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21803 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21804 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21805 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21814 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21816 hardcode_direct_F77=yes
21817 hardcode_shlibpath_var_F77=no
21821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21822 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21823 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21830 if test "$ld_shlibs_F77" = no; then
21832 hardcode_libdir_flag_spec_F77=
21833 export_dynamic_flag_spec_F77=
21834 whole_archive_flag_spec_F77=
21837 # PORTME fill in a description of your system's linker (not GNU ld)
21840 allow_undefined_flag_F77=unsupported
21841 always_export_symbols_F77=yes
21842 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'
21843 # Note: this linker hardcodes the directories in LIBPATH if there
21844 # are no directories specified by -L.
21845 hardcode_minus_L_F77=yes
21846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21847 # Neither direct hardcoding nor static linking is supported with a
21849 hardcode_direct_F77=unsupported
21854 if test "$host_cpu" = ia64; then
21855 # On IA64, the linker does run time linking by default, so we don't
21856 # have to do anything special.
21857 aix_use_runtimelinking=no
21858 exp_sym_flag='-Bexport'
21861 # If we're using GNU nm, then we don't want the "-C" option.
21862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21864 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'
21866 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'
21868 aix_use_runtimelinking=no
21870 # Test if we are trying to use run time linking or normal
21871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21872 # need to do runtime linking.
21873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21874 for ld_flag in $LDFLAGS; do
21875 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21876 aix_use_runtimelinking=yes
21883 exp_sym_flag='-bexport'
21884 no_entry_flag='-bnoentry'
21887 # When large executables or shared objects are built, AIX ld can
21888 # have problems creating the table of contents. If linking a library
21889 # or program results in "error TOC overflow" add -mminimal-toc to
21890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21893 archive_cmds_F77=''
21894 hardcode_direct_F77=yes
21895 hardcode_libdir_separator_F77=':'
21896 link_all_deplibs_F77=yes
21898 if test "$GCC" = yes; then
21899 case $host_os in aix4.[012]|aix4.[012].*)
21900 # We only want to do this on AIX 4.2 and lower, the check
21901 # below for broken collect2 doesn't work under 4.3+
21902 collect2name=`${CC} -print-prog-name=collect2`
21903 if test -f "$collect2name" && \
21904 strings "$collect2name" | grep resolve_lib_name >/dev/null
21906 # We have reworked collect2
21907 hardcode_direct_F77=yes
21909 # We have old collect2
21910 hardcode_direct_F77=unsupported
21911 # It fails to find uninstalled libraries when the uninstalled
21912 # path is not listed in the libpath. Setting hardcode_minus_L
21913 # to unsupported forces relinking
21914 hardcode_minus_L_F77=yes
21915 hardcode_libdir_flag_spec_F77='-L$libdir'
21916 hardcode_libdir_separator_F77=
21920 shared_flag='-shared'
21921 if test "$aix_use_runtimelinking" = yes; then
21922 shared_flag="$shared_flag "'${wl}-G'
21926 if test "$host_cpu" = ia64; then
21927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21928 # chokes on -Wl,-G. The following line is correct:
21931 if test "$aix_use_runtimelinking" = yes; then
21932 shared_flag='${wl}-G'
21934 shared_flag='${wl}-bM:SRE'
21939 # It seems that -bexpall does not export symbols beginning with
21940 # underscore (_), so it is better to generate a list of symbols to export.
21941 always_export_symbols_F77=yes
21942 if test "$aix_use_runtimelinking" = yes; then
21943 # Warning - without using the other runtime loading flags (-brtl),
21944 # -berok will link without error, but may produce a broken library.
21945 allow_undefined_flag_F77='-berok'
21946 # Determine the default libpath from the value encoded in an empty executable.
21947 cat >conftest.$ac_ext <<_ACEOF
21952 rm -f conftest.$ac_objext conftest$ac_exeext
21953 if { (ac_try="$ac_link"
21954 case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959 (eval "$ac_link") 2>conftest.er1
21961 grep -v '^ *+' conftest.er1 >conftest.err
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } &&
21966 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21967 { (case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_try") 2>&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; } &&
21976 { ac_try='test -s conftest$ac_exeext'
21977 { (case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_try") 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21989 # Check for a 64-bit object if we didn't find anything.
21990 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; }
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21999 rm -f core conftest.err conftest.$ac_objext \
22000 conftest$ac_exeext conftest.$ac_ext
22001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22003 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22004 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"
22006 if test "$host_cpu" = ia64; then
22007 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22008 allow_undefined_flag_F77="-z nodefs"
22009 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"
22011 # Determine the default libpath from the value encoded in an empty executable.
22012 cat >conftest.$ac_ext <<_ACEOF
22017 rm -f conftest.$ac_objext conftest$ac_exeext
22018 if { (ac_try="$ac_link"
22019 case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_link") 2>conftest.er1
22026 grep -v '^ *+' conftest.er1 >conftest.err
22028 cat conftest.err >&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } &&
22031 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22032 { (case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_try") 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_try") 2>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; }; then
22052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22054 # Check for a 64-bit object if we didn't find anything.
22055 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; }
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22068 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22069 # Warning - without using the other run time loading flags,
22070 # -berok will link without error, but may produce a broken library.
22071 no_undefined_flag_F77=' ${wl}-bernotok'
22072 allow_undefined_flag_F77=' ${wl}-berok'
22073 # Exported symbols can be pulled into shared objects from archives
22074 whole_archive_flag_spec_F77='$convenience'
22075 archive_cmds_need_lc_F77=yes
22076 # This is similar to how AIX traditionally builds its shared libraries.
22077 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'
22083 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)'
22084 hardcode_libdir_flag_spec_F77='-L$libdir'
22085 hardcode_minus_L_F77=yes
22086 # see comment about different semantics on the GNU ld section
22091 export_dynamic_flag_spec_F77=-rdynamic
22094 cygwin* | mingw* | pw32*)
22095 # When not using gcc, we currently assume that we are using
22096 # Microsoft Visual C++.
22097 # hardcode_libdir_flag_spec is actually meaningless, as there is
22098 # no search path for DLLs.
22099 hardcode_libdir_flag_spec_F77=' '
22100 allow_undefined_flag_F77=unsupported
22101 # Tell ltmain to make .lib files, not .a files.
22103 # Tell ltmain to make .dll files, not .so files.
22105 # FIXME: Setting linknames here is a bad hack.
22106 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22107 # The linker will automatically build a .lib file if we build a DLL.
22108 old_archive_From_new_cmds_F77='true'
22109 # FIXME: Should let the user specify the lib program.
22110 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22111 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22112 enable_shared_with_static_runtimes_F77=yes
22115 darwin* | rhapsody*)
22117 rhapsody* | darwin1.[012])
22118 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22121 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22122 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22124 case ${MACOSX_DEPLOYMENT_TARGET} in
22126 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22129 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22135 archive_cmds_need_lc_F77=no
22136 hardcode_direct_F77=no
22137 hardcode_automatic_F77=yes
22138 hardcode_shlibpath_var_F77=unsupported
22139 whole_archive_flag_spec_F77=''
22140 link_all_deplibs_F77=yes
22141 if test "$GCC" = yes ; then
22142 output_verbose_link_cmd='echo'
22143 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22144 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22145 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22146 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}'
22147 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}'
22149 case $cc_basename in
22151 output_verbose_link_cmd='echo'
22152 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22153 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22155 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}'
22156 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}'
22166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22167 hardcode_libdir_flag_spec_F77='-L$libdir'
22168 hardcode_shlibpath_var_F77=no
22175 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22176 # support. Future versions do this automatically, but an explicit c++rt0.o
22177 # does not break anything, and helps significantly (at the cost of a little
22180 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22181 hardcode_libdir_flag_spec_F77='-R$libdir'
22182 hardcode_direct_F77=yes
22183 hardcode_shlibpath_var_F77=no
22186 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22188 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22189 hardcode_direct_F77=yes
22190 hardcode_minus_L_F77=yes
22191 hardcode_shlibpath_var_F77=no
22194 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22195 freebsd* | kfreebsd*-gnu | dragonfly*)
22196 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22197 hardcode_libdir_flag_spec_F77='-R$libdir'
22198 hardcode_direct_F77=yes
22199 hardcode_shlibpath_var_F77=no
22203 if test "$GCC" = yes; then
22204 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'
22206 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'
22208 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22209 hardcode_libdir_separator_F77=:
22210 hardcode_direct_F77=yes
22212 # hardcode_minus_L: Not really in the search PATH,
22213 # but as the default location of the library.
22214 hardcode_minus_L_F77=yes
22215 export_dynamic_flag_spec_F77='${wl}-E'
22219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22220 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22222 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22224 if test "$with_gnu_ld" = no; then
22225 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22226 hardcode_libdir_separator_F77=:
22228 hardcode_direct_F77=yes
22229 export_dynamic_flag_spec_F77='${wl}-E'
22231 # hardcode_minus_L: Not really in the search PATH,
22232 # but as the default location of the library.
22233 hardcode_minus_L_F77=yes
22238 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22241 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22244 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22247 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22253 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22256 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22259 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22263 if test "$with_gnu_ld" = no; then
22264 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22265 hardcode_libdir_separator_F77=:
22269 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22270 hardcode_direct_F77=no
22271 hardcode_shlibpath_var_F77=no
22274 hardcode_direct_F77=yes
22275 export_dynamic_flag_spec_F77='${wl}-E'
22277 # hardcode_minus_L: Not really in the search PATH,
22278 # but as the default location of the library.
22279 hardcode_minus_L_F77=yes
22285 irix5* | irix6* | nonstopux*)
22286 if test "$GCC" = yes; then
22287 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'
22289 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'
22290 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22292 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22293 hardcode_libdir_separator_F77=:
22294 link_all_deplibs_F77=yes
22298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22301 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22303 hardcode_libdir_flag_spec_F77='-R$libdir'
22304 hardcode_direct_F77=yes
22305 hardcode_shlibpath_var_F77=no
22309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22310 hardcode_direct_F77=yes
22311 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22312 hardcode_libdir_separator_F77=:
22313 hardcode_shlibpath_var_F77=no
22317 hardcode_direct_F77=yes
22318 hardcode_shlibpath_var_F77=no
22319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22320 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22321 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22322 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22323 export_dynamic_flag_spec_F77='${wl}-E'
22326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22327 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22328 hardcode_libdir_flag_spec_F77='-R$libdir'
22331 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22332 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22339 hardcode_libdir_flag_spec_F77='-L$libdir'
22340 hardcode_minus_L_F77=yes
22341 allow_undefined_flag_F77=unsupported
22342 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'
22343 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22347 if test "$GCC" = yes; then
22348 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22349 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'
22351 allow_undefined_flag_F77=' -expect_unresolved \*'
22352 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'
22354 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22355 hardcode_libdir_separator_F77=:
22358 osf4* | osf5*) # as osf3* with the addition of -msym flag
22359 if test "$GCC" = yes; then
22360 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22361 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'
22362 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22364 allow_undefined_flag_F77=' -expect_unresolved \*'
22365 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'
22366 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~
22367 $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'
22369 # Both c and cxx compiler support -rpath directly
22370 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22372 hardcode_libdir_separator_F77=:
22376 no_undefined_flag_F77=' -z text'
22377 if test "$GCC" = yes; then
22379 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22380 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22381 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22384 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22385 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22388 hardcode_libdir_flag_spec_F77='-R$libdir'
22389 hardcode_shlibpath_var_F77=no
22391 solaris2.[0-5] | solaris2.[0-5].*) ;;
22393 # The compiler driver will combine linker options so we
22394 # cannot just pass the convience library names through
22395 # without $wl, iff we do not link with $LD.
22396 # Luckily, gcc supports the same syntax we need for Sun Studio.
22397 # Supported since Solaris 2.6 (maybe 2.5.1?)
22400 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22402 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' ;;
22405 link_all_deplibs_F77=yes
22409 if test "x$host_vendor" = xsequent; then
22410 # Use $CC to link under sequent, because it throws in some extra .o
22411 # files that make .init and .fini sections work.
22412 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22414 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22416 hardcode_libdir_flag_spec_F77='-L$libdir'
22417 hardcode_direct_F77=yes
22418 hardcode_minus_L_F77=yes
22419 hardcode_shlibpath_var_F77=no
22423 case $host_vendor in
22425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22426 hardcode_direct_F77=yes # is this really true???
22429 ## LD is ld it makes a PLAMLIB
22430 ## CC just makes a GrossModule.
22431 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22432 reload_cmds_F77='$CC -r -o $output$reload_objs'
22433 hardcode_direct_F77=no
22436 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22437 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22440 runpath_var='LD_RUN_PATH'
22441 hardcode_shlibpath_var_F77=no
22445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22446 hardcode_shlibpath_var_F77=no
22447 export_dynamic_flag_spec_F77='-Bexport'
22451 if test -d /usr/nec; then
22452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22453 hardcode_shlibpath_var_F77=no
22454 runpath_var=LD_RUN_PATH
22455 hardcode_runpath_var=yes
22460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22461 no_undefined_flag_F77='${wl}-z,text'
22462 archive_cmds_need_lc_F77=no
22463 hardcode_shlibpath_var_F77=no
22464 runpath_var='LD_RUN_PATH'
22466 if test "$GCC" = yes; then
22467 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22468 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22470 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22471 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22475 sysv5* | sco3.2v5* | sco5v6*)
22476 # Note: We can NOT use -z defs as we might desire, because we do not
22477 # link with -lc, and that would cause any symbols used from libc to
22478 # always be unresolved, which means just about no library would
22479 # ever link correctly. If we're not using GNU ld we use -z text
22480 # though, which does catch some bad symbols but isn't as heavy-handed
22482 no_undefined_flag_F77='${wl}-z,text'
22483 allow_undefined_flag_F77='${wl}-z,nodefs'
22484 archive_cmds_need_lc_F77=no
22485 hardcode_shlibpath_var_F77=no
22486 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22487 hardcode_libdir_separator_F77=':'
22488 link_all_deplibs_F77=yes
22489 export_dynamic_flag_spec_F77='${wl}-Bexport'
22490 runpath_var='LD_RUN_PATH'
22492 if test "$GCC" = yes; then
22493 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22494 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22496 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22497 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22503 hardcode_libdir_flag_spec_F77='-L$libdir'
22504 hardcode_shlibpath_var_F77=no
22513 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22514 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22515 test "$ld_shlibs_F77" = no && can_build_shared=no
22518 # Do we need to explicitly link libc?
22520 case "x$archive_cmds_need_lc_F77" in
22522 # Assume -lc should be added
22523 archive_cmds_need_lc_F77=yes
22525 if test "$enable_shared" = yes && test "$GCC" = yes; then
22526 case $archive_cmds_F77 in
22528 # FIXME: we may have to deal with multi-command sequences.
22531 # Test whether the compiler implicitly links with -lc since on some
22532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22533 # to ld, don't add -lc before -lgcc.
22534 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22535 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22540 (eval $ac_compile) 2>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } 2>conftest.err; then
22546 libobjs=conftest.$ac_objext
22548 wl=$lt_prog_compiler_wl_F77
22549 pic_flag=$lt_prog_compiler_pic_F77
22555 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22556 allow_undefined_flag_F77=
22557 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22558 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }
22563 archive_cmds_need_lc_F77=no
22565 archive_cmds_need_lc_F77=yes
22567 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22569 cat conftest.err 1>&5
22572 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22573 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22580 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22581 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22582 library_names_spec=
22583 libname_spec='lib$name'
22587 postuninstall_cmds=
22591 shlibpath_overrides_runpath=unknown
22593 dynamic_linker="$host_os ld.so"
22594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22595 if test "$GCC" = yes; then
22596 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22597 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22598 # if the path contains ";" then we assume it to be the separator
22599 # otherwise default to the standard path separator (i.e. ":") - it is
22600 # assumed that no part of a normal pathname contains ";" but that should
22601 # okay in the real world where ";" in dirpaths is itself problematic.
22602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22609 need_lib_prefix=unknown
22610 hardcode_into_libs=no
22612 # when you set need_version to no, make sure it does not cause -set_version
22613 # flags to be left without arguments
22614 need_version=unknown
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22620 shlibpath_var=LIBPATH
22622 # AIX 3 has no versioning support, so we append a major version to the name.
22623 soname_spec='${libname}${release}${shared_ext}$major'
22630 hardcode_into_libs=yes
22631 if test "$host_cpu" = ia64; then
22632 # AIX 5 supports IA64
22633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22634 shlibpath_var=LD_LIBRARY_PATH
22636 # With GCC up to 2.95.x, collect2 would create an import file
22637 # for dependence libraries. The import file would start with
22638 # the line `#! .'. This would cause the generated library to
22639 # depend on `.', always an invalid library. This was fixed in
22640 # development snapshots of GCC prior to 3.0.
22642 aix4 | aix4.[01] | aix4.[01].*)
22643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22645 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22648 can_build_shared=no
22652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22653 # soname into executable. Probably we can add versioning support to
22654 # collect2, so additional links can be useful in future.
22655 if test "$aix_use_runtimelinking" = yes; then
22656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22657 # instead of lib<name>.a to let people know that these are not
22658 # typical AIX shared libraries.
22659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22661 # We preserve .a as extension for shared libraries through AIX4.2
22662 # and later when we are not doing run time linking.
22663 library_names_spec='${libname}${release}.a $libname.a'
22664 soname_spec='${libname}${release}${shared_ext}$major'
22666 shlibpath_var=LIBPATH
22671 library_names_spec='$libname.ixlibrary $libname.a'
22672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22673 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'
22677 library_names_spec='${libname}${shared_ext}'
22678 dynamic_linker="$host_os ld.so"
22679 shlibpath_var=LIBRARY_PATH
22685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22688 shlibpath_var=LD_LIBRARY_PATH
22689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22691 # the default ld.so.conf also contains /usr/contrib/lib and
22692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22693 # libtool to hard-code these into programs
22696 cygwin* | mingw* | pw32*)
22697 version_type=windows
22702 case $GCC,$host_os in
22703 yes,cygwin* | yes,mingw* | yes,pw32*)
22704 library_names_spec='$libname.dll.a'
22705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22706 postinstall_cmds='base_file=`basename \${file}`~
22707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22708 dldir=$destdir/`dirname \$dlpath`~
22709 test -d \$dldir || mkdir -p \$dldir~
22710 $install_prog $dir/$dlname \$dldir/$dlname~
22711 chmod a+x \$dldir/$dlname'
22712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22713 dlpath=$dir/\$dldll~
22715 shlibpath_overrides_runpath=yes
22719 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22720 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22721 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22724 # MinGW DLLs use traditional 'lib' prefix
22725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22727 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22728 # It is most probably a Windows format PATH printed by
22729 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22730 # path with ; separators, and with drive letters. We can handle the
22731 # drive letters (cygwin fileutils understands them), so leave them,
22732 # especially as we might pass files found there to a mingw objdump,
22733 # which wouldn't understand a cygwinified path. Ahh.
22734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22740 # pw32 DLLs use 'pw' prefix rather than 'lib'
22741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22750 dynamic_linker='Win32 ld.exe'
22751 # FIXME: first we should search . and the directory the executable is in
22755 darwin* | rhapsody*)
22756 dynamic_linker="$host_os dyld"
22757 version_type=darwin
22760 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22761 soname_spec='${libname}${release}${major}$shared_ext'
22762 shlibpath_overrides_runpath=yes
22763 shlibpath_var=DYLD_LIBRARY_PATH
22764 shrext_cmds='.dylib'
22765 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22766 if test "$GCC" = yes; then
22767 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"`
22769 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22779 soname_spec='${libname}${release}${shared_ext}$major'
22780 shlibpath_var=LD_LIBRARY_PATH
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 shlibpath_overrides_runpath=no
22795 hardcode_into_libs=yes
22796 dynamic_linker='GNU ld.so'
22799 freebsd* | dragonfly*)
22800 # DragonFly does not have aout. When/if they implement a new
22801 # versioning mechanism, adjust this.
22802 if test -x /usr/bin/objformat; then
22803 objformat=`/usr/bin/objformat`
22806 freebsd[123]*) objformat=aout ;;
22807 *) objformat=elf ;;
22810 version_type=freebsd-$objformat
22811 case $version_type in
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22822 shlibpath_var=LD_LIBRARY_PATH
22825 shlibpath_overrides_runpath=yes
22827 freebsd3.[01]* | freebsdelf3.[01]*)
22828 shlibpath_overrides_runpath=yes
22829 hardcode_into_libs=yes
22831 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22832 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22833 shlibpath_overrides_runpath=no
22834 hardcode_into_libs=yes
22836 freebsd*) # from 4.6 on
22837 shlibpath_overrides_runpath=yes
22838 hardcode_into_libs=yes
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 hardcode_into_libs=yes
22853 hpux9* | hpux10* | hpux11*)
22854 # Give a soname corresponding to the major version so that dld.sl refuses to
22855 # link against other versions.
22862 hardcode_into_libs=yes
22863 dynamic_linker="$host_os dld.so"
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 if test "X$HPUX_IA64_MODE" = X32; then
22869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22877 hardcode_into_libs=yes
22878 dynamic_linker="$host_os dld.sl"
22879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22882 soname_spec='${libname}${release}${shared_ext}$major'
22883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22888 dynamic_linker="$host_os dld.sl"
22889 shlibpath_var=SHLIB_PATH
22890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22892 soname_spec='${libname}${release}${shared_ext}$major'
22895 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22896 postinstall_cmds='chmod 555 $lib'
22903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22904 soname_spec='${libname}${release}${shared_ext}$major'
22905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 shlibpath_overrides_runpath=no
22908 hardcode_into_libs=yes
22911 irix5* | irix6* | nonstopux*)
22913 nonstopux*) version_type=nonstopux ;;
22915 if test "$lt_cv_prog_gnu_ld" = yes; then
22923 soname_spec='${libname}${release}${shared_ext}$major'
22924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22926 irix5* | nonstopux*)
22927 libsuff= shlibsuff=
22930 case $LD in # libtool.m4 will add one of these switches to LD
22931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22932 libsuff= shlibsuff= libmagic=32-bit;;
22933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22934 libsuff=32 shlibsuff=N32 libmagic=N32;;
22935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22937 *) libsuff= shlibsuff= libmagic=never-match;;
22941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22942 shlibpath_overrides_runpath=no
22943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22945 hardcode_into_libs=yes
22948 # No shared lib support for Linux oldld, aout, or coff.
22949 linux*oldld* | linux*aout* | linux*coff*)
22953 # This must be Linux ELF.
22958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22959 soname_spec='${libname}${release}${shared_ext}$major'
22960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22961 shlibpath_var=LD_LIBRARY_PATH
22962 shlibpath_overrides_runpath=no
22963 # This implies no fast_install, which is unacceptable.
22964 # Some rework will be needed to allow for fast_install
22965 # before this can be enabled.
22966 hardcode_into_libs=yes
22968 # Append ld.so.conf contents to the search path
22969 if test -f /etc/ld.so.conf; then
22970 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' ' '`
22971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22974 # We used to test for /lib/ld.so.1 and disable shared libraries on
22975 # powerpc, because MkLinux only supported shared libraries with the
22976 # GNU dynamic linker. Since this was broken with cross compilers,
22977 # most powerpc-linux boxes support dynamic linking these days and
22978 # people can always --disable-shared, the test was removed, and we
22979 # assume the GNU/Linux dynamic linker is in use.
22980 dynamic_linker='GNU/Linux ld.so'
22987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22988 soname_spec='${libname}${release}${shared_ext}$major'
22989 shlibpath_var=LD_LIBRARY_PATH
22990 shlibpath_overrides_runpath=no
22991 hardcode_into_libs=yes
22992 dynamic_linker='GNU ld.so'
22999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23002 dynamic_linker='NetBSD (a.out) ld.so'
23004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005 soname_spec='${libname}${release}${shared_ext}$major'
23006 dynamic_linker='NetBSD ld.elf_so'
23008 shlibpath_var=LD_LIBRARY_PATH
23009 shlibpath_overrides_runpath=yes
23010 hardcode_into_libs=yes
23015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016 shlibpath_var=LD_LIBRARY_PATH
23017 shlibpath_overrides_runpath=yes
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23025 soname_spec='${libname}${release}${shared_ext}$major'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 shlibpath_overrides_runpath=yes
23032 sys_lib_dlsearch_path_spec="/usr/lib"
23034 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23036 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23037 *) need_version=no ;;
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23044 openbsd2.[89] | openbsd2.[89].*)
23045 shlibpath_overrides_runpath=no
23048 shlibpath_overrides_runpath=yes
23052 shlibpath_overrides_runpath=yes
23057 libname_spec='$name'
23060 library_names_spec='$libname${shared_ext} $libname.a'
23061 dynamic_linker='OS/2 ld.exe'
23062 shlibpath_var=LIBPATH
23065 osf3* | osf4* | osf5*)
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23071 shlibpath_var=LD_LIBRARY_PATH
23072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081 soname_spec='${libname}${release}${shared_ext}$major'
23082 shlibpath_var=LD_LIBRARY_PATH
23083 shlibpath_overrides_runpath=yes
23084 hardcode_into_libs=yes
23085 # ldd complains unless libraries are executable
23086 postinstall_cmds='chmod +x $lib'
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23092 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23093 shlibpath_var=LD_LIBRARY_PATH
23094 shlibpath_overrides_runpath=yes
23095 if test "$with_gnu_ld" = yes; then
23103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23104 soname_spec='${libname}${release}${shared_ext}$major'
23105 shlibpath_var=LD_LIBRARY_PATH
23106 case $host_vendor in
23108 shlibpath_overrides_runpath=no
23110 export_dynamic_flag_spec='${wl}-Blargedynsym'
23111 runpath_var=LD_RUN_PATH
23119 shlibpath_overrides_runpath=no
23120 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23126 if test -d /usr/nec ;then
23128 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23129 soname_spec='$libname${shared_ext}.$major'
23130 shlibpath_var=LD_LIBRARY_PATH
23134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23135 version_type=freebsd-elf
23138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23139 soname_spec='${libname}${release}${shared_ext}$major'
23140 shlibpath_var=LD_LIBRARY_PATH
23141 hardcode_into_libs=yes
23142 if test "$with_gnu_ld" = yes; then
23143 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23144 shlibpath_overrides_runpath=no
23146 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23147 shlibpath_overrides_runpath=yes
23150 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23154 sys_lib_dlsearch_path_spec='/usr/lib'
23159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23160 soname_spec='${libname}${release}${shared_ext}$major'
23161 shlibpath_var=LD_LIBRARY_PATH
23168 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23169 echo "${ECHO_T}$dynamic_linker" >&6; }
23170 test "$dynamic_linker" = no && can_build_shared=no
23172 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23173 if test "$GCC" = yes; then
23174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23177 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23179 hardcode_action_F77=
23180 if test -n "$hardcode_libdir_flag_spec_F77" || \
23181 test -n "$runpath_var_F77" || \
23182 test "X$hardcode_automatic_F77" = "Xyes" ; then
23184 # We can hardcode non-existant directories.
23185 if test "$hardcode_direct_F77" != no &&
23186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23187 # have to relink, otherwise we might link with an installed library
23188 # when we should be linking with a yet-to-be-installed one
23189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23190 test "$hardcode_minus_L_F77" != no; then
23191 # Linking always hardcodes the temporary library directory.
23192 hardcode_action_F77=relink
23194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23195 hardcode_action_F77=immediate
23198 # We cannot hardcode anything, or else we can only hardcode existing
23200 hardcode_action_F77=unsupported
23202 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23203 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23205 if test "$hardcode_action_F77" = relink; then
23206 # Fast installation is not supported
23207 enable_fast_install=no
23208 elif test "$shlibpath_overrides_runpath" = yes ||
23209 test "$enable_shared" = no; then
23210 # Fast installation is not necessary
23211 enable_fast_install=needless
23215 # The else clause should only fire when bootstrapping the
23216 # libtool distribution, otherwise you forgot to ship ltmain.sh
23217 # with your package, and you will get complaints that there are
23218 # no rules to generate ltmain.sh.
23219 if test -f "$ltmain"; then
23220 # See if we are running on zsh, and set the options which allow our commands through
23221 # without removal of \ escapes.
23222 if test -n "${ZSH_VERSION+set}" ; then
23223 setopt NO_GLOB_SUBST
23225 # Now quote all the things that may contain metacharacters while being
23226 # careful not to overquote the AC_SUBSTed values. We take copies of the
23227 # variables and quote the copies for generation of the libtool script.
23228 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23230 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23231 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23232 deplibs_check_method reload_flag reload_cmds need_locks \
23233 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23234 lt_cv_sys_global_symbol_to_c_name_address \
23235 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23236 old_postinstall_cmds old_postuninstall_cmds \
23240 lt_prog_compiler_wl_F77 \
23241 lt_prog_compiler_pic_F77 \
23242 lt_prog_compiler_static_F77 \
23243 lt_prog_compiler_no_builtin_flag_F77 \
23244 export_dynamic_flag_spec_F77 \
23245 thread_safe_flag_spec_F77 \
23246 whole_archive_flag_spec_F77 \
23247 enable_shared_with_static_runtimes_F77 \
23248 old_archive_cmds_F77 \
23249 old_archive_from_new_cmds_F77 \
23250 predep_objects_F77 \
23251 postdep_objects_F77 \
23254 compiler_lib_search_path_F77 \
23256 archive_expsym_cmds_F77 \
23257 postinstall_cmds_F77 \
23258 postuninstall_cmds_F77 \
23259 old_archive_from_expsyms_cmds_F77 \
23260 allow_undefined_flag_F77 \
23261 no_undefined_flag_F77 \
23262 export_symbols_cmds_F77 \
23263 hardcode_libdir_flag_spec_F77 \
23264 hardcode_libdir_flag_spec_ld_F77 \
23265 hardcode_libdir_separator_F77 \
23266 hardcode_automatic_F77 \
23268 module_expsym_cmds_F77 \
23269 lt_cv_prog_compiler_c_o_F77 \
23270 exclude_expsyms_F77 \
23271 include_expsyms_F77; do
23274 old_archive_cmds_F77 | \
23275 old_archive_from_new_cmds_F77 | \
23276 archive_cmds_F77 | \
23277 archive_expsym_cmds_F77 | \
23278 module_cmds_F77 | \
23279 module_expsym_cmds_F77 | \
23280 old_archive_from_expsyms_cmds_F77 | \
23281 export_symbols_cmds_F77 | \
23282 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23283 postinstall_cmds | postuninstall_cmds | \
23284 old_postinstall_cmds | old_postuninstall_cmds | \
23285 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23286 # Double-quote double-evaled strings.
23287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23296 *'\$0 --fallback-echo"')
23297 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23303 cat <<__EOF__ >> "$cfgfile"
23304 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23306 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23308 # Shell to use when invoking shell scripts.
23311 # Whether or not to build shared libraries.
23312 build_libtool_libs=$enable_shared
23314 # Whether or not to build static libraries.
23315 build_old_libs=$enable_static
23317 # Whether or not to add -lc for building shared libraries.
23318 build_libtool_need_lc=$archive_cmds_need_lc_F77
23320 # Whether or not to disallow shared libs when runtime libs are static
23321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23323 # Whether or not to optimize for fast installation.
23324 fast_install=$enable_fast_install
23327 host_alias=$host_alias
23331 # The build system.
23332 build_alias=$build_alias
23336 # An echo program that does not interpret backslashes.
23341 AR_FLAGS=$lt_AR_FLAGS
23346 # LTCC compiler flags.
23347 LTCFLAGS=$lt_LTCFLAGS
23349 # A language-specific compiler.
23350 CC=$lt_compiler_F77
23352 # Is the compiler the GNU C compiler?
23358 # The linker used to build libraries.
23361 # Whether we need hard or soft links.
23364 # A BSD-compatible nm program.
23367 # A symbol stripping program
23370 # Used to examine libraries when file_magic_cmd begins "file"
23371 MAGIC_CMD=$MAGIC_CMD
23373 # Used on cygwin: DLL creation program.
23376 # Used on cygwin: object dumper.
23379 # Used on cygwin: assembler.
23382 # The name of the directory that contains temporary libtool files.
23385 # How to create reloadable object files.
23386 reload_flag=$lt_reload_flag
23387 reload_cmds=$lt_reload_cmds
23389 # How to pass a linker flag through the compiler.
23390 wl=$lt_lt_prog_compiler_wl_F77
23392 # Object file suffix (normally "o").
23393 objext="$ac_objext"
23395 # Old archive suffix (normally "a").
23398 # Shared library suffix (normally ".so").
23399 shrext_cmds='$shrext_cmds'
23401 # Executable file suffix (normally "").
23404 # Additional compiler flags for building library objects.
23405 pic_flag=$lt_lt_prog_compiler_pic_F77
23408 # What is the maximum length of a command?
23409 max_cmd_len=$lt_cv_sys_max_cmd_len
23411 # Does compiler simultaneously support -c and -o options?
23412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23414 # Must we lock files when doing compilation?
23415 need_locks=$lt_need_locks
23417 # Do we need the lib prefix for modules?
23418 need_lib_prefix=$need_lib_prefix
23420 # Do we need a version for libraries?
23421 need_version=$need_version
23423 # Whether dlopen is supported.
23424 dlopen_support=$enable_dlopen
23426 # Whether dlopen of programs is supported.
23427 dlopen_self=$enable_dlopen_self
23429 # Whether dlopen of statically linked programs is supported.
23430 dlopen_self_static=$enable_dlopen_self_static
23432 # Compiler flag to prevent dynamic linking.
23433 link_static_flag=$lt_lt_prog_compiler_static_F77
23435 # Compiler flag to turn off builtin functions.
23436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23438 # Compiler flag to allow reflexive dlopens.
23439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23441 # Compiler flag to generate shared objects directly from archives.
23442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23444 # Compiler flag to generate thread-safe objects.
23445 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23447 # Library versioning type.
23448 version_type=$version_type
23450 # Format of library name prefix.
23451 libname_spec=$lt_libname_spec
23453 # List of archive names. First name is the real one, the rest are links.
23454 # The last name is the one that the linker finds with -lNAME.
23455 library_names_spec=$lt_library_names_spec
23457 # The coded name of the library, if different from the real name.
23458 soname_spec=$lt_soname_spec
23460 # Commands used to build and install an old-style archive.
23462 old_archive_cmds=$lt_old_archive_cmds_F77
23463 old_postinstall_cmds=$lt_old_postinstall_cmds
23464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23466 # Create an old-style archive from a shared archive.
23467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23469 # Create a temporary old-style archive to link instead of a shared archive.
23470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23472 # Commands used to build and install a shared archive.
23473 archive_cmds=$lt_archive_cmds_F77
23474 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23475 postinstall_cmds=$lt_postinstall_cmds
23476 postuninstall_cmds=$lt_postuninstall_cmds
23478 # Commands used to build a loadable module (assumed same as above if empty)
23479 module_cmds=$lt_module_cmds_F77
23480 module_expsym_cmds=$lt_module_expsym_cmds_F77
23482 # Commands to strip libraries.
23483 old_striplib=$lt_old_striplib
23484 striplib=$lt_striplib
23486 # Dependencies to place before the objects being linked to create a
23488 predep_objects=$lt_predep_objects_F77
23490 # Dependencies to place after the objects being linked to create a
23492 postdep_objects=$lt_postdep_objects_F77
23494 # Dependencies to place before the objects being linked to create a
23496 predeps=$lt_predeps_F77
23498 # Dependencies to place after the objects being linked to create a
23500 postdeps=$lt_postdeps_F77
23502 # The library search path used internally by the compiler when linking
23503 # a shared library.
23504 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23506 # Method to check whether dependent libraries are shared objects.
23507 deplibs_check_method=$lt_deplibs_check_method
23509 # Command to use when deplibs_check_method == file_magic.
23510 file_magic_cmd=$lt_file_magic_cmd
23512 # Flag that allows shared libraries with undefined symbols to be built.
23513 allow_undefined_flag=$lt_allow_undefined_flag_F77
23515 # Flag that forces no undefined symbols.
23516 no_undefined_flag=$lt_no_undefined_flag_F77
23518 # Commands used to finish a libtool library installation in a directory.
23519 finish_cmds=$lt_finish_cmds
23521 # Same as above, but a single script fragment to be evaled but not shown.
23522 finish_eval=$lt_finish_eval
23524 # Take the output of nm and produce a listing of raw symbols and C names.
23525 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23527 # Transform the output of nm in a proper C declaration
23528 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23530 # Transform the output of nm in a C name address pair
23531 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23533 # This is the shared library runtime path variable.
23534 runpath_var=$runpath_var
23536 # This is the shared library path variable.
23537 shlibpath_var=$shlibpath_var
23539 # Is shlibpath searched before the hard-coded library search path?
23540 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23542 # How to hardcode a shared library path into an executable.
23543 hardcode_action=$hardcode_action_F77
23545 # Whether we should hardcode library paths into libraries.
23546 hardcode_into_libs=$hardcode_into_libs
23548 # Flag to hardcode \$libdir into a binary during linking.
23549 # This must work even if \$libdir does not exist.
23550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23552 # If ld is used when linking, flag to hardcode \$libdir into
23553 # a binary during linking. This must work even if \$libdir does
23555 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23557 # Whether we need a single -rpath flag with a separated argument.
23558 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23560 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23561 # resulting binary.
23562 hardcode_direct=$hardcode_direct_F77
23564 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23565 # resulting binary.
23566 hardcode_minus_L=$hardcode_minus_L_F77
23568 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23569 # the resulting binary.
23570 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23572 # Set to yes if building a shared library automatically hardcodes DIR into the library
23573 # and all subsequent libraries and executables linked against it.
23574 hardcode_automatic=$hardcode_automatic_F77
23576 # Variables whose values should be saved in libtool wrapper scripts and
23577 # restored at relink time.
23578 variables_saved_for_relink="$variables_saved_for_relink"
23580 # Whether libtool must link a program against all its dependency libraries.
23581 link_all_deplibs=$link_all_deplibs_F77
23583 # Compile-time system search path for libraries
23584 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23586 # Run-time system search path for libraries
23587 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23589 # Fix the shell variable \$srcfile for the compiler.
23590 fix_srcfile_path="$fix_srcfile_path_F77"
23592 # Set to yes if exported symbols are required.
23593 always_export_symbols=$always_export_symbols_F77
23595 # The commands to list exported symbols.
23596 export_symbols_cmds=$lt_export_symbols_cmds_F77
23598 # The commands to extract the exported symbol list from a shared archive.
23599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23601 # Symbols that should not be listed in the preloaded symbols.
23602 exclude_expsyms=$lt_exclude_expsyms_F77
23604 # Symbols that must always be exported.
23605 include_expsyms=$lt_include_expsyms_F77
23607 # ### END LIBTOOL TAG CONFIG: $tagname
23613 # If there is no Makefile yet, we rely on a make rule to execute
23614 # `config.status --recheck' to rerun these tests and create the
23615 # libtool script then.
23616 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23617 if test -f "$ltmain_in"; then
23618 test -f Makefile && make "$ltmain"
23624 ac_cpp='$CPP $CPPFLAGS'
23625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23637 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23639 ac_cpp='$CPP $CPPFLAGS'
23640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23645 # Source file extension for Java test sources.
23648 # Object file extension for compiled Java test sources.
23652 # Code to be used in simple compile tests
23653 lt_simple_compile_test_code="class foo {}\n"
23655 # Code to be used in simple link tests
23656 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23660 # If no C compiler was specified, use CC.
23663 # If no C compiler flags were specified, use CFLAGS.
23664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23666 # Allow CC to be a program name with arguments.
23670 # save warnings/boilerplate of simple test code
23671 ac_outfile=conftest.$ac_objext
23672 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23674 _lt_compiler_boilerplate=`cat conftest.err`
23677 ac_outfile=conftest.$ac_objext
23678 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23680 _lt_linker_boilerplate=`cat conftest.err`
23684 # Allow CC to be a program name with arguments.
23689 for cc_temp in $compiler""; do
23691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23700 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23701 archive_cmds_need_lc_GCJ=no
23703 old_archive_cmds_GCJ=$old_archive_cmds
23706 lt_prog_compiler_no_builtin_flag_GCJ=
23708 if test "$GCC" = yes; then
23709 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23717 lt_cv_prog_compiler_rtti_exceptions=no
23718 ac_outfile=conftest.$ac_objext
23719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23720 lt_compiler_flag="-fno-rtti -fno-exceptions"
23721 # Insert the option either (1) after the last *FLAGS variable, or
23722 # (2) before a word containing "conftest.", or (3) at the end.
23723 # Note that $ac_compile itself does not contain backslashes and begins
23724 # with a dollar sign (not a hyphen), so the echo should work correctly.
23725 # The option is referenced via a variable to avoid confusing sed.
23726 lt_compile=`echo "$ac_compile" | $SED \
23727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23729 -e 's:$: $lt_compiler_flag:'`
23730 (eval echo "\"\$as_me:23730: $lt_compile\"" >&5)
23731 (eval "$lt_compile" 2>conftest.err)
23733 cat conftest.err >&5
23734 echo "$as_me:23734: \$? = $ac_status" >&5
23735 if (exit $ac_status) && test -s "$ac_outfile"; then
23736 # The compiler can only warn and ignore the option if not recognized
23737 # So say no if there are warnings other than the usual output.
23738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23741 lt_cv_prog_compiler_rtti_exceptions=yes
23747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23751 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23758 lt_prog_compiler_wl_GCJ=
23759 lt_prog_compiler_pic_GCJ=
23760 lt_prog_compiler_static_GCJ=
23762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23765 if test "$GCC" = yes; then
23766 lt_prog_compiler_wl_GCJ='-Wl,'
23767 lt_prog_compiler_static_GCJ='-static'
23771 # All AIX code is PIC.
23772 if test "$host_cpu" = ia64; then
23773 # AIX 5 now supports IA64 processor
23774 lt_prog_compiler_static_GCJ='-Bstatic'
23779 # FIXME: we need at least 68020 code to build shared libraries, but
23780 # adding the `-m68020' flag to GCC prevents building anything better,
23782 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23785 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23786 # PIC is the default for these OSes.
23789 mingw* | pw32* | os2*)
23790 # This hack is so that the source file can tell whether it is being
23791 # built for inclusion in a dll (and should export symbols for example).
23792 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23795 darwin* | rhapsody*)
23796 # PIC is the default on this platform
23797 # Common symbols not allowed in MH_DYLIB files
23798 lt_prog_compiler_pic_GCJ='-fno-common'
23802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23803 # Instead, we relocate shared libraries at runtime.
23807 # Just because we use GCC doesn't mean we suddenly get shared libraries
23808 # on systems that don't support them.
23809 lt_prog_compiler_can_build_shared_GCJ=no
23814 if test -d /usr/nec; then
23815 lt_prog_compiler_pic_GCJ=-Kconform_pic
23820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23821 # not for PA HP-UX.
23827 lt_prog_compiler_pic_GCJ='-fPIC'
23833 lt_prog_compiler_pic_GCJ='-fPIC'
23837 # PORTME Check for flag to pass linker flags through the system compiler.
23840 lt_prog_compiler_wl_GCJ='-Wl,'
23841 if test "$host_cpu" = ia64; then
23842 # AIX 5 now supports IA64 processor
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23845 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23849 # PIC is the default on this platform
23850 # Common symbols not allowed in MH_DYLIB files
23851 case $cc_basename in
23853 lt_prog_compiler_pic_GCJ='-qnocommon'
23854 lt_prog_compiler_wl_GCJ='-Wl,'
23859 mingw* | pw32* | os2*)
23860 # This hack is so that the source file can tell whether it is being
23861 # built for inclusion in a dll (and should export symbols for example).
23862 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23865 hpux9* | hpux10* | hpux11*)
23866 lt_prog_compiler_wl_GCJ='-Wl,'
23867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23868 # not for PA HP-UX.
23874 lt_prog_compiler_pic_GCJ='+Z'
23877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23878 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23881 irix5* | irix6* | nonstopux*)
23882 lt_prog_compiler_wl_GCJ='-Wl,'
23883 # PIC (with -KPIC) is the default.
23884 lt_prog_compiler_static_GCJ='-non_shared'
23888 lt_prog_compiler_pic_GCJ='-KPIC'
23889 lt_prog_compiler_static_GCJ='-Bstatic'
23893 case $cc_basename in
23895 lt_prog_compiler_wl_GCJ='-Wl,'
23896 lt_prog_compiler_pic_GCJ='-KPIC'
23897 lt_prog_compiler_static_GCJ='-static'
23899 pgcc* | pgf77* | pgf90* | pgf95*)
23900 # Portland Group compilers (*not* the Pentium gcc compiler,
23901 # which looks to be a dead project)
23902 lt_prog_compiler_wl_GCJ='-Wl,'
23903 lt_prog_compiler_pic_GCJ='-fpic'
23904 lt_prog_compiler_static_GCJ='-Bstatic'
23907 lt_prog_compiler_wl_GCJ='-Wl,'
23908 # All Alpha code is PIC.
23909 lt_prog_compiler_static_GCJ='-non_shared'
23914 osf3* | osf4* | osf5*)
23915 lt_prog_compiler_wl_GCJ='-Wl,'
23916 # All OSF/1 code is PIC.
23917 lt_prog_compiler_static_GCJ='-non_shared'
23921 lt_prog_compiler_pic_GCJ='-KPIC'
23922 lt_prog_compiler_static_GCJ='-Bstatic'
23923 case $cc_basename in
23924 f77* | f90* | f95*)
23925 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23927 lt_prog_compiler_wl_GCJ='-Wl,';;
23932 lt_prog_compiler_wl_GCJ='-Qoption ld '
23933 lt_prog_compiler_pic_GCJ='-PIC'
23934 lt_prog_compiler_static_GCJ='-Bstatic'
23937 sysv4 | sysv4.2uw2* | sysv4.3*)
23938 lt_prog_compiler_wl_GCJ='-Wl,'
23939 lt_prog_compiler_pic_GCJ='-KPIC'
23940 lt_prog_compiler_static_GCJ='-Bstatic'
23944 if test -d /usr/nec ;then
23945 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23946 lt_prog_compiler_static_GCJ='-Bstatic'
23950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 lt_prog_compiler_pic_GCJ='-KPIC'
23953 lt_prog_compiler_static_GCJ='-Bstatic'
23957 lt_prog_compiler_wl_GCJ='-Wl,'
23958 lt_prog_compiler_can_build_shared_GCJ=no
23962 lt_prog_compiler_pic_GCJ='-pic'
23963 lt_prog_compiler_static_GCJ='-Bstatic'
23967 lt_prog_compiler_can_build_shared_GCJ=no
23972 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23973 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23976 # Check to make sure the PIC flag actually works.
23978 if test -n "$lt_prog_compiler_pic_GCJ"; then
23980 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23981 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23982 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23983 echo $ECHO_N "(cached) $ECHO_C" >&6
23985 lt_prog_compiler_pic_works_GCJ=no
23986 ac_outfile=conftest.$ac_objext
23987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23988 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23989 # Insert the option either (1) after the last *FLAGS variable, or
23990 # (2) before a word containing "conftest.", or (3) at the end.
23991 # Note that $ac_compile itself does not contain backslashes and begins
23992 # with a dollar sign (not a hyphen), so the echo should work correctly.
23993 # The option is referenced via a variable to avoid confusing sed.
23994 lt_compile=`echo "$ac_compile" | $SED \
23995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23997 -e 's:$: $lt_compiler_flag:'`
23998 (eval echo "\"\$as_me:23998: $lt_compile\"" >&5)
23999 (eval "$lt_compile" 2>conftest.err)
24001 cat conftest.err >&5
24002 echo "$as_me:24002: \$? = $ac_status" >&5
24003 if (exit $ac_status) && test -s "$ac_outfile"; then
24004 # The compiler can only warn and ignore the option if not recognized
24005 # So say no if there are warnings other than the usual output.
24006 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24009 lt_prog_compiler_pic_works_GCJ=yes
24015 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24016 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24018 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24019 case $lt_prog_compiler_pic_GCJ in
24021 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24024 lt_prog_compiler_pic_GCJ=
24025 lt_prog_compiler_can_build_shared_GCJ=no
24030 # For platforms which do not support PIC, -DPIC is meaningless:
24032 lt_prog_compiler_pic_GCJ=
24035 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24040 # Check to make sure the static flag actually works.
24042 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24043 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24044 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24045 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24048 lt_prog_compiler_static_works_GCJ=no
24049 save_LDFLAGS="$LDFLAGS"
24050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24051 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24053 # The linker can only warn and ignore the option if not recognized
24054 # So say no if there are warnings
24055 if test -s conftest.err; then
24056 # Append any errors to the config.log.
24057 cat conftest.err 1>&5
24058 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24060 if diff conftest.exp conftest.er2 >/dev/null; then
24061 lt_prog_compiler_static_works_GCJ=yes
24064 lt_prog_compiler_static_works_GCJ=yes
24068 LDFLAGS="$save_LDFLAGS"
24071 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24072 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24074 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24077 lt_prog_compiler_static_GCJ=
24081 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24082 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24083 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24086 lt_cv_prog_compiler_c_o_GCJ=no
24087 $rm -r conftest 2>/dev/null
24091 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24093 lt_compiler_flag="-o out/conftest2.$ac_objext"
24094 # Insert the option either (1) after the last *FLAGS variable, or
24095 # (2) before a word containing "conftest.", or (3) at the end.
24096 # Note that $ac_compile itself does not contain backslashes and begins
24097 # with a dollar sign (not a hyphen), so the echo should work correctly.
24098 lt_compile=`echo "$ac_compile" | $SED \
24099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24101 -e 's:$: $lt_compiler_flag:'`
24102 (eval echo "\"\$as_me:24102: $lt_compile\"" >&5)
24103 (eval "$lt_compile" 2>out/conftest.err)
24105 cat out/conftest.err >&5
24106 echo "$as_me:24106: \$? = $ac_status" >&5
24107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24109 # The compiler can only warn and ignore the option if not recognized
24110 # So say no if there are warnings
24111 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24114 lt_cv_prog_compiler_c_o_GCJ=yes
24119 # SGI C++ compiler will create directory out/ii_files/ for
24120 # template instantiation
24121 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24122 $rm out/* && rmdir out
24128 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24129 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24132 hard_links="nottested"
24133 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24134 # do not overwrite the value of need_locks provided by the user
24135 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24136 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24141 ln conftest.a conftest.b 2>&5 || hard_links=no
24142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24143 { echo "$as_me:$LINENO: result: $hard_links" >&5
24144 echo "${ECHO_T}$hard_links" >&6; }
24145 if test "$hard_links" = no; then
24146 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24147 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24154 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24155 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24158 allow_undefined_flag_GCJ=
24159 enable_shared_with_static_runtimes_GCJ=no
24161 archive_expsym_cmds_GCJ=
24162 old_archive_From_new_cmds_GCJ=
24163 old_archive_from_expsyms_cmds_GCJ=
24164 export_dynamic_flag_spec_GCJ=
24165 whole_archive_flag_spec_GCJ=
24166 thread_safe_flag_spec_GCJ=
24167 hardcode_libdir_flag_spec_GCJ=
24168 hardcode_libdir_flag_spec_ld_GCJ=
24169 hardcode_libdir_separator_GCJ=
24170 hardcode_direct_GCJ=no
24171 hardcode_minus_L_GCJ=no
24172 hardcode_shlibpath_var_GCJ=unsupported
24173 link_all_deplibs_GCJ=unknown
24174 hardcode_automatic_GCJ=no
24176 module_expsym_cmds_GCJ=
24177 always_export_symbols_GCJ=no
24178 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24179 # include_expsyms should be a list of space-separated symbols to be *always*
24180 # included in the symbol list
24181 include_expsyms_GCJ=
24182 # exclude_expsyms can be an extended regexp of symbols to exclude
24183 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24184 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24185 # as well as any symbol that contains `d'.
24186 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24187 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24188 # platforms (ab)use it in PIC code, but their linkers get confused if
24189 # the symbol is explicitly referenced. Since portable code cannot
24190 # rely on this symbol name, it's probably fine to never include it in
24191 # preloaded symbol tables.
24192 extract_expsyms_cmds=
24193 # Just being paranoid about ensuring that cc_basename is set.
24194 for cc_temp in $compiler""; do
24196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24205 cygwin* | mingw* | pw32*)
24206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24207 # When not using gcc, we currently assume that we are using
24208 # Microsoft Visual C++.
24209 if test "$GCC" != yes; then
24214 # we just hope/assume this is gcc and not c89 (= MSVC++)
24223 if test "$with_gnu_ld" = yes; then
24224 # If archive_cmds runs LD, not CC, wlarc should be empty
24227 # Set some defaults for GNU ld with shared library support. These
24228 # are reset later if shared libraries are not supported. Putting them
24229 # here allows them to be overridden if necessary.
24230 runpath_var=LD_RUN_PATH
24231 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24232 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24233 # ancient GNU ld didn't support --whole-archive et. al.
24234 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24235 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24237 whole_archive_flag_spec_GCJ=
24239 supports_anon_versioning=no
24240 case `$LD -v 2>/dev/null` in
24241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24244 *\ 2.11.*) ;; # other 2.11 versions
24245 *) supports_anon_versioning=yes ;;
24248 # See if GNU ld supports shared libraries.
24250 aix3* | aix4* | aix5*)
24251 # On AIX/PPC, the GNU linker is very broken
24252 if test "$host_cpu" != ia64; then
24256 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24257 *** to be unable to reliably create shared libraries on AIX.
24258 *** Therefore, libtool is disabling shared libraries support. If you
24259 *** really care for shared libraries, you may want to modify your PATH
24260 *** so that a non-GNU linker is found, and then restart.
24267 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)'
24268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24269 hardcode_minus_L_GCJ=yes
24271 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24272 # that the semantics of dynamic libraries on AmigaOS, at least up
24273 # to version 4, is to share data among multiple programs linked
24274 # with the same dynamic library. Since this doesn't match the
24275 # behavior of shared libraries on other platforms, we can't use
24281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24282 allow_undefined_flag_GCJ=unsupported
24283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24284 # support --undefined. This deserves some investigation. FIXME
24285 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24291 cygwin* | mingw* | pw32*)
24292 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24293 # as there is no search path for DLLs.
24294 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24295 allow_undefined_flag_GCJ=unsupported
24296 always_export_symbols_GCJ=no
24297 enable_shared_with_static_runtimes_GCJ=yes
24298 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24300 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24302 # If the export-symbols file already is a .def file (1st line
24303 # is EXPORTS), use it as is; otherwise, prepend...
24304 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24305 cp $export_symbols $output_objdir/$soname.def;
24307 echo EXPORTS > $output_objdir/$soname.def;
24308 cat $export_symbols >> $output_objdir/$soname.def;
24310 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24317 hardcode_direct_GCJ=no
24318 hardcode_shlibpath_var_GCJ=no
24319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24320 export_dynamic_flag_spec_GCJ='${wl}-E'
24321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24322 # Instead, shared libraries are loaded at an image base (0x10000000 by
24323 # default) and relocated if they conflict, which is a slow very memory
24324 # consuming and fragmenting process. To avoid this, we pick a random,
24325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24326 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24327 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'
24328 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'
24332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24334 case $cc_basename,$host_cpu in
24335 pgcc*) # Portland Group C compiler
24336 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'
24337 tmp_addflag=' $pic_flag'
24339 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24340 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'
24341 tmp_addflag=' $pic_flag -Mnomain' ;;
24342 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24343 tmp_addflag=' -i_dynamic' ;;
24344 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24345 tmp_addflag=' -i_dynamic -nofor_main' ;;
24346 ifc* | ifort*) # Intel Fortran compiler
24347 tmp_addflag=' -nofor_main' ;;
24349 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24351 if test $supports_anon_versioning = yes; then
24352 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24354 $echo "local: *; };" >> $output_objdir/$libname.ver~
24355 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24364 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24368 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24373 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24377 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24378 *** create shared libraries on Solaris systems. Therefore, libtool
24379 *** is disabling shared libraries support. We urge you to upgrade GNU
24380 *** binutils to release 2.9.1 or newer. Another option is to modify
24381 *** your PATH or compiler configuration so that the native linker is
24382 *** used, and then restart.
24385 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24387 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24394 case `$LD -v 2>&1` in
24395 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24399 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24400 *** reliably create shared libraries on SCO systems. Therefore, libtool
24401 *** is disabling shared libraries support. We urge you to upgrade GNU
24402 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24403 *** your PATH or compiler configuration so that the native linker is
24404 *** used, and then restart.
24409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24410 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24412 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24421 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24423 hardcode_direct_GCJ=yes
24424 hardcode_shlibpath_var_GCJ=no
24428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24429 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24430 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24437 if test "$ld_shlibs_GCJ" = no; then
24439 hardcode_libdir_flag_spec_GCJ=
24440 export_dynamic_flag_spec_GCJ=
24441 whole_archive_flag_spec_GCJ=
24444 # PORTME fill in a description of your system's linker (not GNU ld)
24447 allow_undefined_flag_GCJ=unsupported
24448 always_export_symbols_GCJ=yes
24449 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'
24450 # Note: this linker hardcodes the directories in LIBPATH if there
24451 # are no directories specified by -L.
24452 hardcode_minus_L_GCJ=yes
24453 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24454 # Neither direct hardcoding nor static linking is supported with a
24456 hardcode_direct_GCJ=unsupported
24461 if test "$host_cpu" = ia64; then
24462 # On IA64, the linker does run time linking by default, so we don't
24463 # have to do anything special.
24464 aix_use_runtimelinking=no
24465 exp_sym_flag='-Bexport'
24468 # If we're using GNU nm, then we don't want the "-C" option.
24469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24471 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'
24473 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'
24475 aix_use_runtimelinking=no
24477 # Test if we are trying to use run time linking or normal
24478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24479 # need to do runtime linking.
24480 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24481 for ld_flag in $LDFLAGS; do
24482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24483 aix_use_runtimelinking=yes
24490 exp_sym_flag='-bexport'
24491 no_entry_flag='-bnoentry'
24494 # When large executables or shared objects are built, AIX ld can
24495 # have problems creating the table of contents. If linking a library
24496 # or program results in "error TOC overflow" add -mminimal-toc to
24497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24500 archive_cmds_GCJ=''
24501 hardcode_direct_GCJ=yes
24502 hardcode_libdir_separator_GCJ=':'
24503 link_all_deplibs_GCJ=yes
24505 if test "$GCC" = yes; then
24506 case $host_os in aix4.[012]|aix4.[012].*)
24507 # We only want to do this on AIX 4.2 and lower, the check
24508 # below for broken collect2 doesn't work under 4.3+
24509 collect2name=`${CC} -print-prog-name=collect2`
24510 if test -f "$collect2name" && \
24511 strings "$collect2name" | grep resolve_lib_name >/dev/null
24513 # We have reworked collect2
24514 hardcode_direct_GCJ=yes
24516 # We have old collect2
24517 hardcode_direct_GCJ=unsupported
24518 # It fails to find uninstalled libraries when the uninstalled
24519 # path is not listed in the libpath. Setting hardcode_minus_L
24520 # to unsupported forces relinking
24521 hardcode_minus_L_GCJ=yes
24522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24523 hardcode_libdir_separator_GCJ=
24527 shared_flag='-shared'
24528 if test "$aix_use_runtimelinking" = yes; then
24529 shared_flag="$shared_flag "'${wl}-G'
24533 if test "$host_cpu" = ia64; then
24534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24535 # chokes on -Wl,-G. The following line is correct:
24538 if test "$aix_use_runtimelinking" = yes; then
24539 shared_flag='${wl}-G'
24541 shared_flag='${wl}-bM:SRE'
24546 # It seems that -bexpall does not export symbols beginning with
24547 # underscore (_), so it is better to generate a list of symbols to export.
24548 always_export_symbols_GCJ=yes
24549 if test "$aix_use_runtimelinking" = yes; then
24550 # Warning - without using the other runtime loading flags (-brtl),
24551 # -berok will link without error, but may produce a broken library.
24552 allow_undefined_flag_GCJ='-berok'
24553 # Determine the default libpath from the value encoded in an empty executable.
24554 cat >conftest.$ac_ext <<_ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h. */
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_link") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
24583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24584 { (case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589 (eval "$ac_try") 2>&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; } &&
24593 { ac_try='test -s conftest$ac_exeext'
24594 { (case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_try") 2>&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; }; then
24604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24606 # Check for a 64-bit object if we didn't find anything.
24607 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; }
24610 echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24616 rm -f core conftest.err conftest.$ac_objext \
24617 conftest$ac_exeext conftest.$ac_ext
24618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24620 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24621 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"
24623 if test "$host_cpu" = ia64; then
24624 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24625 allow_undefined_flag_GCJ="-z nodefs"
24626 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"
24628 # Determine the default libpath from the value encoded in an empty executable.
24629 cat >conftest.$ac_ext <<_ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h. */
24644 rm -f conftest.$ac_objext conftest$ac_exeext
24645 if { (ac_try="$ac_link"
24646 case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_link") 2>conftest.er1
24653 grep -v '^ *+' conftest.er1 >conftest.err
24655 cat conftest.err >&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); } &&
24658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24659 { (case "(($ac_try" in
24660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661 *) ac_try_echo=$ac_try;;
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664 (eval "$ac_try") 2>&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; } &&
24668 { ac_try='test -s conftest$ac_exeext'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24681 # Check for a 64-bit object if we didn't find anything.
24682 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; }
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24691 rm -f core conftest.err conftest.$ac_objext \
24692 conftest$ac_exeext conftest.$ac_ext
24693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24695 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24696 # Warning - without using the other run time loading flags,
24697 # -berok will link without error, but may produce a broken library.
24698 no_undefined_flag_GCJ=' ${wl}-bernotok'
24699 allow_undefined_flag_GCJ=' ${wl}-berok'
24700 # Exported symbols can be pulled into shared objects from archives
24701 whole_archive_flag_spec_GCJ='$convenience'
24702 archive_cmds_need_lc_GCJ=yes
24703 # This is similar to how AIX traditionally builds its shared libraries.
24704 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'
24710 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)'
24711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24712 hardcode_minus_L_GCJ=yes
24713 # see comment about different semantics on the GNU ld section
24718 export_dynamic_flag_spec_GCJ=-rdynamic
24721 cygwin* | mingw* | pw32*)
24722 # When not using gcc, we currently assume that we are using
24723 # Microsoft Visual C++.
24724 # hardcode_libdir_flag_spec is actually meaningless, as there is
24725 # no search path for DLLs.
24726 hardcode_libdir_flag_spec_GCJ=' '
24727 allow_undefined_flag_GCJ=unsupported
24728 # Tell ltmain to make .lib files, not .a files.
24730 # Tell ltmain to make .dll files, not .so files.
24732 # FIXME: Setting linknames here is a bad hack.
24733 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24734 # The linker will automatically build a .lib file if we build a DLL.
24735 old_archive_From_new_cmds_GCJ='true'
24736 # FIXME: Should let the user specify the lib program.
24737 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24738 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24739 enable_shared_with_static_runtimes_GCJ=yes
24742 darwin* | rhapsody*)
24744 rhapsody* | darwin1.[012])
24745 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24748 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24749 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24751 case ${MACOSX_DEPLOYMENT_TARGET} in
24753 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24756 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24762 archive_cmds_need_lc_GCJ=no
24763 hardcode_direct_GCJ=no
24764 hardcode_automatic_GCJ=yes
24765 hardcode_shlibpath_var_GCJ=unsupported
24766 whole_archive_flag_spec_GCJ=''
24767 link_all_deplibs_GCJ=yes
24768 if test "$GCC" = yes ; then
24769 output_verbose_link_cmd='echo'
24770 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24771 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24772 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24773 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}'
24774 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}'
24776 case $cc_basename in
24778 output_verbose_link_cmd='echo'
24779 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24780 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24781 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24782 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}'
24783 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}'
24793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24795 hardcode_shlibpath_var_GCJ=no
24802 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24803 # support. Future versions do this automatically, but an explicit c++rt0.o
24804 # does not break anything, and helps significantly (at the cost of a little
24807 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24809 hardcode_direct_GCJ=yes
24810 hardcode_shlibpath_var_GCJ=no
24813 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24815 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24816 hardcode_direct_GCJ=yes
24817 hardcode_minus_L_GCJ=yes
24818 hardcode_shlibpath_var_GCJ=no
24821 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24822 freebsd* | kfreebsd*-gnu | dragonfly*)
24823 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24825 hardcode_direct_GCJ=yes
24826 hardcode_shlibpath_var_GCJ=no
24830 if test "$GCC" = yes; then
24831 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'
24833 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'
24835 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24836 hardcode_libdir_separator_GCJ=:
24837 hardcode_direct_GCJ=yes
24839 # hardcode_minus_L: Not really in the search PATH,
24840 # but as the default location of the library.
24841 hardcode_minus_L_GCJ=yes
24842 export_dynamic_flag_spec_GCJ='${wl}-E'
24846 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24847 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24849 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24851 if test "$with_gnu_ld" = no; then
24852 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24853 hardcode_libdir_separator_GCJ=:
24855 hardcode_direct_GCJ=yes
24856 export_dynamic_flag_spec_GCJ='${wl}-E'
24858 # hardcode_minus_L: Not really in the search PATH,
24859 # but as the default location of the library.
24860 hardcode_minus_L_GCJ=yes
24865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24868 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24871 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24874 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24880 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24883 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24886 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24890 if test "$with_gnu_ld" = no; then
24891 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24892 hardcode_libdir_separator_GCJ=:
24896 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24897 hardcode_direct_GCJ=no
24898 hardcode_shlibpath_var_GCJ=no
24901 hardcode_direct_GCJ=yes
24902 export_dynamic_flag_spec_GCJ='${wl}-E'
24904 # hardcode_minus_L: Not really in the search PATH,
24905 # but as the default location of the library.
24906 hardcode_minus_L_GCJ=yes
24912 irix5* | irix6* | nonstopux*)
24913 if test "$GCC" = yes; then
24914 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'
24916 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'
24917 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24919 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24920 hardcode_libdir_separator_GCJ=:
24921 link_all_deplibs_GCJ=yes
24925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24926 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24928 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24930 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24931 hardcode_direct_GCJ=yes
24932 hardcode_shlibpath_var_GCJ=no
24936 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24937 hardcode_direct_GCJ=yes
24938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24939 hardcode_libdir_separator_GCJ=:
24940 hardcode_shlibpath_var_GCJ=no
24944 hardcode_direct_GCJ=yes
24945 hardcode_shlibpath_var_GCJ=no
24946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24947 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24948 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24950 export_dynamic_flag_spec_GCJ='${wl}-E'
24953 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24954 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24958 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24967 hardcode_minus_L_GCJ=yes
24968 allow_undefined_flag_GCJ=unsupported
24969 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'
24970 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24974 if test "$GCC" = yes; then
24975 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24976 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'
24978 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24979 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'
24981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24982 hardcode_libdir_separator_GCJ=:
24985 osf4* | osf5*) # as osf3* with the addition of -msym flag
24986 if test "$GCC" = yes; then
24987 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24988 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'
24989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24991 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24992 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'
24993 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~
24994 $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'
24996 # Both c and cxx compiler support -rpath directly
24997 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24999 hardcode_libdir_separator_GCJ=:
25003 no_undefined_flag_GCJ=' -z text'
25004 if test "$GCC" = yes; then
25006 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25007 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25008 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25011 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25012 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25013 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25015 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25016 hardcode_shlibpath_var_GCJ=no
25018 solaris2.[0-5] | solaris2.[0-5].*) ;;
25020 # The compiler driver will combine linker options so we
25021 # cannot just pass the convience library names through
25022 # without $wl, iff we do not link with $LD.
25023 # Luckily, gcc supports the same syntax we need for Sun Studio.
25024 # Supported since Solaris 2.6 (maybe 2.5.1?)
25027 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25029 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' ;;
25032 link_all_deplibs_GCJ=yes
25036 if test "x$host_vendor" = xsequent; then
25037 # Use $CC to link under sequent, because it throws in some extra .o
25038 # files that make .init and .fini sections work.
25039 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25041 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25044 hardcode_direct_GCJ=yes
25045 hardcode_minus_L_GCJ=yes
25046 hardcode_shlibpath_var_GCJ=no
25050 case $host_vendor in
25052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25053 hardcode_direct_GCJ=yes # is this really true???
25056 ## LD is ld it makes a PLAMLIB
25057 ## CC just makes a GrossModule.
25058 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25059 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25060 hardcode_direct_GCJ=no
25063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25067 runpath_var='LD_RUN_PATH'
25068 hardcode_shlibpath_var_GCJ=no
25072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25073 hardcode_shlibpath_var_GCJ=no
25074 export_dynamic_flag_spec_GCJ='-Bexport'
25078 if test -d /usr/nec; then
25079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25080 hardcode_shlibpath_var_GCJ=no
25081 runpath_var=LD_RUN_PATH
25082 hardcode_runpath_var=yes
25087 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25088 no_undefined_flag_GCJ='${wl}-z,text'
25089 archive_cmds_need_lc_GCJ=no
25090 hardcode_shlibpath_var_GCJ=no
25091 runpath_var='LD_RUN_PATH'
25093 if test "$GCC" = yes; then
25094 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25095 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25097 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25098 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25102 sysv5* | sco3.2v5* | sco5v6*)
25103 # Note: We can NOT use -z defs as we might desire, because we do not
25104 # link with -lc, and that would cause any symbols used from libc to
25105 # always be unresolved, which means just about no library would
25106 # ever link correctly. If we're not using GNU ld we use -z text
25107 # though, which does catch some bad symbols but isn't as heavy-handed
25109 no_undefined_flag_GCJ='${wl}-z,text'
25110 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25111 archive_cmds_need_lc_GCJ=no
25112 hardcode_shlibpath_var_GCJ=no
25113 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25114 hardcode_libdir_separator_GCJ=':'
25115 link_all_deplibs_GCJ=yes
25116 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25117 runpath_var='LD_RUN_PATH'
25119 if test "$GCC" = yes; then
25120 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25121 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25123 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25124 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25131 hardcode_shlibpath_var_GCJ=no
25140 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25141 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25142 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25145 # Do we need to explicitly link libc?
25147 case "x$archive_cmds_need_lc_GCJ" in
25149 # Assume -lc should be added
25150 archive_cmds_need_lc_GCJ=yes
25152 if test "$enable_shared" = yes && test "$GCC" = yes; then
25153 case $archive_cmds_GCJ in
25155 # FIXME: we may have to deal with multi-command sequences.
25158 # Test whether the compiler implicitly links with -lc since on some
25159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25160 # to ld, don't add -lc before -lgcc.
25161 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25162 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25167 (eval $ac_compile) 2>&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } 2>conftest.err; then
25173 libobjs=conftest.$ac_objext
25175 wl=$lt_prog_compiler_wl_GCJ
25176 pic_flag=$lt_prog_compiler_pic_GCJ
25182 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25183 allow_undefined_flag_GCJ=
25184 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25185 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }
25190 archive_cmds_need_lc_GCJ=no
25192 archive_cmds_need_lc_GCJ=yes
25194 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25196 cat conftest.err 1>&5
25199 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25200 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25207 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25208 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25209 library_names_spec=
25210 libname_spec='lib$name'
25214 postuninstall_cmds=
25218 shlibpath_overrides_runpath=unknown
25220 dynamic_linker="$host_os ld.so"
25221 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25222 if test "$GCC" = yes; then
25223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25224 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25225 # if the path contains ";" then we assume it to be the separator
25226 # otherwise default to the standard path separator (i.e. ":") - it is
25227 # assumed that no part of a normal pathname contains ";" but that should
25228 # okay in the real world where ";" in dirpaths is itself problematic.
25229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25236 need_lib_prefix=unknown
25237 hardcode_into_libs=no
25239 # when you set need_version to no, make sure it does not cause -set_version
25240 # flags to be left without arguments
25241 need_version=unknown
25246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25247 shlibpath_var=LIBPATH
25249 # AIX 3 has no versioning support, so we append a major version to the name.
25250 soname_spec='${libname}${release}${shared_ext}$major'
25257 hardcode_into_libs=yes
25258 if test "$host_cpu" = ia64; then
25259 # AIX 5 supports IA64
25260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25261 shlibpath_var=LD_LIBRARY_PATH
25263 # With GCC up to 2.95.x, collect2 would create an import file
25264 # for dependence libraries. The import file would start with
25265 # the line `#! .'. This would cause the generated library to
25266 # depend on `.', always an invalid library. This was fixed in
25267 # development snapshots of GCC prior to 3.0.
25269 aix4 | aix4.[01] | aix4.[01].*)
25270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25272 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25275 can_build_shared=no
25279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25280 # soname into executable. Probably we can add versioning support to
25281 # collect2, so additional links can be useful in future.
25282 if test "$aix_use_runtimelinking" = yes; then
25283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25284 # instead of lib<name>.a to let people know that these are not
25285 # typical AIX shared libraries.
25286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25288 # We preserve .a as extension for shared libraries through AIX4.2
25289 # and later when we are not doing run time linking.
25290 library_names_spec='${libname}${release}.a $libname.a'
25291 soname_spec='${libname}${release}${shared_ext}$major'
25293 shlibpath_var=LIBPATH
25298 library_names_spec='$libname.ixlibrary $libname.a'
25299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25300 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'
25304 library_names_spec='${libname}${shared_ext}'
25305 dynamic_linker="$host_os ld.so"
25306 shlibpath_var=LIBRARY_PATH
25312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25313 soname_spec='${libname}${release}${shared_ext}$major'
25314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25315 shlibpath_var=LD_LIBRARY_PATH
25316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25318 # the default ld.so.conf also contains /usr/contrib/lib and
25319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25320 # libtool to hard-code these into programs
25323 cygwin* | mingw* | pw32*)
25324 version_type=windows
25329 case $GCC,$host_os in
25330 yes,cygwin* | yes,mingw* | yes,pw32*)
25331 library_names_spec='$libname.dll.a'
25332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25333 postinstall_cmds='base_file=`basename \${file}`~
25334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25335 dldir=$destdir/`dirname \$dlpath`~
25336 test -d \$dldir || mkdir -p \$dldir~
25337 $install_prog $dir/$dlname \$dldir/$dlname~
25338 chmod a+x \$dldir/$dlname'
25339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25340 dlpath=$dir/\$dldll~
25342 shlibpath_overrides_runpath=yes
25346 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25347 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25348 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25351 # MinGW DLLs use traditional 'lib' prefix
25352 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25354 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25355 # It is most probably a Windows format PATH printed by
25356 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25357 # path with ; separators, and with drive letters. We can handle the
25358 # drive letters (cygwin fileutils understands them), so leave them,
25359 # especially as we might pass files found there to a mingw objdump,
25360 # which wouldn't understand a cygwinified path. Ahh.
25361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25367 # pw32 DLLs use 'pw' prefix rather than 'lib'
25368 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25374 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25377 dynamic_linker='Win32 ld.exe'
25378 # FIXME: first we should search . and the directory the executable is in
25382 darwin* | rhapsody*)
25383 dynamic_linker="$host_os dyld"
25384 version_type=darwin
25387 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25388 soname_spec='${libname}${release}${major}$shared_ext'
25389 shlibpath_overrides_runpath=yes
25390 shlibpath_var=DYLD_LIBRARY_PATH
25391 shrext_cmds='.dylib'
25392 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25393 if test "$GCC" = yes; then
25394 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"`
25396 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25398 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25406 soname_spec='${libname}${release}${shared_ext}$major'
25407 shlibpath_var=LD_LIBRARY_PATH
25418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25419 soname_spec='${libname}${release}${shared_ext}$major'
25420 shlibpath_var=LD_LIBRARY_PATH
25421 shlibpath_overrides_runpath=no
25422 hardcode_into_libs=yes
25423 dynamic_linker='GNU ld.so'
25426 freebsd* | dragonfly*)
25427 # DragonFly does not have aout. When/if they implement a new
25428 # versioning mechanism, adjust this.
25429 if test -x /usr/bin/objformat; then
25430 objformat=`/usr/bin/objformat`
25433 freebsd[123]*) objformat=aout ;;
25434 *) objformat=elf ;;
25437 version_type=freebsd-$objformat
25438 case $version_type in
25440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25449 shlibpath_var=LD_LIBRARY_PATH
25452 shlibpath_overrides_runpath=yes
25454 freebsd3.[01]* | freebsdelf3.[01]*)
25455 shlibpath_overrides_runpath=yes
25456 hardcode_into_libs=yes
25458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25460 shlibpath_overrides_runpath=no
25461 hardcode_into_libs=yes
25463 freebsd*) # from 4.6 on
25464 shlibpath_overrides_runpath=yes
25465 hardcode_into_libs=yes
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25477 hardcode_into_libs=yes
25480 hpux9* | hpux10* | hpux11*)
25481 # Give a soname corresponding to the major version so that dld.sl refuses to
25482 # link against other versions.
25489 hardcode_into_libs=yes
25490 dynamic_linker="$host_os dld.so"
25491 shlibpath_var=LD_LIBRARY_PATH
25492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25494 soname_spec='${libname}${release}${shared_ext}$major'
25495 if test "X$HPUX_IA64_MODE" = X32; then
25496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25504 hardcode_into_libs=yes
25505 dynamic_linker="$host_os dld.sl"
25506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25509 soname_spec='${libname}${release}${shared_ext}$major'
25510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25515 dynamic_linker="$host_os dld.sl"
25516 shlibpath_var=SHLIB_PATH
25517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25519 soname_spec='${libname}${release}${shared_ext}$major'
25522 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25523 postinstall_cmds='chmod 555 $lib'
25530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25531 soname_spec='${libname}${release}${shared_ext}$major'
25532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 shlibpath_overrides_runpath=no
25535 hardcode_into_libs=yes
25538 irix5* | irix6* | nonstopux*)
25540 nonstopux*) version_type=nonstopux ;;
25542 if test "$lt_cv_prog_gnu_ld" = yes; then
25550 soname_spec='${libname}${release}${shared_ext}$major'
25551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25553 irix5* | nonstopux*)
25554 libsuff= shlibsuff=
25557 case $LD in # libtool.m4 will add one of these switches to LD
25558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25559 libsuff= shlibsuff= libmagic=32-bit;;
25560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25561 libsuff=32 shlibsuff=N32 libmagic=N32;;
25562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25564 *) libsuff= shlibsuff= libmagic=never-match;;
25568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25569 shlibpath_overrides_runpath=no
25570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25572 hardcode_into_libs=yes
25575 # No shared lib support for Linux oldld, aout, or coff.
25576 linux*oldld* | linux*aout* | linux*coff*)
25580 # This must be Linux ELF.
25585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25586 soname_spec='${libname}${release}${shared_ext}$major'
25587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25588 shlibpath_var=LD_LIBRARY_PATH
25589 shlibpath_overrides_runpath=no
25590 # This implies no fast_install, which is unacceptable.
25591 # Some rework will be needed to allow for fast_install
25592 # before this can be enabled.
25593 hardcode_into_libs=yes
25595 # Append ld.so.conf contents to the search path
25596 if test -f /etc/ld.so.conf; then
25597 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' ' '`
25598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25601 # We used to test for /lib/ld.so.1 and disable shared libraries on
25602 # powerpc, because MkLinux only supported shared libraries with the
25603 # GNU dynamic linker. Since this was broken with cross compilers,
25604 # most powerpc-linux boxes support dynamic linking these days and
25605 # people can always --disable-shared, the test was removed, and we
25606 # assume the GNU/Linux dynamic linker is in use.
25607 dynamic_linker='GNU/Linux ld.so'
25614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25615 soname_spec='${libname}${release}${shared_ext}$major'
25616 shlibpath_var=LD_LIBRARY_PATH
25617 shlibpath_overrides_runpath=no
25618 hardcode_into_libs=yes
25619 dynamic_linker='GNU ld.so'
25626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25629 dynamic_linker='NetBSD (a.out) ld.so'
25631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25632 soname_spec='${libname}${release}${shared_ext}$major'
25633 dynamic_linker='NetBSD ld.elf_so'
25635 shlibpath_var=LD_LIBRARY_PATH
25636 shlibpath_overrides_runpath=yes
25637 hardcode_into_libs=yes
25642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25643 shlibpath_var=LD_LIBRARY_PATH
25644 shlibpath_overrides_runpath=yes
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25652 soname_spec='${libname}${release}${shared_ext}$major'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 shlibpath_overrides_runpath=yes
25659 sys_lib_dlsearch_path_spec="/usr/lib"
25661 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25663 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25664 *) need_version=no ;;
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25668 shlibpath_var=LD_LIBRARY_PATH
25669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25671 openbsd2.[89] | openbsd2.[89].*)
25672 shlibpath_overrides_runpath=no
25675 shlibpath_overrides_runpath=yes
25679 shlibpath_overrides_runpath=yes
25684 libname_spec='$name'
25687 library_names_spec='$libname${shared_ext} $libname.a'
25688 dynamic_linker='OS/2 ld.exe'
25689 shlibpath_var=LIBPATH
25692 osf3* | osf4* | osf5*)
25696 soname_spec='${libname}${release}${shared_ext}$major'
25697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25698 shlibpath_var=LD_LIBRARY_PATH
25699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25708 soname_spec='${libname}${release}${shared_ext}$major'
25709 shlibpath_var=LD_LIBRARY_PATH
25710 shlibpath_overrides_runpath=yes
25711 hardcode_into_libs=yes
25712 # ldd complains unless libraries are executable
25713 postinstall_cmds='chmod +x $lib'
25718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25720 shlibpath_var=LD_LIBRARY_PATH
25721 shlibpath_overrides_runpath=yes
25722 if test "$with_gnu_ld" = yes; then
25730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25731 soname_spec='${libname}${release}${shared_ext}$major'
25732 shlibpath_var=LD_LIBRARY_PATH
25733 case $host_vendor in
25735 shlibpath_overrides_runpath=no
25737 export_dynamic_flag_spec='${wl}-Blargedynsym'
25738 runpath_var=LD_RUN_PATH
25746 shlibpath_overrides_runpath=no
25747 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25753 if test -d /usr/nec ;then
25755 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25756 soname_spec='$libname${shared_ext}.$major'
25757 shlibpath_var=LD_LIBRARY_PATH
25761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25762 version_type=freebsd-elf
25765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25766 soname_spec='${libname}${release}${shared_ext}$major'
25767 shlibpath_var=LD_LIBRARY_PATH
25768 hardcode_into_libs=yes
25769 if test "$with_gnu_ld" = yes; then
25770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25771 shlibpath_overrides_runpath=no
25773 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25774 shlibpath_overrides_runpath=yes
25777 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25781 sys_lib_dlsearch_path_spec='/usr/lib'
25786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25787 soname_spec='${libname}${release}${shared_ext}$major'
25788 shlibpath_var=LD_LIBRARY_PATH
25795 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25796 echo "${ECHO_T}$dynamic_linker" >&6; }
25797 test "$dynamic_linker" = no && can_build_shared=no
25799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25800 if test "$GCC" = yes; then
25801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25804 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25806 hardcode_action_GCJ=
25807 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25808 test -n "$runpath_var_GCJ" || \
25809 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25811 # We can hardcode non-existant directories.
25812 if test "$hardcode_direct_GCJ" != no &&
25813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25814 # have to relink, otherwise we might link with an installed library
25815 # when we should be linking with a yet-to-be-installed one
25816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25817 test "$hardcode_minus_L_GCJ" != no; then
25818 # Linking always hardcodes the temporary library directory.
25819 hardcode_action_GCJ=relink
25821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25822 hardcode_action_GCJ=immediate
25825 # We cannot hardcode anything, or else we can only hardcode existing
25827 hardcode_action_GCJ=unsupported
25829 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25830 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25832 if test "$hardcode_action_GCJ" = relink; then
25833 # Fast installation is not supported
25834 enable_fast_install=no
25835 elif test "$shlibpath_overrides_runpath" = yes ||
25836 test "$enable_shared" = no; then
25837 # Fast installation is not necessary
25838 enable_fast_install=needless
25842 # The else clause should only fire when bootstrapping the
25843 # libtool distribution, otherwise you forgot to ship ltmain.sh
25844 # with your package, and you will get complaints that there are
25845 # no rules to generate ltmain.sh.
25846 if test -f "$ltmain"; then
25847 # See if we are running on zsh, and set the options which allow our commands through
25848 # without removal of \ escapes.
25849 if test -n "${ZSH_VERSION+set}" ; then
25850 setopt NO_GLOB_SUBST
25852 # Now quote all the things that may contain metacharacters while being
25853 # careful not to overquote the AC_SUBSTed values. We take copies of the
25854 # variables and quote the copies for generation of the libtool script.
25855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25857 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25858 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25859 deplibs_check_method reload_flag reload_cmds need_locks \
25860 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25861 lt_cv_sys_global_symbol_to_c_name_address \
25862 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25863 old_postinstall_cmds old_postuninstall_cmds \
25867 lt_prog_compiler_wl_GCJ \
25868 lt_prog_compiler_pic_GCJ \
25869 lt_prog_compiler_static_GCJ \
25870 lt_prog_compiler_no_builtin_flag_GCJ \
25871 export_dynamic_flag_spec_GCJ \
25872 thread_safe_flag_spec_GCJ \
25873 whole_archive_flag_spec_GCJ \
25874 enable_shared_with_static_runtimes_GCJ \
25875 old_archive_cmds_GCJ \
25876 old_archive_from_new_cmds_GCJ \
25877 predep_objects_GCJ \
25878 postdep_objects_GCJ \
25881 compiler_lib_search_path_GCJ \
25883 archive_expsym_cmds_GCJ \
25884 postinstall_cmds_GCJ \
25885 postuninstall_cmds_GCJ \
25886 old_archive_from_expsyms_cmds_GCJ \
25887 allow_undefined_flag_GCJ \
25888 no_undefined_flag_GCJ \
25889 export_symbols_cmds_GCJ \
25890 hardcode_libdir_flag_spec_GCJ \
25891 hardcode_libdir_flag_spec_ld_GCJ \
25892 hardcode_libdir_separator_GCJ \
25893 hardcode_automatic_GCJ \
25895 module_expsym_cmds_GCJ \
25896 lt_cv_prog_compiler_c_o_GCJ \
25897 exclude_expsyms_GCJ \
25898 include_expsyms_GCJ; do
25901 old_archive_cmds_GCJ | \
25902 old_archive_from_new_cmds_GCJ | \
25903 archive_cmds_GCJ | \
25904 archive_expsym_cmds_GCJ | \
25905 module_cmds_GCJ | \
25906 module_expsym_cmds_GCJ | \
25907 old_archive_from_expsyms_cmds_GCJ | \
25908 export_symbols_cmds_GCJ | \
25909 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25910 postinstall_cmds | postuninstall_cmds | \
25911 old_postinstall_cmds | old_postuninstall_cmds | \
25912 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25913 # Double-quote double-evaled strings.
25914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25923 *'\$0 --fallback-echo"')
25924 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25930 cat <<__EOF__ >> "$cfgfile"
25931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25935 # Shell to use when invoking shell scripts.
25938 # Whether or not to build shared libraries.
25939 build_libtool_libs=$enable_shared
25941 # Whether or not to build static libraries.
25942 build_old_libs=$enable_static
25944 # Whether or not to add -lc for building shared libraries.
25945 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25947 # Whether or not to disallow shared libs when runtime libs are static
25948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25950 # Whether or not to optimize for fast installation.
25951 fast_install=$enable_fast_install
25954 host_alias=$host_alias
25958 # The build system.
25959 build_alias=$build_alias
25963 # An echo program that does not interpret backslashes.
25968 AR_FLAGS=$lt_AR_FLAGS
25973 # LTCC compiler flags.
25974 LTCFLAGS=$lt_LTCFLAGS
25976 # A language-specific compiler.
25977 CC=$lt_compiler_GCJ
25979 # Is the compiler the GNU C compiler?
25985 # The linker used to build libraries.
25988 # Whether we need hard or soft links.
25991 # A BSD-compatible nm program.
25994 # A symbol stripping program
25997 # Used to examine libraries when file_magic_cmd begins "file"
25998 MAGIC_CMD=$MAGIC_CMD
26000 # Used on cygwin: DLL creation program.
26003 # Used on cygwin: object dumper.
26006 # Used on cygwin: assembler.
26009 # The name of the directory that contains temporary libtool files.
26012 # How to create reloadable object files.
26013 reload_flag=$lt_reload_flag
26014 reload_cmds=$lt_reload_cmds
26016 # How to pass a linker flag through the compiler.
26017 wl=$lt_lt_prog_compiler_wl_GCJ
26019 # Object file suffix (normally "o").
26020 objext="$ac_objext"
26022 # Old archive suffix (normally "a").
26025 # Shared library suffix (normally ".so").
26026 shrext_cmds='$shrext_cmds'
26028 # Executable file suffix (normally "").
26031 # Additional compiler flags for building library objects.
26032 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26035 # What is the maximum length of a command?
26036 max_cmd_len=$lt_cv_sys_max_cmd_len
26038 # Does compiler simultaneously support -c and -o options?
26039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26041 # Must we lock files when doing compilation?
26042 need_locks=$lt_need_locks
26044 # Do we need the lib prefix for modules?
26045 need_lib_prefix=$need_lib_prefix
26047 # Do we need a version for libraries?
26048 need_version=$need_version
26050 # Whether dlopen is supported.
26051 dlopen_support=$enable_dlopen
26053 # Whether dlopen of programs is supported.
26054 dlopen_self=$enable_dlopen_self
26056 # Whether dlopen of statically linked programs is supported.
26057 dlopen_self_static=$enable_dlopen_self_static
26059 # Compiler flag to prevent dynamic linking.
26060 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26062 # Compiler flag to turn off builtin functions.
26063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26065 # Compiler flag to allow reflexive dlopens.
26066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26068 # Compiler flag to generate shared objects directly from archives.
26069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26071 # Compiler flag to generate thread-safe objects.
26072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26074 # Library versioning type.
26075 version_type=$version_type
26077 # Format of library name prefix.
26078 libname_spec=$lt_libname_spec
26080 # List of archive names. First name is the real one, the rest are links.
26081 # The last name is the one that the linker finds with -lNAME.
26082 library_names_spec=$lt_library_names_spec
26084 # The coded name of the library, if different from the real name.
26085 soname_spec=$lt_soname_spec
26087 # Commands used to build and install an old-style archive.
26089 old_archive_cmds=$lt_old_archive_cmds_GCJ
26090 old_postinstall_cmds=$lt_old_postinstall_cmds
26091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26093 # Create an old-style archive from a shared archive.
26094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26096 # Create a temporary old-style archive to link instead of a shared archive.
26097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26099 # Commands used to build and install a shared archive.
26100 archive_cmds=$lt_archive_cmds_GCJ
26101 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26102 postinstall_cmds=$lt_postinstall_cmds
26103 postuninstall_cmds=$lt_postuninstall_cmds
26105 # Commands used to build a loadable module (assumed same as above if empty)
26106 module_cmds=$lt_module_cmds_GCJ
26107 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26109 # Commands to strip libraries.
26110 old_striplib=$lt_old_striplib
26111 striplib=$lt_striplib
26113 # Dependencies to place before the objects being linked to create a
26115 predep_objects=$lt_predep_objects_GCJ
26117 # Dependencies to place after the objects being linked to create a
26119 postdep_objects=$lt_postdep_objects_GCJ
26121 # Dependencies to place before the objects being linked to create a
26123 predeps=$lt_predeps_GCJ
26125 # Dependencies to place after the objects being linked to create a
26127 postdeps=$lt_postdeps_GCJ
26129 # The library search path used internally by the compiler when linking
26130 # a shared library.
26131 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26133 # Method to check whether dependent libraries are shared objects.
26134 deplibs_check_method=$lt_deplibs_check_method
26136 # Command to use when deplibs_check_method == file_magic.
26137 file_magic_cmd=$lt_file_magic_cmd
26139 # Flag that allows shared libraries with undefined symbols to be built.
26140 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26142 # Flag that forces no undefined symbols.
26143 no_undefined_flag=$lt_no_undefined_flag_GCJ
26145 # Commands used to finish a libtool library installation in a directory.
26146 finish_cmds=$lt_finish_cmds
26148 # Same as above, but a single script fragment to be evaled but not shown.
26149 finish_eval=$lt_finish_eval
26151 # Take the output of nm and produce a listing of raw symbols and C names.
26152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26154 # Transform the output of nm in a proper C declaration
26155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26157 # Transform the output of nm in a C name address pair
26158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26160 # This is the shared library runtime path variable.
26161 runpath_var=$runpath_var
26163 # This is the shared library path variable.
26164 shlibpath_var=$shlibpath_var
26166 # Is shlibpath searched before the hard-coded library search path?
26167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26169 # How to hardcode a shared library path into an executable.
26170 hardcode_action=$hardcode_action_GCJ
26172 # Whether we should hardcode library paths into libraries.
26173 hardcode_into_libs=$hardcode_into_libs
26175 # Flag to hardcode \$libdir into a binary during linking.
26176 # This must work even if \$libdir does not exist.
26177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26179 # If ld is used when linking, flag to hardcode \$libdir into
26180 # a binary during linking. This must work even if \$libdir does
26182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26184 # Whether we need a single -rpath flag with a separated argument.
26185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26188 # resulting binary.
26189 hardcode_direct=$hardcode_direct_GCJ
26191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26192 # resulting binary.
26193 hardcode_minus_L=$hardcode_minus_L_GCJ
26195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26196 # the resulting binary.
26197 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26199 # Set to yes if building a shared library automatically hardcodes DIR into the library
26200 # and all subsequent libraries and executables linked against it.
26201 hardcode_automatic=$hardcode_automatic_GCJ
26203 # Variables whose values should be saved in libtool wrapper scripts and
26204 # restored at relink time.
26205 variables_saved_for_relink="$variables_saved_for_relink"
26207 # Whether libtool must link a program against all its dependency libraries.
26208 link_all_deplibs=$link_all_deplibs_GCJ
26210 # Compile-time system search path for libraries
26211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26213 # Run-time system search path for libraries
26214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26216 # Fix the shell variable \$srcfile for the compiler.
26217 fix_srcfile_path="$fix_srcfile_path_GCJ"
26219 # Set to yes if exported symbols are required.
26220 always_export_symbols=$always_export_symbols_GCJ
26222 # The commands to list exported symbols.
26223 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26225 # The commands to extract the exported symbol list from a shared archive.
26226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26228 # Symbols that should not be listed in the preloaded symbols.
26229 exclude_expsyms=$lt_exclude_expsyms_GCJ
26231 # Symbols that must always be exported.
26232 include_expsyms=$lt_include_expsyms_GCJ
26234 # ### END LIBTOOL TAG CONFIG: $tagname
26240 # If there is no Makefile yet, we rely on a make rule to execute
26241 # `config.status --recheck' to rerun these tests and create the
26242 # libtool script then.
26243 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26244 if test -f "$ltmain_in"; then
26245 test -f Makefile && make "$ltmain"
26251 ac_cpp='$CPP $CPPFLAGS'
26252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26265 ac_cpp='$CPP $CPPFLAGS'
26266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26271 # Source file extension for RC test sources.
26274 # Object file extension for compiled RC test sources.
26278 # Code to be used in simple compile tests
26279 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26281 # Code to be used in simple link tests
26282 lt_simple_link_test_code="$lt_simple_compile_test_code"
26284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26286 # If no C compiler was specified, use CC.
26289 # If no C compiler flags were specified, use CFLAGS.
26290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26292 # Allow CC to be a program name with arguments.
26296 # save warnings/boilerplate of simple test code
26297 ac_outfile=conftest.$ac_objext
26298 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26300 _lt_compiler_boilerplate=`cat conftest.err`
26303 ac_outfile=conftest.$ac_objext
26304 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26306 _lt_linker_boilerplate=`cat conftest.err`
26310 # Allow CC to be a program name with arguments.
26315 for cc_temp in $compiler""; do
26317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26325 lt_cv_prog_compiler_c_o_RC=yes
26327 # The else clause should only fire when bootstrapping the
26328 # libtool distribution, otherwise you forgot to ship ltmain.sh
26329 # with your package, and you will get complaints that there are
26330 # no rules to generate ltmain.sh.
26331 if test -f "$ltmain"; then
26332 # See if we are running on zsh, and set the options which allow our commands through
26333 # without removal of \ escapes.
26334 if test -n "${ZSH_VERSION+set}" ; then
26335 setopt NO_GLOB_SUBST
26337 # Now quote all the things that may contain metacharacters while being
26338 # careful not to overquote the AC_SUBSTed values. We take copies of the
26339 # variables and quote the copies for generation of the libtool script.
26340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26344 deplibs_check_method reload_flag reload_cmds need_locks \
26345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26346 lt_cv_sys_global_symbol_to_c_name_address \
26347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26348 old_postinstall_cmds old_postuninstall_cmds \
26352 lt_prog_compiler_wl_RC \
26353 lt_prog_compiler_pic_RC \
26354 lt_prog_compiler_static_RC \
26355 lt_prog_compiler_no_builtin_flag_RC \
26356 export_dynamic_flag_spec_RC \
26357 thread_safe_flag_spec_RC \
26358 whole_archive_flag_spec_RC \
26359 enable_shared_with_static_runtimes_RC \
26360 old_archive_cmds_RC \
26361 old_archive_from_new_cmds_RC \
26362 predep_objects_RC \
26363 postdep_objects_RC \
26366 compiler_lib_search_path_RC \
26368 archive_expsym_cmds_RC \
26369 postinstall_cmds_RC \
26370 postuninstall_cmds_RC \
26371 old_archive_from_expsyms_cmds_RC \
26372 allow_undefined_flag_RC \
26373 no_undefined_flag_RC \
26374 export_symbols_cmds_RC \
26375 hardcode_libdir_flag_spec_RC \
26376 hardcode_libdir_flag_spec_ld_RC \
26377 hardcode_libdir_separator_RC \
26378 hardcode_automatic_RC \
26380 module_expsym_cmds_RC \
26381 lt_cv_prog_compiler_c_o_RC \
26382 exclude_expsyms_RC \
26383 include_expsyms_RC; do
26386 old_archive_cmds_RC | \
26387 old_archive_from_new_cmds_RC | \
26388 archive_cmds_RC | \
26389 archive_expsym_cmds_RC | \
26391 module_expsym_cmds_RC | \
26392 old_archive_from_expsyms_cmds_RC | \
26393 export_symbols_cmds_RC | \
26394 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26395 postinstall_cmds | postuninstall_cmds | \
26396 old_postinstall_cmds | old_postuninstall_cmds | \
26397 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26398 # Double-quote double-evaled strings.
26399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26408 *'\$0 --fallback-echo"')
26409 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26415 cat <<__EOF__ >> "$cfgfile"
26416 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26420 # Shell to use when invoking shell scripts.
26423 # Whether or not to build shared libraries.
26424 build_libtool_libs=$enable_shared
26426 # Whether or not to build static libraries.
26427 build_old_libs=$enable_static
26429 # Whether or not to add -lc for building shared libraries.
26430 build_libtool_need_lc=$archive_cmds_need_lc_RC
26432 # Whether or not to disallow shared libs when runtime libs are static
26433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26435 # Whether or not to optimize for fast installation.
26436 fast_install=$enable_fast_install
26439 host_alias=$host_alias
26443 # The build system.
26444 build_alias=$build_alias
26448 # An echo program that does not interpret backslashes.
26453 AR_FLAGS=$lt_AR_FLAGS
26458 # LTCC compiler flags.
26459 LTCFLAGS=$lt_LTCFLAGS
26461 # A language-specific compiler.
26464 # Is the compiler the GNU C compiler?
26470 # The linker used to build libraries.
26473 # Whether we need hard or soft links.
26476 # A BSD-compatible nm program.
26479 # A symbol stripping program
26482 # Used to examine libraries when file_magic_cmd begins "file"
26483 MAGIC_CMD=$MAGIC_CMD
26485 # Used on cygwin: DLL creation program.
26488 # Used on cygwin: object dumper.
26491 # Used on cygwin: assembler.
26494 # The name of the directory that contains temporary libtool files.
26497 # How to create reloadable object files.
26498 reload_flag=$lt_reload_flag
26499 reload_cmds=$lt_reload_cmds
26501 # How to pass a linker flag through the compiler.
26502 wl=$lt_lt_prog_compiler_wl_RC
26504 # Object file suffix (normally "o").
26505 objext="$ac_objext"
26507 # Old archive suffix (normally "a").
26510 # Shared library suffix (normally ".so").
26511 shrext_cmds='$shrext_cmds'
26513 # Executable file suffix (normally "").
26516 # Additional compiler flags for building library objects.
26517 pic_flag=$lt_lt_prog_compiler_pic_RC
26520 # What is the maximum length of a command?
26521 max_cmd_len=$lt_cv_sys_max_cmd_len
26523 # Does compiler simultaneously support -c and -o options?
26524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26526 # Must we lock files when doing compilation?
26527 need_locks=$lt_need_locks
26529 # Do we need the lib prefix for modules?
26530 need_lib_prefix=$need_lib_prefix
26532 # Do we need a version for libraries?
26533 need_version=$need_version
26535 # Whether dlopen is supported.
26536 dlopen_support=$enable_dlopen
26538 # Whether dlopen of programs is supported.
26539 dlopen_self=$enable_dlopen_self
26541 # Whether dlopen of statically linked programs is supported.
26542 dlopen_self_static=$enable_dlopen_self_static
26544 # Compiler flag to prevent dynamic linking.
26545 link_static_flag=$lt_lt_prog_compiler_static_RC
26547 # Compiler flag to turn off builtin functions.
26548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26550 # Compiler flag to allow reflexive dlopens.
26551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26553 # Compiler flag to generate shared objects directly from archives.
26554 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26556 # Compiler flag to generate thread-safe objects.
26557 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26559 # Library versioning type.
26560 version_type=$version_type
26562 # Format of library name prefix.
26563 libname_spec=$lt_libname_spec
26565 # List of archive names. First name is the real one, the rest are links.
26566 # The last name is the one that the linker finds with -lNAME.
26567 library_names_spec=$lt_library_names_spec
26569 # The coded name of the library, if different from the real name.
26570 soname_spec=$lt_soname_spec
26572 # Commands used to build and install an old-style archive.
26574 old_archive_cmds=$lt_old_archive_cmds_RC
26575 old_postinstall_cmds=$lt_old_postinstall_cmds
26576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26578 # Create an old-style archive from a shared archive.
26579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26581 # Create a temporary old-style archive to link instead of a shared archive.
26582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26584 # Commands used to build and install a shared archive.
26585 archive_cmds=$lt_archive_cmds_RC
26586 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26587 postinstall_cmds=$lt_postinstall_cmds
26588 postuninstall_cmds=$lt_postuninstall_cmds
26590 # Commands used to build a loadable module (assumed same as above if empty)
26591 module_cmds=$lt_module_cmds_RC
26592 module_expsym_cmds=$lt_module_expsym_cmds_RC
26594 # Commands to strip libraries.
26595 old_striplib=$lt_old_striplib
26596 striplib=$lt_striplib
26598 # Dependencies to place before the objects being linked to create a
26600 predep_objects=$lt_predep_objects_RC
26602 # Dependencies to place after the objects being linked to create a
26604 postdep_objects=$lt_postdep_objects_RC
26606 # Dependencies to place before the objects being linked to create a
26608 predeps=$lt_predeps_RC
26610 # Dependencies to place after the objects being linked to create a
26612 postdeps=$lt_postdeps_RC
26614 # The library search path used internally by the compiler when linking
26615 # a shared library.
26616 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26618 # Method to check whether dependent libraries are shared objects.
26619 deplibs_check_method=$lt_deplibs_check_method
26621 # Command to use when deplibs_check_method == file_magic.
26622 file_magic_cmd=$lt_file_magic_cmd
26624 # Flag that allows shared libraries with undefined symbols to be built.
26625 allow_undefined_flag=$lt_allow_undefined_flag_RC
26627 # Flag that forces no undefined symbols.
26628 no_undefined_flag=$lt_no_undefined_flag_RC
26630 # Commands used to finish a libtool library installation in a directory.
26631 finish_cmds=$lt_finish_cmds
26633 # Same as above, but a single script fragment to be evaled but not shown.
26634 finish_eval=$lt_finish_eval
26636 # Take the output of nm and produce a listing of raw symbols and C names.
26637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26639 # Transform the output of nm in a proper C declaration
26640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26642 # Transform the output of nm in a C name address pair
26643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26645 # This is the shared library runtime path variable.
26646 runpath_var=$runpath_var
26648 # This is the shared library path variable.
26649 shlibpath_var=$shlibpath_var
26651 # Is shlibpath searched before the hard-coded library search path?
26652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26654 # How to hardcode a shared library path into an executable.
26655 hardcode_action=$hardcode_action_RC
26657 # Whether we should hardcode library paths into libraries.
26658 hardcode_into_libs=$hardcode_into_libs
26660 # Flag to hardcode \$libdir into a binary during linking.
26661 # This must work even if \$libdir does not exist.
26662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26664 # If ld is used when linking, flag to hardcode \$libdir into
26665 # a binary during linking. This must work even if \$libdir does
26667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26669 # Whether we need a single -rpath flag with a separated argument.
26670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26673 # resulting binary.
26674 hardcode_direct=$hardcode_direct_RC
26676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26677 # resulting binary.
26678 hardcode_minus_L=$hardcode_minus_L_RC
26680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26681 # the resulting binary.
26682 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26684 # Set to yes if building a shared library automatically hardcodes DIR into the library
26685 # and all subsequent libraries and executables linked against it.
26686 hardcode_automatic=$hardcode_automatic_RC
26688 # Variables whose values should be saved in libtool wrapper scripts and
26689 # restored at relink time.
26690 variables_saved_for_relink="$variables_saved_for_relink"
26692 # Whether libtool must link a program against all its dependency libraries.
26693 link_all_deplibs=$link_all_deplibs_RC
26695 # Compile-time system search path for libraries
26696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26698 # Run-time system search path for libraries
26699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26701 # Fix the shell variable \$srcfile for the compiler.
26702 fix_srcfile_path="$fix_srcfile_path_RC"
26704 # Set to yes if exported symbols are required.
26705 always_export_symbols=$always_export_symbols_RC
26707 # The commands to list exported symbols.
26708 export_symbols_cmds=$lt_export_symbols_cmds_RC
26710 # The commands to extract the exported symbol list from a shared archive.
26711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26713 # Symbols that should not be listed in the preloaded symbols.
26714 exclude_expsyms=$lt_exclude_expsyms_RC
26716 # Symbols that must always be exported.
26717 include_expsyms=$lt_include_expsyms_RC
26719 # ### END LIBTOOL TAG CONFIG: $tagname
26725 # If there is no Makefile yet, we rely on a make rule to execute
26726 # `config.status --recheck' to rerun these tests and create the
26727 # libtool script then.
26728 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26729 if test -f "$ltmain_in"; then
26730 test -f Makefile && make "$ltmain"
26736 ac_cpp='$CPP $CPPFLAGS'
26737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26746 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26747 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26748 { (exit 1); exit 1; }; }
26752 # Append the new tag name to the list of available tags.
26753 if test -n "$tagname" ; then
26754 available_tags="$available_tags $tagname"
26760 # Now substitute the updated list of available tags.
26761 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26762 mv "${ofile}T" "$ofile"
26766 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26767 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26768 { (exit 1); exit 1; }; }
26774 # This can be used to rebuild libtool when needed
26775 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26777 # Always use our own libtool.
26778 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26780 # Prevent multiple expansion
26802 if test "$lt_cv_dlopen_self" = "yes" ; then
26804 cat >>confdefs.h <<\_ACEOF
26805 #define CAN_DLOPEN_SELF 1
26810 if test "$WITH_LLVMGCCDIR" = "default" ; then
26811 LLVMGCC="llvm-gcc${EXEEXT}"
26812 LLVMGXX="llvm-g++${EXEEXT}"
26813 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26814 set dummy $LLVMGCC; ac_word=$2
26815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26817 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26822 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26826 for as_dir in $PATH
26829 test -z "$as_dir" && as_dir=.
26830 for ac_exec_ext in '' $ac_executable_extensions; do
26831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26832 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26843 LLVMGCC=$ac_cv_path_LLVMGCC
26844 if test -n "$LLVMGCC"; then
26845 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26846 echo "${ECHO_T}$LLVMGCC" >&6; }
26848 { echo "$as_me:$LINENO: result: no" >&5
26849 echo "${ECHO_T}no" >&6; }
26853 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26854 set dummy $LLVMGXX; ac_word=$2
26855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26857 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26862 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26866 for as_dir in $PATH
26869 test -z "$as_dir" && as_dir=.
26870 for ac_exec_ext in '' $ac_executable_extensions; do
26871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26872 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26883 LLVMGXX=$ac_cv_path_LLVMGXX
26884 if test -n "$LLVMGXX"; then
26885 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26886 echo "${ECHO_T}$LLVMGXX" >&6; }
26888 { echo "$as_me:$LINENO: result: no" >&5
26889 echo "${ECHO_T}no" >&6; }
26894 if test -z "$LLVMGCC"; then
26895 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26897 if test -z "$LLVMGXX"; then
26898 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26906 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26907 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26920 if test "$GCC" != "yes" && test "$ICC" != "yes"
26922 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26923 echo "$as_me: error: gcc|icc required but not found" >&2;}
26924 { (exit 1); exit 1; }; }
26927 if test "$GXX" != "yes" && test "$IXX" != "yes"
26929 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26930 echo "$as_me: error: g++|icc required but not found" >&2;}
26931 { (exit 1); exit 1; }; }
26934 if test "$GCC" = "yes"
26936 cat >conftest.$ac_ext <<_ACEOF
26937 #if !defined(__GNUC__) || __GNUC__ < 3
26938 #error Unsupported GCC version
26942 rm -f conftest.$ac_objext
26943 if { (ac_try="$ac_compile"
26944 case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_compile") 2>conftest.er1
26951 grep -v '^ *+' conftest.er1 >conftest.err
26953 cat conftest.err >&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } &&
26956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26957 { (case "(($ac_try" in
26958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26959 *) ac_try_echo=$ac_try;;
26961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26962 (eval "$ac_try") 2>&5
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; } &&
26966 { ac_try='test -s conftest.$ac_objext'
26967 { (case "(($ac_try" in
26968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969 *) ac_try_echo=$ac_try;;
26971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972 (eval "$ac_try") 2>&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; }; then
26978 echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26981 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26982 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26983 { (exit 1); exit 1; }; }
26986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26989 if test -z "$llvm_cv_gnu_make_command"
26991 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26992 echo "$as_me: error: GNU Make required but not found" >&2;}
26993 { (exit 1); exit 1; }; }
26996 { echo "$as_me:$LINENO: result: ok" >&5
26997 echo "${ECHO_T}ok" >&6; }
27001 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27002 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27003 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27006 ac_check_lib_save_LIBS=$LIBS
27008 cat >conftest.$ac_ext <<_ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h. */
27015 /* Override any GCC internal prototype to avoid an error.
27016 Use char because int might match the return type of a GCC
27017 builtin and then its argument prototype would still apply. */
27025 return elf_begin ();
27030 rm -f conftest.$ac_objext conftest$ac_exeext
27031 if { (ac_try="$ac_link"
27032 case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_link") 2>conftest.er1
27039 grep -v '^ *+' conftest.er1 >conftest.err
27041 cat conftest.err >&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); } &&
27044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27045 { (case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; } &&
27054 { ac_try='test -s conftest$ac_exeext'
27055 { (case "(($ac_try" in
27056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057 *) ac_try_echo=$ac_try;;
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060 (eval "$ac_try") 2>&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; }; then
27064 ac_cv_lib_elf_elf_begin=yes
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 ac_cv_lib_elf_elf_begin=no
27072 rm -f core conftest.err conftest.$ac_objext \
27073 conftest$ac_exeext conftest.$ac_ext
27074 LIBS=$ac_check_lib_save_LIBS
27076 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27077 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27078 if test $ac_cv_lib_elf_elf_begin = yes; then
27079 cat >>confdefs.h <<_ACEOF
27080 #define HAVE_LIBELF 1
27088 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27089 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27090 if test "${ac_cv_lib_m_sin+set}" = set; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27093 ac_check_lib_save_LIBS=$LIBS
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27102 /* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (ac_try="$ac_link"
27119 case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_link") 2>conftest.er1
27126 grep -v '^ *+' conftest.er1 >conftest.err
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } &&
27131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_cv_lib_m_sin=yes
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27159 rm -f core conftest.err conftest.$ac_objext \
27160 conftest$ac_exeext conftest.$ac_ext
27161 LIBS=$ac_check_lib_save_LIBS
27163 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27164 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27165 if test $ac_cv_lib_m_sin = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167 #define HAVE_LIBM 1
27174 if test "$llvm_cv_os_type" = "MingW" ; then
27176 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27177 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27178 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27181 ac_check_lib_save_LIBS=$LIBS
27182 LIBS="-limagehlp $LIBS"
27183 cat >conftest.$ac_ext <<_ACEOF
27186 cat confdefs.h >>conftest.$ac_ext
27187 cat >>conftest.$ac_ext <<_ACEOF
27188 /* end confdefs.h. */
27199 rm -f conftest.$ac_objext conftest$ac_exeext
27200 if { (ac_try="$ac_link"
27201 case "(($ac_try" in
27202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203 *) ac_try_echo=$ac_try;;
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206 (eval "$ac_link") 2>conftest.er1
27208 grep -v '^ *+' conftest.er1 >conftest.err
27210 cat conftest.err >&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); } &&
27213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27214 { (case "(($ac_try" in
27215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_try") 2>&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; } &&
27223 { ac_try='test -s conftest$ac_exeext'
27224 { (case "(($ac_try" in
27225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226 *) ac_try_echo=$ac_try;;
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_try") 2>&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
27233 ac_cv_lib_imagehlp_main=yes
27235 echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27238 ac_cv_lib_imagehlp_main=no
27241 rm -f core conftest.err conftest.$ac_objext \
27242 conftest$ac_exeext conftest.$ac_ext
27243 LIBS=$ac_check_lib_save_LIBS
27245 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27246 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27247 if test $ac_cv_lib_imagehlp_main = yes; then
27248 cat >>confdefs.h <<_ACEOF
27249 #define HAVE_LIBIMAGEHLP 1
27252 LIBS="-limagehlp $LIBS"
27257 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27258 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27259 if test "${ac_cv_lib_psapi_main+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27262 ac_check_lib_save_LIBS=$LIBS
27263 LIBS="-lpsapi $LIBS"
27264 cat >conftest.$ac_ext <<_ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h. */
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_try") 2>&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; } &&
27304 { ac_try='test -s conftest$ac_exeext'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
27314 ac_cv_lib_psapi_main=yes
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_cv_lib_psapi_main=no
27322 rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
27324 LIBS=$ac_check_lib_save_LIBS
27326 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27327 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27328 if test $ac_cv_lib_psapi_main = yes; then
27329 cat >>confdefs.h <<_ACEOF
27330 #define HAVE_LIBPSAPI 1
27333 LIBS="-lpsapi $LIBS"
27339 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27340 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27341 if test "${ac_cv_search_dlopen+set}" = set; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
27344 ac_func_search_save_LIBS=$LIBS
27345 cat >conftest.$ac_ext <<_ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h. */
27352 /* Override any GCC internal prototype to avoid an error.
27353 Use char because int might match the return type of a GCC
27354 builtin and then its argument prototype would still apply. */
27367 for ac_lib in '' dl; do
27368 if test -z "$ac_lib"; then
27369 ac_res="none required"
27372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27374 rm -f conftest.$ac_objext conftest$ac_exeext
27375 if { (ac_try="$ac_link"
27376 case "(($ac_try" in
27377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378 *) ac_try_echo=$ac_try;;
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381 (eval "$ac_link") 2>conftest.er1
27383 grep -v '^ *+' conftest.er1 >conftest.err
27385 cat conftest.err >&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } &&
27398 { ac_try='test -s conftest$ac_exeext'
27399 { (case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404 (eval "$ac_try") 2>&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; }; then
27408 ac_cv_search_dlopen=$ac_res
27410 echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27416 rm -f core conftest.err conftest.$ac_objext \
27418 if test "${ac_cv_search_dlopen+set}" = set; then
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27425 ac_cv_search_dlopen=no
27427 rm conftest.$ac_ext
27428 LIBS=$ac_func_search_save_LIBS
27430 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432 ac_res=$ac_cv_search_dlopen
27433 if test "$ac_res" != no; then
27434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27436 cat >>confdefs.h <<\_ACEOF
27437 #define HAVE_DLOPEN 1
27441 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27442 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27446 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27447 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27448 if test "${ac_cv_search_ffi_call+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27451 ac_func_search_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27459 /* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27469 return ffi_call ();
27474 for ac_lib in '' ffi; do
27475 if test -z "$ac_lib"; then
27476 ac_res="none required"
27479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
27490 grep -v '^ *+' conftest.er1 >conftest.err
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; }; then
27515 ac_cv_search_ffi_call=$ac_res
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27523 rm -f core conftest.err conftest.$ac_objext \
27525 if test "${ac_cv_search_ffi_call+set}" = set; then
27529 if test "${ac_cv_search_ffi_call+set}" = set; then
27532 ac_cv_search_ffi_call=no
27534 rm conftest.$ac_ext
27535 LIBS=$ac_func_search_save_LIBS
27537 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27538 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27539 ac_res=$ac_cv_search_ffi_call
27540 if test "$ac_res" != no; then
27541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_FFI_CALL 1
27548 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27549 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27553 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27554 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27555 if test "${ac_cv_search_mallinfo+set}" = set; then
27556 echo $ECHO_N "(cached) $ECHO_C" >&6
27558 ac_func_search_save_LIBS=$LIBS
27559 cat >conftest.$ac_ext <<_ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h. */
27566 /* Override any GCC internal prototype to avoid an error.
27567 Use char because int might match the return type of a GCC
27568 builtin and then its argument prototype would still apply. */
27576 return mallinfo ();
27581 for ac_lib in '' malloc; do
27582 if test -z "$ac_lib"; then
27583 ac_res="none required"
27586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27588 rm -f conftest.$ac_objext conftest$ac_exeext
27589 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27597 grep -v '^ *+' conftest.er1 >conftest.err
27599 cat conftest.err >&5
27600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); } &&
27602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27603 { (case "(($ac_try" in
27604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605 *) ac_try_echo=$ac_try;;
27607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608 (eval "$ac_try") 2>&5
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; } &&
27612 { ac_try='test -s conftest$ac_exeext'
27613 { (case "(($ac_try" in
27614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615 *) ac_try_echo=$ac_try;;
27617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27618 (eval "$ac_try") 2>&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); }; }; then
27622 ac_cv_search_mallinfo=$ac_res
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27630 rm -f core conftest.err conftest.$ac_objext \
27632 if test "${ac_cv_search_mallinfo+set}" = set; then
27636 if test "${ac_cv_search_mallinfo+set}" = set; then
27639 ac_cv_search_mallinfo=no
27641 rm conftest.$ac_ext
27642 LIBS=$ac_func_search_save_LIBS
27644 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27645 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27646 ac_res=$ac_cv_search_mallinfo
27647 if test "$ac_res" != no; then
27648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27650 cat >>confdefs.h <<\_ACEOF
27651 #define HAVE_MALLINFO 1
27657 if test "$ENABLE_THREADS" -eq 1 ; then
27659 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27660 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27661 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27662 echo $ECHO_N "(cached) $ECHO_C" >&6
27664 ac_check_lib_save_LIBS=$LIBS
27665 LIBS="-lpthread $LIBS"
27666 cat >conftest.$ac_ext <<_ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27673 /* Override any GCC internal prototype to avoid an error.
27674 Use char because int might match the return type of a GCC
27675 builtin and then its argument prototype would still apply. */
27679 char pthread_mutex_init ();
27683 return pthread_mutex_init ();
27688 rm -f conftest.$ac_objext conftest$ac_exeext
27689 if { (ac_try="$ac_link"
27690 case "(($ac_try" in
27691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692 *) ac_try_echo=$ac_try;;
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695 (eval "$ac_link") 2>conftest.er1
27697 grep -v '^ *+' conftest.er1 >conftest.err
27699 cat conftest.err >&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); } &&
27702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27703 { (case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708 (eval "$ac_try") 2>&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; } &&
27712 { ac_try='test -s conftest$ac_exeext'
27713 { (case "(($ac_try" in
27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718 (eval "$ac_try") 2>&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; }; then
27722 ac_cv_lib_pthread_pthread_mutex_init=yes
27724 echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27727 ac_cv_lib_pthread_pthread_mutex_init=no
27730 rm -f core conftest.err conftest.$ac_objext \
27731 conftest$ac_exeext conftest.$ac_ext
27732 LIBS=$ac_check_lib_save_LIBS
27734 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27735 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27736 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27737 cat >>confdefs.h <<_ACEOF
27738 #define HAVE_LIBPTHREAD 1
27741 LIBS="-lpthread $LIBS"
27745 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27746 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27747 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27750 ac_func_search_save_LIBS=$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_lock ();
27768 return pthread_mutex_lock ();
27773 for ac_lib in '' pthread; do
27774 if test -z "$ac_lib"; then
27775 ac_res="none required"
27778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27780 rm -f conftest.$ac_objext conftest$ac_exeext
27781 if { (ac_try="$ac_link"
27782 case "(($ac_try" in
27783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784 *) ac_try_echo=$ac_try;;
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787 (eval "$ac_link") 2>conftest.er1
27789 grep -v '^ *+' conftest.er1 >conftest.err
27791 cat conftest.err >&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); } &&
27794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27795 { (case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_try") 2>&5
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); }; } &&
27804 { ac_try='test -s conftest$ac_exeext'
27805 { (case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810 (eval "$ac_try") 2>&5
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
27814 ac_cv_search_pthread_mutex_lock=$ac_res
27816 echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27822 rm -f core conftest.err conftest.$ac_objext \
27824 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27828 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27831 ac_cv_search_pthread_mutex_lock=no
27833 rm conftest.$ac_ext
27834 LIBS=$ac_func_search_save_LIBS
27836 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27837 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27838 ac_res=$ac_cv_search_pthread_mutex_lock
27839 if test "$ac_res" != no; then
27840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27842 cat >>confdefs.h <<\_ACEOF
27843 #define HAVE_PTHREAD_MUTEX_LOCK 1
27851 # Check whether --with-udis86 was given.
27852 if test "${with_udis86+set}" = set; then
27853 withval=$with_udis86;
27858 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27861 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27862 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27863 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27866 ac_check_lib_save_LIBS=$LIBS
27867 LIBS="-ludis86 $LIBS"
27868 cat >conftest.$ac_ext <<_ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h. */
27875 /* Override any GCC internal prototype to avoid an error.
27876 Use char because int might match the return type of a GCC
27877 builtin and then its argument prototype would still apply. */
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (ac_try="$ac_link"
27892 case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_link") 2>conftest.er1
27899 grep -v '^ *+' conftest.er1 >conftest.err
27901 cat conftest.err >&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); } &&
27904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27905 { (case "(($ac_try" in
27906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907 *) ac_try_echo=$ac_try;;
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910 (eval "$ac_try") 2>&5
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; } &&
27914 { ac_try='test -s conftest$ac_exeext'
27915 { (case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_try") 2>&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; }; then
27924 ac_cv_lib_udis86_ud_init=yes
27926 echo "$as_me: failed program was:" >&5
27927 sed 's/^/| /' conftest.$ac_ext >&5
27929 ac_cv_lib_udis86_ud_init=no
27932 rm -f core conftest.err conftest.$ac_objext \
27933 conftest$ac_exeext conftest.$ac_ext
27934 LIBS=$ac_check_lib_save_LIBS
27936 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27937 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27938 if test $ac_cv_lib_udis86_ud_init = yes; then
27939 cat >>confdefs.h <<_ACEOF
27940 #define HAVE_LIBUDIS86 1
27943 LIBS="-ludis86 $LIBS"
27947 echo "Error! You need to have libudis86 around."
27959 cat >>confdefs.h <<_ACEOF
27960 #define USE_UDIS86 $USE_UDIS86
27970 ac_header_dirent=no
27971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27972 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27973 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27974 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27976 echo $ECHO_N "(cached) $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h. */
27984 #include <sys/types.h>
27996 rm -f conftest.$ac_objext
27997 if { (ac_try="$ac_compile"
27998 case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_compile") 2>conftest.er1
28005 grep -v '^ *+' conftest.er1 >conftest.err
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } &&
28010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011 { (case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_try") 2>&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; } &&
28020 { ac_try='test -s conftest.$ac_objext'
28021 { (case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_try") 2>&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; }; then
28030 eval "$as_ac_Header=yes"
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 eval "$as_ac_Header=no"
28038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28040 ac_res=`eval echo '${'$as_ac_Header'}'`
28041 { echo "$as_me:$LINENO: result: $ac_res" >&5
28042 echo "${ECHO_T}$ac_res" >&6; }
28043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28044 cat >>confdefs.h <<_ACEOF
28045 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28048 ac_header_dirent=$ac_hdr; break
28052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28053 if test $ac_header_dirent = dirent.h; then
28054 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28055 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28056 if test "${ac_cv_search_opendir+set}" = set; then
28057 echo $ECHO_N "(cached) $ECHO_C" >&6
28059 ac_func_search_save_LIBS=$LIBS
28060 cat >conftest.$ac_ext <<_ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h. */
28067 /* Override any GCC internal prototype to avoid an error.
28068 Use char because int might match the return type of a GCC
28069 builtin and then its argument prototype would still apply. */
28082 for ac_lib in '' dir; do
28083 if test -z "$ac_lib"; then
28084 ac_res="none required"
28087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28089 rm -f conftest.$ac_objext conftest$ac_exeext
28090 if { (ac_try="$ac_link"
28091 case "(($ac_try" in
28092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093 *) ac_try_echo=$ac_try;;
28095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28096 (eval "$ac_link") 2>conftest.er1
28098 grep -v '^ *+' conftest.er1 >conftest.err
28100 cat conftest.err >&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); } &&
28103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28104 { (case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109 (eval "$ac_try") 2>&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; } &&
28113 { ac_try='test -s conftest$ac_exeext'
28114 { (case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119 (eval "$ac_try") 2>&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); }; }; then
28123 ac_cv_search_opendir=$ac_res
28125 echo "$as_me: failed program was:" >&5
28126 sed 's/^/| /' conftest.$ac_ext >&5
28131 rm -f core conftest.err conftest.$ac_objext \
28133 if test "${ac_cv_search_opendir+set}" = set; then
28137 if test "${ac_cv_search_opendir+set}" = set; then
28140 ac_cv_search_opendir=no
28142 rm conftest.$ac_ext
28143 LIBS=$ac_func_search_save_LIBS
28145 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28146 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28147 ac_res=$ac_cv_search_opendir
28148 if test "$ac_res" != no; then
28149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28154 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28156 if test "${ac_cv_search_opendir+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28159 ac_func_search_save_LIBS=$LIBS
28160 cat >conftest.$ac_ext <<_ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28167 /* Override any GCC internal prototype to avoid an error.
28168 Use char because int might match the return type of a GCC
28169 builtin and then its argument prototype would still apply. */
28182 for ac_lib in '' x; do
28183 if test -z "$ac_lib"; then
28184 ac_res="none required"
28187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28189 rm -f conftest.$ac_objext conftest$ac_exeext
28190 if { (ac_try="$ac_link"
28191 case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_link") 2>conftest.er1
28198 grep -v '^ *+' conftest.er1 >conftest.err
28200 cat conftest.err >&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } &&
28203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28204 { (case "(($ac_try" in
28205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206 *) ac_try_echo=$ac_try;;
28208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209 (eval "$ac_try") 2>&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; } &&
28213 { ac_try='test -s conftest$ac_exeext'
28214 { (case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_try") 2>&5
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; }; then
28223 ac_cv_search_opendir=$ac_res
28225 echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28231 rm -f core conftest.err conftest.$ac_objext \
28233 if test "${ac_cv_search_opendir+set}" = set; then
28237 if test "${ac_cv_search_opendir+set}" = set; then
28240 ac_cv_search_opendir=no
28242 rm conftest.$ac_ext
28243 LIBS=$ac_func_search_save_LIBS
28245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28247 ac_res=$ac_cv_search_opendir
28248 if test "$ac_res" != no; then
28249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28255 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28256 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28257 if test "${ac_cv_header_mmap_anon+set}" = set; then
28258 echo $ECHO_N "(cached) $ECHO_C" >&6
28261 ac_cpp='$CPP $CPPFLAGS'
28262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28266 cat >conftest.$ac_ext <<_ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h. */
28272 #include <sys/mman.h>
28273 #include <unistd.h>
28278 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28283 rm -f conftest.$ac_objext
28284 if { (ac_try="$ac_compile"
28285 case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_compile") 2>conftest.er1
28292 grep -v '^ *+' conftest.er1 >conftest.err
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } &&
28297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28298 { (case "(($ac_try" in
28299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 (eval "$ac_try") 2>&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest.$ac_objext'
28308 { (case "(($ac_try" in
28309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310 *) ac_try_echo=$ac_try;;
28312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313 (eval "$ac_try") 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ac_cv_header_mmap_anon=yes
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28322 ac_cv_header_mmap_anon=no
28325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28327 ac_cpp='$CPP $CPPFLAGS'
28328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28334 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28335 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28336 if test "$ac_cv_header_mmap_anon" = yes; then
28338 cat >>confdefs.h <<\_ACEOF
28339 #define HAVE_MMAP_ANONYMOUS 1
28344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28346 if test "${ac_cv_header_stat_broken+set}" = set; then
28347 echo $ECHO_N "(cached) $ECHO_C" >&6
28349 cat >conftest.$ac_ext <<_ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h. */
28355 #include <sys/types.h>
28356 #include <sys/stat.h>
28358 #if defined S_ISBLK && defined S_IFDIR
28359 # if S_ISBLK (S_IFDIR)
28364 #if defined S_ISBLK && defined S_IFCHR
28365 # if S_ISBLK (S_IFCHR)
28370 #if defined S_ISLNK && defined S_IFREG
28371 # if S_ISLNK (S_IFREG)
28376 #if defined S_ISSOCK && defined S_IFREG
28377 # if S_ISSOCK (S_IFREG)
28383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28384 $EGREP "You lose" >/dev/null 2>&1; then
28385 ac_cv_header_stat_broken=yes
28387 ac_cv_header_stat_broken=no
28392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28394 if test $ac_cv_header_stat_broken = yes; then
28396 cat >>confdefs.h <<\_ACEOF
28397 #define STAT_MACROS_BROKEN 1
28402 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28403 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28404 if test "${ac_cv_header_stdc+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28407 cat >conftest.$ac_ext <<_ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h. */
28413 #include <stdlib.h>
28414 #include <stdarg.h>
28415 #include <string.h>
28426 rm -f conftest.$ac_objext
28427 if { (ac_try="$ac_compile"
28428 case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_compile") 2>conftest.er1
28435 grep -v '^ *+' conftest.er1 >conftest.err
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
28440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28441 { (case "(($ac_try" in
28442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443 *) ac_try_echo=$ac_try;;
28445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446 (eval "$ac_try") 2>&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); }; } &&
28450 { ac_try='test -s conftest.$ac_objext'
28451 { (case "(($ac_try" in
28452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453 *) ac_try_echo=$ac_try;;
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456 (eval "$ac_try") 2>&5
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; }; then
28460 ac_cv_header_stdc=yes
28462 echo "$as_me: failed program was:" >&5
28463 sed 's/^/| /' conftest.$ac_ext >&5
28465 ac_cv_header_stdc=no
28468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28470 if test $ac_cv_header_stdc = yes; then
28471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28478 #include <string.h>
28481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28482 $EGREP "memchr" >/dev/null 2>&1; then
28485 ac_cv_header_stdc=no
28491 if test $ac_cv_header_stdc = yes; then
28492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28493 cat >conftest.$ac_ext <<_ACEOF
28496 cat confdefs.h >>conftest.$ac_ext
28497 cat >>conftest.$ac_ext <<_ACEOF
28498 /* end confdefs.h. */
28499 #include <stdlib.h>
28502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28503 $EGREP "free" >/dev/null 2>&1; then
28506 ac_cv_header_stdc=no
28512 if test $ac_cv_header_stdc = yes; then
28513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28514 if test "$cross_compiling" = yes; then
28517 cat >conftest.$ac_ext <<_ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h. */
28524 #include <stdlib.h>
28525 #if ((' ' & 0x0FF) == 0x020)
28526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28529 # define ISLOWER(c) \
28530 (('a' <= (c) && (c) <= 'i') \
28531 || ('j' <= (c) && (c) <= 'r') \
28532 || ('s' <= (c) && (c) <= 'z'))
28533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28541 for (i = 0; i < 256; i++)
28542 if (XOR (islower (i), ISLOWER (i))
28543 || toupper (i) != TOUPPER (i))
28548 rm -f conftest$ac_exeext
28549 if { (ac_try="$ac_link"
28550 case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_link") 2>&5
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28559 { (case "(($ac_try" in
28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561 *) ac_try_echo=$ac_try;;
28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564 (eval "$ac_try") 2>&5
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28570 echo "$as_me: program exited with status $ac_status" >&5
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28574 ( exit $ac_status )
28575 ac_cv_header_stdc=no
28577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28583 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28584 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28585 if test $ac_cv_header_stdc = yes; then
28587 cat >>confdefs.h <<\_ACEOF
28588 #define STDC_HEADERS 1
28593 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28594 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28598 cat >conftest.$ac_ext <<_ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h. */
28604 #include <sys/types.h>
28605 #include <sys/wait.h>
28606 #ifndef WEXITSTATUS
28607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28623 rm -f conftest.$ac_objext
28624 if { (ac_try="$ac_compile"
28625 case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630 (eval "$ac_compile") 2>conftest.er1
28632 grep -v '^ *+' conftest.er1 >conftest.err
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28638 { (case "(($ac_try" in
28639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28640 *) ac_try_echo=$ac_try;;
28642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643 (eval "$ac_try") 2>&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; } &&
28647 { ac_try='test -s conftest.$ac_objext'
28648 { (case "(($ac_try" in
28649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650 *) ac_try_echo=$ac_try;;
28652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653 (eval "$ac_try") 2>&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; }; then
28657 ac_cv_header_sys_wait_h=yes
28659 echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28662 ac_cv_header_sys_wait_h=no
28665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28668 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28669 if test $ac_cv_header_sys_wait_h = yes; then
28671 cat >>confdefs.h <<\_ACEOF
28672 #define HAVE_SYS_WAIT_H 1
28677 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28679 if test "${ac_cv_header_time+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28682 cat >conftest.$ac_ext <<_ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h. */
28688 #include <sys/types.h>
28689 #include <sys/time.h>
28695 if ((struct tm *) 0)
28701 rm -f conftest.$ac_objext
28702 if { (ac_try="$ac_compile"
28703 case "(($ac_try" in
28704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705 *) ac_try_echo=$ac_try;;
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708 (eval "$ac_compile") 2>conftest.er1
28710 grep -v '^ *+' conftest.er1 >conftest.err
28712 cat conftest.err >&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); } &&
28715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28716 { (case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_try") 2>&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; } &&
28725 { ac_try='test -s conftest.$ac_objext'
28726 { (case "(($ac_try" in
28727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728 *) ac_try_echo=$ac_try;;
28730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28731 (eval "$ac_try") 2>&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; }; then
28735 ac_cv_header_time=yes
28737 echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28740 ac_cv_header_time=no
28743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28745 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28746 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28747 if test $ac_cv_header_time = yes; then
28749 cat >>confdefs.h <<\_ACEOF
28750 #define TIME_WITH_SYS_TIME 1
28762 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28771 ac_res=`eval echo '${'$as_ac_Header'}'`
28772 { echo "$as_me:$LINENO: result: $ac_res" >&5
28773 echo "${ECHO_T}$ac_res" >&6; }
28775 # Is the header compilable?
28776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28778 cat >conftest.$ac_ext <<_ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h. */
28784 $ac_includes_default
28785 #include <$ac_header>
28787 rm -f conftest.$ac_objext
28788 if { (ac_try="$ac_compile"
28789 case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_compile") 2>conftest.er1
28796 grep -v '^ *+' conftest.er1 >conftest.err
28798 cat conftest.err >&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); } &&
28801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28802 { (case "(($ac_try" in
28803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804 *) ac_try_echo=$ac_try;;
28806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807 (eval "$ac_try") 2>&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; } &&
28811 { ac_try='test -s conftest.$ac_objext'
28812 { (case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_try") 2>&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; }; then
28821 ac_header_compiler=yes
28823 echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28826 ac_header_compiler=no
28829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28831 echo "${ECHO_T}$ac_header_compiler" >&6; }
28833 # Is the header present?
28834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28836 cat >conftest.$ac_ext <<_ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h. */
28842 #include <$ac_header>
28844 if { (ac_try="$ac_cpp conftest.$ac_ext"
28845 case "(($ac_try" in
28846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847 *) ac_try_echo=$ac_try;;
28849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28852 grep -v '^ *+' conftest.er1 >conftest.err
28854 cat conftest.err >&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } >/dev/null; then
28857 if test -s conftest.err; then
28858 ac_cpp_err=$ac_c_preproc_warn_flag
28859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28866 if test -z "$ac_cpp_err"; then
28867 ac_header_preproc=yes
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28872 ac_header_preproc=no
28875 rm -f conftest.err conftest.$ac_ext
28876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28877 echo "${ECHO_T}$ac_header_preproc" >&6; }
28879 # So? What about this header?
28880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28886 ac_header_preproc=yes
28889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28902 ## ----------------------------------- ##
28903 ## Report this to llvmbugs@cs.uiuc.edu ##
28904 ## ----------------------------------- ##
28906 ) | sed "s/^/$as_me: WARNING: /" >&2
28909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912 echo $ECHO_N "(cached) $ECHO_C" >&6
28914 eval "$as_ac_Header=\$ac_header_preproc"
28916 ac_res=`eval echo '${'$as_ac_Header'}'`
28917 { echo "$as_me:$LINENO: result: $ac_res" >&5
28918 echo "${ECHO_T}$ac_res" >&6; }
28921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28922 cat >>confdefs.h <<_ACEOF
28923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28936 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28943 echo $ECHO_N "(cached) $ECHO_C" >&6
28945 ac_res=`eval echo '${'$as_ac_Header'}'`
28946 { echo "$as_me:$LINENO: result: $ac_res" >&5
28947 echo "${ECHO_T}$ac_res" >&6; }
28949 # Is the header compilable?
28950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28952 cat >conftest.$ac_ext <<_ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h. */
28958 $ac_includes_default
28959 #include <$ac_header>
28961 rm -f conftest.$ac_objext
28962 if { (ac_try="$ac_compile"
28963 case "(($ac_try" in
28964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968 (eval "$ac_compile") 2>conftest.er1
28970 grep -v '^ *+' conftest.er1 >conftest.err
28972 cat conftest.err >&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); } &&
28975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28976 { (case "(($ac_try" in
28977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28978 *) ac_try_echo=$ac_try;;
28980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28981 (eval "$ac_try") 2>&5
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); }; } &&
28985 { ac_try='test -s conftest.$ac_objext'
28986 { (case "(($ac_try" in
28987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28988 *) ac_try_echo=$ac_try;;
28990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28991 (eval "$ac_try") 2>&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); }; }; then
28995 ac_header_compiler=yes
28997 echo "$as_me: failed program was:" >&5
28998 sed 's/^/| /' conftest.$ac_ext >&5
29000 ac_header_compiler=no
29003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29005 echo "${ECHO_T}$ac_header_compiler" >&6; }
29007 # Is the header present?
29008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29010 cat >conftest.$ac_ext <<_ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h. */
29016 #include <$ac_header>
29018 if { (ac_try="$ac_cpp conftest.$ac_ext"
29019 case "(($ac_try" in
29020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021 *) ac_try_echo=$ac_try;;
29023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29026 grep -v '^ *+' conftest.er1 >conftest.err
29028 cat conftest.err >&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); } >/dev/null; then
29031 if test -s conftest.err; then
29032 ac_cpp_err=$ac_c_preproc_warn_flag
29033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29040 if test -z "$ac_cpp_err"; then
29041 ac_header_preproc=yes
29043 echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29046 ac_header_preproc=no
29049 rm -f conftest.err conftest.$ac_ext
29050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29051 echo "${ECHO_T}$ac_header_preproc" >&6; }
29053 # So? What about this header?
29054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29060 ac_header_preproc=yes
29063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29076 ## ----------------------------------- ##
29077 ## Report this to llvmbugs@cs.uiuc.edu ##
29078 ## ----------------------------------- ##
29080 ) | sed "s/^/$as_me: WARNING: /" >&2
29083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29086 echo $ECHO_N "(cached) $ECHO_C" >&6
29088 eval "$as_ac_Header=\$ac_header_preproc"
29090 ac_res=`eval echo '${'$as_ac_Header'}'`
29091 { echo "$as_me:$LINENO: result: $ac_res" >&5
29092 echo "${ECHO_T}$ac_res" >&6; }
29095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29096 cat >>confdefs.h <<_ACEOF
29097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29105 for ac_header in windows.h
29107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29114 ac_res=`eval echo '${'$as_ac_Header'}'`
29115 { echo "$as_me:$LINENO: result: $ac_res" >&5
29116 echo "${ECHO_T}$ac_res" >&6; }
29118 # Is the header compilable?
29119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29121 cat >conftest.$ac_ext <<_ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 $ac_includes_default
29128 #include <$ac_header>
29130 rm -f conftest.$ac_objext
29131 if { (ac_try="$ac_compile"
29132 case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_compile") 2>conftest.er1
29139 grep -v '^ *+' conftest.er1 >conftest.err
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } &&
29144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29145 { (case "(($ac_try" in
29146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147 *) ac_try_echo=$ac_try;;
29149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150 (eval "$ac_try") 2>&5
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; } &&
29154 { ac_try='test -s conftest.$ac_objext'
29155 { (case "(($ac_try" in
29156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157 *) ac_try_echo=$ac_try;;
29159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160 (eval "$ac_try") 2>&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 ac_header_compiler=yes
29166 echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29169 ac_header_compiler=no
29172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174 echo "${ECHO_T}$ac_header_compiler" >&6; }
29176 # Is the header present?
29177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29179 cat >conftest.$ac_ext <<_ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29185 #include <$ac_header>
29187 if { (ac_try="$ac_cpp conftest.$ac_ext"
29188 case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29195 grep -v '^ *+' conftest.er1 >conftest.err
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); } >/dev/null; then
29200 if test -s conftest.err; then
29201 ac_cpp_err=$ac_c_preproc_warn_flag
29202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29209 if test -z "$ac_cpp_err"; then
29210 ac_header_preproc=yes
29212 echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29215 ac_header_preproc=no
29218 rm -f conftest.err conftest.$ac_ext
29219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220 echo "${ECHO_T}$ac_header_preproc" >&6; }
29222 # So? What about this header?
29223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29229 ac_header_preproc=yes
29232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29245 ## ----------------------------------- ##
29246 ## Report this to llvmbugs@cs.uiuc.edu ##
29247 ## ----------------------------------- ##
29249 ) | sed "s/^/$as_me: WARNING: /" >&2
29252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29257 eval "$as_ac_Header=\$ac_header_preproc"
29259 ac_res=`eval echo '${'$as_ac_Header'}'`
29260 { echo "$as_me:$LINENO: result: $ac_res" >&5
29261 echo "${ECHO_T}$ac_res" >&6; }
29264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29265 cat >>confdefs.h <<_ACEOF
29266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29277 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29286 ac_res=`eval echo '${'$as_ac_Header'}'`
29287 { echo "$as_me:$LINENO: result: $ac_res" >&5
29288 echo "${ECHO_T}$ac_res" >&6; }
29290 # Is the header compilable?
29291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29293 cat >conftest.$ac_ext <<_ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h. */
29299 $ac_includes_default
29300 #include <$ac_header>
29302 rm -f conftest.$ac_objext
29303 if { (ac_try="$ac_compile"
29304 case "(($ac_try" in
29305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29306 *) ac_try_echo=$ac_try;;
29308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29309 (eval "$ac_compile") 2>conftest.er1
29311 grep -v '^ *+' conftest.er1 >conftest.err
29313 cat conftest.err >&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); } &&
29316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29317 { (case "(($ac_try" in
29318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_try") 2>&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest.$ac_objext'
29327 { (case "(($ac_try" in
29328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29329 *) ac_try_echo=$ac_try;;
29331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29332 (eval "$ac_try") 2>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
29336 ac_header_compiler=yes
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ac_header_compiler=no
29344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29346 echo "${ECHO_T}$ac_header_compiler" >&6; }
29348 # Is the header present?
29349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29351 cat >conftest.$ac_ext <<_ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h. */
29357 #include <$ac_header>
29359 if { (ac_try="$ac_cpp conftest.$ac_ext"
29360 case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29367 grep -v '^ *+' conftest.er1 >conftest.err
29369 cat conftest.err >&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } >/dev/null; then
29372 if test -s conftest.err; then
29373 ac_cpp_err=$ac_c_preproc_warn_flag
29374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29381 if test -z "$ac_cpp_err"; then
29382 ac_header_preproc=yes
29384 echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29387 ac_header_preproc=no
29390 rm -f conftest.err conftest.$ac_ext
29391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29392 echo "${ECHO_T}$ac_header_preproc" >&6; }
29394 # So? What about this header?
29395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29401 ac_header_preproc=yes
29404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29417 ## ----------------------------------- ##
29418 ## Report this to llvmbugs@cs.uiuc.edu ##
29419 ## ----------------------------------- ##
29421 ) | sed "s/^/$as_me: WARNING: /" >&2
29424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29427 echo $ECHO_N "(cached) $ECHO_C" >&6
29429 eval "$as_ac_Header=\$ac_header_preproc"
29431 ac_res=`eval echo '${'$as_ac_Header'}'`
29432 { echo "$as_me:$LINENO: result: $ac_res" >&5
29433 echo "${ECHO_T}$ac_res" >&6; }
29436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29437 cat >>confdefs.h <<_ACEOF
29438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29448 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29455 echo $ECHO_N "(cached) $ECHO_C" >&6
29457 ac_res=`eval echo '${'$as_ac_Header'}'`
29458 { echo "$as_me:$LINENO: result: $ac_res" >&5
29459 echo "${ECHO_T}$ac_res" >&6; }
29461 # Is the header compilable?
29462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29464 cat >conftest.$ac_ext <<_ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h. */
29470 $ac_includes_default
29471 #include <$ac_header>
29473 rm -f conftest.$ac_objext
29474 if { (ac_try="$ac_compile"
29475 case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_compile") 2>conftest.er1
29482 grep -v '^ *+' conftest.er1 >conftest.err
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
29487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest.$ac_objext'
29498 { (case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_try") 2>&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
29507 ac_header_compiler=yes
29509 echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29512 ac_header_compiler=no
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517 echo "${ECHO_T}$ac_header_compiler" >&6; }
29519 # Is the header present?
29520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29522 cat >conftest.$ac_ext <<_ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 #include <$ac_header>
29530 if { (ac_try="$ac_cpp conftest.$ac_ext"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29538 grep -v '^ *+' conftest.er1 >conftest.err
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } >/dev/null; then
29543 if test -s conftest.err; then
29544 ac_cpp_err=$ac_c_preproc_warn_flag
29545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29552 if test -z "$ac_cpp_err"; then
29553 ac_header_preproc=yes
29555 echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29558 ac_header_preproc=no
29561 rm -f conftest.err conftest.$ac_ext
29562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29563 echo "${ECHO_T}$ac_header_preproc" >&6; }
29565 # So? What about this header?
29566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29572 ac_header_preproc=yes
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29588 ## ----------------------------------- ##
29589 ## Report this to llvmbugs@cs.uiuc.edu ##
29590 ## ----------------------------------- ##
29592 ) | sed "s/^/$as_me: WARNING: /" >&2
29595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29598 echo $ECHO_N "(cached) $ECHO_C" >&6
29600 eval "$as_ac_Header=\$ac_header_preproc"
29602 ac_res=`eval echo '${'$as_ac_Header'}'`
29603 { echo "$as_me:$LINENO: result: $ac_res" >&5
29604 echo "${ECHO_T}$ac_res" >&6; }
29607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29608 cat >>confdefs.h <<_ACEOF
29609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29616 if test "$ENABLE_THREADS" -eq 1 ; then
29618 for ac_header in pthread.h
29620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29627 ac_res=`eval echo '${'$as_ac_Header'}'`
29628 { echo "$as_me:$LINENO: result: $ac_res" >&5
29629 echo "${ECHO_T}$ac_res" >&6; }
29631 # Is the header compilable?
29632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29634 cat >conftest.$ac_ext <<_ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h. */
29640 $ac_includes_default
29641 #include <$ac_header>
29643 rm -f conftest.$ac_objext
29644 if { (ac_try="$ac_compile"
29645 case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_compile") 2>conftest.er1
29652 grep -v '^ *+' conftest.er1 >conftest.err
29654 cat conftest.err >&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); } &&
29657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29658 { (case "(($ac_try" in
29659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660 *) ac_try_echo=$ac_try;;
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663 (eval "$ac_try") 2>&5
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; } &&
29667 { ac_try='test -s conftest.$ac_objext'
29668 { (case "(($ac_try" in
29669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670 *) ac_try_echo=$ac_try;;
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673 (eval "$ac_try") 2>&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); }; }; then
29677 ac_header_compiler=yes
29679 echo "$as_me: failed program was:" >&5
29680 sed 's/^/| /' conftest.$ac_ext >&5
29682 ac_header_compiler=no
29685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29687 echo "${ECHO_T}$ac_header_compiler" >&6; }
29689 # Is the header present?
29690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29692 cat >conftest.$ac_ext <<_ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h. */
29698 #include <$ac_header>
29700 if { (ac_try="$ac_cpp conftest.$ac_ext"
29701 case "(($ac_try" in
29702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703 *) ac_try_echo=$ac_try;;
29705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29708 grep -v '^ *+' conftest.er1 >conftest.err
29710 cat conftest.err >&5
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); } >/dev/null; then
29713 if test -s conftest.err; then
29714 ac_cpp_err=$ac_c_preproc_warn_flag
29715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29722 if test -z "$ac_cpp_err"; then
29723 ac_header_preproc=yes
29725 echo "$as_me: failed program was:" >&5
29726 sed 's/^/| /' conftest.$ac_ext >&5
29728 ac_header_preproc=no
29731 rm -f conftest.err conftest.$ac_ext
29732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29733 echo "${ECHO_T}$ac_header_preproc" >&6; }
29735 # So? What about this header?
29736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29742 ac_header_preproc=yes
29745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29758 ## ----------------------------------- ##
29759 ## Report this to llvmbugs@cs.uiuc.edu ##
29760 ## ----------------------------------- ##
29762 ) | sed "s/^/$as_me: WARNING: /" >&2
29765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29770 eval "$as_ac_Header=\$ac_header_preproc"
29772 ac_res=`eval echo '${'$as_ac_Header'}'`
29773 { echo "$as_me:$LINENO: result: $ac_res" >&5
29774 echo "${ECHO_T}$ac_res" >&6; }
29777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29778 cat >>confdefs.h <<_ACEOF
29779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29797 for ac_header in ffi.h ffi/ffi.h
29799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 ac_res=`eval echo '${'$as_ac_Header'}'`
29807 { echo "$as_me:$LINENO: result: $ac_res" >&5
29808 echo "${ECHO_T}$ac_res" >&6; }
29810 # Is the header compilable?
29811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29813 cat >conftest.$ac_ext <<_ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h. */
29819 $ac_includes_default
29820 #include <$ac_header>
29822 rm -f conftest.$ac_objext
29823 if { (ac_try="$ac_compile"
29824 case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_compile") 2>conftest.er1
29831 grep -v '^ *+' conftest.er1 >conftest.err
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } &&
29836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29837 { (case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_try") 2>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest.$ac_objext'
29847 { (case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_try") 2>&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
29856 ac_header_compiler=yes
29858 echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29861 ac_header_compiler=no
29864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29866 echo "${ECHO_T}$ac_header_compiler" >&6; }
29868 # Is the header present?
29869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29871 cat >conftest.$ac_ext <<_ACEOF
29874 cat confdefs.h >>conftest.$ac_ext
29875 cat >>conftest.$ac_ext <<_ACEOF
29876 /* end confdefs.h. */
29877 #include <$ac_header>
29879 if { (ac_try="$ac_cpp conftest.$ac_ext"
29880 case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29887 grep -v '^ *+' conftest.er1 >conftest.err
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } >/dev/null; then
29892 if test -s conftest.err; then
29893 ac_cpp_err=$ac_c_preproc_warn_flag
29894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29901 if test -z "$ac_cpp_err"; then
29902 ac_header_preproc=yes
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29907 ac_header_preproc=no
29910 rm -f conftest.err conftest.$ac_ext
29911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29912 echo "${ECHO_T}$ac_header_preproc" >&6; }
29914 # So? What about this header?
29915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29921 ac_header_preproc=yes
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29937 ## ----------------------------------- ##
29938 ## Report this to llvmbugs@cs.uiuc.edu ##
29939 ## ----------------------------------- ##
29941 ) | sed "s/^/$as_me: WARNING: /" >&2
29944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29947 echo $ECHO_N "(cached) $ECHO_C" >&6
29949 eval "$as_ac_Header=\$ac_header_preproc"
29951 ac_res=`eval echo '${'$as_ac_Header'}'`
29952 { echo "$as_me:$LINENO: result: $ac_res" >&5
29953 echo "${ECHO_T}$ac_res" >&6; }
29956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29957 cat >>confdefs.h <<_ACEOF
29958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29968 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29969 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29970 if test "${ac_cv_huge_val_sanity+set}" = set; then
29971 echo $ECHO_N "(cached) $ECHO_C" >&6
29975 ac_cpp='$CXXCPP $CPPFLAGS'
29976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29981 if test "$cross_compiling" = yes; then
29982 ac_cv_huge_val_sanity=yes
29984 cat >conftest.$ac_ext <<_ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29994 double x = HUGE_VAL; return x != x;
29999 rm -f conftest$ac_exeext
30000 if { (ac_try="$ac_link"
30001 case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_link") 2>&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30010 { (case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_try") 2>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30019 ac_cv_huge_val_sanity=yes
30021 echo "$as_me: program exited with status $ac_status" >&5
30022 echo "$as_me: failed program was:" >&5
30023 sed 's/^/| /' conftest.$ac_ext >&5
30025 ( exit $ac_status )
30026 ac_cv_huge_val_sanity=no
30028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30033 ac_cpp='$CPP $CPPFLAGS'
30034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30040 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30041 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30042 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30045 { echo "$as_me:$LINENO: checking for pid_t" >&5
30046 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30047 if test "${ac_cv_type_pid_t+set}" = set; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30050 cat >conftest.$ac_ext <<_ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30056 $ac_includes_default
30057 typedef pid_t ac__type_new_;
30061 if ((ac__type_new_ *) 0)
30063 if (sizeof (ac__type_new_))
30069 rm -f conftest.$ac_objext
30070 if { (ac_try="$ac_compile"
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_compile") 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); } &&
30083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084 { (case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_try") 2>&5
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
30094 { (case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_try") 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_type_pid_t=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_type_pid_t=no
30111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30113 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30114 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30115 if test $ac_cv_type_pid_t = yes; then
30119 cat >>confdefs.h <<_ACEOF
30125 { echo "$as_me:$LINENO: checking for size_t" >&5
30126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30127 if test "${ac_cv_type_size_t+set}" = set; then
30128 echo $ECHO_N "(cached) $ECHO_C" >&6
30130 cat >conftest.$ac_ext <<_ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h. */
30136 $ac_includes_default
30137 typedef size_t ac__type_new_;
30141 if ((ac__type_new_ *) 0)
30143 if (sizeof (ac__type_new_))
30149 rm -f conftest.$ac_objext
30150 if { (ac_try="$ac_compile"
30151 case "(($ac_try" in
30152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30153 *) ac_try_echo=$ac_try;;
30155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30156 (eval "$ac_compile") 2>conftest.er1
30158 grep -v '^ *+' conftest.er1 >conftest.err
30160 cat conftest.err >&5
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); } &&
30163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30164 { (case "(($ac_try" in
30165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166 *) ac_try_echo=$ac_try;;
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169 (eval "$ac_try") 2>&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); }; } &&
30173 { ac_try='test -s conftest.$ac_objext'
30174 { (case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_try") 2>&5
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; }; then
30183 ac_cv_type_size_t=yes
30185 echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30188 ac_cv_type_size_t=no
30191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30193 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30194 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30195 if test $ac_cv_type_size_t = yes; then
30199 cat >>confdefs.h <<_ACEOF
30200 #define size_t unsigned int
30205 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30206 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30207 if test "${ac_cv_type_signal+set}" = set; then
30208 echo $ECHO_N "(cached) $ECHO_C" >&6
30210 cat >conftest.$ac_ext <<_ACEOF
30213 cat confdefs.h >>conftest.$ac_ext
30214 cat >>conftest.$ac_ext <<_ACEOF
30215 /* end confdefs.h. */
30216 #include <sys/types.h>
30217 #include <signal.h>
30222 return *(signal (0, 0)) (0) == 1;
30227 rm -f conftest.$ac_objext
30228 if { (ac_try="$ac_compile"
30229 case "(($ac_try" in
30230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231 *) ac_try_echo=$ac_try;;
30233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234 (eval "$ac_compile") 2>conftest.er1
30236 grep -v '^ *+' conftest.er1 >conftest.err
30238 cat conftest.err >&5
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); } &&
30241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30242 { (case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_try") 2>&5
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest.$ac_objext'
30252 { (case "(($ac_try" in
30253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254 *) ac_try_echo=$ac_try;;
30256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257 (eval "$ac_try") 2>&5
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
30261 ac_cv_type_signal=int
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30266 ac_cv_type_signal=void
30269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30271 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30272 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30274 cat >>confdefs.h <<_ACEOF
30275 #define RETSIGTYPE $ac_cv_type_signal
30279 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30280 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30281 if test "${ac_cv_struct_tm+set}" = set; then
30282 echo $ECHO_N "(cached) $ECHO_C" >&6
30284 cat >conftest.$ac_ext <<_ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h. */
30290 #include <sys/types.h>
30296 struct tm *tp; tp->tm_sec;
30301 rm -f conftest.$ac_objext
30302 if { (ac_try="$ac_compile"
30303 case "(($ac_try" in
30304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305 *) ac_try_echo=$ac_try;;
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308 (eval "$ac_compile") 2>conftest.er1
30310 grep -v '^ *+' conftest.er1 >conftest.err
30312 cat conftest.err >&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } &&
30315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30316 { (case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_try") 2>&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest.$ac_objext'
30326 { (case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_try") 2>&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
30335 ac_cv_struct_tm=time.h
30337 echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30340 ac_cv_struct_tm=sys/time.h
30343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30345 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30346 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30347 if test $ac_cv_struct_tm = sys/time.h; then
30349 cat >>confdefs.h <<\_ACEOF
30350 #define TM_IN_SYS_TIME 1
30355 { echo "$as_me:$LINENO: checking for int64_t" >&5
30356 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30357 if test "${ac_cv_type_int64_t+set}" = set; then
30358 echo $ECHO_N "(cached) $ECHO_C" >&6
30360 cat >conftest.$ac_ext <<_ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h. */
30366 $ac_includes_default
30367 typedef int64_t ac__type_new_;
30371 if ((ac__type_new_ *) 0)
30373 if (sizeof (ac__type_new_))
30379 rm -f conftest.$ac_objext
30380 if { (ac_try="$ac_compile"
30381 case "(($ac_try" in
30382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383 *) ac_try_echo=$ac_try;;
30385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30386 (eval "$ac_compile") 2>conftest.er1
30388 grep -v '^ *+' conftest.er1 >conftest.err
30390 cat conftest.err >&5
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); } &&
30393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30394 { (case "(($ac_try" in
30395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396 *) ac_try_echo=$ac_try;;
30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399 (eval "$ac_try") 2>&5
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); }; } &&
30403 { ac_try='test -s conftest.$ac_objext'
30404 { (case "(($ac_try" in
30405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406 *) ac_try_echo=$ac_try;;
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409 (eval "$ac_try") 2>&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); }; }; then
30413 ac_cv_type_int64_t=yes
30415 echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30418 ac_cv_type_int64_t=no
30421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30423 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30424 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30425 if test $ac_cv_type_int64_t = yes; then
30427 cat >>confdefs.h <<_ACEOF
30428 #define HAVE_INT64_T 1
30433 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30434 echo "$as_me: error: Type int64_t required but not found" >&2;}
30435 { (exit 1); exit 1; }; }
30438 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30439 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30440 if test "${ac_cv_type_uint64_t+set}" = set; then
30441 echo $ECHO_N "(cached) $ECHO_C" >&6
30443 cat >conftest.$ac_ext <<_ACEOF
30446 cat confdefs.h >>conftest.$ac_ext
30447 cat >>conftest.$ac_ext <<_ACEOF
30448 /* end confdefs.h. */
30449 $ac_includes_default
30450 typedef uint64_t ac__type_new_;
30454 if ((ac__type_new_ *) 0)
30456 if (sizeof (ac__type_new_))
30462 rm -f conftest.$ac_objext
30463 if { (ac_try="$ac_compile"
30464 case "(($ac_try" in
30465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466 *) ac_try_echo=$ac_try;;
30468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469 (eval "$ac_compile") 2>conftest.er1
30471 grep -v '^ *+' conftest.er1 >conftest.err
30473 cat conftest.err >&5
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } &&
30476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30477 { (case "(($ac_try" in
30478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479 *) ac_try_echo=$ac_try;;
30481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30482 (eval "$ac_try") 2>&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); }; } &&
30486 { ac_try='test -s conftest.$ac_objext'
30487 { (case "(($ac_try" in
30488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_try") 2>&5
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; }; then
30496 ac_cv_type_uint64_t=yes
30498 echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30501 ac_cv_type_uint64_t=no
30504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30506 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30507 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30508 if test $ac_cv_type_uint64_t = yes; then
30510 cat >>confdefs.h <<_ACEOF
30511 #define HAVE_UINT64_T 1
30516 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30517 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30518 if test "${ac_cv_type_u_int64_t+set}" = set; then
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30521 cat >conftest.$ac_ext <<_ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h. */
30527 $ac_includes_default
30528 typedef u_int64_t ac__type_new_;
30532 if ((ac__type_new_ *) 0)
30534 if (sizeof (ac__type_new_))
30540 rm -f conftest.$ac_objext
30541 if { (ac_try="$ac_compile"
30542 case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_compile") 2>conftest.er1
30549 grep -v '^ *+' conftest.er1 >conftest.err
30551 cat conftest.err >&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); } &&
30554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30555 { (case "(($ac_try" in
30556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557 *) ac_try_echo=$ac_try;;
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560 (eval "$ac_try") 2>&5
30562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563 (exit $ac_status); }; } &&
30564 { ac_try='test -s conftest.$ac_objext'
30565 { (case "(($ac_try" in
30566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30567 *) ac_try_echo=$ac_try;;
30569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30570 (eval "$ac_try") 2>&5
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); }; }; then
30574 ac_cv_type_u_int64_t=yes
30576 echo "$as_me: failed program was:" >&5
30577 sed 's/^/| /' conftest.$ac_ext >&5
30579 ac_cv_type_u_int64_t=no
30582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30584 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30585 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30586 if test $ac_cv_type_u_int64_t = yes; then
30588 cat >>confdefs.h <<_ACEOF
30589 #define HAVE_U_INT64_T 1
30594 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30595 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30596 { (exit 1); exit 1; }; }
30610 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30616 echo $ECHO_N "(cached) $ECHO_C" >&6
30618 cat >conftest.$ac_ext <<_ACEOF
30621 cat confdefs.h >>conftest.$ac_ext
30622 cat >>conftest.$ac_ext <<_ACEOF
30623 /* end confdefs.h. */
30624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30626 #define $ac_func innocuous_$ac_func
30628 /* System header to define __stub macros and hopefully few prototypes,
30629 which can conflict with char $ac_func (); below.
30630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30631 <limits.h> exists even on freestanding compilers. */
30634 # include <limits.h>
30636 # include <assert.h>
30641 /* Override any GCC internal prototype to avoid an error.
30642 Use char because int might match the return type of a GCC
30643 builtin and then its argument prototype would still apply. */
30648 /* The GNU C library defines this for functions which it implements
30649 to always fail with ENOSYS. Some functions are actually named
30650 something starting with __ and the normal name is an alias. */
30651 #if defined __stub_$ac_func || defined __stub___$ac_func
30658 return $ac_func ();
30663 rm -f conftest.$ac_objext conftest$ac_exeext
30664 if { (ac_try="$ac_link"
30665 case "(($ac_try" in
30666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667 *) ac_try_echo=$ac_try;;
30669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30670 (eval "$ac_link") 2>conftest.er1
30672 grep -v '^ *+' conftest.er1 >conftest.err
30674 cat conftest.err >&5
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); } &&
30677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30678 { (case "(($ac_try" in
30679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680 *) ac_try_echo=$ac_try;;
30682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683 (eval "$ac_try") 2>&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; } &&
30687 { ac_try='test -s conftest$ac_exeext'
30688 { (case "(($ac_try" in
30689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_try") 2>&5
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); }; }; then
30697 eval "$as_ac_var=yes"
30699 echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30702 eval "$as_ac_var=no"
30705 rm -f core conftest.err conftest.$ac_objext \
30706 conftest$ac_exeext conftest.$ac_ext
30708 ac_res=`eval echo '${'$as_ac_var'}'`
30709 { echo "$as_me:$LINENO: result: $ac_res" >&5
30710 echo "${ECHO_T}$ac_res" >&6; }
30711 if test `eval echo '${'$as_ac_var'}'` = yes; then
30712 cat >>confdefs.h <<_ACEOF
30713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30723 for ac_func in powf fmodf strtof round
30725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30729 echo $ECHO_N "(cached) $ECHO_C" >&6
30731 cat >conftest.$ac_ext <<_ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h. */
30737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30739 #define $ac_func innocuous_$ac_func
30741 /* System header to define __stub macros and hopefully few prototypes,
30742 which can conflict with char $ac_func (); below.
30743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30744 <limits.h> exists even on freestanding compilers. */
30747 # include <limits.h>
30749 # include <assert.h>
30754 /* Override any GCC internal prototype to avoid an error.
30755 Use char because int might match the return type of a GCC
30756 builtin and then its argument prototype would still apply. */
30761 /* The GNU C library defines this for functions which it implements
30762 to always fail with ENOSYS. Some functions are actually named
30763 something starting with __ and the normal name is an alias. */
30764 #if defined __stub_$ac_func || defined __stub___$ac_func
30771 return $ac_func ();
30776 rm -f conftest.$ac_objext conftest$ac_exeext
30777 if { (ac_try="$ac_link"
30778 case "(($ac_try" in
30779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780 *) ac_try_echo=$ac_try;;
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783 (eval "$ac_link") 2>conftest.er1
30785 grep -v '^ *+' conftest.er1 >conftest.err
30787 cat conftest.err >&5
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); } &&
30790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30791 { (case "(($ac_try" in
30792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30793 *) ac_try_echo=$ac_try;;
30795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30796 (eval "$ac_try") 2>&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); }; } &&
30800 { ac_try='test -s conftest$ac_exeext'
30801 { (case "(($ac_try" in
30802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803 *) ac_try_echo=$ac_try;;
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806 (eval "$ac_try") 2>&5
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); }; }; then
30810 eval "$as_ac_var=yes"
30812 echo "$as_me: failed program was:" >&5
30813 sed 's/^/| /' conftest.$ac_ext >&5
30815 eval "$as_ac_var=no"
30818 rm -f core conftest.err conftest.$ac_objext \
30819 conftest$ac_exeext conftest.$ac_ext
30821 ac_res=`eval echo '${'$as_ac_var'}'`
30822 { echo "$as_me:$LINENO: result: $ac_res" >&5
30823 echo "${ECHO_T}$ac_res" >&6; }
30824 if test `eval echo '${'$as_ac_var'}'` = yes; then
30825 cat >>confdefs.h <<_ACEOF
30826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30837 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30845 cat >conftest.$ac_ext <<_ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h. */
30851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30853 #define $ac_func innocuous_$ac_func
30855 /* System header to define __stub macros and hopefully few prototypes,
30856 which can conflict with char $ac_func (); below.
30857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30858 <limits.h> exists even on freestanding compilers. */
30861 # include <limits.h>
30863 # include <assert.h>
30868 /* Override any GCC internal prototype to avoid an error.
30869 Use char because int might match the return type of a GCC
30870 builtin and then its argument prototype would still apply. */
30875 /* The GNU C library defines this for functions which it implements
30876 to always fail with ENOSYS. Some functions are actually named
30877 something starting with __ and the normal name is an alias. */
30878 #if defined __stub_$ac_func || defined __stub___$ac_func
30885 return $ac_func ();
30890 rm -f conftest.$ac_objext conftest$ac_exeext
30891 if { (ac_try="$ac_link"
30892 case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_link") 2>conftest.er1
30899 grep -v '^ *+' conftest.er1 >conftest.err
30901 cat conftest.err >&5
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); } &&
30904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30905 { (case "(($ac_try" in
30906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30907 *) ac_try_echo=$ac_try;;
30909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910 (eval "$ac_try") 2>&5
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913 (exit $ac_status); }; } &&
30914 { ac_try='test -s conftest$ac_exeext'
30915 { (case "(($ac_try" in
30916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917 *) ac_try_echo=$ac_try;;
30919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920 (eval "$ac_try") 2>&5
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); }; }; then
30924 eval "$as_ac_var=yes"
30926 echo "$as_me: failed program was:" >&5
30927 sed 's/^/| /' conftest.$ac_ext >&5
30929 eval "$as_ac_var=no"
30932 rm -f core conftest.err conftest.$ac_objext \
30933 conftest$ac_exeext conftest.$ac_ext
30935 ac_res=`eval echo '${'$as_ac_var'}'`
30936 { echo "$as_me:$LINENO: result: $ac_res" >&5
30937 echo "${ECHO_T}$ac_res" >&6; }
30938 if test `eval echo '${'$as_ac_var'}'` = yes; then
30939 cat >>confdefs.h <<_ACEOF
30940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30949 for ac_func in isatty mkdtemp mkstemp
30951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30955 echo $ECHO_N "(cached) $ECHO_C" >&6
30957 cat >conftest.$ac_ext <<_ACEOF
30960 cat confdefs.h >>conftest.$ac_ext
30961 cat >>conftest.$ac_ext <<_ACEOF
30962 /* end confdefs.h. */
30963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30965 #define $ac_func innocuous_$ac_func
30967 /* System header to define __stub macros and hopefully few prototypes,
30968 which can conflict with char $ac_func (); below.
30969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30970 <limits.h> exists even on freestanding compilers. */
30973 # include <limits.h>
30975 # include <assert.h>
30980 /* Override any GCC internal prototype to avoid an error.
30981 Use char because int might match the return type of a GCC
30982 builtin and then its argument prototype would still apply. */
30987 /* The GNU C library defines this for functions which it implements
30988 to always fail with ENOSYS. Some functions are actually named
30989 something starting with __ and the normal name is an alias. */
30990 #if defined __stub_$ac_func || defined __stub___$ac_func
30997 return $ac_func ();
31002 rm -f conftest.$ac_objext conftest$ac_exeext
31003 if { (ac_try="$ac_link"
31004 case "(($ac_try" in
31005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006 *) ac_try_echo=$ac_try;;
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009 (eval "$ac_link") 2>conftest.er1
31011 grep -v '^ *+' conftest.er1 >conftest.err
31013 cat conftest.err >&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); } &&
31016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31017 { (case "(($ac_try" in
31018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019 *) ac_try_echo=$ac_try;;
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022 (eval "$ac_try") 2>&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; } &&
31026 { ac_try='test -s conftest$ac_exeext'
31027 { (case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_try") 2>&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
31036 eval "$as_ac_var=yes"
31038 echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31041 eval "$as_ac_var=no"
31044 rm -f core conftest.err conftest.$ac_objext \
31045 conftest$ac_exeext conftest.$ac_ext
31047 ac_res=`eval echo '${'$as_ac_var'}'`
31048 { echo "$as_me:$LINENO: result: $ac_res" >&5
31049 echo "${ECHO_T}$ac_res" >&6; }
31050 if test `eval echo '${'$as_ac_var'}'` = yes; then
31051 cat >>confdefs.h <<_ACEOF
31052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31065 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31071 echo $ECHO_N "(cached) $ECHO_C" >&6
31073 cat >conftest.$ac_ext <<_ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h. */
31079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31081 #define $ac_func innocuous_$ac_func
31083 /* System header to define __stub macros and hopefully few prototypes,
31084 which can conflict with char $ac_func (); below.
31085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31086 <limits.h> exists even on freestanding compilers. */
31089 # include <limits.h>
31091 # include <assert.h>
31096 /* Override any GCC internal prototype to avoid an error.
31097 Use char because int might match the return type of a GCC
31098 builtin and then its argument prototype would still apply. */
31103 /* The GNU C library defines this for functions which it implements
31104 to always fail with ENOSYS. Some functions are actually named
31105 something starting with __ and the normal name is an alias. */
31106 #if defined __stub_$ac_func || defined __stub___$ac_func
31113 return $ac_func ();
31118 rm -f conftest.$ac_objext conftest$ac_exeext
31119 if { (ac_try="$ac_link"
31120 case "(($ac_try" in
31121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122 *) ac_try_echo=$ac_try;;
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125 (eval "$ac_link") 2>conftest.er1
31127 grep -v '^ *+' conftest.er1 >conftest.err
31129 cat conftest.err >&5
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); } &&
31132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31133 { (case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138 (eval "$ac_try") 2>&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; } &&
31142 { ac_try='test -s conftest$ac_exeext'
31143 { (case "(($ac_try" in
31144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_try") 2>&5
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; }; then
31152 eval "$as_ac_var=yes"
31154 echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31157 eval "$as_ac_var=no"
31160 rm -f core conftest.err conftest.$ac_objext \
31161 conftest$ac_exeext conftest.$ac_ext
31163 ac_res=`eval echo '${'$as_ac_var'}'`
31164 { echo "$as_me:$LINENO: result: $ac_res" >&5
31165 echo "${ECHO_T}$ac_res" >&6; }
31166 if test `eval echo '${'$as_ac_var'}'` = yes; then
31167 cat >>confdefs.h <<_ACEOF
31168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31178 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31184 echo $ECHO_N "(cached) $ECHO_C" >&6
31186 cat >conftest.$ac_ext <<_ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31194 #define $ac_func innocuous_$ac_func
31196 /* System header to define __stub macros and hopefully few prototypes,
31197 which can conflict with char $ac_func (); below.
31198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31199 <limits.h> exists even on freestanding compilers. */
31202 # include <limits.h>
31204 # include <assert.h>
31209 /* Override any GCC internal prototype to avoid an error.
31210 Use char because int might match the return type of a GCC
31211 builtin and then its argument prototype would still apply. */
31216 /* The GNU C library defines this for functions which it implements
31217 to always fail with ENOSYS. Some functions are actually named
31218 something starting with __ and the normal name is an alias. */
31219 #if defined __stub_$ac_func || defined __stub___$ac_func
31226 return $ac_func ();
31231 rm -f conftest.$ac_objext conftest$ac_exeext
31232 if { (ac_try="$ac_link"
31233 case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238 (eval "$ac_link") 2>conftest.er1
31240 grep -v '^ *+' conftest.er1 >conftest.err
31242 cat conftest.err >&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); } &&
31245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31246 { (case "(($ac_try" in
31247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248 *) ac_try_echo=$ac_try;;
31250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251 (eval "$ac_try") 2>&5
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; } &&
31255 { ac_try='test -s conftest$ac_exeext'
31256 { (case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_try") 2>&5
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
31265 eval "$as_ac_var=yes"
31267 echo "$as_me: failed program was:" >&5
31268 sed 's/^/| /' conftest.$ac_ext >&5
31270 eval "$as_ac_var=no"
31273 rm -f core conftest.err conftest.$ac_objext \
31274 conftest$ac_exeext conftest.$ac_ext
31276 ac_res=`eval echo '${'$as_ac_var'}'`
31277 { echo "$as_me:$LINENO: result: $ac_res" >&5
31278 echo "${ECHO_T}$ac_res" >&6; }
31279 if test `eval echo '${'$as_ac_var'}'` = yes; then
31280 cat >>confdefs.h <<_ACEOF
31281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31291 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31297 echo $ECHO_N "(cached) $ECHO_C" >&6
31299 cat >conftest.$ac_ext <<_ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h. */
31305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31307 #define $ac_func innocuous_$ac_func
31309 /* System header to define __stub macros and hopefully few prototypes,
31310 which can conflict with char $ac_func (); below.
31311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31312 <limits.h> exists even on freestanding compilers. */
31315 # include <limits.h>
31317 # include <assert.h>
31322 /* Override any GCC internal prototype to avoid an error.
31323 Use char because int might match the return type of a GCC
31324 builtin and then its argument prototype would still apply. */
31329 /* The GNU C library defines this for functions which it implements
31330 to always fail with ENOSYS. Some functions are actually named
31331 something starting with __ and the normal name is an alias. */
31332 #if defined __stub_$ac_func || defined __stub___$ac_func
31339 return $ac_func ();
31344 rm -f conftest.$ac_objext conftest$ac_exeext
31345 if { (ac_try="$ac_link"
31346 case "(($ac_try" in
31347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_link") 2>conftest.er1
31353 grep -v '^ *+' conftest.er1 >conftest.err
31355 cat conftest.err >&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } &&
31358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try='test -s conftest$ac_exeext'
31369 { (case "(($ac_try" in
31370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374 (eval "$ac_try") 2>&5
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; }; then
31378 eval "$as_ac_var=yes"
31380 echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31383 eval "$as_ac_var=no"
31386 rm -f core conftest.err conftest.$ac_objext \
31387 conftest$ac_exeext conftest.$ac_ext
31389 ac_res=`eval echo '${'$as_ac_var'}'`
31390 { echo "$as_me:$LINENO: result: $ac_res" >&5
31391 echo "${ECHO_T}$ac_res" >&6; }
31392 if test `eval echo '${'$as_ac_var'}'` = yes; then
31393 cat >>confdefs.h <<_ACEOF
31394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31400 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31401 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31402 if test "${llvm_cv_c_printf_a+set}" = set; then
31403 echo $ECHO_N "(cached) $ECHO_C" >&6
31406 ac_cpp='$CPP $CPPFLAGS'
31407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31411 if test "$cross_compiling" = yes; then
31412 llvmac_cv_c_printf_a=no
31414 cat >conftest.$ac_ext <<_ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h. */
31423 #include <stdlib.h>
31429 volatile double A, B;
31433 sprintf(Buffer, "%a", A);
31437 if (A != 0x1.999999999999ap-4)
31444 rm -f conftest$ac_exeext
31445 if { (ac_try="$ac_link"
31446 case "(($ac_try" in
31447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448 *) ac_try_echo=$ac_try;;
31450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31451 (eval "$ac_link") 2>&5
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31455 { (case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_try") 2>&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31464 llvm_cv_c_printf_a=yes
31466 echo "$as_me: program exited with status $ac_status" >&5
31467 echo "$as_me: failed program was:" >&5
31468 sed 's/^/| /' conftest.$ac_ext >&5
31470 ( exit $ac_status )
31471 llvmac_cv_c_printf_a=no
31473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31478 ac_cpp='$CPP $CPPFLAGS'
31479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31484 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31485 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31486 if test "$llvm_cv_c_printf_a" = "yes"; then
31488 cat >>confdefs.h <<\_ACEOF
31489 #define HAVE_PRINTF_A 1
31494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31495 # for constant arguments. Useless!
31496 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31497 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31498 if test "${ac_cv_working_alloca_h+set}" = set; then
31499 echo $ECHO_N "(cached) $ECHO_C" >&6
31501 cat >conftest.$ac_ext <<_ACEOF
31504 cat confdefs.h >>conftest.$ac_ext
31505 cat >>conftest.$ac_ext <<_ACEOF
31506 /* end confdefs.h. */
31507 #include <alloca.h>
31511 char *p = (char *) alloca (2 * sizeof (int));
31517 rm -f conftest.$ac_objext conftest$ac_exeext
31518 if { (ac_try="$ac_link"
31519 case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_link") 2>conftest.er1
31526 grep -v '^ *+' conftest.er1 >conftest.err
31528 cat conftest.err >&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } &&
31531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31532 { (case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_try") 2>&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; } &&
31541 { ac_try='test -s conftest$ac_exeext'
31542 { (case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_try") 2>&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
31551 ac_cv_working_alloca_h=yes
31553 echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31556 ac_cv_working_alloca_h=no
31559 rm -f core conftest.err conftest.$ac_objext \
31560 conftest$ac_exeext conftest.$ac_ext
31562 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31563 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31564 if test $ac_cv_working_alloca_h = yes; then
31566 cat >>confdefs.h <<\_ACEOF
31567 #define HAVE_ALLOCA_H 1
31572 { echo "$as_me:$LINENO: checking for alloca" >&5
31573 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31574 if test "${ac_cv_func_alloca_works+set}" = set; then
31575 echo $ECHO_N "(cached) $ECHO_C" >&6
31577 cat >conftest.$ac_ext <<_ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31584 # define alloca __builtin_alloca
31587 # include <malloc.h>
31588 # define alloca _alloca
31591 # include <alloca.h>
31596 # ifndef alloca /* predefined by HP cc +Olibcalls */
31607 char *p = (char *) alloca (1);
31613 rm -f conftest.$ac_objext conftest$ac_exeext
31614 if { (ac_try="$ac_link"
31615 case "(($ac_try" in
31616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617 *) ac_try_echo=$ac_try;;
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620 (eval "$ac_link") 2>conftest.er1
31622 grep -v '^ *+' conftest.er1 >conftest.err
31624 cat conftest.err >&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); } &&
31627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31628 { (case "(($ac_try" in
31629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630 *) ac_try_echo=$ac_try;;
31632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633 (eval "$ac_try") 2>&5
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; } &&
31637 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); }; }; then
31647 ac_cv_func_alloca_works=yes
31649 echo "$as_me: failed program was:" >&5
31650 sed 's/^/| /' conftest.$ac_ext >&5
31652 ac_cv_func_alloca_works=no
31655 rm -f core conftest.err conftest.$ac_objext \
31656 conftest$ac_exeext conftest.$ac_ext
31658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31661 if test $ac_cv_func_alloca_works = yes; then
31663 cat >>confdefs.h <<\_ACEOF
31664 #define HAVE_ALLOCA 1
31668 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31669 # that cause trouble. Some versions do not even contain alloca or
31670 # contain a buggy version. If you still want to use their alloca,
31671 # use ar to extract alloca.o from them instead of compiling alloca.c.
31673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31675 cat >>confdefs.h <<\_ACEOF
31680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31682 if test "${ac_cv_os_cray+set}" = set; then
31683 echo $ECHO_N "(cached) $ECHO_C" >&6
31685 cat >conftest.$ac_ext <<_ACEOF
31688 cat confdefs.h >>conftest.$ac_ext
31689 cat >>conftest.$ac_ext <<_ACEOF
31690 /* end confdefs.h. */
31691 #if defined CRAY && ! defined CRAY2
31698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31699 $EGREP "webecray" >/dev/null 2>&1; then
31707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31709 if test $ac_cv_os_cray = yes; then
31710 for ac_func in _getb67 GETB67 getb67; do
31711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31717 cat >conftest.$ac_ext <<_ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h. */
31723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31725 #define $ac_func innocuous_$ac_func
31727 /* System header to define __stub macros and hopefully few prototypes,
31728 which can conflict with char $ac_func (); below.
31729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730 <limits.h> exists even on freestanding compilers. */
31733 # include <limits.h>
31735 # include <assert.h>
31740 /* Override any GCC internal prototype to avoid an error.
31741 Use char because int might match the return type of a GCC
31742 builtin and then its argument prototype would still apply. */
31747 /* The GNU C library defines this for functions which it implements
31748 to always fail with ENOSYS. Some functions are actually named
31749 something starting with __ and the normal name is an alias. */
31750 #if defined __stub_$ac_func || defined __stub___$ac_func
31757 return $ac_func ();
31762 rm -f conftest.$ac_objext conftest$ac_exeext
31763 if { (ac_try="$ac_link"
31764 case "(($ac_try" in
31765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766 *) ac_try_echo=$ac_try;;
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769 (eval "$ac_link") 2>conftest.er1
31771 grep -v '^ *+' conftest.er1 >conftest.err
31773 cat conftest.err >&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); } &&
31776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31777 { (case "(($ac_try" in
31778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779 *) ac_try_echo=$ac_try;;
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782 (eval "$ac_try") 2>&5
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; } &&
31786 { ac_try='test -s conftest$ac_exeext'
31787 { (case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_try") 2>&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; }; then
31796 eval "$as_ac_var=yes"
31798 echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31801 eval "$as_ac_var=no"
31804 rm -f core conftest.err conftest.$ac_objext \
31805 conftest$ac_exeext conftest.$ac_ext
31807 ac_res=`eval echo '${'$as_ac_var'}'`
31808 { echo "$as_me:$LINENO: result: $ac_res" >&5
31809 echo "${ECHO_T}$ac_res" >&6; }
31810 if test `eval echo '${'$as_ac_var'}'` = yes; then
31812 cat >>confdefs.h <<_ACEOF
31813 #define CRAY_STACKSEG_END $ac_func
31822 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31823 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31824 if test "${ac_cv_c_stack_direction+set}" = set; then
31825 echo $ECHO_N "(cached) $ECHO_C" >&6
31827 if test "$cross_compiling" = yes; then
31828 ac_cv_c_stack_direction=0
31830 cat >conftest.$ac_ext <<_ACEOF
31833 cat confdefs.h >>conftest.$ac_ext
31834 cat >>conftest.$ac_ext <<_ACEOF
31835 /* end confdefs.h. */
31836 $ac_includes_default
31838 find_stack_direction ()
31840 static char *addr = 0;
31845 return find_stack_direction ();
31848 return (&dummy > addr) ? 1 : -1;
31854 return find_stack_direction () < 0;
31857 rm -f conftest$ac_exeext
31858 if { (ac_try="$ac_link"
31859 case "(($ac_try" in
31860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31861 *) ac_try_echo=$ac_try;;
31863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31864 (eval "$ac_link") 2>&5
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31868 { (case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_try") 2>&5
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; }; then
31877 ac_cv_c_stack_direction=1
31879 echo "$as_me: program exited with status $ac_status" >&5
31880 echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31883 ( exit $ac_status )
31884 ac_cv_c_stack_direction=-1
31886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31891 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31892 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31894 cat >>confdefs.h <<_ACEOF
31895 #define STACK_DIRECTION $ac_cv_c_stack_direction
31902 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31903 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31904 if test "${ac_cv_func_rand48+set}" = set; then
31905 echo $ECHO_N "(cached) $ECHO_C" >&6
31908 ac_cpp='$CXXCPP $CPPFLAGS'
31909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31913 cat >conftest.$ac_ext <<_ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h. */
31919 #include <stdlib.h>
31923 srand48(0);lrand48();drand48();
31928 rm -f conftest.$ac_objext
31929 if { (ac_try="$ac_compile"
31930 case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_compile") 2>conftest.er1
31937 grep -v '^ *+' conftest.er1 >conftest.err
31939 cat conftest.err >&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } &&
31942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31943 { (case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_try") 2>&5
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); }; } &&
31952 { ac_try='test -s conftest.$ac_objext'
31953 { (case "(($ac_try" in
31954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955 *) ac_try_echo=$ac_try;;
31957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958 (eval "$ac_try") 2>&5
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; }; then
31962 ac_cv_func_rand48=yes
31964 echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31967 ac_cv_func_rand48=no
31970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31972 ac_cpp='$CPP $CPPFLAGS'
31973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31978 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31979 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31981 if test "$ac_cv_func_rand48" = "yes" ; then
31983 cat >>confdefs.h <<\_ACEOF
31984 #define HAVE_RAND48 1
31990 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31991 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31992 if test "${ac_cv_cxx_namespaces+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
31996 ac_cpp='$CXXCPP $CPPFLAGS'
31997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32001 cat >conftest.$ac_ext <<_ACEOF
32004 cat confdefs.h >>conftest.$ac_ext
32005 cat >>conftest.$ac_ext <<_ACEOF
32006 /* end confdefs.h. */
32007 namespace Outer { namespace Inner { int i = 0; }}
32011 using namespace Outer::Inner; return i;
32016 rm -f conftest.$ac_objext
32017 if { (ac_try="$ac_compile"
32018 case "(($ac_try" in
32019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020 *) ac_try_echo=$ac_try;;
32022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023 (eval "$ac_compile") 2>conftest.er1
32025 grep -v '^ *+' conftest.er1 >conftest.err
32027 cat conftest.err >&5
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); } &&
32030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32031 { (case "(($ac_try" in
32032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033 *) ac_try_echo=$ac_try;;
32035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036 (eval "$ac_try") 2>&5
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; } &&
32040 { ac_try='test -s conftest.$ac_objext'
32041 { (case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_try") 2>&5
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 ac_cv_cxx_namespaces=yes
32052 echo "$as_me: failed program was:" >&5
32053 sed 's/^/| /' conftest.$ac_ext >&5
32055 ac_cv_cxx_namespaces=no
32058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32060 ac_cpp='$CPP $CPPFLAGS'
32061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32068 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32069 if test "$ac_cv_cxx_namespaces" = yes; then
32071 cat >>confdefs.h <<\_ACEOF
32072 #define HAVE_NAMESPACES
32077 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32078 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32079 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32080 echo $ECHO_N "(cached) $ECHO_C" >&6
32084 ac_cpp='$CXXCPP $CPPFLAGS'
32085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32089 cat >conftest.$ac_ext <<_ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h. */
32095 #include <iterator>
32096 #ifdef HAVE_NAMESPACES
32097 using namespace std;
32102 iterator<int,int,int> t; return 0;
32107 rm -f conftest.$ac_objext
32108 if { (ac_try="$ac_compile"
32109 case "(($ac_try" in
32110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114 (eval "$ac_compile") 2>conftest.er1
32116 grep -v '^ *+' conftest.er1 >conftest.err
32118 cat conftest.err >&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); } &&
32121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; } &&
32131 { ac_try='test -s conftest.$ac_objext'
32132 { (case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_try") 2>&5
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; }; then
32141 ac_cv_cxx_have_std_iterator=yes
32143 echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32146 ac_cv_cxx_have_std_iterator=no
32149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32151 ac_cpp='$CPP $CPPFLAGS'
32152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32158 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32159 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32160 if test "$ac_cv_cxx_have_std_iterator" = yes
32163 cat >>confdefs.h <<\_ACEOF
32164 #define HAVE_STD_ITERATOR 1
32169 cat >>confdefs.h <<\_ACEOF
32170 #define HAVE_STD_ITERATOR 0
32175 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32176 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32177 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32178 echo $ECHO_N "(cached) $ECHO_C" >&6
32182 ac_cpp='$CXXCPP $CPPFLAGS'
32183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32187 cat >conftest.$ac_ext <<_ACEOF
32190 cat confdefs.h >>conftest.$ac_ext
32191 cat >>conftest.$ac_ext <<_ACEOF
32192 /* end confdefs.h. */
32193 #include <iterator>
32194 #ifdef HAVE_NAMESPACES
32195 using namespace std;
32200 bidirectional_iterator<int,int> t; return 0;
32205 rm -f conftest.$ac_objext
32206 if { (ac_try="$ac_compile"
32207 case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_compile") 2>conftest.er1
32214 grep -v '^ *+' conftest.er1 >conftest.err
32216 cat conftest.err >&5
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); } &&
32219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32220 { (case "(($ac_try" in
32221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32222 *) ac_try_echo=$ac_try;;
32224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32225 (eval "$ac_try") 2>&5
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; } &&
32229 { ac_try='test -s conftest.$ac_objext'
32230 { (case "(($ac_try" in
32231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232 *) ac_try_echo=$ac_try;;
32234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235 (eval "$ac_try") 2>&5
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); }; }; then
32239 ac_cv_cxx_have_bi_iterator=yes
32241 echo "$as_me: failed program was:" >&5
32242 sed 's/^/| /' conftest.$ac_ext >&5
32244 ac_cv_cxx_have_bi_iterator=no
32247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32249 ac_cpp='$CPP $CPPFLAGS'
32250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32256 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32257 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32258 if test "$ac_cv_cxx_have_bi_iterator" = yes
32261 cat >>confdefs.h <<\_ACEOF
32262 #define HAVE_BI_ITERATOR 1
32267 cat >>confdefs.h <<\_ACEOF
32268 #define HAVE_BI_ITERATOR 0
32273 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32274 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32275 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32276 echo $ECHO_N "(cached) $ECHO_C" >&6
32280 ac_cpp='$CXXCPP $CPPFLAGS'
32281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32285 cat >conftest.$ac_ext <<_ACEOF
32288 cat confdefs.h >>conftest.$ac_ext
32289 cat >>conftest.$ac_ext <<_ACEOF
32290 /* end confdefs.h. */
32291 #include <iterator>
32292 #ifdef HAVE_NAMESPACES
32293 using namespace std;
32298 forward_iterator<int,int> t; return 0;
32303 rm -f conftest.$ac_objext
32304 if { (ac_try="$ac_compile"
32305 case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_compile") 2>conftest.er1
32312 grep -v '^ *+' conftest.er1 >conftest.err
32314 cat conftest.err >&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } &&
32317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32318 { (case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_try") 2>&5
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; } &&
32327 { ac_try='test -s conftest.$ac_objext'
32328 { (case "(($ac_try" in
32329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330 *) ac_try_echo=$ac_try;;
32332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333 (eval "$ac_try") 2>&5
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); }; }; then
32337 ac_cv_cxx_have_fwd_iterator=yes
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_cv_cxx_have_fwd_iterator=no
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32347 ac_cpp='$CPP $CPPFLAGS'
32348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32354 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32355 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32356 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32359 cat >>confdefs.h <<\_ACEOF
32360 #define HAVE_FWD_ITERATOR 1
32365 cat >>confdefs.h <<\_ACEOF
32366 #define HAVE_FWD_ITERATOR 0
32372 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32373 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32374 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32375 echo $ECHO_N "(cached) $ECHO_C" >&6
32378 ac_cpp='$CXXCPP $CPPFLAGS'
32379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32383 cat >conftest.$ac_ext <<_ACEOF
32386 cat confdefs.h >>conftest.$ac_ext
32387 cat >>conftest.$ac_ext <<_ACEOF
32388 /* end confdefs.h. */
32398 rm -f conftest.$ac_objext
32399 if { (ac_try="$ac_compile"
32400 case "(($ac_try" in
32401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402 *) ac_try_echo=$ac_try;;
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405 (eval "$ac_compile") 2>conftest.er1
32407 grep -v '^ *+' conftest.er1 >conftest.err
32409 cat conftest.err >&5
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); } &&
32412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32413 { (case "(($ac_try" in
32414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32415 *) ac_try_echo=$ac_try;;
32417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32418 (eval "$ac_try") 2>&5
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); }; } &&
32422 { ac_try='test -s conftest.$ac_objext'
32423 { (case "(($ac_try" in
32424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425 *) ac_try_echo=$ac_try;;
32427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428 (eval "$ac_try") 2>&5
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; }; then
32432 ac_cv_func_isnan_in_math_h=yes
32434 echo "$as_me: failed program was:" >&5
32435 sed 's/^/| /' conftest.$ac_ext >&5
32437 ac_cv_func_isnan_in_math_h=no
32440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32442 ac_cpp='$CPP $CPPFLAGS'
32443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32448 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32449 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32452 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32454 cat >>confdefs.h <<\_ACEOF
32455 #define HAVE_ISNAN_IN_MATH_H 1
32460 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32461 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32462 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32466 ac_cpp='$CXXCPP $CPPFLAGS'
32467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32471 cat >conftest.$ac_ext <<_ACEOF
32474 cat confdefs.h >>conftest.$ac_ext
32475 cat >>conftest.$ac_ext <<_ACEOF
32476 /* end confdefs.h. */
32486 rm -f conftest.$ac_objext
32487 if { (ac_try="$ac_compile"
32488 case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_compile") 2>conftest.er1
32495 grep -v '^ *+' conftest.er1 >conftest.err
32497 cat conftest.err >&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
32520 ac_cv_func_isnan_in_cmath=yes
32522 echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32525 ac_cv_func_isnan_in_cmath=no
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530 ac_cpp='$CPP $CPPFLAGS'
32531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32536 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32537 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32539 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32541 cat >>confdefs.h <<\_ACEOF
32542 #define HAVE_ISNAN_IN_CMATH 1
32547 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32548 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32549 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32550 echo $ECHO_N "(cached) $ECHO_C" >&6
32553 ac_cpp='$CXXCPP $CPPFLAGS'
32554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32558 cat >conftest.$ac_ext <<_ACEOF
32561 cat confdefs.h >>conftest.$ac_ext
32562 cat >>conftest.$ac_ext <<_ACEOF
32563 /* end confdefs.h. */
32568 float f; std::isnan(f);
32573 rm -f conftest.$ac_objext
32574 if { (ac_try="$ac_compile"
32575 case "(($ac_try" in
32576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577 *) ac_try_echo=$ac_try;;
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580 (eval "$ac_compile") 2>conftest.er1
32582 grep -v '^ *+' conftest.er1 >conftest.err
32584 cat conftest.err >&5
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } &&
32587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32588 { (case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_try") 2>&5
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest.$ac_objext'
32598 { (case "(($ac_try" in
32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600 *) ac_try_echo=$ac_try;;
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603 (eval "$ac_try") 2>&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
32607 ac_cv_func_std_isnan_in_cmath=yes
32609 echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32612 ac_cv_func_std_isnan_in_cmath=no
32615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32617 ac_cpp='$CPP $CPPFLAGS'
32618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32623 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32624 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32626 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32628 cat >>confdefs.h <<\_ACEOF
32629 #define HAVE_STD_ISNAN_IN_CMATH 1
32635 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32636 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32637 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32638 echo $ECHO_N "(cached) $ECHO_C" >&6
32641 ac_cpp='$CXXCPP $CPPFLAGS'
32642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32646 cat >conftest.$ac_ext <<_ACEOF
32649 cat confdefs.h >>conftest.$ac_ext
32650 cat >>conftest.$ac_ext <<_ACEOF
32651 /* end confdefs.h. */
32661 rm -f conftest.$ac_objext
32662 if { (ac_try="$ac_compile"
32663 case "(($ac_try" in
32664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32665 *) ac_try_echo=$ac_try;;
32667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32668 (eval "$ac_compile") 2>conftest.er1
32670 grep -v '^ *+' conftest.er1 >conftest.err
32672 cat conftest.err >&5
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); } &&
32675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32676 { (case "(($ac_try" in
32677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32678 *) ac_try_echo=$ac_try;;
32680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32681 (eval "$ac_try") 2>&5
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); }; } &&
32685 { ac_try='test -s conftest.$ac_objext'
32686 { (case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_try") 2>&5
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; }; then
32695 ac_cv_func_isinf_in_math_h=yes
32697 echo "$as_me: failed program was:" >&5
32698 sed 's/^/| /' conftest.$ac_ext >&5
32700 ac_cv_func_isinf_in_math_h=no
32703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32705 ac_cpp='$CPP $CPPFLAGS'
32706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32711 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32712 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32714 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32716 cat >>confdefs.h <<\_ACEOF
32717 #define HAVE_ISINF_IN_MATH_H 1
32722 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32723 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32724 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32728 ac_cpp='$CXXCPP $CPPFLAGS'
32729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32733 cat >conftest.$ac_ext <<_ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h. */
32748 rm -f conftest.$ac_objext
32749 if { (ac_try="$ac_compile"
32750 case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_compile") 2>conftest.er1
32757 grep -v '^ *+' conftest.er1 >conftest.err
32759 cat conftest.err >&5
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); } &&
32762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32763 { (case "(($ac_try" in
32764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765 *) ac_try_echo=$ac_try;;
32767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768 (eval "$ac_try") 2>&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); }; } &&
32772 { ac_try='test -s conftest.$ac_objext'
32773 { (case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_try") 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ac_cv_func_isinf_in_cmath=yes
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ac_cv_func_isinf_in_cmath=no
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32792 ac_cpp='$CPP $CPPFLAGS'
32793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32798 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32799 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32801 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32803 cat >>confdefs.h <<\_ACEOF
32804 #define HAVE_ISINF_IN_CMATH 1
32809 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32810 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32811 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32812 echo $ECHO_N "(cached) $ECHO_C" >&6
32815 ac_cpp='$CXXCPP $CPPFLAGS'
32816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32820 cat >conftest.$ac_ext <<_ACEOF
32823 cat confdefs.h >>conftest.$ac_ext
32824 cat >>conftest.$ac_ext <<_ACEOF
32825 /* end confdefs.h. */
32830 float f; std::isinf(f)}
32835 rm -f conftest.$ac_objext
32836 if { (ac_try="$ac_compile"
32837 case "(($ac_try" in
32838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839 *) ac_try_echo=$ac_try;;
32841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842 (eval "$ac_compile") 2>conftest.er1
32844 grep -v '^ *+' conftest.er1 >conftest.err
32846 cat conftest.err >&5
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); } &&
32849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32850 { (case "(($ac_try" in
32851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32852 *) ac_try_echo=$ac_try;;
32854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32855 (eval "$ac_try") 2>&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; } &&
32859 { ac_try='test -s conftest.$ac_objext'
32860 { (case "(($ac_try" in
32861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862 *) ac_try_echo=$ac_try;;
32864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865 (eval "$ac_try") 2>&5
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; }; then
32869 ac_cv_func_std_isinf_in_cmath=yes
32871 echo "$as_me: failed program was:" >&5
32872 sed 's/^/| /' conftest.$ac_ext >&5
32874 ac_cv_func_std_isinf_in_cmath=no
32877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32879 ac_cpp='$CPP $CPPFLAGS'
32880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32885 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32886 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32888 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32890 cat >>confdefs.h <<\_ACEOF
32891 #define HAVE_STD_ISINF_IN_CMATH 1
32896 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32897 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32898 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32899 echo $ECHO_N "(cached) $ECHO_C" >&6
32902 ac_cpp='$CXXCPP $CPPFLAGS'
32903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32907 cat >conftest.$ac_ext <<_ACEOF
32910 cat confdefs.h >>conftest.$ac_ext
32911 cat >>conftest.$ac_ext <<_ACEOF
32912 /* end confdefs.h. */
32913 #include <ieeefp.h>
32917 float f; finite(f);
32922 rm -f conftest.$ac_objext
32923 if { (ac_try="$ac_compile"
32924 case "(($ac_try" in
32925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926 *) ac_try_echo=$ac_try;;
32928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929 (eval "$ac_compile") 2>conftest.er1
32931 grep -v '^ *+' conftest.er1 >conftest.err
32933 cat conftest.err >&5
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); } &&
32936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32937 { (case "(($ac_try" in
32938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939 *) ac_try_echo=$ac_try;;
32941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942 (eval "$ac_try") 2>&5
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; } &&
32946 { ac_try='test -s conftest.$ac_objext'
32947 { (case "(($ac_try" in
32948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949 *) ac_try_echo=$ac_try;;
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952 (eval "$ac_try") 2>&5
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); }; }; then
32956 ac_cv_func_finite_in_ieeefp_h=yes
32958 echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32961 ac_cv_func_finite_in_ieeefp_h=no
32964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32966 ac_cpp='$CPP $CPPFLAGS'
32967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32972 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32973 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32975 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32977 cat >>confdefs.h <<\_ACEOF
32978 #define HAVE_FINITE_IN_IEEEFP_H 1
32985 if test "$llvm_cv_platform_type" = "Unix" ; then
32988 for ac_header in stdlib.h unistd.h
32990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32997 ac_res=`eval echo '${'$as_ac_Header'}'`
32998 { echo "$as_me:$LINENO: result: $ac_res" >&5
32999 echo "${ECHO_T}$ac_res" >&6; }
33001 # Is the header compilable?
33002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33004 cat >conftest.$ac_ext <<_ACEOF
33007 cat confdefs.h >>conftest.$ac_ext
33008 cat >>conftest.$ac_ext <<_ACEOF
33009 /* end confdefs.h. */
33010 $ac_includes_default
33011 #include <$ac_header>
33013 rm -f conftest.$ac_objext
33014 if { (ac_try="$ac_compile"
33015 case "(($ac_try" in
33016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33017 *) ac_try_echo=$ac_try;;
33019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33020 (eval "$ac_compile") 2>conftest.er1
33022 grep -v '^ *+' conftest.er1 >conftest.err
33024 cat conftest.err >&5
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); } &&
33027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33028 { (case "(($ac_try" in
33029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030 *) ac_try_echo=$ac_try;;
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033 (eval "$ac_try") 2>&5
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; } &&
33037 { ac_try='test -s conftest.$ac_objext'
33038 { (case "(($ac_try" in
33039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040 *) ac_try_echo=$ac_try;;
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043 (eval "$ac_try") 2>&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; }; then
33047 ac_header_compiler=yes
33049 echo "$as_me: failed program was:" >&5
33050 sed 's/^/| /' conftest.$ac_ext >&5
33052 ac_header_compiler=no
33055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33057 echo "${ECHO_T}$ac_header_compiler" >&6; }
33059 # Is the header present?
33060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33062 cat >conftest.$ac_ext <<_ACEOF
33065 cat confdefs.h >>conftest.$ac_ext
33066 cat >>conftest.$ac_ext <<_ACEOF
33067 /* end confdefs.h. */
33068 #include <$ac_header>
33070 if { (ac_try="$ac_cpp conftest.$ac_ext"
33071 case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33078 grep -v '^ *+' conftest.er1 >conftest.err
33080 cat conftest.err >&5
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); } >/dev/null; then
33083 if test -s conftest.err; then
33084 ac_cpp_err=$ac_c_preproc_warn_flag
33085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33092 if test -z "$ac_cpp_err"; then
33093 ac_header_preproc=yes
33095 echo "$as_me: failed program was:" >&5
33096 sed 's/^/| /' conftest.$ac_ext >&5
33098 ac_header_preproc=no
33101 rm -f conftest.err conftest.$ac_ext
33102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33103 echo "${ECHO_T}$ac_header_preproc" >&6; }
33105 # So? What about this header?
33106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33112 ac_header_preproc=yes
33115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33128 ## ----------------------------------- ##
33129 ## Report this to llvmbugs@cs.uiuc.edu ##
33130 ## ----------------------------------- ##
33132 ) | sed "s/^/$as_me: WARNING: /" >&2
33135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33138 echo $ECHO_N "(cached) $ECHO_C" >&6
33140 eval "$as_ac_Header=\$ac_header_preproc"
33142 ac_res=`eval echo '${'$as_ac_Header'}'`
33143 { echo "$as_me:$LINENO: result: $ac_res" >&5
33144 echo "${ECHO_T}$ac_res" >&6; }
33147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33148 cat >>confdefs.h <<_ACEOF
33149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33157 for ac_func in getpagesize
33159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33163 echo $ECHO_N "(cached) $ECHO_C" >&6
33165 cat >conftest.$ac_ext <<_ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h. */
33171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33173 #define $ac_func innocuous_$ac_func
33175 /* System header to define __stub macros and hopefully few prototypes,
33176 which can conflict with char $ac_func (); below.
33177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33178 <limits.h> exists even on freestanding compilers. */
33181 # include <limits.h>
33183 # include <assert.h>
33188 /* Override any GCC internal prototype to avoid an error.
33189 Use char because int might match the return type of a GCC
33190 builtin and then its argument prototype would still apply. */
33195 /* The GNU C library defines this for functions which it implements
33196 to always fail with ENOSYS. Some functions are actually named
33197 something starting with __ and the normal name is an alias. */
33198 #if defined __stub_$ac_func || defined __stub___$ac_func
33205 return $ac_func ();
33210 rm -f conftest.$ac_objext conftest$ac_exeext
33211 if { (ac_try="$ac_link"
33212 case "(($ac_try" in
33213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214 *) ac_try_echo=$ac_try;;
33216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33217 (eval "$ac_link") 2>conftest.er1
33219 grep -v '^ *+' conftest.er1 >conftest.err
33221 cat conftest.err >&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); } &&
33224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33225 { (case "(($ac_try" in
33226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33227 *) ac_try_echo=$ac_try;;
33229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33230 (eval "$ac_try") 2>&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); }; } &&
33234 { ac_try='test -s conftest$ac_exeext'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; }; then
33244 eval "$as_ac_var=yes"
33246 echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33249 eval "$as_ac_var=no"
33252 rm -f core conftest.err conftest.$ac_objext \
33253 conftest$ac_exeext conftest.$ac_ext
33255 ac_res=`eval echo '${'$as_ac_var'}'`
33256 { echo "$as_me:$LINENO: result: $ac_res" >&5
33257 echo "${ECHO_T}$ac_res" >&6; }
33258 if test `eval echo '${'$as_ac_var'}'` = yes; then
33259 cat >>confdefs.h <<_ACEOF
33260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33266 { echo "$as_me:$LINENO: checking for working mmap" >&5
33267 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33269 echo $ECHO_N "(cached) $ECHO_C" >&6
33271 if test "$cross_compiling" = yes; then
33272 ac_cv_func_mmap_fixed_mapped=no
33274 cat >conftest.$ac_ext <<_ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h. */
33280 $ac_includes_default
33281 /* malloc might have been renamed as rpl_malloc. */
33284 /* Thanks to Mike Haertel and Jim Avera for this test.
33285 Here is a matrix of mmap possibilities:
33286 mmap private not fixed
33287 mmap private fixed at somewhere currently unmapped
33288 mmap private fixed at somewhere already mapped
33289 mmap shared not fixed
33290 mmap shared fixed at somewhere currently unmapped
33291 mmap shared fixed at somewhere already mapped
33292 For private mappings, we should verify that changes cannot be read()
33293 back from the file, nor mmap's back from the file at a different
33294 address. (There have been systems where private was not correctly
33295 implemented like the infamous i386 svr4.0, and systems where the
33296 VM page cache was not coherent with the file system buffer cache
33297 like early versions of FreeBSD and possibly contemporary NetBSD.)
33298 For shared mappings, we should conversely verify that changes get
33299 propagated back to all the places they're supposed to be.
33301 Grep wants private fixed already mapped.
33302 The main things grep needs to know about mmap are:
33303 * does it exist and is it safe to write into the mmap'd area
33304 * how to use it (BSD variants) */
33307 #include <sys/mman.h>
33309 #if !STDC_HEADERS && !HAVE_STDLIB_H
33313 /* This mess was copied from the GNU getpagesize.h. */
33314 #if !HAVE_GETPAGESIZE
33315 /* Assume that all systems that can run configure have sys/param.h. */
33316 # if !HAVE_SYS_PARAM_H
33317 # define HAVE_SYS_PARAM_H 1
33320 # ifdef _SC_PAGESIZE
33321 # define getpagesize() sysconf(_SC_PAGESIZE)
33322 # else /* no _SC_PAGESIZE */
33323 # if HAVE_SYS_PARAM_H
33324 # include <sys/param.h>
33325 # ifdef EXEC_PAGESIZE
33326 # define getpagesize() EXEC_PAGESIZE
33327 # else /* no EXEC_PAGESIZE */
33329 # define getpagesize() NBPG * CLSIZE
33332 # endif /* no CLSIZE */
33333 # else /* no NBPG */
33335 # define getpagesize() NBPC
33336 # else /* no NBPC */
33338 # define getpagesize() PAGESIZE
33339 # endif /* PAGESIZE */
33340 # endif /* no NBPC */
33341 # endif /* no NBPG */
33342 # endif /* no EXEC_PAGESIZE */
33343 # else /* no HAVE_SYS_PARAM_H */
33344 # define getpagesize() 8192 /* punt totally */
33345 # endif /* no HAVE_SYS_PARAM_H */
33346 # endif /* no _SC_PAGESIZE */
33348 #endif /* no HAVE_GETPAGESIZE */
33353 char *data, *data2, *data3;
33357 pagesize = getpagesize ();
33359 /* First, make a file with some known garbage in it. */
33360 data = (char *) malloc (pagesize);
33363 for (i = 0; i < pagesize; ++i)
33364 *(data + i) = rand ();
33366 fd = creat ("conftest.mmap", 0600);
33369 if (write (fd, data, pagesize) != pagesize)
33373 /* Next, try to mmap the file at a fixed address which already has
33374 something else allocated at it. If we can, also make sure that
33375 we see the same garbage. */
33376 fd = open ("conftest.mmap", O_RDWR);
33379 data2 = (char *) malloc (2 * pagesize);
33382 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33383 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33386 for (i = 0; i < pagesize; ++i)
33387 if (*(data + i) != *(data2 + i))
33390 /* Finally, make sure that changes to the mapped area do not
33391 percolate back to the file as seen by read(). (This is a bug on
33392 some variants of i386 svr4.0.) */
33393 for (i = 0; i < pagesize; ++i)
33394 *(data2 + i) = *(data2 + i) + 1;
33395 data3 = (char *) malloc (pagesize);
33398 if (read (fd, data3, pagesize) != pagesize)
33400 for (i = 0; i < pagesize; ++i)
33401 if (*(data + i) != *(data3 + i))
33407 rm -f conftest$ac_exeext
33408 if { (ac_try="$ac_link"
33409 case "(($ac_try" in
33410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33411 *) ac_try_echo=$ac_try;;
33413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33414 (eval "$ac_link") 2>&5
33416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33418 { (case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_try") 2>&5
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); }; }; then
33427 ac_cv_func_mmap_fixed_mapped=yes
33429 echo "$as_me: program exited with status $ac_status" >&5
33430 echo "$as_me: failed program was:" >&5
33431 sed 's/^/| /' conftest.$ac_ext >&5
33433 ( exit $ac_status )
33434 ac_cv_func_mmap_fixed_mapped=no
33436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33441 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33442 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33443 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33445 cat >>confdefs.h <<\_ACEOF
33446 #define HAVE_MMAP 1
33450 rm -f conftest.mmap
33452 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33453 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33454 if test "${ac_cv_func_mmap_file+set}" = set; then
33455 echo $ECHO_N "(cached) $ECHO_C" >&6
33458 ac_cpp='$CPP $CPPFLAGS'
33459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33463 if test "$cross_compiling" = yes; then
33464 ac_cv_func_mmap_file=no
33466 cat >conftest.$ac_ext <<_ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h. */
33474 #include <sys/types.h>
33475 #include <sys/mman.h>
33483 fd = creat ("foo",0777);
33484 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33486 return (fd != (int) MAP_FAILED);
33491 rm -f conftest$ac_exeext
33492 if { (ac_try="$ac_link"
33493 case "(($ac_try" in
33494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33495 *) ac_try_echo=$ac_try;;
33497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33498 (eval "$ac_link") 2>&5
33500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33502 { (case "(($ac_try" in
33503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504 *) ac_try_echo=$ac_try;;
33506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507 (eval "$ac_try") 2>&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); }; }; then
33511 ac_cv_func_mmap_file=yes
33513 echo "$as_me: program exited with status $ac_status" >&5
33514 echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.$ac_ext >&5
33517 ( exit $ac_status )
33518 ac_cv_func_mmap_file=no
33520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33525 ac_cpp='$CPP $CPPFLAGS'
33526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33532 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33533 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33534 if test "$ac_cv_func_mmap_file" = yes; then
33536 cat >>confdefs.h <<\_ACEOF
33537 #define HAVE_MMAP_FILE
33544 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33545 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33546 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 if test "$llvm_cv_os_type" = "Interix" ; then
33550 ac_cv_need_dev_zero_for_mmap=yes
33552 ac_cv_need_dev_zero_for_mmap=no
33556 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33557 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33558 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33560 cat >>confdefs.h <<\_ACEOF
33561 #define NEED_DEV_ZERO_FOR_MMAP 1
33566 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33568 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33569 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33571 if test "$ac_cv_func_mmap_file" = "no"
33573 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33574 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33580 for ac_func in __dso_handle
33582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33586 echo $ECHO_N "(cached) $ECHO_C" >&6
33588 cat >conftest.$ac_ext <<_ACEOF
33591 cat confdefs.h >>conftest.$ac_ext
33592 cat >>conftest.$ac_ext <<_ACEOF
33593 /* end confdefs.h. */
33594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33596 #define $ac_func innocuous_$ac_func
33598 /* System header to define __stub macros and hopefully few prototypes,
33599 which can conflict with char $ac_func (); below.
33600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33601 <limits.h> exists even on freestanding compilers. */
33604 # include <limits.h>
33606 # include <assert.h>
33611 /* Override any GCC internal prototype to avoid an error.
33612 Use char because int might match the return type of a GCC
33613 builtin and then its argument prototype would still apply. */
33618 /* The GNU C library defines this for functions which it implements
33619 to always fail with ENOSYS. Some functions are actually named
33620 something starting with __ and the normal name is an alias. */
33621 #if defined __stub_$ac_func || defined __stub___$ac_func
33628 return $ac_func ();
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (ac_try="$ac_link"
33635 case "(($ac_try" in
33636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637 *) ac_try_echo=$ac_try;;
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640 (eval "$ac_link") 2>conftest.er1
33642 grep -v '^ *+' conftest.er1 >conftest.err
33644 cat conftest.err >&5
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); } &&
33647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33648 { (case "(($ac_try" in
33649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650 *) ac_try_echo=$ac_try;;
33652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653 (eval "$ac_try") 2>&5
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; } &&
33657 { ac_try='test -s conftest$ac_exeext'
33658 { (case "(($ac_try" in
33659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660 *) ac_try_echo=$ac_try;;
33662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663 (eval "$ac_try") 2>&5
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; }; then
33667 eval "$as_ac_var=yes"
33669 echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33672 eval "$as_ac_var=no"
33675 rm -f core conftest.err conftest.$ac_objext \
33676 conftest$ac_exeext conftest.$ac_ext
33678 ac_res=`eval echo '${'$as_ac_var'}'`
33679 { echo "$as_me:$LINENO: result: $ac_res" >&5
33680 echo "${ECHO_T}$ac_res" >&6; }
33681 if test `eval echo '${'$as_ac_var'}'` = yes; then
33682 cat >>confdefs.h <<_ACEOF
33683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33690 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33691 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33692 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33693 echo $ECHO_N "(cached) $ECHO_C" >&6
33695 llvm_cv_llvmgcc_sanity="no"
33696 if test -x "$LLVMGCC" ; then
33697 cp /dev/null conftest.c
33698 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33699 grep 'target datalayout =' > /dev/null 2>&1
33700 if test $? -eq 0 ; then
33701 llvm_cv_llvmgcc_sanity="yes"
33706 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33707 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33709 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33710 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33711 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33712 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33713 LLVMCC1=$llvmcc1path
33715 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33716 LLVMCC1PLUS=$llvmcc1pluspath
33718 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33719 LLVMGCCDIR=$llvmgccdir
33721 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33722 LLVMGCCLIBEXEC=$llvmgcclibexec
33724 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33725 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33726 LLVMGCC_VERSION=$llvmgccversion
33728 LLVMGCC_MAJVERS=$llvmgccmajvers
33730 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33731 LLVMGCC_LANGS=$llvmgcclangs
33733 { echo "$as_me:$LINENO: result: ok" >&5
33734 echo "${ECHO_T}ok" >&6; }
33737 SHLIBEXT=$libltdl_cv_shlibext
33740 # Translate the various configuration directories and other basic
33741 # information into substitutions that will end up in Makefile.config.in
33742 # that these configured values can be used by the makefiles
33743 if test "${prefix}" = "NONE" ; then
33744 prefix="/usr/local"
33746 eval LLVM_PREFIX="${prefix}";
33747 eval LLVM_BINDIR="${prefix}/bin";
33748 eval LLVM_LIBDIR="${prefix}/lib";
33749 eval LLVM_DATADIR="${prefix}/share/llvm";
33750 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33751 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33752 eval LLVM_INCLUDEDIR="${prefix}/include";
33753 eval LLVM_INFODIR="${prefix}/info";
33754 eval LLVM_MANDIR="${prefix}/man";
33755 LLVM_CONFIGTIME=`date`
33767 # Place the various directores into the config.h file as #defines so that we
33768 # can know about the installation paths within LLVM.
33770 cat >>confdefs.h <<_ACEOF
33771 #define LLVM_PREFIX "$LLVM_PREFIX"
33775 cat >>confdefs.h <<_ACEOF
33776 #define LLVM_BINDIR "$LLVM_BINDIR"
33780 cat >>confdefs.h <<_ACEOF
33781 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33785 cat >>confdefs.h <<_ACEOF
33786 #define LLVM_DATADIR "$LLVM_DATADIR"
33790 cat >>confdefs.h <<_ACEOF
33791 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33795 cat >>confdefs.h <<_ACEOF
33796 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33800 cat >>confdefs.h <<_ACEOF
33801 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33805 cat >>confdefs.h <<_ACEOF
33806 #define LLVM_INFODIR "$LLVM_INFODIR"
33810 cat >>confdefs.h <<_ACEOF
33811 #define LLVM_MANDIR "$LLVM_MANDIR"
33815 cat >>confdefs.h <<_ACEOF
33816 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33820 cat >>confdefs.h <<_ACEOF
33821 #define LLVM_HOSTTRIPLE "$host"
33825 # Determine which bindings to build.
33826 if test "$BINDINGS_TO_BUILD" = auto ; then
33827 BINDINGS_TO_BUILD=""
33828 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33829 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33832 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33835 # This isn't really configurey, but it avoids having to repeat the list in
33840 # Do any work necessary to ensure that bindings have what they need.
33841 binding_prereqs_failed=0
33842 for a_binding in $BINDINGS_TO_BUILD ; do
33843 case "$a_binding" in
33845 if test "x$OCAMLC" = x ; then
33846 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33847 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33848 binding_prereqs_failed=1
33850 if test "x$OCAMLDEP" = x ; then
33851 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33852 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33853 binding_prereqs_failed=1
33855 if test "x$OCAMLOPT" = x ; then
33856 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33857 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33859 if test "x$with_ocaml_libdir" != xauto ; then
33860 OCAML_LIBDIR=$with_ocaml_libdir
33863 ocaml_stdlib="`"$OCAMLC" -where`"
33864 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33866 # ocaml stdlib is beneath our prefix; use stdlib
33867 OCAML_LIBDIR=$ocaml_stdlib
33870 # ocaml stdlib is outside our prefix; use libdir/ocaml
33871 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33878 if test "$binding_prereqs_failed" = 1 ; then
33879 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33880 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33881 { (exit 1); exit 1; }; }
33884 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33885 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33886 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
33890 ac_cpp='$CXXCPP $CPPFLAGS'
33891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33895 oldcxxflags="$CXXFLAGS"
33896 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33897 cat >conftest.$ac_ext <<_ACEOF
33900 cat confdefs.h >>conftest.$ac_ext
33901 cat >>conftest.$ac_ext <<_ACEOF
33902 /* end confdefs.h. */
33912 rm -f conftest.$ac_objext
33913 if { (ac_try="$ac_compile"
33914 case "(($ac_try" in
33915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916 *) ac_try_echo=$ac_try;;
33918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919 (eval "$ac_compile") 2>conftest.er1
33921 grep -v '^ *+' conftest.er1 >conftest.err
33923 cat conftest.err >&5
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); } &&
33926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33927 { (case "(($ac_try" in
33928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33929 *) ac_try_echo=$ac_try;;
33931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33932 (eval "$ac_try") 2>&5
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; } &&
33936 { ac_try='test -s conftest.$ac_objext'
33937 { (case "(($ac_try" in
33938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939 *) ac_try_echo=$ac_try;;
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942 (eval "$ac_try") 2>&5
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; }; then
33946 llvm_cv_cxx_visibility_inlines_hidden=yes
33948 echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33951 llvm_cv_cxx_visibility_inlines_hidden=no
33954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33955 CXXFLAGS="$oldcxxflags"
33957 ac_cpp='$CPP $CPPFLAGS'
33958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33964 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33965 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33966 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33967 ENABLE_VISIBILITY_INLINES_HIDDEN=1
33970 ENABLE_VISIBILITY_INLINES_HIDDEN=0
33975 if test "$llvm_cv_link_use_r" = "yes" ; then
33982 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33983 RDYNAMIC="-Wl,-export-dynamic"
33990 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33992 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33994 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
33997 ac_config_files="$ac_config_files Makefile.config"
34000 ac_config_files="$ac_config_files llvm.spec"
34003 ac_config_files="$ac_config_files docs/doxygen.cfg"
34006 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34009 ac_config_commands="$ac_config_commands setup"
34011 ac_config_commands="$ac_config_commands Makefile"
34014 ac_config_commands="$ac_config_commands Makefile.common"
34017 ac_config_commands="$ac_config_commands examples/Makefile"
34020 ac_config_commands="$ac_config_commands lib/Makefile"
34023 ac_config_commands="$ac_config_commands runtime/Makefile"
34026 ac_config_commands="$ac_config_commands test/Makefile"
34029 ac_config_commands="$ac_config_commands test/Makefile.tests"
34032 ac_config_commands="$ac_config_commands unittests/Makefile"
34035 ac_config_commands="$ac_config_commands tools/Makefile"
34038 ac_config_commands="$ac_config_commands utils/Makefile"
34041 ac_config_commands="$ac_config_commands projects/Makefile"
34044 ac_config_commands="$ac_config_commands bindings/Makefile"
34047 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34051 cat >confcache <<\_ACEOF
34052 # This file is a shell script that caches the results of configure
34053 # tests run on this system so they can be shared between configure
34054 # scripts and configure runs, see configure's option --config-cache.
34055 # It is not useful on other systems. If it contains results you don't
34056 # want to keep, you may remove or edit it.
34058 # config.status only pays attention to the cache file if you give it
34059 # the --recheck option to rerun configure.
34061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34063 # following values.
34067 # The following way of writing the cache mishandles newlines in values,
34068 # but we know of no workaround that is simple, portable, and efficient.
34069 # So, we kill variables containing newlines.
34070 # Ultrix sh set writes to stderr and can't be redirected directly,
34071 # and sets the high bit in the cache file unless we assign to the vars.
34073 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34074 eval ac_val=\$$ac_var
34078 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34079 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34082 _ | IFS | as_nl) ;; #(
34083 *) $as_unset $ac_var ;;
34089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34090 *${as_nl}ac_space=\ *)
34091 # `set' does not quote correctly, so add quotes (double-quote
34092 # substitution turns \\\\ into \\, and sed turns \\ into \).
34095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34098 # `set' quotes correctly as required by POSIX, so do not add quotes.
34099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34113 if test -w "$cache_file"; then
34114 test "x$cache_file" != "x/dev/null" &&
34115 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34116 echo "$as_me: updating cache $cache_file" >&6;}
34117 cat confcache >$cache_file
34119 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34120 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34126 # Let make expand exec_prefix.
34127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34129 DEFS=-DHAVE_CONFIG_H
34133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34134 # 1. Remove the extension, and $U if already installed.
34135 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34136 ac_i=`echo "$ac_i" | sed "$ac_script"`
34137 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34138 # will be set to the directory where LIBOBJS objects are built.
34139 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34140 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34142 LIBOBJS=$ac_libobjs
34144 LTLIBOBJS=$ac_ltlibobjs
34147 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34148 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34149 Usually this means the macro was only invoked conditionally." >&5
34150 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34151 Usually this means the macro was only invoked conditionally." >&2;}
34152 { (exit 1); exit 1; }; }
34154 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34155 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34156 Usually this means the macro was only invoked conditionally." >&5
34157 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34158 Usually this means the macro was only invoked conditionally." >&2;}
34159 { (exit 1); exit 1; }; }
34162 : ${CONFIG_STATUS=./config.status}
34163 ac_clean_files_save=$ac_clean_files
34164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34165 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34166 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34167 cat >$CONFIG_STATUS <<_ACEOF
34169 # Generated by $as_me.
34170 # Run this file to recreate the current configuration.
34171 # Compiler output produced by configure, useful for debugging
34172 # configure, is in config.log if it exists.
34175 ac_cs_recheck=false
34177 SHELL=\${CONFIG_SHELL-$SHELL}
34180 cat >>$CONFIG_STATUS <<\_ACEOF
34181 ## --------------------- ##
34182 ## M4sh Initialization. ##
34183 ## --------------------- ##
34185 # Be Bourne compatible
34186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34189 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34190 # is contrary to our usage. Disable this feature.
34191 alias -g '${1+"$@"}'='"$@"'
34192 setopt NO_GLOB_SUBST
34194 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34196 BIN_SH=xpg4; export BIN_SH # for Tru64
34197 DUALCASE=1; export DUALCASE # for MKS sh
34201 # Avoid depending upon Character Ranges.
34202 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34203 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34204 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34205 as_cr_digits='0123456789'
34206 as_cr_alnum=$as_cr_Letters$as_cr_digits
34208 # The user is always right.
34209 if test "${PATH_SEPARATOR+set}" != set; then
34210 echo "#! /bin/sh" >conf$$.sh
34211 echo "exit 0" >>conf$$.sh
34213 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34221 # Support unset when possible.
34222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34230 # We need space, tab and new line, in precisely that order. Quoting is
34231 # there to prevent editors from complaining about space-tab.
34232 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34233 # splitting by setting IFS to empty value.)
34238 # Find who we are. Look in the path if we contain no directory separator.
34240 *[\\/]* ) as_myself=$0 ;;
34241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34242 for as_dir in $PATH
34245 test -z "$as_dir" && as_dir=.
34246 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34252 # We did not find ourselves, most probably we were run as `sh COMMAND'
34253 # in which case we are not to be found in the path.
34254 if test "x$as_myself" = x; then
34257 if test ! -f "$as_myself"; then
34258 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34259 { (exit 1); exit 1; }
34262 # Work around bugs in pre-3.0 UWIN ksh.
34263 for as_var in ENV MAIL MAILPATH
34264 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34274 LC_TELEPHONE LC_TIME
34276 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34277 eval $as_var=C; export $as_var
34279 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34283 # Required to use basename.
34284 if expr a : '\(a\)' >/dev/null 2>&1 &&
34285 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34291 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34292 as_basename=basename
34298 # Name of the executable.
34299 as_me=`$as_basename -- "$0" ||
34300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34301 X"$0" : 'X\(//\)$' \| \
34302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34304 sed '/^.*\/\([^/][^/]*\)\/*$/{
34323 as_lineno_1=$LINENO
34324 as_lineno_2=$LINENO
34325 test "x$as_lineno_1" != "x$as_lineno_2" &&
34326 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34328 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34329 # uniformly replaced by the line number. The first 'sed' inserts a
34330 # line-number line after each line using $LINENO; the second 'sed'
34331 # does the real work. The second script uses 'N' to pair each
34332 # line-number line with the line containing $LINENO, and appends
34333 # trailing '-' during substitution so that $LINENO is not a special
34334 # case at line end.
34335 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34336 # scripts with optimization help from Paolo Bonzini. Blame Lee
34337 # E. McMahon (1931-1989) for sed's syntax. :-)
34349 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34352 ' >$as_me.lineno &&
34353 chmod +x "$as_me.lineno" ||
34354 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34355 { (exit 1); exit 1; }; }
34357 # Don't try to exec as it changes $[0], causing all sort of problems
34358 # (the dirname of $[0] is not the place where we might find the
34359 # original and so on. Autoconf is especially sensitive to this).
34360 . "./$as_me.lineno"
34361 # Exit status is that of the last command.
34366 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34372 ECHO_C= ECHO_N= ECHO_T=
34373 case `echo -n x` in
34375 case `echo 'x\c'` in
34376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34383 if expr a : '\(a\)' >/dev/null 2>&1 &&
34384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34390 rm -f conf$$ conf$$.exe conf$$.file
34391 if test -d conf$$.dir; then
34392 rm -f conf$$.dir/conf$$.file
34398 if ln -s conf$$.file conf$$ 2>/dev/null; then
34400 # ... but there are two gotchas:
34401 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34402 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34403 # In both cases, we have to default to `cp -p'.
34404 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34406 elif ln conf$$.file conf$$ 2>/dev/null; then
34411 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34412 rmdir conf$$.dir 2>/dev/null
34414 if mkdir -p . 2>/dev/null; then
34417 test -d ./-p && rmdir ./-p
34421 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34422 # systems may use methods other than mode bits to determine executability.
34423 cat >conf$$.file <<_ASEOF
34427 chmod +x conf$$.file
34428 if test -x conf$$.file >/dev/null 2>&1; then
34429 as_executable_p="test -x"
34435 # Sed expression to map a string onto a valid CPP name.
34436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34438 # Sed expression to map a string onto a valid variable name.
34439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34444 # Save the log message, to keep $[0] and so on meaningful, and to
34445 # report actual input values of CONFIG_FILES etc. instead of their
34446 # values after options handling.
34448 This file was extended by llvm $as_me 2.6svn, which was
34449 generated by GNU Autoconf 2.60. Invocation command line was
34451 CONFIG_FILES = $CONFIG_FILES
34452 CONFIG_HEADERS = $CONFIG_HEADERS
34453 CONFIG_LINKS = $CONFIG_LINKS
34454 CONFIG_COMMANDS = $CONFIG_COMMANDS
34457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34462 cat >>$CONFIG_STATUS <<_ACEOF
34463 # Files that config.status was made for.
34464 config_files="$ac_config_files"
34465 config_headers="$ac_config_headers"
34466 config_commands="$ac_config_commands"
34470 cat >>$CONFIG_STATUS <<\_ACEOF
34472 \`$as_me' instantiates files from templates according to the
34473 current configuration.
34475 Usage: $0 [OPTIONS] [FILE]...
34477 -h, --help print this help, then exit
34478 -V, --version print version number, then exit
34479 -q, --quiet do not print progress messages
34480 -d, --debug don't remove temporary files
34481 --recheck update $as_me by reconfiguring in the same conditions
34482 --file=FILE[:TEMPLATE]
34483 instantiate the configuration file FILE
34484 --header=FILE[:TEMPLATE]
34485 instantiate the configuration header FILE
34487 Configuration files:
34490 Configuration headers:
34493 Configuration commands:
34496 Report bugs to <bug-autoconf@gnu.org>."
34499 cat >>$CONFIG_STATUS <<_ACEOF
34501 llvm config.status 2.6svn
34502 configured by $0, generated by GNU Autoconf 2.60,
34503 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34505 Copyright (C) 2006 Free Software Foundation, Inc.
34506 This config.status script is free software; the Free Software Foundation
34507 gives unlimited permission to copy, distribute and modify it."
34514 cat >>$CONFIG_STATUS <<\_ACEOF
34515 # If no file are specified by the user, then we need to provide default
34516 # value. By we need to know if files were specified by the user.
34522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34523 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34534 # Handling of the options.
34535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34538 echo "$ac_cs_version"; exit ;;
34539 --debug | --debu | --deb | --de | --d | -d )
34541 --file | --fil | --fi | --f )
34543 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34544 ac_need_defaults=false;;
34545 --header | --heade | --head | --hea )
34547 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34548 ac_need_defaults=false;;
34550 # Conflict between --help and --header
34551 { echo "$as_me: error: ambiguous option: $1
34552 Try \`$0 --help' for more information." >&2
34553 { (exit 1); exit 1; }; };;
34554 --help | --hel | -h )
34555 echo "$ac_cs_usage"; exit ;;
34556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34560 # This is an error.
34561 -*) { echo "$as_me: error: unrecognized option: $1
34562 Try \`$0 --help' for more information." >&2
34563 { (exit 1); exit 1; }; } ;;
34565 *) ac_config_targets="$ac_config_targets $1"
34566 ac_need_defaults=false ;;
34572 ac_configure_extra_args=
34574 if $ac_cs_silent; then
34576 ac_configure_extra_args="$ac_configure_extra_args --silent"
34580 cat >>$CONFIG_STATUS <<_ACEOF
34581 if \$ac_cs_recheck; then
34582 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34583 CONFIG_SHELL=$SHELL
34584 export CONFIG_SHELL
34585 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34589 cat >>$CONFIG_STATUS <<\_ACEOF
34593 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34594 ## Running $as_me. ##
34600 cat >>$CONFIG_STATUS <<_ACEOF
34604 llvm_src="${srcdir}"
34608 cat >>$CONFIG_STATUS <<\_ACEOF
34610 # Handling of arguments.
34611 for ac_config_target in $ac_config_targets
34613 case $ac_config_target in
34614 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34615 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34616 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34617 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34618 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34619 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34620 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34621 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34622 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34623 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34624 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34625 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34626 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34627 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34628 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34629 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34630 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34631 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34632 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34633 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34634 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34637 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34638 { (exit 1); exit 1; }; };;
34643 # If the user did not use the arguments to specify the items to instantiate,
34644 # then the envvar interface is used. Set only those that are not.
34645 # We use the long form for the default assignment because of an extremely
34646 # bizarre bug on SunOS 4.1.3.
34647 if $ac_need_defaults; then
34648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34650 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34653 # Have a temporary directory for convenience. Make it in the build tree
34654 # simply because there is no reason against having it here, and in addition,
34655 # creating and moving files from /tmp can sometimes cause problems.
34656 # Hook for its removal unless debugging.
34657 # Note that there is a small window in which the directory will not be cleaned:
34658 # after its creation but before its name has been assigned to `$tmp'.
34662 trap 'exit_status=$?
34663 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34665 trap '{ (exit 1); exit 1; }' 1 2 13 15
34667 # Create a (secure) tmp directory for tmp files.
34670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34671 test -n "$tmp" && test -d "$tmp"
34674 tmp=./conf$$-$RANDOM
34675 (umask 077 && mkdir "$tmp")
34678 echo "$me: cannot create a temporary directory in ." >&2
34679 { (exit 1); exit 1; }
34683 # Set up the sed scripts for CONFIG_FILES section.
34686 # No need to generate the scripts if there are no CONFIG_FILES.
34687 # This happens for instance when ./config.status config.h
34688 if test -n "$CONFIG_FILES"; then
34695 for ac_last_try in false false false false false :; do
34696 cat >conf$$subs.sed <<_ACEOF
34697 SHELL!$SHELL$ac_delim
34698 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34699 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34700 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34701 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34702 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34703 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34704 exec_prefix!$exec_prefix$ac_delim
34705 prefix!$prefix$ac_delim
34706 program_transform_name!$program_transform_name$ac_delim
34707 bindir!$bindir$ac_delim
34708 sbindir!$sbindir$ac_delim
34709 libexecdir!$libexecdir$ac_delim
34710 datarootdir!$datarootdir$ac_delim
34711 datadir!$datadir$ac_delim
34712 sysconfdir!$sysconfdir$ac_delim
34713 sharedstatedir!$sharedstatedir$ac_delim
34714 localstatedir!$localstatedir$ac_delim
34715 includedir!$includedir$ac_delim
34716 oldincludedir!$oldincludedir$ac_delim
34717 docdir!$docdir$ac_delim
34718 infodir!$infodir$ac_delim
34719 htmldir!$htmldir$ac_delim
34720 dvidir!$dvidir$ac_delim
34721 pdfdir!$pdfdir$ac_delim
34722 psdir!$psdir$ac_delim
34723 libdir!$libdir$ac_delim
34724 localedir!$localedir$ac_delim
34725 mandir!$mandir$ac_delim
34726 DEFS!$DEFS$ac_delim
34727 ECHO_C!$ECHO_C$ac_delim
34728 ECHO_N!$ECHO_N$ac_delim
34729 ECHO_T!$ECHO_T$ac_delim
34730 LIBS!$LIBS$ac_delim
34731 build_alias!$build_alias$ac_delim
34732 host_alias!$host_alias$ac_delim
34733 target_alias!$target_alias$ac_delim
34734 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34735 subdirs!$subdirs$ac_delim
34736 build!$build$ac_delim
34737 build_cpu!$build_cpu$ac_delim
34738 build_vendor!$build_vendor$ac_delim
34739 build_os!$build_os$ac_delim
34740 host!$host$ac_delim
34741 host_cpu!$host_cpu$ac_delim
34742 host_vendor!$host_vendor$ac_delim
34743 host_os!$host_os$ac_delim
34744 target!$target$ac_delim
34745 target_cpu!$target_cpu$ac_delim
34746 target_vendor!$target_vendor$ac_delim
34747 target_os!$target_os$ac_delim
34749 LINKALL!$LINKALL$ac_delim
34750 NOLINKALL!$NOLINKALL$ac_delim
34751 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34752 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34753 ARCH!$ARCH$ac_delim
34754 ENDIAN!$ENDIAN$ac_delim
34756 CFLAGS!$CFLAGS$ac_delim
34757 LDFLAGS!$LDFLAGS$ac_delim
34758 CPPFLAGS!$CPPFLAGS$ac_delim
34759 ac_ct_CC!$ac_ct_CC$ac_delim
34760 EXEEXT!$EXEEXT$ac_delim
34761 OBJEXT!$OBJEXT$ac_delim
34763 GREP!$GREP$ac_delim
34764 EGREP!$EGREP$ac_delim
34765 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34766 BUILD_CC!$BUILD_CC$ac_delim
34767 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34768 BUILD_CXX!$BUILD_CXX$ac_delim
34769 CVSBUILD!$CVSBUILD$ac_delim
34770 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34771 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
34772 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34773 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34774 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34775 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34777 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34778 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34779 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34780 ENABLE_PIC!$ENABLE_PIC$ac_delim
34781 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34782 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34783 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34784 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34786 CXXFLAGS!$CXXFLAGS$ac_delim
34787 ac_ct_CXX!$ac_ct_CXX$ac_delim
34789 ifGNUmake!$ifGNUmake$ac_delim
34790 LN_S!$LN_S$ac_delim
34793 DATE!$DATE$ac_delim
34796 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34798 elif $ac_last_try; then
34799 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34801 { (exit 1); exit 1; }; }
34803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34808 if test -n "$ac_eof"; then
34809 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34810 ac_eof=`expr $ac_eof + 1`
34813 cat >>$CONFIG_STATUS <<_ACEOF
34814 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34819 s/^/s,@/; s/!/@,|#_!!_#|/
34822 s/'"$ac_delim"'$/,g/; t
34824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34825 ' >>$CONFIG_STATUS <conf$$subs.sed
34826 rm -f conf$$subs.sed
34827 cat >>$CONFIG_STATUS <<_ACEOF
34833 for ac_last_try in false false false false false :; do
34834 cat >conf$$subs.sed <<_ACEOF
34835 FIND!$FIND$ac_delim
34836 MKDIR!$MKDIR$ac_delim
34838 RANLIB!$RANLIB$ac_delim
34842 BINPWD!$BINPWD$ac_delim
34843 GRAPHVIZ!$GRAPHVIZ$ac_delim
34846 DOTTY!$DOTTY$ac_delim
34847 PERL!$PERL$ac_delim
34848 HAVE_PERL!$HAVE_PERL$ac_delim
34849 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34850 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34851 INSTALL_DATA!$INSTALL_DATA$ac_delim
34852 BZIP2!$BZIP2$ac_delim
34853 DOXYGEN!$DOXYGEN$ac_delim
34854 GROFF!$GROFF$ac_delim
34855 GZIP!$GZIP$ac_delim
34856 POD2HTML!$POD2HTML$ac_delim
34857 POD2MAN!$POD2MAN$ac_delim
34858 RUNTEST!$RUNTEST$ac_delim
34859 TCLSH!$TCLSH$ac_delim
34861 OCAMLC!$OCAMLC$ac_delim
34862 OCAMLOPT!$OCAMLOPT$ac_delim
34863 OCAMLDEP!$OCAMLDEP$ac_delim
34864 OCAMLDOC!$OCAMLDOC$ac_delim
34866 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34867 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34868 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34869 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34870 LIBADD_DL!$LIBADD_DL$ac_delim
34871 ECHO!$ECHO$ac_delim
34873 STRIP!$STRIP$ac_delim
34874 CXXCPP!$CXXCPP$ac_delim
34876 FFLAGS!$FFLAGS$ac_delim
34877 ac_ct_F77!$ac_ct_F77$ac_delim
34878 LIBTOOL!$LIBTOOL$ac_delim
34879 LLVMGCC!$LLVMGCC$ac_delim
34880 LLVMGXX!$LLVMGXX$ac_delim
34881 USE_UDIS86!$USE_UDIS86$ac_delim
34882 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34883 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34884 ALLOCA!$ALLOCA$ac_delim
34885 MMAP_FILE!$MMAP_FILE$ac_delim
34886 LLVMCC1!$LLVMCC1$ac_delim
34887 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34888 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34889 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34890 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34891 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34892 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34893 SHLIBEXT!$SHLIBEXT$ac_delim
34894 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34895 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34896 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34897 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34898 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34899 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34900 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34901 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34902 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34903 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34904 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34905 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34906 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34907 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34908 RPATH!$RPATH$ac_delim
34909 RDYNAMIC!$RDYNAMIC$ac_delim
34910 LIBOBJS!$LIBOBJS$ac_delim
34911 LTLIBOBJS!$LTLIBOBJS$ac_delim
34914 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
34916 elif $ac_last_try; then
34917 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34919 { (exit 1); exit 1; }; }
34921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34925 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34926 if test -n "$ac_eof"; then
34927 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34928 ac_eof=`expr $ac_eof + 1`
34931 cat >>$CONFIG_STATUS <<_ACEOF
34932 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34937 s/^/s,@/; s/!/@,|#_!!_#|/
34940 s/'"$ac_delim"'$/,g/; t
34942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34943 ' >>$CONFIG_STATUS <conf$$subs.sed
34944 rm -f conf$$subs.sed
34945 cat >>$CONFIG_STATUS <<_ACEOF
34952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34954 # trailing colons and then remove the whole line if VPATH becomes empty
34955 # (actually we leave an empty line to preserve line numbers).
34956 if test "x$srcdir" = x.; then
34957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34958 s/:*\$(srcdir):*/:/
34959 s/:*\${srcdir}:*/:/
34961 s/^\([^=]*=[ ]*\):*/\1/
34967 cat >>$CONFIG_STATUS <<\_ACEOF
34968 fi # test -n "$CONFIG_FILES"
34971 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34974 :[FHLC]) ac_mode=$ac_tag; continue;;
34976 case $ac_mode$ac_tag in
34978 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34979 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34980 { (exit 1); exit 1; }; };;
34981 :[FH]-) ac_tag=-:-;;
34982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34999 -) ac_f="$tmp/stdin";;
35000 *) # Look for the file first in the build tree, then in the source tree
35001 # (if the path is not absolute). The absolute path cannot be DOS-style,
35002 # because $ac_f cannot contain `:'.
35006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35008 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35009 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35010 { (exit 1); exit 1; }; };;
35012 ac_file_inputs="$ac_file_inputs $ac_f"
35015 # Let's still pretend it is `configure' which instantiates (i.e., don't
35016 # use $as_me), people would be surprised to read:
35017 # /* config.h. Generated by config.status. */
35018 configure_input="Generated from "`IFS=:
35019 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35020 if test x"$ac_file" != x-; then
35021 configure_input="$ac_file. $configure_input"
35022 { echo "$as_me:$LINENO: creating $ac_file" >&5
35023 echo "$as_me: creating $ac_file" >&6;}
35027 *:-:* | *:-) cat >"$tmp/stdin";;
35032 ac_dir=`$as_dirname -- "$ac_file" ||
35033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35034 X"$ac_file" : 'X\(//\)[^/]' \| \
35035 X"$ac_file" : 'X\(//\)$' \| \
35036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35042 /^X\(\/\/\)[^/].*/{
35057 -*) as_dir=./$as_dir;;
35059 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35063 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35064 *) as_qdir=$as_dir;;
35066 as_dirs="'$as_qdir' $as_dirs"
35067 as_dir=`$as_dirname -- "$as_dir" ||
35068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35069 X"$as_dir" : 'X\(//\)[^/]' \| \
35070 X"$as_dir" : 'X\(//\)$' \| \
35071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35077 /^X\(\/\/\)[^/].*/{
35090 test -d "$as_dir" && break
35092 test -z "$as_dirs" || eval "mkdir $as_dirs"
35093 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35095 { (exit 1); exit 1; }; }; }
35099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35102 # A ".." for each directory in $ac_dir_suffix.
35103 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35104 case $ac_top_builddir_sub in
35105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35109 ac_abs_top_builddir=$ac_pwd
35110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35111 # for backward compatibility:
35112 ac_top_builddir=$ac_top_build_prefix
35115 .) # We are building in place.
35117 ac_top_srcdir=$ac_top_builddir_sub
35118 ac_abs_top_srcdir=$ac_pwd ;;
35119 [\\/]* | ?:[\\/]* ) # Absolute name.
35120 ac_srcdir=$srcdir$ac_dir_suffix;
35121 ac_top_srcdir=$srcdir
35122 ac_abs_top_srcdir=$srcdir ;;
35123 *) # Relative name.
35124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35125 ac_top_srcdir=$ac_top_build_prefix$srcdir
35126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35138 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35139 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35143 cat >>$CONFIG_STATUS <<\_ACEOF
35144 # If the template does not know about datarootdir, expand it.
35145 # FIXME: This hack should be removed a few years after 2.60.
35146 ac_datarootdir_hack=; ac_datarootdir_seen=
35148 case `sed -n '/datarootdir/ {
35157 ' $ac_file_inputs` in
35158 *datarootdir*) ac_datarootdir_seen=yes;;
35159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35160 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35161 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35163 cat >>$CONFIG_STATUS <<_ACEOF
35164 ac_datarootdir_hack='
35165 s&@datadir@&$datadir&g
35166 s&@docdir@&$docdir&g
35167 s&@infodir@&$infodir&g
35168 s&@localedir@&$localedir&g
35169 s&@mandir@&$mandir&g
35170 s&\\\${datarootdir}&$datarootdir&g' ;;
35174 # Neutralize VPATH when `$srcdir' = `.'.
35175 # Shell code in configure.ac might set extrasub.
35176 # FIXME: do we really want to maintain this feature?
35177 cat >>$CONFIG_STATUS <<_ACEOF
35181 cat >>$CONFIG_STATUS <<\_ACEOF
35183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35184 s&@configure_input@&$configure_input&;t t
35185 s&@top_builddir@&$ac_top_builddir_sub&;t t
35186 s&@srcdir@&$ac_srcdir&;t t
35187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35188 s&@top_srcdir@&$ac_top_srcdir&;t t
35189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35190 s&@builddir@&$ac_builddir&;t t
35191 s&@abs_builddir@&$ac_abs_builddir&;t t
35192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35193 s&@INSTALL@&$ac_INSTALL&;t t
35194 $ac_datarootdir_hack
35195 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35200 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35201 which seems to be undefined. Please make sure it is defined." >&5
35202 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35203 which seems to be undefined. Please make sure it is defined." >&2;}
35207 -) cat "$tmp/out"; rm -f "$tmp/out";;
35208 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35217 # Transform confdefs.h into a sed script `conftest.defines', that
35218 # substitutes the proper values into config.h.in to produce config.h.
35219 rm -f conftest.defines conftest.tail
35220 # First, append a space to every undef/define line, to ease matching.
35221 echo 's/$/ /' >conftest.defines
35222 # Then, protect against being on the right side of a sed subst, or in
35223 # an unquoted here document, in config.status. If some macros were
35224 # called several times there might be several #defines for the same
35225 # symbol, which is useless. But do not sort them, since the last
35226 # AC_DEFINE must be honored.
35227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35228 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35229 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35230 # PARAMS is the parameter list in the macro definition--in most cases, it's
35231 # just an empty string.
35232 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35233 ac_dB='\\)[ (].*,\\1define\\2'
35241 s/^[ ]*#[ ]*define[ ][ ]*//
35246 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35247 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35248 ' >>conftest.defines
35250 # Remove the space that was appended to ease matching.
35251 # Then replace #undef with comments. This is necessary, for
35252 # example, in the case of _POSIX_SOURCE, which is predefined and required
35253 # on some systems where configure will not decide to define it.
35254 # (The regexp can be short, since the line contains either #define or #undef.)
35256 s,^[ #]*u.*,/* & */,' >>conftest.defines
35258 # Break up conftest.defines:
35259 ac_max_sed_lines=50
35261 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35262 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35263 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35265 ac_in='$ac_file_inputs'
35266 ac_out='"$tmp/out1"'
35267 ac_nxt='"$tmp/out2"'
35271 # Write a here document:
35272 cat >>$CONFIG_STATUS <<_ACEOF
35273 # First, check the format of the line:
35274 cat >"\$tmp/defines.sed" <<\\CEOF
35275 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35276 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35280 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35282 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35283 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35284 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35285 grep . conftest.tail >/dev/null || break
35286 rm -f conftest.defines
35287 mv conftest.tail conftest.defines
35289 rm -f conftest.defines conftest.tail
35291 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35292 cat >>$CONFIG_STATUS <<\_ACEOF
35293 if test x"$ac_file" != x-; then
35294 echo "/* $configure_input */" >"$tmp/config.h"
35295 cat "$ac_result" >>"$tmp/config.h"
35296 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35297 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35298 echo "$as_me: $ac_file is unchanged" >&6;}
35301 mv "$tmp/config.h" $ac_file
35304 echo "/* $configure_input */"
35310 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35311 echo "$as_me: executing $ac_file commands" >&6;}
35316 case $ac_file$ac_mode in
35317 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35318 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35319 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35320 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35321 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35322 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35323 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35324 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35325 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35326 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35327 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35328 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35329 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35330 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35331 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35332 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35333 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35334 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35335 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35336 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35337 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35338 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35339 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35340 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35341 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35342 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35348 { (exit 0); exit 0; }
35350 chmod +x $CONFIG_STATUS
35351 ac_clean_files=$ac_clean_files_save
35354 # configure is writing to config.log, and then calls config.status.
35355 # config.status does its own redirection, appending to config.log.
35356 # Unfortunately, on DOS this fails, as config.log is still kept open
35357 # by configure, so config.status won't be able to write to it; its
35358 # output is simply discarded. So we exec the FD to /dev/null,
35359 # effectively closing config.log, so it can be properly (re)opened and
35360 # appended to by config.status. When coming back to configure, we
35361 # need to make the FD available again.
35362 if test "$no_create" != yes; then
35364 ac_config_status_args=
35365 test "$silent" = yes &&
35366 ac_config_status_args="$ac_config_status_args --quiet"
35368 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35370 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35371 # would make configure fail if this is the last instruction.
35372 $ac_cs_success || { (exit 1); exit 1; }
35376 # CONFIG_SUBDIRS section.
35378 if test "$no_recursion" != yes; then
35380 # Remove --cache-file and --srcdir arguments so they do not pile up.
35381 ac_sub_configure_args=
35383 eval "set x $ac_configure_args"
35387 if test -n "$ac_prev"; then
35392 -cache-file | --cache-file | --cache-fil | --cache-fi \
35393 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35394 ac_prev=cache_file ;;
35395 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35396 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35399 --config-cache | -C)
35401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35405 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35407 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35411 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35413 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35417 # Always prepend --prefix to ensure using the same prefix
35418 # in subdir configurations.
35419 ac_arg="--prefix=$prefix"
35421 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35423 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35426 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35428 # Do not complain, so a configure script can configure whichever
35429 # parts of a large source tree are present.
35430 test -d "$srcdir/$ac_dir" || continue
35432 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35433 echo "$as_me:$LINENO: $ac_msg" >&5
35437 -*) as_dir=./$as_dir;;
35439 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35443 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35444 *) as_qdir=$as_dir;;
35446 as_dirs="'$as_qdir' $as_dirs"
35447 as_dir=`$as_dirname -- "$as_dir" ||
35448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35449 X"$as_dir" : 'X\(//\)[^/]' \| \
35450 X"$as_dir" : 'X\(//\)$' \| \
35451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35457 /^X\(\/\/\)[^/].*/{
35470 test -d "$as_dir" && break
35472 test -z "$as_dirs" || eval "mkdir $as_dirs"
35473 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35475 { (exit 1); exit 1; }; }; }
35479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35482 # A ".." for each directory in $ac_dir_suffix.
35483 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35484 case $ac_top_builddir_sub in
35485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35489 ac_abs_top_builddir=$ac_pwd
35490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35491 # for backward compatibility:
35492 ac_top_builddir=$ac_top_build_prefix
35495 .) # We are building in place.
35497 ac_top_srcdir=$ac_top_builddir_sub
35498 ac_abs_top_srcdir=$ac_pwd ;;
35499 [\\/]* | ?:[\\/]* ) # Absolute name.
35500 ac_srcdir=$srcdir$ac_dir_suffix;
35501 ac_top_srcdir=$srcdir
35502 ac_abs_top_srcdir=$srcdir ;;
35503 *) # Relative name.
35504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35505 ac_top_srcdir=$ac_top_build_prefix$srcdir
35506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35513 # Check for guested configure; otherwise get Cygnus style configure.
35514 if test -f "$ac_srcdir/configure.gnu"; then
35515 ac_sub_configure=$ac_srcdir/configure.gnu
35516 elif test -f "$ac_srcdir/configure"; then
35517 ac_sub_configure=$ac_srcdir/configure
35518 elif test -f "$ac_srcdir/configure.in"; then
35519 # This should be Cygnus configure.
35520 ac_sub_configure=$ac_aux_dir/configure
35522 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35527 # The recursion is here.
35528 if test -n "$ac_sub_configure"; then
35529 # Make the cache file name correct relative to the subdirectory.
35530 case $cache_file in
35531 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35532 *) # Relative name.
35533 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35536 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35537 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35538 # The eval makes quoting arguments work.
35539 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35540 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35541 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35542 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35543 { (exit 1); exit 1; }; }