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
834 ENABLE_EXPENSIVE_CHECKS
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
928 ENABLE_VISIBILITY_INLINES_HIDDEN
932 ac_precious_vars='build_alias
946 ac_subdirs_all='projects/sample
948 projects/llvm-stacker
955 projects/llvm-poolalloc
957 projects/llvm-kernel'
959 # Initialize some variables set by options.
961 ac_init_version=false
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
971 program_transform_name=s,x,x,
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996 infodir='${datarootdir}/info'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1066 eval enable_$ac_feature=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1085 eval enable_$ac_feature=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package=`echo $ac_package| sed 's/-/_/g'`
1282 eval with_$ac_package=\$ac_optarg ;;
1284 -without-* | --without-*)
1285 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288 { echo "$as_me: error: invalid package name: $ac_package" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_package=`echo $ac_package | sed 's/-/_/g'`
1291 eval with_$ac_package=no ;;
1294 # Obsolete; use --with-x.
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1311 -*) { echo "$as_me: error: unrecognized option: $ac_option
1312 Try \`$0 --help' for more information." >&2
1313 { (exit 1); exit 1; }; }
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321 { (exit 1); exit 1; }; }
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1326 # FIXME: should be removed in autoconf 3.0.
1327 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 { echo "$as_me: error: missing argument to $ac_option" >&2
1339 { (exit 1); exit 1; }; }
1342 # Be sure to have absolute directory names.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val=\$$ac_var
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354 { (exit 1); exit 1; }; }
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1362 target=$target_alias
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used." >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378 test "$silent" = yes && exec 6>/dev/null
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 { echo "$as_me: error: Working directory cannot be determined" >&2
1385 { (exit 1); exit 1; }; }
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 { echo "$as_me: error: pwd does not report name of working directory" >&2
1388 { (exit 1); exit 1; }; }
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$0" ||
1396 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$0" : 'X\(//\)[^/]' \| \
1398 X"$0" : 'X\(//\)$' \| \
1399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1423 ac_srcdir_defaulted=no
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1428 { (exit 1); exit 1; }; }
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1433 { (exit 1); exit 1; }; }
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of llvm 2.6svn:";;
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-expensive-checks
1536 --enable-debug-runtime
1537 --enable-jit Enable Just In Time Compiling (default is YES)
1538 --enable-doxygen Build doxygen documentation (default is NO)
1539 --enable-threads Use threads if available (default is YES)
1540 --enable-pic Build LLVM with Position Independent Code (default
1542 --enable-targets Build specific host targets:
1543 all,host-only,{target-name} (default=all)
1544 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1546 --enable-bindings Build specific language bindings:
1547 all,auto,none,{binding-name} (default=auto)
1548 --enable-ltdl-install install libltdl
1549 --enable-shared[=PKGS] build shared libraries
1551 --enable-static[=PKGS] build static libraries
1553 --enable-fast-install[=PKGS]
1554 optimize for fast installation
1556 --disable-libtool-lock avoid locking (might break parallel builds)
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1563 --with-llvmgcc Specify location of llvm-gcc driver (default
1565 --with-llvmgxx Specify location of llvm-g++ driver (default
1567 --with-extra-options Specify addtional options to compile LLVM with
1568 --with-ocaml-libdir Specify install location for ocaml bindings (default
1570 --with-binutils-include Specify path to binutils/include/ containing
1571 plugin-api.h file for gold plugin.
1572 --with-tclinclude directory where tcl headers are
1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1576 --with-tags[=TAGS] include additional configurations [automatic]
1577 --with-udis86=<path> Use udis86 external x86 disassembler library
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
1589 CXXCPP C++ preprocessor
1590 F77 Fortran 77 compiler command
1591 FFLAGS Fortran 77 compiler flags
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1596 Report bugs to <llvmbugs@cs.uiuc.edu>.
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" || continue
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1624 .) # We are building in place.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1657 llvm configure 2.6svn
1658 generated by GNU Autoconf 2.60
1660 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1661 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1665 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1669 cat >config.log <<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1673 It was created by llvm $as_me 2.6svn, which was
1674 generated by GNU Autoconf 2.60. Invocation command line was
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1696 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1699 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1700 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1701 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 echo "PATH: $as_dir"
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1734 ac_must_keep_next=false
1740 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1742 | -silent | --silent | --silen | --sile | --sil)
1745 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1751 if test $ac_must_keep_next = true; then
1752 ac_must_keep_next=false # Got value, back to normal.
1755 *=* | --config-cache | -C | -disable-* | --disable-* \
1756 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1757 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1758 | -with-* | --with-* | -without-* | --without-* | --x)
1759 case "$ac_configure_args0 " in
1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 -* ) ac_must_keep_next=true ;;
1766 ac_configure_args="$ac_configure_args '$ac_arg'"
1771 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1772 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log. We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780 # Save into config.log some information that might help in debugging.
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1790 # The following way of writing the cache mishandles newlines in values,
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1797 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 _ | IFS | as_nl) ;; #(
1802 *) $as_unset $ac_var ;;
1807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808 *${as_nl}ac_space=\ *)
1810 "s/'\''/'\''\\\\'\'''\''/g;
1811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822 ## ----------------- ##
1823 ## Output variables. ##
1824 ## ----------------- ##
1827 for ac_var in $ac_subst_vars
1829 eval ac_val=\$$ac_var
1831 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 echo "$ac_var='\''$ac_val'\''"
1837 if test -n "$ac_subst_files"; then
1839 ## ------------------- ##
1840 ## File substitutions. ##
1841 ## ------------------- ##
1844 for ac_var in $ac_subst_files
1846 eval ac_val=\$$ac_var
1848 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 echo "$ac_var='\''$ac_val'\''"
1855 if test -s confdefs.h; then
1865 test "$ac_signal" != 0 &&
1866 echo "$as_me: caught signal $ac_signal"
1867 echo "$as_me: exit $exit_status"
1869 rm -f core *.core core.conftest.* &&
1870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873 for ac_signal in 1 2 13 15; do
1874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1879 rm -f -r conftest* confdefs.h
1881 # Predefined preprocessor variables.
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_NAME "$PACKAGE_NAME"
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_STRING "$PACKAGE_STRING"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1908 # Let the site file select an alternate cache file if it wants to.
1909 # Prefer explicitly selected file to automatically selected ones.
1910 if test -n "$CONFIG_SITE"; then
1911 set x "$CONFIG_SITE"
1912 elif test "x$prefix" != xNONE; then
1913 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915 set x "$ac_default_prefix/share/config.site" \
1916 "$ac_default_prefix/etc/config.site"
1921 if test -r "$ac_site_file"; then
1922 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 echo "$as_me: loading cache $cache_file" >&6;}
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1941 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 echo "$as_me: creating cache $cache_file" >&6;}
1946 # Check that the precious variables saved in the cache have kept the same
1948 ac_cache_corrupted=false
1949 for ac_var in $ac_precious_vars; do
1950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951 eval ac_new_set=\$ac_env_${ac_var}_set
1952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953 eval ac_new_val=\$ac_env_${ac_var}_value
1954 case $ac_old_set,$ac_new_set in
1956 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1960 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1961 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1965 if test "x$ac_old_val" != "x$ac_new_val"; then
1966 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1967 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1968 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1969 echo "$as_me: former value: $ac_old_val" >&2;}
1970 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1971 echo "$as_me: current value: $ac_new_val" >&2;}
1972 ac_cache_corrupted=:
1975 # Pass precious variables to config.status.
1976 if test "$ac_new_set" = set; then
1978 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1979 *) ac_arg=$ac_var=$ac_new_val ;;
1981 case " $ac_configure_args " in
1982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1983 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1987 if $ac_cache_corrupted; then
1988 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1989 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1990 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1991 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1992 { (exit 1); exit 1; }; }
2020 ac_cpp='$CPP $CPPFLAGS'
2021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2036 for ac_dir in autoconf "$srcdir"/autoconf; do
2037 if test -f "$ac_dir/install-sh"; then
2039 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 elif test -f "$ac_dir/install.sh"; then
2043 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 elif test -f "$ac_dir/shtool"; then
2047 ac_install_sh="$ac_aux_dir/shtool install -c"
2051 if test -z "$ac_aux_dir"; then
2052 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2053 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2054 { (exit 1); exit 1; }; }
2057 # These three variables are undocumented and unsupported,
2058 # and are intended to be withdrawn in a future Autoconf release.
2059 # They can cause serious problems if a builder's source tree is in a directory
2060 # whose full name contains unusual characters.
2061 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2062 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2063 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2067 if test ${srcdir} != "." ; then
2068 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2069 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2070 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2071 { (exit 1); exit 1; }; }
2075 for i in `ls ${srcdir}/projects`
2077 if test -d ${srcdir}/projects/${i} ; then
2080 sample) subdirs="$subdirs projects/sample"
2082 privbracket) subdirs="$subdirs projects/privbracket"
2084 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2086 # llvm-test is the old name of the test-suite, kept here for backwards
2088 llvm-test) subdirs="$subdirs projects/llvm-test"
2090 test-suite) subdirs="$subdirs projects/test-suite"
2092 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2094 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2096 llvm-java) subdirs="$subdirs projects/llvm-java"
2098 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2100 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2102 poolalloc) subdirs="$subdirs projects/poolalloc"
2104 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2107 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2108 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2148 ac_save_IFS=$IFS; IFS='-'
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2185 ac_save_IFS=$IFS; IFS='-'
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198 { echo "$as_me:$LINENO: checking target system type" >&5
2199 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2200 if test "${ac_cv_target+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test "x$target_alias" = x; then
2204 ac_cv_target=$ac_cv_host
2206 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2207 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2208 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2213 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2214 echo "${ECHO_T}$ac_cv_target" >&6; }
2215 case $ac_cv_target in
2217 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2218 echo "$as_me: error: invalid value of canonical target" >&2;}
2219 { (exit 1); exit 1; }; };;
2221 target=$ac_cv_target
2222 ac_save_IFS=$IFS; IFS='-'
2228 # Remember, the first character of IFS is used to create $*,
2229 # except with old shells:
2232 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235 # The aliases save the names the user supplied, while $host etc.
2236 # will get canonicalized.
2237 test -n "$target_alias" &&
2238 test "$program_prefix$program_suffix$program_transform_name" = \
2240 program_prefix=${target_alias}-
2242 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2243 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2244 if test "${llvm_cv_os_type+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="AIX"
2252 llvm_cv_platform_type="Unix" ;;
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="IRIX"
2257 llvm_cv_platform_type="Unix" ;;
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="Cygwin"
2262 llvm_cv_platform_type="Unix" ;;
2264 llvm_cv_link_all_option="-Wl,-all_load"
2265 llvm_cv_no_link_all_option="-Wl,-noall_load"
2266 llvm_cv_os_type="Darwin"
2267 llvm_cv_platform_type="Unix" ;;
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="FreeBSD"
2272 llvm_cv_platform_type="Unix" ;;
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="OpenBSD"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="NetBSD"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="DragonFly"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="HP-UX"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="Interix"
2297 llvm_cv_platform_type="Unix" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="Linux"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,-z,allextract"
2305 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2306 llvm_cv_os_type="SunOS"
2307 llvm_cv_platform_type="Unix" ;;
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="Win32"
2312 llvm_cv_platform_type="Win32" ;;
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="MingW"
2317 llvm_cv_platform_type="Win32" ;;
2319 llvm_cv_link_all_option=""
2320 llvm_cv_no_link_all_option=""
2321 llvm_cv_os_type="Unknown"
2322 llvm_cv_platform_type="Unknown" ;;
2325 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2326 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2328 if test "$llvm_cv_os_type" = "Unknown" ; then
2329 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2330 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2331 { (exit 1); exit 1; }; }
2337 LINKALL=$llvm_cv_link_all_option
2339 NOLINKALL=$llvm_cv_no_link_all_option
2342 case $llvm_cv_platform_type in
2345 cat >>confdefs.h <<\_ACEOF
2346 #define LLVM_ON_UNIX 1
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_WIN32 1
2367 { echo "$as_me:$LINENO: checking target architecture" >&5
2368 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2369 if test "${llvm_cv_target_arch+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 i?86-*) llvm_cv_target_arch="x86" ;;
2374 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2375 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2376 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2377 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2378 ia64-*) llvm_cv_target_arch="IA64" ;;
2379 arm-*) llvm_cv_target_arch="ARM" ;;
2380 mips-*) llvm_cv_target_arch="Mips" ;;
2381 pic16-*) llvm_cv_target_arch="PIC16" ;;
2382 xcore-*) llvm_cv_target_arch="XCore" ;;
2383 *) llvm_cv_target_arch="Unknown" ;;
2386 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2387 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2389 if test "$llvm_cv_target_arch" = "Unknown" ; then
2390 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2391 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2394 ARCH=$llvm_cv_target_arch
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 if test -n "$CC"; then
2432 { echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2441 if test -z "$ac_cv_prog_CC"; then
2443 # Extract the first word of "gcc", so it can be a program name with args.
2444 set dummy gcc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_CC="gcc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 echo "${ECHO_T}$ac_ct_CC" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2479 if test "x$ac_ct_CC" = x; then
2482 case $cross_compiling:$ac_tool_warned in
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet. If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: 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." >&2;}
2490 ac_tool_warned=yes ;;
2498 if test -z "$CC"; then
2499 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2501 set dummy ${ac_tool_prefix}cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_CC="${ac_tool_prefix}cc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test -n "$CC"; then
2529 { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2539 if test -z "$CC"; then
2540 # Extract the first word of "cc", so it can be a program name with args.
2541 set dummy cc; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559 ac_prog_rejected=yes
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test $ac_prog_rejected = yes; then
2571 # We found a bogon in the path, so make sure we never use it.
2572 set dummy $ac_cv_prog_CC
2574 if test $# != 0; then
2575 # We chose a different compiler from the bogus one.
2576 # However, it has the same basename, so the bogon will be chosen
2577 # first if we set CC to just the basename; use the full file name.
2579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2595 if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in cl.exe
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test -n "$CC"; then
2628 { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2636 test -n "$CC" && break
2639 if test -z "$CC"; then
2641 for ac_prog in cl.exe
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_ac_ct_CC="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6; }
2675 { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2680 test -n "$ac_ct_CC" && break
2683 if test "x$ac_ct_CC" = x; then
2686 case $cross_compiling:$ac_tool_warned in
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet. If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: 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." >&2;}
2694 ac_tool_warned=yes ;;
2703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2709 # Provide some information about the compiler.
2710 echo "$as_me:$LINENO: checking for C compiler version" >&5
2711 ac_compiler=`set X $ac_compile; echo $2`
2712 { (ac_try="$ac_compiler --version >&5"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler --version >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -v >&5"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -v >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732 { (ac_try="$ac_compiler -V >&5"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -V >&5") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2763 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2765 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767 # List of possible output files, starting from the most likely.
2768 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769 # only as a last resort. b.out is created by i960 compilers.
2770 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772 # The IRIX 6 linker writes into existing files which may not be
2773 # executable, retaining their permissions. Remove them first so a
2774 # subsequent execution test works.
2776 for ac_file in $ac_files
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2785 if { (ac_try="$ac_link_default"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_link_default") 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; then
2795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2798 # so that the user can short-circuit this test for compilers unknown to
2800 for ac_file in $ac_files
2802 test -f "$ac_file" || continue
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2807 # We found the default executable, but exeext='' is most
2811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 # We set ac_cv_exeext here because the later test for it is not
2816 # safe: cross compilers may not add the suffix if given an `-o'
2817 # argument, so we may need to know it at that point already.
2818 # Even if this section looks crufty: it has the advantage of
2825 test "$ac_cv_exeext" = no && ac_cv_exeext=
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&2;}
2835 { (exit 77); exit 77; }; }
2838 ac_exeext=$ac_cv_exeext
2839 { echo "$as_me:$LINENO: result: $ac_file" >&5
2840 echo "${ECHO_T}$ac_file" >&6; }
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849 if { ac_try='./$ac_file'
2850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 if test "$cross_compiling" = maybe; then
2864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2874 { echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2886 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2902 for ac_file in conftest.exe conftest conftest.*; do
2903 test -f "$ac_file" || continue
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2912 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 for ac_file in conftest.o conftest.obj conftest.*; do
2958 test -f "$ac_file" || continue;
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3051 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053 GCC=`test $ac_compiler_gnu = yes && echo yes`
3054 ac_test_CFLAGS=${CFLAGS+set}
3055 ac_save_CFLAGS=$CFLAGS
3056 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_cc_g+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 ac_save_c_werror_flag=$ac_c_werror_flag
3062 ac_c_werror_flag=yes
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 ac_c_werror_flag=$ac_save_c_werror_flag
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3253 if test "$GCC" = yes; then
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_prog_cc_c89=no
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3290 s = g (p, va_arg (v,int));
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3296 function prototypes and stuff, but not '\xHH' hex character constants.
3297 These don't provoke an error unfortunately, instead are silently treated
3298 as 'x'. The following induces an error, until -std is added to get
3299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3300 array size at least. It's necessary to write '\x00'==0 to get something
3301 that's true only with -std. */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305 inside strings and character constants. */
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326 CC="$ac_save_CC $ac_arg"
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_prog_cc_c89=$ac_arg
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 rm -f conftest.$ac_ext
3377 case "x$ac_cv_prog_cc_c89" in
3379 { echo "$as_me:$LINENO: result: none needed" >&5
3380 echo "${ECHO_T}none needed" >&6; } ;;
3382 { echo "$as_me:$LINENO: result: unsupported" >&5
3383 echo "${ECHO_T}unsupported" >&6; } ;;
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3404 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3405 # On Suns, sometimes $CPP names a directory.
3406 if test -n "$CPP" && test -d "$CPP"; then
3409 if test -z "$CPP"; then
3410 if test "${ac_cv_prog_CPP+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 # Double quotes because CPP needs to be expanded
3414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3417 for ac_c_preproc_warn_flag in '' yes
3419 # Use a header file that comes with gcc, so configuring glibc
3420 # with a fresh cross-compiler works.
3421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3422 # <limits.h> exists even on freestanding compilers.
3423 # On the NeXT, cc -E runs the code through the compiler's parser,
3424 # not just through cpp. "Syntax error" is here to catch this case.
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3432 # include <limits.h>
3434 # include <assert.h>
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null; then
3451 if test -s conftest.err; then
3452 ac_cpp_err=$ac_c_preproc_warn_flag
3453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 if test -z "$ac_cpp_err"; then
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Broken: fails on valid input.
3470 rm -f conftest.err conftest.$ac_ext
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 if test -z "$ac_cpp_err"; then
3505 # Broken: success on invalid input.
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 # Passes both tests.
3516 rm -f conftest.err conftest.$ac_ext
3519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520 rm -f conftest.err conftest.$ac_ext
3521 if $ac_preproc_ok; then
3533 { echo "$as_me:$LINENO: result: $CPP" >&5
3534 echo "${ECHO_T}$CPP" >&6; }
3536 for ac_c_preproc_warn_flag in '' yes
3538 # Use a header file that comes with gcc, so configuring glibc
3539 # with a fresh cross-compiler works.
3540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541 # <limits.h> exists even on freestanding compilers.
3542 # On the NeXT, cc -E runs the code through the compiler's parser,
3543 # not just through cpp. "Syntax error" is here to catch this case.
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3551 # include <limits.h>
3553 # include <assert.h>
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null; then
3570 if test -s conftest.err; then
3571 ac_cpp_err=$ac_c_preproc_warn_flag
3572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 if test -z "$ac_cpp_err"; then
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 # Broken: fails on valid input.
3589 rm -f conftest.err conftest.$ac_ext
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <ac_nonexistent.h>
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } >/dev/null; then
3614 if test -s conftest.err; then
3615 ac_cpp_err=$ac_c_preproc_warn_flag
3616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623 if test -z "$ac_cpp_err"; then
3624 # Broken: success on invalid input.
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 # Passes both tests.
3635 rm -f conftest.err conftest.$ac_ext
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 # Extract the first word of "grep ggrep" to use in msg output
3663 if test -z "$GREP"; then
3664 set dummy grep ggrep; ac_prog_name=$2
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_path_GREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in grep ggrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3679 # Check for GNU ac_path_GREP and select it if it is found.
3680 # Check for GNU $ac_path_GREP
3681 case `"$ac_path_GREP" --version 2>&1` in
3683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'GREP' >> "conftest.nl"
3693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_GREP="$ac_path_GREP"
3699 ac_path_GREP_max=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708 $ac_path_GREP_found && break 3
3718 GREP="$ac_cv_path_GREP"
3719 if test -z "$GREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3726 ac_cv_path_GREP=$GREP
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3733 GREP="$ac_cv_path_GREP"
3736 { echo "$as_me:$LINENO: checking for egrep" >&5
3737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3742 then ac_cv_path_EGREP="$GREP -E"
3744 # Extract the first word of "egrep" to use in msg output
3745 if test -z "$EGREP"; then
3746 set dummy egrep; ac_prog_name=$2
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 ac_path_EGREP_found=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in egrep; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3760 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3761 # Check for GNU ac_path_EGREP and select it if it is found.
3762 # Check for GNU $ac_path_EGREP
3763 case `"$ac_path_EGREP" --version 2>&1` in
3765 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3768 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 cat "conftest.in" "conftest.in" >"conftest.tmp"
3772 mv "conftest.tmp" "conftest.in"
3773 cp "conftest.in" "conftest.nl"
3774 echo 'EGREP' >> "conftest.nl"
3775 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3777 ac_count=`expr $ac_count + 1`
3778 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3779 # Best one so far, save it but keep looking for a better one
3780 ac_cv_path_EGREP="$ac_path_EGREP"
3781 ac_path_EGREP_max=$ac_count
3783 # 10*(2^10) chars as input seems more than enough
3784 test $ac_count -gt 10 && break
3786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3790 $ac_path_EGREP_found && break 3
3800 EGREP="$ac_cv_path_EGREP"
3801 if test -z "$EGREP"; then
3802 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3803 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3804 { (exit 1); exit 1; }; }
3808 ac_cv_path_EGREP=$EGREP
3814 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3815 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3816 EGREP="$ac_cv_path_EGREP"
3819 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3820 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3821 if test "${ac_cv_header_stdc+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3852 grep -v '^ *+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; } &&
3867 { ac_try='test -s conftest.$ac_objext'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_header_stdc=yes
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_header_stdc=no
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 if test $ac_cv_header_stdc = yes; then
3888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "memchr" >/dev/null 2>&1; then
3902 ac_cv_header_stdc=no
3908 if test $ac_cv_header_stdc = yes; then
3909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 $EGREP "free" >/dev/null 2>&1; then
3923 ac_cv_header_stdc=no
3929 if test $ac_cv_header_stdc = yes; then
3930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3931 if test "$cross_compiling" = yes; then
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3942 #if ((' ' & 0x0FF) == 0x020)
3943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946 # define ISLOWER(c) \
3947 (('a' <= (c) && (c) <= 'i') \
3948 || ('j' <= (c) && (c) <= 'r') \
3949 || ('s' <= (c) && (c) <= 'z'))
3950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3958 for (i = 0; i < 256; i++)
3959 if (XOR (islower (i), ISLOWER (i))
3960 || toupper (i) != TOUPPER (i))
3965 rm -f conftest$ac_exeext
3966 if { (ac_try="$ac_link"
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_link") 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3976 { (case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3987 echo "$as_me: program exited with status $ac_status" >&5
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3992 ac_cv_header_stdc=no
3994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4000 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4001 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4002 if test $ac_cv_header_stdc = yes; then
4004 cat >>confdefs.h <<\_ACEOF
4005 #define STDC_HEADERS 1
4010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4021 inttypes.h stdint.h unistd.h
4023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 $ac_includes_default
4037 #include <$ac_header>
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 eval "$as_ac_Header=yes"
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 eval "$as_ac_Header=no"
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_res=`eval echo '${'$as_ac_Header'}'`
4084 { echo "$as_me:$LINENO: result: $ac_res" >&5
4085 echo "${ECHO_T}$ac_res" >&6; }
4086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4087 cat >>confdefs.h <<_ACEOF
4088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4097 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4098 if test "${ac_cv_c_bigendian+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 # See if sys/param.h defines the BYTE_ORDER macro.
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <sys/types.h>
4109 #include <sys/param.h>
4114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_compile") 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 # It does; now see whether it defined to BIG_ENDIAN or not.
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #include <sys/types.h>
4164 #include <sys/param.h>
4169 #if BYTE_ORDER != BIG_ENDIAN
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; } &&
4201 { ac_try='test -s conftest.$ac_objext'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_c_bigendian=yes
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 ac_cv_c_bigendian=no
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 # It does not; compile a test program.
4225 if test "$cross_compiling" = yes; then
4226 # try to guess the endianness by grepping values into an object file
4227 ac_cv_c_bigendian=unknown
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4235 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4236 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4237 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4238 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4239 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4243 _ascii (); _ebcdic ();
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4283 ac_cv_c_bigendian=yes
4285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4286 if test "$ac_cv_c_bigendian" = unknown; then
4287 ac_cv_c_bigendian=no
4289 # finding both strings is unlikely to happen, but who knows?
4290 ac_cv_c_bigendian=unknown
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 cat >conftest.$ac_ext <<_ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 $ac_includes_default
4313 /* Are we little or big endian? From Harbison&Steele. */
4317 char c[sizeof (long int)];
4320 return u.c[sizeof (long int) - 1] == 1;
4326 rm -f conftest$ac_exeext
4327 if { (ac_try="$ac_link"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_link") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4337 { (case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_try") 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_c_bigendian=no
4348 echo "$as_me: program exited with status $ac_status" >&5
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_c_bigendian=yes
4355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4365 case $ac_cv_c_bigendian in
4373 { { echo "$as_me:$LINENO: error: unknown endianness
4374 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4375 echo "$as_me: error: unknown endianness
4376 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4381 if test "$cross_compiling" = yes; then
4382 LLVM_CROSS_COMPILING=1
4385 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4386 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4387 if test "${ac_cv_build_exeext+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4391 ac_cv_build_exeext=.exe
4393 ac_build_prefix=${build_alias}-
4395 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4396 set dummy ${ac_build_prefix}gcc; ac_word=$2
4397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$BUILD_CC"; then
4403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 BUILD_CC=$ac_cv_prog_BUILD_CC
4423 if test -n "$BUILD_CC"; then
4424 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4425 echo "${ECHO_T}$BUILD_CC" >&6; }
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4432 if test -z "$BUILD_CC"; then
4433 # Extract the first word of "gcc", so it can be a program name with args.
4434 set dummy gcc; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 if test -n "$BUILD_CC"; then
4441 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_BUILD_CC="gcc"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 BUILD_CC=$ac_cv_prog_BUILD_CC
4461 if test -n "$BUILD_CC"; then
4462 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4463 echo "${ECHO_T}$BUILD_CC" >&6; }
4465 { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4470 if test -z "$BUILD_CC"; then
4471 # Extract the first word of "cc", so it can be a program name with args.
4472 set dummy cc; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 if test -n "$BUILD_CC"; then
4479 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4490 ac_prog_rejected=yes
4493 ac_cv_prog_BUILD_CC="cc"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 if test $ac_prog_rejected = yes; then
4502 # We found a bogon in the path, so make sure we never use it.
4503 set dummy $ac_cv_prog_BUILD_CC
4505 if test $# != 0; then
4506 # We chose a different compiler from the bogus one.
4507 # However, it has the same basename, so the bogon will be chosen
4508 # first if we set BUILD_CC to just the basename; use the full file name.
4510 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4515 BUILD_CC=$ac_cv_prog_BUILD_CC
4516 if test -n "$BUILD_CC"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4518 echo "${ECHO_T}$BUILD_CC" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4527 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4528 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4529 { (exit 1); exit 1; }; }
4530 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532 echo 'int main () { return 0; }' > conftest.$ac_ext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4535 (eval $ac_build_link) 2>&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; then
4539 for file in conftest.*; do
4541 *.c | *.o | *.obj | *.dSYM) ;;
4542 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4546 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4547 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4548 { (exit 1); exit 1; }; }
4551 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4556 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4557 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4558 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4559 ac_build_exeext=$BUILD_EXEEXT
4561 ac_build_prefix=${build_alias}-
4562 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4563 set dummy ${ac_build_prefix}g++; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$BUILD_CXX"; then
4570 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4590 if test -n "$BUILD_CXX"; then
4591 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4592 echo "${ECHO_T}$BUILD_CXX" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4599 if test -z "$BUILD_CXX"; then
4600 # Extract the first word of "g++", so it can be a program name with args.
4601 set dummy g++; ac_word=$2
4602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 if test -n "$BUILD_CXX"; then
4608 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_BUILD_CXX="g++"
4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4628 if test -n "$BUILD_CXX"; then
4629 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4630 echo "${ECHO_T}$BUILD_CXX" >&6; }
4632 { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4637 if test -z "$BUILD_CXX"; then
4638 # Extract the first word of "c++", so it can be a program name with args.
4639 set dummy c++; ac_word=$2
4640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4642 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 if test -n "$BUILD_CXX"; then
4646 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4657 ac_prog_rejected=yes
4660 ac_cv_prog_BUILD_CXX="c++"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 if test $ac_prog_rejected = yes; then
4669 # We found a bogon in the path, so make sure we never use it.
4670 set dummy $ac_cv_prog_BUILD_CXX
4672 if test $# != 0; then
4673 # We chose a different compiler from the bogus one.
4674 # However, it has the same basename, so the bogon will be chosen
4675 # first if we set BUILD_CXX to just the basename; use the full file name.
4677 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4682 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4683 if test -n "$BUILD_CXX"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4685 echo "${ECHO_T}$BUILD_CXX" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4695 LLVM_CROSS_COMPILING=0
4699 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4710 # Check whether --enable-optimized was given.
4711 if test "${enable_optimized+set}" = set; then
4712 enableval=$enable_optimized;
4717 if test ${enableval} = "no" ; then
4721 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4725 # Check whether --enable-assertions was given.
4726 if test "${enable_assertions+set}" = set; then
4727 enableval=$enable_assertions;
4732 if test ${enableval} = "yes" ; then
4736 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4740 # Check whether --enable-expensive-checks was given.
4741 if test "${enable_expensive_checks+set}" = set; then
4742 enableval=$enable_expensive_checks;
4747 if test ${enableval} = "yes" ; then
4748 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4750 EXPENSIVE_CHECKS=yes
4753 ENABLE_EXPENSIVE_CHECKS=
4759 # Check whether --enable-debug-runtime was given.
4760 if test "${enable_debug_runtime+set}" = set; then
4761 enableval=$enable_debug_runtime;
4766 if test ${enableval} = "no" ; then
4770 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4774 # Check whether --enable-jit was given.
4775 if test "${enable_jit+set}" = set; then
4776 enableval=$enable_jit;
4781 if test ${enableval} = "no"
4786 case "$llvm_cv_target_arch" in
4787 x86) TARGET_HAS_JIT=1
4789 Sparc) TARGET_HAS_JIT=0
4791 PowerPC) TARGET_HAS_JIT=1
4793 x86_64) TARGET_HAS_JIT=1
4795 Alpha) TARGET_HAS_JIT=1
4797 IA64) TARGET_HAS_JIT=0
4799 ARM) TARGET_HAS_JIT=0
4801 Mips) TARGET_HAS_JIT=0
4803 PIC16) TARGET_HAS_JIT=0
4805 XCore) TARGET_HAS_JIT=0
4812 # Check whether --enable-doxygen was given.
4813 if test "${enable_doxygen+set}" = set; then
4814 enableval=$enable_doxygen;
4819 case "$enableval" in
4820 yes) ENABLE_DOXYGEN=1
4822 no) ENABLE_DOXYGEN=0
4824 default) ENABLE_DOXYGEN=0
4826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4827 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4828 { (exit 1); exit 1; }; } ;;
4831 # Check whether --enable-threads was given.
4832 if test "${enable_threads+set}" = set; then
4833 enableval=$enable_threads;
4838 case "$enableval" in
4839 yes) ENABLE_THREADS=1
4841 no) ENABLE_THREADS=0
4843 default) ENABLE_THREADS=1
4845 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4846 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4847 { (exit 1); exit 1; }; } ;;
4850 cat >>confdefs.h <<_ACEOF
4851 #define ENABLE_THREADS $ENABLE_THREADS
4855 # Check whether --enable-pic was given.
4856 if test "${enable_pic+set}" = set; then
4857 enableval=$enable_pic;
4862 case "$enableval" in
4867 default) ENABLE_PIC=1
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4874 cat >>confdefs.h <<_ACEOF
4875 #define ENABLE_PIC $ENABLE_PIC
4880 # Check whether --enable-targets was given.
4881 if test "${enable_targets+set}" = set; then
4882 enableval=$enable_targets;
4887 case "$enableval" in
4888 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4890 case "$llvm_cv_target_arch" in
4891 x86) TARGETS_TO_BUILD="X86" ;;
4892 x86_64) TARGETS_TO_BUILD="X86" ;;
4893 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4894 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4895 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4896 IA64) TARGETS_TO_BUILD="IA64" ;;
4897 ARM) TARGETS_TO_BUILD="ARM" ;;
4898 Mips) TARGETS_TO_BUILD="Mips" ;;
4899 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4900 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4901 XCore) TARGETS_TO_BUILD="XCore" ;;
4902 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4903 echo "$as_me: error: Can not set target to build" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4907 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4909 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4910 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4912 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4913 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4914 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4915 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4916 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4917 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4918 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4919 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4920 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4921 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4922 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4923 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4924 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4930 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4933 # Check whether --enable-cbe-printf-a was given.
4934 if test "${enable_cbe_printf_a+set}" = set; then
4935 enableval=$enable_cbe_printf_a;
4940 case "$enableval" in
4941 yes) ENABLE_CBE_PRINTF_A=1
4943 no) ENABLE_CBE_PRINTF_A=0
4945 default) ENABLE_CBE_PRINTF_A=1
4947 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4948 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4949 { (exit 1); exit 1; }; } ;;
4952 cat >>confdefs.h <<_ACEOF
4953 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4958 # Check whether --with-llvmgccdir was given.
4959 if test "${with_llvmgccdir+set}" = set; then
4960 withval=$with_llvmgccdir;
4966 default) WITH_LLVMGCCDIR=default ;;
4967 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4968 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4969 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4970 { (exit 1); exit 1; }; } ;;
4974 # Check whether --with-llvmgcc was given.
4975 if test "${with_llvmgcc+set}" = set; then
4976 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4982 # Check whether --with-llvmgxx was given.
4983 if test "${with_llvmgxx+set}" = set; then
4984 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4989 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4990 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4991 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4992 { (exit 1); exit 1; }; };
4995 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4996 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4997 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4998 { (exit 1); exit 1; }; };
5002 # Check whether --with-extra-options was given.
5003 if test "${with_extra_options+set}" = set; then
5004 withval=$with_extra_options;
5010 default) EXTRA_OPTIONS= ;;
5011 *) EXTRA_OPTIONS=$withval ;;
5013 EXTRA_OPTIONS=$EXTRA_OPTIONS
5016 # Check whether --enable-bindings was given.
5017 if test "${enable_bindings+set}" = set; then
5018 enableval=$enable_bindings;
5023 BINDINGS_TO_BUILD=""
5024 case "$enableval" in
5025 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5026 all ) BINDINGS_TO_BUILD="ocaml" ;;
5027 none | no) BINDINGS_TO_BUILD="" ;;
5028 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5029 case "$a_binding" in
5030 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5031 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5032 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5040 # Check whether --with-ocaml-libdir was given.
5041 if test "${with_ocaml_libdir+set}" = set; then
5042 withval=$with_ocaml_libdir;
5048 auto) with_ocaml_libdir="$withval" ;;
5049 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5050 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5051 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5052 { (exit 1); exit 1; }; } ;;
5056 # Check whether --with-binutils-include was given.
5057 if test "${with_binutils_include+set}" = set; then
5058 withval=$with_binutils_include;
5064 default) WITH_BINUTILS_INCDIR=default ;;
5065 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5066 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5067 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5068 { (exit 1); exit 1; }; } ;;
5070 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5071 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5073 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5074 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5075 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5076 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5077 { (exit 1); exit 1; }; };
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5088 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5089 # On Suns, sometimes $CPP names a directory.
5090 if test -n "$CPP" && test -d "$CPP"; then
5093 if test -z "$CPP"; then
5094 if test "${ac_cv_prog_CPP+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 # Double quotes because CPP needs to be expanded
5098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5101 for ac_c_preproc_warn_flag in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5116 # include <limits.h>
5118 # include <assert.h>
5122 if { (ac_try="$ac_cpp conftest.$ac_ext"
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } >/dev/null; then
5135 if test -s conftest.err; then
5136 ac_cpp_err=$ac_c_preproc_warn_flag
5137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5144 if test -z "$ac_cpp_err"; then
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 # Broken: fails on valid input.
5154 rm -f conftest.err conftest.$ac_ext
5156 # OK, works on sane cases. Now check whether nonexistent headers
5157 # can be detected and how.
5158 cat >conftest.$ac_ext <<_ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5166 if { (ac_try="$ac_cpp conftest.$ac_ext"
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5174 grep -v '^ *+' conftest.er1 >conftest.err
5176 cat conftest.err >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } >/dev/null; then
5179 if test -s conftest.err; then
5180 ac_cpp_err=$ac_c_preproc_warn_flag
5181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5188 if test -z "$ac_cpp_err"; then
5189 # Broken: success on invalid input.
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 # Passes both tests.
5200 rm -f conftest.err conftest.$ac_ext
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.$ac_ext
5205 if $ac_preproc_ok; then
5217 { echo "$as_me:$LINENO: result: $CPP" >&5
5218 echo "${ECHO_T}$CPP" >&6; }
5220 for ac_c_preproc_warn_flag in '' yes
5222 # Use a header file that comes with gcc, so configuring glibc
5223 # with a fresh cross-compiler works.
5224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 # <limits.h> exists even on freestanding compilers.
5226 # On the NeXT, cc -E runs the code through the compiler's parser,
5227 # not just through cpp. "Syntax error" is here to catch this case.
5228 cat >conftest.$ac_ext <<_ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5235 # include <limits.h>
5237 # include <assert.h>
5241 if { (ac_try="$ac_cpp conftest.$ac_ext"
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249 grep -v '^ *+' conftest.er1 >conftest.err
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev/null; then
5254 if test -s conftest.err; then
5255 ac_cpp_err=$ac_c_preproc_warn_flag
5256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5263 if test -z "$ac_cpp_err"; then
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 # Broken: fails on valid input.
5273 rm -f conftest.err conftest.$ac_ext
5275 # OK, works on sane cases. Now check whether nonexistent headers
5276 # can be detected and how.
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <ac_nonexistent.h>
5285 if { (ac_try="$ac_cpp conftest.$ac_ext"
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293 grep -v '^ *+' conftest.er1 >conftest.err
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } >/dev/null; then
5298 if test -s conftest.err; then
5299 ac_cpp_err=$ac_c_preproc_warn_flag
5300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5307 if test -z "$ac_cpp_err"; then
5308 # Broken: success on invalid input.
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5314 # Passes both tests.
5319 rm -f conftest.err conftest.$ac_ext
5322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323 rm -f conftest.err conftest.$ac_ext
5324 if $ac_preproc_ok; then
5327 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5328 See \`config.log' for more details." >&5
5329 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5330 See \`config.log' for more details." >&2;}
5331 { (exit 1); exit 1; }; }
5335 ac_cpp='$CPP $CPPFLAGS'
5336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341 ac_cpp='$CPP $CPPFLAGS'
5342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5352 if test "${ac_cv_prog_CC+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 if test -n "$CC"; then
5356 ac_cv_prog_CC="$CC" # Let the user override the test.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 if test -n "$CC"; then
5377 { echo "$as_me:$LINENO: result: $CC" >&5
5378 echo "${ECHO_T}$CC" >&6; }
5380 { echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6; }
5385 test -n "$CC" && break
5388 if test -z "$CC"; then
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy $ac_prog; ac_word=$2
5394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 if test -n "$ac_ct_CC"; then
5400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_ac_ct_CC="$ac_prog"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5420 if test -n "$ac_ct_CC"; then
5421 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5422 echo "${ECHO_T}$ac_ct_CC" >&6; }
5424 { echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6; }
5429 test -n "$ac_ct_CC" && break
5432 if test "x$ac_ct_CC" = x; then
5435 case $cross_compiling:$ac_tool_warned in
5437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5438 whose name does not start with the host triplet. If you think this
5439 configuration is useful to you, please write to autoconf@gnu.org." >&5
5440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5441 whose name does not start with the host triplet. If you think this
5442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5443 ac_tool_warned=yes ;;
5450 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5451 See \`config.log' for more details." >&5
5452 echo "$as_me: error: no acceptable C compiler found in \$PATH
5453 See \`config.log' for more details." >&2;}
5454 { (exit 1); exit 1; }; }
5456 # Provide some information about the compiler.
5457 echo "$as_me:$LINENO: checking for C compiler version" >&5
5458 ac_compiler=`set X $ac_compile; echo $2`
5459 { (ac_try="$ac_compiler --version >&5"
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_compiler --version >&5") 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }
5469 { (ac_try="$ac_compiler -v >&5"
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_compiler -v >&5") 2>&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }
5479 { (ac_try="$ac_compiler -V >&5"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compiler -V >&5") 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }
5490 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5528 { (case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_try") 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_try") 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5559 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5560 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5561 GCC=`test $ac_compiler_gnu = yes && echo yes`
5562 ac_test_CFLAGS=${CFLAGS+set}
5563 ac_save_CFLAGS=$CFLAGS
5564 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5565 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5566 if test "${ac_cv_prog_cc_g+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 ac_save_c_werror_flag=$ac_c_werror_flag
5570 ac_c_werror_flag=yes
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5603 { (case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_try") 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_try") 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5628 cat >conftest.$ac_ext <<_ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5643 rm -f conftest.$ac_objext
5644 if { (ac_try="$ac_compile"
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } &&
5657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5658 { (case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_try") 2>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest.$ac_objext'
5668 { (case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_try") 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_c_werror_flag=$ac_save_c_werror_flag
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5714 { (case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_try") 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest.$ac_objext'
5724 { (case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_try") 2>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 ac_c_werror_flag=$ac_save_c_werror_flag
5750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5751 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5752 if test "$ac_test_CFLAGS" = set; then
5753 CFLAGS=$ac_save_CFLAGS
5754 elif test $ac_cv_prog_cc_g = yes; then
5755 if test "$GCC" = yes; then
5761 if test "$GCC" = yes; then
5767 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5768 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5769 if test "${ac_cv_prog_cc_c89+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 ac_cv_prog_cc_c89=no
5774 cat >conftest.$ac_ext <<_ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5782 #include <sys/types.h>
5783 #include <sys/stat.h>
5784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5785 struct buf { int x; };
5786 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5787 static char *e (p, i)
5793 static char *f (char * (*g) (char **, int), char **p, ...)
5798 s = g (p, va_arg (v,int));
5803 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5804 function prototypes and stuff, but not '\xHH' hex character constants.
5805 These don't provoke an error unfortunately, instead are silently treated
5806 as 'x'. The following induces an error, until -std is added to get
5807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5808 array size at least. It's necessary to write '\x00'==0 to get something
5809 that's true only with -std. */
5810 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5812 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5813 inside strings and character constants. */
5815 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5817 int test (int i, double x);
5818 struct s1 {int (*f) (int a);};
5819 struct s2 {int (*f) (double a);};
5820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5831 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5834 CC="$ac_save_CC $ac_arg"
5835 rm -f conftest.$ac_objext
5836 if { (ac_try="$ac_compile"
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_try") 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_prog_cc_c89=$ac_arg
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5877 rm -f core conftest.err conftest.$ac_objext
5878 test "x$ac_cv_prog_cc_c89" != "xno" && break
5880 rm -f conftest.$ac_ext
5885 case "x$ac_cv_prog_cc_c89" in
5887 { echo "$as_me:$LINENO: result: none needed" >&5
5888 echo "${ECHO_T}none needed" >&6; } ;;
5890 { echo "$as_me:$LINENO: result: unsupported" >&5
5891 echo "${ECHO_T}unsupported" >&6; } ;;
5893 CC="$CC $ac_cv_prog_cc_c89"
5894 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5895 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906 ac_cpp='$CXXCPP $CPPFLAGS'
5907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5910 if test -z "$CXX"; then
5911 if test -n "$CCC"; then
5914 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_prog_CXX+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 if test -n "$CXX"; then
5925 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 if test -n "$CXX"; then
5946 { echo "$as_me:$LINENO: result: $CXX" >&5
5947 echo "${ECHO_T}$CXX" >&6; }
5949 { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5954 test -n "$CXX" && break
5957 if test -z "$CXX"; then
5961 # Extract the first word of "$ac_prog", so it can be a program name with args.
5962 set dummy $ac_prog; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 if test -n "$ac_ct_CXX"; then
5969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_CXX="$ac_prog"
5979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5989 if test -n "$ac_ct_CXX"; then
5990 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5991 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5993 { echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6; }
5998 test -n "$ac_ct_CXX" && break
6001 if test "x$ac_ct_CXX" = x; then
6004 case $cross_compiling:$ac_tool_warned in
6006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6007 whose name does not start with the host triplet. If you think this
6008 configuration is useful to you, please write to autoconf@gnu.org." >&5
6009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6010 whose name does not start with the host triplet. If you think this
6011 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6012 ac_tool_warned=yes ;;
6020 # Provide some information about the compiler.
6021 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6022 ac_compiler=`set X $ac_compile; echo $2`
6023 { (ac_try="$ac_compiler --version >&5"
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_compiler --version >&5") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }
6033 { (ac_try="$ac_compiler -v >&5"
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_compiler -v >&5") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }
6043 { (ac_try="$ac_compiler -V >&5"
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compiler -V >&5") 2>&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }
6054 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6055 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6056 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6092 { (case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_try") 2>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6123 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6124 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6125 GXX=`test $ac_compiler_gnu = yes && echo yes`
6126 ac_test_CXXFLAGS=${CXXFLAGS+set}
6127 ac_save_CXXFLAGS=$CXXFLAGS
6128 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6129 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_cxx_g+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6134 ac_cxx_werror_flag=yes
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6167 { (case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_try") 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_prog_cxx_g=yes
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6207 rm -f conftest.$ac_objext
6208 if { (ac_try="$ac_compile"
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
6216 grep -v '^ *+' conftest.er1 >conftest.err
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest.$ac_objext'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6248 cat >conftest.$ac_ext <<_ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6263 rm -f conftest.$ac_objext
6264 if { (ac_try="$ac_compile"
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_compile") 2>conftest.er1
6272 grep -v '^ *+' conftest.er1 >conftest.err
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6278 { (case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_try") 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_try") 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_prog_cxx_g=yes
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6315 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6316 if test "$ac_test_CXXFLAGS" = set; then
6317 CXXFLAGS=$ac_save_CXXFLAGS
6318 elif test $ac_cv_prog_cxx_g = yes; then
6319 if test "$GXX" = yes; then
6325 if test "$GXX" = yes; then
6332 ac_cpp='$CPP $CPPFLAGS'
6333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6339 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6340 if test "${lt_cv_path_NM+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 if test -n "$NM"; then
6344 # Let the user override the test.
6347 lt_nm_to_check="${ac_tool_prefix}nm"
6348 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6349 lt_nm_to_check="$lt_nm_to_check nm"
6351 for lt_tmp_nm in $lt_nm_to_check; do
6352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6355 test -z "$ac_dir" && ac_dir=.
6356 tmp_nm="$ac_dir/$lt_tmp_nm"
6357 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6358 # Check to see if the nm accepts a BSD-compat flag.
6359 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6360 # nm: unknown option "B" ignored
6361 # Tru64's nm complains that /dev/null is an invalid object file
6362 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6363 */dev/null* | *'Invalid file or object type'*)
6364 lt_cv_path_NM="$tmp_nm -B"
6368 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6370 lt_cv_path_NM="$tmp_nm -p"
6374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6375 continue # so that we can try to find one that supports BSD flags
6384 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6387 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6388 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6393 { echo "$as_me:$LINENO: checking for GNU make" >&5
6394 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6395 if test "${llvm_cv_gnu_make_command+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 llvm_cv_gnu_make_command=''
6399 for a in "$MAKE" make gmake gnumake ; do
6400 if test -z "$a" ; then continue ; fi ;
6401 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6403 llvm_cv_gnu_make_command=$a ;
6408 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6409 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6410 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6414 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6415 echo "${ECHO_T}\"Not found\"" >&6; };
6419 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6420 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6422 if test "$LN_S" = "ln -s"; then
6423 { echo "$as_me:$LINENO: result: yes" >&5
6424 echo "${ECHO_T}yes" >&6; }
6426 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6427 echo "${ECHO_T}no, using $LN_S" >&6; }
6430 # Extract the first word of "cmp", so it can be a program name with args.
6431 set dummy cmp; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_CMP+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6462 if test -n "$CMP"; then
6463 { echo "$as_me:$LINENO: result: $CMP" >&5
6464 echo "${ECHO_T}$CMP" >&6; }
6466 { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6471 # Extract the first word of "cp", so it can be a program name with args.
6472 set dummy cp; ac_word=$2
6473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6475 if test "${ac_cv_path_CP+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6503 if test -n "$CP"; then
6504 { echo "$as_me:$LINENO: result: $CP" >&5
6505 echo "${ECHO_T}$CP" >&6; }
6507 { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6512 # Extract the first word of "date", so it can be a program name with args.
6513 set dummy date; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_path_DATE+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6543 DATE=$ac_cv_path_DATE
6544 if test -n "$DATE"; then
6545 { echo "$as_me:$LINENO: result: $DATE" >&5
6546 echo "${ECHO_T}$DATE" >&6; }
6548 { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6553 # Extract the first word of "find", so it can be a program name with args.
6554 set dummy find; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_path_FIND+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6584 FIND=$ac_cv_path_FIND
6585 if test -n "$FIND"; then
6586 { echo "$as_me:$LINENO: result: $FIND" >&5
6587 echo "${ECHO_T}$FIND" >&6; }
6589 { echo "$as_me:$LINENO: result: no" >&5
6590 echo "${ECHO_T}no" >&6; }
6594 # Extract the first word of "grep", so it can be a program name with args.
6595 set dummy grep; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_GREP+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6625 GREP=$ac_cv_path_GREP
6626 if test -n "$GREP"; then
6627 { echo "$as_me:$LINENO: result: $GREP" >&5
6628 echo "${ECHO_T}$GREP" >&6; }
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 # Extract the first word of "mkdir", so it can be a program name with args.
6636 set dummy mkdir; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_MKDIR+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6666 MKDIR=$ac_cv_path_MKDIR
6667 if test -n "$MKDIR"; then
6668 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6669 echo "${ECHO_T}$MKDIR" >&6; }
6671 { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6676 # Extract the first word of "mv", so it can be a program name with args.
6677 set dummy mv; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_path_MV+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6708 if test -n "$MV"; then
6709 { echo "$as_me:$LINENO: result: $MV" >&5
6710 echo "${ECHO_T}$MV" >&6; }
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_RANLIB+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$RANLIB"; then
6726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 RANLIB=$ac_cv_prog_RANLIB
6746 if test -n "$RANLIB"; then
6747 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6748 echo "${ECHO_T}$RANLIB" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6756 if test -z "$ac_cv_prog_RANLIB"; then
6757 ac_ct_RANLIB=$RANLIB
6758 # Extract the first word of "ranlib", so it can be a program name with args.
6759 set dummy ranlib; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$ac_ct_RANLIB"; then
6766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_RANLIB="ranlib"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6786 if test -n "$ac_ct_RANLIB"; then
6787 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6788 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6794 if test "x$ac_ct_RANLIB" = x; then
6797 case $cross_compiling:$ac_tool_warned in
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet. If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6807 RANLIB=$ac_ct_RANLIB
6810 RANLIB="$ac_cv_prog_RANLIB"
6813 # Extract the first word of "rm", so it can be a program name with args.
6814 set dummy rm; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_RM+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6845 if test -n "$RM"; then
6846 { echo "$as_me:$LINENO: result: $RM" >&5
6847 echo "${ECHO_T}$RM" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6854 # Extract the first word of "sed", so it can be a program name with args.
6855 set dummy sed; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_SED+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6886 if test -n "$SED"; then
6887 { echo "$as_me:$LINENO: result: $SED" >&5
6888 echo "${ECHO_T}$SED" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 # Extract the first word of "tar", so it can be a program name with args.
6896 set dummy tar; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_TAR+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6927 if test -n "$TAR"; then
6928 { echo "$as_me:$LINENO: result: $TAR" >&5
6929 echo "${ECHO_T}$TAR" >&6; }
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 # Extract the first word of "pwd", so it can be a program name with args.
6937 set dummy pwd; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_BINPWD+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6967 BINPWD=$ac_cv_path_BINPWD
6968 if test -n "$BINPWD"; then
6969 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6970 echo "${ECHO_T}$BINPWD" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6978 # Extract the first word of "Graphviz", so it can be a program name with args.
6979 set dummy Graphviz; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7009 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7010 if test -n "$GRAPHVIZ"; then
7011 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7012 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7019 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_GRAPHVIZ 1
7025 if test "$llvm_cv_os_type" = "MingW" ; then
7026 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7034 # Extract the first word of "dot", so it can be a program name with args.
7035 set dummy dot; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_DOT+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7066 if test -n "$DOT"; then
7067 { echo "$as_me:$LINENO: result: $DOT" >&5
7068 echo "${ECHO_T}$DOT" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7075 if test "$DOT" != "echo dot" ; then
7077 cat >>confdefs.h <<\_ACEOF
7081 if test "$llvm_cv_os_type" = "MingW" ; then
7082 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7085 cat >>confdefs.h <<_ACEOF
7086 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7090 for ac_prog in gv gsview32
7092 # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_GV+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 if test -n "$GV"; then
7124 { echo "$as_me:$LINENO: result: $GV" >&5
7125 echo "${ECHO_T}$GV" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7132 test -n "$GV" && break
7134 test -n "$GV" || GV="echo gv"
7136 if test "$GV" != "echo gv" ; then
7138 cat >>confdefs.h <<\_ACEOF
7142 if test "$llvm_cv_os_type" = "MingW" ; then
7143 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7146 cat >>confdefs.h <<_ACEOF
7147 #define LLVM_PATH_GV "$GV${EXEEXT}"
7151 # Extract the first word of "dotty", so it can be a program name with args.
7152 set dummy dotty; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_DOTTY+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7182 DOTTY=$ac_cv_path_DOTTY
7183 if test -n "$DOTTY"; then
7184 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7185 echo "${ECHO_T}$DOTTY" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7192 if test "$DOTTY" != "echo dotty" ; then
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_DOTTY 1
7198 if test "$llvm_cv_os_type" = "MingW" ; then
7199 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7202 cat >>confdefs.h <<_ACEOF
7203 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7209 # Extract the first word of "perl", so it can be a program name with args.
7210 set dummy perl; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_path_PERL+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7240 PERL=$ac_cv_path_PERL
7241 if test -n "$PERL"; then
7242 { echo "$as_me:$LINENO: result: $PERL" >&5
7243 echo "${ECHO_T}$PERL" >&6; }
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7250 if test "$PERL" != "none"; then
7251 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7252 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7253 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7254 { echo "$as_me:$LINENO: result: yes" >&5
7255 echo "${ECHO_T}yes" >&6; }
7258 { echo "$as_me:$LINENO: result: not found" >&5
7259 echo "${ECHO_T}not found" >&6; }
7264 if test x"$PERL" = xnone; then
7267 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7268 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7269 { (exit 1); exit 1; }; }
7275 # Find a good install program. We prefer a C program (faster),
7276 # so one script is as good as another. But avoid the broken or
7277 # incompatible versions:
7278 # SysV /etc/install, /usr/sbin/install
7279 # SunOS /usr/etc/install
7280 # IRIX /sbin/install
7282 # AmigaOS /C/install, which installs bootblocks on floppy discs
7283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7286 # OS/2's system install, which has a completely different semantic
7287 # ./install, which can be erroneously created by make from ./install.sh.
7288 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7289 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7290 if test -z "$INSTALL"; then
7291 if test "${ac_cv_path_install+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 # Account for people who put trailing slashes in PATH elements.
7301 ./ | .// | /cC/* | \
7302 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7303 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7306 # OSF1 and SCO ODT 3.0 have their own names for install.
7307 # Don't use installbsd from OSF since it installs stuff as root
7309 for ac_prog in ginstall scoinst install; do
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7312 if test $ac_prog = install &&
7313 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7314 # AIX install. It has an incompatible calling convention.
7316 elif test $ac_prog = install &&
7317 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7318 # program-specific install script used by HP pwplus--don't use.
7321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7334 if test "${ac_cv_path_install+set}" = set; then
7335 INSTALL=$ac_cv_path_install
7337 # As a last resort, use the slow shell script. Don't cache a
7338 # value for INSTALL within a source directory, because that will
7339 # break other packages using the cache if that directory is
7340 # removed, or if the value is a relative name.
7341 INSTALL=$ac_install_sh
7344 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7345 echo "${ECHO_T}$INSTALL" >&6; }
7347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7348 # It thinks the first close brace ends the variable substitution.
7349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7356 # Extract the first word of "bzip2", so it can be a program name with args.
7357 set dummy bzip2; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_BZIP2+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 BZIP2=$ac_cv_path_BZIP2
7387 if test -n "$BZIP2"; then
7388 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7389 echo "${ECHO_T}$BZIP2" >&6; }
7391 { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7396 # Extract the first word of "doxygen", so it can be a program name with args.
7397 set dummy doxygen; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 DOXYGEN=$ac_cv_path_DOXYGEN
7427 if test -n "$DOXYGEN"; then
7428 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7429 echo "${ECHO_T}$DOXYGEN" >&6; }
7431 { echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6; }
7436 # Extract the first word of "groff", so it can be a program name with args.
7437 set dummy groff; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_path_GROFF+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7455 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 GROFF=$ac_cv_path_GROFF
7467 if test -n "$GROFF"; then
7468 { echo "$as_me:$LINENO: result: $GROFF" >&5
7469 echo "${ECHO_T}$GROFF" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 # Extract the first word of "gzip", so it can be a program name with args.
7477 set dummy gzip; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_path_GZIP+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7495 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 GZIP=$ac_cv_path_GZIP
7507 if test -n "$GZIP"; then
7508 { echo "$as_me:$LINENO: result: $GZIP" >&5
7509 echo "${ECHO_T}$GZIP" >&6; }
7511 { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7516 # Extract the first word of "pod2html", so it can be a program name with args.
7517 set dummy pod2html; ac_word=$2
7518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520 if test "${ac_cv_path_POD2HTML+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7535 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 POD2HTML=$ac_cv_path_POD2HTML
7547 if test -n "$POD2HTML"; then
7548 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7549 echo "${ECHO_T}$POD2HTML" >&6; }
7551 { echo "$as_me:$LINENO: result: no" >&5
7552 echo "${ECHO_T}no" >&6; }
7556 # Extract the first word of "pod2man", so it can be a program name with args.
7557 set dummy pod2man; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_path_POD2MAN+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 POD2MAN=$ac_cv_path_POD2MAN
7587 if test -n "$POD2MAN"; then
7588 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7589 echo "${ECHO_T}$POD2MAN" >&6; }
7591 { echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6; }
7596 # Extract the first word of "runtest", so it can be a program name with args.
7597 set dummy runtest; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_RUNTEST+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 RUNTEST=$ac_cv_path_RUNTEST
7627 if test -n "$RUNTEST"; then
7628 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7629 echo "${ECHO_T}$RUNTEST" >&6; }
7631 { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7638 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7639 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7641 # Check whether --with-tclinclude was given.
7642 if test "${with_tclinclude+set}" = set; then
7643 withval=$with_tclinclude; with_tclinclude=${withval}
7648 if test "${ac_cv_path_tclsh+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 if test x"${with_tclinclude}" != x ; then
7653 if test -f ${with_tclinclude}/tclsh ; then
7654 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7655 elif test -f ${with_tclinclude}/src/tclsh ; then
7656 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7658 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7659 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7660 { (exit 1); exit 1; }; }
7664 if test x"${ac_cv_path_tclsh}" = x ; then
7665 { echo "$as_me:$LINENO: result: none" >&5
7666 echo "${ECHO_T}none" >&6; }
7667 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
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_TCLSH+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 TCLSH=$ac_cv_path_TCLSH
7700 if test -n "$TCLSH"; then
7701 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7702 echo "${ECHO_T}$TCLSH" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 test -n "$TCLSH" && break
7712 if test x"${TCLSH}" = x ; then
7713 ac_cv_path_tclsh='';
7715 ac_cv_path_tclsh="${TCLSH}";
7718 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7719 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7720 TCLSH="${ac_cv_path_tclsh}"
7726 # Extract the first word of "zip", so it can be a program name with args.
7727 set dummy zip; ac_word=$2
7728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7730 if test "${ac_cv_path_ZIP+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 if test -n "$ZIP"; then
7758 { echo "$as_me:$LINENO: result: $ZIP" >&5
7759 echo "${ECHO_T}$ZIP" >&6; }
7761 { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7766 for ac_prog in ocamlc
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_OCAMLC+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 OCAMLC=$ac_cv_path_OCAMLC
7799 if test -n "$OCAMLC"; then
7800 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7801 echo "${ECHO_T}$OCAMLC" >&6; }
7803 { echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6; }
7808 test -n "$OCAMLC" && break
7811 for ac_prog in ocamlopt
7813 # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7832 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 OCAMLOPT=$ac_cv_path_OCAMLOPT
7844 if test -n "$OCAMLOPT"; then
7845 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7846 echo "${ECHO_T}$OCAMLOPT" >&6; }
7848 { echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6; }
7853 test -n "$OCAMLOPT" && break
7856 for ac_prog in ocamldep
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 OCAMLDEP=$ac_cv_path_OCAMLDEP
7889 if test -n "$OCAMLDEP"; then
7890 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7891 echo "${ECHO_T}$OCAMLDEP" >&6; }
7893 { echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6; }
7898 test -n "$OCAMLDEP" && break
7901 for ac_prog in ocamldoc
7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 OCAMLDOC=$ac_cv_path_OCAMLDOC
7934 if test -n "$OCAMLDOC"; then
7935 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7936 echo "${ECHO_T}$OCAMLDOC" >&6; }
7938 { echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6; }
7943 test -n "$OCAMLDOC" && break
7946 for ac_prog in gas as
7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
7949 set dummy $ac_prog; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_path_GAS+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 if test -n "$GAS"; then
7980 { echo "$as_me:$LINENO: result: $GAS" >&5
7981 echo "${ECHO_T}$GAS" >&6; }
7983 { echo "$as_me:$LINENO: result: no" >&5
7984 echo "${ECHO_T}no" >&6; }
7988 test -n "$GAS" && break
7992 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7993 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7994 if test "${llvm_cv_link_use_r+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004 CFLAGS="$CFLAGS -Wl,-R."
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8015 int main() { return 0; }
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_try") 2>&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 llvm_cv_link_use_r=yes
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 llvm_cv_link_use_r=no
8062 rm -f core conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8073 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8074 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8075 if test "$llvm_cv_link_use_r" = yes ; then
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_LINK_R 1
8086 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8088 if test "${ac_cv_c_const+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8101 /* FIXME: Include the comments suggested by Paul. */
8103 /* Ultrix mips cc rejects this. */
8104 typedef int charset[2];
8106 /* SunOS 4.1.1 cc rejects this. */
8107 char const *const *ccp;
8109 /* NEC SVR4.0.2 mips cc rejects this. */
8110 struct point {int x, y;};
8111 static struct point const zero = {0,0};
8112 /* AIX XL C 1.02.0.0 rejects this.
8113 It does not let you subtract one const X* pointer from another in
8114 an arm of an if-expression whose if-part is not a constant
8116 const char *g = "string";
8117 ccp = &g + (g ? g-g : 0);
8118 /* HPUX 7.0 cc rejects these. */
8121 ccp = (char const *const *) p;
8122 { /* SCO 3.2v4 cc rejects this. */
8124 char const *s = 0 ? (char *) 0 : (char const *) 0;
8129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8131 const int *foo = &x[0];
8134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8135 typedef const int *iptr;
8139 { /* AIX XL C 1.02.0.0 rejects this saying
8140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8141 struct s { int j; const int *ap[3]; };
8142 struct s *b; b->j = 5;
8144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8148 return !x[0] && !zero.x;
8155 rm -f conftest.$ac_objext
8156 if { (ac_try="$ac_compile"
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_compile") 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest.$ac_objext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8200 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8201 if test $ac_cv_c_const = no; then
8203 cat >>confdefs.h <<\_ACEOF
8215 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8216 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8217 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8218 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 cat >conftest.$ac_ext <<_ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 #include <sys/types.h>
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255 { (case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_try") 2>&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest.$ac_objext'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 eval "$as_ac_Header=yes"
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 eval "$as_ac_Header=no"
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 ac_res=`eval echo '${'$as_ac_Header'}'`
8285 { echo "$as_me:$LINENO: result: $ac_res" >&5
8286 echo "${ECHO_T}$ac_res" >&6; }
8287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288 cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8292 ac_header_dirent=$ac_hdr; break
8296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8297 if test $ac_header_dirent = dirent.h; then
8298 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8299 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8300 if test "${ac_cv_search_opendir+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 ac_func_search_save_LIBS=$LIBS
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8311 /* Override any GCC internal prototype to avoid an error.
8312 Use char because int might match the return type of a GCC
8313 builtin and then its argument prototype would still apply. */
8326 for ac_lib in '' dir; do
8327 if test -z "$ac_lib"; then
8328 ac_res="none required"
8331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8333 rm -f conftest.$ac_objext conftest$ac_exeext
8334 if { (ac_try="$ac_link"
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_link") 2>conftest.er1
8342 grep -v '^ *+' conftest.er1 >conftest.err
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest$ac_exeext'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_search_opendir=$ac_res
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8375 rm -f core conftest.err conftest.$ac_objext \
8377 if test "${ac_cv_search_opendir+set}" = set; then
8381 if test "${ac_cv_search_opendir+set}" = set; then
8384 ac_cv_search_opendir=no
8387 LIBS=$ac_func_search_save_LIBS
8389 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8390 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8391 ac_res=$ac_cv_search_opendir
8392 if test "$ac_res" != no; then
8393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8398 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8400 if test "${ac_cv_search_opendir+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 ac_func_search_save_LIBS=$LIBS
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8426 for ac_lib in '' x; do
8427 if test -z "$ac_lib"; then
8428 ac_res="none required"
8431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_link") 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8467 ac_cv_search_opendir=$ac_res
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8475 rm -f core conftest.err conftest.$ac_objext \
8477 if test "${ac_cv_search_opendir+set}" = set; then
8481 if test "${ac_cv_search_opendir+set}" = set; then
8484 ac_cv_search_opendir=no
8487 LIBS=$ac_func_search_save_LIBS
8489 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8490 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8491 ac_res=$ac_cv_search_opendir
8492 if test "$ac_res" != no; then
8493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8500 for ac_header in dlfcn.h
8502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 ac_res=`eval echo '${'$as_ac_Header'}'`
8510 { echo "$as_me:$LINENO: result: $ac_res" >&5
8511 echo "${ECHO_T}$ac_res" >&6; }
8513 # Is the header compilable?
8514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #include <$ac_header>
8525 rm -f conftest.$ac_objext
8526 if { (ac_try="$ac_compile"
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_compile") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540 { (case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_try") 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest.$ac_objext'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_header_compiler=yes
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8564 ac_header_compiler=no
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8569 echo "${ECHO_T}$ac_header_compiler" >&6; }
8571 # Is the header present?
8572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 #include <$ac_header>
8582 if { (ac_try="$ac_cpp conftest.$ac_ext"
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } >/dev/null; then
8595 if test -s conftest.err; then
8596 ac_cpp_err=$ac_c_preproc_warn_flag
8597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8604 if test -z "$ac_cpp_err"; then
8605 ac_header_preproc=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_header_preproc=no
8613 rm -f conftest.err conftest.$ac_ext
8614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8615 echo "${ECHO_T}$ac_header_preproc" >&6; }
8617 # So? What about this header?
8618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8624 ac_header_preproc=yes
8627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8640 ## ----------------------------------- ##
8641 ## Report this to llvmbugs@cs.uiuc.edu ##
8642 ## ----------------------------------- ##
8644 ) | sed "s/^/$as_me: WARNING: /" >&2
8647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 eval "$as_ac_Header=\$ac_header_preproc"
8654 ac_res=`eval echo '${'$as_ac_Header'}'`
8655 { echo "$as_me:$LINENO: result: $ac_res" >&5
8656 echo "${ECHO_T}$ac_res" >&6; }
8659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8668 # Check whether --enable-ltdl-install was given.
8669 if test "${enable_ltdl_install+set}" = set; then
8670 enableval=$enable_ltdl_install;
8676 if test x"${enable_ltdl_install-no}" != xno; then
8678 INSTALL_LTDL_FALSE='#'
8680 INSTALL_LTDL_TRUE='#'
8686 if test x"${enable_ltdl_convenience-no}" != xno; then
8687 CONVENIENCE_LTDL_TRUE=
8688 CONVENIENCE_LTDL_FALSE='#'
8690 CONVENIENCE_LTDL_TRUE='#'
8691 CONVENIENCE_LTDL_FALSE=
8695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8698 libname_spec='lib$name'
8706 shlibpath_overrides_runpath=unknown
8708 dynamic_linker="$host_os ld.so"
8709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8710 if test "$GCC" = yes; then
8711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8713 # if the path contains ";" then we assume it to be the separator
8714 # otherwise default to the standard path separator (i.e. ":") - it is
8715 # assumed that no part of a normal pathname contains ";" but that should
8716 # okay in the real world where ";" in dirpaths is itself problematic.
8717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8724 need_lib_prefix=unknown
8725 hardcode_into_libs=no
8727 # when you set need_version to no, make sure it does not cause -set_version
8728 # flags to be left without arguments
8729 need_version=unknown
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8735 shlibpath_var=LIBPATH
8737 # AIX 3 has no versioning support, so we append a major version to the name.
8738 soname_spec='${libname}${release}${shared_ext}$major'
8745 hardcode_into_libs=yes
8746 if test "$host_cpu" = ia64; then
8747 # AIX 5 supports IA64
8748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8749 shlibpath_var=LD_LIBRARY_PATH
8751 # With GCC up to 2.95.x, collect2 would create an import file
8752 # for dependence libraries. The import file would start with
8753 # the line `#! .'. This would cause the generated library to
8754 # depend on `.', always an invalid library. This was fixed in
8755 # development snapshots of GCC prior to 3.0.
8757 aix4 | aix4.[01] | aix4.[01].*)
8758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8768 # soname into executable. Probably we can add versioning support to
8769 # collect2, so additional links can be useful in future.
8770 if test "$aix_use_runtimelinking" = yes; then
8771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8772 # instead of lib<name>.a to let people know that these are not
8773 # typical AIX shared libraries.
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8776 # We preserve .a as extension for shared libraries through AIX4.2
8777 # and later when we are not doing run time linking.
8778 library_names_spec='${libname}${release}.a $libname.a'
8779 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LIBPATH
8786 library_names_spec='$libname.ixlibrary $libname.a'
8787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8788 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'
8792 library_names_spec='${libname}${shared_ext}'
8793 dynamic_linker="$host_os ld.so"
8794 shlibpath_var=LIBRARY_PATH
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8806 # the default ld.so.conf also contains /usr/contrib/lib and
8807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8808 # libtool to hard-code these into programs
8811 cygwin* | mingw* | pw32*)
8812 version_type=windows
8817 case $GCC,$host_os in
8818 yes,cygwin* | yes,mingw* | yes,pw32*)
8819 library_names_spec='$libname.dll.a'
8820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8821 postinstall_cmds='base_file=`basename \${file}`~
8822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8823 dldir=$destdir/`dirname \$dlpath`~
8824 test -d \$dldir || mkdir -p \$dldir~
8825 $install_prog $dir/$dlname \$dldir/$dlname~
8826 chmod a+x \$dldir/$dlname'
8827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8828 dlpath=$dir/\$dldll~
8830 shlibpath_overrides_runpath=yes
8834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8839 # MinGW DLLs use traditional 'lib' prefix
8840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8843 # It is most probably a Windows format PATH printed by
8844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8845 # path with ; separators, and with drive letters. We can handle the
8846 # drive letters (cygwin fileutils understands them), so leave them,
8847 # especially as we might pass files found there to a mingw objdump,
8848 # which wouldn't understand a cygwinified path. Ahh.
8849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8855 # pw32 DLLs use 'pw' prefix rather than 'lib'
8856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8865 dynamic_linker='Win32 ld.exe'
8866 # FIXME: first we should search . and the directory the executable is in
8870 darwin* | rhapsody*)
8871 dynamic_linker="$host_os dyld"
8875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8876 soname_spec='${libname}${release}${major}$shared_ext'
8877 shlibpath_overrides_runpath=yes
8878 shlibpath_var=DYLD_LIBRARY_PATH
8879 shrext_cmds='.dylib'
8880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8881 if test "$GCC" = yes; then
8882 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"`
8884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 shlibpath_var=LD_LIBRARY_PATH
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 shlibpath_var=LD_LIBRARY_PATH
8909 shlibpath_overrides_runpath=no
8910 hardcode_into_libs=yes
8911 dynamic_linker='GNU ld.so'
8914 freebsd* | dragonfly*)
8915 # DragonFly does not have aout. When/if they implement a new
8916 # versioning mechanism, adjust this.
8917 if test -x /usr/bin/objformat; then
8918 objformat=`/usr/bin/objformat`
8921 freebsd[123]*) objformat=aout ;;
8925 version_type=freebsd-$objformat
8926 case $version_type in
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8937 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=yes
8942 freebsd3.[01]* | freebsdelf3.[01]*)
8943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8951 freebsd*) # from 4.6 on
8952 shlibpath_overrides_runpath=yes
8953 hardcode_into_libs=yes
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 hardcode_into_libs=yes
8968 hpux9* | hpux10* | hpux11*)
8969 # Give a soname corresponding to the major version so that dld.sl refuses to
8970 # link against other versions.
8977 hardcode_into_libs=yes
8978 dynamic_linker="$host_os dld.so"
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 if test "X$HPUX_IA64_MODE" = X32; then
8984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8992 hardcode_into_libs=yes
8993 dynamic_linker="$host_os dld.sl"
8994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003 dynamic_linker="$host_os dld.sl"
9004 shlibpath_var=SHLIB_PATH
9005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9011 postinstall_cmds='chmod 555 $lib'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 hardcode_into_libs=yes
9026 irix5* | irix6* | nonstopux*)
9028 nonstopux*) version_type=nonstopux ;;
9030 if test "$lt_cv_prog_gnu_ld" = yes; then
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9041 irix5* | nonstopux*)
9045 case $LD in # libtool.m4 will add one of these switches to LD
9046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9047 libsuff= shlibsuff= libmagic=32-bit;;
9048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9049 libsuff=32 shlibsuff=N32 libmagic=N32;;
9050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9052 *) libsuff= shlibsuff= libmagic=never-match;;
9056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9057 shlibpath_overrides_runpath=no
9058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9060 hardcode_into_libs=yes
9063 # No shared lib support for Linux oldld, aout, or coff.
9064 linux*oldld* | linux*aout* | linux*coff*)
9068 # This must be Linux ELF.
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=no
9078 # This implies no fast_install, which is unacceptable.
9079 # Some rework will be needed to allow for fast_install
9080 # before this can be enabled.
9081 hardcode_into_libs=yes
9083 # Append ld.so.conf contents to the search path
9084 if test -f /etc/ld.so.conf; then
9085 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' ' '`
9086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9089 # We used to test for /lib/ld.so.1 and disable shared libraries on
9090 # powerpc, because MkLinux only supported shared libraries with the
9091 # GNU dynamic linker. Since this was broken with cross compilers,
9092 # most powerpc-linux boxes support dynamic linking these days and
9093 # people can always --disable-shared, the test was removed, and we
9094 # assume the GNU/Linux dynamic linker is in use.
9095 dynamic_linker='GNU/Linux ld.so'
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=no
9106 hardcode_into_libs=yes
9107 dynamic_linker='GNU ld.so'
9114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9117 dynamic_linker='NetBSD (a.out) ld.so'
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 dynamic_linker='NetBSD ld.elf_so'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes
9125 hardcode_into_libs=yes
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=yes
9147 sys_lib_dlsearch_path_spec="/usr/lib"
9149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9152 *) need_version=no ;;
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9159 openbsd2.[89] | openbsd2.[89].*)
9160 shlibpath_overrides_runpath=no
9163 shlibpath_overrides_runpath=yes
9167 shlibpath_overrides_runpath=yes
9172 libname_spec='$name'
9175 library_names_spec='$libname${shared_ext} $libname.a'
9176 dynamic_linker='OS/2 ld.exe'
9177 shlibpath_var=LIBPATH
9180 osf3* | osf4* | osf5*)
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9200 # ldd complains unless libraries are executable
9201 postinstall_cmds='chmod +x $lib'
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9210 if test "$with_gnu_ld" = yes; then
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 case $host_vendor in
9223 shlibpath_overrides_runpath=no
9225 export_dynamic_flag_spec='${wl}-Blargedynsym'
9226 runpath_var=LD_RUN_PATH
9234 shlibpath_overrides_runpath=no
9235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9241 if test -d /usr/nec ;then
9243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9244 soname_spec='$libname${shared_ext}.$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9250 version_type=freebsd-elf
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 hardcode_into_libs=yes
9257 if test "$with_gnu_ld" = yes; then
9258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9259 shlibpath_overrides_runpath=no
9261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9262 shlibpath_overrides_runpath=yes
9265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9269 sys_lib_dlsearch_path_spec='/usr/lib'
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9284 echo "${ECHO_T}$dynamic_linker" >&6; }
9285 test "$dynamic_linker" = no && can_build_shared=no
9287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9288 if test "$GCC" = yes; then
9289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9293 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9294 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9295 if test "${libltdl_cv_shlibext+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 eval libltdl_cv_shlibext=$shrext_cmds
9303 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9304 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9305 if test -n "$libltdl_cv_shlibext"; then
9307 cat >>confdefs.h <<_ACEOF
9308 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9314 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9315 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9316 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 libltdl_cv_shlibpath_var="$shlibpath_var"
9321 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9322 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9323 if test -n "$libltdl_cv_shlibpath_var"; then
9325 cat >>confdefs.h <<_ACEOF
9326 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9332 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9333 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9334 if test "${libltdl_cv_sys_search_path+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9339 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9340 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9341 if test -n "$libltdl_cv_sys_search_path"; then
9343 for dir in $libltdl_cv_sys_search_path; do
9344 if test -z "$sys_search_path"; then
9345 sys_search_path="$dir"
9347 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9351 cat >>confdefs.h <<_ACEOF
9352 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9357 { echo "$as_me:$LINENO: checking for objdir" >&5
9358 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9359 if test "${libltdl_cv_objdir+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 libltdl_cv_objdir="$objdir"
9363 if test -n "$objdir"; then
9366 rm -f .libs 2>/dev/null
9367 mkdir .libs 2>/dev/null
9368 if test -d .libs; then
9369 libltdl_cv_objdir=.libs
9371 # MS-DOS does not allow filenames that begin with a dot.
9372 libltdl_cv_objdir=_libs
9374 rmdir .libs 2>/dev/null
9378 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9379 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9381 cat >>confdefs.h <<_ACEOF
9382 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9390 # Check for command to grab the raw symbol name followed by C symbol from nm.
9391 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 # These are sane defaults that work on at least a few old systems.
9398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9400 # Character class describing NM global symbol codes.
9401 symcode='[BCDEGRST]'
9403 # Regexp to match symbols that can be accessed directly from C.
9404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9406 # Transform an extracted symbol line into a proper C declaration
9407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9409 # Transform an extracted symbol line into symbol name and symbol address
9410 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'"
9412 # Define system-specific variables.
9417 cygwin* | mingw* | pw32*)
9418 symcode='[ABCDGISTW]'
9420 hpux*) # Its linker distinguishes data from code symbols
9421 if test "$host_cpu" = ia64; then
9422 symcode='[ABCDEGRST]'
9424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9425 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'"
9428 if test "$host_cpu" = ia64; then
9429 symcode='[ABCDGIRSTW]'
9430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9431 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'"
9435 symcode='[BCDEGRST]'
9438 symcode='[BCDEGQRST]'
9449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9457 # Handle CRLF in mingw tool chain
9461 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9465 # If we're using GNU nm, then use its standard symbol codes.
9466 case `$NM -V 2>&1` in
9467 *GNU* | *'with BFD'*)
9468 symcode='[ABCDGIRSTW]' ;;
9471 # Try without a prefix undercore, then with it.
9472 for ac_symprfx in "" "_"; do
9474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9475 symxfrm="\\1 $ac_symprfx\\2 \\2"
9477 # Write the raw and C identifiers.
9478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9480 # Check to see that the pipe works correctly.
9484 cat > conftest.$ac_ext <<EOF
9489 void nm_test_func(){}
9493 int main(){nm_test_var='a';nm_test_func();return(0);}
9496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; then
9501 # Now try to grab the symbols.
9503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && test -s "$nlist"; then
9508 # Try sorting and uniquifying the output.
9509 if sort "$nlist" | uniq > "$nlist"T; then
9510 mv -f "$nlist"T "$nlist"
9515 # Make sure that we snagged all the symbols we need.
9516 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9517 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9518 cat <<EOF > conftest.$ac_ext
9524 # Now generate the symbol file.
9525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9527 cat <<EOF >> conftest.$ac_ext
9528 #if defined (__STDC__) && __STDC__
9529 # define lt_ptr_t void *
9531 # define lt_ptr_t char *
9535 /* The mapping between symbol names and symbols. */
9540 lt_preloaded_symbols[] =
9543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9544 cat <<\EOF >> conftest.$ac_ext
9552 # Now try linking the two files.
9553 mv conftest.$ac_objext conftstm.$ac_objext
9554 lt_save_LIBS="$LIBS"
9555 lt_save_CFLAGS="$CFLAGS"
9556 LIBS="conftstm.$ac_objext"
9557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9565 LIBS="$lt_save_LIBS"
9566 CFLAGS="$lt_save_CFLAGS"
9568 echo "cannot find nm_test_func in $nlist" >&5
9571 echo "cannot find nm_test_var in $nlist" >&5
9574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9577 echo "$progname: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9580 rm -f conftest* conftst*
9582 # Do not use the global_symbol_pipe unless it works.
9583 if test "$pipe_works" = yes; then
9586 lt_cv_sys_global_symbol_pipe=
9592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9593 lt_cv_sys_global_symbol_to_cdecl=
9595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9596 { echo "$as_me:$LINENO: result: failed" >&5
9597 echo "${ECHO_T}failed" >&6; }
9599 { echo "$as_me:$LINENO: result: ok" >&5
9600 echo "${ECHO_T}ok" >&6; }
9604 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9605 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9606 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9610 libltdl_cv_preloaded_symbols=yes
9612 libltdl_cv_preloaded_symbols=no
9616 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9617 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9618 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_PRELOADED_SYMBOLS 1
9629 ac_cpp='$CPP $CPPFLAGS'
9630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9635 { echo "$as_me:$LINENO: checking for shl_load" >&5
9636 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9637 if test "${ac_cv_func_shl_load+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9648 #define shl_load innocuous_shl_load
9650 /* System header to define __stub macros and hopefully few prototypes,
9651 which can conflict with char shl_load (); below.
9652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653 <limits.h> exists even on freestanding compilers. */
9656 # include <limits.h>
9658 # include <assert.h>
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9670 /* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673 #if defined __stub_shl_load || defined __stub___shl_load
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9700 { (case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_try") 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_try") 2>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_func_shl_load=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_func_shl_load=no
9727 rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9731 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9732 if test $ac_cv_func_shl_load = yes; then
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_SHL_LOAD 1
9739 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 ac_check_lib_save_LIBS=$LIBS
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9753 /* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_cv_lib_dld_shl_load=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 ac_cv_lib_dld_shl_load=no
9810 rm -f core conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9816 if test $ac_cv_lib_dld_shl_load = yes; then
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_SHL_LOAD 1
9822 LIBADD_DL="$LIBADD_DL -ldld"
9824 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 ac_check_lib_save_LIBS=$LIBS
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_lib_dl_dlopen=yes
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 ac_cv_lib_dl_dlopen=no
9895 rm -f core conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9900 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9901 if test $ac_cv_lib_dl_dlopen = yes; then
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_LIBDL 1
9907 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_LIBDL 1
9965 libltdl_cv_func_dlopen="yes"
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9971 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 ac_check_lib_save_LIBS=$LIBS
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_lib_svld_dlopen=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_lib_svld_dlopen=no
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10045 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10046 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10047 if test $ac_cv_lib_svld_dlopen = yes; then
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_LIBDL 1
10053 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10055 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10056 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 ac_check_lib_save_LIBS=$LIBS
10062 cat >conftest.$ac_ext <<_ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10079 return dld_link ();
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_lib_dld_dld_link=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_lib_dld_dld_link=no
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10132 if test $ac_cv_lib_dld_dld_link = yes; then
10134 cat >>confdefs.h <<\_ACEOF
10138 LIBADD_DL="$LIBADD_DL -ldld"
10140 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10141 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10142 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153 #define _dyld_func_lookup innocuous__dyld_func_lookup
10155 /* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char _dyld_func_lookup (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10161 # include <limits.h>
10163 # include <assert.h>
10166 #undef _dyld_func_lookup
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10174 char _dyld_func_lookup ();
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10185 return _dyld_func_lookup ();
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_cv_func__dyld_func_lookup=yes
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_cv_func__dyld_func_lookup=no
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10235 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10236 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10237 if test $ac_cv_func__dyld_func_lookup = yes; then
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_DYLD 1
10254 rm -f core conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10266 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10268 lt_save_LIBS="$LIBS"
10269 LIBS="$LIBS $LIBADD_DL"
10271 for ac_func in dlerror
10273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10287 #define $ac_func innocuous_$ac_func
10289 /* System header to define __stub macros and hopefully few prototypes,
10290 which can conflict with char $ac_func (); below.
10291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292 <limits.h> exists even on freestanding compilers. */
10295 # include <limits.h>
10297 # include <assert.h>
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined __stub_$ac_func || defined __stub___$ac_func
10319 return $ac_func ();
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339 { (case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_try") 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 eval "$as_ac_var=yes"
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 eval "$as_ac_var=no"
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10369 ac_res=`eval echo '${'$as_ac_var'}'`
10370 { echo "$as_me:$LINENO: result: $ac_res" >&5
10371 echo "${ECHO_T}$ac_res" >&6; }
10372 if test `eval echo '${'$as_ac_var'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10380 LIBS="$lt_save_LIBS"
10383 ac_cpp='$CPP $CPPFLAGS'
10384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10390 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10391 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10392 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 ac_cv_sys_symbol_underscore=no
10396 cat > conftest.$ac_ext <<EOF
10397 void nm_test_func(){}
10398 int main(){nm_test_func;return 0;}
10400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10401 (eval $ac_compile) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; then
10405 # Now try to grab the symbols.
10406 ac_nlist=conftest.nm
10407 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && test -s "$ac_nlist"; then
10412 # See whether the symbols have a leading underscore.
10413 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10414 ac_cv_sys_symbol_underscore=yes
10416 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10419 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10423 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10426 echo "configure: failed program was:" >&5
10432 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10433 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10436 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10437 if test x"$libltdl_cv_func_dlopen" = xyes ||
10438 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10439 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10440 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10441 if test "${libltdl_cv_need_uscore+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 libltdl_cv_need_uscore=unknown
10446 LIBS="$LIBS $LIBADD_DL"
10447 if test "$cross_compiling" = yes; then :
10448 libltdl_cv_need_uscore=cross
10450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10451 lt_status=$lt_dlunknown
10452 cat > conftest.$ac_ext <<EOF
10453 #line 10453 "configure"
10454 #include "confdefs.h"
10463 # define LT_DLGLOBAL RTLD_GLOBAL
10466 # define LT_DLGLOBAL DL_GLOBAL
10468 # define LT_DLGLOBAL 0
10472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10473 find out it does not work in some platform. */
10474 #ifndef LT_DLLAZY_OR_NOW
10476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10479 # define LT_DLLAZY_OR_NOW DL_LAZY
10482 # define LT_DLLAZY_OR_NOW RTLD_NOW
10485 # define LT_DLLAZY_OR_NOW DL_NOW
10487 # define LT_DLLAZY_OR_NOW 0
10495 extern "C" void exit (int);
10498 void fnord() { int i=42;}
10501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10502 int status = $lt_dlunknown;
10506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10507 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10508 /* dlclose (self); */
10516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10517 (eval $ac_link) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10521 (./conftest; exit; ) >&5 2>/dev/null
10523 case x$lt_status in
10524 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10525 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10526 x$lt_dlunknown|x*) ;;
10529 # compilation failed
10538 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10539 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10543 if test x"$libltdl_cv_need_uscore" = xyes; then
10545 cat >>confdefs.h <<\_ACEOF
10546 #define NEED_USCORE 1
10552 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10553 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10554 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 # PORTME does your system automatically load deplibs for dlopen?
10558 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10559 # For now, we just catch OSes we know something about -- in the
10560 # future, we'll try test this programmatically.
10561 libltdl_cv_sys_dlopen_deplibs=unknown
10563 aix3*|aix4.1.*|aix4.2.*)
10564 # Unknown whether this is true for these versions of AIX, but
10565 # we want this `case' here to explicitly catch those versions.
10566 libltdl_cv_sys_dlopen_deplibs=unknown
10569 libltdl_cv_sys_dlopen_deplibs=yes
10572 # Assuming the user has installed a libdl from somewhere, this is true
10573 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10574 libltdl_cv_sys_dlopen_deplibs=yes
10576 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10577 # GNU and its variants, using gnu ld.so (Glibc)
10578 libltdl_cv_sys_dlopen_deplibs=yes
10581 libltdl_cv_sys_dlopen_deplibs=yes
10584 libltdl_cv_sys_dlopen_deplibs=yes
10586 irix[12345]*|irix6.[01]*)
10587 # Catch all versions of IRIX before 6.2, and indicate that we don't
10588 # know how it worked for any of those versions.
10589 libltdl_cv_sys_dlopen_deplibs=unknown
10592 # The case above catches anything before 6.2, and it's known that
10593 # at 6.2 and later dlopen does load deplibs.
10594 libltdl_cv_sys_dlopen_deplibs=yes
10597 libltdl_cv_sys_dlopen_deplibs=yes
10600 libltdl_cv_sys_dlopen_deplibs=yes
10603 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10604 # it did *not* use an RPATH in a shared library to find objects the
10605 # library depends on, so we explictly say `no'.
10606 libltdl_cv_sys_dlopen_deplibs=no
10608 osf5.0|osf5.0a|osf5.1)
10609 # dlopen *does* load deplibs and with the right loader patch applied
10610 # it even uses RPATH in a shared library to search for shared objects
10611 # that the library depends on, but there's no easy way to know if that
10612 # patch is installed. Since this is the case, all we can really
10613 # say is unknown -- it depends on the patch being installed. If
10614 # it is, this changes to `yes'. Without it, it would be `no'.
10615 libltdl_cv_sys_dlopen_deplibs=unknown
10618 # the two cases above should catch all versions of osf <= 5.1. Read
10619 # the comments above for what we know about them.
10620 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10621 # is used to find them so we can finally say `yes'.
10622 libltdl_cv_sys_dlopen_deplibs=yes
10625 libltdl_cv_sys_dlopen_deplibs=yes
10627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10634 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10635 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10637 cat >>confdefs.h <<\_ACEOF
10638 #define LTDL_DLOPEN_DEPLIBS 1
10644 for ac_header in argz.h
10646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 ac_res=`eval echo '${'$as_ac_Header'}'`
10654 { echo "$as_me:$LINENO: result: $ac_res" >&5
10655 echo "${ECHO_T}$ac_res" >&6; }
10657 # Is the header compilable?
10658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10660 cat >conftest.$ac_ext <<_ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 $ac_includes_default
10667 #include <$ac_header>
10669 rm -f conftest.$ac_objext
10670 if { (ac_try="$ac_compile"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_compile") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_header_compiler=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_header_compiler=no
10711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10713 echo "${ECHO_T}$ac_header_compiler" >&6; }
10715 # Is the header present?
10716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10718 cat >conftest.$ac_ext <<_ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 #include <$ac_header>
10726 if { (ac_try="$ac_cpp conftest.$ac_ext"
10727 case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10734 grep -v '^ *+' conftest.er1 >conftest.err
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } >/dev/null; then
10739 if test -s conftest.err; then
10740 ac_cpp_err=$ac_c_preproc_warn_flag
10741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10748 if test -z "$ac_cpp_err"; then
10749 ac_header_preproc=yes
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ac_header_preproc=no
10757 rm -f conftest.err conftest.$ac_ext
10758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10759 echo "${ECHO_T}$ac_header_preproc" >&6; }
10761 # So? What about this header?
10762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10768 ac_header_preproc=yes
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10784 ## ----------------------------------- ##
10785 ## Report this to llvmbugs@cs.uiuc.edu ##
10786 ## ----------------------------------- ##
10788 ) | sed "s/^/$as_me: WARNING: /" >&2
10791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 eval "$as_ac_Header=\$ac_header_preproc"
10798 ac_res=`eval echo '${'$as_ac_Header'}'`
10799 { echo "$as_me:$LINENO: result: $ac_res" >&5
10800 echo "${ECHO_T}$ac_res" >&6; }
10803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10813 { echo "$as_me:$LINENO: checking for error_t" >&5
10814 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10815 if test "${ac_cv_type_error_t+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10828 typedef error_t ac__type_new_;
10832 if ((ac__type_new_ *) 0)
10834 if (sizeof (ac__type_new_))
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest.$ac_objext'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_type_error_t=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_cv_type_error_t=no
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10885 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10886 if test $ac_cv_type_error_t = yes; then
10888 cat >>confdefs.h <<_ACEOF
10889 #define HAVE_ERROR_T 1
10895 cat >>confdefs.h <<\_ACEOF
10896 #define error_t int
10907 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 cat >conftest.$ac_ext <<_ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10923 #define $ac_func innocuous_$ac_func
10925 /* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char $ac_func (); below.
10927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928 <limits.h> exists even on freestanding compilers. */
10931 # include <limits.h>
10933 # include <assert.h>
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10945 /* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
10948 #if defined __stub_$ac_func || defined __stub___$ac_func
10955 return $ac_func ();
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_link") 2>conftest.er1
10969 grep -v '^ *+' conftest.er1 >conftest.err
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10984 { ac_try='test -s conftest$ac_exeext'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 eval "$as_ac_var=yes"
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 eval "$as_ac_var=no"
11002 rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11005 ac_res=`eval echo '${'$as_ac_var'}'`
11006 { echo "$as_me:$LINENO: result: $ac_res" >&5
11007 echo "${ECHO_T}$ac_res" >&6; }
11008 if test `eval echo '${'$as_ac_var'}'` = yes; then
11009 cat >>confdefs.h <<_ACEOF
11010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11043 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 ac_res=`eval echo '${'$as_ac_Header'}'`
11054 { echo "$as_me:$LINENO: result: $ac_res" >&5
11055 echo "${ECHO_T}$ac_res" >&6; }
11057 # Is the header compilable?
11058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11060 cat >conftest.$ac_ext <<_ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 $ac_includes_default
11067 #include <$ac_header>
11069 rm -f conftest.$ac_objext
11070 if { (ac_try="$ac_compile"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_compile") 2>conftest.er1
11078 grep -v '^ *+' conftest.er1 >conftest.err
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11084 { (case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_try") 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_try") 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 ac_header_compiler=yes
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_header_compiler=no
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11113 echo "${ECHO_T}$ac_header_compiler" >&6; }
11115 # Is the header present?
11116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <$ac_header>
11126 if { (ac_try="$ac_cpp conftest.$ac_ext"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } >/dev/null; then
11139 if test -s conftest.err; then
11140 ac_cpp_err=$ac_c_preproc_warn_flag
11141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11148 if test -z "$ac_cpp_err"; then
11149 ac_header_preproc=yes
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11154 ac_header_preproc=no
11157 rm -f conftest.err conftest.$ac_ext
11158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11159 echo "${ECHO_T}$ac_header_preproc" >&6; }
11161 # So? What about this header?
11162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11168 ac_header_preproc=yes
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11184 ## ----------------------------------- ##
11185 ## Report this to llvmbugs@cs.uiuc.edu ##
11186 ## ----------------------------------- ##
11188 ) | sed "s/^/$as_me: WARNING: /" >&2
11191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 eval "$as_ac_Header=\$ac_header_preproc"
11198 ac_res=`eval echo '${'$as_ac_Header'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200 echo "${ECHO_T}$ac_res" >&6; }
11203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11204 cat >>confdefs.h <<_ACEOF
11205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11216 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result: $ac_res" >&5
11227 echo "${ECHO_T}$ac_res" >&6; }
11229 # Is the header compilable?
11230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 $ac_includes_default
11239 #include <$ac_header>
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_compile") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256 { (case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_try") 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_header_compiler=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_header_compiler=no
11283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11285 echo "${ECHO_T}$ac_header_compiler" >&6; }
11287 # Is the header present?
11288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 #include <$ac_header>
11298 if { (ac_try="$ac_cpp conftest.$ac_ext"
11299 case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } >/dev/null; then
11311 if test -s conftest.err; then
11312 ac_cpp_err=$ac_c_preproc_warn_flag
11313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11320 if test -z "$ac_cpp_err"; then
11321 ac_header_preproc=yes
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 ac_header_preproc=no
11329 rm -f conftest.err conftest.$ac_ext
11330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11331 echo "${ECHO_T}$ac_header_preproc" >&6; }
11333 # So? What about this header?
11334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11340 ac_header_preproc=yes
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11356 ## ----------------------------------- ##
11357 ## Report this to llvmbugs@cs.uiuc.edu ##
11358 ## ----------------------------------- ##
11360 ) | sed "s/^/$as_me: WARNING: /" >&2
11363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 eval "$as_ac_Header=\$ac_header_preproc"
11370 ac_res=`eval echo '${'$as_ac_Header'}'`
11371 { echo "$as_me:$LINENO: result: $ac_res" >&5
11372 echo "${ECHO_T}$ac_res" >&6; }
11375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 for ac_header in string.h strings.h
11388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 ac_res=`eval echo '${'$as_ac_Header'}'`
11396 { echo "$as_me:$LINENO: result: $ac_res" >&5
11397 echo "${ECHO_T}$ac_res" >&6; }
11399 # Is the header compilable?
11400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 $ac_includes_default
11409 #include <$ac_header>
11411 rm -f conftest.$ac_objext
11412 if { (ac_try="$ac_compile"
11413 case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_compile") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11426 { (case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_try") 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; } &&
11435 { ac_try='test -s conftest.$ac_objext'
11436 { (case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_try") 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_header_compiler=yes
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_header_compiler=no
11453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11455 echo "${ECHO_T}$ac_header_compiler" >&6; }
11457 # Is the header present?
11458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 #include <$ac_header>
11468 if { (ac_try="$ac_cpp conftest.$ac_ext"
11469 case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11476 grep -v '^ *+' conftest.er1 >conftest.err
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } >/dev/null; then
11481 if test -s conftest.err; then
11482 ac_cpp_err=$ac_c_preproc_warn_flag
11483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11490 if test -z "$ac_cpp_err"; then
11491 ac_header_preproc=yes
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 ac_header_preproc=no
11499 rm -f conftest.err conftest.$ac_ext
11500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11501 echo "${ECHO_T}$ac_header_preproc" >&6; }
11503 # So? What about this header?
11504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11510 ac_header_preproc=yes
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11526 ## ----------------------------------- ##
11527 ## Report this to llvmbugs@cs.uiuc.edu ##
11528 ## ----------------------------------- ##
11530 ) | sed "s/^/$as_me: WARNING: /" >&2
11533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 eval "$as_ac_Header=\$ac_header_preproc"
11540 ac_res=`eval echo '${'$as_ac_Header'}'`
11541 { echo "$as_me:$LINENO: result: $ac_res" >&5
11542 echo "${ECHO_T}$ac_res" >&6; }
11545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11546 cat >>confdefs.h <<_ACEOF
11547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11557 for ac_func in strchr index
11559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11573 #define $ac_func innocuous_$ac_func
11575 /* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char $ac_func (); below.
11577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578 <limits.h> exists even on freestanding compilers. */
11581 # include <limits.h>
11583 # include <assert.h>
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined __stub_$ac_func || defined __stub___$ac_func
11605 return $ac_func ();
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (ac_try="$ac_link"
11612 case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_link") 2>conftest.er1
11619 grep -v '^ *+' conftest.er1 >conftest.err
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest$ac_exeext'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 eval "$as_ac_var=yes"
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 eval "$as_ac_var=no"
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11655 ac_res=`eval echo '${'$as_ac_var'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11658 if test `eval echo '${'$as_ac_var'}'` = yes; then
11659 cat >>confdefs.h <<_ACEOF
11660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668 for ac_func in strrchr rindex
11670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 cat >conftest.$ac_ext <<_ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684 #define $ac_func innocuous_$ac_func
11686 /* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11692 # include <limits.h>
11694 # include <assert.h>
11699 /* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
11706 /* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
11709 #if defined __stub_$ac_func || defined __stub___$ac_func
11716 return $ac_func ();
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_link") 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11736 { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_try") 2>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 eval "$as_ac_var=yes"
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 eval "$as_ac_var=no"
11763 rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11766 ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11779 for ac_func in memcpy bcopy
11781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 cat >conftest.$ac_ext <<_ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11795 #define $ac_func innocuous_$ac_func
11797 /* System header to define __stub macros and hopefully few prototypes,
11798 which can conflict with char $ac_func (); below.
11799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800 <limits.h> exists even on freestanding compilers. */
11803 # include <limits.h>
11805 # include <assert.h>
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11817 /* The GNU C library defines this for functions which it implements
11818 to always fail with ENOSYS. Some functions are actually named
11819 something starting with __ and the normal name is an alias. */
11820 #if defined __stub_$ac_func || defined __stub___$ac_func
11827 return $ac_func ();
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (ac_try="$ac_link"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_link") 2>conftest.er1
11841 grep -v '^ *+' conftest.er1 >conftest.err
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11847 { (case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_try") 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 eval "$as_ac_var=yes"
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 eval "$as_ac_var=no"
11874 rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11877 ac_res=`eval echo '${'$as_ac_var'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879 echo "${ECHO_T}$ac_res" >&6; }
11880 if test `eval echo '${'$as_ac_var'}'` = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11890 for ac_func in memmove strcmp
11892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906 #define $ac_func innocuous_$ac_func
11908 /* System header to define __stub macros and hopefully few prototypes,
11909 which can conflict with char $ac_func (); below.
11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 <limits.h> exists even on freestanding compilers. */
11914 # include <limits.h>
11916 # include <assert.h>
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined __stub_$ac_func || defined __stub___$ac_func
11938 return $ac_func ();
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 eval "$as_ac_var=yes"
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 eval "$as_ac_var=no"
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11988 ac_res=`eval echo '${'$as_ac_var'}'`
11989 { echo "$as_me:$LINENO: result: $ac_res" >&5
11990 echo "${ECHO_T}$ac_res" >&6; }
11991 if test `eval echo '${'$as_ac_var'}'` = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002 for ac_func in closedir opendir readdir
12004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12018 #define $ac_func innocuous_$ac_func
12020 /* System header to define __stub macros and hopefully few prototypes,
12021 which can conflict with char $ac_func (); below.
12022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023 <limits.h> exists even on freestanding compilers. */
12026 # include <limits.h>
12028 # include <assert.h>
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12040 /* The GNU C library defines this for functions which it implements
12041 to always fail with ENOSYS. Some functions are actually named
12042 something starting with __ and the normal name is an alias. */
12043 #if defined __stub_$ac_func || defined __stub___$ac_func
12050 return $ac_func ();
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (ac_try="$ac_link"
12057 case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_link") 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12070 { (case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_try") 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; } &&
12079 { ac_try='test -s conftest$ac_exeext'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 eval "$as_ac_var=yes"
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 eval "$as_ac_var=no"
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12100 ac_res=`eval echo '${'$as_ac_var'}'`
12101 { echo "$as_me:$LINENO: result: $ac_res" >&5
12102 echo "${ECHO_T}$ac_res" >&6; }
12103 if test `eval echo '${'$as_ac_var'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12112 # Check whether --enable-shared was given.
12113 if test "${enable_shared+set}" = set; then
12114 enableval=$enable_shared; p=${PACKAGE-default}
12116 yes) enable_shared=yes ;;
12117 no) enable_shared=no ;;
12120 # Look at the argument we got. We use all the common list separators.
12121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12122 for pkg in $enableval; do
12124 if test "X$pkg" = "X$p"; then
12136 # Check whether --enable-static was given.
12137 if test "${enable_static+set}" = set; then
12138 enableval=$enable_static; p=${PACKAGE-default}
12140 yes) enable_static=yes ;;
12141 no) enable_static=no ;;
12144 # Look at the argument we got. We use all the common list separators.
12145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12146 for pkg in $enableval; do
12148 if test "X$pkg" = "X$p"; then
12160 # Check whether --enable-fast-install was given.
12161 if test "${enable_fast_install+set}" = set; then
12162 enableval=$enable_fast_install; p=${PACKAGE-default}
12164 yes) enable_fast_install=yes ;;
12165 no) enable_fast_install=no ;;
12167 enable_fast_install=no
12168 # Look at the argument we got. We use all the common list separators.
12169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12170 for pkg in $enableval; do
12172 if test "X$pkg" = "X$p"; then
12173 enable_fast_install=yes
12180 enable_fast_install=yes
12184 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12185 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12186 if test "${lt_cv_path_SED+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 # Loop through the user's path and test for sed and gsed.
12190 # Then use that list of sed's as ones to test for truncation.
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12195 test -z "$as_dir" && as_dir=.
12196 for lt_ac_prog in sed gsed; do
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12199 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12206 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12207 # along with /bin/sed that truncates output.
12208 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12209 test ! -f $lt_ac_sed && continue
12210 cat /dev/null > conftest.in
12212 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12213 # Check for GNU sed and select it if it is found.
12214 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12215 lt_cv_path_SED=$lt_ac_sed
12219 cat conftest.in conftest.in >conftest.tmp
12220 mv conftest.tmp conftest.in
12221 cp conftest.in conftest.nl
12223 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12224 cmp -s conftest.out conftest.nl || break
12225 # 10000 chars as input seems more than enough
12226 test $lt_ac_count -gt 10 && break
12227 lt_ac_count=`expr $lt_ac_count + 1`
12228 if test $lt_ac_count -gt $lt_ac_max; then
12229 lt_ac_max=$lt_ac_count
12230 lt_cv_path_SED=$lt_ac_sed
12237 SED=$lt_cv_path_SED
12238 { echo "$as_me:$LINENO: result: $SED" >&5
12239 echo "${ECHO_T}$SED" >&6; }
12242 # Check whether --with-gnu-ld was given.
12243 if test "${with_gnu_ld+set}" = set; then
12244 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12250 if test "$GCC" = yes; then
12251 # Check if gcc -print-prog-name=ld gives a path.
12252 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12253 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12256 # gcc leaves a trailing carriage return which upsets mingw
12257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12262 # Accept absolute paths.
12264 re_direlt='/[^/][^/]*/\.\./'
12265 # Canonicalize the pathname of ld
12266 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12267 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12268 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12270 test -z "$LD" && LD="$ac_prog"
12273 # If it fails, then pretend we aren't using GCC.
12277 # If it is relative, then search for the first ld in PATH.
12278 with_gnu_ld=unknown
12281 elif test "$with_gnu_ld" = yes; then
12282 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12283 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12285 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12286 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12288 if test "${lt_cv_path_LD+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 if test -z "$LD"; then
12292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12293 for ac_dir in $PATH; do
12295 test -z "$ac_dir" && ac_dir=.
12296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12297 lt_cv_path_LD="$ac_dir/$ac_prog"
12298 # Check to see if the program is GNU ld. I'd rather use --version,
12299 # but apparently some variants of GNU ld only accept -v.
12300 # Break only if it was the GNU/non-GNU ld that we prefer.
12301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12302 *GNU* | *'with BFD'*)
12303 test "$with_gnu_ld" != no && break
12306 test "$with_gnu_ld" != yes && break
12313 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12317 LD="$lt_cv_path_LD"
12318 if test -n "$LD"; then
12319 { echo "$as_me:$LINENO: result: $LD" >&5
12320 echo "${ECHO_T}$LD" >&6; }
12322 { echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6; }
12325 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12326 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12327 { (exit 1); exit 1; }; }
12328 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12329 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12330 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12334 case `$LD -v 2>&1 </dev/null` in
12335 *GNU* | *'with BFD'*)
12336 lt_cv_prog_gnu_ld=yes
12339 lt_cv_prog_gnu_ld=no
12343 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12344 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12345 with_gnu_ld=$lt_cv_prog_gnu_ld
12348 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12349 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12350 if test "${lt_cv_ld_reload_flag+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 lt_cv_ld_reload_flag='-r'
12355 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12356 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12357 reload_flag=$lt_cv_ld_reload_flag
12358 case $reload_flag in
12360 *) reload_flag=" $reload_flag" ;;
12362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12365 if test "$GCC" = yes; then
12366 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12373 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12374 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12375 if test "${lt_cv_deplibs_check_method+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 lt_cv_file_magic_cmd='$MAGIC_CMD'
12379 lt_cv_file_magic_test_file=
12380 lt_cv_deplibs_check_method='unknown'
12381 # Need to set the preceding variable on all platforms that support
12382 # interlibrary dependencies.
12383 # 'none' -- dependencies not supported.
12384 # `unknown' -- same as none, but documents that we really don't know.
12385 # 'pass_all' -- all dependencies passed with no checks.
12386 # 'test_compile' -- check by making test program.
12387 # 'file_magic [[regex]]' -- check by looking for files in library path
12388 # which responds to the $file_magic_cmd with a given extended regex.
12389 # If you have `file' or equivalent on your system and you're not sure
12390 # whether `pass_all' will *always* work, you probably want this one.
12394 lt_cv_deplibs_check_method=pass_all
12398 lt_cv_deplibs_check_method=pass_all
12402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12403 lt_cv_file_magic_cmd='/usr/bin/file -L'
12404 lt_cv_file_magic_test_file=/shlib/libc.so
12408 # func_win32_libid is a shell function defined in ltmain.sh
12409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12410 lt_cv_file_magic_cmd='func_win32_libid'
12414 # Base MSYS/MinGW do not provide the 'file' command needed by
12415 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12416 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12417 lt_cv_file_magic_cmd='$OBJDUMP -f'
12420 darwin* | rhapsody*)
12421 lt_cv_deplibs_check_method=pass_all
12424 freebsd* | kfreebsd*-gnu | dragonfly*)
12425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12428 # Not sure whether the presence of OpenBSD here was a mistake.
12429 # Let's accept both of them until this is cleared up.
12430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12431 lt_cv_file_magic_cmd=/usr/bin/file
12432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12436 lt_cv_deplibs_check_method=pass_all
12441 lt_cv_deplibs_check_method=pass_all
12444 hpux10.20* | hpux11*)
12445 lt_cv_file_magic_cmd=/usr/bin/file
12448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12449 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12452 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]'
12453 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12457 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12463 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12467 irix5* | irix6* | nonstopux*)
12469 *-32|*"-32 ") libmagic=32-bit;;
12470 *-n32|*"-n32 ") libmagic=N32;;
12471 *-64|*"-64 ") libmagic=64-bit;;
12472 *) libmagic=never-match;;
12474 lt_cv_deplibs_check_method=pass_all
12477 # This must be Linux ELF.
12479 lt_cv_deplibs_check_method=pass_all
12483 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12492 lt_cv_file_magic_cmd=/usr/bin/file
12493 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12497 lt_cv_deplibs_check_method=unknown
12501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12508 osf3* | osf4* | osf5*)
12509 lt_cv_deplibs_check_method=pass_all
12513 lt_cv_deplibs_check_method=pass_all
12517 case $host_vendor in
12519 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]'
12520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12523 lt_cv_deplibs_check_method=pass_all
12526 lt_cv_file_magic_cmd='/bin/file'
12527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12530 lt_cv_file_magic_cmd='/bin/file'
12531 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12532 lt_cv_file_magic_test_file=/lib/libc.so
12535 lt_cv_deplibs_check_method=pass_all
12538 lt_cv_deplibs_check_method=pass_all
12543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12544 lt_cv_deplibs_check_method=pass_all
12549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12551 file_magic_cmd=$lt_cv_file_magic_cmd
12552 deplibs_check_method=$lt_cv_deplibs_check_method
12553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12557 # If no C compiler was specified, use CC.
12560 # If no C compiler flags were specified, use CFLAGS.
12561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12563 # Allow CC to be a program name with arguments.
12566 # Check whether --enable-libtool-lock was given.
12567 if test "${enable_libtool_lock+set}" = set; then
12568 enableval=$enable_libtool_lock;
12571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12573 # Some flags need to be propagated to the compiler or linker for good
12577 # Find out which ABI we are using.
12578 echo 'int i;' > conftest.$ac_ext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; then
12584 case `/usr/bin/file conftest.$ac_objext` in
12586 HPUX_IA64_MODE="32"
12589 HPUX_IA64_MODE="64"
12596 # Find out which ABI we are using.
12597 echo '#line 12597 "configure"' > conftest.$ac_ext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; then
12603 if test "$lt_cv_prog_gnu_ld" = yes; then
12604 case `/usr/bin/file conftest.$ac_objext` in
12606 LD="${LD-ld} -melf32bsmip"
12609 LD="${LD-ld} -melf32bmipn32"
12612 LD="${LD-ld} -melf64bmip"
12616 case `/usr/bin/file conftest.$ac_objext` in
12632 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12633 # Find out which ABI we are using.
12634 echo 'int i;' > conftest.$ac_ext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; then
12640 case `/usr/bin/file conftest.o` in
12644 LD="${LD-ld} -m elf_i386"
12646 ppc64-*linux*|powerpc64-*linux*)
12647 LD="${LD-ld} -m elf32ppclinux"
12650 LD="${LD-ld} -m elf_s390"
12653 LD="${LD-ld} -m elf32_sparc"
12660 LD="${LD-ld} -m elf_x86_64"
12662 ppc*-*linux*|powerpc*-*linux*)
12663 LD="${LD-ld} -m elf64ppc"
12666 LD="${LD-ld} -m elf64_s390"
12669 LD="${LD-ld} -m elf64_sparc"
12679 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12680 SAVE_CFLAGS="$CFLAGS"
12681 CFLAGS="$CFLAGS -belf"
12682 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12683 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12684 if test "${lt_cv_cc_needs_belf+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12708 rm -f conftest.$ac_objext conftest$ac_exeext
12709 if { (ac_try="$ac_link"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_link") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try='test -s conftest$ac_exeext'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 lt_cv_cc_needs_belf=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 lt_cv_cc_needs_belf=no
12750 rm -f core conftest.err conftest.$ac_objext \
12751 conftest$ac_exeext conftest.$ac_ext
12753 ac_cpp='$CPP $CPPFLAGS'
12754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12759 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12760 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12763 CFLAGS="$SAVE_CFLAGS"
12767 # Find out which ABI we are using.
12768 echo 'int i;' > conftest.$ac_ext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; then
12774 case `/usr/bin/file conftest.o` in
12776 case $lt_cv_prog_gnu_ld in
12777 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12778 *) LD="${LD-ld} -64" ;;
12789 need_locks="$enable_libtool_lock"
12794 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12795 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12796 (test "X$CXX" != "Xg++"))) ; then
12798 ac_cpp='$CXXCPP $CPPFLAGS'
12799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12802 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12803 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12804 if test -z "$CXXCPP"; then
12805 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 # Double quotes because CXXCPP needs to be expanded
12809 for CXXCPP in "$CXX -E" "/lib/cpp"
12811 ac_preproc_ok=false
12812 for ac_cxx_preproc_warn_flag in '' yes
12814 # Use a header file that comes with gcc, so configuring glibc
12815 # with a fresh cross-compiler works.
12816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12817 # <limits.h> exists even on freestanding compilers.
12818 # On the NeXT, cc -E runs the code through the compiler's parser,
12819 # not just through cpp. "Syntax error" is here to catch this case.
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 # include <limits.h>
12829 # include <assert.h>
12833 if { (ac_try="$ac_cpp conftest.$ac_ext"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } >/dev/null; then
12846 if test -s conftest.err; then
12847 ac_cpp_err=$ac_cxx_preproc_warn_flag
12848 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12855 if test -z "$ac_cpp_err"; then
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 # Broken: fails on valid input.
12865 rm -f conftest.err conftest.$ac_ext
12867 # OK, works on sane cases. Now check whether nonexistent headers
12868 # can be detected and how.
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12875 #include <ac_nonexistent.h>
12877 if { (ac_try="$ac_cpp conftest.$ac_ext"
12878 case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12885 grep -v '^ *+' conftest.er1 >conftest.err
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } >/dev/null; then
12890 if test -s conftest.err; then
12891 ac_cpp_err=$ac_cxx_preproc_warn_flag
12892 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12899 if test -z "$ac_cpp_err"; then
12900 # Broken: success on invalid input.
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 # Passes both tests.
12911 rm -f conftest.err conftest.$ac_ext
12914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12915 rm -f conftest.err conftest.$ac_ext
12916 if $ac_preproc_ok; then
12921 ac_cv_prog_CXXCPP=$CXXCPP
12924 CXXCPP=$ac_cv_prog_CXXCPP
12926 ac_cv_prog_CXXCPP=$CXXCPP
12928 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12929 echo "${ECHO_T}$CXXCPP" >&6; }
12930 ac_preproc_ok=false
12931 for ac_cxx_preproc_warn_flag in '' yes
12933 # Use a header file that comes with gcc, so configuring glibc
12934 # with a fresh cross-compiler works.
12935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936 # <limits.h> exists even on freestanding compilers.
12937 # On the NeXT, cc -E runs the code through the compiler's parser,
12938 # not just through cpp. "Syntax error" is here to catch this case.
12939 cat >conftest.$ac_ext <<_ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12946 # include <limits.h>
12948 # include <assert.h>
12952 if { (ac_try="$ac_cpp conftest.$ac_ext"
12953 case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12960 grep -v '^ *+' conftest.er1 >conftest.err
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } >/dev/null; then
12965 if test -s conftest.err; then
12966 ac_cpp_err=$ac_cxx_preproc_warn_flag
12967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12974 if test -z "$ac_cpp_err"; then
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12980 # Broken: fails on valid input.
12984 rm -f conftest.err conftest.$ac_ext
12986 # OK, works on sane cases. Now check whether nonexistent headers
12987 # can be detected and how.
12988 cat >conftest.$ac_ext <<_ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12994 #include <ac_nonexistent.h>
12996 if { (ac_try="$ac_cpp conftest.$ac_ext"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } >/dev/null; then
13009 if test -s conftest.err; then
13010 ac_cpp_err=$ac_cxx_preproc_warn_flag
13011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13018 if test -z "$ac_cpp_err"; then
13019 # Broken: success on invalid input.
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 # Passes both tests.
13030 rm -f conftest.err conftest.$ac_ext
13033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13034 rm -f conftest.err conftest.$ac_ext
13035 if $ac_preproc_ok; then
13038 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13039 See \`config.log' for more details." >&5
13040 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13041 See \`config.log' for more details." >&2;}
13042 { (exit 1); exit 1; }; }
13046 ac_cpp='$CXXCPP $CPPFLAGS'
13047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13055 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13056 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13058 if test -n "$ac_tool_prefix"; then
13059 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
13061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_prog_F77+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 if test -n "$F77"; then
13069 ac_cv_prog_F77="$F77" # Let the user override the test.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 F77=$ac_cv_prog_F77
13089 if test -n "$F77"; then
13090 { echo "$as_me:$LINENO: result: $F77" >&5
13091 echo "${ECHO_T}$F77" >&6; }
13093 { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13098 test -n "$F77" && break
13101 if test -z "$F77"; then
13103 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
13105 # Extract the first word of "$ac_prog", so it can be a program name with args.
13106 set dummy $ac_prog; ac_word=$2
13107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13109 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 if test -n "$ac_ct_F77"; then
13113 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_prog_ac_ct_F77="$ac_prog"
13123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13133 if test -n "$ac_ct_F77"; then
13134 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13135 echo "${ECHO_T}$ac_ct_F77" >&6; }
13137 { echo "$as_me:$LINENO: result: no" >&5
13138 echo "${ECHO_T}no" >&6; }
13142 test -n "$ac_ct_F77" && break
13145 if test "x$ac_ct_F77" = x; then
13148 case $cross_compiling:$ac_tool_warned in
13150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13151 whose name does not start with the host triplet. If you think this
13152 configuration is useful to you, please write to autoconf@gnu.org." >&5
13153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13154 whose name does not start with the host triplet. If you think this
13155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13156 ac_tool_warned=yes ;;
13163 # Provide some information about the compiler.
13164 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13165 ac_compiler=`set X $ac_compile; echo $2`
13166 { (ac_try="$ac_compiler --version >&5"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_compiler --version >&5") 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }
13176 { (ac_try="$ac_compiler -v >&5"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_compiler -v >&5") 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }
13186 { (ac_try="$ac_compiler -V >&5"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_compiler -V >&5") 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }
13198 # If we don't use `.F' as extension, the preprocessor is not run on the
13199 # input file. (Note that this only needs to work for GNU compilers.)
13200 ac_save_ext=$ac_ext
13202 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13203 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13204 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 cat >conftest.$ac_ext <<_ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (ac_try="$ac_compile"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compile") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_compiler_gnu=yes
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13261 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13262 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13263 ac_ext=$ac_save_ext
13264 ac_test_FFLAGS=${FFLAGS+set}
13265 ac_save_FFLAGS=$FFLAGS
13267 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13268 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13269 if test "${ac_cv_prog_f77_g+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 cat >conftest.$ac_ext <<_ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest.$ac_objext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_prog_f77_g=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_prog_f77_g=no
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13324 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13325 if test "$ac_test_FFLAGS" = set; then
13326 FFLAGS=$ac_save_FFLAGS
13327 elif test $ac_cv_prog_f77_g = yes; then
13328 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13334 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13341 G77=`test $ac_compiler_gnu = yes && echo yes`
13343 ac_cpp='$CPP $CPPFLAGS'
13344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13350 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13352 # find the maximum length of command line arguments
13353 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13354 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13355 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 # On DJGPP, this test can blow up pretty badly due to problems in libc
13364 # (any single argument exceeding 2000 bytes causes a buffer overrun
13365 # during glob expansion). Even if it were fixed, the result of this
13366 # check would be larger than it should be.
13367 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13371 # Under GNU Hurd, this test is not required because there is
13372 # no limit to the length of command line arguments.
13373 # Libtool will interpret -1 as no limit whatsoever
13374 lt_cv_sys_max_cmd_len=-1;
13378 # On Win9x/ME, this test blows up -- it succeeds, but takes
13379 # about 5 minutes as the teststring grows exponentially.
13380 # Worse, since 9x/ME are not pre-emptively multitasking,
13381 # you end up with a "frozen" computer, even though with patience
13382 # the test eventually succeeds (with a max line length of 256k).
13383 # Instead, let's just punt: use the minimum linelength reported by
13384 # all of the supported platforms: 8192 (on NT/2K/XP).
13385 lt_cv_sys_max_cmd_len=8192;
13389 # On AmigaOS with pdksh, this test takes hours, literally.
13390 # So we just punt and use a minimum line length of 8192.
13391 lt_cv_sys_max_cmd_len=8192;
13394 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13395 # This has been around since 386BSD, at least. Likely further.
13396 if test -x /sbin/sysctl; then
13397 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13398 elif test -x /usr/sbin/sysctl; then
13399 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13401 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13403 # And add a safety zone
13404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13409 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13410 lt_cv_sys_max_cmd_len=196608
13414 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13415 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13416 # nice to cause kernel panics so lets avoid the loop below.
13417 # First set a reasonable default.
13418 lt_cv_sys_max_cmd_len=16384
13420 if test -x /sbin/sysconfig; then
13421 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13422 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13427 lt_cv_sys_max_cmd_len=102400
13429 sysv5* | sco5v6* | sysv4.2uw2*)
13430 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13431 if test -n "$kargmax"; then
13432 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13434 lt_cv_sys_max_cmd_len=32768
13438 # If test is not a shell built-in, we'll probably end up computing a
13439 # maximum length that is only half of the actual maximum length, but
13441 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13442 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13443 = "XX$teststring") >/dev/null 2>&1 &&
13444 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13445 lt_cv_sys_max_cmd_len=$new_result &&
13446 test $i != 17 # 1/2 MB should be enough
13449 teststring=$teststring$teststring
13452 # Add a significant safety factor because C++ compilers can tack on massive
13453 # amounts of additional arguments before passing them to the linker.
13454 # It appears as though 1/2 is a usable value.
13455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13461 if test -n $lt_cv_sys_max_cmd_len ; then
13462 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13463 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13465 { echo "$as_me:$LINENO: result: none" >&5
13466 echo "${ECHO_T}none" >&6; }
13472 # Check for command to grab the raw symbol name followed by C symbol from nm.
13473 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13474 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13475 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 # These are sane defaults that work on at least a few old systems.
13480 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13482 # Character class describing NM global symbol codes.
13483 symcode='[BCDEGRST]'
13485 # Regexp to match symbols that can be accessed directly from C.
13486 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13488 # Transform an extracted symbol line into a proper C declaration
13489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13491 # Transform an extracted symbol line into symbol name and symbol address
13492 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'"
13494 # Define system-specific variables.
13499 cygwin* | mingw* | pw32*)
13500 symcode='[ABCDGISTW]'
13502 hpux*) # Its linker distinguishes data from code symbols
13503 if test "$host_cpu" = ia64; then
13504 symcode='[ABCDEGRST]'
13506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13507 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'"
13510 if test "$host_cpu" = ia64; then
13511 symcode='[ABCDGIRSTW]'
13512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13513 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'"
13516 irix* | nonstopux*)
13517 symcode='[BCDEGRST]'
13520 symcode='[BCDEGQRST]'
13531 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13539 # Handle CRLF in mingw tool chain
13543 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13547 # If we're using GNU nm, then use its standard symbol codes.
13548 case `$NM -V 2>&1` in
13549 *GNU* | *'with BFD'*)
13550 symcode='[ABCDGIRSTW]' ;;
13553 # Try without a prefix undercore, then with it.
13554 for ac_symprfx in "" "_"; do
13556 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13557 symxfrm="\\1 $ac_symprfx\\2 \\2"
13559 # Write the raw and C identifiers.
13560 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13562 # Check to see that the pipe works correctly.
13566 cat > conftest.$ac_ext <<EOF
13571 void nm_test_func(){}
13575 int main(){nm_test_var='a';nm_test_func();return(0);}
13578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; then
13583 # Now try to grab the symbols.
13585 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13586 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && test -s "$nlist"; then
13590 # Try sorting and uniquifying the output.
13591 if sort "$nlist" | uniq > "$nlist"T; then
13592 mv -f "$nlist"T "$nlist"
13597 # Make sure that we snagged all the symbols we need.
13598 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13599 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13600 cat <<EOF > conftest.$ac_ext
13606 # Now generate the symbol file.
13607 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13609 cat <<EOF >> conftest.$ac_ext
13610 #if defined (__STDC__) && __STDC__
13611 # define lt_ptr_t void *
13613 # define lt_ptr_t char *
13617 /* The mapping between symbol names and symbols. */
13622 lt_preloaded_symbols[] =
13625 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13626 cat <<\EOF >> conftest.$ac_ext
13634 # Now try linking the two files.
13635 mv conftest.$ac_objext conftstm.$ac_objext
13636 lt_save_LIBS="$LIBS"
13637 lt_save_CFLAGS="$CFLAGS"
13638 LIBS="conftstm.$ac_objext"
13639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13647 LIBS="$lt_save_LIBS"
13648 CFLAGS="$lt_save_CFLAGS"
13650 echo "cannot find nm_test_func in $nlist" >&5
13653 echo "cannot find nm_test_var in $nlist" >&5
13656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13659 echo "$progname: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13662 rm -f conftest* conftst*
13664 # Do not use the global_symbol_pipe unless it works.
13665 if test "$pipe_works" = yes; then
13668 lt_cv_sys_global_symbol_pipe=
13674 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13675 lt_cv_sys_global_symbol_to_cdecl=
13677 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13678 { echo "$as_me:$LINENO: result: failed" >&5
13679 echo "${ECHO_T}failed" >&6; }
13681 { echo "$as_me:$LINENO: result: ok" >&5
13682 echo "${ECHO_T}ok" >&6; }
13685 { echo "$as_me:$LINENO: checking for objdir" >&5
13686 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13687 if test "${lt_cv_objdir+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 rm -f .libs 2>/dev/null
13691 mkdir .libs 2>/dev/null
13692 if test -d .libs; then
13695 # MS-DOS does not allow filenames that begin with a dot.
13698 rmdir .libs 2>/dev/null
13700 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13701 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13702 objdir=$lt_cv_objdir
13710 # AIX sometimes has problems with the GCC collect2 program. For some
13711 # reason, if we set the COLLECT_NAMES environment variable, the problems
13712 # vanish in a puff of smoke.
13713 if test "X${COLLECT_NAMES+set}" != Xset; then
13715 export COLLECT_NAMES
13720 # Sed substitution that helps us do robust quoting. It backslashifies
13721 # metacharacters that are still active within double-quoted strings.
13722 Xsed='sed -e 1s/^X//'
13723 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13725 # Same as above, but do not quote variable references.
13726 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13728 # Sed substitution to delay expansion of an escaped shell variable in a
13729 # double_quote_subst'ed string.
13730 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13732 # Sed substitution to avoid accidental globbing in evaled expressions
13733 no_glob_subst='s/\*/\\\*/g'
13738 # Global variables:
13739 default_ofile=mklib
13740 can_build_shared=yes
13742 # All known linkers require a `.a' archive for static linking (except MSVC,
13743 # which needs '.lib').
13745 ltmain="$ac_aux_dir/ltmain.sh"
13746 ofile="$default_ofile"
13747 with_gnu_ld="$lt_cv_prog_gnu_ld"
13749 if test -n "$ac_tool_prefix"; then
13750 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13751 set dummy ${ac_tool_prefix}ar; ac_word=$2
13752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13754 if test "${ac_cv_prog_AR+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 if test -n "$AR"; then
13758 ac_cv_prog_AR="$AR" # Let the user override the test.
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13767 ac_cv_prog_AR="${ac_tool_prefix}ar"
13768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 if test -n "$AR"; then
13779 { echo "$as_me:$LINENO: result: $AR" >&5
13780 echo "${ECHO_T}$AR" >&6; }
13782 { echo "$as_me:$LINENO: result: no" >&5
13783 echo "${ECHO_T}no" >&6; }
13788 if test -z "$ac_cv_prog_AR"; then
13790 # Extract the first word of "ar", so it can be a program name with args.
13791 set dummy ar; ac_word=$2
13792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13794 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 if test -n "$ac_ct_AR"; then
13798 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
13806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13807 ac_cv_prog_ac_ct_AR="ar"
13808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13817 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13818 if test -n "$ac_ct_AR"; then
13819 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13820 echo "${ECHO_T}$ac_ct_AR" >&6; }
13822 { echo "$as_me:$LINENO: result: no" >&5
13823 echo "${ECHO_T}no" >&6; }
13826 if test "x$ac_ct_AR" = x; then
13829 case $cross_compiling:$ac_tool_warned in
13831 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13832 whose name does not start with the host triplet. If you think this
13833 configuration is useful to you, please write to autoconf@gnu.org." >&5
13834 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13835 whose name does not start with the host triplet. If you think this
13836 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13837 ac_tool_warned=yes ;;
13842 AR="$ac_cv_prog_AR"
13845 if test -n "$ac_tool_prefix"; then
13846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13850 if test "${ac_cv_prog_RANLIB+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 if test -n "$RANLIB"; then
13854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $PATH
13860 test -z "$as_dir" && as_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13873 RANLIB=$ac_cv_prog_RANLIB
13874 if test -n "$RANLIB"; then
13875 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13876 echo "${ECHO_T}$RANLIB" >&6; }
13878 { echo "$as_me:$LINENO: result: no" >&5
13879 echo "${ECHO_T}no" >&6; }
13884 if test -z "$ac_cv_prog_RANLIB"; then
13885 ac_ct_RANLIB=$RANLIB
13886 # Extract the first word of "ranlib", so it can be a program name with args.
13887 set dummy ranlib; ac_word=$2
13888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 if test -n "$ac_ct_RANLIB"; then
13894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897 for as_dir in $PATH
13900 test -z "$as_dir" && as_dir=.
13901 for ac_exec_ext in '' $ac_executable_extensions; do
13902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13903 ac_cv_prog_ac_ct_RANLIB="ranlib"
13904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13914 if test -n "$ac_ct_RANLIB"; then
13915 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13916 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13918 { echo "$as_me:$LINENO: result: no" >&5
13919 echo "${ECHO_T}no" >&6; }
13922 if test "x$ac_ct_RANLIB" = x; then
13925 case $cross_compiling:$ac_tool_warned in
13927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13928 whose name does not start with the host triplet. If you think this
13929 configuration is useful to you, please write to autoconf@gnu.org." >&5
13930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13931 whose name does not start with the host triplet. If you think this
13932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13933 ac_tool_warned=yes ;;
13935 RANLIB=$ac_ct_RANLIB
13938 RANLIB="$ac_cv_prog_RANLIB"
13941 if test -n "$ac_tool_prefix"; then
13942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13943 set dummy ${ac_tool_prefix}strip; ac_word=$2
13944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13946 if test "${ac_cv_prog_STRIP+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 if test -n "$STRIP"; then
13950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13953 for as_dir in $PATH
13956 test -z "$as_dir" && as_dir=.
13957 for ac_exec_ext in '' $ac_executable_extensions; do
13958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13969 STRIP=$ac_cv_prog_STRIP
13970 if test -n "$STRIP"; then
13971 { echo "$as_me:$LINENO: result: $STRIP" >&5
13972 echo "${ECHO_T}$STRIP" >&6; }
13974 { echo "$as_me:$LINENO: result: no" >&5
13975 echo "${ECHO_T}no" >&6; }
13980 if test -z "$ac_cv_prog_STRIP"; then
13982 # Extract the first word of "strip", so it can be a program name with args.
13983 set dummy strip; ac_word=$2
13984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13986 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 if test -n "$ac_ct_STRIP"; then
13990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13993 for as_dir in $PATH
13996 test -z "$as_dir" && as_dir=.
13997 for ac_exec_ext in '' $ac_executable_extensions; do
13998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13999 ac_cv_prog_ac_ct_STRIP="strip"
14000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14010 if test -n "$ac_ct_STRIP"; then
14011 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14012 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14014 { echo "$as_me:$LINENO: result: no" >&5
14015 echo "${ECHO_T}no" >&6; }
14018 if test "x$ac_ct_STRIP" = x; then
14021 case $cross_compiling:$ac_tool_warned in
14023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14024 whose name does not start with the host triplet. If you think this
14025 configuration is useful to you, please write to autoconf@gnu.org." >&5
14026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14027 whose name does not start with the host triplet. If you think this
14028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14029 ac_tool_warned=yes ;;
14034 STRIP="$ac_cv_prog_STRIP"
14039 old_CFLAGS="$CFLAGS"
14041 # Set sane defaults for various variables
14042 test -z "$AR" && AR=ar
14043 test -z "$AR_FLAGS" && AR_FLAGS=cru
14044 test -z "$AS" && AS=as
14045 test -z "$CC" && CC=cc
14046 test -z "$LTCC" && LTCC=$CC
14047 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14048 test -z "$DLLTOOL" && DLLTOOL=dlltool
14049 test -z "$LD" && LD=ld
14050 test -z "$LN_S" && LN_S="ln -s"
14051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14052 test -z "$NM" && NM=nm
14053 test -z "$SED" && SED=sed
14054 test -z "$OBJDUMP" && OBJDUMP=objdump
14055 test -z "$RANLIB" && RANLIB=:
14056 test -z "$STRIP" && STRIP=:
14057 test -z "$ac_objext" && ac_objext=o
14059 # Determine commands to create old-style static archives.
14060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14061 old_postinstall_cmds='chmod 644 $oldlib'
14062 old_postuninstall_cmds=
14064 if test -n "$RANLIB"; then
14067 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14073 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14076 for cc_temp in $compiler""; do
14078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14087 # Only perform the check for file, if the check method requires it
14088 case $deplibs_check_method in
14090 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14091 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14092 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14101 lt_save_MAGIC_CMD="$MAGIC_CMD"
14102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14104 for ac_dir in $ac_dummy; do
14106 test -z "$ac_dir" && ac_dir=.
14107 if test -f $ac_dir/${ac_tool_prefix}file; then
14108 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14109 if test -n "$file_magic_test_file"; then
14110 case $deplibs_check_method in
14112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14115 $EGREP "$file_magic_regex" > /dev/null; then
14120 *** Warning: the command libtool uses to detect shared libraries,
14121 *** $file_magic_cmd, produces output that libtool cannot recognize.
14122 *** The result is that libtool may fail to recognize shared libraries
14123 *** as such. This will affect the creation of libtool libraries that
14124 *** depend on shared libraries, but programs linked with such libtool
14125 *** libraries will work regardless of this problem. Nevertheless, you
14126 *** may want to report the problem to your system manager and/or to
14127 *** bug-libtool@gnu.org
14137 MAGIC_CMD="$lt_save_MAGIC_CMD"
14142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14143 if test -n "$MAGIC_CMD"; then
14144 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14145 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14147 { echo "$as_me:$LINENO: result: no" >&5
14148 echo "${ECHO_T}no" >&6; }
14151 if test -z "$lt_cv_path_MAGIC_CMD"; then
14152 if test -n "$ac_tool_prefix"; then
14153 { echo "$as_me:$LINENO: checking for file" >&5
14154 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14155 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14163 lt_save_MAGIC_CMD="$MAGIC_CMD"
14164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14166 for ac_dir in $ac_dummy; do
14168 test -z "$ac_dir" && ac_dir=.
14169 if test -f $ac_dir/file; then
14170 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14171 if test -n "$file_magic_test_file"; then
14172 case $deplibs_check_method in
14174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14177 $EGREP "$file_magic_regex" > /dev/null; then
14182 *** Warning: the command libtool uses to detect shared libraries,
14183 *** $file_magic_cmd, produces output that libtool cannot recognize.
14184 *** The result is that libtool may fail to recognize shared libraries
14185 *** as such. This will affect the creation of libtool libraries that
14186 *** depend on shared libraries, but programs linked with such libtool
14187 *** libraries will work regardless of this problem. Nevertheless, you
14188 *** may want to report the problem to your system manager and/or to
14189 *** bug-libtool@gnu.org
14199 MAGIC_CMD="$lt_save_MAGIC_CMD"
14204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14205 if test -n "$MAGIC_CMD"; then
14206 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14207 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14209 { echo "$as_me:$LINENO: result: no" >&5
14210 echo "${ECHO_T}no" >&6; }
14223 enable_win32_dll=no
14225 # Check whether --enable-libtool-lock was given.
14226 if test "${enable_libtool_lock+set}" = set; then
14227 enableval=$enable_libtool_lock;
14230 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14233 # Check whether --with-pic was given.
14234 if test "${with_pic+set}" = set; then
14235 withval=$with_pic; pic_mode="$withval"
14240 test -z "$pic_mode" && pic_mode=default
14242 # Use C for the default configuration in the libtool script
14246 ac_cpp='$CPP $CPPFLAGS'
14247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14252 # Source file extension for C test sources.
14255 # Object file extension for compiled C test sources.
14259 # Code to be used in simple compile tests
14260 lt_simple_compile_test_code="int some_variable = 0;\n"
14262 # Code to be used in simple link tests
14263 lt_simple_link_test_code='int main(){return(0);}\n'
14266 # If no C compiler was specified, use CC.
14269 # If no C compiler flags were specified, use CFLAGS.
14270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14272 # Allow CC to be a program name with arguments.
14276 # save warnings/boilerplate of simple test code
14277 ac_outfile=conftest.$ac_objext
14278 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14280 _lt_compiler_boilerplate=`cat conftest.err`
14283 ac_outfile=conftest.$ac_objext
14284 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14286 _lt_linker_boilerplate=`cat conftest.err`
14291 lt_prog_compiler_no_builtin_flag=
14293 if test "$GCC" = yes; then
14294 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14297 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 lt_cv_prog_compiler_rtti_exceptions=no
14303 ac_outfile=conftest.$ac_objext
14304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14305 lt_compiler_flag="-fno-rtti -fno-exceptions"
14306 # Insert the option either (1) after the last *FLAGS variable, or
14307 # (2) before a word containing "conftest.", or (3) at the end.
14308 # Note that $ac_compile itself does not contain backslashes and begins
14309 # with a dollar sign (not a hyphen), so the echo should work correctly.
14310 # The option is referenced via a variable to avoid confusing sed.
14311 lt_compile=`echo "$ac_compile" | $SED \
14312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14314 -e 's:$: $lt_compiler_flag:'`
14315 (eval echo "\"\$as_me:14315: $lt_compile\"" >&5)
14316 (eval "$lt_compile" 2>conftest.err)
14318 cat conftest.err >&5
14319 echo "$as_me:14319: \$? = $ac_status" >&5
14320 if (exit $ac_status) && test -s "$ac_outfile"; then
14321 # The compiler can only warn and ignore the option if not recognized
14322 # So say no if there are warnings other than the usual output.
14323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14326 lt_cv_prog_compiler_rtti_exceptions=yes
14332 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14333 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14335 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14336 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14343 lt_prog_compiler_wl=
14344 lt_prog_compiler_pic=
14345 lt_prog_compiler_static=
14347 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14348 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14350 if test "$GCC" = yes; then
14351 lt_prog_compiler_wl='-Wl,'
14352 lt_prog_compiler_static='-static'
14356 # All AIX code is PIC.
14357 if test "$host_cpu" = ia64; then
14358 # AIX 5 now supports IA64 processor
14359 lt_prog_compiler_static='-Bstatic'
14364 # FIXME: we need at least 68020 code to build shared libraries, but
14365 # adding the `-m68020' flag to GCC prevents building anything better,
14367 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14370 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14371 # PIC is the default for these OSes.
14374 mingw* | pw32* | os2*)
14375 # This hack is so that the source file can tell whether it is being
14376 # built for inclusion in a dll (and should export symbols for example).
14377 lt_prog_compiler_pic='-DDLL_EXPORT'
14380 darwin* | rhapsody*)
14381 # PIC is the default on this platform
14382 # Common symbols not allowed in MH_DYLIB files
14383 lt_prog_compiler_pic='-fno-common'
14387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14388 # Instead, we relocate shared libraries at runtime.
14392 # Just because we use GCC doesn't mean we suddenly get shared libraries
14393 # on systems that don't support them.
14394 lt_prog_compiler_can_build_shared=no
14399 if test -d /usr/nec; then
14400 lt_prog_compiler_pic=-Kconform_pic
14405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14406 # not for PA HP-UX.
14412 lt_prog_compiler_pic='-fPIC'
14418 lt_prog_compiler_pic='-fPIC'
14422 # PORTME Check for flag to pass linker flags through the system compiler.
14425 lt_prog_compiler_wl='-Wl,'
14426 if test "$host_cpu" = ia64; then
14427 # AIX 5 now supports IA64 processor
14428 lt_prog_compiler_static='-Bstatic'
14430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14434 # PIC is the default on this platform
14435 # Common symbols not allowed in MH_DYLIB files
14436 case $cc_basename in
14438 lt_prog_compiler_pic='-qnocommon'
14439 lt_prog_compiler_wl='-Wl,'
14444 mingw* | pw32* | os2*)
14445 # This hack is so that the source file can tell whether it is being
14446 # built for inclusion in a dll (and should export symbols for example).
14447 lt_prog_compiler_pic='-DDLL_EXPORT'
14450 hpux9* | hpux10* | hpux11*)
14451 lt_prog_compiler_wl='-Wl,'
14452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14453 # not for PA HP-UX.
14459 lt_prog_compiler_pic='+Z'
14462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14463 lt_prog_compiler_static='${wl}-a ${wl}archive'
14466 irix5* | irix6* | nonstopux*)
14467 lt_prog_compiler_wl='-Wl,'
14468 # PIC (with -KPIC) is the default.
14469 lt_prog_compiler_static='-non_shared'
14473 lt_prog_compiler_pic='-KPIC'
14474 lt_prog_compiler_static='-Bstatic'
14478 case $cc_basename in
14480 lt_prog_compiler_wl='-Wl,'
14481 lt_prog_compiler_pic='-KPIC'
14482 lt_prog_compiler_static='-static'
14484 pgcc* | pgf77* | pgf90* | pgf95*)
14485 # Portland Group compilers (*not* the Pentium gcc compiler,
14486 # which looks to be a dead project)
14487 lt_prog_compiler_wl='-Wl,'
14488 lt_prog_compiler_pic='-fpic'
14489 lt_prog_compiler_static='-Bstatic'
14492 lt_prog_compiler_wl='-Wl,'
14493 # All Alpha code is PIC.
14494 lt_prog_compiler_static='-non_shared'
14499 osf3* | osf4* | osf5*)
14500 lt_prog_compiler_wl='-Wl,'
14501 # All OSF/1 code is PIC.
14502 lt_prog_compiler_static='-non_shared'
14506 lt_prog_compiler_pic='-KPIC'
14507 lt_prog_compiler_static='-Bstatic'
14508 case $cc_basename in
14509 f77* | f90* | f95*)
14510 lt_prog_compiler_wl='-Qoption ld ';;
14512 lt_prog_compiler_wl='-Wl,';;
14517 lt_prog_compiler_wl='-Qoption ld '
14518 lt_prog_compiler_pic='-PIC'
14519 lt_prog_compiler_static='-Bstatic'
14522 sysv4 | sysv4.2uw2* | sysv4.3*)
14523 lt_prog_compiler_wl='-Wl,'
14524 lt_prog_compiler_pic='-KPIC'
14525 lt_prog_compiler_static='-Bstatic'
14529 if test -d /usr/nec ;then
14530 lt_prog_compiler_pic='-Kconform_pic'
14531 lt_prog_compiler_static='-Bstatic'
14535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14536 lt_prog_compiler_wl='-Wl,'
14537 lt_prog_compiler_pic='-KPIC'
14538 lt_prog_compiler_static='-Bstatic'
14542 lt_prog_compiler_wl='-Wl,'
14543 lt_prog_compiler_can_build_shared=no
14547 lt_prog_compiler_pic='-pic'
14548 lt_prog_compiler_static='-Bstatic'
14552 lt_prog_compiler_can_build_shared=no
14557 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14558 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14561 # Check to make sure the PIC flag actually works.
14563 if test -n "$lt_prog_compiler_pic"; then
14565 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14566 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14567 if test "${lt_prog_compiler_pic_works+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 lt_prog_compiler_pic_works=no
14571 ac_outfile=conftest.$ac_objext
14572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14574 # Insert the option either (1) after the last *FLAGS variable, or
14575 # (2) before a word containing "conftest.", or (3) at the end.
14576 # Note that $ac_compile itself does not contain backslashes and begins
14577 # with a dollar sign (not a hyphen), so the echo should work correctly.
14578 # The option is referenced via a variable to avoid confusing sed.
14579 lt_compile=`echo "$ac_compile" | $SED \
14580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14582 -e 's:$: $lt_compiler_flag:'`
14583 (eval echo "\"\$as_me:14583: $lt_compile\"" >&5)
14584 (eval "$lt_compile" 2>conftest.err)
14586 cat conftest.err >&5
14587 echo "$as_me:14587: \$? = $ac_status" >&5
14588 if (exit $ac_status) && test -s "$ac_outfile"; then
14589 # The compiler can only warn and ignore the option if not recognized
14590 # So say no if there are warnings other than the usual output.
14591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14594 lt_prog_compiler_pic_works=yes
14600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14601 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14603 if test x"$lt_prog_compiler_pic_works" = xyes; then
14604 case $lt_prog_compiler_pic in
14606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14609 lt_prog_compiler_pic=
14610 lt_prog_compiler_can_build_shared=no
14615 # For platforms which do not support PIC, -DPIC is meaningless:
14617 lt_prog_compiler_pic=
14620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14625 # Check to make sure the static flag actually works.
14627 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14628 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14629 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14630 if test "${lt_prog_compiler_static_works+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 lt_prog_compiler_static_works=no
14634 save_LDFLAGS="$LDFLAGS"
14635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14636 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14638 # The linker can only warn and ignore the option if not recognized
14639 # So say no if there are warnings
14640 if test -s conftest.err; then
14641 # Append any errors to the config.log.
14642 cat conftest.err 1>&5
14643 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14645 if diff conftest.exp conftest.er2 >/dev/null; then
14646 lt_prog_compiler_static_works=yes
14649 lt_prog_compiler_static_works=yes
14653 LDFLAGS="$save_LDFLAGS"
14656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14657 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14659 if test x"$lt_prog_compiler_static_works" = xyes; then
14662 lt_prog_compiler_static=
14666 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14667 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14668 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 lt_cv_prog_compiler_c_o=no
14672 $rm -r conftest 2>/dev/null
14676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14678 lt_compiler_flag="-o out/conftest2.$ac_objext"
14679 # Insert the option either (1) after the last *FLAGS variable, or
14680 # (2) before a word containing "conftest.", or (3) at the end.
14681 # Note that $ac_compile itself does not contain backslashes and begins
14682 # with a dollar sign (not a hyphen), so the echo should work correctly.
14683 lt_compile=`echo "$ac_compile" | $SED \
14684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14686 -e 's:$: $lt_compiler_flag:'`
14687 (eval echo "\"\$as_me:14687: $lt_compile\"" >&5)
14688 (eval "$lt_compile" 2>out/conftest.err)
14690 cat out/conftest.err >&5
14691 echo "$as_me:14691: \$? = $ac_status" >&5
14692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14694 # The compiler can only warn and ignore the option if not recognized
14695 # So say no if there are warnings
14696 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14699 lt_cv_prog_compiler_c_o=yes
14704 # SGI C++ compiler will create directory out/ii_files/ for
14705 # template instantiation
14706 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14707 $rm out/* && rmdir out
14713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14714 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14717 hard_links="nottested"
14718 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14719 # do not overwrite the value of need_locks provided by the user
14720 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14721 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726 ln conftest.a conftest.b 2>&5 || hard_links=no
14727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14728 { echo "$as_me:$LINENO: result: $hard_links" >&5
14729 echo "${ECHO_T}$hard_links" >&6; }
14730 if test "$hard_links" = no; then
14731 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14732 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14739 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14740 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14743 allow_undefined_flag=
14744 enable_shared_with_static_runtimes=no
14746 archive_expsym_cmds=
14747 old_archive_From_new_cmds=
14748 old_archive_from_expsyms_cmds=
14749 export_dynamic_flag_spec=
14750 whole_archive_flag_spec=
14751 thread_safe_flag_spec=
14752 hardcode_libdir_flag_spec=
14753 hardcode_libdir_flag_spec_ld=
14754 hardcode_libdir_separator=
14756 hardcode_minus_L=no
14757 hardcode_shlibpath_var=unsupported
14758 link_all_deplibs=unknown
14759 hardcode_automatic=no
14761 module_expsym_cmds=
14762 always_export_symbols=no
14763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14764 # include_expsyms should be a list of space-separated symbols to be *always*
14765 # included in the symbol list
14767 # exclude_expsyms can be an extended regexp of symbols to exclude
14768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14770 # as well as any symbol that contains `d'.
14771 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14773 # platforms (ab)use it in PIC code, but their linkers get confused if
14774 # the symbol is explicitly referenced. Since portable code cannot
14775 # rely on this symbol name, it's probably fine to never include it in
14776 # preloaded symbol tables.
14777 extract_expsyms_cmds=
14778 # Just being paranoid about ensuring that cc_basename is set.
14779 for cc_temp in $compiler""; do
14781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14790 cygwin* | mingw* | pw32*)
14791 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14792 # When not using gcc, we currently assume that we are using
14793 # Microsoft Visual C++.
14794 if test "$GCC" != yes; then
14799 # we just hope/assume this is gcc and not c89 (= MSVC++)
14808 if test "$with_gnu_ld" = yes; then
14809 # If archive_cmds runs LD, not CC, wlarc should be empty
14812 # Set some defaults for GNU ld with shared library support. These
14813 # are reset later if shared libraries are not supported. Putting them
14814 # here allows them to be overridden if necessary.
14815 runpath_var=LD_RUN_PATH
14816 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14817 export_dynamic_flag_spec='${wl}--export-dynamic'
14818 # ancient GNU ld didn't support --whole-archive et. al.
14819 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14820 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14822 whole_archive_flag_spec=
14824 supports_anon_versioning=no
14825 case `$LD -v 2>/dev/null` in
14826 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14829 *\ 2.11.*) ;; # other 2.11 versions
14830 *) supports_anon_versioning=yes ;;
14833 # See if GNU ld supports shared libraries.
14835 aix3* | aix4* | aix5*)
14836 # On AIX/PPC, the GNU linker is very broken
14837 if test "$host_cpu" != ia64; then
14841 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14842 *** to be unable to reliably create shared libraries on AIX.
14843 *** Therefore, libtool is disabling shared libraries support. If you
14844 *** really care for shared libraries, you may want to modify your PATH
14845 *** so that a non-GNU linker is found, and then restart.
14852 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)'
14853 hardcode_libdir_flag_spec='-L$libdir'
14854 hardcode_minus_L=yes
14856 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14857 # that the semantics of dynamic libraries on AmigaOS, at least up
14858 # to version 4, is to share data among multiple programs linked
14859 # with the same dynamic library. Since this doesn't match the
14860 # behavior of shared libraries on other platforms, we can't use
14866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14867 allow_undefined_flag=unsupported
14868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14869 # support --undefined. This deserves some investigation. FIXME
14870 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876 cygwin* | mingw* | pw32*)
14877 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14878 # as there is no search path for DLLs.
14879 hardcode_libdir_flag_spec='-L$libdir'
14880 allow_undefined_flag=unsupported
14881 always_export_symbols=no
14882 enable_shared_with_static_runtimes=yes
14883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14885 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14887 # If the export-symbols file already is a .def file (1st line
14888 # is EXPORTS), use it as is; otherwise, prepend...
14889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14890 cp $export_symbols $output_objdir/$soname.def;
14892 echo EXPORTS > $output_objdir/$soname.def;
14893 cat $export_symbols >> $output_objdir/$soname.def;
14895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14903 hardcode_shlibpath_var=no
14904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14905 export_dynamic_flag_spec='${wl}-E'
14906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14907 # Instead, shared libraries are loaded at an image base (0x10000000 by
14908 # default) and relocated if they conflict, which is a slow very memory
14909 # consuming and fragmenting process. To avoid this, we pick a random,
14910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14913 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'
14917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919 case $cc_basename,$host_cpu in
14920 pgcc*) # Portland Group C compiler
14921 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'
14922 tmp_addflag=' $pic_flag'
14924 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14925 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'
14926 tmp_addflag=' $pic_flag -Mnomain' ;;
14927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14928 tmp_addflag=' -i_dynamic' ;;
14929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14930 tmp_addflag=' -i_dynamic -nofor_main' ;;
14931 ifc* | ifort*) # Intel Fortran compiler
14932 tmp_addflag=' -nofor_main' ;;
14934 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14936 if test $supports_anon_versioning = yes; then
14937 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14939 $echo "local: *; };" >> $output_objdir/$libname.ver~
14940 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14958 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14962 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14963 *** create shared libraries on Solaris systems. Therefore, libtool
14964 *** is disabling shared libraries support. We urge you to upgrade GNU
14965 *** binutils to release 2.9.1 or newer. Another option is to modify
14966 *** your PATH or compiler configuration so that the native linker is
14967 *** used, and then restart.
14970 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14979 case `$LD -v 2>&1` in
14980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14984 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14985 *** reliably create shared libraries on SCO systems. Therefore, libtool
14986 *** is disabling shared libraries support. We urge you to upgrade GNU
14987 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14988 *** your PATH or compiler configuration so that the native linker is
14989 *** used, and then restart.
14994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14995 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15006 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15008 hardcode_direct=yes
15009 hardcode_shlibpath_var=no
15013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022 if test "$ld_shlibs" = no; then
15024 hardcode_libdir_flag_spec=
15025 export_dynamic_flag_spec=
15026 whole_archive_flag_spec=
15029 # PORTME fill in a description of your system's linker (not GNU ld)
15032 allow_undefined_flag=unsupported
15033 always_export_symbols=yes
15034 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'
15035 # Note: this linker hardcodes the directories in LIBPATH if there
15036 # are no directories specified by -L.
15037 hardcode_minus_L=yes
15038 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15039 # Neither direct hardcoding nor static linking is supported with a
15041 hardcode_direct=unsupported
15046 if test "$host_cpu" = ia64; then
15047 # On IA64, the linker does run time linking by default, so we don't
15048 # have to do anything special.
15049 aix_use_runtimelinking=no
15050 exp_sym_flag='-Bexport'
15053 # If we're using GNU nm, then we don't want the "-C" option.
15054 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15055 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15056 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'
15058 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'
15060 aix_use_runtimelinking=no
15062 # Test if we are trying to use run time linking or normal
15063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15064 # need to do runtime linking.
15065 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15066 for ld_flag in $LDFLAGS; do
15067 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15068 aix_use_runtimelinking=yes
15075 exp_sym_flag='-bexport'
15076 no_entry_flag='-bnoentry'
15079 # When large executables or shared objects are built, AIX ld can
15080 # have problems creating the table of contents. If linking a library
15081 # or program results in "error TOC overflow" add -mminimal-toc to
15082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15086 hardcode_direct=yes
15087 hardcode_libdir_separator=':'
15088 link_all_deplibs=yes
15090 if test "$GCC" = yes; then
15091 case $host_os in aix4.[012]|aix4.[012].*)
15092 # We only want to do this on AIX 4.2 and lower, the check
15093 # below for broken collect2 doesn't work under 4.3+
15094 collect2name=`${CC} -print-prog-name=collect2`
15095 if test -f "$collect2name" && \
15096 strings "$collect2name" | grep resolve_lib_name >/dev/null
15098 # We have reworked collect2
15099 hardcode_direct=yes
15101 # We have old collect2
15102 hardcode_direct=unsupported
15103 # It fails to find uninstalled libraries when the uninstalled
15104 # path is not listed in the libpath. Setting hardcode_minus_L
15105 # to unsupported forces relinking
15106 hardcode_minus_L=yes
15107 hardcode_libdir_flag_spec='-L$libdir'
15108 hardcode_libdir_separator=
15112 shared_flag='-shared'
15113 if test "$aix_use_runtimelinking" = yes; then
15114 shared_flag="$shared_flag "'${wl}-G'
15118 if test "$host_cpu" = ia64; then
15119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15120 # chokes on -Wl,-G. The following line is correct:
15123 if test "$aix_use_runtimelinking" = yes; then
15124 shared_flag='${wl}-G'
15126 shared_flag='${wl}-bM:SRE'
15131 # It seems that -bexpall does not export symbols beginning with
15132 # underscore (_), so it is better to generate a list of symbols to export.
15133 always_export_symbols=yes
15134 if test "$aix_use_runtimelinking" = yes; then
15135 # Warning - without using the other runtime loading flags (-brtl),
15136 # -berok will link without error, but may produce a broken library.
15137 allow_undefined_flag='-berok'
15138 # Determine the default libpath from the value encoded in an empty executable.
15139 cat >conftest.$ac_ext <<_ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15191 # Check for a 64-bit object if we didn't find anything.
15192 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; }
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15201 rm -f core conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15206 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"
15208 if test "$host_cpu" = ia64; then
15209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15210 allow_undefined_flag="-z nodefs"
15211 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"
15213 # Determine the default libpath from the value encoded in an empty executable.
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (ac_try="$ac_link"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_link") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1 >conftest.err
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15266 # Check for a 64-bit object if we didn't find anything.
15267 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; }
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15276 rm -f core conftest.err conftest.$ac_objext \
15277 conftest$ac_exeext conftest.$ac_ext
15278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15280 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15281 # Warning - without using the other run time loading flags,
15282 # -berok will link without error, but may produce a broken library.
15283 no_undefined_flag=' ${wl}-bernotok'
15284 allow_undefined_flag=' ${wl}-berok'
15285 # Exported symbols can be pulled into shared objects from archives
15286 whole_archive_flag_spec='$convenience'
15287 archive_cmds_need_lc=yes
15288 # This is similar to how AIX traditionally builds its shared libraries.
15289 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'
15295 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)'
15296 hardcode_libdir_flag_spec='-L$libdir'
15297 hardcode_minus_L=yes
15298 # see comment about different semantics on the GNU ld section
15303 export_dynamic_flag_spec=-rdynamic
15306 cygwin* | mingw* | pw32*)
15307 # When not using gcc, we currently assume that we are using
15308 # Microsoft Visual C++.
15309 # hardcode_libdir_flag_spec is actually meaningless, as there is
15310 # no search path for DLLs.
15311 hardcode_libdir_flag_spec=' '
15312 allow_undefined_flag=unsupported
15313 # Tell ltmain to make .lib files, not .a files.
15315 # Tell ltmain to make .dll files, not .so files.
15317 # FIXME: Setting linknames here is a bad hack.
15318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15319 # The linker will automatically build a .lib file if we build a DLL.
15320 old_archive_From_new_cmds='true'
15321 # FIXME: Should let the user specify the lib program.
15322 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15323 fix_srcfile_path='`cygpath -w "$srcfile"`'
15324 enable_shared_with_static_runtimes=yes
15327 darwin* | rhapsody*)
15329 rhapsody* | darwin1.[012])
15330 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15333 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15334 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15336 case ${MACOSX_DEPLOYMENT_TARGET} in
15338 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15341 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15347 archive_cmds_need_lc=no
15349 hardcode_automatic=yes
15350 hardcode_shlibpath_var=unsupported
15351 whole_archive_flag_spec=''
15352 link_all_deplibs=yes
15353 if test "$GCC" = yes ; then
15354 output_verbose_link_cmd='echo'
15355 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15356 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15357 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15358 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}'
15359 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}'
15361 case $cc_basename in
15363 output_verbose_link_cmd='echo'
15364 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15365 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15367 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}'
15368 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}'
15378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_libdir_flag_spec='-L$libdir'
15380 hardcode_shlibpath_var=no
15387 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15388 # support. Future versions do this automatically, but an explicit c++rt0.o
15389 # does not break anything, and helps significantly (at the cost of a little
15392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15393 hardcode_libdir_flag_spec='-R$libdir'
15394 hardcode_direct=yes
15395 hardcode_shlibpath_var=no
15398 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15401 hardcode_direct=yes
15402 hardcode_minus_L=yes
15403 hardcode_shlibpath_var=no
15406 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15407 freebsd* | kfreebsd*-gnu | dragonfly*)
15408 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15409 hardcode_libdir_flag_spec='-R$libdir'
15410 hardcode_direct=yes
15411 hardcode_shlibpath_var=no
15415 if test "$GCC" = yes; then
15416 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'
15418 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'
15420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15421 hardcode_libdir_separator=:
15422 hardcode_direct=yes
15424 # hardcode_minus_L: Not really in the search PATH,
15425 # but as the default location of the library.
15426 hardcode_minus_L=yes
15427 export_dynamic_flag_spec='${wl}-E'
15431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15432 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15436 if test "$with_gnu_ld" = no; then
15437 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15438 hardcode_libdir_separator=:
15440 hardcode_direct=yes
15441 export_dynamic_flag_spec='${wl}-E'
15443 # hardcode_minus_L: Not really in the search PATH,
15444 # but as the default location of the library.
15445 hardcode_minus_L=yes
15450 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15453 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15465 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15475 if test "$with_gnu_ld" = no; then
15476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15477 hardcode_libdir_separator=:
15481 hardcode_libdir_flag_spec_ld='+b $libdir'
15483 hardcode_shlibpath_var=no
15486 hardcode_direct=yes
15487 export_dynamic_flag_spec='${wl}-E'
15489 # hardcode_minus_L: Not really in the search PATH,
15490 # but as the default location of the library.
15491 hardcode_minus_L=yes
15497 irix5* | irix6* | nonstopux*)
15498 if test "$GCC" = yes; then
15499 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'
15501 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'
15502 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15505 hardcode_libdir_separator=:
15506 link_all_deplibs=yes
15510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15515 hardcode_libdir_flag_spec='-R$libdir'
15516 hardcode_direct=yes
15517 hardcode_shlibpath_var=no
15521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct=yes
15523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15524 hardcode_libdir_separator=:
15525 hardcode_shlibpath_var=no
15529 hardcode_direct=yes
15530 hardcode_shlibpath_var=no
15531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15535 export_dynamic_flag_spec='${wl}-E'
15538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15540 hardcode_libdir_flag_spec='-R$libdir'
15543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15551 hardcode_libdir_flag_spec='-L$libdir'
15552 hardcode_minus_L=yes
15553 allow_undefined_flag=unsupported
15554 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'
15555 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15559 if test "$GCC" = yes; then
15560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15561 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'
15563 allow_undefined_flag=' -expect_unresolved \*'
15564 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'
15566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15567 hardcode_libdir_separator=:
15570 osf4* | osf5*) # as osf3* with the addition of -msym flag
15571 if test "$GCC" = yes; then
15572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15573 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'
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15576 allow_undefined_flag=' -expect_unresolved \*'
15577 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'
15578 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15579 $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'
15581 # Both c and cxx compiler support -rpath directly
15582 hardcode_libdir_flag_spec='-rpath $libdir'
15584 hardcode_libdir_separator=:
15588 no_undefined_flag=' -z text'
15589 if test "$GCC" = yes; then
15591 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15592 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15593 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15596 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15598 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15600 hardcode_libdir_flag_spec='-R$libdir'
15601 hardcode_shlibpath_var=no
15603 solaris2.[0-5] | solaris2.[0-5].*) ;;
15605 # The compiler driver will combine linker options so we
15606 # cannot just pass the convience library names through
15607 # without $wl, iff we do not link with $LD.
15608 # Luckily, gcc supports the same syntax we need for Sun Studio.
15609 # Supported since Solaris 2.6 (maybe 2.5.1?)
15612 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15614 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' ;;
15617 link_all_deplibs=yes
15621 if test "x$host_vendor" = xsequent; then
15622 # Use $CC to link under sequent, because it throws in some extra .o
15623 # files that make .init and .fini sections work.
15624 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15628 hardcode_libdir_flag_spec='-L$libdir'
15629 hardcode_direct=yes
15630 hardcode_minus_L=yes
15631 hardcode_shlibpath_var=no
15635 case $host_vendor in
15637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638 hardcode_direct=yes # is this really true???
15641 ## LD is ld it makes a PLAMLIB
15642 ## CC just makes a GrossModule.
15643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15644 reload_cmds='$CC -r -o $output$reload_objs'
15648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15652 runpath_var='LD_RUN_PATH'
15653 hardcode_shlibpath_var=no
15657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15658 hardcode_shlibpath_var=no
15659 export_dynamic_flag_spec='-Bexport'
15663 if test -d /usr/nec; then
15664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_shlibpath_var=no
15666 runpath_var=LD_RUN_PATH
15667 hardcode_runpath_var=yes
15672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15673 no_undefined_flag='${wl}-z,text'
15674 archive_cmds_need_lc=no
15675 hardcode_shlibpath_var=no
15676 runpath_var='LD_RUN_PATH'
15678 if test "$GCC" = yes; then
15679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 sysv5* | sco3.2v5* | sco5v6*)
15688 # Note: We can NOT use -z defs as we might desire, because we do not
15689 # link with -lc, and that would cause any symbols used from libc to
15690 # always be unresolved, which means just about no library would
15691 # ever link correctly. If we're not using GNU ld we use -z text
15692 # though, which does catch some bad symbols but isn't as heavy-handed
15694 no_undefined_flag='${wl}-z,text'
15695 allow_undefined_flag='${wl}-z,nodefs'
15696 archive_cmds_need_lc=no
15697 hardcode_shlibpath_var=no
15698 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15699 hardcode_libdir_separator=':'
15700 link_all_deplibs=yes
15701 export_dynamic_flag_spec='${wl}-Bexport'
15702 runpath_var='LD_RUN_PATH'
15704 if test "$GCC" = yes; then
15705 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15708 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_libdir_flag_spec='-L$libdir'
15716 hardcode_shlibpath_var=no
15725 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15726 echo "${ECHO_T}$ld_shlibs" >&6; }
15727 test "$ld_shlibs" = no && can_build_shared=no
15730 # Do we need to explicitly link libc?
15732 case "x$archive_cmds_need_lc" in
15734 # Assume -lc should be added
15735 archive_cmds_need_lc=yes
15737 if test "$enable_shared" = yes && test "$GCC" = yes; then
15738 case $archive_cmds in
15740 # FIXME: we may have to deal with multi-command sequences.
15743 # Test whether the compiler implicitly links with -lc since on some
15744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15745 # to ld, don't add -lc before -lgcc.
15746 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } 2>conftest.err; then
15758 libobjs=conftest.$ac_objext
15760 wl=$lt_prog_compiler_wl
15761 pic_flag=$lt_prog_compiler_pic
15767 lt_save_allow_undefined_flag=$allow_undefined_flag
15768 allow_undefined_flag=
15769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15770 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }
15775 archive_cmds_need_lc=no
15777 archive_cmds_need_lc=yes
15779 allow_undefined_flag=$lt_save_allow_undefined_flag
15781 cat conftest.err 1>&5
15784 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15785 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15792 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15794 library_names_spec=
15795 libname_spec='lib$name'
15799 postuninstall_cmds=
15803 shlibpath_overrides_runpath=unknown
15805 dynamic_linker="$host_os ld.so"
15806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15807 if test "$GCC" = yes; then
15808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15810 # if the path contains ";" then we assume it to be the separator
15811 # otherwise default to the standard path separator (i.e. ":") - it is
15812 # assumed that no part of a normal pathname contains ";" but that should
15813 # okay in the real world where ";" in dirpaths is itself problematic.
15814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15821 need_lib_prefix=unknown
15822 hardcode_into_libs=no
15824 # when you set need_version to no, make sure it does not cause -set_version
15825 # flags to be left without arguments
15826 need_version=unknown
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15832 shlibpath_var=LIBPATH
15834 # AIX 3 has no versioning support, so we append a major version to the name.
15835 soname_spec='${libname}${release}${shared_ext}$major'
15842 hardcode_into_libs=yes
15843 if test "$host_cpu" = ia64; then
15844 # AIX 5 supports IA64
15845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15846 shlibpath_var=LD_LIBRARY_PATH
15848 # With GCC up to 2.95.x, collect2 would create an import file
15849 # for dependence libraries. The import file would start with
15850 # the line `#! .'. This would cause the generated library to
15851 # depend on `.', always an invalid library. This was fixed in
15852 # development snapshots of GCC prior to 3.0.
15854 aix4 | aix4.[01] | aix4.[01].*)
15855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15860 can_build_shared=no
15864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15865 # soname into executable. Probably we can add versioning support to
15866 # collect2, so additional links can be useful in future.
15867 if test "$aix_use_runtimelinking" = yes; then
15868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15869 # instead of lib<name>.a to let people know that these are not
15870 # typical AIX shared libraries.
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873 # We preserve .a as extension for shared libraries through AIX4.2
15874 # and later when we are not doing run time linking.
15875 library_names_spec='${libname}${release}.a $libname.a'
15876 soname_spec='${libname}${release}${shared_ext}$major'
15878 shlibpath_var=LIBPATH
15883 library_names_spec='$libname.ixlibrary $libname.a'
15884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15885 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'
15889 library_names_spec='${libname}${shared_ext}'
15890 dynamic_linker="$host_os ld.so"
15891 shlibpath_var=LIBRARY_PATH
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15900 shlibpath_var=LD_LIBRARY_PATH
15901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15903 # the default ld.so.conf also contains /usr/contrib/lib and
15904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15905 # libtool to hard-code these into programs
15908 cygwin* | mingw* | pw32*)
15909 version_type=windows
15914 case $GCC,$host_os in
15915 yes,cygwin* | yes,mingw* | yes,pw32*)
15916 library_names_spec='$libname.dll.a'
15917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15918 postinstall_cmds='base_file=`basename \${file}`~
15919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15920 dldir=$destdir/`dirname \$dlpath`~
15921 test -d \$dldir || mkdir -p \$dldir~
15922 $install_prog $dir/$dlname \$dldir/$dlname~
15923 chmod a+x \$dldir/$dlname'
15924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15925 dlpath=$dir/\$dldll~
15927 shlibpath_overrides_runpath=yes
15931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15936 # MinGW DLLs use traditional 'lib' prefix
15937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15939 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15940 # It is most probably a Windows format PATH printed by
15941 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15942 # path with ; separators, and with drive letters. We can handle the
15943 # drive letters (cygwin fileutils understands them), so leave them,
15944 # especially as we might pass files found there to a mingw objdump,
15945 # which wouldn't understand a cygwinified path. Ahh.
15946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15952 # pw32 DLLs use 'pw' prefix rather than 'lib'
15953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15962 dynamic_linker='Win32 ld.exe'
15963 # FIXME: first we should search . and the directory the executable is in
15967 darwin* | rhapsody*)
15968 dynamic_linker="$host_os dyld"
15969 version_type=darwin
15972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15973 soname_spec='${libname}${release}${major}$shared_ext'
15974 shlibpath_overrides_runpath=yes
15975 shlibpath_var=DYLD_LIBRARY_PATH
15976 shrext_cmds='.dylib'
15977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15978 if test "$GCC" = yes; then
15979 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"`
15981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15991 soname_spec='${libname}${release}${shared_ext}$major'
15992 shlibpath_var=LD_LIBRARY_PATH
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=no
16007 hardcode_into_libs=yes
16008 dynamic_linker='GNU ld.so'
16011 freebsd* | dragonfly*)
16012 # DragonFly does not have aout. When/if they implement a new
16013 # versioning mechanism, adjust this.
16014 if test -x /usr/bin/objformat; then
16015 objformat=`/usr/bin/objformat`
16018 freebsd[123]*) objformat=aout ;;
16019 *) objformat=elf ;;
16022 version_type=freebsd-$objformat
16023 case $version_type in
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16034 shlibpath_var=LD_LIBRARY_PATH
16037 shlibpath_overrides_runpath=yes
16039 freebsd3.[01]* | freebsdelf3.[01]*)
16040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16045 shlibpath_overrides_runpath=no
16046 hardcode_into_libs=yes
16048 freebsd*) # from 4.6 on
16049 shlibpath_overrides_runpath=yes
16050 hardcode_into_libs=yes
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 shlibpath_var=LD_LIBRARY_PATH
16062 hardcode_into_libs=yes
16065 hpux9* | hpux10* | hpux11*)
16066 # Give a soname corresponding to the major version so that dld.sl refuses to
16067 # link against other versions.
16074 hardcode_into_libs=yes
16075 dynamic_linker="$host_os dld.so"
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 if test "X$HPUX_IA64_MODE" = X32; then
16081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16089 hardcode_into_libs=yes
16090 dynamic_linker="$host_os dld.sl"
16091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16100 dynamic_linker="$host_os dld.sl"
16101 shlibpath_var=SHLIB_PATH
16102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 soname_spec='${libname}${release}${shared_ext}$major'
16107 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16108 postinstall_cmds='chmod 555 $lib'
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=no
16120 hardcode_into_libs=yes
16123 irix5* | irix6* | nonstopux*)
16125 nonstopux*) version_type=nonstopux ;;
16127 if test "$lt_cv_prog_gnu_ld" = yes; then
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16138 irix5* | nonstopux*)
16139 libsuff= shlibsuff=
16142 case $LD in # libtool.m4 will add one of these switches to LD
16143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16144 libsuff= shlibsuff= libmagic=32-bit;;
16145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16146 libsuff=32 shlibsuff=N32 libmagic=N32;;
16147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16149 *) libsuff= shlibsuff= libmagic=never-match;;
16153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16154 shlibpath_overrides_runpath=no
16155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16157 hardcode_into_libs=yes
16160 # No shared lib support for Linux oldld, aout, or coff.
16161 linux*oldld* | linux*aout* | linux*coff*)
16165 # This must be Linux ELF.
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=no
16175 # This implies no fast_install, which is unacceptable.
16176 # Some rework will be needed to allow for fast_install
16177 # before this can be enabled.
16178 hardcode_into_libs=yes
16180 # Append ld.so.conf contents to the search path
16181 if test -f /etc/ld.so.conf; then
16182 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' ' '`
16183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16186 # We used to test for /lib/ld.so.1 and disable shared libraries on
16187 # powerpc, because MkLinux only supported shared libraries with the
16188 # GNU dynamic linker. Since this was broken with cross compilers,
16189 # most powerpc-linux boxes support dynamic linking these days and
16190 # people can always --disable-shared, the test was removed, and we
16191 # assume the GNU/Linux dynamic linker is in use.
16192 dynamic_linker='GNU/Linux ld.so'
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=no
16203 hardcode_into_libs=yes
16204 dynamic_linker='GNU ld.so'
16211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16214 dynamic_linker='NetBSD (a.out) ld.so'
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 dynamic_linker='NetBSD ld.elf_so'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 shlibpath_overrides_runpath=yes
16244 sys_lib_dlsearch_path_spec="/usr/lib"
16246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16249 *) need_version=no ;;
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16253 shlibpath_var=LD_LIBRARY_PATH
16254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16256 openbsd2.[89] | openbsd2.[89].*)
16257 shlibpath_overrides_runpath=no
16260 shlibpath_overrides_runpath=yes
16264 shlibpath_overrides_runpath=yes
16269 libname_spec='$name'
16272 library_names_spec='$libname${shared_ext} $libname.a'
16273 dynamic_linker='OS/2 ld.exe'
16274 shlibpath_var=LIBPATH
16277 osf3* | osf4* | osf5*)
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=yes
16296 hardcode_into_libs=yes
16297 # ldd complains unless libraries are executable
16298 postinstall_cmds='chmod +x $lib'
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=yes
16307 if test "$with_gnu_ld" = yes; then
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 case $host_vendor in
16320 shlibpath_overrides_runpath=no
16322 export_dynamic_flag_spec='${wl}-Blargedynsym'
16323 runpath_var=LD_RUN_PATH
16331 shlibpath_overrides_runpath=no
16332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16338 if test -d /usr/nec ;then
16340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16341 soname_spec='$libname${shared_ext}.$major'
16342 shlibpath_var=LD_LIBRARY_PATH
16346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16347 version_type=freebsd-elf
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16351 soname_spec='${libname}${release}${shared_ext}$major'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 hardcode_into_libs=yes
16354 if test "$with_gnu_ld" = yes; then
16355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16356 shlibpath_overrides_runpath=no
16358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16359 shlibpath_overrides_runpath=yes
16362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16366 sys_lib_dlsearch_path_spec='/usr/lib'
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 shlibpath_var=LD_LIBRARY_PATH
16380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16381 echo "${ECHO_T}$dynamic_linker" >&6; }
16382 test "$dynamic_linker" = no && can_build_shared=no
16384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385 if test "$GCC" = yes; then
16386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16392 if test -n "$hardcode_libdir_flag_spec" || \
16393 test -n "$runpath_var" || \
16394 test "X$hardcode_automatic" = "Xyes" ; then
16396 # We can hardcode non-existant directories.
16397 if test "$hardcode_direct" != no &&
16398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16399 # have to relink, otherwise we might link with an installed library
16400 # when we should be linking with a yet-to-be-installed one
16401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16402 test "$hardcode_minus_L" != no; then
16403 # Linking always hardcodes the temporary library directory.
16404 hardcode_action=relink
16406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16407 hardcode_action=immediate
16410 # We cannot hardcode anything, or else we can only hardcode existing
16412 hardcode_action=unsupported
16414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16415 echo "${ECHO_T}$hardcode_action" >&6; }
16417 if test "$hardcode_action" = relink; then
16418 # Fast installation is not supported
16419 enable_fast_install=no
16420 elif test "$shlibpath_overrides_runpath" = yes ||
16421 test "$enable_shared" = no; then
16422 # Fast installation is not necessary
16423 enable_fast_install=needless
16428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16431 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16432 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16433 { echo "$as_me:$LINENO: result: yes" >&5
16434 echo "${ECHO_T}yes" >&6; }
16436 # FIXME - insert some real tests, host_os isn't really good enough
16439 if test -n "$STRIP" ; then
16440 striplib="$STRIP -x"
16441 { echo "$as_me:$LINENO: result: yes" >&5
16442 echo "${ECHO_T}yes" >&6; }
16444 { echo "$as_me:$LINENO: result: no" >&5
16445 echo "${ECHO_T}no" >&6; }
16449 { echo "$as_me:$LINENO: result: no" >&5
16450 echo "${ECHO_T}no" >&6; }
16455 if test "x$enable_dlopen" != xyes; then
16456 enable_dlopen=unknown
16457 enable_dlopen_self=unknown
16458 enable_dlopen_self_static=unknown
16465 lt_cv_dlopen="load_add_on"
16467 lt_cv_dlopen_self=yes
16471 lt_cv_dlopen="LoadLibrary"
16476 lt_cv_dlopen="dlopen"
16481 # if libdl is installed we need to link against it
16482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 ac_check_lib_save_LIBS=$LIBS
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_lib_dl_dlopen=yes
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_lib_dl_dlopen=no
16553 rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16555 LIBS=$ac_check_lib_save_LIBS
16557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16559 if test $ac_cv_lib_dl_dlopen = yes; then
16560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16563 lt_cv_dlopen="dyld"
16565 lt_cv_dlopen_self=yes
16572 { echo "$as_me:$LINENO: checking for shl_load" >&5
16573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16574 if test "${ac_cv_func_shl_load+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16585 #define shl_load innocuous_shl_load
16587 /* System header to define __stub macros and hopefully few prototypes,
16588 which can conflict with char shl_load (); below.
16589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16590 <limits.h> exists even on freestanding compilers. */
16593 # include <limits.h>
16595 # include <assert.h>
16600 /* Override any GCC internal prototype to avoid an error.
16601 Use char because int might match the return type of a GCC
16602 builtin and then its argument prototype would still apply. */
16607 /* The GNU C library defines this for functions which it implements
16608 to always fail with ENOSYS. Some functions are actually named
16609 something starting with __ and the normal name is an alias. */
16610 #if defined __stub_shl_load || defined __stub___shl_load
16617 return shl_load ();
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (ac_try="$ac_link"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_link") 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637 { (case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_try") 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest$ac_exeext'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_cv_func_shl_load=yes
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_cv_func_shl_load=no
16664 rm -f core conftest.err conftest.$ac_objext \
16665 conftest$ac_exeext conftest.$ac_ext
16667 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16668 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16669 if test $ac_cv_func_shl_load = yes; then
16670 lt_cv_dlopen="shl_load"
16672 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16673 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16674 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 ac_check_lib_save_LIBS=$LIBS
16679 cat >conftest.$ac_ext <<_ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16686 /* Override any GCC internal prototype to avoid an error.
16687 Use char because int might match the return type of a GCC
16688 builtin and then its argument prototype would still apply. */
16696 return shl_load ();
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (ac_try="$ac_link"
16703 case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_link") 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_lib_dld_shl_load=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_lib_dld_shl_load=no
16743 rm -f core conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_check_lib_save_LIBS
16747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16748 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16749 if test $ac_cv_lib_dld_shl_load = yes; then
16750 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16752 { echo "$as_me:$LINENO: checking for dlopen" >&5
16753 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16754 if test "${ac_cv_func_dlopen+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 cat >conftest.$ac_ext <<_ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define dlopen innocuous_dlopen
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char dlopen (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16773 # include <limits.h>
16775 # include <assert.h>
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined __stub_dlopen || defined __stub___dlopen
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_link") 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest$ac_exeext'
16827 { (case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_try") 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 ac_cv_func_dlopen=yes
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 ac_cv_func_dlopen=no
16844 rm -f core conftest.err conftest.$ac_objext \
16845 conftest$ac_exeext conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16848 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16849 if test $ac_cv_func_dlopen = yes; then
16850 lt_cv_dlopen="dlopen"
16852 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16853 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16854 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 ac_check_lib_save_LIBS=$LIBS
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16866 /* Override any GCC internal prototype to avoid an error.
16867 Use char because int might match the return type of a GCC
16868 builtin and then its argument prototype would still apply. */
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (ac_try="$ac_link"
16883 case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_link") 2>conftest.er1
16890 grep -v '^ *+' conftest.er1 >conftest.err
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16896 { (case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_try") 2>&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } &&
16905 { ac_try='test -s conftest$ac_exeext'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ac_cv_lib_dl_dlopen=yes
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 ac_cv_lib_dl_dlopen=no
16923 rm -f core conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16927 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16929 if test $ac_cv_lib_dl_dlopen = yes; then
16930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16932 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16933 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 ac_check_lib_save_LIBS=$LIBS
16938 LIBS="-lsvld $LIBS"
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16946 /* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_link") 2>conftest.er1
16970 grep -v '^ *+' conftest.er1 >conftest.err
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_cv_lib_svld_dlopen=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_lib_svld_dlopen=no
17003 rm -f core conftest.err conftest.$ac_objext \
17004 conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_lib_save_LIBS
17007 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17008 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17009 if test $ac_cv_lib_svld_dlopen = yes; then
17010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17012 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17013 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17014 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 ac_check_lib_save_LIBS=$LIBS
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 /* Override any GCC internal prototype to avoid an error.
17027 Use char because int might match the return type of a GCC
17028 builtin and then its argument prototype would still apply. */
17036 return dld_link ();
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>conftest.er1
17050 grep -v '^ *+' conftest.er1 >conftest.err
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_try") 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_cv_lib_dld_dld_link=yes
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 ac_cv_lib_dld_dld_link=no
17083 rm -f core conftest.err conftest.$ac_objext \
17084 conftest$ac_exeext conftest.$ac_ext
17085 LIBS=$ac_check_lib_save_LIBS
17087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17089 if test $ac_cv_lib_dld_dld_link = yes; then
17090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17111 if test "x$lt_cv_dlopen" != xno; then
17117 case $lt_cv_dlopen in
17119 save_CPPFLAGS="$CPPFLAGS"
17120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17122 save_LDFLAGS="$LDFLAGS"
17123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17126 LIBS="$lt_cv_dlopen_libs $LIBS"
17128 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17130 if test "${lt_cv_dlopen_self+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 if test "$cross_compiling" = yes; then :
17134 lt_cv_dlopen_self=cross
17136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17137 lt_status=$lt_dlunknown
17138 cat > conftest.$ac_ext <<EOF
17139 #line 17139 "configure"
17140 #include "confdefs.h"
17149 # define LT_DLGLOBAL RTLD_GLOBAL
17152 # define LT_DLGLOBAL DL_GLOBAL
17154 # define LT_DLGLOBAL 0
17158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17159 find out it does not work in some platform. */
17160 #ifndef LT_DLLAZY_OR_NOW
17162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17165 # define LT_DLLAZY_OR_NOW DL_LAZY
17168 # define LT_DLLAZY_OR_NOW RTLD_NOW
17171 # define LT_DLLAZY_OR_NOW DL_NOW
17173 # define LT_DLLAZY_OR_NOW 0
17181 extern "C" void exit (int);
17184 void fnord() { int i=42;}
17187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17188 int status = $lt_dlunknown;
17192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17194 /* dlclose (self); */
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17207 (./conftest; exit; ) >&5 2>/dev/null
17209 case x$lt_status in
17210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17215 # compilation failed
17216 lt_cv_dlopen_self=no
17223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17226 if test "x$lt_cv_dlopen_self" = xyes; then
17227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17228 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17230 if test "${lt_cv_dlopen_self_static+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 if test "$cross_compiling" = yes; then :
17234 lt_cv_dlopen_self_static=cross
17236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17237 lt_status=$lt_dlunknown
17238 cat > conftest.$ac_ext <<EOF
17239 #line 17239 "configure"
17240 #include "confdefs.h"
17249 # define LT_DLGLOBAL RTLD_GLOBAL
17252 # define LT_DLGLOBAL DL_GLOBAL
17254 # define LT_DLGLOBAL 0
17258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17259 find out it does not work in some platform. */
17260 #ifndef LT_DLLAZY_OR_NOW
17262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17265 # define LT_DLLAZY_OR_NOW DL_LAZY
17268 # define LT_DLLAZY_OR_NOW RTLD_NOW
17271 # define LT_DLLAZY_OR_NOW DL_NOW
17273 # define LT_DLLAZY_OR_NOW 0
17281 extern "C" void exit (int);
17284 void fnord() { int i=42;}
17287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17288 int status = $lt_dlunknown;
17292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17294 /* dlclose (self); */
17302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17303 (eval $ac_link) 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17307 (./conftest; exit; ) >&5 2>/dev/null
17309 case x$lt_status in
17310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17315 # compilation failed
17316 lt_cv_dlopen_self_static=no
17323 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17324 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17327 CPPFLAGS="$save_CPPFLAGS"
17328 LDFLAGS="$save_LDFLAGS"
17333 case $lt_cv_dlopen_self in
17334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17335 *) enable_dlopen_self=unknown ;;
17338 case $lt_cv_dlopen_self_static in
17339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17340 *) enable_dlopen_self_static=unknown ;;
17345 # Report which library types will actually be built
17346 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17348 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17349 echo "${ECHO_T}$can_build_shared" >&6; }
17351 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17353 test "$can_build_shared" = "no" && enable_shared=no
17355 # On AIX, shared libraries and static libraries use the same namespace, and
17356 # are all built from PIC.
17359 test "$enable_shared" = yes && enable_static=no
17360 if test -n "$RANLIB"; then
17361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17362 postinstall_cmds='$RANLIB $lib'
17367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17368 test "$enable_shared" = yes && enable_static=no
17372 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17373 echo "${ECHO_T}$enable_shared" >&6; }
17375 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17376 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17377 # Make sure either enable_shared or enable_static is yes.
17378 test "$enable_shared" = yes || enable_static=yes
17379 { echo "$as_me:$LINENO: result: $enable_static" >&5
17380 echo "${ECHO_T}$enable_static" >&6; }
17382 # The else clause should only fire when bootstrapping the
17383 # libtool distribution, otherwise you forgot to ship ltmain.sh
17384 # with your package, and you will get complaints that there are
17385 # no rules to generate ltmain.sh.
17386 if test -f "$ltmain"; then
17387 # See if we are running on zsh, and set the options which allow our commands through
17388 # without removal of \ escapes.
17389 if test -n "${ZSH_VERSION+set}" ; then
17390 setopt NO_GLOB_SUBST
17392 # Now quote all the things that may contain metacharacters while being
17393 # careful not to overquote the AC_SUBSTed values. We take copies of the
17394 # variables and quote the copies for generation of the libtool script.
17395 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17399 deplibs_check_method reload_flag reload_cmds need_locks \
17400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17401 lt_cv_sys_global_symbol_to_c_name_address \
17402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17403 old_postinstall_cmds old_postuninstall_cmds \
17407 lt_prog_compiler_wl \
17408 lt_prog_compiler_pic \
17409 lt_prog_compiler_static \
17410 lt_prog_compiler_no_builtin_flag \
17411 export_dynamic_flag_spec \
17412 thread_safe_flag_spec \
17413 whole_archive_flag_spec \
17414 enable_shared_with_static_runtimes \
17416 old_archive_from_new_cmds \
17421 compiler_lib_search_path \
17423 archive_expsym_cmds \
17425 postuninstall_cmds \
17426 old_archive_from_expsyms_cmds \
17427 allow_undefined_flag \
17428 no_undefined_flag \
17429 export_symbols_cmds \
17430 hardcode_libdir_flag_spec \
17431 hardcode_libdir_flag_spec_ld \
17432 hardcode_libdir_separator \
17433 hardcode_automatic \
17435 module_expsym_cmds \
17436 lt_cv_prog_compiler_c_o \
17438 include_expsyms; do
17441 old_archive_cmds | \
17442 old_archive_from_new_cmds | \
17444 archive_expsym_cmds | \
17446 module_expsym_cmds | \
17447 old_archive_from_expsyms_cmds | \
17448 export_symbols_cmds | \
17449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17450 postinstall_cmds | postuninstall_cmds | \
17451 old_postinstall_cmds | old_postuninstall_cmds | \
17452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17453 # Double-quote double-evaled strings.
17454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17463 *'\$0 --fallback-echo"')
17464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17468 cfgfile="${ofile}T"
17469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17471 { echo "$as_me:$LINENO: creating $ofile" >&5
17472 echo "$as_me: creating $ofile" >&6;}
17474 cat <<__EOF__ >> "$cfgfile"
17477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17482 # Free Software Foundation, Inc.
17484 # This file is part of GNU Libtool:
17485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17487 # This program is free software; you can redistribute it and/or modify
17488 # it under the terms of the GNU General Public License as published by
17489 # the Free Software Foundation; either version 2 of the License, or
17490 # (at your option) any later version.
17492 # This program is distributed in the hope that it will be useful, but
17493 # WITHOUT ANY WARRANTY; without even the implied warranty of
17494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17495 # General Public License for more details.
17497 # You should have received a copy of the GNU General Public License
17498 # along with this program; if not, write to the Free Software
17499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17501 # As a special exception to the GNU General Public License, if you
17502 # distribute this file as part of a program that contains a
17503 # configuration script generated by Autoconf, you may include it under
17504 # the same distribution terms that you use for the rest of that program.
17506 # A sed program that does not truncate output.
17509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17510 Xsed="$SED -e 1s/^X//"
17512 # The HP-UX ksh and POSIX shell print the target directory to stdout
17513 # if CDPATH is set.
17514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17516 # The names of the tagged configurations supported by this script.
17519 # ### BEGIN LIBTOOL CONFIG
17521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17523 # Shell to use when invoking shell scripts.
17526 # Whether or not to build shared libraries.
17527 build_libtool_libs=$enable_shared
17529 # Whether or not to build static libraries.
17530 build_old_libs=$enable_static
17532 # Whether or not to add -lc for building shared libraries.
17533 build_libtool_need_lc=$archive_cmds_need_lc
17535 # Whether or not to disallow shared libs when runtime libs are static
17536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17538 # Whether or not to optimize for fast installation.
17539 fast_install=$enable_fast_install
17542 host_alias=$host_alias
17546 # The build system.
17547 build_alias=$build_alias
17551 # An echo program that does not interpret backslashes.
17556 AR_FLAGS=$lt_AR_FLAGS
17561 # LTCC compiler flags.
17562 LTCFLAGS=$lt_LTCFLAGS
17564 # A language-specific compiler.
17567 # Is the compiler the GNU C compiler?
17573 # The linker used to build libraries.
17576 # Whether we need hard or soft links.
17579 # A BSD-compatible nm program.
17582 # A symbol stripping program
17585 # Used to examine libraries when file_magic_cmd begins "file"
17586 MAGIC_CMD=$MAGIC_CMD
17588 # Used on cygwin: DLL creation program.
17591 # Used on cygwin: object dumper.
17594 # Used on cygwin: assembler.
17597 # The name of the directory that contains temporary libtool files.
17600 # How to create reloadable object files.
17601 reload_flag=$lt_reload_flag
17602 reload_cmds=$lt_reload_cmds
17604 # How to pass a linker flag through the compiler.
17605 wl=$lt_lt_prog_compiler_wl
17607 # Object file suffix (normally "o").
17608 objext="$ac_objext"
17610 # Old archive suffix (normally "a").
17613 # Shared library suffix (normally ".so").
17614 shrext_cmds='$shrext_cmds'
17616 # Executable file suffix (normally "").
17619 # Additional compiler flags for building library objects.
17620 pic_flag=$lt_lt_prog_compiler_pic
17623 # What is the maximum length of a command?
17624 max_cmd_len=$lt_cv_sys_max_cmd_len
17626 # Does compiler simultaneously support -c and -o options?
17627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17629 # Must we lock files when doing compilation?
17630 need_locks=$lt_need_locks
17632 # Do we need the lib prefix for modules?
17633 need_lib_prefix=$need_lib_prefix
17635 # Do we need a version for libraries?
17636 need_version=$need_version
17638 # Whether dlopen is supported.
17639 dlopen_support=$enable_dlopen
17641 # Whether dlopen of programs is supported.
17642 dlopen_self=$enable_dlopen_self
17644 # Whether dlopen of statically linked programs is supported.
17645 dlopen_self_static=$enable_dlopen_self_static
17647 # Compiler flag to prevent dynamic linking.
17648 link_static_flag=$lt_lt_prog_compiler_static
17650 # Compiler flag to turn off builtin functions.
17651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17653 # Compiler flag to allow reflexive dlopens.
17654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17656 # Compiler flag to generate shared objects directly from archives.
17657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17659 # Compiler flag to generate thread-safe objects.
17660 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17662 # Library versioning type.
17663 version_type=$version_type
17665 # Format of library name prefix.
17666 libname_spec=$lt_libname_spec
17668 # List of archive names. First name is the real one, the rest are links.
17669 # The last name is the one that the linker finds with -lNAME.
17670 library_names_spec=$lt_library_names_spec
17672 # The coded name of the library, if different from the real name.
17673 soname_spec=$lt_soname_spec
17675 # Commands used to build and install an old-style archive.
17677 old_archive_cmds=$lt_old_archive_cmds
17678 old_postinstall_cmds=$lt_old_postinstall_cmds
17679 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17681 # Create an old-style archive from a shared archive.
17682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17684 # Create a temporary old-style archive to link instead of a shared archive.
17685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17687 # Commands used to build and install a shared archive.
17688 archive_cmds=$lt_archive_cmds
17689 archive_expsym_cmds=$lt_archive_expsym_cmds
17690 postinstall_cmds=$lt_postinstall_cmds
17691 postuninstall_cmds=$lt_postuninstall_cmds
17693 # Commands used to build a loadable module (assumed same as above if empty)
17694 module_cmds=$lt_module_cmds
17695 module_expsym_cmds=$lt_module_expsym_cmds
17697 # Commands to strip libraries.
17698 old_striplib=$lt_old_striplib
17699 striplib=$lt_striplib
17701 # Dependencies to place before the objects being linked to create a
17703 predep_objects=$lt_predep_objects
17705 # Dependencies to place after the objects being linked to create a
17707 postdep_objects=$lt_postdep_objects
17709 # Dependencies to place before the objects being linked to create a
17711 predeps=$lt_predeps
17713 # Dependencies to place after the objects being linked to create a
17715 postdeps=$lt_postdeps
17717 # The library search path used internally by the compiler when linking
17718 # a shared library.
17719 compiler_lib_search_path=$lt_compiler_lib_search_path
17721 # Method to check whether dependent libraries are shared objects.
17722 deplibs_check_method=$lt_deplibs_check_method
17724 # Command to use when deplibs_check_method == file_magic.
17725 file_magic_cmd=$lt_file_magic_cmd
17727 # Flag that allows shared libraries with undefined symbols to be built.
17728 allow_undefined_flag=$lt_allow_undefined_flag
17730 # Flag that forces no undefined symbols.
17731 no_undefined_flag=$lt_no_undefined_flag
17733 # Commands used to finish a libtool library installation in a directory.
17734 finish_cmds=$lt_finish_cmds
17736 # Same as above, but a single script fragment to be evaled but not shown.
17737 finish_eval=$lt_finish_eval
17739 # Take the output of nm and produce a listing of raw symbols and C names.
17740 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17742 # Transform the output of nm in a proper C declaration
17743 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17745 # Transform the output of nm in a C name address pair
17746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17748 # This is the shared library runtime path variable.
17749 runpath_var=$runpath_var
17751 # This is the shared library path variable.
17752 shlibpath_var=$shlibpath_var
17754 # Is shlibpath searched before the hard-coded library search path?
17755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17757 # How to hardcode a shared library path into an executable.
17758 hardcode_action=$hardcode_action
17760 # Whether we should hardcode library paths into libraries.
17761 hardcode_into_libs=$hardcode_into_libs
17763 # Flag to hardcode \$libdir into a binary during linking.
17764 # This must work even if \$libdir does not exist.
17765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17767 # If ld is used when linking, flag to hardcode \$libdir into
17768 # a binary during linking. This must work even if \$libdir does
17770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17772 # Whether we need a single -rpath flag with a separated argument.
17773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17775 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17776 # resulting binary.
17777 hardcode_direct=$hardcode_direct
17779 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17780 # resulting binary.
17781 hardcode_minus_L=$hardcode_minus_L
17783 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17784 # the resulting binary.
17785 hardcode_shlibpath_var=$hardcode_shlibpath_var
17787 # Set to yes if building a shared library automatically hardcodes DIR into the library
17788 # and all subsequent libraries and executables linked against it.
17789 hardcode_automatic=$hardcode_automatic
17791 # Variables whose values should be saved in libtool wrapper scripts and
17792 # restored at relink time.
17793 variables_saved_for_relink="$variables_saved_for_relink"
17795 # Whether libtool must link a program against all its dependency libraries.
17796 link_all_deplibs=$link_all_deplibs
17798 # Compile-time system search path for libraries
17799 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17801 # Run-time system search path for libraries
17802 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17804 # Fix the shell variable \$srcfile for the compiler.
17805 fix_srcfile_path="$fix_srcfile_path"
17807 # Set to yes if exported symbols are required.
17808 always_export_symbols=$always_export_symbols
17810 # The commands to list exported symbols.
17811 export_symbols_cmds=$lt_export_symbols_cmds
17813 # The commands to extract the exported symbol list from a shared archive.
17814 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17816 # Symbols that should not be listed in the preloaded symbols.
17817 exclude_expsyms=$lt_exclude_expsyms
17819 # Symbols that must always be exported.
17820 include_expsyms=$lt_include_expsyms
17822 # ### END LIBTOOL CONFIG
17829 cat <<\EOF >> "$cfgfile"
17831 # AIX sometimes has problems with the GCC collect2 program. For some
17832 # reason, if we set the COLLECT_NAMES environment variable, the problems
17833 # vanish in a puff of smoke.
17834 if test "X${COLLECT_NAMES+set}" != Xset; then
17836 export COLLECT_NAMES
17842 # We use sed instead of cat because bash on DJGPP gets confused if
17843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17844 # text mode, it properly converts lines to CR/LF. This bash problem
17845 # is reportedly fixed, but why not run on old versions too?
17846 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17848 mv -f "$cfgfile" "$ofile" || \
17849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17853 # If there is no Makefile yet, we rely on a make rule to execute
17854 # `config.status --recheck' to rerun these tests and create the
17855 # libtool script then.
17856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17857 if test -f "$ltmain_in"; then
17858 test -f Makefile && make "$ltmain"
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17872 # Check whether --with-tags was given.
17873 if test "${with_tags+set}" = set; then
17874 withval=$with_tags; tagnames="$withval"
17878 if test -f "$ltmain" && test -n "$tagnames"; then
17879 if test ! -f "${ofile}"; then
17880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17881 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17884 if test -z "$LTCC"; then
17885 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17886 if test -z "$LTCC"; then
17887 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17888 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17890 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17891 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17894 if test -z "$LTCFLAGS"; then
17895 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17898 # Extract list of available tagged configurations in $ofile.
17899 # Note that this assumes the entire list is on one line.
17900 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17903 for tagname in $tagnames; do
17905 # Check whether tagname contains only valid characters
17906 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17908 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17909 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17910 { (exit 1); exit 1; }; }
17914 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17916 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17917 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17918 { (exit 1); exit 1; }; }
17921 # Update the list of available tags.
17922 if test -n "$tagname"; then
17923 echo appending configuration tag \"$tagname\" to $ofile
17927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17928 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17929 (test "X$CXX" != "Xg++"))) ; then
17931 ac_cpp='$CXXCPP $CPPFLAGS'
17932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17939 archive_cmds_need_lc_CXX=no
17940 allow_undefined_flag_CXX=
17941 always_export_symbols_CXX=no
17942 archive_expsym_cmds_CXX=
17943 export_dynamic_flag_spec_CXX=
17944 hardcode_direct_CXX=no
17945 hardcode_libdir_flag_spec_CXX=
17946 hardcode_libdir_flag_spec_ld_CXX=
17947 hardcode_libdir_separator_CXX=
17948 hardcode_minus_L_CXX=no
17949 hardcode_shlibpath_var_CXX=unsupported
17950 hardcode_automatic_CXX=no
17952 module_expsym_cmds_CXX=
17953 link_all_deplibs_CXX=unknown
17954 old_archive_cmds_CXX=$old_archive_cmds
17955 no_undefined_flag_CXX=
17956 whole_archive_flag_spec_CXX=
17957 enable_shared_with_static_runtimes_CXX=no
17959 # Dependencies to place before and after the object being linked:
17960 predep_objects_CXX=
17961 postdep_objects_CXX=
17964 compiler_lib_search_path_CXX=
17966 # Source file extension for C++ test sources.
17969 # Object file extension for compiled C++ test sources.
17973 # Code to be used in simple compile tests
17974 lt_simple_compile_test_code="int some_variable = 0;\n"
17976 # Code to be used in simple link tests
17977 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17981 # If no C compiler was specified, use CC.
17984 # If no C compiler flags were specified, use CFLAGS.
17985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17987 # Allow CC to be a program name with arguments.
17991 # save warnings/boilerplate of simple test code
17992 ac_outfile=conftest.$ac_objext
17993 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17995 _lt_compiler_boilerplate=`cat conftest.err`
17998 ac_outfile=conftest.$ac_objext
17999 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18001 _lt_linker_boilerplate=`cat conftest.err`
18005 # Allow CC to be a program name with arguments.
18010 lt_save_with_gnu_ld=$with_gnu_ld
18011 lt_save_path_LD=$lt_cv_path_LD
18012 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18013 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18015 $as_unset lt_cv_prog_gnu_ld
18017 if test -n "${lt_cv_path_LDCXX+set}"; then
18018 lt_cv_path_LD=$lt_cv_path_LDCXX
18020 $as_unset lt_cv_path_LD
18022 test -z "${LDCXX+set}" || LD=$LDCXX
18026 for cc_temp in $compiler""; do
18028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18037 # We don't want -fno-exception wen compiling C++ code, so set the
18038 # no_builtin_flag separately
18039 if test "$GXX" = yes; then
18040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18042 lt_prog_compiler_no_builtin_flag_CXX=
18045 if test "$GXX" = yes; then
18046 # Set up default GNU C++ configuration
18049 # Check whether --with-gnu-ld was given.
18050 if test "${with_gnu_ld+set}" = set; then
18051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18057 if test "$GCC" = yes; then
18058 # Check if gcc -print-prog-name=ld gives a path.
18059 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18063 # gcc leaves a trailing carriage return which upsets mingw
18064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18069 # Accept absolute paths.
18071 re_direlt='/[^/][^/]*/\.\./'
18072 # Canonicalize the pathname of ld
18073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18077 test -z "$LD" && LD="$ac_prog"
18080 # If it fails, then pretend we aren't using GCC.
18084 # If it is relative, then search for the first ld in PATH.
18085 with_gnu_ld=unknown
18088 elif test "$with_gnu_ld" = yes; then
18089 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18092 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18095 if test "${lt_cv_path_LD+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 if test -z "$LD"; then
18099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18100 for ac_dir in $PATH; do
18102 test -z "$ac_dir" && ac_dir=.
18103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18104 lt_cv_path_LD="$ac_dir/$ac_prog"
18105 # Check to see if the program is GNU ld. I'd rather use --version,
18106 # but apparently some variants of GNU ld only accept -v.
18107 # Break only if it was the GNU/non-GNU ld that we prefer.
18108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18109 *GNU* | *'with BFD'*)
18110 test "$with_gnu_ld" != no && break
18113 test "$with_gnu_ld" != yes && break
18120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18124 LD="$lt_cv_path_LD"
18125 if test -n "$LD"; then
18126 { echo "$as_me:$LINENO: result: $LD" >&5
18127 echo "${ECHO_T}$LD" >&6; }
18129 { echo "$as_me:$LINENO: result: no" >&5
18130 echo "${ECHO_T}no" >&6; }
18132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18134 { (exit 1); exit 1; }; }
18135 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18141 case `$LD -v 2>&1 </dev/null` in
18142 *GNU* | *'with BFD'*)
18143 lt_cv_prog_gnu_ld=yes
18146 lt_cv_prog_gnu_ld=no
18150 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18152 with_gnu_ld=$lt_cv_prog_gnu_ld
18156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18157 # archiving commands below assume that GNU ld is being used.
18158 if test "$with_gnu_ld" = yes; then
18159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18160 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'
18162 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18165 # If archive_cmds runs LD, not CC, wlarc should be empty
18166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18167 # investigate it a little bit more. (MM)
18170 # ancient GNU ld didn't support --whole-archive et. al.
18171 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18172 grep 'no-whole-archive' > /dev/null; then
18173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18175 whole_archive_flag_spec_CXX=
18181 # A generic and very simple default shared library creation
18182 # command for GNU C++ for the case where it uses the native
18183 # linker, instead of GNU ld. If possible, this setting should
18184 # overridden to take advantage of the native linker features on
18185 # the platform it is being used on.
18186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18189 # Commands to make compiler produce verbose output that lists
18190 # what "hidden" libraries, object files and flags are used when
18191 # linking a shared library.
18192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18200 # PORTME: fill in a description of your system's C++ link characteristics
18201 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18206 # FIXME: insert proper C++ library support
18210 if test "$host_cpu" = ia64; then
18211 # On IA64, the linker does run time linking by default, so we don't
18212 # have to do anything special.
18213 aix_use_runtimelinking=no
18214 exp_sym_flag='-Bexport'
18217 aix_use_runtimelinking=no
18219 # Test if we are trying to use run time linking or normal
18220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18221 # need to do runtime linking.
18222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18223 for ld_flag in $LDFLAGS; do
18226 aix_use_runtimelinking=yes
18234 exp_sym_flag='-bexport'
18235 no_entry_flag='-bnoentry'
18238 # When large executables or shared objects are built, AIX ld can
18239 # have problems creating the table of contents. If linking a library
18240 # or program results in "error TOC overflow" add -mminimal-toc to
18241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18244 archive_cmds_CXX=''
18245 hardcode_direct_CXX=yes
18246 hardcode_libdir_separator_CXX=':'
18247 link_all_deplibs_CXX=yes
18249 if test "$GXX" = yes; then
18250 case $host_os in aix4.[012]|aix4.[012].*)
18251 # We only want to do this on AIX 4.2 and lower, the check
18252 # below for broken collect2 doesn't work under 4.3+
18253 collect2name=`${CC} -print-prog-name=collect2`
18254 if test -f "$collect2name" && \
18255 strings "$collect2name" | grep resolve_lib_name >/dev/null
18257 # We have reworked collect2
18258 hardcode_direct_CXX=yes
18260 # We have old collect2
18261 hardcode_direct_CXX=unsupported
18262 # It fails to find uninstalled libraries when the uninstalled
18263 # path is not listed in the libpath. Setting hardcode_minus_L
18264 # to unsupported forces relinking
18265 hardcode_minus_L_CXX=yes
18266 hardcode_libdir_flag_spec_CXX='-L$libdir'
18267 hardcode_libdir_separator_CXX=
18271 shared_flag='-shared'
18272 if test "$aix_use_runtimelinking" = yes; then
18273 shared_flag="$shared_flag "'${wl}-G'
18277 if test "$host_cpu" = ia64; then
18278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18279 # chokes on -Wl,-G. The following line is correct:
18282 if test "$aix_use_runtimelinking" = yes; then
18283 shared_flag='${wl}-G'
18285 shared_flag='${wl}-bM:SRE'
18290 # It seems that -bexpall does not export symbols beginning with
18291 # underscore (_), so it is better to generate a list of symbols to export.
18292 always_export_symbols_CXX=yes
18293 if test "$aix_use_runtimelinking" = yes; then
18294 # Warning - without using the other runtime loading flags (-brtl),
18295 # -berok will link without error, but may produce a broken library.
18296 allow_undefined_flag_CXX='-berok'
18297 # Determine the default libpath from the value encoded in an empty executable.
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18350 # Check for a 64-bit object if we didn't find anything.
18351 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; }
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18360 rm -f core conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18366 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"
18368 if test "$host_cpu" = ia64; then
18369 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18370 allow_undefined_flag_CXX="-z nodefs"
18371 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"
18373 # Determine the default libpath from the value encoded in an empty executable.
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (ac_try="$ac_link"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_link") 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18404 { (case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_try") 2>&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; } &&
18413 { ac_try='test -s conftest$ac_exeext'
18414 { (case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_try") 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18426 # Check for a 64-bit object if we didn't find anything.
18427 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18436 rm -f core conftest.err conftest.$ac_objext \
18437 conftest$ac_exeext conftest.$ac_ext
18438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18440 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18441 # Warning - without using the other run time loading flags,
18442 # -berok will link without error, but may produce a broken library.
18443 no_undefined_flag_CXX=' ${wl}-bernotok'
18444 allow_undefined_flag_CXX=' ${wl}-berok'
18445 # Exported symbols can be pulled into shared objects from archives
18446 whole_archive_flag_spec_CXX='$convenience'
18447 archive_cmds_need_lc_CXX=yes
18448 # This is similar to how AIX traditionally builds its shared libraries.
18449 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'
18455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18456 allow_undefined_flag_CXX=unsupported
18457 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18458 # support --undefined. This deserves some investigation. FIXME
18459 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18466 case $cc_basename in
18468 # FIXME: insert proper C++ library support
18474 cygwin* | mingw* | pw32*)
18475 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18476 # as there is no search path for DLLs.
18477 hardcode_libdir_flag_spec_CXX='-L$libdir'
18478 allow_undefined_flag_CXX=unsupported
18479 always_export_symbols_CXX=no
18480 enable_shared_with_static_runtimes_CXX=yes
18482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18483 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'
18484 # If the export-symbols file already is a .def file (1st line
18485 # is EXPORTS), use it as is; otherwise, prepend...
18486 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18487 cp $export_symbols $output_objdir/$soname.def;
18489 echo EXPORTS > $output_objdir/$soname.def;
18490 cat $export_symbols >> $output_objdir/$soname.def;
18492 $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'
18497 darwin* | rhapsody*)
18499 rhapsody* | darwin1.[012])
18500 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18503 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18504 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18506 case ${MACOSX_DEPLOYMENT_TARGET} in
18508 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18511 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18517 archive_cmds_need_lc_CXX=no
18518 hardcode_direct_CXX=no
18519 hardcode_automatic_CXX=yes
18520 hardcode_shlibpath_var_CXX=unsupported
18521 whole_archive_flag_spec_CXX=''
18522 link_all_deplibs_CXX=yes
18524 if test "$GXX" = yes ; then
18525 lt_int_apple_cc_single_mod=no
18526 output_verbose_link_cmd='echo'
18527 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18528 lt_int_apple_cc_single_mod=yes
18530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18531 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18533 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'
18535 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18537 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18538 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}'
18540 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}'
18542 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}'
18544 case $cc_basename in
18546 output_verbose_link_cmd='echo'
18547 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'
18548 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18550 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}'
18551 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}'
18561 case $cc_basename in
18563 # FIXME: insert proper C++ library support
18567 # Green Hills C++ Compiler
18568 # FIXME: insert proper C++ library support
18572 # FIXME: insert proper C++ library support
18578 # C++ shared libraries reported to be fairly broken before switch to ELF
18582 archive_cmds_need_lc_CXX=no
18584 freebsd* | kfreebsd*-gnu | dragonfly*)
18585 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18593 hardcode_libdir_separator_CXX=:
18594 export_dynamic_flag_spec_CXX='${wl}-E'
18595 hardcode_direct_CXX=yes
18596 hardcode_minus_L_CXX=yes # Not in the search PATH,
18597 # but as the default
18598 # location of the library.
18600 case $cc_basename in
18602 # FIXME: insert proper C++ library support
18606 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'
18607 # Commands to make compiler produce verbose output that lists
18608 # what "hidden" libraries, object files and flags are used when
18609 # linking a shared library.
18611 # There doesn't appear to be a way to prevent this compiler from
18612 # explicitly linking system object files so we need to strip them
18613 # from the output so that they don't get included in the library
18615 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'
18618 if test "$GXX" = yes; then
18619 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'
18621 # FIXME: insert proper C++ library support
18628 if test $with_gnu_ld = no; then
18629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18630 hardcode_libdir_separator_CXX=:
18634 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18637 export_dynamic_flag_spec_CXX='${wl}-E'
18643 hardcode_direct_CXX=no
18644 hardcode_shlibpath_var_CXX=no
18647 hardcode_direct_CXX=yes
18648 hardcode_minus_L_CXX=yes # Not in the search PATH,
18649 # but as the default
18650 # location of the library.
18654 case $cc_basename in
18656 # FIXME: insert proper C++ library support
18662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18668 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18671 # Commands to make compiler produce verbose output that lists
18672 # what "hidden" libraries, object files and flags are used when
18673 # linking a shared library.
18675 # There doesn't appear to be a way to prevent this compiler from
18676 # explicitly linking system object files so we need to strip them
18677 # from the output so that they don't get included in the library
18679 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'
18682 if test "$GXX" = yes; then
18683 if test $with_gnu_ld = no; then
18686 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18689 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18692 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'
18697 # FIXME: insert proper C++ library support
18704 hardcode_direct_CXX=no
18705 hardcode_shlibpath_var_CXX=no
18706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18707 export_dynamic_flag_spec_CXX='${wl}-E'
18708 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18709 # Instead, shared libraries are loaded at an image base (0x10000000 by
18710 # default) and relocated if they conflict, which is a slow very memory
18711 # consuming and fragmenting process. To avoid this, we pick a random,
18712 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18713 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18714 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'
18715 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'
18718 case $cc_basename in
18721 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'
18723 # Archives containing C++ object files must be created using
18724 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18725 # necessary to make sure instantiated templates are included
18727 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18730 if test "$GXX" = yes; then
18731 if test "$with_gnu_ld" = no; then
18732 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'
18734 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'
18737 link_all_deplibs_CXX=yes
18740 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18741 hardcode_libdir_separator_CXX=:
18744 case $cc_basename in
18746 # Kuck and Associates, Inc. (KAI) C++ Compiler
18748 # KCC will only create a shared library if the output file
18749 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18750 # to its proper name (with version) after linking.
18751 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'
18752 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'
18753 # Commands to make compiler produce verbose output that lists
18754 # what "hidden" libraries, object files and flags are used when
18755 # linking a shared library.
18757 # There doesn't appear to be a way to prevent this compiler from
18758 # explicitly linking system object files so we need to strip them
18759 # from the output so that they don't get included in the library
18761 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'
18763 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18766 # Archives containing C++ object files must be created using
18767 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18768 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18773 # version 8.0 and above of icpc choke on multiply defined symbols
18774 # if we add $predep_objects and $postdep_objects, however 7.1 and
18775 # earlier do not add the objects themselves.
18776 case `$CC -V 2>&1` in
18778 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18779 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'
18781 *) # Version 8.0 or newer
18784 ia64*) tmp_idyn=' -i_dynamic';;
18786 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787 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'
18790 archive_cmds_need_lc_CXX=no
18791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18793 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18796 # Portland Group C++ compiler
18797 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18798 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'
18800 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18802 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'
18806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18807 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'
18809 runpath_var=LD_RUN_PATH
18810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811 hardcode_libdir_separator_CXX=:
18813 # Commands to make compiler produce verbose output that lists
18814 # what "hidden" libraries, object files and flags are used when
18815 # linking a shared library.
18817 # There doesn't appear to be a way to prevent this compiler from
18818 # explicitly linking system object files so we need to strip them
18819 # from the output so that they don't get included in the library
18821 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'
18826 # FIXME: insert proper C++ library support
18830 # FIXME: insert proper C++ library support
18834 case $cc_basename in
18836 # FIXME: insert proper C++ library support
18840 # FIXME: insert proper C++ library support
18846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18847 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18849 hardcode_libdir_flag_spec_CXX='-R$libdir'
18850 hardcode_direct_CXX=yes
18851 hardcode_shlibpath_var_CXX=no
18853 # Workaround some broken pre-1.5 toolchains
18854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18857 # C++ shared libraries are fairly broken
18861 hardcode_direct_CXX=yes
18862 hardcode_shlibpath_var_CXX=no
18863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18867 export_dynamic_flag_spec_CXX='${wl}-E'
18868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18870 output_verbose_link_cmd='echo'
18873 case $cc_basename in
18875 # Kuck and Associates, Inc. (KAI) C++ Compiler
18877 # KCC will only create a shared library if the output file
18878 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18879 # to its proper name (with version) after linking.
18880 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'
18882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18883 hardcode_libdir_separator_CXX=:
18885 # Archives containing C++ object files must be created using
18886 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18887 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18891 # Rational C++ 2.4.1
18892 # FIXME: insert proper C++ library support
18896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18897 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'
18899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900 hardcode_libdir_separator_CXX=:
18902 # Commands to make compiler produce verbose output that lists
18903 # what "hidden" libraries, object files and flags are used when
18904 # linking a shared library.
18906 # There doesn't appear to be a way to prevent this compiler from
18907 # explicitly linking system object files so we need to strip them
18908 # from the output so that they don't get included in the library
18910 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'
18913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18915 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'
18917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18918 hardcode_libdir_separator_CXX=:
18920 # Commands to make compiler produce verbose output that lists
18921 # what "hidden" libraries, object files and flags are used when
18922 # linking a shared library.
18923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18926 # FIXME: insert proper C++ library support
18933 case $cc_basename in
18935 # Kuck and Associates, Inc. (KAI) C++ Compiler
18937 # KCC will only create a shared library if the output file
18938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18939 # to its proper name (with version) after linking.
18940 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'
18942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18943 hardcode_libdir_separator_CXX=:
18945 # Archives containing C++ object files must be created using
18946 # the KAI C++ compiler.
18947 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18950 # Rational C++ 2.4.1
18951 # FIXME: insert proper C++ library support
18955 allow_undefined_flag_CXX=' -expect_unresolved \*'
18956 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'
18957 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18958 echo "-hidden">> $lib.exp~
18959 $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~
18962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18963 hardcode_libdir_separator_CXX=:
18965 # Commands to make compiler produce verbose output that lists
18966 # what "hidden" libraries, object files and flags are used when
18967 # linking a shared library.
18969 # There doesn't appear to be a way to prevent this compiler from
18970 # explicitly linking system object files so we need to strip them
18971 # from the output so that they don't get included in the library
18973 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'
18976 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18977 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18978 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'
18980 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18981 hardcode_libdir_separator_CXX=:
18983 # Commands to make compiler produce verbose output that lists
18984 # what "hidden" libraries, object files and flags are used when
18985 # linking a shared library.
18986 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18989 # FIXME: insert proper C++ library support
18996 # FIXME: insert proper C++ library support
19000 case $cc_basename in
19003 # FIXME: insert proper C++ library support
19008 # FIXME: insert proper C++ library support
19012 # FIXME: insert proper C++ library support
19018 case $cc_basename in
19020 # Sun C++ 4.2, 5.x and Centerline C++
19021 archive_cmds_need_lc_CXX=yes
19022 no_undefined_flag_CXX=' -zdefs'
19023 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19024 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19025 $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'
19027 hardcode_libdir_flag_spec_CXX='-R$libdir'
19028 hardcode_shlibpath_var_CXX=no
19030 solaris2.[0-5] | solaris2.[0-5].*) ;;
19032 # The C++ compiler is used as linker so we must use $wl
19033 # flag to pass the commands to the underlying system
19034 # linker. We must also pass each convience library through
19035 # to the system linker between allextract/defaultextract.
19036 # The C++ compiler will combine linker options so we
19037 # cannot just pass the convience library names through
19039 # Supported since Solaris 2.6 (maybe 2.5.1?)
19040 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'
19043 link_all_deplibs_CXX=yes
19045 output_verbose_link_cmd='echo'
19047 # Archives containing C++ object files must be created using
19048 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19049 # necessary to make sure instantiated templates are included
19051 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19054 # Green Hills C++ Compiler
19055 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19057 # The C++ compiler must be used to create the archive.
19058 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19061 # GNU C++ compiler with Solaris linker
19062 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19063 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19064 if $CC --version | grep -v '^2\.7' > /dev/null; then
19065 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19066 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19067 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19069 # Commands to make compiler produce verbose output that lists
19070 # what "hidden" libraries, object files and flags are used when
19071 # linking a shared library.
19072 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19074 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19076 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19077 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19078 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19080 # Commands to make compiler produce verbose output that lists
19081 # what "hidden" libraries, object files and flags are used when
19082 # linking a shared library.
19083 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19086 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19092 no_undefined_flag_CXX='${wl}-z,text'
19093 archive_cmds_need_lc_CXX=no
19094 hardcode_shlibpath_var_CXX=no
19095 runpath_var='LD_RUN_PATH'
19097 case $cc_basename in
19099 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19100 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19103 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19104 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19108 sysv5* | sco3.2v5* | sco5v6*)
19109 # Note: We can NOT use -z defs as we might desire, because we do not
19110 # link with -lc, and that would cause any symbols used from libc to
19111 # always be unresolved, which means just about no library would
19112 # ever link correctly. If we're not using GNU ld we use -z text
19113 # though, which does catch some bad symbols but isn't as heavy-handed
19115 # For security reasons, it is highly recommended that you always
19116 # use absolute paths for naming shared libraries, and exclude the
19117 # DT_RUNPATH tag from executables and libraries. But doing so
19118 # requires that you compile everything twice, which is a pain.
19119 # So that behaviour is only enabled if SCOABSPATH is set to a
19120 # non-empty value in the environment. Most likely only useful for
19121 # creating official distributions of packages.
19122 # This is a hack until libtool officially supports absolute path
19123 # names for shared libraries.
19124 no_undefined_flag_CXX='${wl}-z,text'
19125 allow_undefined_flag_CXX='${wl}-z,nodefs'
19126 archive_cmds_need_lc_CXX=no
19127 hardcode_shlibpath_var_CXX=no
19128 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19129 hardcode_libdir_separator_CXX=':'
19130 link_all_deplibs_CXX=yes
19131 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19132 runpath_var='LD_RUN_PATH'
19134 case $cc_basename in
19136 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19137 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19140 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19146 case $cc_basename in
19148 # NonStop-UX NCC 3.20
19149 # FIXME: insert proper C++ library support
19153 # FIXME: insert proper C++ library support
19159 # FIXME: insert proper C++ library support
19163 # FIXME: insert proper C++ library support
19167 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19168 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19169 test "$ld_shlibs_CXX" = no && can_build_shared=no
19175 cat > conftest.$ac_ext <<EOF
19179 Foo (void) { a = 0; }
19185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186 (eval $ac_compile) 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; then
19190 # Parse the compiler output and extract the necessary
19191 # objects, libraries and library flags.
19193 # Sentinel used to keep track of whether or not we are before
19194 # the conftest object file.
19195 pre_test_object_deps_done=no
19197 # The `*' in the case matches for architectures that use `case' in
19198 # $output_verbose_cmd can trigger glob expansion during the loop
19199 # eval without this substitution.
19200 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19202 for p in `eval $output_verbose_link_cmd`; do
19206 # Some compilers place space between "-{L,R}" and the path.
19207 # Remove the space.
19208 if test $p = "-L" \
19209 || test $p = "-R"; then
19216 if test "$pre_test_object_deps_done" = no; then
19219 # Internal compiler library paths should come after those
19220 # provided the user. The postdeps already come after the
19221 # user supplied libs so there is no need to process them.
19222 if test -z "$compiler_lib_search_path_CXX"; then
19223 compiler_lib_search_path_CXX="${prev}${p}"
19225 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19228 # The "-l" case would never come before the object being
19229 # linked, so don't bother handling this case.
19232 if test -z "$postdeps_CXX"; then
19233 postdeps_CXX="${prev}${p}"
19235 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19241 # This assumes that the test object file only shows up
19242 # once in the compiler output.
19243 if test "$p" = "conftest.$objext"; then
19244 pre_test_object_deps_done=yes
19248 if test "$pre_test_object_deps_done" = no; then
19249 if test -z "$predep_objects_CXX"; then
19250 predep_objects_CXX="$p"
19252 predep_objects_CXX="$predep_objects_CXX $p"
19255 if test -z "$postdep_objects_CXX"; then
19256 postdep_objects_CXX="$p"
19258 postdep_objects_CXX="$postdep_objects_CXX $p"
19263 *) ;; # Ignore the rest.
19271 echo "libtool.m4: error: problem compiling CXX test program"
19274 $rm -f confest.$objext
19276 # PORTME: override above test on systems where it is broken
19279 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19280 # hack all around it, let's just trust "g++" to DTRT.
19281 predep_objects_CXX=
19282 postdep_objects_CXX=
19287 case $cc_basename in
19289 # Adding this requires a known-good setup of shared libraries for
19290 # Sun compiler versions before 5.6, else PIC objects from an old
19291 # archive will be linked into the output, leading to subtle bugs.
19292 postdeps_CXX='-lCstd -lCrun'
19299 case " $postdeps_CXX " in
19300 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19303 lt_prog_compiler_wl_CXX=
19304 lt_prog_compiler_pic_CXX=
19305 lt_prog_compiler_static_CXX=
19307 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19308 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19310 # C++ specific cases for pic, static, wl, etc.
19311 if test "$GXX" = yes; then
19312 lt_prog_compiler_wl_CXX='-Wl,'
19313 lt_prog_compiler_static_CXX='-static'
19317 # All AIX code is PIC.
19318 if test "$host_cpu" = ia64; then
19319 # AIX 5 now supports IA64 processor
19320 lt_prog_compiler_static_CXX='-Bstatic'
19324 # FIXME: we need at least 68020 code to build shared libraries, but
19325 # adding the `-m68020' flag to GCC prevents building anything better,
19327 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19329 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19330 # PIC is the default for these OSes.
19332 mingw* | os2* | pw32*)
19333 # This hack is so that the source file can tell whether it is being
19334 # built for inclusion in a dll (and should export symbols for example).
19335 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19337 darwin* | rhapsody*)
19338 # PIC is the default on this platform
19339 # Common symbols not allowed in MH_DYLIB files
19340 lt_prog_compiler_pic_CXX='-fno-common'
19343 # DJGPP does not support shared libraries at all
19344 lt_prog_compiler_pic_CXX=
19347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19348 # Instead, we relocate shared libraries at runtime.
19351 if test -d /usr/nec; then
19352 lt_prog_compiler_pic_CXX=-Kconform_pic
19356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19357 # not for PA HP-UX.
19362 lt_prog_compiler_pic_CXX='-fPIC'
19367 lt_prog_compiler_pic_CXX='-fPIC'
19373 # All AIX code is PIC.
19374 if test "$host_cpu" = ia64; then
19375 # AIX 5 now supports IA64 processor
19376 lt_prog_compiler_static_CXX='-Bstatic'
19378 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19382 case $cc_basename in
19384 # Green Hills C++ Compiler
19385 # _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"
19390 # PIC is the default on this platform
19391 # Common symbols not allowed in MH_DYLIB files
19392 case $cc_basename in
19394 lt_prog_compiler_pic_CXX='-qnocommon'
19395 lt_prog_compiler_wl_CXX='-Wl,'
19400 case $cc_basename in
19402 lt_prog_compiler_pic_CXX='-KPIC'
19405 # Green Hills C++ Compiler
19406 lt_prog_compiler_pic_CXX='-pic'
19412 freebsd* | kfreebsd*-gnu | dragonfly*)
19413 # FreeBSD uses GNU C++
19415 hpux9* | hpux10* | hpux11*)
19416 case $cc_basename in
19418 lt_prog_compiler_wl_CXX='-Wl,'
19419 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19420 if test "$host_cpu" != ia64; then
19421 lt_prog_compiler_pic_CXX='+Z'
19425 lt_prog_compiler_wl_CXX='-Wl,'
19426 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19432 lt_prog_compiler_pic_CXX='+Z'
19441 # This is c89, which is MS Visual C++ (no shared libs)
19442 # Anyone wants to do a port?
19444 irix5* | irix6* | nonstopux*)
19445 case $cc_basename in
19447 lt_prog_compiler_wl_CXX='-Wl,'
19448 lt_prog_compiler_static_CXX='-non_shared'
19449 # CC pic flag -KPIC is the default.
19456 case $cc_basename in
19459 lt_prog_compiler_wl_CXX='--backend -Wl,'
19460 lt_prog_compiler_pic_CXX='-fPIC'
19464 lt_prog_compiler_wl_CXX='-Wl,'
19465 lt_prog_compiler_pic_CXX='-KPIC'
19466 lt_prog_compiler_static_CXX='-static'
19469 # Portland Group C++ compiler.
19470 lt_prog_compiler_wl_CXX='-Wl,'
19471 lt_prog_compiler_pic_CXX='-fpic'
19472 lt_prog_compiler_static_CXX='-Bstatic'
19476 # Make sure the PIC flag is empty. It appears that all Alpha
19477 # Linux and Compaq Tru64 Unix objects are PIC.
19478 lt_prog_compiler_pic_CXX=
19479 lt_prog_compiler_static_CXX='-non_shared'
19490 case $cc_basename in
19492 lt_prog_compiler_pic_CXX='-W c,exportall'
19500 osf3* | osf4* | osf5*)
19501 case $cc_basename in
19503 lt_prog_compiler_wl_CXX='--backend -Wl,'
19506 # Rational C++ 2.4.1
19507 lt_prog_compiler_pic_CXX='-pic'
19510 # Digital/Compaq C++
19511 lt_prog_compiler_wl_CXX='-Wl,'
19512 # Make sure the PIC flag is empty. It appears that all Alpha
19513 # Linux and Compaq Tru64 Unix objects are PIC.
19514 lt_prog_compiler_pic_CXX=
19515 lt_prog_compiler_static_CXX='-non_shared'
19524 case $cc_basename in
19526 # Sun C++ 4.2, 5.x and Centerline C++
19527 lt_prog_compiler_pic_CXX='-KPIC'
19528 lt_prog_compiler_static_CXX='-Bstatic'
19529 lt_prog_compiler_wl_CXX='-Qoption ld '
19532 # Green Hills C++ Compiler
19533 lt_prog_compiler_pic_CXX='-PIC'
19540 case $cc_basename in
19543 lt_prog_compiler_pic_CXX='-pic'
19544 lt_prog_compiler_static_CXX='-Bstatic'
19548 lt_prog_compiler_pic_CXX='-pic'
19555 case $cc_basename in
19557 # NonStop-UX NCC 3.20
19558 lt_prog_compiler_pic_CXX='-KPIC'
19564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19565 case $cc_basename in
19567 lt_prog_compiler_wl_CXX='-Wl,'
19568 lt_prog_compiler_pic_CXX='-KPIC'
19569 lt_prog_compiler_static_CXX='-Bstatic'
19576 lt_prog_compiler_can_build_shared_CXX=no
19581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19582 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19585 # Check to make sure the PIC flag actually works.
19587 if test -n "$lt_prog_compiler_pic_CXX"; then
19589 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19591 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 lt_prog_compiler_pic_works_CXX=no
19595 ac_outfile=conftest.$ac_objext
19596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19597 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19598 # Insert the option either (1) after the last *FLAGS variable, or
19599 # (2) before a word containing "conftest.", or (3) at the end.
19600 # Note that $ac_compile itself does not contain backslashes and begins
19601 # with a dollar sign (not a hyphen), so the echo should work correctly.
19602 # The option is referenced via a variable to avoid confusing sed.
19603 lt_compile=`echo "$ac_compile" | $SED \
19604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19606 -e 's:$: $lt_compiler_flag:'`
19607 (eval echo "\"\$as_me:19607: $lt_compile\"" >&5)
19608 (eval "$lt_compile" 2>conftest.err)
19610 cat conftest.err >&5
19611 echo "$as_me:19611: \$? = $ac_status" >&5
19612 if (exit $ac_status) && test -s "$ac_outfile"; then
19613 # The compiler can only warn and ignore the option if not recognized
19614 # So say no if there are warnings other than the usual output.
19615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19618 lt_prog_compiler_pic_works_CXX=yes
19624 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19625 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19627 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19628 case $lt_prog_compiler_pic_CXX in
19630 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19633 lt_prog_compiler_pic_CXX=
19634 lt_prog_compiler_can_build_shared_CXX=no
19639 # For platforms which do not support PIC, -DPIC is meaningless:
19641 lt_prog_compiler_pic_CXX=
19644 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19649 # Check to make sure the static flag actually works.
19651 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19652 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19654 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 lt_prog_compiler_static_works_CXX=no
19658 save_LDFLAGS="$LDFLAGS"
19659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19660 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19662 # The linker can only warn and ignore the option if not recognized
19663 # So say no if there are warnings
19664 if test -s conftest.err; then
19665 # Append any errors to the config.log.
19666 cat conftest.err 1>&5
19667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19669 if diff conftest.exp conftest.er2 >/dev/null; then
19670 lt_prog_compiler_static_works_CXX=yes
19673 lt_prog_compiler_static_works_CXX=yes
19677 LDFLAGS="$save_LDFLAGS"
19680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19681 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19683 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19686 lt_prog_compiler_static_CXX=
19690 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19692 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 lt_cv_prog_compiler_c_o_CXX=no
19696 $rm -r conftest 2>/dev/null
19700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19702 lt_compiler_flag="-o out/conftest2.$ac_objext"
19703 # Insert the option either (1) after the last *FLAGS variable, or
19704 # (2) before a word containing "conftest.", or (3) at the end.
19705 # Note that $ac_compile itself does not contain backslashes and begins
19706 # with a dollar sign (not a hyphen), so the echo should work correctly.
19707 lt_compile=`echo "$ac_compile" | $SED \
19708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19710 -e 's:$: $lt_compiler_flag:'`
19711 (eval echo "\"\$as_me:19711: $lt_compile\"" >&5)
19712 (eval "$lt_compile" 2>out/conftest.err)
19714 cat out/conftest.err >&5
19715 echo "$as_me:19715: \$? = $ac_status" >&5
19716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19718 # The compiler can only warn and ignore the option if not recognized
19719 # So say no if there are warnings
19720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19723 lt_cv_prog_compiler_c_o_CXX=yes
19728 # SGI C++ compiler will create directory out/ii_files/ for
19729 # template instantiation
19730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19731 $rm out/* && rmdir out
19737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19741 hard_links="nottested"
19742 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19743 # do not overwrite the value of need_locks provided by the user
19744 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19750 ln conftest.a conftest.b 2>&5 || hard_links=no
19751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19752 { echo "$as_me:$LINENO: result: $hard_links" >&5
19753 echo "${ECHO_T}$hard_links" >&6; }
19754 if test "$hard_links" = no; then
19755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19763 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19766 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19769 # If we're using GNU nm, then we don't want the "-C" option.
19770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19771 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19772 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'
19774 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'
19778 export_symbols_cmds_CXX="$ltdll_cmds"
19781 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'
19784 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19788 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19789 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19790 test "$ld_shlibs_CXX" = no && can_build_shared=no
19793 # Do we need to explicitly link libc?
19795 case "x$archive_cmds_need_lc_CXX" in
19797 # Assume -lc should be added
19798 archive_cmds_need_lc_CXX=yes
19800 if test "$enable_shared" = yes && test "$GCC" = yes; then
19801 case $archive_cmds_CXX in
19803 # FIXME: we may have to deal with multi-command sequences.
19806 # Test whether the compiler implicitly links with -lc since on some
19807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19808 # to ld, don't add -lc before -lgcc.
19809 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19815 (eval $ac_compile) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } 2>conftest.err; then
19821 libobjs=conftest.$ac_objext
19823 wl=$lt_prog_compiler_wl_CXX
19824 pic_flag=$lt_prog_compiler_pic_CXX
19830 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19831 allow_undefined_flag_CXX=
19832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19833 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }
19838 archive_cmds_need_lc_CXX=no
19840 archive_cmds_need_lc_CXX=yes
19842 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19844 cat conftest.err 1>&5
19847 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19848 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19855 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19857 library_names_spec=
19858 libname_spec='lib$name'
19862 postuninstall_cmds=
19866 shlibpath_overrides_runpath=unknown
19868 dynamic_linker="$host_os ld.so"
19869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19870 if test "$GCC" = yes; then
19871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19872 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19873 # if the path contains ";" then we assume it to be the separator
19874 # otherwise default to the standard path separator (i.e. ":") - it is
19875 # assumed that no part of a normal pathname contains ";" but that should
19876 # okay in the real world where ";" in dirpaths is itself problematic.
19877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19884 need_lib_prefix=unknown
19885 hardcode_into_libs=no
19887 # when you set need_version to no, make sure it does not cause -set_version
19888 # flags to be left without arguments
19889 need_version=unknown
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19895 shlibpath_var=LIBPATH
19897 # AIX 3 has no versioning support, so we append a major version to the name.
19898 soname_spec='${libname}${release}${shared_ext}$major'
19905 hardcode_into_libs=yes
19906 if test "$host_cpu" = ia64; then
19907 # AIX 5 supports IA64
19908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19909 shlibpath_var=LD_LIBRARY_PATH
19911 # With GCC up to 2.95.x, collect2 would create an import file
19912 # for dependence libraries. The import file would start with
19913 # the line `#! .'. This would cause the generated library to
19914 # depend on `.', always an invalid library. This was fixed in
19915 # development snapshots of GCC prior to 3.0.
19917 aix4 | aix4.[01] | aix4.[01].*)
19918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19923 can_build_shared=no
19927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19928 # soname into executable. Probably we can add versioning support to
19929 # collect2, so additional links can be useful in future.
19930 if test "$aix_use_runtimelinking" = yes; then
19931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19932 # instead of lib<name>.a to let people know that these are not
19933 # typical AIX shared libraries.
19934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19936 # We preserve .a as extension for shared libraries through AIX4.2
19937 # and later when we are not doing run time linking.
19938 library_names_spec='${libname}${release}.a $libname.a'
19939 soname_spec='${libname}${release}${shared_ext}$major'
19941 shlibpath_var=LIBPATH
19946 library_names_spec='$libname.ixlibrary $libname.a'
19947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19948 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'
19952 library_names_spec='${libname}${shared_ext}'
19953 dynamic_linker="$host_os ld.so"
19954 shlibpath_var=LIBRARY_PATH
19960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19961 soname_spec='${libname}${release}${shared_ext}$major'
19962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19963 shlibpath_var=LD_LIBRARY_PATH
19964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19966 # the default ld.so.conf also contains /usr/contrib/lib and
19967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19968 # libtool to hard-code these into programs
19971 cygwin* | mingw* | pw32*)
19972 version_type=windows
19977 case $GCC,$host_os in
19978 yes,cygwin* | yes,mingw* | yes,pw32*)
19979 library_names_spec='$libname.dll.a'
19980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19981 postinstall_cmds='base_file=`basename \${file}`~
19982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19983 dldir=$destdir/`dirname \$dlpath`~
19984 test -d \$dldir || mkdir -p \$dldir~
19985 $install_prog $dir/$dlname \$dldir/$dlname~
19986 chmod a+x \$dldir/$dlname'
19987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19988 dlpath=$dir/\$dldll~
19990 shlibpath_overrides_runpath=yes
19994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19999 # MinGW DLLs use traditional 'lib' prefix
20000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20003 # It is most probably a Windows format PATH printed by
20004 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20005 # path with ; separators, and with drive letters. We can handle the
20006 # drive letters (cygwin fileutils understands them), so leave them,
20007 # especially as we might pass files found there to a mingw objdump,
20008 # which wouldn't understand a cygwinified path. Ahh.
20009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20015 # pw32 DLLs use 'pw' prefix rather than 'lib'
20016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20025 dynamic_linker='Win32 ld.exe'
20026 # FIXME: first we should search . and the directory the executable is in
20030 darwin* | rhapsody*)
20031 dynamic_linker="$host_os dyld"
20032 version_type=darwin
20035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20036 soname_spec='${libname}${release}${major}$shared_ext'
20037 shlibpath_overrides_runpath=yes
20038 shlibpath_var=DYLD_LIBRARY_PATH
20039 shrext_cmds='.dylib'
20040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20041 if test "$GCC" = yes; then
20042 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"`
20044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20054 soname_spec='${libname}${release}${shared_ext}$major'
20055 shlibpath_var=LD_LIBRARY_PATH
20066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20067 soname_spec='${libname}${release}${shared_ext}$major'
20068 shlibpath_var=LD_LIBRARY_PATH
20069 shlibpath_overrides_runpath=no
20070 hardcode_into_libs=yes
20071 dynamic_linker='GNU ld.so'
20074 freebsd* | dragonfly*)
20075 # DragonFly does not have aout. When/if they implement a new
20076 # versioning mechanism, adjust this.
20077 if test -x /usr/bin/objformat; then
20078 objformat=`/usr/bin/objformat`
20081 freebsd[123]*) objformat=aout ;;
20082 *) objformat=elf ;;
20085 version_type=freebsd-$objformat
20086 case $version_type in
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20097 shlibpath_var=LD_LIBRARY_PATH
20100 shlibpath_overrides_runpath=yes
20102 freebsd3.[01]* | freebsdelf3.[01]*)
20103 shlibpath_overrides_runpath=yes
20104 hardcode_into_libs=yes
20106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20108 shlibpath_overrides_runpath=no
20109 hardcode_into_libs=yes
20111 freebsd*) # from 4.6 on
20112 shlibpath_overrides_runpath=yes
20113 hardcode_into_libs=yes
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 shlibpath_var=LD_LIBRARY_PATH
20125 hardcode_into_libs=yes
20128 hpux9* | hpux10* | hpux11*)
20129 # Give a soname corresponding to the major version so that dld.sl refuses to
20130 # link against other versions.
20137 hardcode_into_libs=yes
20138 dynamic_linker="$host_os dld.so"
20139 shlibpath_var=LD_LIBRARY_PATH
20140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 if test "X$HPUX_IA64_MODE" = X32; then
20144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20152 hardcode_into_libs=yes
20153 dynamic_linker="$host_os dld.sl"
20154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20163 dynamic_linker="$host_os dld.sl"
20164 shlibpath_var=SHLIB_PATH
20165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167 soname_spec='${libname}${release}${shared_ext}$major'
20170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20171 postinstall_cmds='chmod 555 $lib'
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath=no
20183 hardcode_into_libs=yes
20186 irix5* | irix6* | nonstopux*)
20188 nonstopux*) version_type=nonstopux ;;
20190 if test "$lt_cv_prog_gnu_ld" = yes; then
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20201 irix5* | nonstopux*)
20202 libsuff= shlibsuff=
20205 case $LD in # libtool.m4 will add one of these switches to LD
20206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20207 libsuff= shlibsuff= libmagic=32-bit;;
20208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20209 libsuff=32 shlibsuff=N32 libmagic=N32;;
20210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20212 *) libsuff= shlibsuff= libmagic=never-match;;
20216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20217 shlibpath_overrides_runpath=no
20218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20220 hardcode_into_libs=yes
20223 # No shared lib support for Linux oldld, aout, or coff.
20224 linux*oldld* | linux*aout* | linux*coff*)
20228 # This must be Linux ELF.
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 shlibpath_overrides_runpath=no
20238 # This implies no fast_install, which is unacceptable.
20239 # Some rework will be needed to allow for fast_install
20240 # before this can be enabled.
20241 hardcode_into_libs=yes
20243 # Append ld.so.conf contents to the search path
20244 if test -f /etc/ld.so.conf; then
20245 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' ' '`
20246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20249 # We used to test for /lib/ld.so.1 and disable shared libraries on
20250 # powerpc, because MkLinux only supported shared libraries with the
20251 # GNU dynamic linker. Since this was broken with cross compilers,
20252 # most powerpc-linux boxes support dynamic linking these days and
20253 # people can always --disable-shared, the test was removed, and we
20254 # assume the GNU/Linux dynamic linker is in use.
20255 dynamic_linker='GNU/Linux ld.so'
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=no
20266 hardcode_into_libs=yes
20267 dynamic_linker='GNU ld.so'
20274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20277 dynamic_linker='NetBSD (a.out) ld.so'
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 dynamic_linker='NetBSD ld.elf_so'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes
20285 hardcode_into_libs=yes
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=yes
20299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20300 soname_spec='${libname}${release}${shared_ext}$major'
20301 shlibpath_var=LD_LIBRARY_PATH
20302 shlibpath_overrides_runpath=yes
20307 sys_lib_dlsearch_path_spec="/usr/lib"
20309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20312 *) need_version=no ;;
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20316 shlibpath_var=LD_LIBRARY_PATH
20317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20319 openbsd2.[89] | openbsd2.[89].*)
20320 shlibpath_overrides_runpath=no
20323 shlibpath_overrides_runpath=yes
20327 shlibpath_overrides_runpath=yes
20332 libname_spec='$name'
20335 library_names_spec='$libname${shared_ext} $libname.a'
20336 dynamic_linker='OS/2 ld.exe'
20337 shlibpath_var=LIBPATH
20340 osf3* | osf4* | osf5*)
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 shlibpath_overrides_runpath=yes
20359 hardcode_into_libs=yes
20360 # ldd complains unless libraries are executable
20361 postinstall_cmds='chmod +x $lib'
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20368 shlibpath_var=LD_LIBRARY_PATH
20369 shlibpath_overrides_runpath=yes
20370 if test "$with_gnu_ld" = yes; then
20378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 shlibpath_var=LD_LIBRARY_PATH
20381 case $host_vendor in
20383 shlibpath_overrides_runpath=no
20385 export_dynamic_flag_spec='${wl}-Blargedynsym'
20386 runpath_var=LD_RUN_PATH
20394 shlibpath_overrides_runpath=no
20395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20401 if test -d /usr/nec ;then
20403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20404 soname_spec='$libname${shared_ext}.$major'
20405 shlibpath_var=LD_LIBRARY_PATH
20409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20410 version_type=freebsd-elf
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 hardcode_into_libs=yes
20417 if test "$with_gnu_ld" = yes; then
20418 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20419 shlibpath_overrides_runpath=no
20421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20422 shlibpath_overrides_runpath=yes
20425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20429 sys_lib_dlsearch_path_spec='/usr/lib'
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 shlibpath_var=LD_LIBRARY_PATH
20443 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20444 echo "${ECHO_T}$dynamic_linker" >&6; }
20445 test "$dynamic_linker" = no && can_build_shared=no
20447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20448 if test "$GCC" = yes; then
20449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20452 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20453 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20454 hardcode_action_CXX=
20455 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20456 test -n "$runpath_var_CXX" || \
20457 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20459 # We can hardcode non-existant directories.
20460 if test "$hardcode_direct_CXX" != no &&
20461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20462 # have to relink, otherwise we might link with an installed library
20463 # when we should be linking with a yet-to-be-installed one
20464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20465 test "$hardcode_minus_L_CXX" != no; then
20466 # Linking always hardcodes the temporary library directory.
20467 hardcode_action_CXX=relink
20469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20470 hardcode_action_CXX=immediate
20473 # We cannot hardcode anything, or else we can only hardcode existing
20475 hardcode_action_CXX=unsupported
20477 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20478 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20480 if test "$hardcode_action_CXX" = relink; then
20481 # Fast installation is not supported
20482 enable_fast_install=no
20483 elif test "$shlibpath_overrides_runpath" = yes ||
20484 test "$enable_shared" = no; then
20485 # Fast installation is not necessary
20486 enable_fast_install=needless
20490 # The else clause should only fire when bootstrapping the
20491 # libtool distribution, otherwise you forgot to ship ltmain.sh
20492 # with your package, and you will get complaints that there are
20493 # no rules to generate ltmain.sh.
20494 if test -f "$ltmain"; then
20495 # See if we are running on zsh, and set the options which allow our commands through
20496 # without removal of \ escapes.
20497 if test -n "${ZSH_VERSION+set}" ; then
20498 setopt NO_GLOB_SUBST
20500 # Now quote all the things that may contain metacharacters while being
20501 # careful not to overquote the AC_SUBSTed values. We take copies of the
20502 # variables and quote the copies for generation of the libtool script.
20503 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20505 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20506 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20507 deplibs_check_method reload_flag reload_cmds need_locks \
20508 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20509 lt_cv_sys_global_symbol_to_c_name_address \
20510 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20511 old_postinstall_cmds old_postuninstall_cmds \
20515 lt_prog_compiler_wl_CXX \
20516 lt_prog_compiler_pic_CXX \
20517 lt_prog_compiler_static_CXX \
20518 lt_prog_compiler_no_builtin_flag_CXX \
20519 export_dynamic_flag_spec_CXX \
20520 thread_safe_flag_spec_CXX \
20521 whole_archive_flag_spec_CXX \
20522 enable_shared_with_static_runtimes_CXX \
20523 old_archive_cmds_CXX \
20524 old_archive_from_new_cmds_CXX \
20525 predep_objects_CXX \
20526 postdep_objects_CXX \
20529 compiler_lib_search_path_CXX \
20531 archive_expsym_cmds_CXX \
20532 postinstall_cmds_CXX \
20533 postuninstall_cmds_CXX \
20534 old_archive_from_expsyms_cmds_CXX \
20535 allow_undefined_flag_CXX \
20536 no_undefined_flag_CXX \
20537 export_symbols_cmds_CXX \
20538 hardcode_libdir_flag_spec_CXX \
20539 hardcode_libdir_flag_spec_ld_CXX \
20540 hardcode_libdir_separator_CXX \
20541 hardcode_automatic_CXX \
20543 module_expsym_cmds_CXX \
20544 lt_cv_prog_compiler_c_o_CXX \
20545 exclude_expsyms_CXX \
20546 include_expsyms_CXX; do
20549 old_archive_cmds_CXX | \
20550 old_archive_from_new_cmds_CXX | \
20551 archive_cmds_CXX | \
20552 archive_expsym_cmds_CXX | \
20553 module_cmds_CXX | \
20554 module_expsym_cmds_CXX | \
20555 old_archive_from_expsyms_cmds_CXX | \
20556 export_symbols_cmds_CXX | \
20557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20558 postinstall_cmds | postuninstall_cmds | \
20559 old_postinstall_cmds | old_postuninstall_cmds | \
20560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20561 # Double-quote double-evaled strings.
20562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20571 *'\$0 --fallback-echo"')
20572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20578 cat <<__EOF__ >> "$cfgfile"
20579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20583 # Shell to use when invoking shell scripts.
20586 # Whether or not to build shared libraries.
20587 build_libtool_libs=$enable_shared
20589 # Whether or not to build static libraries.
20590 build_old_libs=$enable_static
20592 # Whether or not to add -lc for building shared libraries.
20593 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20595 # Whether or not to disallow shared libs when runtime libs are static
20596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20598 # Whether or not to optimize for fast installation.
20599 fast_install=$enable_fast_install
20602 host_alias=$host_alias
20606 # The build system.
20607 build_alias=$build_alias
20611 # An echo program that does not interpret backslashes.
20616 AR_FLAGS=$lt_AR_FLAGS
20621 # LTCC compiler flags.
20622 LTCFLAGS=$lt_LTCFLAGS
20624 # A language-specific compiler.
20625 CC=$lt_compiler_CXX
20627 # Is the compiler the GNU C compiler?
20633 # The linker used to build libraries.
20636 # Whether we need hard or soft links.
20639 # A BSD-compatible nm program.
20642 # A symbol stripping program
20645 # Used to examine libraries when file_magic_cmd begins "file"
20646 MAGIC_CMD=$MAGIC_CMD
20648 # Used on cygwin: DLL creation program.
20651 # Used on cygwin: object dumper.
20654 # Used on cygwin: assembler.
20657 # The name of the directory that contains temporary libtool files.
20660 # How to create reloadable object files.
20661 reload_flag=$lt_reload_flag
20662 reload_cmds=$lt_reload_cmds
20664 # How to pass a linker flag through the compiler.
20665 wl=$lt_lt_prog_compiler_wl_CXX
20667 # Object file suffix (normally "o").
20668 objext="$ac_objext"
20670 # Old archive suffix (normally "a").
20673 # Shared library suffix (normally ".so").
20674 shrext_cmds='$shrext_cmds'
20676 # Executable file suffix (normally "").
20679 # Additional compiler flags for building library objects.
20680 pic_flag=$lt_lt_prog_compiler_pic_CXX
20683 # What is the maximum length of a command?
20684 max_cmd_len=$lt_cv_sys_max_cmd_len
20686 # Does compiler simultaneously support -c and -o options?
20687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20689 # Must we lock files when doing compilation?
20690 need_locks=$lt_need_locks
20692 # Do we need the lib prefix for modules?
20693 need_lib_prefix=$need_lib_prefix
20695 # Do we need a version for libraries?
20696 need_version=$need_version
20698 # Whether dlopen is supported.
20699 dlopen_support=$enable_dlopen
20701 # Whether dlopen of programs is supported.
20702 dlopen_self=$enable_dlopen_self
20704 # Whether dlopen of statically linked programs is supported.
20705 dlopen_self_static=$enable_dlopen_self_static
20707 # Compiler flag to prevent dynamic linking.
20708 link_static_flag=$lt_lt_prog_compiler_static_CXX
20710 # Compiler flag to turn off builtin functions.
20711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20713 # Compiler flag to allow reflexive dlopens.
20714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20716 # Compiler flag to generate shared objects directly from archives.
20717 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20719 # Compiler flag to generate thread-safe objects.
20720 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20722 # Library versioning type.
20723 version_type=$version_type
20725 # Format of library name prefix.
20726 libname_spec=$lt_libname_spec
20728 # List of archive names. First name is the real one, the rest are links.
20729 # The last name is the one that the linker finds with -lNAME.
20730 library_names_spec=$lt_library_names_spec
20732 # The coded name of the library, if different from the real name.
20733 soname_spec=$lt_soname_spec
20735 # Commands used to build and install an old-style archive.
20737 old_archive_cmds=$lt_old_archive_cmds_CXX
20738 old_postinstall_cmds=$lt_old_postinstall_cmds
20739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20741 # Create an old-style archive from a shared archive.
20742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20744 # Create a temporary old-style archive to link instead of a shared archive.
20745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20747 # Commands used to build and install a shared archive.
20748 archive_cmds=$lt_archive_cmds_CXX
20749 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20750 postinstall_cmds=$lt_postinstall_cmds
20751 postuninstall_cmds=$lt_postuninstall_cmds
20753 # Commands used to build a loadable module (assumed same as above if empty)
20754 module_cmds=$lt_module_cmds_CXX
20755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20757 # Commands to strip libraries.
20758 old_striplib=$lt_old_striplib
20759 striplib=$lt_striplib
20761 # Dependencies to place before the objects being linked to create a
20763 predep_objects=$lt_predep_objects_CXX
20765 # Dependencies to place after the objects being linked to create a
20767 postdep_objects=$lt_postdep_objects_CXX
20769 # Dependencies to place before the objects being linked to create a
20771 predeps=$lt_predeps_CXX
20773 # Dependencies to place after the objects being linked to create a
20775 postdeps=$lt_postdeps_CXX
20777 # The library search path used internally by the compiler when linking
20778 # a shared library.
20779 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20781 # Method to check whether dependent libraries are shared objects.
20782 deplibs_check_method=$lt_deplibs_check_method
20784 # Command to use when deplibs_check_method == file_magic.
20785 file_magic_cmd=$lt_file_magic_cmd
20787 # Flag that allows shared libraries with undefined symbols to be built.
20788 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20790 # Flag that forces no undefined symbols.
20791 no_undefined_flag=$lt_no_undefined_flag_CXX
20793 # Commands used to finish a libtool library installation in a directory.
20794 finish_cmds=$lt_finish_cmds
20796 # Same as above, but a single script fragment to be evaled but not shown.
20797 finish_eval=$lt_finish_eval
20799 # Take the output of nm and produce a listing of raw symbols and C names.
20800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20802 # Transform the output of nm in a proper C declaration
20803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20805 # Transform the output of nm in a C name address pair
20806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20808 # This is the shared library runtime path variable.
20809 runpath_var=$runpath_var
20811 # This is the shared library path variable.
20812 shlibpath_var=$shlibpath_var
20814 # Is shlibpath searched before the hard-coded library search path?
20815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20817 # How to hardcode a shared library path into an executable.
20818 hardcode_action=$hardcode_action_CXX
20820 # Whether we should hardcode library paths into libraries.
20821 hardcode_into_libs=$hardcode_into_libs
20823 # Flag to hardcode \$libdir into a binary during linking.
20824 # This must work even if \$libdir does not exist.
20825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20827 # If ld is used when linking, flag to hardcode \$libdir into
20828 # a binary during linking. This must work even if \$libdir does
20830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20832 # Whether we need a single -rpath flag with a separated argument.
20833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20836 # resulting binary.
20837 hardcode_direct=$hardcode_direct_CXX
20839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20840 # resulting binary.
20841 hardcode_minus_L=$hardcode_minus_L_CXX
20843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20844 # the resulting binary.
20845 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20847 # Set to yes if building a shared library automatically hardcodes DIR into the library
20848 # and all subsequent libraries and executables linked against it.
20849 hardcode_automatic=$hardcode_automatic_CXX
20851 # Variables whose values should be saved in libtool wrapper scripts and
20852 # restored at relink time.
20853 variables_saved_for_relink="$variables_saved_for_relink"
20855 # Whether libtool must link a program against all its dependency libraries.
20856 link_all_deplibs=$link_all_deplibs_CXX
20858 # Compile-time system search path for libraries
20859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20861 # Run-time system search path for libraries
20862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20864 # Fix the shell variable \$srcfile for the compiler.
20865 fix_srcfile_path="$fix_srcfile_path_CXX"
20867 # Set to yes if exported symbols are required.
20868 always_export_symbols=$always_export_symbols_CXX
20870 # The commands to list exported symbols.
20871 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20873 # The commands to extract the exported symbol list from a shared archive.
20874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20876 # Symbols that should not be listed in the preloaded symbols.
20877 exclude_expsyms=$lt_exclude_expsyms_CXX
20879 # Symbols that must always be exported.
20880 include_expsyms=$lt_include_expsyms_CXX
20882 # ### END LIBTOOL TAG CONFIG: $tagname
20888 # If there is no Makefile yet, we rely on a make rule to execute
20889 # `config.status --recheck' to rerun these tests and create the
20890 # libtool script then.
20891 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20892 if test -f "$ltmain_in"; then
20893 test -f Makefile && make "$ltmain"
20899 ac_cpp='$CPP $CPPFLAGS'
20900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20908 with_gnu_ldcxx=$with_gnu_ld
20909 with_gnu_ld=$lt_save_with_gnu_ld
20910 lt_cv_path_LDCXX=$lt_cv_path_LD
20911 lt_cv_path_LD=$lt_save_path_LD
20912 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20913 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20921 if test -n "$F77" && test "X$F77" != "Xno"; then
20924 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20925 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20929 archive_cmds_need_lc_F77=no
20930 allow_undefined_flag_F77=
20931 always_export_symbols_F77=no
20932 archive_expsym_cmds_F77=
20933 export_dynamic_flag_spec_F77=
20934 hardcode_direct_F77=no
20935 hardcode_libdir_flag_spec_F77=
20936 hardcode_libdir_flag_spec_ld_F77=
20937 hardcode_libdir_separator_F77=
20938 hardcode_minus_L_F77=no
20939 hardcode_automatic_F77=no
20941 module_expsym_cmds_F77=
20942 link_all_deplibs_F77=unknown
20943 old_archive_cmds_F77=$old_archive_cmds
20944 no_undefined_flag_F77=
20945 whole_archive_flag_spec_F77=
20946 enable_shared_with_static_runtimes_F77=no
20948 # Source file extension for f77 test sources.
20951 # Object file extension for compiled f77 test sources.
20955 # Code to be used in simple compile tests
20956 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20958 # Code to be used in simple link tests
20959 lt_simple_link_test_code=" program t\n end\n"
20961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20963 # If no C compiler was specified, use CC.
20966 # If no C compiler flags were specified, use CFLAGS.
20967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20969 # Allow CC to be a program name with arguments.
20973 # save warnings/boilerplate of simple test code
20974 ac_outfile=conftest.$ac_objext
20975 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20977 _lt_compiler_boilerplate=`cat conftest.err`
20980 ac_outfile=conftest.$ac_objext
20981 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20983 _lt_linker_boilerplate=`cat conftest.err`
20987 # Allow CC to be a program name with arguments.
20992 for cc_temp in $compiler""; do
20994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21003 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21004 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21005 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21006 echo "${ECHO_T}$can_build_shared" >&6; }
21008 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21009 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21010 test "$can_build_shared" = "no" && enable_shared=no
21012 # On AIX, shared libraries and static libraries use the same namespace, and
21013 # are all built from PIC.
21016 test "$enable_shared" = yes && enable_static=no
21017 if test -n "$RANLIB"; then
21018 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21019 postinstall_cmds='$RANLIB $lib'
21023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21024 test "$enable_shared" = yes && enable_static=no
21028 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21029 echo "${ECHO_T}$enable_shared" >&6; }
21031 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21032 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21033 # Make sure either enable_shared or enable_static is yes.
21034 test "$enable_shared" = yes || enable_static=yes
21035 { echo "$as_me:$LINENO: result: $enable_static" >&5
21036 echo "${ECHO_T}$enable_static" >&6; }
21041 lt_prog_compiler_wl_F77=
21042 lt_prog_compiler_pic_F77=
21043 lt_prog_compiler_static_F77=
21045 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21046 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21048 if test "$GCC" = yes; then
21049 lt_prog_compiler_wl_F77='-Wl,'
21050 lt_prog_compiler_static_F77='-static'
21054 # All AIX code is PIC.
21055 if test "$host_cpu" = ia64; then
21056 # AIX 5 now supports IA64 processor
21057 lt_prog_compiler_static_F77='-Bstatic'
21062 # FIXME: we need at least 68020 code to build shared libraries, but
21063 # adding the `-m68020' flag to GCC prevents building anything better,
21065 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21068 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21069 # PIC is the default for these OSes.
21072 mingw* | pw32* | os2*)
21073 # This hack is so that the source file can tell whether it is being
21074 # built for inclusion in a dll (and should export symbols for example).
21075 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21078 darwin* | rhapsody*)
21079 # PIC is the default on this platform
21080 # Common symbols not allowed in MH_DYLIB files
21081 lt_prog_compiler_pic_F77='-fno-common'
21085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21086 # Instead, we relocate shared libraries at runtime.
21090 # Just because we use GCC doesn't mean we suddenly get shared libraries
21091 # on systems that don't support them.
21092 lt_prog_compiler_can_build_shared_F77=no
21097 if test -d /usr/nec; then
21098 lt_prog_compiler_pic_F77=-Kconform_pic
21103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21104 # not for PA HP-UX.
21110 lt_prog_compiler_pic_F77='-fPIC'
21116 lt_prog_compiler_pic_F77='-fPIC'
21120 # PORTME Check for flag to pass linker flags through the system compiler.
21123 lt_prog_compiler_wl_F77='-Wl,'
21124 if test "$host_cpu" = ia64; then
21125 # AIX 5 now supports IA64 processor
21126 lt_prog_compiler_static_F77='-Bstatic'
21128 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21132 # PIC is the default on this platform
21133 # Common symbols not allowed in MH_DYLIB files
21134 case $cc_basename in
21136 lt_prog_compiler_pic_F77='-qnocommon'
21137 lt_prog_compiler_wl_F77='-Wl,'
21142 mingw* | pw32* | os2*)
21143 # This hack is so that the source file can tell whether it is being
21144 # built for inclusion in a dll (and should export symbols for example).
21145 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21148 hpux9* | hpux10* | hpux11*)
21149 lt_prog_compiler_wl_F77='-Wl,'
21150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21151 # not for PA HP-UX.
21157 lt_prog_compiler_pic_F77='+Z'
21160 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21161 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21164 irix5* | irix6* | nonstopux*)
21165 lt_prog_compiler_wl_F77='-Wl,'
21166 # PIC (with -KPIC) is the default.
21167 lt_prog_compiler_static_F77='-non_shared'
21171 lt_prog_compiler_pic_F77='-KPIC'
21172 lt_prog_compiler_static_F77='-Bstatic'
21176 case $cc_basename in
21178 lt_prog_compiler_wl_F77='-Wl,'
21179 lt_prog_compiler_pic_F77='-KPIC'
21180 lt_prog_compiler_static_F77='-static'
21182 pgcc* | pgf77* | pgf90* | pgf95*)
21183 # Portland Group compilers (*not* the Pentium gcc compiler,
21184 # which looks to be a dead project)
21185 lt_prog_compiler_wl_F77='-Wl,'
21186 lt_prog_compiler_pic_F77='-fpic'
21187 lt_prog_compiler_static_F77='-Bstatic'
21190 lt_prog_compiler_wl_F77='-Wl,'
21191 # All Alpha code is PIC.
21192 lt_prog_compiler_static_F77='-non_shared'
21197 osf3* | osf4* | osf5*)
21198 lt_prog_compiler_wl_F77='-Wl,'
21199 # All OSF/1 code is PIC.
21200 lt_prog_compiler_static_F77='-non_shared'
21204 lt_prog_compiler_pic_F77='-KPIC'
21205 lt_prog_compiler_static_F77='-Bstatic'
21206 case $cc_basename in
21207 f77* | f90* | f95*)
21208 lt_prog_compiler_wl_F77='-Qoption ld ';;
21210 lt_prog_compiler_wl_F77='-Wl,';;
21215 lt_prog_compiler_wl_F77='-Qoption ld '
21216 lt_prog_compiler_pic_F77='-PIC'
21217 lt_prog_compiler_static_F77='-Bstatic'
21220 sysv4 | sysv4.2uw2* | sysv4.3*)
21221 lt_prog_compiler_wl_F77='-Wl,'
21222 lt_prog_compiler_pic_F77='-KPIC'
21223 lt_prog_compiler_static_F77='-Bstatic'
21227 if test -d /usr/nec ;then
21228 lt_prog_compiler_pic_F77='-Kconform_pic'
21229 lt_prog_compiler_static_F77='-Bstatic'
21233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21234 lt_prog_compiler_wl_F77='-Wl,'
21235 lt_prog_compiler_pic_F77='-KPIC'
21236 lt_prog_compiler_static_F77='-Bstatic'
21240 lt_prog_compiler_wl_F77='-Wl,'
21241 lt_prog_compiler_can_build_shared_F77=no
21245 lt_prog_compiler_pic_F77='-pic'
21246 lt_prog_compiler_static_F77='-Bstatic'
21250 lt_prog_compiler_can_build_shared_F77=no
21255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21256 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21259 # Check to make sure the PIC flag actually works.
21261 if test -n "$lt_prog_compiler_pic_F77"; then
21263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21265 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 lt_prog_compiler_pic_works_F77=no
21269 ac_outfile=conftest.$ac_objext
21270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21271 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21272 # Insert the option either (1) after the last *FLAGS variable, or
21273 # (2) before a word containing "conftest.", or (3) at the end.
21274 # Note that $ac_compile itself does not contain backslashes and begins
21275 # with a dollar sign (not a hyphen), so the echo should work correctly.
21276 # The option is referenced via a variable to avoid confusing sed.
21277 lt_compile=`echo "$ac_compile" | $SED \
21278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21280 -e 's:$: $lt_compiler_flag:'`
21281 (eval echo "\"\$as_me:21281: $lt_compile\"" >&5)
21282 (eval "$lt_compile" 2>conftest.err)
21284 cat conftest.err >&5
21285 echo "$as_me:21285: \$? = $ac_status" >&5
21286 if (exit $ac_status) && test -s "$ac_outfile"; then
21287 # The compiler can only warn and ignore the option if not recognized
21288 # So say no if there are warnings other than the usual output.
21289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21292 lt_prog_compiler_pic_works_F77=yes
21298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21299 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21301 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21302 case $lt_prog_compiler_pic_F77 in
21304 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21307 lt_prog_compiler_pic_F77=
21308 lt_prog_compiler_can_build_shared_F77=no
21313 # For platforms which do not support PIC, -DPIC is meaningless:
21315 lt_prog_compiler_pic_F77=
21318 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21323 # Check to make sure the static flag actually works.
21325 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21328 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 lt_prog_compiler_static_works_F77=no
21332 save_LDFLAGS="$LDFLAGS"
21333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21334 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21336 # The linker can only warn and ignore the option if not recognized
21337 # So say no if there are warnings
21338 if test -s conftest.err; then
21339 # Append any errors to the config.log.
21340 cat conftest.err 1>&5
21341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21343 if diff conftest.exp conftest.er2 >/dev/null; then
21344 lt_prog_compiler_static_works_F77=yes
21347 lt_prog_compiler_static_works_F77=yes
21351 LDFLAGS="$save_LDFLAGS"
21354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21355 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21357 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21360 lt_prog_compiler_static_F77=
21364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21366 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 lt_cv_prog_compiler_c_o_F77=no
21370 $rm -r conftest 2>/dev/null
21374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21376 lt_compiler_flag="-o out/conftest2.$ac_objext"
21377 # Insert the option either (1) after the last *FLAGS variable, or
21378 # (2) before a word containing "conftest.", or (3) at the end.
21379 # Note that $ac_compile itself does not contain backslashes and begins
21380 # with a dollar sign (not a hyphen), so the echo should work correctly.
21381 lt_compile=`echo "$ac_compile" | $SED \
21382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21384 -e 's:$: $lt_compiler_flag:'`
21385 (eval echo "\"\$as_me:21385: $lt_compile\"" >&5)
21386 (eval "$lt_compile" 2>out/conftest.err)
21388 cat out/conftest.err >&5
21389 echo "$as_me:21389: \$? = $ac_status" >&5
21390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21392 # The compiler can only warn and ignore the option if not recognized
21393 # So say no if there are warnings
21394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21397 lt_cv_prog_compiler_c_o_F77=yes
21402 # SGI C++ compiler will create directory out/ii_files/ for
21403 # template instantiation
21404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21405 $rm out/* && rmdir out
21411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21415 hard_links="nottested"
21416 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21417 # do not overwrite the value of need_locks provided by the user
21418 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21424 ln conftest.a conftest.b 2>&5 || hard_links=no
21425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21426 { echo "$as_me:$LINENO: result: $hard_links" >&5
21427 echo "${ECHO_T}$hard_links" >&6; }
21428 if test "$hard_links" = no; then
21429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21441 allow_undefined_flag_F77=
21442 enable_shared_with_static_runtimes_F77=no
21444 archive_expsym_cmds_F77=
21445 old_archive_From_new_cmds_F77=
21446 old_archive_from_expsyms_cmds_F77=
21447 export_dynamic_flag_spec_F77=
21448 whole_archive_flag_spec_F77=
21449 thread_safe_flag_spec_F77=
21450 hardcode_libdir_flag_spec_F77=
21451 hardcode_libdir_flag_spec_ld_F77=
21452 hardcode_libdir_separator_F77=
21453 hardcode_direct_F77=no
21454 hardcode_minus_L_F77=no
21455 hardcode_shlibpath_var_F77=unsupported
21456 link_all_deplibs_F77=unknown
21457 hardcode_automatic_F77=no
21459 module_expsym_cmds_F77=
21460 always_export_symbols_F77=no
21461 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21462 # include_expsyms should be a list of space-separated symbols to be *always*
21463 # included in the symbol list
21464 include_expsyms_F77=
21465 # exclude_expsyms can be an extended regexp of symbols to exclude
21466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21468 # as well as any symbol that contains `d'.
21469 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21471 # platforms (ab)use it in PIC code, but their linkers get confused if
21472 # the symbol is explicitly referenced. Since portable code cannot
21473 # rely on this symbol name, it's probably fine to never include it in
21474 # preloaded symbol tables.
21475 extract_expsyms_cmds=
21476 # Just being paranoid about ensuring that cc_basename is set.
21477 for cc_temp in $compiler""; do
21479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21488 cygwin* | mingw* | pw32*)
21489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21490 # When not using gcc, we currently assume that we are using
21491 # Microsoft Visual C++.
21492 if test "$GCC" != yes; then
21497 # we just hope/assume this is gcc and not c89 (= MSVC++)
21506 if test "$with_gnu_ld" = yes; then
21507 # If archive_cmds runs LD, not CC, wlarc should be empty
21510 # Set some defaults for GNU ld with shared library support. These
21511 # are reset later if shared libraries are not supported. Putting them
21512 # here allows them to be overridden if necessary.
21513 runpath_var=LD_RUN_PATH
21514 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21515 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21516 # ancient GNU ld didn't support --whole-archive et. al.
21517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21518 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21520 whole_archive_flag_spec_F77=
21522 supports_anon_versioning=no
21523 case `$LD -v 2>/dev/null` in
21524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21527 *\ 2.11.*) ;; # other 2.11 versions
21528 *) supports_anon_versioning=yes ;;
21531 # See if GNU ld supports shared libraries.
21533 aix3* | aix4* | aix5*)
21534 # On AIX/PPC, the GNU linker is very broken
21535 if test "$host_cpu" != ia64; then
21539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21540 *** to be unable to reliably create shared libraries on AIX.
21541 *** Therefore, libtool is disabling shared libraries support. If you
21542 *** really care for shared libraries, you may want to modify your PATH
21543 *** so that a non-GNU linker is found, and then restart.
21550 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)'
21551 hardcode_libdir_flag_spec_F77='-L$libdir'
21552 hardcode_minus_L_F77=yes
21554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21555 # that the semantics of dynamic libraries on AmigaOS, at least up
21556 # to version 4, is to share data among multiple programs linked
21557 # with the same dynamic library. Since this doesn't match the
21558 # behavior of shared libraries on other platforms, we can't use
21564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21565 allow_undefined_flag_F77=unsupported
21566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21567 # support --undefined. This deserves some investigation. FIXME
21568 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21574 cygwin* | mingw* | pw32*)
21575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21576 # as there is no search path for DLLs.
21577 hardcode_libdir_flag_spec_F77='-L$libdir'
21578 allow_undefined_flag_F77=unsupported
21579 always_export_symbols_F77=no
21580 enable_shared_with_static_runtimes_F77=yes
21581 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21585 # If the export-symbols file already is a .def file (1st line
21586 # is EXPORTS), use it as is; otherwise, prepend...
21587 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21588 cp $export_symbols $output_objdir/$soname.def;
21590 echo EXPORTS > $output_objdir/$soname.def;
21591 cat $export_symbols >> $output_objdir/$soname.def;
21593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21600 hardcode_direct_F77=no
21601 hardcode_shlibpath_var_F77=no
21602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21603 export_dynamic_flag_spec_F77='${wl}-E'
21604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21605 # Instead, shared libraries are loaded at an image base (0x10000000 by
21606 # default) and relocated if they conflict, which is a slow very memory
21607 # consuming and fragmenting process. To avoid this, we pick a random,
21608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21610 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'
21611 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'
21615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21617 case $cc_basename,$host_cpu in
21618 pgcc*) # Portland Group C compiler
21619 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'
21620 tmp_addflag=' $pic_flag'
21622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21623 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'
21624 tmp_addflag=' $pic_flag -Mnomain' ;;
21625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21626 tmp_addflag=' -i_dynamic' ;;
21627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21628 tmp_addflag=' -i_dynamic -nofor_main' ;;
21629 ifc* | ifort*) # Intel Fortran compiler
21630 tmp_addflag=' -nofor_main' ;;
21632 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21634 if test $supports_anon_versioning = yes; then
21635 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21637 $echo "local: *; };" >> $output_objdir/$libname.ver~
21638 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21647 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21650 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21651 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21656 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21661 *** create shared libraries on Solaris systems. Therefore, libtool
21662 *** is disabling shared libraries support. We urge you to upgrade GNU
21663 *** binutils to release 2.9.1 or newer. Another option is to modify
21664 *** your PATH or compiler configuration so that the native linker is
21665 *** used, and then restart.
21668 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21670 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21677 case `$LD -v 2>&1` in
21678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21683 *** reliably create shared libraries on SCO systems. Therefore, libtool
21684 *** is disabling shared libraries support. We urge you to upgrade GNU
21685 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21686 *** your PATH or compiler configuration so that the native linker is
21687 *** used, and then restart.
21692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21693 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21695 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21704 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21706 hardcode_direct_F77=yes
21707 hardcode_shlibpath_var_F77=no
21711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21712 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21713 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21720 if test "$ld_shlibs_F77" = no; then
21722 hardcode_libdir_flag_spec_F77=
21723 export_dynamic_flag_spec_F77=
21724 whole_archive_flag_spec_F77=
21727 # PORTME fill in a description of your system's linker (not GNU ld)
21730 allow_undefined_flag_F77=unsupported
21731 always_export_symbols_F77=yes
21732 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'
21733 # Note: this linker hardcodes the directories in LIBPATH if there
21734 # are no directories specified by -L.
21735 hardcode_minus_L_F77=yes
21736 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21737 # Neither direct hardcoding nor static linking is supported with a
21739 hardcode_direct_F77=unsupported
21744 if test "$host_cpu" = ia64; then
21745 # On IA64, the linker does run time linking by default, so we don't
21746 # have to do anything special.
21747 aix_use_runtimelinking=no
21748 exp_sym_flag='-Bexport'
21751 # If we're using GNU nm, then we don't want the "-C" option.
21752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21754 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'
21756 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'
21758 aix_use_runtimelinking=no
21760 # Test if we are trying to use run time linking or normal
21761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21762 # need to do runtime linking.
21763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21764 for ld_flag in $LDFLAGS; do
21765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21766 aix_use_runtimelinking=yes
21773 exp_sym_flag='-bexport'
21774 no_entry_flag='-bnoentry'
21777 # When large executables or shared objects are built, AIX ld can
21778 # have problems creating the table of contents. If linking a library
21779 # or program results in "error TOC overflow" add -mminimal-toc to
21780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21783 archive_cmds_F77=''
21784 hardcode_direct_F77=yes
21785 hardcode_libdir_separator_F77=':'
21786 link_all_deplibs_F77=yes
21788 if test "$GCC" = yes; then
21789 case $host_os in aix4.[012]|aix4.[012].*)
21790 # We only want to do this on AIX 4.2 and lower, the check
21791 # below for broken collect2 doesn't work under 4.3+
21792 collect2name=`${CC} -print-prog-name=collect2`
21793 if test -f "$collect2name" && \
21794 strings "$collect2name" | grep resolve_lib_name >/dev/null
21796 # We have reworked collect2
21797 hardcode_direct_F77=yes
21799 # We have old collect2
21800 hardcode_direct_F77=unsupported
21801 # It fails to find uninstalled libraries when the uninstalled
21802 # path is not listed in the libpath. Setting hardcode_minus_L
21803 # to unsupported forces relinking
21804 hardcode_minus_L_F77=yes
21805 hardcode_libdir_flag_spec_F77='-L$libdir'
21806 hardcode_libdir_separator_F77=
21810 shared_flag='-shared'
21811 if test "$aix_use_runtimelinking" = yes; then
21812 shared_flag="$shared_flag "'${wl}-G'
21816 if test "$host_cpu" = ia64; then
21817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21818 # chokes on -Wl,-G. The following line is correct:
21821 if test "$aix_use_runtimelinking" = yes; then
21822 shared_flag='${wl}-G'
21824 shared_flag='${wl}-bM:SRE'
21829 # It seems that -bexpall does not export symbols beginning with
21830 # underscore (_), so it is better to generate a list of symbols to export.
21831 always_export_symbols_F77=yes
21832 if test "$aix_use_runtimelinking" = yes; then
21833 # Warning - without using the other runtime loading flags (-brtl),
21834 # -berok will link without error, but may produce a broken library.
21835 allow_undefined_flag_F77='-berok'
21836 # Determine the default libpath from the value encoded in an empty executable.
21837 cat >conftest.$ac_ext <<_ACEOF
21842 rm -f conftest.$ac_objext conftest$ac_exeext
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_link") 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
21856 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21857 { (case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_try") 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_try") 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21879 # Check for a 64-bit object if we didn't find anything.
21880 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; }
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21889 rm -f core conftest.err conftest.$ac_objext \
21890 conftest$ac_exeext conftest.$ac_ext
21891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21893 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21894 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"
21896 if test "$host_cpu" = ia64; then
21897 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21898 allow_undefined_flag_F77="-z nodefs"
21899 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"
21901 # Determine the default libpath from the value encoded in an empty executable.
21902 cat >conftest.$ac_ext <<_ACEOF
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_link") 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
21921 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21922 { (case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_try") 2>&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; } &&
21931 { ac_try='test -s conftest$ac_exeext'
21932 { (case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_try") 2>&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; }; then
21942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21944 # Check for a 64-bit object if we didn't find anything.
21945 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; }
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21954 rm -f core conftest.err conftest.$ac_objext \
21955 conftest$ac_exeext conftest.$ac_ext
21956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21958 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21959 # Warning - without using the other run time loading flags,
21960 # -berok will link without error, but may produce a broken library.
21961 no_undefined_flag_F77=' ${wl}-bernotok'
21962 allow_undefined_flag_F77=' ${wl}-berok'
21963 # Exported symbols can be pulled into shared objects from archives
21964 whole_archive_flag_spec_F77='$convenience'
21965 archive_cmds_need_lc_F77=yes
21966 # This is similar to how AIX traditionally builds its shared libraries.
21967 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'
21973 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)'
21974 hardcode_libdir_flag_spec_F77='-L$libdir'
21975 hardcode_minus_L_F77=yes
21976 # see comment about different semantics on the GNU ld section
21981 export_dynamic_flag_spec_F77=-rdynamic
21984 cygwin* | mingw* | pw32*)
21985 # When not using gcc, we currently assume that we are using
21986 # Microsoft Visual C++.
21987 # hardcode_libdir_flag_spec is actually meaningless, as there is
21988 # no search path for DLLs.
21989 hardcode_libdir_flag_spec_F77=' '
21990 allow_undefined_flag_F77=unsupported
21991 # Tell ltmain to make .lib files, not .a files.
21993 # Tell ltmain to make .dll files, not .so files.
21995 # FIXME: Setting linknames here is a bad hack.
21996 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21997 # The linker will automatically build a .lib file if we build a DLL.
21998 old_archive_From_new_cmds_F77='true'
21999 # FIXME: Should let the user specify the lib program.
22000 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22001 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22002 enable_shared_with_static_runtimes_F77=yes
22005 darwin* | rhapsody*)
22007 rhapsody* | darwin1.[012])
22008 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22011 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22012 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22014 case ${MACOSX_DEPLOYMENT_TARGET} in
22016 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22019 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22025 archive_cmds_need_lc_F77=no
22026 hardcode_direct_F77=no
22027 hardcode_automatic_F77=yes
22028 hardcode_shlibpath_var_F77=unsupported
22029 whole_archive_flag_spec_F77=''
22030 link_all_deplibs_F77=yes
22031 if test "$GCC" = yes ; then
22032 output_verbose_link_cmd='echo'
22033 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22034 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22036 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}'
22037 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}'
22039 case $cc_basename in
22041 output_verbose_link_cmd='echo'
22042 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22043 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22045 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}'
22046 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}'
22056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22057 hardcode_libdir_flag_spec_F77='-L$libdir'
22058 hardcode_shlibpath_var_F77=no
22065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22066 # support. Future versions do this automatically, but an explicit c++rt0.o
22067 # does not break anything, and helps significantly (at the cost of a little
22070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22071 hardcode_libdir_flag_spec_F77='-R$libdir'
22072 hardcode_direct_F77=yes
22073 hardcode_shlibpath_var_F77=no
22076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22079 hardcode_direct_F77=yes
22080 hardcode_minus_L_F77=yes
22081 hardcode_shlibpath_var_F77=no
22084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22085 freebsd* | kfreebsd*-gnu | dragonfly*)
22086 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22087 hardcode_libdir_flag_spec_F77='-R$libdir'
22088 hardcode_direct_F77=yes
22089 hardcode_shlibpath_var_F77=no
22093 if test "$GCC" = yes; then
22094 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'
22096 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'
22098 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22099 hardcode_libdir_separator_F77=:
22100 hardcode_direct_F77=yes
22102 # hardcode_minus_L: Not really in the search PATH,
22103 # but as the default location of the library.
22104 hardcode_minus_L_F77=yes
22105 export_dynamic_flag_spec_F77='${wl}-E'
22109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22110 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22112 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22114 if test "$with_gnu_ld" = no; then
22115 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22116 hardcode_libdir_separator_F77=:
22118 hardcode_direct_F77=yes
22119 export_dynamic_flag_spec_F77='${wl}-E'
22121 # hardcode_minus_L: Not really in the search PATH,
22122 # but as the default location of the library.
22123 hardcode_minus_L_F77=yes
22128 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22131 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22134 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22137 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22143 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22146 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22149 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22153 if test "$with_gnu_ld" = no; then
22154 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22155 hardcode_libdir_separator_F77=:
22159 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22160 hardcode_direct_F77=no
22161 hardcode_shlibpath_var_F77=no
22164 hardcode_direct_F77=yes
22165 export_dynamic_flag_spec_F77='${wl}-E'
22167 # hardcode_minus_L: Not really in the search PATH,
22168 # but as the default location of the library.
22169 hardcode_minus_L_F77=yes
22175 irix5* | irix6* | nonstopux*)
22176 if test "$GCC" = yes; then
22177 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'
22179 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'
22180 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22182 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22183 hardcode_libdir_separator_F77=:
22184 link_all_deplibs_F77=yes
22188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22189 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22191 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22193 hardcode_libdir_flag_spec_F77='-R$libdir'
22194 hardcode_direct_F77=yes
22195 hardcode_shlibpath_var_F77=no
22199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22200 hardcode_direct_F77=yes
22201 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22202 hardcode_libdir_separator_F77=:
22203 hardcode_shlibpath_var_F77=no
22207 hardcode_direct_F77=yes
22208 hardcode_shlibpath_var_F77=no
22209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22210 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22211 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22212 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22213 export_dynamic_flag_spec_F77='${wl}-E'
22216 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22217 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22218 hardcode_libdir_flag_spec_F77='-R$libdir'
22221 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22222 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22229 hardcode_libdir_flag_spec_F77='-L$libdir'
22230 hardcode_minus_L_F77=yes
22231 allow_undefined_flag_F77=unsupported
22232 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'
22233 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22237 if test "$GCC" = yes; then
22238 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22239 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'
22241 allow_undefined_flag_F77=' -expect_unresolved \*'
22242 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'
22244 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22245 hardcode_libdir_separator_F77=:
22248 osf4* | osf5*) # as osf3* with the addition of -msym flag
22249 if test "$GCC" = yes; then
22250 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22251 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'
22252 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22254 allow_undefined_flag_F77=' -expect_unresolved \*'
22255 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'
22256 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~
22257 $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'
22259 # Both c and cxx compiler support -rpath directly
22260 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22262 hardcode_libdir_separator_F77=:
22266 no_undefined_flag_F77=' -z text'
22267 if test "$GCC" = yes; then
22269 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22270 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22271 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22274 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22275 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22278 hardcode_libdir_flag_spec_F77='-R$libdir'
22279 hardcode_shlibpath_var_F77=no
22281 solaris2.[0-5] | solaris2.[0-5].*) ;;
22283 # The compiler driver will combine linker options so we
22284 # cannot just pass the convience library names through
22285 # without $wl, iff we do not link with $LD.
22286 # Luckily, gcc supports the same syntax we need for Sun Studio.
22287 # Supported since Solaris 2.6 (maybe 2.5.1?)
22290 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22292 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' ;;
22295 link_all_deplibs_F77=yes
22299 if test "x$host_vendor" = xsequent; then
22300 # Use $CC to link under sequent, because it throws in some extra .o
22301 # files that make .init and .fini sections work.
22302 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22304 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22306 hardcode_libdir_flag_spec_F77='-L$libdir'
22307 hardcode_direct_F77=yes
22308 hardcode_minus_L_F77=yes
22309 hardcode_shlibpath_var_F77=no
22313 case $host_vendor in
22315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22316 hardcode_direct_F77=yes # is this really true???
22319 ## LD is ld it makes a PLAMLIB
22320 ## CC just makes a GrossModule.
22321 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22322 reload_cmds_F77='$CC -r -o $output$reload_objs'
22323 hardcode_direct_F77=no
22326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22327 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22330 runpath_var='LD_RUN_PATH'
22331 hardcode_shlibpath_var_F77=no
22335 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22336 hardcode_shlibpath_var_F77=no
22337 export_dynamic_flag_spec_F77='-Bexport'
22341 if test -d /usr/nec; then
22342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22343 hardcode_shlibpath_var_F77=no
22344 runpath_var=LD_RUN_PATH
22345 hardcode_runpath_var=yes
22350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22351 no_undefined_flag_F77='${wl}-z,text'
22352 archive_cmds_need_lc_F77=no
22353 hardcode_shlibpath_var_F77=no
22354 runpath_var='LD_RUN_PATH'
22356 if test "$GCC" = yes; then
22357 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22358 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22360 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22361 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22365 sysv5* | sco3.2v5* | sco5v6*)
22366 # Note: We can NOT use -z defs as we might desire, because we do not
22367 # link with -lc, and that would cause any symbols used from libc to
22368 # always be unresolved, which means just about no library would
22369 # ever link correctly. If we're not using GNU ld we use -z text
22370 # though, which does catch some bad symbols but isn't as heavy-handed
22372 no_undefined_flag_F77='${wl}-z,text'
22373 allow_undefined_flag_F77='${wl}-z,nodefs'
22374 archive_cmds_need_lc_F77=no
22375 hardcode_shlibpath_var_F77=no
22376 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22377 hardcode_libdir_separator_F77=':'
22378 link_all_deplibs_F77=yes
22379 export_dynamic_flag_spec_F77='${wl}-Bexport'
22380 runpath_var='LD_RUN_PATH'
22382 if test "$GCC" = yes; then
22383 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22384 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22386 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22387 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22393 hardcode_libdir_flag_spec_F77='-L$libdir'
22394 hardcode_shlibpath_var_F77=no
22403 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22404 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22405 test "$ld_shlibs_F77" = no && can_build_shared=no
22408 # Do we need to explicitly link libc?
22410 case "x$archive_cmds_need_lc_F77" in
22412 # Assume -lc should be added
22413 archive_cmds_need_lc_F77=yes
22415 if test "$enable_shared" = yes && test "$GCC" = yes; then
22416 case $archive_cmds_F77 in
22418 # FIXME: we may have to deal with multi-command sequences.
22421 # Test whether the compiler implicitly links with -lc since on some
22422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22423 # to ld, don't add -lc before -lgcc.
22424 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22425 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22430 (eval $ac_compile) 2>&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } 2>conftest.err; then
22436 libobjs=conftest.$ac_objext
22438 wl=$lt_prog_compiler_wl_F77
22439 pic_flag=$lt_prog_compiler_pic_F77
22445 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22446 allow_undefined_flag_F77=
22447 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22448 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }
22453 archive_cmds_need_lc_F77=no
22455 archive_cmds_need_lc_F77=yes
22457 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22459 cat conftest.err 1>&5
22462 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22463 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22470 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22471 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22472 library_names_spec=
22473 libname_spec='lib$name'
22477 postuninstall_cmds=
22481 shlibpath_overrides_runpath=unknown
22483 dynamic_linker="$host_os ld.so"
22484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22485 if test "$GCC" = yes; then
22486 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22487 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22488 # if the path contains ";" then we assume it to be the separator
22489 # otherwise default to the standard path separator (i.e. ":") - it is
22490 # assumed that no part of a normal pathname contains ";" but that should
22491 # okay in the real world where ";" in dirpaths is itself problematic.
22492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22499 need_lib_prefix=unknown
22500 hardcode_into_libs=no
22502 # when you set need_version to no, make sure it does not cause -set_version
22503 # flags to be left without arguments
22504 need_version=unknown
22509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22510 shlibpath_var=LIBPATH
22512 # AIX 3 has no versioning support, so we append a major version to the name.
22513 soname_spec='${libname}${release}${shared_ext}$major'
22520 hardcode_into_libs=yes
22521 if test "$host_cpu" = ia64; then
22522 # AIX 5 supports IA64
22523 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22524 shlibpath_var=LD_LIBRARY_PATH
22526 # With GCC up to 2.95.x, collect2 would create an import file
22527 # for dependence libraries. The import file would start with
22528 # the line `#! .'. This would cause the generated library to
22529 # depend on `.', always an invalid library. This was fixed in
22530 # development snapshots of GCC prior to 3.0.
22532 aix4 | aix4.[01] | aix4.[01].*)
22533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22535 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22538 can_build_shared=no
22542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22543 # soname into executable. Probably we can add versioning support to
22544 # collect2, so additional links can be useful in future.
22545 if test "$aix_use_runtimelinking" = yes; then
22546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22547 # instead of lib<name>.a to let people know that these are not
22548 # typical AIX shared libraries.
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22551 # We preserve .a as extension for shared libraries through AIX4.2
22552 # and later when we are not doing run time linking.
22553 library_names_spec='${libname}${release}.a $libname.a'
22554 soname_spec='${libname}${release}${shared_ext}$major'
22556 shlibpath_var=LIBPATH
22561 library_names_spec='$libname.ixlibrary $libname.a'
22562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22563 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'
22567 library_names_spec='${libname}${shared_ext}'
22568 dynamic_linker="$host_os ld.so"
22569 shlibpath_var=LIBRARY_PATH
22575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22576 soname_spec='${libname}${release}${shared_ext}$major'
22577 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22578 shlibpath_var=LD_LIBRARY_PATH
22579 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22580 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22581 # the default ld.so.conf also contains /usr/contrib/lib and
22582 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22583 # libtool to hard-code these into programs
22586 cygwin* | mingw* | pw32*)
22587 version_type=windows
22592 case $GCC,$host_os in
22593 yes,cygwin* | yes,mingw* | yes,pw32*)
22594 library_names_spec='$libname.dll.a'
22595 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22596 postinstall_cmds='base_file=`basename \${file}`~
22597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22598 dldir=$destdir/`dirname \$dlpath`~
22599 test -d \$dldir || mkdir -p \$dldir~
22600 $install_prog $dir/$dlname \$dldir/$dlname~
22601 chmod a+x \$dldir/$dlname'
22602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22603 dlpath=$dir/\$dldll~
22605 shlibpath_overrides_runpath=yes
22609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22614 # MinGW DLLs use traditional 'lib' prefix
22615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22618 # It is most probably a Windows format PATH printed by
22619 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22620 # path with ; separators, and with drive letters. We can handle the
22621 # drive letters (cygwin fileutils understands them), so leave them,
22622 # especially as we might pass files found there to a mingw objdump,
22623 # which wouldn't understand a cygwinified path. Ahh.
22624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22630 # pw32 DLLs use 'pw' prefix rather than 'lib'
22631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22640 dynamic_linker='Win32 ld.exe'
22641 # FIXME: first we should search . and the directory the executable is in
22645 darwin* | rhapsody*)
22646 dynamic_linker="$host_os dyld"
22647 version_type=darwin
22650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22651 soname_spec='${libname}${release}${major}$shared_ext'
22652 shlibpath_overrides_runpath=yes
22653 shlibpath_var=DYLD_LIBRARY_PATH
22654 shrext_cmds='.dylib'
22655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22656 if test "$GCC" = yes; then
22657 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"`
22659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22669 soname_spec='${libname}${release}${shared_ext}$major'
22670 shlibpath_var=LD_LIBRARY_PATH
22681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22682 soname_spec='${libname}${release}${shared_ext}$major'
22683 shlibpath_var=LD_LIBRARY_PATH
22684 shlibpath_overrides_runpath=no
22685 hardcode_into_libs=yes
22686 dynamic_linker='GNU ld.so'
22689 freebsd* | dragonfly*)
22690 # DragonFly does not have aout. When/if they implement a new
22691 # versioning mechanism, adjust this.
22692 if test -x /usr/bin/objformat; then
22693 objformat=`/usr/bin/objformat`
22696 freebsd[123]*) objformat=aout ;;
22697 *) objformat=elf ;;
22700 version_type=freebsd-$objformat
22701 case $version_type in
22703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22712 shlibpath_var=LD_LIBRARY_PATH
22715 shlibpath_overrides_runpath=yes
22717 freebsd3.[01]* | freebsdelf3.[01]*)
22718 shlibpath_overrides_runpath=yes
22719 hardcode_into_libs=yes
22721 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22722 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22723 shlibpath_overrides_runpath=no
22724 hardcode_into_libs=yes
22726 freebsd*) # from 4.6 on
22727 shlibpath_overrides_runpath=yes
22728 hardcode_into_libs=yes
22737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22738 soname_spec='${libname}${release}${shared_ext}$major'
22739 shlibpath_var=LD_LIBRARY_PATH
22740 hardcode_into_libs=yes
22743 hpux9* | hpux10* | hpux11*)
22744 # Give a soname corresponding to the major version so that dld.sl refuses to
22745 # link against other versions.
22752 hardcode_into_libs=yes
22753 dynamic_linker="$host_os dld.so"
22754 shlibpath_var=LD_LIBRARY_PATH
22755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 if test "X$HPUX_IA64_MODE" = X32; then
22759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22767 hardcode_into_libs=yes
22768 dynamic_linker="$host_os dld.sl"
22769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772 soname_spec='${libname}${release}${shared_ext}$major'
22773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22778 dynamic_linker="$host_os dld.sl"
22779 shlibpath_var=SHLIB_PATH
22780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782 soname_spec='${libname}${release}${shared_ext}$major'
22785 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22786 postinstall_cmds='chmod 555 $lib'
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22796 shlibpath_var=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath=no
22798 hardcode_into_libs=yes
22801 irix5* | irix6* | nonstopux*)
22803 nonstopux*) version_type=nonstopux ;;
22805 if test "$lt_cv_prog_gnu_ld" = yes; then
22813 soname_spec='${libname}${release}${shared_ext}$major'
22814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22816 irix5* | nonstopux*)
22817 libsuff= shlibsuff=
22820 case $LD in # libtool.m4 will add one of these switches to LD
22821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22822 libsuff= shlibsuff= libmagic=32-bit;;
22823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22824 libsuff=32 shlibsuff=N32 libmagic=N32;;
22825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22826 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22827 *) libsuff= shlibsuff= libmagic=never-match;;
22831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22832 shlibpath_overrides_runpath=no
22833 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22834 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22835 hardcode_into_libs=yes
22838 # No shared lib support for Linux oldld, aout, or coff.
22839 linux*oldld* | linux*aout* | linux*coff*)
22843 # This must be Linux ELF.
22848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22849 soname_spec='${libname}${release}${shared_ext}$major'
22850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 shlibpath_overrides_runpath=no
22853 # This implies no fast_install, which is unacceptable.
22854 # Some rework will be needed to allow for fast_install
22855 # before this can be enabled.
22856 hardcode_into_libs=yes
22858 # Append ld.so.conf contents to the search path
22859 if test -f /etc/ld.so.conf; then
22860 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' ' '`
22861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22864 # We used to test for /lib/ld.so.1 and disable shared libraries on
22865 # powerpc, because MkLinux only supported shared libraries with the
22866 # GNU dynamic linker. Since this was broken with cross compilers,
22867 # most powerpc-linux boxes support dynamic linking these days and
22868 # people can always --disable-shared, the test was removed, and we
22869 # assume the GNU/Linux dynamic linker is in use.
22870 dynamic_linker='GNU/Linux ld.so'
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 shlibpath_overrides_runpath=no
22881 hardcode_into_libs=yes
22882 dynamic_linker='GNU ld.so'
22889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22892 dynamic_linker='NetBSD (a.out) ld.so'
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 dynamic_linker='NetBSD ld.elf_so'
22898 shlibpath_var=LD_LIBRARY_PATH
22899 shlibpath_overrides_runpath=yes
22900 hardcode_into_libs=yes
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 shlibpath_overrides_runpath=yes
22914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22915 soname_spec='${libname}${release}${shared_ext}$major'
22916 shlibpath_var=LD_LIBRARY_PATH
22917 shlibpath_overrides_runpath=yes
22922 sys_lib_dlsearch_path_spec="/usr/lib"
22924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22927 *) need_version=no ;;
22929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22931 shlibpath_var=LD_LIBRARY_PATH
22932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22934 openbsd2.[89] | openbsd2.[89].*)
22935 shlibpath_overrides_runpath=no
22938 shlibpath_overrides_runpath=yes
22942 shlibpath_overrides_runpath=yes
22947 libname_spec='$name'
22950 library_names_spec='$libname${shared_ext} $libname.a'
22951 dynamic_linker='OS/2 ld.exe'
22952 shlibpath_var=LIBPATH
22955 osf3* | osf4* | osf5*)
22959 soname_spec='${libname}${release}${shared_ext}$major'
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 shlibpath_var=LD_LIBRARY_PATH
22962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22971 soname_spec='${libname}${release}${shared_ext}$major'
22972 shlibpath_var=LD_LIBRARY_PATH
22973 shlibpath_overrides_runpath=yes
22974 hardcode_into_libs=yes
22975 # ldd complains unless libraries are executable
22976 postinstall_cmds='chmod +x $lib'
22981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22983 shlibpath_var=LD_LIBRARY_PATH
22984 shlibpath_overrides_runpath=yes
22985 if test "$with_gnu_ld" = yes; then
22993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22994 soname_spec='${libname}${release}${shared_ext}$major'
22995 shlibpath_var=LD_LIBRARY_PATH
22996 case $host_vendor in
22998 shlibpath_overrides_runpath=no
23000 export_dynamic_flag_spec='${wl}-Blargedynsym'
23001 runpath_var=LD_RUN_PATH
23009 shlibpath_overrides_runpath=no
23010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23016 if test -d /usr/nec ;then
23018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23019 soname_spec='$libname${shared_ext}.$major'
23020 shlibpath_var=LD_LIBRARY_PATH
23024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23025 version_type=freebsd-elf
23028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23029 soname_spec='${libname}${release}${shared_ext}$major'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 hardcode_into_libs=yes
23032 if test "$with_gnu_ld" = yes; then
23033 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23034 shlibpath_overrides_runpath=no
23036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23037 shlibpath_overrides_runpath=yes
23040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23044 sys_lib_dlsearch_path_spec='/usr/lib'
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23050 soname_spec='${libname}${release}${shared_ext}$major'
23051 shlibpath_var=LD_LIBRARY_PATH
23058 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23059 echo "${ECHO_T}$dynamic_linker" >&6; }
23060 test "$dynamic_linker" = no && can_build_shared=no
23062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23063 if test "$GCC" = yes; then
23064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23067 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23068 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23069 hardcode_action_F77=
23070 if test -n "$hardcode_libdir_flag_spec_F77" || \
23071 test -n "$runpath_var_F77" || \
23072 test "X$hardcode_automatic_F77" = "Xyes" ; then
23074 # We can hardcode non-existant directories.
23075 if test "$hardcode_direct_F77" != no &&
23076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23077 # have to relink, otherwise we might link with an installed library
23078 # when we should be linking with a yet-to-be-installed one
23079 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23080 test "$hardcode_minus_L_F77" != no; then
23081 # Linking always hardcodes the temporary library directory.
23082 hardcode_action_F77=relink
23084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23085 hardcode_action_F77=immediate
23088 # We cannot hardcode anything, or else we can only hardcode existing
23090 hardcode_action_F77=unsupported
23092 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23093 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23095 if test "$hardcode_action_F77" = relink; then
23096 # Fast installation is not supported
23097 enable_fast_install=no
23098 elif test "$shlibpath_overrides_runpath" = yes ||
23099 test "$enable_shared" = no; then
23100 # Fast installation is not necessary
23101 enable_fast_install=needless
23105 # The else clause should only fire when bootstrapping the
23106 # libtool distribution, otherwise you forgot to ship ltmain.sh
23107 # with your package, and you will get complaints that there are
23108 # no rules to generate ltmain.sh.
23109 if test -f "$ltmain"; then
23110 # See if we are running on zsh, and set the options which allow our commands through
23111 # without removal of \ escapes.
23112 if test -n "${ZSH_VERSION+set}" ; then
23113 setopt NO_GLOB_SUBST
23115 # Now quote all the things that may contain metacharacters while being
23116 # careful not to overquote the AC_SUBSTed values. We take copies of the
23117 # variables and quote the copies for generation of the libtool script.
23118 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23120 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23121 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23122 deplibs_check_method reload_flag reload_cmds need_locks \
23123 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23124 lt_cv_sys_global_symbol_to_c_name_address \
23125 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23126 old_postinstall_cmds old_postuninstall_cmds \
23130 lt_prog_compiler_wl_F77 \
23131 lt_prog_compiler_pic_F77 \
23132 lt_prog_compiler_static_F77 \
23133 lt_prog_compiler_no_builtin_flag_F77 \
23134 export_dynamic_flag_spec_F77 \
23135 thread_safe_flag_spec_F77 \
23136 whole_archive_flag_spec_F77 \
23137 enable_shared_with_static_runtimes_F77 \
23138 old_archive_cmds_F77 \
23139 old_archive_from_new_cmds_F77 \
23140 predep_objects_F77 \
23141 postdep_objects_F77 \
23144 compiler_lib_search_path_F77 \
23146 archive_expsym_cmds_F77 \
23147 postinstall_cmds_F77 \
23148 postuninstall_cmds_F77 \
23149 old_archive_from_expsyms_cmds_F77 \
23150 allow_undefined_flag_F77 \
23151 no_undefined_flag_F77 \
23152 export_symbols_cmds_F77 \
23153 hardcode_libdir_flag_spec_F77 \
23154 hardcode_libdir_flag_spec_ld_F77 \
23155 hardcode_libdir_separator_F77 \
23156 hardcode_automatic_F77 \
23158 module_expsym_cmds_F77 \
23159 lt_cv_prog_compiler_c_o_F77 \
23160 exclude_expsyms_F77 \
23161 include_expsyms_F77; do
23164 old_archive_cmds_F77 | \
23165 old_archive_from_new_cmds_F77 | \
23166 archive_cmds_F77 | \
23167 archive_expsym_cmds_F77 | \
23168 module_cmds_F77 | \
23169 module_expsym_cmds_F77 | \
23170 old_archive_from_expsyms_cmds_F77 | \
23171 export_symbols_cmds_F77 | \
23172 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23173 postinstall_cmds | postuninstall_cmds | \
23174 old_postinstall_cmds | old_postuninstall_cmds | \
23175 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23176 # Double-quote double-evaled strings.
23177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23186 *'\$0 --fallback-echo"')
23187 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23193 cat <<__EOF__ >> "$cfgfile"
23194 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23198 # Shell to use when invoking shell scripts.
23201 # Whether or not to build shared libraries.
23202 build_libtool_libs=$enable_shared
23204 # Whether or not to build static libraries.
23205 build_old_libs=$enable_static
23207 # Whether or not to add -lc for building shared libraries.
23208 build_libtool_need_lc=$archive_cmds_need_lc_F77
23210 # Whether or not to disallow shared libs when runtime libs are static
23211 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23213 # Whether or not to optimize for fast installation.
23214 fast_install=$enable_fast_install
23217 host_alias=$host_alias
23221 # The build system.
23222 build_alias=$build_alias
23226 # An echo program that does not interpret backslashes.
23231 AR_FLAGS=$lt_AR_FLAGS
23236 # LTCC compiler flags.
23237 LTCFLAGS=$lt_LTCFLAGS
23239 # A language-specific compiler.
23240 CC=$lt_compiler_F77
23242 # Is the compiler the GNU C compiler?
23248 # The linker used to build libraries.
23251 # Whether we need hard or soft links.
23254 # A BSD-compatible nm program.
23257 # A symbol stripping program
23260 # Used to examine libraries when file_magic_cmd begins "file"
23261 MAGIC_CMD=$MAGIC_CMD
23263 # Used on cygwin: DLL creation program.
23266 # Used on cygwin: object dumper.
23269 # Used on cygwin: assembler.
23272 # The name of the directory that contains temporary libtool files.
23275 # How to create reloadable object files.
23276 reload_flag=$lt_reload_flag
23277 reload_cmds=$lt_reload_cmds
23279 # How to pass a linker flag through the compiler.
23280 wl=$lt_lt_prog_compiler_wl_F77
23282 # Object file suffix (normally "o").
23283 objext="$ac_objext"
23285 # Old archive suffix (normally "a").
23288 # Shared library suffix (normally ".so").
23289 shrext_cmds='$shrext_cmds'
23291 # Executable file suffix (normally "").
23294 # Additional compiler flags for building library objects.
23295 pic_flag=$lt_lt_prog_compiler_pic_F77
23298 # What is the maximum length of a command?
23299 max_cmd_len=$lt_cv_sys_max_cmd_len
23301 # Does compiler simultaneously support -c and -o options?
23302 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23304 # Must we lock files when doing compilation?
23305 need_locks=$lt_need_locks
23307 # Do we need the lib prefix for modules?
23308 need_lib_prefix=$need_lib_prefix
23310 # Do we need a version for libraries?
23311 need_version=$need_version
23313 # Whether dlopen is supported.
23314 dlopen_support=$enable_dlopen
23316 # Whether dlopen of programs is supported.
23317 dlopen_self=$enable_dlopen_self
23319 # Whether dlopen of statically linked programs is supported.
23320 dlopen_self_static=$enable_dlopen_self_static
23322 # Compiler flag to prevent dynamic linking.
23323 link_static_flag=$lt_lt_prog_compiler_static_F77
23325 # Compiler flag to turn off builtin functions.
23326 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23328 # Compiler flag to allow reflexive dlopens.
23329 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23331 # Compiler flag to generate shared objects directly from archives.
23332 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23334 # Compiler flag to generate thread-safe objects.
23335 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23337 # Library versioning type.
23338 version_type=$version_type
23340 # Format of library name prefix.
23341 libname_spec=$lt_libname_spec
23343 # List of archive names. First name is the real one, the rest are links.
23344 # The last name is the one that the linker finds with -lNAME.
23345 library_names_spec=$lt_library_names_spec
23347 # The coded name of the library, if different from the real name.
23348 soname_spec=$lt_soname_spec
23350 # Commands used to build and install an old-style archive.
23352 old_archive_cmds=$lt_old_archive_cmds_F77
23353 old_postinstall_cmds=$lt_old_postinstall_cmds
23354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23356 # Create an old-style archive from a shared archive.
23357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23359 # Create a temporary old-style archive to link instead of a shared archive.
23360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23362 # Commands used to build and install a shared archive.
23363 archive_cmds=$lt_archive_cmds_F77
23364 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23365 postinstall_cmds=$lt_postinstall_cmds
23366 postuninstall_cmds=$lt_postuninstall_cmds
23368 # Commands used to build a loadable module (assumed same as above if empty)
23369 module_cmds=$lt_module_cmds_F77
23370 module_expsym_cmds=$lt_module_expsym_cmds_F77
23372 # Commands to strip libraries.
23373 old_striplib=$lt_old_striplib
23374 striplib=$lt_striplib
23376 # Dependencies to place before the objects being linked to create a
23378 predep_objects=$lt_predep_objects_F77
23380 # Dependencies to place after the objects being linked to create a
23382 postdep_objects=$lt_postdep_objects_F77
23384 # Dependencies to place before the objects being linked to create a
23386 predeps=$lt_predeps_F77
23388 # Dependencies to place after the objects being linked to create a
23390 postdeps=$lt_postdeps_F77
23392 # The library search path used internally by the compiler when linking
23393 # a shared library.
23394 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23396 # Method to check whether dependent libraries are shared objects.
23397 deplibs_check_method=$lt_deplibs_check_method
23399 # Command to use when deplibs_check_method == file_magic.
23400 file_magic_cmd=$lt_file_magic_cmd
23402 # Flag that allows shared libraries with undefined symbols to be built.
23403 allow_undefined_flag=$lt_allow_undefined_flag_F77
23405 # Flag that forces no undefined symbols.
23406 no_undefined_flag=$lt_no_undefined_flag_F77
23408 # Commands used to finish a libtool library installation in a directory.
23409 finish_cmds=$lt_finish_cmds
23411 # Same as above, but a single script fragment to be evaled but not shown.
23412 finish_eval=$lt_finish_eval
23414 # Take the output of nm and produce a listing of raw symbols and C names.
23415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23417 # Transform the output of nm in a proper C declaration
23418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23420 # Transform the output of nm in a C name address pair
23421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23423 # This is the shared library runtime path variable.
23424 runpath_var=$runpath_var
23426 # This is the shared library path variable.
23427 shlibpath_var=$shlibpath_var
23429 # Is shlibpath searched before the hard-coded library search path?
23430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23432 # How to hardcode a shared library path into an executable.
23433 hardcode_action=$hardcode_action_F77
23435 # Whether we should hardcode library paths into libraries.
23436 hardcode_into_libs=$hardcode_into_libs
23438 # Flag to hardcode \$libdir into a binary during linking.
23439 # This must work even if \$libdir does not exist.
23440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23442 # If ld is used when linking, flag to hardcode \$libdir into
23443 # a binary during linking. This must work even if \$libdir does
23445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23447 # Whether we need a single -rpath flag with a separated argument.
23448 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23450 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23451 # resulting binary.
23452 hardcode_direct=$hardcode_direct_F77
23454 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23455 # resulting binary.
23456 hardcode_minus_L=$hardcode_minus_L_F77
23458 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23459 # the resulting binary.
23460 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23462 # Set to yes if building a shared library automatically hardcodes DIR into the library
23463 # and all subsequent libraries and executables linked against it.
23464 hardcode_automatic=$hardcode_automatic_F77
23466 # Variables whose values should be saved in libtool wrapper scripts and
23467 # restored at relink time.
23468 variables_saved_for_relink="$variables_saved_for_relink"
23470 # Whether libtool must link a program against all its dependency libraries.
23471 link_all_deplibs=$link_all_deplibs_F77
23473 # Compile-time system search path for libraries
23474 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23476 # Run-time system search path for libraries
23477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23479 # Fix the shell variable \$srcfile for the compiler.
23480 fix_srcfile_path="$fix_srcfile_path_F77"
23482 # Set to yes if exported symbols are required.
23483 always_export_symbols=$always_export_symbols_F77
23485 # The commands to list exported symbols.
23486 export_symbols_cmds=$lt_export_symbols_cmds_F77
23488 # The commands to extract the exported symbol list from a shared archive.
23489 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23491 # Symbols that should not be listed in the preloaded symbols.
23492 exclude_expsyms=$lt_exclude_expsyms_F77
23494 # Symbols that must always be exported.
23495 include_expsyms=$lt_include_expsyms_F77
23497 # ### END LIBTOOL TAG CONFIG: $tagname
23503 # If there is no Makefile yet, we rely on a make rule to execute
23504 # `config.status --recheck' to rerun these tests and create the
23505 # libtool script then.
23506 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23507 if test -f "$ltmain_in"; then
23508 test -f Makefile && make "$ltmain"
23514 ac_cpp='$CPP $CPPFLAGS'
23515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23527 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23529 ac_cpp='$CPP $CPPFLAGS'
23530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23535 # Source file extension for Java test sources.
23538 # Object file extension for compiled Java test sources.
23542 # Code to be used in simple compile tests
23543 lt_simple_compile_test_code="class foo {}\n"
23545 # Code to be used in simple link tests
23546 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23548 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23550 # If no C compiler was specified, use CC.
23553 # If no C compiler flags were specified, use CFLAGS.
23554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23556 # Allow CC to be a program name with arguments.
23560 # save warnings/boilerplate of simple test code
23561 ac_outfile=conftest.$ac_objext
23562 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23563 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23564 _lt_compiler_boilerplate=`cat conftest.err`
23567 ac_outfile=conftest.$ac_objext
23568 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23569 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23570 _lt_linker_boilerplate=`cat conftest.err`
23574 # Allow CC to be a program name with arguments.
23579 for cc_temp in $compiler""; do
23581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23587 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23590 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23591 archive_cmds_need_lc_GCJ=no
23593 old_archive_cmds_GCJ=$old_archive_cmds
23596 lt_prog_compiler_no_builtin_flag_GCJ=
23598 if test "$GCC" = yes; then
23599 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23602 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23603 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23604 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23605 echo $ECHO_N "(cached) $ECHO_C" >&6
23607 lt_cv_prog_compiler_rtti_exceptions=no
23608 ac_outfile=conftest.$ac_objext
23609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23610 lt_compiler_flag="-fno-rtti -fno-exceptions"
23611 # Insert the option either (1) after the last *FLAGS variable, or
23612 # (2) before a word containing "conftest.", or (3) at the end.
23613 # Note that $ac_compile itself does not contain backslashes and begins
23614 # with a dollar sign (not a hyphen), so the echo should work correctly.
23615 # The option is referenced via a variable to avoid confusing sed.
23616 lt_compile=`echo "$ac_compile" | $SED \
23617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23619 -e 's:$: $lt_compiler_flag:'`
23620 (eval echo "\"\$as_me:23620: $lt_compile\"" >&5)
23621 (eval "$lt_compile" 2>conftest.err)
23623 cat conftest.err >&5
23624 echo "$as_me:23624: \$? = $ac_status" >&5
23625 if (exit $ac_status) && test -s "$ac_outfile"; then
23626 # The compiler can only warn and ignore the option if not recognized
23627 # So say no if there are warnings other than the usual output.
23628 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23630 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23631 lt_cv_prog_compiler_rtti_exceptions=yes
23637 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23638 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23640 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23641 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23648 lt_prog_compiler_wl_GCJ=
23649 lt_prog_compiler_pic_GCJ=
23650 lt_prog_compiler_static_GCJ=
23652 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23653 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23655 if test "$GCC" = yes; then
23656 lt_prog_compiler_wl_GCJ='-Wl,'
23657 lt_prog_compiler_static_GCJ='-static'
23661 # All AIX code is PIC.
23662 if test "$host_cpu" = ia64; then
23663 # AIX 5 now supports IA64 processor
23664 lt_prog_compiler_static_GCJ='-Bstatic'
23669 # FIXME: we need at least 68020 code to build shared libraries, but
23670 # adding the `-m68020' flag to GCC prevents building anything better,
23672 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23675 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23676 # PIC is the default for these OSes.
23679 mingw* | pw32* | os2*)
23680 # This hack is so that the source file can tell whether it is being
23681 # built for inclusion in a dll (and should export symbols for example).
23682 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23685 darwin* | rhapsody*)
23686 # PIC is the default on this platform
23687 # Common symbols not allowed in MH_DYLIB files
23688 lt_prog_compiler_pic_GCJ='-fno-common'
23692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23693 # Instead, we relocate shared libraries at runtime.
23697 # Just because we use GCC doesn't mean we suddenly get shared libraries
23698 # on systems that don't support them.
23699 lt_prog_compiler_can_build_shared_GCJ=no
23704 if test -d /usr/nec; then
23705 lt_prog_compiler_pic_GCJ=-Kconform_pic
23710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23711 # not for PA HP-UX.
23717 lt_prog_compiler_pic_GCJ='-fPIC'
23723 lt_prog_compiler_pic_GCJ='-fPIC'
23727 # PORTME Check for flag to pass linker flags through the system compiler.
23730 lt_prog_compiler_wl_GCJ='-Wl,'
23731 if test "$host_cpu" = ia64; then
23732 # AIX 5 now supports IA64 processor
23733 lt_prog_compiler_static_GCJ='-Bstatic'
23735 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23739 # PIC is the default on this platform
23740 # Common symbols not allowed in MH_DYLIB files
23741 case $cc_basename in
23743 lt_prog_compiler_pic_GCJ='-qnocommon'
23744 lt_prog_compiler_wl_GCJ='-Wl,'
23749 mingw* | pw32* | os2*)
23750 # This hack is so that the source file can tell whether it is being
23751 # built for inclusion in a dll (and should export symbols for example).
23752 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23755 hpux9* | hpux10* | hpux11*)
23756 lt_prog_compiler_wl_GCJ='-Wl,'
23757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23758 # not for PA HP-UX.
23764 lt_prog_compiler_pic_GCJ='+Z'
23767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23768 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23771 irix5* | irix6* | nonstopux*)
23772 lt_prog_compiler_wl_GCJ='-Wl,'
23773 # PIC (with -KPIC) is the default.
23774 lt_prog_compiler_static_GCJ='-non_shared'
23778 lt_prog_compiler_pic_GCJ='-KPIC'
23779 lt_prog_compiler_static_GCJ='-Bstatic'
23783 case $cc_basename in
23785 lt_prog_compiler_wl_GCJ='-Wl,'
23786 lt_prog_compiler_pic_GCJ='-KPIC'
23787 lt_prog_compiler_static_GCJ='-static'
23789 pgcc* | pgf77* | pgf90* | pgf95*)
23790 # Portland Group compilers (*not* the Pentium gcc compiler,
23791 # which looks to be a dead project)
23792 lt_prog_compiler_wl_GCJ='-Wl,'
23793 lt_prog_compiler_pic_GCJ='-fpic'
23794 lt_prog_compiler_static_GCJ='-Bstatic'
23797 lt_prog_compiler_wl_GCJ='-Wl,'
23798 # All Alpha code is PIC.
23799 lt_prog_compiler_static_GCJ='-non_shared'
23804 osf3* | osf4* | osf5*)
23805 lt_prog_compiler_wl_GCJ='-Wl,'
23806 # All OSF/1 code is PIC.
23807 lt_prog_compiler_static_GCJ='-non_shared'
23811 lt_prog_compiler_pic_GCJ='-KPIC'
23812 lt_prog_compiler_static_GCJ='-Bstatic'
23813 case $cc_basename in
23814 f77* | f90* | f95*)
23815 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23817 lt_prog_compiler_wl_GCJ='-Wl,';;
23822 lt_prog_compiler_wl_GCJ='-Qoption ld '
23823 lt_prog_compiler_pic_GCJ='-PIC'
23824 lt_prog_compiler_static_GCJ='-Bstatic'
23827 sysv4 | sysv4.2uw2* | sysv4.3*)
23828 lt_prog_compiler_wl_GCJ='-Wl,'
23829 lt_prog_compiler_pic_GCJ='-KPIC'
23830 lt_prog_compiler_static_GCJ='-Bstatic'
23834 if test -d /usr/nec ;then
23835 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23836 lt_prog_compiler_static_GCJ='-Bstatic'
23840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23841 lt_prog_compiler_wl_GCJ='-Wl,'
23842 lt_prog_compiler_pic_GCJ='-KPIC'
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23847 lt_prog_compiler_wl_GCJ='-Wl,'
23848 lt_prog_compiler_can_build_shared_GCJ=no
23852 lt_prog_compiler_pic_GCJ='-pic'
23853 lt_prog_compiler_static_GCJ='-Bstatic'
23857 lt_prog_compiler_can_build_shared_GCJ=no
23862 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23863 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23866 # Check to make sure the PIC flag actually works.
23868 if test -n "$lt_prog_compiler_pic_GCJ"; then
23870 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23871 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23872 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23873 echo $ECHO_N "(cached) $ECHO_C" >&6
23875 lt_prog_compiler_pic_works_GCJ=no
23876 ac_outfile=conftest.$ac_objext
23877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23878 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23879 # Insert the option either (1) after the last *FLAGS variable, or
23880 # (2) before a word containing "conftest.", or (3) at the end.
23881 # Note that $ac_compile itself does not contain backslashes and begins
23882 # with a dollar sign (not a hyphen), so the echo should work correctly.
23883 # The option is referenced via a variable to avoid confusing sed.
23884 lt_compile=`echo "$ac_compile" | $SED \
23885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23887 -e 's:$: $lt_compiler_flag:'`
23888 (eval echo "\"\$as_me:23888: $lt_compile\"" >&5)
23889 (eval "$lt_compile" 2>conftest.err)
23891 cat conftest.err >&5
23892 echo "$as_me:23892: \$? = $ac_status" >&5
23893 if (exit $ac_status) && test -s "$ac_outfile"; then
23894 # The compiler can only warn and ignore the option if not recognized
23895 # So say no if there are warnings other than the usual output.
23896 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23899 lt_prog_compiler_pic_works_GCJ=yes
23905 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23906 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23908 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23909 case $lt_prog_compiler_pic_GCJ in
23911 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23914 lt_prog_compiler_pic_GCJ=
23915 lt_prog_compiler_can_build_shared_GCJ=no
23920 # For platforms which do not support PIC, -DPIC is meaningless:
23922 lt_prog_compiler_pic_GCJ=
23925 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23930 # Check to make sure the static flag actually works.
23932 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23933 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23934 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23935 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 lt_prog_compiler_static_works_GCJ=no
23939 save_LDFLAGS="$LDFLAGS"
23940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23941 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23943 # The linker can only warn and ignore the option if not recognized
23944 # So say no if there are warnings
23945 if test -s conftest.err; then
23946 # Append any errors to the config.log.
23947 cat conftest.err 1>&5
23948 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23950 if diff conftest.exp conftest.er2 >/dev/null; then
23951 lt_prog_compiler_static_works_GCJ=yes
23954 lt_prog_compiler_static_works_GCJ=yes
23958 LDFLAGS="$save_LDFLAGS"
23961 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23962 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23964 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23967 lt_prog_compiler_static_GCJ=
23971 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23972 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23973 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 lt_cv_prog_compiler_c_o_GCJ=no
23977 $rm -r conftest 2>/dev/null
23981 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23983 lt_compiler_flag="-o out/conftest2.$ac_objext"
23984 # Insert the option either (1) after the last *FLAGS variable, or
23985 # (2) before a word containing "conftest.", or (3) at the end.
23986 # Note that $ac_compile itself does not contain backslashes and begins
23987 # with a dollar sign (not a hyphen), so the echo should work correctly.
23988 lt_compile=`echo "$ac_compile" | $SED \
23989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23991 -e 's:$: $lt_compiler_flag:'`
23992 (eval echo "\"\$as_me:23992: $lt_compile\"" >&5)
23993 (eval "$lt_compile" 2>out/conftest.err)
23995 cat out/conftest.err >&5
23996 echo "$as_me:23996: \$? = $ac_status" >&5
23997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23999 # The compiler can only warn and ignore the option if not recognized
24000 # So say no if there are warnings
24001 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24004 lt_cv_prog_compiler_c_o_GCJ=yes
24009 # SGI C++ compiler will create directory out/ii_files/ for
24010 # template instantiation
24011 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24012 $rm out/* && rmdir out
24018 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24019 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24022 hard_links="nottested"
24023 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24024 # do not overwrite the value of need_locks provided by the user
24025 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24026 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24031 ln conftest.a conftest.b 2>&5 || hard_links=no
24032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24033 { echo "$as_me:$LINENO: result: $hard_links" >&5
24034 echo "${ECHO_T}$hard_links" >&6; }
24035 if test "$hard_links" = no; then
24036 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24037 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24044 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24045 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24048 allow_undefined_flag_GCJ=
24049 enable_shared_with_static_runtimes_GCJ=no
24051 archive_expsym_cmds_GCJ=
24052 old_archive_From_new_cmds_GCJ=
24053 old_archive_from_expsyms_cmds_GCJ=
24054 export_dynamic_flag_spec_GCJ=
24055 whole_archive_flag_spec_GCJ=
24056 thread_safe_flag_spec_GCJ=
24057 hardcode_libdir_flag_spec_GCJ=
24058 hardcode_libdir_flag_spec_ld_GCJ=
24059 hardcode_libdir_separator_GCJ=
24060 hardcode_direct_GCJ=no
24061 hardcode_minus_L_GCJ=no
24062 hardcode_shlibpath_var_GCJ=unsupported
24063 link_all_deplibs_GCJ=unknown
24064 hardcode_automatic_GCJ=no
24066 module_expsym_cmds_GCJ=
24067 always_export_symbols_GCJ=no
24068 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24069 # include_expsyms should be a list of space-separated symbols to be *always*
24070 # included in the symbol list
24071 include_expsyms_GCJ=
24072 # exclude_expsyms can be an extended regexp of symbols to exclude
24073 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24075 # as well as any symbol that contains `d'.
24076 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24078 # platforms (ab)use it in PIC code, but their linkers get confused if
24079 # the symbol is explicitly referenced. Since portable code cannot
24080 # rely on this symbol name, it's probably fine to never include it in
24081 # preloaded symbol tables.
24082 extract_expsyms_cmds=
24083 # Just being paranoid about ensuring that cc_basename is set.
24084 for cc_temp in $compiler""; do
24086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24095 cygwin* | mingw* | pw32*)
24096 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24097 # When not using gcc, we currently assume that we are using
24098 # Microsoft Visual C++.
24099 if test "$GCC" != yes; then
24104 # we just hope/assume this is gcc and not c89 (= MSVC++)
24113 if test "$with_gnu_ld" = yes; then
24114 # If archive_cmds runs LD, not CC, wlarc should be empty
24117 # Set some defaults for GNU ld with shared library support. These
24118 # are reset later if shared libraries are not supported. Putting them
24119 # here allows them to be overridden if necessary.
24120 runpath_var=LD_RUN_PATH
24121 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24122 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24123 # ancient GNU ld didn't support --whole-archive et. al.
24124 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24125 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24127 whole_archive_flag_spec_GCJ=
24129 supports_anon_versioning=no
24130 case `$LD -v 2>/dev/null` in
24131 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24132 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24133 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24134 *\ 2.11.*) ;; # other 2.11 versions
24135 *) supports_anon_versioning=yes ;;
24138 # See if GNU ld supports shared libraries.
24140 aix3* | aix4* | aix5*)
24141 # On AIX/PPC, the GNU linker is very broken
24142 if test "$host_cpu" != ia64; then
24146 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24147 *** to be unable to reliably create shared libraries on AIX.
24148 *** Therefore, libtool is disabling shared libraries support. If you
24149 *** really care for shared libraries, you may want to modify your PATH
24150 *** so that a non-GNU linker is found, and then restart.
24157 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)'
24158 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24159 hardcode_minus_L_GCJ=yes
24161 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24162 # that the semantics of dynamic libraries on AmigaOS, at least up
24163 # to version 4, is to share data among multiple programs linked
24164 # with the same dynamic library. Since this doesn't match the
24165 # behavior of shared libraries on other platforms, we can't use
24171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24172 allow_undefined_flag_GCJ=unsupported
24173 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24174 # support --undefined. This deserves some investigation. FIXME
24175 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24181 cygwin* | mingw* | pw32*)
24182 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24183 # as there is no search path for DLLs.
24184 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24185 allow_undefined_flag_GCJ=unsupported
24186 always_export_symbols_GCJ=no
24187 enable_shared_with_static_runtimes_GCJ=yes
24188 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24190 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24191 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24192 # If the export-symbols file already is a .def file (1st line
24193 # is EXPORTS), use it as is; otherwise, prepend...
24194 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24195 cp $export_symbols $output_objdir/$soname.def;
24197 echo EXPORTS > $output_objdir/$soname.def;
24198 cat $export_symbols >> $output_objdir/$soname.def;
24200 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24207 hardcode_direct_GCJ=no
24208 hardcode_shlibpath_var_GCJ=no
24209 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24210 export_dynamic_flag_spec_GCJ='${wl}-E'
24211 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24212 # Instead, shared libraries are loaded at an image base (0x10000000 by
24213 # default) and relocated if they conflict, which is a slow very memory
24214 # consuming and fragmenting process. To avoid this, we pick a random,
24215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24216 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24217 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'
24218 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'
24222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24224 case $cc_basename,$host_cpu in
24225 pgcc*) # Portland Group C compiler
24226 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'
24227 tmp_addflag=' $pic_flag'
24229 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24230 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'
24231 tmp_addflag=' $pic_flag -Mnomain' ;;
24232 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24233 tmp_addflag=' -i_dynamic' ;;
24234 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24235 tmp_addflag=' -i_dynamic -nofor_main' ;;
24236 ifc* | ifort*) # Intel Fortran compiler
24237 tmp_addflag=' -nofor_main' ;;
24239 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24241 if test $supports_anon_versioning = yes; then
24242 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24244 $echo "local: *; };" >> $output_objdir/$libname.ver~
24245 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24254 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24257 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24258 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24263 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24268 *** create shared libraries on Solaris systems. Therefore, libtool
24269 *** is disabling shared libraries support. We urge you to upgrade GNU
24270 *** binutils to release 2.9.1 or newer. Another option is to modify
24271 *** your PATH or compiler configuration so that the native linker is
24272 *** used, and then restart.
24275 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24276 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24277 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24284 case `$LD -v 2>&1` in
24285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24290 *** reliably create shared libraries on SCO systems. Therefore, libtool
24291 *** is disabling shared libraries support. We urge you to upgrade GNU
24292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24293 *** your PATH or compiler configuration so that the native linker is
24294 *** used, and then restart.
24299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24300 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24302 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24311 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24313 hardcode_direct_GCJ=yes
24314 hardcode_shlibpath_var_GCJ=no
24318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24319 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24320 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24327 if test "$ld_shlibs_GCJ" = no; then
24329 hardcode_libdir_flag_spec_GCJ=
24330 export_dynamic_flag_spec_GCJ=
24331 whole_archive_flag_spec_GCJ=
24334 # PORTME fill in a description of your system's linker (not GNU ld)
24337 allow_undefined_flag_GCJ=unsupported
24338 always_export_symbols_GCJ=yes
24339 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'
24340 # Note: this linker hardcodes the directories in LIBPATH if there
24341 # are no directories specified by -L.
24342 hardcode_minus_L_GCJ=yes
24343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24344 # Neither direct hardcoding nor static linking is supported with a
24346 hardcode_direct_GCJ=unsupported
24351 if test "$host_cpu" = ia64; then
24352 # On IA64, the linker does run time linking by default, so we don't
24353 # have to do anything special.
24354 aix_use_runtimelinking=no
24355 exp_sym_flag='-Bexport'
24358 # If we're using GNU nm, then we don't want the "-C" option.
24359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24360 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24361 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'
24363 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'
24365 aix_use_runtimelinking=no
24367 # Test if we are trying to use run time linking or normal
24368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24369 # need to do runtime linking.
24370 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24371 for ld_flag in $LDFLAGS; do
24372 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24373 aix_use_runtimelinking=yes
24380 exp_sym_flag='-bexport'
24381 no_entry_flag='-bnoentry'
24384 # When large executables or shared objects are built, AIX ld can
24385 # have problems creating the table of contents. If linking a library
24386 # or program results in "error TOC overflow" add -mminimal-toc to
24387 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24388 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24390 archive_cmds_GCJ=''
24391 hardcode_direct_GCJ=yes
24392 hardcode_libdir_separator_GCJ=':'
24393 link_all_deplibs_GCJ=yes
24395 if test "$GCC" = yes; then
24396 case $host_os in aix4.[012]|aix4.[012].*)
24397 # We only want to do this on AIX 4.2 and lower, the check
24398 # below for broken collect2 doesn't work under 4.3+
24399 collect2name=`${CC} -print-prog-name=collect2`
24400 if test -f "$collect2name" && \
24401 strings "$collect2name" | grep resolve_lib_name >/dev/null
24403 # We have reworked collect2
24404 hardcode_direct_GCJ=yes
24406 # We have old collect2
24407 hardcode_direct_GCJ=unsupported
24408 # It fails to find uninstalled libraries when the uninstalled
24409 # path is not listed in the libpath. Setting hardcode_minus_L
24410 # to unsupported forces relinking
24411 hardcode_minus_L_GCJ=yes
24412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24413 hardcode_libdir_separator_GCJ=
24417 shared_flag='-shared'
24418 if test "$aix_use_runtimelinking" = yes; then
24419 shared_flag="$shared_flag "'${wl}-G'
24423 if test "$host_cpu" = ia64; then
24424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24425 # chokes on -Wl,-G. The following line is correct:
24428 if test "$aix_use_runtimelinking" = yes; then
24429 shared_flag='${wl}-G'
24431 shared_flag='${wl}-bM:SRE'
24436 # It seems that -bexpall does not export symbols beginning with
24437 # underscore (_), so it is better to generate a list of symbols to export.
24438 always_export_symbols_GCJ=yes
24439 if test "$aix_use_runtimelinking" = yes; then
24440 # Warning - without using the other runtime loading flags (-brtl),
24441 # -berok will link without error, but may produce a broken library.
24442 allow_undefined_flag_GCJ='-berok'
24443 # Determine the default libpath from the value encoded in an empty executable.
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24459 rm -f conftest.$ac_objext conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463 *) ac_try_echo=$ac_try;;
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466 (eval "$ac_link") 2>conftest.er1
24468 grep -v '^ *+' conftest.er1 >conftest.err
24470 cat conftest.err >&5
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); } &&
24473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24474 { (case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_try") 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest$ac_exeext'
24484 { (case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_try") 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; }; then
24494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24496 # Check for a 64-bit object if we didn't find anything.
24497 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; }
24500 echo "$as_me: failed program was:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24506 rm -f core conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
24508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24510 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24511 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"
24513 if test "$host_cpu" = ia64; then
24514 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24515 allow_undefined_flag_GCJ="-z nodefs"
24516 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"
24518 # Determine the default libpath from the value encoded in an empty executable.
24519 cat >conftest.$ac_ext <<_ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h. */
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (ac_try="$ac_link"
24536 case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_link") 2>conftest.er1
24543 grep -v '^ *+' conftest.er1 >conftest.err
24545 cat conftest.err >&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); } &&
24548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24549 { (case "(($ac_try" in
24550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551 *) ac_try_echo=$ac_try;;
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554 (eval "$ac_try") 2>&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; } &&
24558 { ac_try='test -s conftest$ac_exeext'
24559 { (case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_try") 2>&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; }; then
24569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24571 # Check for a 64-bit object if we didn't find anything.
24572 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; }
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24581 rm -f core conftest.err conftest.$ac_objext \
24582 conftest$ac_exeext conftest.$ac_ext
24583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24585 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24586 # Warning - without using the other run time loading flags,
24587 # -berok will link without error, but may produce a broken library.
24588 no_undefined_flag_GCJ=' ${wl}-bernotok'
24589 allow_undefined_flag_GCJ=' ${wl}-berok'
24590 # Exported symbols can be pulled into shared objects from archives
24591 whole_archive_flag_spec_GCJ='$convenience'
24592 archive_cmds_need_lc_GCJ=yes
24593 # This is similar to how AIX traditionally builds its shared libraries.
24594 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'
24600 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)'
24601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24602 hardcode_minus_L_GCJ=yes
24603 # see comment about different semantics on the GNU ld section
24608 export_dynamic_flag_spec_GCJ=-rdynamic
24611 cygwin* | mingw* | pw32*)
24612 # When not using gcc, we currently assume that we are using
24613 # Microsoft Visual C++.
24614 # hardcode_libdir_flag_spec is actually meaningless, as there is
24615 # no search path for DLLs.
24616 hardcode_libdir_flag_spec_GCJ=' '
24617 allow_undefined_flag_GCJ=unsupported
24618 # Tell ltmain to make .lib files, not .a files.
24620 # Tell ltmain to make .dll files, not .so files.
24622 # FIXME: Setting linknames here is a bad hack.
24623 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24624 # The linker will automatically build a .lib file if we build a DLL.
24625 old_archive_From_new_cmds_GCJ='true'
24626 # FIXME: Should let the user specify the lib program.
24627 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24628 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24629 enable_shared_with_static_runtimes_GCJ=yes
24632 darwin* | rhapsody*)
24634 rhapsody* | darwin1.[012])
24635 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24638 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24639 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24641 case ${MACOSX_DEPLOYMENT_TARGET} in
24643 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24646 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24652 archive_cmds_need_lc_GCJ=no
24653 hardcode_direct_GCJ=no
24654 hardcode_automatic_GCJ=yes
24655 hardcode_shlibpath_var_GCJ=unsupported
24656 whole_archive_flag_spec_GCJ=''
24657 link_all_deplibs_GCJ=yes
24658 if test "$GCC" = yes ; then
24659 output_verbose_link_cmd='echo'
24660 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24661 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24662 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24663 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}'
24664 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}'
24666 case $cc_basename in
24668 output_verbose_link_cmd='echo'
24669 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24670 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24671 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24672 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}'
24673 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}'
24683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24685 hardcode_shlibpath_var_GCJ=no
24692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24693 # support. Future versions do this automatically, but an explicit c++rt0.o
24694 # does not break anything, and helps significantly (at the cost of a little
24697 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24698 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24699 hardcode_direct_GCJ=yes
24700 hardcode_shlibpath_var_GCJ=no
24703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24705 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24706 hardcode_direct_GCJ=yes
24707 hardcode_minus_L_GCJ=yes
24708 hardcode_shlibpath_var_GCJ=no
24711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24712 freebsd* | kfreebsd*-gnu | dragonfly*)
24713 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24715 hardcode_direct_GCJ=yes
24716 hardcode_shlibpath_var_GCJ=no
24720 if test "$GCC" = yes; then
24721 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'
24723 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'
24725 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24726 hardcode_libdir_separator_GCJ=:
24727 hardcode_direct_GCJ=yes
24729 # hardcode_minus_L: Not really in the search PATH,
24730 # but as the default location of the library.
24731 hardcode_minus_L_GCJ=yes
24732 export_dynamic_flag_spec_GCJ='${wl}-E'
24736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24737 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24739 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24741 if test "$with_gnu_ld" = no; then
24742 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24743 hardcode_libdir_separator_GCJ=:
24745 hardcode_direct_GCJ=yes
24746 export_dynamic_flag_spec_GCJ='${wl}-E'
24748 # hardcode_minus_L: Not really in the search PATH,
24749 # but as the default location of the library.
24750 hardcode_minus_L_GCJ=yes
24755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24758 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24761 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24764 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24770 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24773 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24776 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24780 if test "$with_gnu_ld" = no; then
24781 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24782 hardcode_libdir_separator_GCJ=:
24786 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24787 hardcode_direct_GCJ=no
24788 hardcode_shlibpath_var_GCJ=no
24791 hardcode_direct_GCJ=yes
24792 export_dynamic_flag_spec_GCJ='${wl}-E'
24794 # hardcode_minus_L: Not really in the search PATH,
24795 # but as the default location of the library.
24796 hardcode_minus_L_GCJ=yes
24802 irix5* | irix6* | nonstopux*)
24803 if test "$GCC" = yes; then
24804 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'
24806 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'
24807 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24809 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24810 hardcode_libdir_separator_GCJ=:
24811 link_all_deplibs_GCJ=yes
24815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24816 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24818 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24820 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24821 hardcode_direct_GCJ=yes
24822 hardcode_shlibpath_var_GCJ=no
24826 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24827 hardcode_direct_GCJ=yes
24828 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24829 hardcode_libdir_separator_GCJ=:
24830 hardcode_shlibpath_var_GCJ=no
24834 hardcode_direct_GCJ=yes
24835 hardcode_shlibpath_var_GCJ=no
24836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24837 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24838 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24839 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24840 export_dynamic_flag_spec_GCJ='${wl}-E'
24843 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24844 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24848 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24849 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24856 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24857 hardcode_minus_L_GCJ=yes
24858 allow_undefined_flag_GCJ=unsupported
24859 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'
24860 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24864 if test "$GCC" = yes; then
24865 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24866 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'
24868 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24869 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'
24871 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24872 hardcode_libdir_separator_GCJ=:
24875 osf4* | osf5*) # as osf3* with the addition of -msym flag
24876 if test "$GCC" = yes; then
24877 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24878 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'
24879 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24881 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24882 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'
24883 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~
24884 $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'
24886 # Both c and cxx compiler support -rpath directly
24887 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24889 hardcode_libdir_separator_GCJ=:
24893 no_undefined_flag_GCJ=' -z text'
24894 if test "$GCC" = yes; then
24896 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24897 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24898 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24901 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24902 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24903 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24906 hardcode_shlibpath_var_GCJ=no
24908 solaris2.[0-5] | solaris2.[0-5].*) ;;
24910 # The compiler driver will combine linker options so we
24911 # cannot just pass the convience library names through
24912 # without $wl, iff we do not link with $LD.
24913 # Luckily, gcc supports the same syntax we need for Sun Studio.
24914 # Supported since Solaris 2.6 (maybe 2.5.1?)
24917 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24919 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' ;;
24922 link_all_deplibs_GCJ=yes
24926 if test "x$host_vendor" = xsequent; then
24927 # Use $CC to link under sequent, because it throws in some extra .o
24928 # files that make .init and .fini sections work.
24929 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24931 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24934 hardcode_direct_GCJ=yes
24935 hardcode_minus_L_GCJ=yes
24936 hardcode_shlibpath_var_GCJ=no
24940 case $host_vendor in
24942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24943 hardcode_direct_GCJ=yes # is this really true???
24946 ## LD is ld it makes a PLAMLIB
24947 ## CC just makes a GrossModule.
24948 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24949 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24950 hardcode_direct_GCJ=no
24953 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24954 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24957 runpath_var='LD_RUN_PATH'
24958 hardcode_shlibpath_var_GCJ=no
24962 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24963 hardcode_shlibpath_var_GCJ=no
24964 export_dynamic_flag_spec_GCJ='-Bexport'
24968 if test -d /usr/nec; then
24969 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24970 hardcode_shlibpath_var_GCJ=no
24971 runpath_var=LD_RUN_PATH
24972 hardcode_runpath_var=yes
24977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24978 no_undefined_flag_GCJ='${wl}-z,text'
24979 archive_cmds_need_lc_GCJ=no
24980 hardcode_shlibpath_var_GCJ=no
24981 runpath_var='LD_RUN_PATH'
24983 if test "$GCC" = yes; then
24984 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24985 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24987 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24988 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24992 sysv5* | sco3.2v5* | sco5v6*)
24993 # Note: We can NOT use -z defs as we might desire, because we do not
24994 # link with -lc, and that would cause any symbols used from libc to
24995 # always be unresolved, which means just about no library would
24996 # ever link correctly. If we're not using GNU ld we use -z text
24997 # though, which does catch some bad symbols but isn't as heavy-handed
24999 no_undefined_flag_GCJ='${wl}-z,text'
25000 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25001 archive_cmds_need_lc_GCJ=no
25002 hardcode_shlibpath_var_GCJ=no
25003 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25004 hardcode_libdir_separator_GCJ=':'
25005 link_all_deplibs_GCJ=yes
25006 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25007 runpath_var='LD_RUN_PATH'
25009 if test "$GCC" = yes; then
25010 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25011 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25013 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25014 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25021 hardcode_shlibpath_var_GCJ=no
25030 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25031 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25032 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25035 # Do we need to explicitly link libc?
25037 case "x$archive_cmds_need_lc_GCJ" in
25039 # Assume -lc should be added
25040 archive_cmds_need_lc_GCJ=yes
25042 if test "$enable_shared" = yes && test "$GCC" = yes; then
25043 case $archive_cmds_GCJ in
25045 # FIXME: we may have to deal with multi-command sequences.
25048 # Test whether the compiler implicitly links with -lc since on some
25049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25050 # to ld, don't add -lc before -lgcc.
25051 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25057 (eval $ac_compile) 2>&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } 2>conftest.err; then
25063 libobjs=conftest.$ac_objext
25065 wl=$lt_prog_compiler_wl_GCJ
25066 pic_flag=$lt_prog_compiler_pic_GCJ
25072 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25073 allow_undefined_flag_GCJ=
25074 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25075 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }
25080 archive_cmds_need_lc_GCJ=no
25082 archive_cmds_need_lc_GCJ=yes
25084 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25086 cat conftest.err 1>&5
25089 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25090 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25097 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25099 library_names_spec=
25100 libname_spec='lib$name'
25104 postuninstall_cmds=
25108 shlibpath_overrides_runpath=unknown
25110 dynamic_linker="$host_os ld.so"
25111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25112 if test "$GCC" = yes; then
25113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25114 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25115 # if the path contains ";" then we assume it to be the separator
25116 # otherwise default to the standard path separator (i.e. ":") - it is
25117 # assumed that no part of a normal pathname contains ";" but that should
25118 # okay in the real world where ";" in dirpaths is itself problematic.
25119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25126 need_lib_prefix=unknown
25127 hardcode_into_libs=no
25129 # when you set need_version to no, make sure it does not cause -set_version
25130 # flags to be left without arguments
25131 need_version=unknown
25136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25137 shlibpath_var=LIBPATH
25139 # AIX 3 has no versioning support, so we append a major version to the name.
25140 soname_spec='${libname}${release}${shared_ext}$major'
25147 hardcode_into_libs=yes
25148 if test "$host_cpu" = ia64; then
25149 # AIX 5 supports IA64
25150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25151 shlibpath_var=LD_LIBRARY_PATH
25153 # With GCC up to 2.95.x, collect2 would create an import file
25154 # for dependence libraries. The import file would start with
25155 # the line `#! .'. This would cause the generated library to
25156 # depend on `.', always an invalid library. This was fixed in
25157 # development snapshots of GCC prior to 3.0.
25159 aix4 | aix4.[01] | aix4.[01].*)
25160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25165 can_build_shared=no
25169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25170 # soname into executable. Probably we can add versioning support to
25171 # collect2, so additional links can be useful in future.
25172 if test "$aix_use_runtimelinking" = yes; then
25173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25174 # instead of lib<name>.a to let people know that these are not
25175 # typical AIX shared libraries.
25176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25178 # We preserve .a as extension for shared libraries through AIX4.2
25179 # and later when we are not doing run time linking.
25180 library_names_spec='${libname}${release}.a $libname.a'
25181 soname_spec='${libname}${release}${shared_ext}$major'
25183 shlibpath_var=LIBPATH
25188 library_names_spec='$libname.ixlibrary $libname.a'
25189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25190 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'
25194 library_names_spec='${libname}${shared_ext}'
25195 dynamic_linker="$host_os ld.so"
25196 shlibpath_var=LIBRARY_PATH
25202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25203 soname_spec='${libname}${release}${shared_ext}$major'
25204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25205 shlibpath_var=LD_LIBRARY_PATH
25206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25208 # the default ld.so.conf also contains /usr/contrib/lib and
25209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25210 # libtool to hard-code these into programs
25213 cygwin* | mingw* | pw32*)
25214 version_type=windows
25219 case $GCC,$host_os in
25220 yes,cygwin* | yes,mingw* | yes,pw32*)
25221 library_names_spec='$libname.dll.a'
25222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25223 postinstall_cmds='base_file=`basename \${file}`~
25224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25225 dldir=$destdir/`dirname \$dlpath`~
25226 test -d \$dldir || mkdir -p \$dldir~
25227 $install_prog $dir/$dlname \$dldir/$dlname~
25228 chmod a+x \$dldir/$dlname'
25229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25230 dlpath=$dir/\$dldll~
25232 shlibpath_overrides_runpath=yes
25236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25238 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25241 # MinGW DLLs use traditional 'lib' prefix
25242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25244 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25245 # It is most probably a Windows format PATH printed by
25246 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25247 # path with ; separators, and with drive letters. We can handle the
25248 # drive letters (cygwin fileutils understands them), so leave them,
25249 # especially as we might pass files found there to a mingw objdump,
25250 # which wouldn't understand a cygwinified path. Ahh.
25251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25257 # pw32 DLLs use 'pw' prefix rather than 'lib'
25258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25267 dynamic_linker='Win32 ld.exe'
25268 # FIXME: first we should search . and the directory the executable is in
25272 darwin* | rhapsody*)
25273 dynamic_linker="$host_os dyld"
25274 version_type=darwin
25277 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25278 soname_spec='${libname}${release}${major}$shared_ext'
25279 shlibpath_overrides_runpath=yes
25280 shlibpath_var=DYLD_LIBRARY_PATH
25281 shrext_cmds='.dylib'
25282 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25283 if test "$GCC" = yes; then
25284 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"`
25286 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25296 soname_spec='${libname}${release}${shared_ext}$major'
25297 shlibpath_var=LD_LIBRARY_PATH
25308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25309 soname_spec='${libname}${release}${shared_ext}$major'
25310 shlibpath_var=LD_LIBRARY_PATH
25311 shlibpath_overrides_runpath=no
25312 hardcode_into_libs=yes
25313 dynamic_linker='GNU ld.so'
25316 freebsd* | dragonfly*)
25317 # DragonFly does not have aout. When/if they implement a new
25318 # versioning mechanism, adjust this.
25319 if test -x /usr/bin/objformat; then
25320 objformat=`/usr/bin/objformat`
25323 freebsd[123]*) objformat=aout ;;
25324 *) objformat=elf ;;
25327 version_type=freebsd-$objformat
25328 case $version_type in
25330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25339 shlibpath_var=LD_LIBRARY_PATH
25342 shlibpath_overrides_runpath=yes
25344 freebsd3.[01]* | freebsdelf3.[01]*)
25345 shlibpath_overrides_runpath=yes
25346 hardcode_into_libs=yes
25348 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25349 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25350 shlibpath_overrides_runpath=no
25351 hardcode_into_libs=yes
25353 freebsd*) # from 4.6 on
25354 shlibpath_overrides_runpath=yes
25355 hardcode_into_libs=yes
25364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25365 soname_spec='${libname}${release}${shared_ext}$major'
25366 shlibpath_var=LD_LIBRARY_PATH
25367 hardcode_into_libs=yes
25370 hpux9* | hpux10* | hpux11*)
25371 # Give a soname corresponding to the major version so that dld.sl refuses to
25372 # link against other versions.
25379 hardcode_into_libs=yes
25380 dynamic_linker="$host_os dld.so"
25381 shlibpath_var=LD_LIBRARY_PATH
25382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25384 soname_spec='${libname}${release}${shared_ext}$major'
25385 if test "X$HPUX_IA64_MODE" = X32; then
25386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25394 hardcode_into_libs=yes
25395 dynamic_linker="$host_os dld.sl"
25396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25399 soname_spec='${libname}${release}${shared_ext}$major'
25400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25405 dynamic_linker="$host_os dld.sl"
25406 shlibpath_var=SHLIB_PATH
25407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25409 soname_spec='${libname}${release}${shared_ext}$major'
25412 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25413 postinstall_cmds='chmod 555 $lib'
25420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25421 soname_spec='${libname}${release}${shared_ext}$major'
25422 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25423 shlibpath_var=LD_LIBRARY_PATH
25424 shlibpath_overrides_runpath=no
25425 hardcode_into_libs=yes
25428 irix5* | irix6* | nonstopux*)
25430 nonstopux*) version_type=nonstopux ;;
25432 if test "$lt_cv_prog_gnu_ld" = yes; then
25440 soname_spec='${libname}${release}${shared_ext}$major'
25441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25443 irix5* | nonstopux*)
25444 libsuff= shlibsuff=
25447 case $LD in # libtool.m4 will add one of these switches to LD
25448 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25449 libsuff= shlibsuff= libmagic=32-bit;;
25450 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25451 libsuff=32 shlibsuff=N32 libmagic=N32;;
25452 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25453 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25454 *) libsuff= shlibsuff= libmagic=never-match;;
25458 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25459 shlibpath_overrides_runpath=no
25460 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25461 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25462 hardcode_into_libs=yes
25465 # No shared lib support for Linux oldld, aout, or coff.
25466 linux*oldld* | linux*aout* | linux*coff*)
25470 # This must be Linux ELF.
25475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25476 soname_spec='${libname}${release}${shared_ext}$major'
25477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 shlibpath_overrides_runpath=no
25480 # This implies no fast_install, which is unacceptable.
25481 # Some rework will be needed to allow for fast_install
25482 # before this can be enabled.
25483 hardcode_into_libs=yes
25485 # Append ld.so.conf contents to the search path
25486 if test -f /etc/ld.so.conf; then
25487 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' ' '`
25488 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25491 # We used to test for /lib/ld.so.1 and disable shared libraries on
25492 # powerpc, because MkLinux only supported shared libraries with the
25493 # GNU dynamic linker. Since this was broken with cross compilers,
25494 # most powerpc-linux boxes support dynamic linking these days and
25495 # people can always --disable-shared, the test was removed, and we
25496 # assume the GNU/Linux dynamic linker is in use.
25497 dynamic_linker='GNU/Linux ld.so'
25504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25505 soname_spec='${libname}${release}${shared_ext}$major'
25506 shlibpath_var=LD_LIBRARY_PATH
25507 shlibpath_overrides_runpath=no
25508 hardcode_into_libs=yes
25509 dynamic_linker='GNU ld.so'
25516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25519 dynamic_linker='NetBSD (a.out) ld.so'
25521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25522 soname_spec='${libname}${release}${shared_ext}$major'
25523 dynamic_linker='NetBSD ld.elf_so'
25525 shlibpath_var=LD_LIBRARY_PATH
25526 shlibpath_overrides_runpath=yes
25527 hardcode_into_libs=yes
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 shlibpath_overrides_runpath=yes
25541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25542 soname_spec='${libname}${release}${shared_ext}$major'
25543 shlibpath_var=LD_LIBRARY_PATH
25544 shlibpath_overrides_runpath=yes
25549 sys_lib_dlsearch_path_spec="/usr/lib"
25551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25554 *) need_version=no ;;
25556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25558 shlibpath_var=LD_LIBRARY_PATH
25559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25561 openbsd2.[89] | openbsd2.[89].*)
25562 shlibpath_overrides_runpath=no
25565 shlibpath_overrides_runpath=yes
25569 shlibpath_overrides_runpath=yes
25574 libname_spec='$name'
25577 library_names_spec='$libname${shared_ext} $libname.a'
25578 dynamic_linker='OS/2 ld.exe'
25579 shlibpath_var=LIBPATH
25582 osf3* | osf4* | osf5*)
25586 soname_spec='${libname}${release}${shared_ext}$major'
25587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588 shlibpath_var=LD_LIBRARY_PATH
25589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25598 soname_spec='${libname}${release}${shared_ext}$major'
25599 shlibpath_var=LD_LIBRARY_PATH
25600 shlibpath_overrides_runpath=yes
25601 hardcode_into_libs=yes
25602 # ldd complains unless libraries are executable
25603 postinstall_cmds='chmod +x $lib'
25608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25609 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25610 shlibpath_var=LD_LIBRARY_PATH
25611 shlibpath_overrides_runpath=yes
25612 if test "$with_gnu_ld" = yes; then
25620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25621 soname_spec='${libname}${release}${shared_ext}$major'
25622 shlibpath_var=LD_LIBRARY_PATH
25623 case $host_vendor in
25625 shlibpath_overrides_runpath=no
25627 export_dynamic_flag_spec='${wl}-Blargedynsym'
25628 runpath_var=LD_RUN_PATH
25636 shlibpath_overrides_runpath=no
25637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25643 if test -d /usr/nec ;then
25645 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25646 soname_spec='$libname${shared_ext}.$major'
25647 shlibpath_var=LD_LIBRARY_PATH
25651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25652 version_type=freebsd-elf
25655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25656 soname_spec='${libname}${release}${shared_ext}$major'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 hardcode_into_libs=yes
25659 if test "$with_gnu_ld" = yes; then
25660 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25661 shlibpath_overrides_runpath=no
25663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25664 shlibpath_overrides_runpath=yes
25667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25671 sys_lib_dlsearch_path_spec='/usr/lib'
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25677 soname_spec='${libname}${release}${shared_ext}$major'
25678 shlibpath_var=LD_LIBRARY_PATH
25685 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25686 echo "${ECHO_T}$dynamic_linker" >&6; }
25687 test "$dynamic_linker" = no && can_build_shared=no
25689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25690 if test "$GCC" = yes; then
25691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25694 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25695 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25696 hardcode_action_GCJ=
25697 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25698 test -n "$runpath_var_GCJ" || \
25699 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25701 # We can hardcode non-existant directories.
25702 if test "$hardcode_direct_GCJ" != no &&
25703 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25704 # have to relink, otherwise we might link with an installed library
25705 # when we should be linking with a yet-to-be-installed one
25706 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25707 test "$hardcode_minus_L_GCJ" != no; then
25708 # Linking always hardcodes the temporary library directory.
25709 hardcode_action_GCJ=relink
25711 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25712 hardcode_action_GCJ=immediate
25715 # We cannot hardcode anything, or else we can only hardcode existing
25717 hardcode_action_GCJ=unsupported
25719 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25720 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25722 if test "$hardcode_action_GCJ" = relink; then
25723 # Fast installation is not supported
25724 enable_fast_install=no
25725 elif test "$shlibpath_overrides_runpath" = yes ||
25726 test "$enable_shared" = no; then
25727 # Fast installation is not necessary
25728 enable_fast_install=needless
25732 # The else clause should only fire when bootstrapping the
25733 # libtool distribution, otherwise you forgot to ship ltmain.sh
25734 # with your package, and you will get complaints that there are
25735 # no rules to generate ltmain.sh.
25736 if test -f "$ltmain"; then
25737 # See if we are running on zsh, and set the options which allow our commands through
25738 # without removal of \ escapes.
25739 if test -n "${ZSH_VERSION+set}" ; then
25740 setopt NO_GLOB_SUBST
25742 # Now quote all the things that may contain metacharacters while being
25743 # careful not to overquote the AC_SUBSTed values. We take copies of the
25744 # variables and quote the copies for generation of the libtool script.
25745 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25749 deplibs_check_method reload_flag reload_cmds need_locks \
25750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25751 lt_cv_sys_global_symbol_to_c_name_address \
25752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25753 old_postinstall_cmds old_postuninstall_cmds \
25757 lt_prog_compiler_wl_GCJ \
25758 lt_prog_compiler_pic_GCJ \
25759 lt_prog_compiler_static_GCJ \
25760 lt_prog_compiler_no_builtin_flag_GCJ \
25761 export_dynamic_flag_spec_GCJ \
25762 thread_safe_flag_spec_GCJ \
25763 whole_archive_flag_spec_GCJ \
25764 enable_shared_with_static_runtimes_GCJ \
25765 old_archive_cmds_GCJ \
25766 old_archive_from_new_cmds_GCJ \
25767 predep_objects_GCJ \
25768 postdep_objects_GCJ \
25771 compiler_lib_search_path_GCJ \
25773 archive_expsym_cmds_GCJ \
25774 postinstall_cmds_GCJ \
25775 postuninstall_cmds_GCJ \
25776 old_archive_from_expsyms_cmds_GCJ \
25777 allow_undefined_flag_GCJ \
25778 no_undefined_flag_GCJ \
25779 export_symbols_cmds_GCJ \
25780 hardcode_libdir_flag_spec_GCJ \
25781 hardcode_libdir_flag_spec_ld_GCJ \
25782 hardcode_libdir_separator_GCJ \
25783 hardcode_automatic_GCJ \
25785 module_expsym_cmds_GCJ \
25786 lt_cv_prog_compiler_c_o_GCJ \
25787 exclude_expsyms_GCJ \
25788 include_expsyms_GCJ; do
25791 old_archive_cmds_GCJ | \
25792 old_archive_from_new_cmds_GCJ | \
25793 archive_cmds_GCJ | \
25794 archive_expsym_cmds_GCJ | \
25795 module_cmds_GCJ | \
25796 module_expsym_cmds_GCJ | \
25797 old_archive_from_expsyms_cmds_GCJ | \
25798 export_symbols_cmds_GCJ | \
25799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25800 postinstall_cmds | postuninstall_cmds | \
25801 old_postinstall_cmds | old_postuninstall_cmds | \
25802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25803 # Double-quote double-evaled strings.
25804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25813 *'\$0 --fallback-echo"')
25814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25820 cat <<__EOF__ >> "$cfgfile"
25821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25825 # Shell to use when invoking shell scripts.
25828 # Whether or not to build shared libraries.
25829 build_libtool_libs=$enable_shared
25831 # Whether or not to build static libraries.
25832 build_old_libs=$enable_static
25834 # Whether or not to add -lc for building shared libraries.
25835 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25837 # Whether or not to disallow shared libs when runtime libs are static
25838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25840 # Whether or not to optimize for fast installation.
25841 fast_install=$enable_fast_install
25844 host_alias=$host_alias
25848 # The build system.
25849 build_alias=$build_alias
25853 # An echo program that does not interpret backslashes.
25858 AR_FLAGS=$lt_AR_FLAGS
25863 # LTCC compiler flags.
25864 LTCFLAGS=$lt_LTCFLAGS
25866 # A language-specific compiler.
25867 CC=$lt_compiler_GCJ
25869 # Is the compiler the GNU C compiler?
25875 # The linker used to build libraries.
25878 # Whether we need hard or soft links.
25881 # A BSD-compatible nm program.
25884 # A symbol stripping program
25887 # Used to examine libraries when file_magic_cmd begins "file"
25888 MAGIC_CMD=$MAGIC_CMD
25890 # Used on cygwin: DLL creation program.
25893 # Used on cygwin: object dumper.
25896 # Used on cygwin: assembler.
25899 # The name of the directory that contains temporary libtool files.
25902 # How to create reloadable object files.
25903 reload_flag=$lt_reload_flag
25904 reload_cmds=$lt_reload_cmds
25906 # How to pass a linker flag through the compiler.
25907 wl=$lt_lt_prog_compiler_wl_GCJ
25909 # Object file suffix (normally "o").
25910 objext="$ac_objext"
25912 # Old archive suffix (normally "a").
25915 # Shared library suffix (normally ".so").
25916 shrext_cmds='$shrext_cmds'
25918 # Executable file suffix (normally "").
25921 # Additional compiler flags for building library objects.
25922 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25925 # What is the maximum length of a command?
25926 max_cmd_len=$lt_cv_sys_max_cmd_len
25928 # Does compiler simultaneously support -c and -o options?
25929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25931 # Must we lock files when doing compilation?
25932 need_locks=$lt_need_locks
25934 # Do we need the lib prefix for modules?
25935 need_lib_prefix=$need_lib_prefix
25937 # Do we need a version for libraries?
25938 need_version=$need_version
25940 # Whether dlopen is supported.
25941 dlopen_support=$enable_dlopen
25943 # Whether dlopen of programs is supported.
25944 dlopen_self=$enable_dlopen_self
25946 # Whether dlopen of statically linked programs is supported.
25947 dlopen_self_static=$enable_dlopen_self_static
25949 # Compiler flag to prevent dynamic linking.
25950 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25952 # Compiler flag to turn off builtin functions.
25953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25955 # Compiler flag to allow reflexive dlopens.
25956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25958 # Compiler flag to generate shared objects directly from archives.
25959 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25961 # Compiler flag to generate thread-safe objects.
25962 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25964 # Library versioning type.
25965 version_type=$version_type
25967 # Format of library name prefix.
25968 libname_spec=$lt_libname_spec
25970 # List of archive names. First name is the real one, the rest are links.
25971 # The last name is the one that the linker finds with -lNAME.
25972 library_names_spec=$lt_library_names_spec
25974 # The coded name of the library, if different from the real name.
25975 soname_spec=$lt_soname_spec
25977 # Commands used to build and install an old-style archive.
25979 old_archive_cmds=$lt_old_archive_cmds_GCJ
25980 old_postinstall_cmds=$lt_old_postinstall_cmds
25981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25983 # Create an old-style archive from a shared archive.
25984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25986 # Create a temporary old-style archive to link instead of a shared archive.
25987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25989 # Commands used to build and install a shared archive.
25990 archive_cmds=$lt_archive_cmds_GCJ
25991 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25992 postinstall_cmds=$lt_postinstall_cmds
25993 postuninstall_cmds=$lt_postuninstall_cmds
25995 # Commands used to build a loadable module (assumed same as above if empty)
25996 module_cmds=$lt_module_cmds_GCJ
25997 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25999 # Commands to strip libraries.
26000 old_striplib=$lt_old_striplib
26001 striplib=$lt_striplib
26003 # Dependencies to place before the objects being linked to create a
26005 predep_objects=$lt_predep_objects_GCJ
26007 # Dependencies to place after the objects being linked to create a
26009 postdep_objects=$lt_postdep_objects_GCJ
26011 # Dependencies to place before the objects being linked to create a
26013 predeps=$lt_predeps_GCJ
26015 # Dependencies to place after the objects being linked to create a
26017 postdeps=$lt_postdeps_GCJ
26019 # The library search path used internally by the compiler when linking
26020 # a shared library.
26021 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26023 # Method to check whether dependent libraries are shared objects.
26024 deplibs_check_method=$lt_deplibs_check_method
26026 # Command to use when deplibs_check_method == file_magic.
26027 file_magic_cmd=$lt_file_magic_cmd
26029 # Flag that allows shared libraries with undefined symbols to be built.
26030 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26032 # Flag that forces no undefined symbols.
26033 no_undefined_flag=$lt_no_undefined_flag_GCJ
26035 # Commands used to finish a libtool library installation in a directory.
26036 finish_cmds=$lt_finish_cmds
26038 # Same as above, but a single script fragment to be evaled but not shown.
26039 finish_eval=$lt_finish_eval
26041 # Take the output of nm and produce a listing of raw symbols and C names.
26042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26044 # Transform the output of nm in a proper C declaration
26045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26047 # Transform the output of nm in a C name address pair
26048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26050 # This is the shared library runtime path variable.
26051 runpath_var=$runpath_var
26053 # This is the shared library path variable.
26054 shlibpath_var=$shlibpath_var
26056 # Is shlibpath searched before the hard-coded library search path?
26057 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26059 # How to hardcode a shared library path into an executable.
26060 hardcode_action=$hardcode_action_GCJ
26062 # Whether we should hardcode library paths into libraries.
26063 hardcode_into_libs=$hardcode_into_libs
26065 # Flag to hardcode \$libdir into a binary during linking.
26066 # This must work even if \$libdir does not exist.
26067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26069 # If ld is used when linking, flag to hardcode \$libdir into
26070 # a binary during linking. This must work even if \$libdir does
26072 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26074 # Whether we need a single -rpath flag with a separated argument.
26075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26077 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26078 # resulting binary.
26079 hardcode_direct=$hardcode_direct_GCJ
26081 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26082 # resulting binary.
26083 hardcode_minus_L=$hardcode_minus_L_GCJ
26085 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26086 # the resulting binary.
26087 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26089 # Set to yes if building a shared library automatically hardcodes DIR into the library
26090 # and all subsequent libraries and executables linked against it.
26091 hardcode_automatic=$hardcode_automatic_GCJ
26093 # Variables whose values should be saved in libtool wrapper scripts and
26094 # restored at relink time.
26095 variables_saved_for_relink="$variables_saved_for_relink"
26097 # Whether libtool must link a program against all its dependency libraries.
26098 link_all_deplibs=$link_all_deplibs_GCJ
26100 # Compile-time system search path for libraries
26101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26103 # Run-time system search path for libraries
26104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26106 # Fix the shell variable \$srcfile for the compiler.
26107 fix_srcfile_path="$fix_srcfile_path_GCJ"
26109 # Set to yes if exported symbols are required.
26110 always_export_symbols=$always_export_symbols_GCJ
26112 # The commands to list exported symbols.
26113 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26115 # The commands to extract the exported symbol list from a shared archive.
26116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26118 # Symbols that should not be listed in the preloaded symbols.
26119 exclude_expsyms=$lt_exclude_expsyms_GCJ
26121 # Symbols that must always be exported.
26122 include_expsyms=$lt_include_expsyms_GCJ
26124 # ### END LIBTOOL TAG CONFIG: $tagname
26130 # If there is no Makefile yet, we rely on a make rule to execute
26131 # `config.status --recheck' to rerun these tests and create the
26132 # libtool script then.
26133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26134 if test -f "$ltmain_in"; then
26135 test -f Makefile && make "$ltmain"
26141 ac_cpp='$CPP $CPPFLAGS'
26142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26155 ac_cpp='$CPP $CPPFLAGS'
26156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26161 # Source file extension for RC test sources.
26164 # Object file extension for compiled RC test sources.
26168 # Code to be used in simple compile tests
26169 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26171 # Code to be used in simple link tests
26172 lt_simple_link_test_code="$lt_simple_compile_test_code"
26174 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26176 # If no C compiler was specified, use CC.
26179 # If no C compiler flags were specified, use CFLAGS.
26180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26182 # Allow CC to be a program name with arguments.
26186 # save warnings/boilerplate of simple test code
26187 ac_outfile=conftest.$ac_objext
26188 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26189 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26190 _lt_compiler_boilerplate=`cat conftest.err`
26193 ac_outfile=conftest.$ac_objext
26194 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26195 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26196 _lt_linker_boilerplate=`cat conftest.err`
26200 # Allow CC to be a program name with arguments.
26205 for cc_temp in $compiler""; do
26207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26213 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26215 lt_cv_prog_compiler_c_o_RC=yes
26217 # The else clause should only fire when bootstrapping the
26218 # libtool distribution, otherwise you forgot to ship ltmain.sh
26219 # with your package, and you will get complaints that there are
26220 # no rules to generate ltmain.sh.
26221 if test -f "$ltmain"; then
26222 # See if we are running on zsh, and set the options which allow our commands through
26223 # without removal of \ escapes.
26224 if test -n "${ZSH_VERSION+set}" ; then
26225 setopt NO_GLOB_SUBST
26227 # Now quote all the things that may contain metacharacters while being
26228 # careful not to overquote the AC_SUBSTed values. We take copies of the
26229 # variables and quote the copies for generation of the libtool script.
26230 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26232 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26233 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26234 deplibs_check_method reload_flag reload_cmds need_locks \
26235 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26236 lt_cv_sys_global_symbol_to_c_name_address \
26237 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26238 old_postinstall_cmds old_postuninstall_cmds \
26242 lt_prog_compiler_wl_RC \
26243 lt_prog_compiler_pic_RC \
26244 lt_prog_compiler_static_RC \
26245 lt_prog_compiler_no_builtin_flag_RC \
26246 export_dynamic_flag_spec_RC \
26247 thread_safe_flag_spec_RC \
26248 whole_archive_flag_spec_RC \
26249 enable_shared_with_static_runtimes_RC \
26250 old_archive_cmds_RC \
26251 old_archive_from_new_cmds_RC \
26252 predep_objects_RC \
26253 postdep_objects_RC \
26256 compiler_lib_search_path_RC \
26258 archive_expsym_cmds_RC \
26259 postinstall_cmds_RC \
26260 postuninstall_cmds_RC \
26261 old_archive_from_expsyms_cmds_RC \
26262 allow_undefined_flag_RC \
26263 no_undefined_flag_RC \
26264 export_symbols_cmds_RC \
26265 hardcode_libdir_flag_spec_RC \
26266 hardcode_libdir_flag_spec_ld_RC \
26267 hardcode_libdir_separator_RC \
26268 hardcode_automatic_RC \
26270 module_expsym_cmds_RC \
26271 lt_cv_prog_compiler_c_o_RC \
26272 exclude_expsyms_RC \
26273 include_expsyms_RC; do
26276 old_archive_cmds_RC | \
26277 old_archive_from_new_cmds_RC | \
26278 archive_cmds_RC | \
26279 archive_expsym_cmds_RC | \
26281 module_expsym_cmds_RC | \
26282 old_archive_from_expsyms_cmds_RC | \
26283 export_symbols_cmds_RC | \
26284 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26285 postinstall_cmds | postuninstall_cmds | \
26286 old_postinstall_cmds | old_postuninstall_cmds | \
26287 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26288 # Double-quote double-evaled strings.
26289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26298 *'\$0 --fallback-echo"')
26299 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26305 cat <<__EOF__ >> "$cfgfile"
26306 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26308 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26310 # Shell to use when invoking shell scripts.
26313 # Whether or not to build shared libraries.
26314 build_libtool_libs=$enable_shared
26316 # Whether or not to build static libraries.
26317 build_old_libs=$enable_static
26319 # Whether or not to add -lc for building shared libraries.
26320 build_libtool_need_lc=$archive_cmds_need_lc_RC
26322 # Whether or not to disallow shared libs when runtime libs are static
26323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26325 # Whether or not to optimize for fast installation.
26326 fast_install=$enable_fast_install
26329 host_alias=$host_alias
26333 # The build system.
26334 build_alias=$build_alias
26338 # An echo program that does not interpret backslashes.
26343 AR_FLAGS=$lt_AR_FLAGS
26348 # LTCC compiler flags.
26349 LTCFLAGS=$lt_LTCFLAGS
26351 # A language-specific compiler.
26354 # Is the compiler the GNU C compiler?
26360 # The linker used to build libraries.
26363 # Whether we need hard or soft links.
26366 # A BSD-compatible nm program.
26369 # A symbol stripping program
26372 # Used to examine libraries when file_magic_cmd begins "file"
26373 MAGIC_CMD=$MAGIC_CMD
26375 # Used on cygwin: DLL creation program.
26378 # Used on cygwin: object dumper.
26381 # Used on cygwin: assembler.
26384 # The name of the directory that contains temporary libtool files.
26387 # How to create reloadable object files.
26388 reload_flag=$lt_reload_flag
26389 reload_cmds=$lt_reload_cmds
26391 # How to pass a linker flag through the compiler.
26392 wl=$lt_lt_prog_compiler_wl_RC
26394 # Object file suffix (normally "o").
26395 objext="$ac_objext"
26397 # Old archive suffix (normally "a").
26400 # Shared library suffix (normally ".so").
26401 shrext_cmds='$shrext_cmds'
26403 # Executable file suffix (normally "").
26406 # Additional compiler flags for building library objects.
26407 pic_flag=$lt_lt_prog_compiler_pic_RC
26410 # What is the maximum length of a command?
26411 max_cmd_len=$lt_cv_sys_max_cmd_len
26413 # Does compiler simultaneously support -c and -o options?
26414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26416 # Must we lock files when doing compilation?
26417 need_locks=$lt_need_locks
26419 # Do we need the lib prefix for modules?
26420 need_lib_prefix=$need_lib_prefix
26422 # Do we need a version for libraries?
26423 need_version=$need_version
26425 # Whether dlopen is supported.
26426 dlopen_support=$enable_dlopen
26428 # Whether dlopen of programs is supported.
26429 dlopen_self=$enable_dlopen_self
26431 # Whether dlopen of statically linked programs is supported.
26432 dlopen_self_static=$enable_dlopen_self_static
26434 # Compiler flag to prevent dynamic linking.
26435 link_static_flag=$lt_lt_prog_compiler_static_RC
26437 # Compiler flag to turn off builtin functions.
26438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26440 # Compiler flag to allow reflexive dlopens.
26441 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26443 # Compiler flag to generate shared objects directly from archives.
26444 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26446 # Compiler flag to generate thread-safe objects.
26447 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26449 # Library versioning type.
26450 version_type=$version_type
26452 # Format of library name prefix.
26453 libname_spec=$lt_libname_spec
26455 # List of archive names. First name is the real one, the rest are links.
26456 # The last name is the one that the linker finds with -lNAME.
26457 library_names_spec=$lt_library_names_spec
26459 # The coded name of the library, if different from the real name.
26460 soname_spec=$lt_soname_spec
26462 # Commands used to build and install an old-style archive.
26464 old_archive_cmds=$lt_old_archive_cmds_RC
26465 old_postinstall_cmds=$lt_old_postinstall_cmds
26466 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26468 # Create an old-style archive from a shared archive.
26469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26471 # Create a temporary old-style archive to link instead of a shared archive.
26472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26474 # Commands used to build and install a shared archive.
26475 archive_cmds=$lt_archive_cmds_RC
26476 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26477 postinstall_cmds=$lt_postinstall_cmds
26478 postuninstall_cmds=$lt_postuninstall_cmds
26480 # Commands used to build a loadable module (assumed same as above if empty)
26481 module_cmds=$lt_module_cmds_RC
26482 module_expsym_cmds=$lt_module_expsym_cmds_RC
26484 # Commands to strip libraries.
26485 old_striplib=$lt_old_striplib
26486 striplib=$lt_striplib
26488 # Dependencies to place before the objects being linked to create a
26490 predep_objects=$lt_predep_objects_RC
26492 # Dependencies to place after the objects being linked to create a
26494 postdep_objects=$lt_postdep_objects_RC
26496 # Dependencies to place before the objects being linked to create a
26498 predeps=$lt_predeps_RC
26500 # Dependencies to place after the objects being linked to create a
26502 postdeps=$lt_postdeps_RC
26504 # The library search path used internally by the compiler when linking
26505 # a shared library.
26506 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26508 # Method to check whether dependent libraries are shared objects.
26509 deplibs_check_method=$lt_deplibs_check_method
26511 # Command to use when deplibs_check_method == file_magic.
26512 file_magic_cmd=$lt_file_magic_cmd
26514 # Flag that allows shared libraries with undefined symbols to be built.
26515 allow_undefined_flag=$lt_allow_undefined_flag_RC
26517 # Flag that forces no undefined symbols.
26518 no_undefined_flag=$lt_no_undefined_flag_RC
26520 # Commands used to finish a libtool library installation in a directory.
26521 finish_cmds=$lt_finish_cmds
26523 # Same as above, but a single script fragment to be evaled but not shown.
26524 finish_eval=$lt_finish_eval
26526 # Take the output of nm and produce a listing of raw symbols and C names.
26527 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26529 # Transform the output of nm in a proper C declaration
26530 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26532 # Transform the output of nm in a C name address pair
26533 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26535 # This is the shared library runtime path variable.
26536 runpath_var=$runpath_var
26538 # This is the shared library path variable.
26539 shlibpath_var=$shlibpath_var
26541 # Is shlibpath searched before the hard-coded library search path?
26542 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26544 # How to hardcode a shared library path into an executable.
26545 hardcode_action=$hardcode_action_RC
26547 # Whether we should hardcode library paths into libraries.
26548 hardcode_into_libs=$hardcode_into_libs
26550 # Flag to hardcode \$libdir into a binary during linking.
26551 # This must work even if \$libdir does not exist.
26552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26554 # If ld is used when linking, flag to hardcode \$libdir into
26555 # a binary during linking. This must work even if \$libdir does
26557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26559 # Whether we need a single -rpath flag with a separated argument.
26560 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26562 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26563 # resulting binary.
26564 hardcode_direct=$hardcode_direct_RC
26566 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26567 # resulting binary.
26568 hardcode_minus_L=$hardcode_minus_L_RC
26570 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26571 # the resulting binary.
26572 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26574 # Set to yes if building a shared library automatically hardcodes DIR into the library
26575 # and all subsequent libraries and executables linked against it.
26576 hardcode_automatic=$hardcode_automatic_RC
26578 # Variables whose values should be saved in libtool wrapper scripts and
26579 # restored at relink time.
26580 variables_saved_for_relink="$variables_saved_for_relink"
26582 # Whether libtool must link a program against all its dependency libraries.
26583 link_all_deplibs=$link_all_deplibs_RC
26585 # Compile-time system search path for libraries
26586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26588 # Run-time system search path for libraries
26589 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26591 # Fix the shell variable \$srcfile for the compiler.
26592 fix_srcfile_path="$fix_srcfile_path_RC"
26594 # Set to yes if exported symbols are required.
26595 always_export_symbols=$always_export_symbols_RC
26597 # The commands to list exported symbols.
26598 export_symbols_cmds=$lt_export_symbols_cmds_RC
26600 # The commands to extract the exported symbol list from a shared archive.
26601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26603 # Symbols that should not be listed in the preloaded symbols.
26604 exclude_expsyms=$lt_exclude_expsyms_RC
26606 # Symbols that must always be exported.
26607 include_expsyms=$lt_include_expsyms_RC
26609 # ### END LIBTOOL TAG CONFIG: $tagname
26615 # If there is no Makefile yet, we rely on a make rule to execute
26616 # `config.status --recheck' to rerun these tests and create the
26617 # libtool script then.
26618 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26619 if test -f "$ltmain_in"; then
26620 test -f Makefile && make "$ltmain"
26626 ac_cpp='$CPP $CPPFLAGS'
26627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26636 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26637 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26638 { (exit 1); exit 1; }; }
26642 # Append the new tag name to the list of available tags.
26643 if test -n "$tagname" ; then
26644 available_tags="$available_tags $tagname"
26650 # Now substitute the updated list of available tags.
26651 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26652 mv "${ofile}T" "$ofile"
26656 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26657 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26658 { (exit 1); exit 1; }; }
26664 # This can be used to rebuild libtool when needed
26665 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26667 # Always use our own libtool.
26668 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26670 # Prevent multiple expansion
26692 if test "$lt_cv_dlopen_self" = "yes" ; then
26694 cat >>confdefs.h <<\_ACEOF
26695 #define CAN_DLOPEN_SELF 1
26700 if test "$WITH_LLVMGCCDIR" = "default" ; then
26701 LLVMGCC="llvm-gcc${EXEEXT}"
26702 LLVMGXX="llvm-g++${EXEEXT}"
26703 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26704 set dummy $LLVMGCC; ac_word=$2
26705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26707 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26708 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26716 for as_dir in $PATH
26719 test -z "$as_dir" && as_dir=.
26720 for ac_exec_ext in '' $ac_executable_extensions; do
26721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26722 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26733 LLVMGCC=$ac_cv_path_LLVMGCC
26734 if test -n "$LLVMGCC"; then
26735 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26736 echo "${ECHO_T}$LLVMGCC" >&6; }
26738 { echo "$as_me:$LINENO: result: no" >&5
26739 echo "${ECHO_T}no" >&6; }
26743 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26744 set dummy $LLVMGXX; ac_word=$2
26745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26747 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26752 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26756 for as_dir in $PATH
26759 test -z "$as_dir" && as_dir=.
26760 for ac_exec_ext in '' $ac_executable_extensions; do
26761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26762 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26773 LLVMGXX=$ac_cv_path_LLVMGXX
26774 if test -n "$LLVMGXX"; then
26775 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26776 echo "${ECHO_T}$LLVMGXX" >&6; }
26778 { echo "$as_me:$LINENO: result: no" >&5
26779 echo "${ECHO_T}no" >&6; }
26784 if test -z "$LLVMGCC"; then
26785 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26787 if test -z "$LLVMGXX"; then
26788 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26796 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26797 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26810 if test "$GCC" != "yes" && test "$ICC" != "yes"
26812 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26813 echo "$as_me: error: gcc|icc required but not found" >&2;}
26814 { (exit 1); exit 1; }; }
26817 if test "$GXX" != "yes" && test "$IXX" != "yes"
26819 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26820 echo "$as_me: error: g++|icc required but not found" >&2;}
26821 { (exit 1); exit 1; }; }
26824 if test "$GCC" = "yes"
26826 cat >conftest.$ac_ext <<_ACEOF
26827 #if !defined(__GNUC__) || __GNUC__ < 3
26828 #error Unsupported GCC version
26832 rm -f conftest.$ac_objext
26833 if { (ac_try="$ac_compile"
26834 case "(($ac_try" in
26835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26836 *) ac_try_echo=$ac_try;;
26838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26839 (eval "$ac_compile") 2>conftest.er1
26841 grep -v '^ *+' conftest.er1 >conftest.err
26843 cat conftest.err >&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
26846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26847 { (case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852 (eval "$ac_try") 2>&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; } &&
26856 { ac_try='test -s conftest.$ac_objext'
26857 { (case "(($ac_try" in
26858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26859 *) ac_try_echo=$ac_try;;
26861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26862 (eval "$ac_try") 2>&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; }; then
26868 echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26871 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26872 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26873 { (exit 1); exit 1; }; }
26876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26879 if test -z "$llvm_cv_gnu_make_command"
26881 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26882 echo "$as_me: error: GNU Make required but not found" >&2;}
26883 { (exit 1); exit 1; }; }
26886 { echo "$as_me:$LINENO: result: ok" >&5
26887 echo "${ECHO_T}ok" >&6; }
26891 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26892 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26893 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26896 ac_check_lib_save_LIBS=$LIBS
26898 cat >conftest.$ac_ext <<_ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h. */
26905 /* Override any GCC internal prototype to avoid an error.
26906 Use char because int might match the return type of a GCC
26907 builtin and then its argument prototype would still apply. */
26915 return elf_begin ();
26920 rm -f conftest.$ac_objext conftest$ac_exeext
26921 if { (ac_try="$ac_link"
26922 case "(($ac_try" in
26923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924 *) ac_try_echo=$ac_try;;
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927 (eval "$ac_link") 2>conftest.er1
26929 grep -v '^ *+' conftest.er1 >conftest.err
26931 cat conftest.err >&5
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); } &&
26934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26935 { (case "(($ac_try" in
26936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937 *) ac_try_echo=$ac_try;;
26939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940 (eval "$ac_try") 2>&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; } &&
26944 { ac_try='test -s conftest$ac_exeext'
26945 { (case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_try") 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
26954 ac_cv_lib_elf_elf_begin=yes
26956 echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26959 ac_cv_lib_elf_elf_begin=no
26962 rm -f core conftest.err conftest.$ac_objext \
26963 conftest$ac_exeext conftest.$ac_ext
26964 LIBS=$ac_check_lib_save_LIBS
26966 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26967 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26968 if test $ac_cv_lib_elf_elf_begin = yes; then
26969 cat >>confdefs.h <<_ACEOF
26970 #define HAVE_LIBELF 1
26978 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26979 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26980 if test "${ac_cv_lib_m_sin+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 ac_check_lib_save_LIBS=$LIBS
26985 cat >conftest.$ac_ext <<_ACEOF
26988 cat confdefs.h >>conftest.$ac_ext
26989 cat >>conftest.$ac_ext <<_ACEOF
26990 /* end confdefs.h. */
26992 /* Override any GCC internal prototype to avoid an error.
26993 Use char because int might match the return type of a GCC
26994 builtin and then its argument prototype would still apply. */
27007 rm -f conftest.$ac_objext conftest$ac_exeext
27008 if { (ac_try="$ac_link"
27009 case "(($ac_try" in
27010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011 *) ac_try_echo=$ac_try;;
27013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014 (eval "$ac_link") 2>conftest.er1
27016 grep -v '^ *+' conftest.er1 >conftest.err
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
27021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022 { (case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_try") 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; } &&
27031 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
27041 ac_cv_lib_m_sin=yes
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27049 rm -f core conftest.err conftest.$ac_objext \
27050 conftest$ac_exeext conftest.$ac_ext
27051 LIBS=$ac_check_lib_save_LIBS
27053 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27054 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27055 if test $ac_cv_lib_m_sin = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057 #define HAVE_LIBM 1
27064 if test "$llvm_cv_os_type" = "MingW" ; then
27066 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27067 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27068 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27071 ac_check_lib_save_LIBS=$LIBS
27072 LIBS="-limagehlp $LIBS"
27073 cat >conftest.$ac_ext <<_ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h. */
27089 rm -f conftest.$ac_objext conftest$ac_exeext
27090 if { (ac_try="$ac_link"
27091 case "(($ac_try" in
27092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093 *) ac_try_echo=$ac_try;;
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096 (eval "$ac_link") 2>conftest.er1
27098 grep -v '^ *+' conftest.er1 >conftest.err
27100 cat conftest.err >&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } &&
27103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27104 { (case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109 (eval "$ac_try") 2>&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; } &&
27113 { ac_try='test -s conftest$ac_exeext'
27114 { (case "(($ac_try" in
27115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116 *) ac_try_echo=$ac_try;;
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119 (eval "$ac_try") 2>&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); }; }; then
27123 ac_cv_lib_imagehlp_main=yes
27125 echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27128 ac_cv_lib_imagehlp_main=no
27131 rm -f core conftest.err conftest.$ac_objext \
27132 conftest$ac_exeext conftest.$ac_ext
27133 LIBS=$ac_check_lib_save_LIBS
27135 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27136 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27137 if test $ac_cv_lib_imagehlp_main = yes; then
27138 cat >>confdefs.h <<_ACEOF
27139 #define HAVE_LIBIMAGEHLP 1
27142 LIBS="-limagehlp $LIBS"
27147 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27148 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27149 if test "${ac_cv_lib_psapi_main+set}" = set; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27152 ac_check_lib_save_LIBS=$LIBS
27153 LIBS="-lpsapi $LIBS"
27154 cat >conftest.$ac_ext <<_ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h. */
27170 rm -f conftest.$ac_objext conftest$ac_exeext
27171 if { (ac_try="$ac_link"
27172 case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_link") 2>conftest.er1
27179 grep -v '^ *+' conftest.er1 >conftest.err
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } &&
27184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27185 { (case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190 (eval "$ac_try") 2>&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; } &&
27194 { ac_try='test -s conftest$ac_exeext'
27195 { (case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_try") 2>&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); }; }; then
27204 ac_cv_lib_psapi_main=yes
27206 echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27209 ac_cv_lib_psapi_main=no
27212 rm -f core conftest.err conftest.$ac_objext \
27213 conftest$ac_exeext conftest.$ac_ext
27214 LIBS=$ac_check_lib_save_LIBS
27216 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27217 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27218 if test $ac_cv_lib_psapi_main = yes; then
27219 cat >>confdefs.h <<_ACEOF
27220 #define HAVE_LIBPSAPI 1
27223 LIBS="-lpsapi $LIBS"
27229 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27230 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27231 if test "${ac_cv_search_dlopen+set}" = set; then
27232 echo $ECHO_N "(cached) $ECHO_C" >&6
27234 ac_func_search_save_LIBS=$LIBS
27235 cat >conftest.$ac_ext <<_ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h. */
27242 /* Override any GCC internal prototype to avoid an error.
27243 Use char because int might match the return type of a GCC
27244 builtin and then its argument prototype would still apply. */
27257 for ac_lib in '' dl; do
27258 if test -z "$ac_lib"; then
27259 ac_res="none required"
27262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27264 rm -f conftest.$ac_objext conftest$ac_exeext
27265 if { (ac_try="$ac_link"
27266 case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_link") 2>conftest.er1
27273 grep -v '^ *+' conftest.er1 >conftest.err
27275 cat conftest.err >&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } &&
27278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; } &&
27288 { ac_try='test -s conftest$ac_exeext'
27289 { (case "(($ac_try" in
27290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291 *) ac_try_echo=$ac_try;;
27293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294 (eval "$ac_try") 2>&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
27298 ac_cv_search_dlopen=$ac_res
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27306 rm -f core conftest.err conftest.$ac_objext \
27308 if test "${ac_cv_search_dlopen+set}" = set; then
27312 if test "${ac_cv_search_dlopen+set}" = set; then
27315 ac_cv_search_dlopen=no
27317 rm conftest.$ac_ext
27318 LIBS=$ac_func_search_save_LIBS
27320 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27321 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27322 ac_res=$ac_cv_search_dlopen
27323 if test "$ac_res" != no; then
27324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27326 cat >>confdefs.h <<\_ACEOF
27327 #define HAVE_DLOPEN 1
27331 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27332 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27336 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27337 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27338 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27339 echo $ECHO_N "(cached) $ECHO_C" >&6
27341 ac_check_lib_save_LIBS=$LIBS
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27350 /* Override any GCC internal prototype to avoid an error.
27351 Use char because int might match the return type of a GCC
27352 builtin and then its argument prototype would still apply. */
27360 return ffi_call ();
27365 rm -f conftest.$ac_objext conftest$ac_exeext
27366 if { (ac_try="$ac_link"
27367 case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372 (eval "$ac_link") 2>conftest.er1
27374 grep -v '^ *+' conftest.er1 >conftest.err
27376 cat conftest.err >&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } &&
27379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27380 { (case "(($ac_try" in
27381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382 *) ac_try_echo=$ac_try;;
27384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385 (eval "$ac_try") 2>&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; } &&
27389 { ac_try='test -s conftest$ac_exeext'
27390 { (case "(($ac_try" in
27391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392 *) ac_try_echo=$ac_try;;
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395 (eval "$ac_try") 2>&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; }; then
27399 ac_cv_lib_ffi_ffi_call=yes
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27404 ac_cv_lib_ffi_ffi_call=no
27407 rm -f core conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
27409 LIBS=$ac_check_lib_save_LIBS
27411 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27412 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27413 if test $ac_cv_lib_ffi_ffi_call = yes; then
27416 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27417 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27421 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27422 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27423 if test "${ac_cv_search_mallinfo+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 ac_func_search_save_LIBS=$LIBS
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27434 /* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
27444 return mallinfo ();
27449 for ac_lib in '' malloc; do
27450 if test -z "$ac_lib"; then
27451 ac_res="none required"
27454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (ac_try="$ac_link"
27458 case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_link") 2>conftest.er1
27465 grep -v '^ *+' conftest.er1 >conftest.err
27467 cat conftest.err >&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
27470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471 { (case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476 (eval "$ac_try") 2>&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest$ac_exeext'
27481 { (case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_try") 2>&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
27490 ac_cv_search_mallinfo=$ac_res
27492 echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27498 rm -f core conftest.err conftest.$ac_objext \
27500 if test "${ac_cv_search_mallinfo+set}" = set; then
27504 if test "${ac_cv_search_mallinfo+set}" = set; then
27507 ac_cv_search_mallinfo=no
27509 rm conftest.$ac_ext
27510 LIBS=$ac_func_search_save_LIBS
27512 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27513 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27514 ac_res=$ac_cv_search_mallinfo
27515 if test "$ac_res" != no; then
27516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27518 cat >>confdefs.h <<\_ACEOF
27519 #define HAVE_MALLINFO 1
27525 if test "$ENABLE_THREADS" -eq 1 ; then
27527 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27528 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27529 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27532 ac_check_lib_save_LIBS=$LIBS
27533 LIBS="-lpthread $LIBS"
27534 cat >conftest.$ac_ext <<_ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27541 /* Override any GCC internal prototype to avoid an error.
27542 Use char because int might match the return type of a GCC
27543 builtin and then its argument prototype would still apply. */
27547 char pthread_mutex_init ();
27551 return pthread_mutex_init ();
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_link") 2>conftest.er1
27565 grep -v '^ *+' conftest.er1 >conftest.err
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
27590 ac_cv_lib_pthread_pthread_mutex_init=yes
27592 echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27595 ac_cv_lib_pthread_pthread_mutex_init=no
27598 rm -f core conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext conftest.$ac_ext
27600 LIBS=$ac_check_lib_save_LIBS
27602 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27603 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27604 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27605 cat >>confdefs.h <<_ACEOF
27606 #define HAVE_LIBPTHREAD 1
27609 LIBS="-lpthread $LIBS"
27613 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27614 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27615 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27618 ac_func_search_save_LIBS=$LIBS
27619 cat >conftest.$ac_ext <<_ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h. */
27626 /* Override any GCC internal prototype to avoid an error.
27627 Use char because int might match the return type of a GCC
27628 builtin and then its argument prototype would still apply. */
27632 char pthread_mutex_lock ();
27636 return pthread_mutex_lock ();
27641 for ac_lib in '' pthread; do
27642 if test -z "$ac_lib"; then
27643 ac_res="none required"
27646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27648 rm -f conftest.$ac_objext conftest$ac_exeext
27649 if { (ac_try="$ac_link"
27650 case "(($ac_try" in
27651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652 *) ac_try_echo=$ac_try;;
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655 (eval "$ac_link") 2>conftest.er1
27657 grep -v '^ *+' conftest.er1 >conftest.err
27659 cat conftest.err >&5
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); } &&
27662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27663 { (case "(($ac_try" in
27664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27665 *) ac_try_echo=$ac_try;;
27667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27668 (eval "$ac_try") 2>&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; } &&
27672 { ac_try='test -s conftest$ac_exeext'
27673 { (case "(($ac_try" in
27674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675 *) ac_try_echo=$ac_try;;
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678 (eval "$ac_try") 2>&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; }; then
27682 ac_cv_search_pthread_mutex_lock=$ac_res
27684 echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27690 rm -f core conftest.err conftest.$ac_objext \
27692 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27696 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27699 ac_cv_search_pthread_mutex_lock=no
27701 rm conftest.$ac_ext
27702 LIBS=$ac_func_search_save_LIBS
27704 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27705 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27706 ac_res=$ac_cv_search_pthread_mutex_lock
27707 if test "$ac_res" != no; then
27708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27710 cat >>confdefs.h <<\_ACEOF
27711 #define HAVE_PTHREAD_MUTEX_LOCK 1
27719 # Check whether --with-udis86 was given.
27720 if test "${with_udis86+set}" = set; then
27721 withval=$with_udis86;
27726 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27729 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27730 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27731 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27732 echo $ECHO_N "(cached) $ECHO_C" >&6
27734 ac_check_lib_save_LIBS=$LIBS
27735 LIBS="-ludis86 $LIBS"
27736 cat >conftest.$ac_ext <<_ACEOF
27739 cat confdefs.h >>conftest.$ac_ext
27740 cat >>conftest.$ac_ext <<_ACEOF
27741 /* end confdefs.h. */
27743 /* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27758 rm -f conftest.$ac_objext conftest$ac_exeext
27759 if { (ac_try="$ac_link"
27760 case "(($ac_try" in
27761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762 *) ac_try_echo=$ac_try;;
27764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765 (eval "$ac_link") 2>conftest.er1
27767 grep -v '^ *+' conftest.er1 >conftest.err
27769 cat conftest.err >&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773 { (case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest$ac_exeext'
27783 { (case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_try") 2>&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27792 ac_cv_lib_udis86_ud_init=yes
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27797 ac_cv_lib_udis86_ud_init=no
27800 rm -f core conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext conftest.$ac_ext
27802 LIBS=$ac_check_lib_save_LIBS
27804 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27805 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27806 if test $ac_cv_lib_udis86_ud_init = yes; then
27807 cat >>confdefs.h <<_ACEOF
27808 #define HAVE_LIBUDIS86 1
27811 LIBS="-ludis86 $LIBS"
27815 echo "Error! You need to have libudis86 around."
27827 cat >>confdefs.h <<_ACEOF
27828 #define USE_UDIS86 $USE_UDIS86
27838 ac_header_dirent=no
27839 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27840 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27841 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27842 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27846 cat >conftest.$ac_ext <<_ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h. */
27852 #include <sys/types.h>
27864 rm -f conftest.$ac_objext
27865 if { (ac_try="$ac_compile"
27866 case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_compile") 2>conftest.er1
27873 grep -v '^ *+' conftest.er1 >conftest.err
27875 cat conftest.err >&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); } &&
27878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27879 { (case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_try") 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; } &&
27888 { ac_try='test -s conftest.$ac_objext'
27889 { (case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_try") 2>&5
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
27898 eval "$as_ac_Header=yes"
27900 echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27903 eval "$as_ac_Header=no"
27906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908 ac_res=`eval echo '${'$as_ac_Header'}'`
27909 { echo "$as_me:$LINENO: result: $ac_res" >&5
27910 echo "${ECHO_T}$ac_res" >&6; }
27911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27912 cat >>confdefs.h <<_ACEOF
27913 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27916 ac_header_dirent=$ac_hdr; break
27920 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27921 if test $ac_header_dirent = dirent.h; then
27922 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27923 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27924 if test "${ac_cv_search_opendir+set}" = set; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 ac_func_search_save_LIBS=$LIBS
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27935 /* Override any GCC internal prototype to avoid an error.
27936 Use char because int might match the return type of a GCC
27937 builtin and then its argument prototype would still apply. */
27950 for ac_lib in '' dir; do
27951 if test -z "$ac_lib"; then
27952 ac_res="none required"
27955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27957 rm -f conftest.$ac_objext conftest$ac_exeext
27958 if { (ac_try="$ac_link"
27959 case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_link") 2>conftest.er1
27966 grep -v '^ *+' conftest.er1 >conftest.err
27968 cat conftest.err >&5
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); } &&
27971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27972 { (case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_try") 2>&5
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; } &&
27981 { ac_try='test -s conftest$ac_exeext'
27982 { (case "(($ac_try" in
27983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984 *) ac_try_echo=$ac_try;;
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987 (eval "$ac_try") 2>&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; }; then
27991 ac_cv_search_opendir=$ac_res
27993 echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27999 rm -f core conftest.err conftest.$ac_objext \
28001 if test "${ac_cv_search_opendir+set}" = set; then
28005 if test "${ac_cv_search_opendir+set}" = set; then
28008 ac_cv_search_opendir=no
28010 rm conftest.$ac_ext
28011 LIBS=$ac_func_search_save_LIBS
28013 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28014 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28015 ac_res=$ac_cv_search_opendir
28016 if test "$ac_res" != no; then
28017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28022 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28023 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28024 if test "${ac_cv_search_opendir+set}" = set; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28027 ac_func_search_save_LIBS=$LIBS
28028 cat >conftest.$ac_ext <<_ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28035 /* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28050 for ac_lib in '' x; do
28051 if test -z "$ac_lib"; then
28052 ac_res="none required"
28055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (ac_try="$ac_link"
28059 case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064 (eval "$ac_link") 2>conftest.er1
28066 grep -v '^ *+' conftest.er1 >conftest.err
28068 cat conftest.err >&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); } &&
28071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28072 { (case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; } &&
28081 { ac_try='test -s conftest$ac_exeext'
28082 { (case "(($ac_try" in
28083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084 *) ac_try_echo=$ac_try;;
28086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28087 (eval "$ac_try") 2>&5
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); }; }; then
28091 ac_cv_search_opendir=$ac_res
28093 echo "$as_me: failed program was:" >&5
28094 sed 's/^/| /' conftest.$ac_ext >&5
28099 rm -f core conftest.err conftest.$ac_objext \
28101 if test "${ac_cv_search_opendir+set}" = set; then
28105 if test "${ac_cv_search_opendir+set}" = set; then
28108 ac_cv_search_opendir=no
28110 rm conftest.$ac_ext
28111 LIBS=$ac_func_search_save_LIBS
28113 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28114 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28115 ac_res=$ac_cv_search_opendir
28116 if test "$ac_res" != no; then
28117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28123 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28124 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28125 if test "${ac_cv_header_mmap_anon+set}" = set; then
28126 echo $ECHO_N "(cached) $ECHO_C" >&6
28129 ac_cpp='$CPP $CPPFLAGS'
28130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28134 cat >conftest.$ac_ext <<_ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28140 #include <sys/mman.h>
28141 #include <unistd.h>
28146 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28151 rm -f conftest.$ac_objext
28152 if { (ac_try="$ac_compile"
28153 case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_compile") 2>conftest.er1
28160 grep -v '^ *+' conftest.er1 >conftest.err
28162 cat conftest.err >&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } &&
28165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; } &&
28175 { ac_try='test -s conftest.$ac_objext'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; }; then
28185 ac_cv_header_mmap_anon=yes
28187 echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28190 ac_cv_header_mmap_anon=no
28193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28195 ac_cpp='$CPP $CPPFLAGS'
28196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28202 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28203 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28204 if test "$ac_cv_header_mmap_anon" = yes; then
28206 cat >>confdefs.h <<\_ACEOF
28207 #define HAVE_MMAP_ANONYMOUS 1
28212 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28213 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28214 if test "${ac_cv_header_stat_broken+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28217 cat >conftest.$ac_ext <<_ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h. */
28223 #include <sys/types.h>
28224 #include <sys/stat.h>
28226 #if defined S_ISBLK && defined S_IFDIR
28227 # if S_ISBLK (S_IFDIR)
28232 #if defined S_ISBLK && defined S_IFCHR
28233 # if S_ISBLK (S_IFCHR)
28238 #if defined S_ISLNK && defined S_IFREG
28239 # if S_ISLNK (S_IFREG)
28244 #if defined S_ISSOCK && defined S_IFREG
28245 # if S_ISSOCK (S_IFREG)
28251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28252 $EGREP "You lose" >/dev/null 2>&1; then
28253 ac_cv_header_stat_broken=yes
28255 ac_cv_header_stat_broken=no
28260 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28261 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28262 if test $ac_cv_header_stat_broken = yes; then
28264 cat >>confdefs.h <<\_ACEOF
28265 #define STAT_MACROS_BROKEN 1
28270 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28271 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28272 if test "${ac_cv_header_stdc+set}" = set; then
28273 echo $ECHO_N "(cached) $ECHO_C" >&6
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28281 #include <stdlib.h>
28282 #include <stdarg.h>
28283 #include <string.h>
28294 rm -f conftest.$ac_objext
28295 if { (ac_try="$ac_compile"
28296 case "(($ac_try" in
28297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298 *) ac_try_echo=$ac_try;;
28300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301 (eval "$ac_compile") 2>conftest.er1
28303 grep -v '^ *+' conftest.er1 >conftest.err
28305 cat conftest.err >&5
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); } &&
28308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28309 { (case "(($ac_try" in
28310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311 *) ac_try_echo=$ac_try;;
28313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28314 (eval "$ac_try") 2>&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); }; } &&
28318 { ac_try='test -s conftest.$ac_objext'
28319 { (case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_try") 2>&5
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); }; }; then
28328 ac_cv_header_stdc=yes
28330 echo "$as_me: failed program was:" >&5
28331 sed 's/^/| /' conftest.$ac_ext >&5
28333 ac_cv_header_stdc=no
28336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28338 if test $ac_cv_header_stdc = yes; then
28339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 #include <string.h>
28349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28350 $EGREP "memchr" >/dev/null 2>&1; then
28353 ac_cv_header_stdc=no
28359 if test $ac_cv_header_stdc = yes; then
28360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28361 cat >conftest.$ac_ext <<_ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h. */
28367 #include <stdlib.h>
28370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28371 $EGREP "free" >/dev/null 2>&1; then
28374 ac_cv_header_stdc=no
28380 if test $ac_cv_header_stdc = yes; then
28381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28382 if test "$cross_compiling" = yes; then
28385 cat >conftest.$ac_ext <<_ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28392 #include <stdlib.h>
28393 #if ((' ' & 0x0FF) == 0x020)
28394 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28395 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28397 # define ISLOWER(c) \
28398 (('a' <= (c) && (c) <= 'i') \
28399 || ('j' <= (c) && (c) <= 'r') \
28400 || ('s' <= (c) && (c) <= 'z'))
28401 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28404 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28409 for (i = 0; i < 256; i++)
28410 if (XOR (islower (i), ISLOWER (i))
28411 || toupper (i) != TOUPPER (i))
28416 rm -f conftest$ac_exeext
28417 if { (ac_try="$ac_link"
28418 case "(($ac_try" in
28419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420 *) ac_try_echo=$ac_try;;
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423 (eval "$ac_link") 2>&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28427 { (case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_try") 2>&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28438 echo "$as_me: program exited with status $ac_status" >&5
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ( exit $ac_status )
28443 ac_cv_header_stdc=no
28445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28451 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28452 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28453 if test $ac_cv_header_stdc = yes; then
28455 cat >>confdefs.h <<\_ACEOF
28456 #define STDC_HEADERS 1
28461 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28462 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28463 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28466 cat >conftest.$ac_ext <<_ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28472 #include <sys/types.h>
28473 #include <sys/wait.h>
28474 #ifndef WEXITSTATUS
28475 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28478 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28486 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28491 rm -f conftest.$ac_objext
28492 if { (ac_try="$ac_compile"
28493 case "(($ac_try" in
28494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495 *) ac_try_echo=$ac_try;;
28497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498 (eval "$ac_compile") 2>conftest.er1
28500 grep -v '^ *+' conftest.er1 >conftest.err
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28506 { (case "(($ac_try" in
28507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508 *) ac_try_echo=$ac_try;;
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511 (eval "$ac_try") 2>&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; } &&
28515 { ac_try='test -s conftest.$ac_objext'
28516 { (case "(($ac_try" in
28517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518 *) ac_try_echo=$ac_try;;
28520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28521 (eval "$ac_try") 2>&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; }; then
28525 ac_cv_header_sys_wait_h=yes
28527 echo "$as_me: failed program was:" >&5
28528 sed 's/^/| /' conftest.$ac_ext >&5
28530 ac_cv_header_sys_wait_h=no
28533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28536 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28537 if test $ac_cv_header_sys_wait_h = yes; then
28539 cat >>confdefs.h <<\_ACEOF
28540 #define HAVE_SYS_WAIT_H 1
28545 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28546 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28547 if test "${ac_cv_header_time+set}" = set; then
28548 echo $ECHO_N "(cached) $ECHO_C" >&6
28550 cat >conftest.$ac_ext <<_ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28556 #include <sys/types.h>
28557 #include <sys/time.h>
28563 if ((struct tm *) 0)
28569 rm -f conftest.$ac_objext
28570 if { (ac_try="$ac_compile"
28571 case "(($ac_try" in
28572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28573 *) ac_try_echo=$ac_try;;
28575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28576 (eval "$ac_compile") 2>conftest.er1
28578 grep -v '^ *+' conftest.er1 >conftest.err
28580 cat conftest.err >&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); } &&
28583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; } &&
28593 { ac_try='test -s conftest.$ac_objext'
28594 { (case "(($ac_try" in
28595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596 *) ac_try_echo=$ac_try;;
28598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599 (eval "$ac_try") 2>&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; }; then
28603 ac_cv_header_time=yes
28605 echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28608 ac_cv_header_time=no
28611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28613 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28614 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28615 if test $ac_cv_header_time = yes; then
28617 cat >>confdefs.h <<\_ACEOF
28618 #define TIME_WITH_SYS_TIME 1
28630 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28637 echo $ECHO_N "(cached) $ECHO_C" >&6
28639 ac_res=`eval echo '${'$as_ac_Header'}'`
28640 { echo "$as_me:$LINENO: result: $ac_res" >&5
28641 echo "${ECHO_T}$ac_res" >&6; }
28643 # Is the header compilable?
28644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28646 cat >conftest.$ac_ext <<_ACEOF
28649 cat confdefs.h >>conftest.$ac_ext
28650 cat >>conftest.$ac_ext <<_ACEOF
28651 /* end confdefs.h. */
28652 $ac_includes_default
28653 #include <$ac_header>
28655 rm -f conftest.$ac_objext
28656 if { (ac_try="$ac_compile"
28657 case "(($ac_try" in
28658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28659 *) ac_try_echo=$ac_try;;
28661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28662 (eval "$ac_compile") 2>conftest.er1
28664 grep -v '^ *+' conftest.er1 >conftest.err
28666 cat conftest.err >&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } &&
28669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28670 { (case "(($ac_try" in
28671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672 *) ac_try_echo=$ac_try;;
28674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675 (eval "$ac_try") 2>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; } &&
28679 { ac_try='test -s conftest.$ac_objext'
28680 { (case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; }; then
28689 ac_header_compiler=yes
28691 echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28694 ac_header_compiler=no
28697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28699 echo "${ECHO_T}$ac_header_compiler" >&6; }
28701 # Is the header present?
28702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28704 cat >conftest.$ac_ext <<_ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h. */
28710 #include <$ac_header>
28712 if { (ac_try="$ac_cpp conftest.$ac_ext"
28713 case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28720 grep -v '^ *+' conftest.er1 >conftest.err
28722 cat conftest.err >&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); } >/dev/null; then
28725 if test -s conftest.err; then
28726 ac_cpp_err=$ac_c_preproc_warn_flag
28727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28734 if test -z "$ac_cpp_err"; then
28735 ac_header_preproc=yes
28737 echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28740 ac_header_preproc=no
28743 rm -f conftest.err conftest.$ac_ext
28744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28745 echo "${ECHO_T}$ac_header_preproc" >&6; }
28747 # So? What about this header?
28748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28754 ac_header_preproc=yes
28757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28770 ## ----------------------------------- ##
28771 ## Report this to llvmbugs@cs.uiuc.edu ##
28772 ## ----------------------------------- ##
28774 ) | sed "s/^/$as_me: WARNING: /" >&2
28777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 eval "$as_ac_Header=\$ac_header_preproc"
28784 ac_res=`eval echo '${'$as_ac_Header'}'`
28785 { echo "$as_me:$LINENO: result: $ac_res" >&5
28786 echo "${ECHO_T}$ac_res" >&6; }
28789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28790 cat >>confdefs.h <<_ACEOF
28791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28804 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28813 ac_res=`eval echo '${'$as_ac_Header'}'`
28814 { echo "$as_me:$LINENO: result: $ac_res" >&5
28815 echo "${ECHO_T}$ac_res" >&6; }
28817 # Is the header compilable?
28818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28820 cat >conftest.$ac_ext <<_ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h. */
28826 $ac_includes_default
28827 #include <$ac_header>
28829 rm -f conftest.$ac_objext
28830 if { (ac_try="$ac_compile"
28831 case "(($ac_try" in
28832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833 *) ac_try_echo=$ac_try;;
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836 (eval "$ac_compile") 2>conftest.er1
28838 grep -v '^ *+' conftest.er1 >conftest.err
28840 cat conftest.err >&5
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); } &&
28843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28844 { (case "(($ac_try" in
28845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846 *) ac_try_echo=$ac_try;;
28848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849 (eval "$ac_try") 2>&5
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; } &&
28853 { ac_try='test -s conftest.$ac_objext'
28854 { (case "(($ac_try" in
28855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856 *) ac_try_echo=$ac_try;;
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_try") 2>&5
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; }; then
28863 ac_header_compiler=yes
28865 echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28868 ac_header_compiler=no
28871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28873 echo "${ECHO_T}$ac_header_compiler" >&6; }
28875 # Is the header present?
28876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28878 cat >conftest.$ac_ext <<_ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h. */
28884 #include <$ac_header>
28886 if { (ac_try="$ac_cpp conftest.$ac_ext"
28887 case "(($ac_try" in
28888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889 *) ac_try_echo=$ac_try;;
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28894 grep -v '^ *+' conftest.er1 >conftest.err
28896 cat conftest.err >&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } >/dev/null; then
28899 if test -s conftest.err; then
28900 ac_cpp_err=$ac_c_preproc_warn_flag
28901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28908 if test -z "$ac_cpp_err"; then
28909 ac_header_preproc=yes
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914 ac_header_preproc=no
28917 rm -f conftest.err conftest.$ac_ext
28918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28919 echo "${ECHO_T}$ac_header_preproc" >&6; }
28921 # So? What about this header?
28922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28928 ac_header_preproc=yes
28931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28944 ## ----------------------------------- ##
28945 ## Report this to llvmbugs@cs.uiuc.edu ##
28946 ## ----------------------------------- ##
28948 ) | sed "s/^/$as_me: WARNING: /" >&2
28951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28956 eval "$as_ac_Header=\$ac_header_preproc"
28958 ac_res=`eval echo '${'$as_ac_Header'}'`
28959 { echo "$as_me:$LINENO: result: $ac_res" >&5
28960 echo "${ECHO_T}$ac_res" >&6; }
28963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28964 cat >>confdefs.h <<_ACEOF
28965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28973 for ac_header in windows.h
28975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 ac_res=`eval echo '${'$as_ac_Header'}'`
28983 { echo "$as_me:$LINENO: result: $ac_res" >&5
28984 echo "${ECHO_T}$ac_res" >&6; }
28986 # Is the header compilable?
28987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 $ac_includes_default
28996 #include <$ac_header>
28998 rm -f conftest.$ac_objext
28999 if { (ac_try="$ac_compile"
29000 case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_compile") 2>conftest.er1
29007 grep -v '^ *+' conftest.er1 >conftest.err
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } &&
29012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29013 { (case "(($ac_try" in
29014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015 *) ac_try_echo=$ac_try;;
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018 (eval "$ac_try") 2>&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; } &&
29022 { ac_try='test -s conftest.$ac_objext'
29023 { (case "(($ac_try" in
29024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025 *) ac_try_echo=$ac_try;;
29027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29028 (eval "$ac_try") 2>&5
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; }; then
29032 ac_header_compiler=yes
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ac_header_compiler=no
29040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29042 echo "${ECHO_T}$ac_header_compiler" >&6; }
29044 # Is the header present?
29045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29047 cat >conftest.$ac_ext <<_ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h. */
29053 #include <$ac_header>
29055 if { (ac_try="$ac_cpp conftest.$ac_ext"
29056 case "(($ac_try" in
29057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29063 grep -v '^ *+' conftest.er1 >conftest.err
29065 cat conftest.err >&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); } >/dev/null; then
29068 if test -s conftest.err; then
29069 ac_cpp_err=$ac_c_preproc_warn_flag
29070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29077 if test -z "$ac_cpp_err"; then
29078 ac_header_preproc=yes
29080 echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.$ac_ext >&5
29083 ac_header_preproc=no
29086 rm -f conftest.err conftest.$ac_ext
29087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29088 echo "${ECHO_T}$ac_header_preproc" >&6; }
29090 # So? What about this header?
29091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29097 ac_header_preproc=yes
29100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29113 ## ----------------------------------- ##
29114 ## Report this to llvmbugs@cs.uiuc.edu ##
29115 ## ----------------------------------- ##
29117 ) | sed "s/^/$as_me: WARNING: /" >&2
29120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29125 eval "$as_ac_Header=\$ac_header_preproc"
29127 ac_res=`eval echo '${'$as_ac_Header'}'`
29128 { echo "$as_me:$LINENO: result: $ac_res" >&5
29129 echo "${ECHO_T}$ac_res" >&6; }
29132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29133 cat >>confdefs.h <<_ACEOF
29134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29145 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29154 ac_res=`eval echo '${'$as_ac_Header'}'`
29155 { echo "$as_me:$LINENO: result: $ac_res" >&5
29156 echo "${ECHO_T}$ac_res" >&6; }
29158 # Is the header compilable?
29159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29161 cat >conftest.$ac_ext <<_ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h. */
29167 $ac_includes_default
29168 #include <$ac_header>
29170 rm -f conftest.$ac_objext
29171 if { (ac_try="$ac_compile"
29172 case "(($ac_try" in
29173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_compile") 2>conftest.er1
29179 grep -v '^ *+' conftest.er1 >conftest.err
29181 cat conftest.err >&5
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); } &&
29184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29185 { (case "(($ac_try" in
29186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187 *) ac_try_echo=$ac_try;;
29189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190 (eval "$ac_try") 2>&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; } &&
29194 { ac_try='test -s conftest.$ac_objext'
29195 { (case "(($ac_try" in
29196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197 *) ac_try_echo=$ac_try;;
29199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200 (eval "$ac_try") 2>&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; }; then
29204 ac_header_compiler=yes
29206 echo "$as_me: failed program was:" >&5
29207 sed 's/^/| /' conftest.$ac_ext >&5
29209 ac_header_compiler=no
29212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29214 echo "${ECHO_T}$ac_header_compiler" >&6; }
29216 # Is the header present?
29217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29219 cat >conftest.$ac_ext <<_ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29225 #include <$ac_header>
29227 if { (ac_try="$ac_cpp conftest.$ac_ext"
29228 case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29235 grep -v '^ *+' conftest.er1 >conftest.err
29237 cat conftest.err >&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); } >/dev/null; then
29240 if test -s conftest.err; then
29241 ac_cpp_err=$ac_c_preproc_warn_flag
29242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29249 if test -z "$ac_cpp_err"; then
29250 ac_header_preproc=yes
29252 echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29255 ac_header_preproc=no
29258 rm -f conftest.err conftest.$ac_ext
29259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29260 echo "${ECHO_T}$ac_header_preproc" >&6; }
29262 # So? What about this header?
29263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29269 ac_header_preproc=yes
29272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29285 ## ----------------------------------- ##
29286 ## Report this to llvmbugs@cs.uiuc.edu ##
29287 ## ----------------------------------- ##
29289 ) | sed "s/^/$as_me: WARNING: /" >&2
29292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29295 echo $ECHO_N "(cached) $ECHO_C" >&6
29297 eval "$as_ac_Header=\$ac_header_preproc"
29299 ac_res=`eval echo '${'$as_ac_Header'}'`
29300 { echo "$as_me:$LINENO: result: $ac_res" >&5
29301 echo "${ECHO_T}$ac_res" >&6; }
29304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29305 cat >>confdefs.h <<_ACEOF
29306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29316 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29325 ac_res=`eval echo '${'$as_ac_Header'}'`
29326 { echo "$as_me:$LINENO: result: $ac_res" >&5
29327 echo "${ECHO_T}$ac_res" >&6; }
29329 # Is the header compilable?
29330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29332 cat >conftest.$ac_ext <<_ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h. */
29338 $ac_includes_default
29339 #include <$ac_header>
29341 rm -f conftest.$ac_objext
29342 if { (ac_try="$ac_compile"
29343 case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_compile") 2>conftest.er1
29350 grep -v '^ *+' conftest.er1 >conftest.err
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
29355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29356 { (case "(($ac_try" in
29357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29358 *) ac_try_echo=$ac_try;;
29360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29361 (eval "$ac_try") 2>&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; } &&
29365 { ac_try='test -s conftest.$ac_objext'
29366 { (case "(($ac_try" in
29367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368 *) ac_try_echo=$ac_try;;
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371 (eval "$ac_try") 2>&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; }; then
29375 ac_header_compiler=yes
29377 echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29380 ac_header_compiler=no
29383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29385 echo "${ECHO_T}$ac_header_compiler" >&6; }
29387 # Is the header present?
29388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29390 cat >conftest.$ac_ext <<_ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29396 #include <$ac_header>
29398 if { (ac_try="$ac_cpp conftest.$ac_ext"
29399 case "(($ac_try" in
29400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401 *) ac_try_echo=$ac_try;;
29403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29406 grep -v '^ *+' conftest.er1 >conftest.err
29408 cat conftest.err >&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); } >/dev/null; then
29411 if test -s conftest.err; then
29412 ac_cpp_err=$ac_c_preproc_warn_flag
29413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29420 if test -z "$ac_cpp_err"; then
29421 ac_header_preproc=yes
29423 echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29426 ac_header_preproc=no
29429 rm -f conftest.err conftest.$ac_ext
29430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29431 echo "${ECHO_T}$ac_header_preproc" >&6; }
29433 # So? What about this header?
29434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29440 ac_header_preproc=yes
29443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29456 ## ----------------------------------- ##
29457 ## Report this to llvmbugs@cs.uiuc.edu ##
29458 ## ----------------------------------- ##
29460 ) | sed "s/^/$as_me: WARNING: /" >&2
29463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29466 echo $ECHO_N "(cached) $ECHO_C" >&6
29468 eval "$as_ac_Header=\$ac_header_preproc"
29470 ac_res=`eval echo '${'$as_ac_Header'}'`
29471 { echo "$as_me:$LINENO: result: $ac_res" >&5
29472 echo "${ECHO_T}$ac_res" >&6; }
29475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29476 cat >>confdefs.h <<_ACEOF
29477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29484 if test "$ENABLE_THREADS" -eq 1 ; then
29486 for ac_header in pthread.h
29488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29493 echo $ECHO_N "(cached) $ECHO_C" >&6
29495 ac_res=`eval echo '${'$as_ac_Header'}'`
29496 { echo "$as_me:$LINENO: result: $ac_res" >&5
29497 echo "${ECHO_T}$ac_res" >&6; }
29499 # Is the header compilable?
29500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 $ac_includes_default
29509 #include <$ac_header>
29511 rm -f conftest.$ac_objext
29512 if { (ac_try="$ac_compile"
29513 case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_compile") 2>conftest.er1
29520 grep -v '^ *+' conftest.er1 >conftest.err
29522 cat conftest.err >&5
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); } &&
29525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29526 { (case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_try") 2>&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; } &&
29535 { ac_try='test -s conftest.$ac_objext'
29536 { (case "(($ac_try" in
29537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538 *) ac_try_echo=$ac_try;;
29540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541 (eval "$ac_try") 2>&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; }; then
29545 ac_header_compiler=yes
29547 echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29550 ac_header_compiler=no
29553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29555 echo "${ECHO_T}$ac_header_compiler" >&6; }
29557 # Is the header present?
29558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29560 cat >conftest.$ac_ext <<_ACEOF
29563 cat confdefs.h >>conftest.$ac_ext
29564 cat >>conftest.$ac_ext <<_ACEOF
29565 /* end confdefs.h. */
29566 #include <$ac_header>
29568 if { (ac_try="$ac_cpp conftest.$ac_ext"
29569 case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29576 grep -v '^ *+' conftest.er1 >conftest.err
29578 cat conftest.err >&5
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); } >/dev/null; then
29581 if test -s conftest.err; then
29582 ac_cpp_err=$ac_c_preproc_warn_flag
29583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29590 if test -z "$ac_cpp_err"; then
29591 ac_header_preproc=yes
29593 echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29596 ac_header_preproc=no
29599 rm -f conftest.err conftest.$ac_ext
29600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29601 echo "${ECHO_T}$ac_header_preproc" >&6; }
29603 # So? What about this header?
29604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29610 ac_header_preproc=yes
29613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29626 ## ----------------------------------- ##
29627 ## Report this to llvmbugs@cs.uiuc.edu ##
29628 ## ----------------------------------- ##
29630 ) | sed "s/^/$as_me: WARNING: /" >&2
29633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29636 echo $ECHO_N "(cached) $ECHO_C" >&6
29638 eval "$as_ac_Header=\$ac_header_preproc"
29640 ac_res=`eval echo '${'$as_ac_Header'}'`
29641 { echo "$as_me:$LINENO: result: $ac_res" >&5
29642 echo "${ECHO_T}$ac_res" >&6; }
29645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29646 cat >>confdefs.h <<_ACEOF
29647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29663 if test -n "$have_libffi" ; then
29666 for ac_header in ffi.h ffi/ffi.h
29668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29675 ac_res=`eval echo '${'$as_ac_Header'}'`
29676 { echo "$as_me:$LINENO: result: $ac_res" >&5
29677 echo "${ECHO_T}$ac_res" >&6; }
29679 # Is the header compilable?
29680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29688 $ac_includes_default
29689 #include <$ac_header>
29691 rm -f conftest.$ac_objext
29692 if { (ac_try="$ac_compile"
29693 case "(($ac_try" in
29694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695 *) ac_try_echo=$ac_try;;
29697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698 (eval "$ac_compile") 2>conftest.er1
29700 grep -v '^ *+' conftest.er1 >conftest.err
29702 cat conftest.err >&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } &&
29705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706 { (case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_try") 2>&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest.$ac_objext'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 ac_header_compiler=yes
29727 echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29730 ac_header_compiler=no
29733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29735 echo "${ECHO_T}$ac_header_compiler" >&6; }
29737 # Is the header present?
29738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29740 cat >conftest.$ac_ext <<_ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h. */
29746 #include <$ac_header>
29748 if { (ac_try="$ac_cpp conftest.$ac_ext"
29749 case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29756 grep -v '^ *+' conftest.er1 >conftest.err
29758 cat conftest.err >&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } >/dev/null; then
29761 if test -s conftest.err; then
29762 ac_cpp_err=$ac_c_preproc_warn_flag
29763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29770 if test -z "$ac_cpp_err"; then
29771 ac_header_preproc=yes
29773 echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29776 ac_header_preproc=no
29779 rm -f conftest.err conftest.$ac_ext
29780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29781 echo "${ECHO_T}$ac_header_preproc" >&6; }
29783 # So? What about this header?
29784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29790 ac_header_preproc=yes
29793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29806 ## ----------------------------------- ##
29807 ## Report this to llvmbugs@cs.uiuc.edu ##
29808 ## ----------------------------------- ##
29810 ) | sed "s/^/$as_me: WARNING: /" >&2
29813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29818 eval "$as_ac_Header=\$ac_header_preproc"
29820 ac_res=`eval echo '${'$as_ac_Header'}'`
29821 { echo "$as_me:$LINENO: result: $ac_res" >&5
29822 echo "${ECHO_T}$ac_res" >&6; }
29825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29826 cat >>confdefs.h <<_ACEOF
29827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29839 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29840 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29841 if test "${ac_cv_huge_val_sanity+set}" = set; then
29842 echo $ECHO_N "(cached) $ECHO_C" >&6
29846 ac_cpp='$CXXCPP $CPPFLAGS'
29847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29852 if test "$cross_compiling" = yes; then
29853 ac_cv_huge_val_sanity=yes
29855 cat >conftest.$ac_ext <<_ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h. */
29865 double x = HUGE_VAL; return x != x;
29870 rm -f conftest$ac_exeext
29871 if { (ac_try="$ac_link"
29872 case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_link") 2>&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29881 { (case "(($ac_try" in
29882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883 *) ac_try_echo=$ac_try;;
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_try") 2>&5
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_cv_huge_val_sanity=yes
29892 echo "$as_me: program exited with status $ac_status" >&5
29893 echo "$as_me: failed program was:" >&5
29894 sed 's/^/| /' conftest.$ac_ext >&5
29896 ( exit $ac_status )
29897 ac_cv_huge_val_sanity=no
29899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29904 ac_cpp='$CPP $CPPFLAGS'
29905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29911 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29912 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29913 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29916 { echo "$as_me:$LINENO: checking for pid_t" >&5
29917 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29918 if test "${ac_cv_type_pid_t+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 cat >conftest.$ac_ext <<_ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h. */
29927 $ac_includes_default
29928 typedef pid_t ac__type_new_;
29932 if ((ac__type_new_ *) 0)
29934 if (sizeof (ac__type_new_))
29940 rm -f conftest.$ac_objext
29941 if { (ac_try="$ac_compile"
29942 case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_compile") 2>conftest.er1
29949 grep -v '^ *+' conftest.er1 >conftest.err
29951 cat conftest.err >&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } &&
29954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29955 { (case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960 (eval "$ac_try") 2>&5
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; } &&
29964 { ac_try='test -s conftest.$ac_objext'
29965 { (case "(($ac_try" in
29966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967 *) ac_try_echo=$ac_try;;
29969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970 (eval "$ac_try") 2>&5
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; }; then
29974 ac_cv_type_pid_t=yes
29976 echo "$as_me: failed program was:" >&5
29977 sed 's/^/| /' conftest.$ac_ext >&5
29979 ac_cv_type_pid_t=no
29982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29984 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29985 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29986 if test $ac_cv_type_pid_t = yes; then
29990 cat >>confdefs.h <<_ACEOF
29996 { echo "$as_me:$LINENO: checking for size_t" >&5
29997 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29998 if test "${ac_cv_type_size_t+set}" = set; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
30001 cat >conftest.$ac_ext <<_ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h. */
30007 $ac_includes_default
30008 typedef size_t ac__type_new_;
30012 if ((ac__type_new_ *) 0)
30014 if (sizeof (ac__type_new_))
30020 rm -f conftest.$ac_objext
30021 if { (ac_try="$ac_compile"
30022 case "(($ac_try" in
30023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024 *) ac_try_echo=$ac_try;;
30026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027 (eval "$ac_compile") 2>conftest.er1
30029 grep -v '^ *+' conftest.er1 >conftest.err
30031 cat conftest.err >&5
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); } &&
30034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30035 { (case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_try") 2>&5
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); }; } &&
30044 { ac_try='test -s conftest.$ac_objext'
30045 { (case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050 (eval "$ac_try") 2>&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; }; then
30054 ac_cv_type_size_t=yes
30056 echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30059 ac_cv_type_size_t=no
30062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30064 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30065 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30066 if test $ac_cv_type_size_t = yes; then
30070 cat >>confdefs.h <<_ACEOF
30071 #define size_t unsigned int
30076 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30077 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30078 if test "${ac_cv_type_signal+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30081 cat >conftest.$ac_ext <<_ACEOF
30084 cat confdefs.h >>conftest.$ac_ext
30085 cat >>conftest.$ac_ext <<_ACEOF
30086 /* end confdefs.h. */
30087 #include <sys/types.h>
30088 #include <signal.h>
30093 return *(signal (0, 0)) (0) == 1;
30098 rm -f conftest.$ac_objext
30099 if { (ac_try="$ac_compile"
30100 case "(($ac_try" in
30101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30102 *) ac_try_echo=$ac_try;;
30104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30105 (eval "$ac_compile") 2>conftest.er1
30107 grep -v '^ *+' conftest.er1 >conftest.err
30109 cat conftest.err >&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } &&
30112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30113 { (case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_try") 2>&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; } &&
30122 { ac_try='test -s conftest.$ac_objext'
30123 { (case "(($ac_try" in
30124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30125 *) ac_try_echo=$ac_try;;
30127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30128 (eval "$ac_try") 2>&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; }; then
30132 ac_cv_type_signal=int
30134 echo "$as_me: failed program was:" >&5
30135 sed 's/^/| /' conftest.$ac_ext >&5
30137 ac_cv_type_signal=void
30140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30142 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30143 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30145 cat >>confdefs.h <<_ACEOF
30146 #define RETSIGTYPE $ac_cv_type_signal
30150 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30151 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30152 if test "${ac_cv_struct_tm+set}" = set; then
30153 echo $ECHO_N "(cached) $ECHO_C" >&6
30155 cat >conftest.$ac_ext <<_ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h. */
30161 #include <sys/types.h>
30167 struct tm *tp; tp->tm_sec;
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30181 grep -v '^ *+' conftest.er1 >conftest.err
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187 { (case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_try") 2>&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try='test -s conftest.$ac_objext'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
30206 ac_cv_struct_tm=time.h
30208 echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30211 ac_cv_struct_tm=sys/time.h
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30216 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30217 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30218 if test $ac_cv_struct_tm = sys/time.h; then
30220 cat >>confdefs.h <<\_ACEOF
30221 #define TM_IN_SYS_TIME 1
30226 { echo "$as_me:$LINENO: checking for int64_t" >&5
30227 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30228 if test "${ac_cv_type_int64_t+set}" = set; then
30229 echo $ECHO_N "(cached) $ECHO_C" >&6
30231 cat >conftest.$ac_ext <<_ACEOF
30234 cat confdefs.h >>conftest.$ac_ext
30235 cat >>conftest.$ac_ext <<_ACEOF
30236 /* end confdefs.h. */
30237 $ac_includes_default
30238 typedef int64_t ac__type_new_;
30242 if ((ac__type_new_ *) 0)
30244 if (sizeof (ac__type_new_))
30250 rm -f conftest.$ac_objext
30251 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30259 grep -v '^ *+' conftest.er1 >conftest.err
30261 cat conftest.err >&5
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); } &&
30264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30265 { (case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_try") 2>&5
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; } &&
30274 { ac_try='test -s conftest.$ac_objext'
30275 { (case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_try") 2>&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
30284 ac_cv_type_int64_t=yes
30286 echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30289 ac_cv_type_int64_t=no
30292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30294 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30295 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30296 if test $ac_cv_type_int64_t = yes; then
30298 cat >>confdefs.h <<_ACEOF
30299 #define HAVE_INT64_T 1
30304 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30305 echo "$as_me: error: Type int64_t required but not found" >&2;}
30306 { (exit 1); exit 1; }; }
30309 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30310 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30311 if test "${ac_cv_type_uint64_t+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30314 cat >conftest.$ac_ext <<_ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30320 $ac_includes_default
30321 typedef uint64_t ac__type_new_;
30325 if ((ac__type_new_ *) 0)
30327 if (sizeof (ac__type_new_))
30333 rm -f conftest.$ac_objext
30334 if { (ac_try="$ac_compile"
30335 case "(($ac_try" in
30336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337 *) ac_try_echo=$ac_try;;
30339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340 (eval "$ac_compile") 2>conftest.er1
30342 grep -v '^ *+' conftest.er1 >conftest.err
30344 cat conftest.err >&5
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); } &&
30347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30348 { (case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_try") 2>&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; } &&
30357 { ac_try='test -s conftest.$ac_objext'
30358 { (case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_try") 2>&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); }; }; then
30367 ac_cv_type_uint64_t=yes
30369 echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30372 ac_cv_type_uint64_t=no
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30377 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30378 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30379 if test $ac_cv_type_uint64_t = yes; then
30381 cat >>confdefs.h <<_ACEOF
30382 #define HAVE_UINT64_T 1
30387 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30388 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30389 if test "${ac_cv_type_u_int64_t+set}" = set; then
30390 echo $ECHO_N "(cached) $ECHO_C" >&6
30392 cat >conftest.$ac_ext <<_ACEOF
30395 cat confdefs.h >>conftest.$ac_ext
30396 cat >>conftest.$ac_ext <<_ACEOF
30397 /* end confdefs.h. */
30398 $ac_includes_default
30399 typedef u_int64_t ac__type_new_;
30403 if ((ac__type_new_ *) 0)
30405 if (sizeof (ac__type_new_))
30411 rm -f conftest.$ac_objext
30412 if { (ac_try="$ac_compile"
30413 case "(($ac_try" in
30414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415 *) ac_try_echo=$ac_try;;
30417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418 (eval "$ac_compile") 2>conftest.er1
30420 grep -v '^ *+' conftest.er1 >conftest.err
30422 cat conftest.err >&5
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); } &&
30425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30426 { (case "(($ac_try" in
30427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428 *) ac_try_echo=$ac_try;;
30430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431 (eval "$ac_try") 2>&5
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; } &&
30435 { ac_try='test -s conftest.$ac_objext'
30436 { (case "(($ac_try" in
30437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438 *) ac_try_echo=$ac_try;;
30440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441 (eval "$ac_try") 2>&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; }; then
30445 ac_cv_type_u_int64_t=yes
30447 echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.$ac_ext >&5
30450 ac_cv_type_u_int64_t=no
30453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30455 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30456 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30457 if test $ac_cv_type_u_int64_t = yes; then
30459 cat >>confdefs.h <<_ACEOF
30460 #define HAVE_U_INT64_T 1
30465 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30466 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30467 { (exit 1); exit 1; }; }
30481 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30489 cat >conftest.$ac_ext <<_ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h. */
30495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30497 #define $ac_func innocuous_$ac_func
30499 /* System header to define __stub macros and hopefully few prototypes,
30500 which can conflict with char $ac_func (); below.
30501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30502 <limits.h> exists even on freestanding compilers. */
30505 # include <limits.h>
30507 # include <assert.h>
30512 /* Override any GCC internal prototype to avoid an error.
30513 Use char because int might match the return type of a GCC
30514 builtin and then its argument prototype would still apply. */
30519 /* The GNU C library defines this for functions which it implements
30520 to always fail with ENOSYS. Some functions are actually named
30521 something starting with __ and the normal name is an alias. */
30522 #if defined __stub_$ac_func || defined __stub___$ac_func
30529 return $ac_func ();
30534 rm -f conftest.$ac_objext conftest$ac_exeext
30535 if { (ac_try="$ac_link"
30536 case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_link") 2>conftest.er1
30543 grep -v '^ *+' conftest.er1 >conftest.err
30545 cat conftest.err >&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); } &&
30548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30549 { (case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_try") 2>&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; } &&
30558 { ac_try='test -s conftest$ac_exeext'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30568 eval "$as_ac_var=yes"
30570 echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30573 eval "$as_ac_var=no"
30576 rm -f core conftest.err conftest.$ac_objext \
30577 conftest$ac_exeext conftest.$ac_ext
30579 ac_res=`eval echo '${'$as_ac_var'}'`
30580 { echo "$as_me:$LINENO: result: $ac_res" >&5
30581 echo "${ECHO_T}$ac_res" >&6; }
30582 if test `eval echo '${'$as_ac_var'}'` = yes; then
30583 cat >>confdefs.h <<_ACEOF
30584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30594 for ac_func in powf fmodf strtof round
30596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30602 cat >conftest.$ac_ext <<_ACEOF
30605 cat confdefs.h >>conftest.$ac_ext
30606 cat >>conftest.$ac_ext <<_ACEOF
30607 /* end confdefs.h. */
30608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30610 #define $ac_func innocuous_$ac_func
30612 /* System header to define __stub macros and hopefully few prototypes,
30613 which can conflict with char $ac_func (); below.
30614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30615 <limits.h> exists even on freestanding compilers. */
30618 # include <limits.h>
30620 # include <assert.h>
30625 /* Override any GCC internal prototype to avoid an error.
30626 Use char because int might match the return type of a GCC
30627 builtin and then its argument prototype would still apply. */
30632 /* The GNU C library defines this for functions which it implements
30633 to always fail with ENOSYS. Some functions are actually named
30634 something starting with __ and the normal name is an alias. */
30635 #if defined __stub_$ac_func || defined __stub___$ac_func
30642 return $ac_func ();
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (ac_try="$ac_link"
30649 case "(($ac_try" in
30650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651 *) ac_try_echo=$ac_try;;
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654 (eval "$ac_link") 2>conftest.er1
30656 grep -v '^ *+' conftest.er1 >conftest.err
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } &&
30661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30662 { (case "(($ac_try" in
30663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30664 *) ac_try_echo=$ac_try;;
30666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30667 (eval "$ac_try") 2>&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; } &&
30671 { ac_try='test -s conftest$ac_exeext'
30672 { (case "(($ac_try" in
30673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674 *) ac_try_echo=$ac_try;;
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_try") 2>&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; }; then
30681 eval "$as_ac_var=yes"
30683 echo "$as_me: failed program was:" >&5
30684 sed 's/^/| /' conftest.$ac_ext >&5
30686 eval "$as_ac_var=no"
30689 rm -f core conftest.err conftest.$ac_objext \
30690 conftest$ac_exeext conftest.$ac_ext
30692 ac_res=`eval echo '${'$as_ac_var'}'`
30693 { echo "$as_me:$LINENO: result: $ac_res" >&5
30694 echo "${ECHO_T}$ac_res" >&6; }
30695 if test `eval echo '${'$as_ac_var'}'` = yes; then
30696 cat >>confdefs.h <<_ACEOF
30697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30708 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30714 echo $ECHO_N "(cached) $ECHO_C" >&6
30716 cat >conftest.$ac_ext <<_ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h. */
30722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30724 #define $ac_func innocuous_$ac_func
30726 /* System header to define __stub macros and hopefully few prototypes,
30727 which can conflict with char $ac_func (); below.
30728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30729 <limits.h> exists even on freestanding compilers. */
30732 # include <limits.h>
30734 # include <assert.h>
30739 /* Override any GCC internal prototype to avoid an error.
30740 Use char because int might match the return type of a GCC
30741 builtin and then its argument prototype would still apply. */
30746 /* The GNU C library defines this for functions which it implements
30747 to always fail with ENOSYS. Some functions are actually named
30748 something starting with __ and the normal name is an alias. */
30749 #if defined __stub_$ac_func || defined __stub___$ac_func
30756 return $ac_func ();
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (ac_try="$ac_link"
30763 case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_link") 2>conftest.er1
30770 grep -v '^ *+' conftest.er1 >conftest.err
30772 cat conftest.err >&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } &&
30775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30776 { (case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_try") 2>&5
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; } &&
30785 { ac_try='test -s conftest$ac_exeext'
30786 { (case "(($ac_try" in
30787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788 *) ac_try_echo=$ac_try;;
30790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791 (eval "$ac_try") 2>&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); }; }; then
30795 eval "$as_ac_var=yes"
30797 echo "$as_me: failed program was:" >&5
30798 sed 's/^/| /' conftest.$ac_ext >&5
30800 eval "$as_ac_var=no"
30803 rm -f core conftest.err conftest.$ac_objext \
30804 conftest$ac_exeext conftest.$ac_ext
30806 ac_res=`eval echo '${'$as_ac_var'}'`
30807 { echo "$as_me:$LINENO: result: $ac_res" >&5
30808 echo "${ECHO_T}$ac_res" >&6; }
30809 if test `eval echo '${'$as_ac_var'}'` = yes; then
30810 cat >>confdefs.h <<_ACEOF
30811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30820 for ac_func in isatty mkdtemp mkstemp
30822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30828 cat >conftest.$ac_ext <<_ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h. */
30834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30836 #define $ac_func innocuous_$ac_func
30838 /* System header to define __stub macros and hopefully few prototypes,
30839 which can conflict with char $ac_func (); below.
30840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841 <limits.h> exists even on freestanding compilers. */
30844 # include <limits.h>
30846 # include <assert.h>
30851 /* Override any GCC internal prototype to avoid an error.
30852 Use char because int might match the return type of a GCC
30853 builtin and then its argument prototype would still apply. */
30858 /* The GNU C library defines this for functions which it implements
30859 to always fail with ENOSYS. Some functions are actually named
30860 something starting with __ and the normal name is an alias. */
30861 #if defined __stub_$ac_func || defined __stub___$ac_func
30868 return $ac_func ();
30873 rm -f conftest.$ac_objext conftest$ac_exeext
30874 if { (ac_try="$ac_link"
30875 case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_link") 2>conftest.er1
30882 grep -v '^ *+' conftest.er1 >conftest.err
30884 cat conftest.err >&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } &&
30887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888 { (case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_try") 2>&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; } &&
30897 { ac_try='test -s conftest$ac_exeext'
30898 { (case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903 (eval "$ac_try") 2>&5
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
30907 eval "$as_ac_var=yes"
30909 echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30912 eval "$as_ac_var=no"
30915 rm -f core conftest.err conftest.$ac_objext \
30916 conftest$ac_exeext conftest.$ac_ext
30918 ac_res=`eval echo '${'$as_ac_var'}'`
30919 { echo "$as_me:$LINENO: result: $ac_res" >&5
30920 echo "${ECHO_T}$ac_res" >&6; }
30921 if test `eval echo '${'$as_ac_var'}'` = yes; then
30922 cat >>confdefs.h <<_ACEOF
30923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30936 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30942 echo $ECHO_N "(cached) $ECHO_C" >&6
30944 cat >conftest.$ac_ext <<_ACEOF
30947 cat confdefs.h >>conftest.$ac_ext
30948 cat >>conftest.$ac_ext <<_ACEOF
30949 /* end confdefs.h. */
30950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30952 #define $ac_func innocuous_$ac_func
30954 /* System header to define __stub macros and hopefully few prototypes,
30955 which can conflict with char $ac_func (); below.
30956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30957 <limits.h> exists even on freestanding compilers. */
30960 # include <limits.h>
30962 # include <assert.h>
30967 /* Override any GCC internal prototype to avoid an error.
30968 Use char because int might match the return type of a GCC
30969 builtin and then its argument prototype would still apply. */
30974 /* The GNU C library defines this for functions which it implements
30975 to always fail with ENOSYS. Some functions are actually named
30976 something starting with __ and the normal name is an alias. */
30977 #if defined __stub_$ac_func || defined __stub___$ac_func
30984 return $ac_func ();
30989 rm -f conftest.$ac_objext conftest$ac_exeext
30990 if { (ac_try="$ac_link"
30991 case "(($ac_try" in
30992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30993 *) ac_try_echo=$ac_try;;
30995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30996 (eval "$ac_link") 2>conftest.er1
30998 grep -v '^ *+' conftest.er1 >conftest.err
31000 cat conftest.err >&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } &&
31003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); }; } &&
31013 { ac_try='test -s conftest$ac_exeext'
31014 { (case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_try") 2>&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; }; then
31023 eval "$as_ac_var=yes"
31025 echo "$as_me: failed program was:" >&5
31026 sed 's/^/| /' conftest.$ac_ext >&5
31028 eval "$as_ac_var=no"
31031 rm -f core conftest.err conftest.$ac_objext \
31032 conftest$ac_exeext conftest.$ac_ext
31034 ac_res=`eval echo '${'$as_ac_var'}'`
31035 { echo "$as_me:$LINENO: result: $ac_res" >&5
31036 echo "${ECHO_T}$ac_res" >&6; }
31037 if test `eval echo '${'$as_ac_var'}'` = yes; then
31038 cat >>confdefs.h <<_ACEOF
31039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31049 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31055 echo $ECHO_N "(cached) $ECHO_C" >&6
31057 cat >conftest.$ac_ext <<_ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h. */
31063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31065 #define $ac_func innocuous_$ac_func
31067 /* System header to define __stub macros and hopefully few prototypes,
31068 which can conflict with char $ac_func (); below.
31069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31070 <limits.h> exists even on freestanding compilers. */
31073 # include <limits.h>
31075 # include <assert.h>
31080 /* Override any GCC internal prototype to avoid an error.
31081 Use char because int might match the return type of a GCC
31082 builtin and then its argument prototype would still apply. */
31087 /* The GNU C library defines this for functions which it implements
31088 to always fail with ENOSYS. Some functions are actually named
31089 something starting with __ and the normal name is an alias. */
31090 #if defined __stub_$ac_func || defined __stub___$ac_func
31097 return $ac_func ();
31102 rm -f conftest.$ac_objext conftest$ac_exeext
31103 if { (ac_try="$ac_link"
31104 case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109 (eval "$ac_link") 2>conftest.er1
31111 grep -v '^ *+' conftest.er1 >conftest.err
31113 cat conftest.err >&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } &&
31116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; } &&
31126 { ac_try='test -s conftest$ac_exeext'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 eval "$as_ac_var=yes"
31138 echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.$ac_ext >&5
31141 eval "$as_ac_var=no"
31144 rm -f core conftest.err conftest.$ac_objext \
31145 conftest$ac_exeext conftest.$ac_ext
31147 ac_res=`eval echo '${'$as_ac_var'}'`
31148 { echo "$as_me:$LINENO: result: $ac_res" >&5
31149 echo "${ECHO_T}$ac_res" >&6; }
31150 if test `eval echo '${'$as_ac_var'}'` = yes; then
31151 cat >>confdefs.h <<_ACEOF
31152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31162 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31168 echo $ECHO_N "(cached) $ECHO_C" >&6
31170 cat >conftest.$ac_ext <<_ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h. */
31176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31178 #define $ac_func innocuous_$ac_func
31180 /* System header to define __stub macros and hopefully few prototypes,
31181 which can conflict with char $ac_func (); below.
31182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31183 <limits.h> exists even on freestanding compilers. */
31186 # include <limits.h>
31188 # include <assert.h>
31193 /* Override any GCC internal prototype to avoid an error.
31194 Use char because int might match the return type of a GCC
31195 builtin and then its argument prototype would still apply. */
31200 /* The GNU C library defines this for functions which it implements
31201 to always fail with ENOSYS. Some functions are actually named
31202 something starting with __ and the normal name is an alias. */
31203 #if defined __stub_$ac_func || defined __stub___$ac_func
31210 return $ac_func ();
31215 rm -f conftest.$ac_objext conftest$ac_exeext
31216 if { (ac_try="$ac_link"
31217 case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_link") 2>conftest.er1
31224 grep -v '^ *+' conftest.er1 >conftest.err
31226 cat conftest.err >&5
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); } &&
31229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31230 { (case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_try") 2>&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; } &&
31239 { ac_try='test -s conftest$ac_exeext'
31240 { (case "(($ac_try" in
31241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31242 *) ac_try_echo=$ac_try;;
31244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31245 (eval "$ac_try") 2>&5
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; }; then
31249 eval "$as_ac_var=yes"
31251 echo "$as_me: failed program was:" >&5
31252 sed 's/^/| /' conftest.$ac_ext >&5
31254 eval "$as_ac_var=no"
31257 rm -f core conftest.err conftest.$ac_objext \
31258 conftest$ac_exeext conftest.$ac_ext
31260 ac_res=`eval echo '${'$as_ac_var'}'`
31261 { echo "$as_me:$LINENO: result: $ac_res" >&5
31262 echo "${ECHO_T}$ac_res" >&6; }
31263 if test `eval echo '${'$as_ac_var'}'` = yes; then
31264 cat >>confdefs.h <<_ACEOF
31265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31271 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31272 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31273 if test "${llvm_cv_c_printf_a+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31277 ac_cpp='$CPP $CPPFLAGS'
31278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31282 if test "$cross_compiling" = yes; then
31283 llvmac_cv_c_printf_a=no
31285 cat >conftest.$ac_ext <<_ACEOF
31289 cat confdefs.h >>conftest.$ac_ext
31290 cat >>conftest.$ac_ext <<_ACEOF
31291 /* end confdefs.h. */
31294 #include <stdlib.h>
31300 volatile double A, B;
31304 sprintf(Buffer, "%a", A);
31308 if (A != 0x1.999999999999ap-4)
31315 rm -f conftest$ac_exeext
31316 if { (ac_try="$ac_link"
31317 case "(($ac_try" in
31318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319 *) ac_try_echo=$ac_try;;
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322 (eval "$ac_link") 2>&5
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31326 { (case "(($ac_try" in
31327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331 (eval "$ac_try") 2>&5
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); }; }; then
31335 llvm_cv_c_printf_a=yes
31337 echo "$as_me: program exited with status $ac_status" >&5
31338 echo "$as_me: failed program was:" >&5
31339 sed 's/^/| /' conftest.$ac_ext >&5
31341 ( exit $ac_status )
31342 llvmac_cv_c_printf_a=no
31344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31349 ac_cpp='$CPP $CPPFLAGS'
31350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31355 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31356 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31357 if test "$llvm_cv_c_printf_a" = "yes"; then
31359 cat >>confdefs.h <<\_ACEOF
31360 #define HAVE_PRINTF_A 1
31365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31366 # for constant arguments. Useless!
31367 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31368 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31369 if test "${ac_cv_working_alloca_h+set}" = set; then
31370 echo $ECHO_N "(cached) $ECHO_C" >&6
31372 cat >conftest.$ac_ext <<_ACEOF
31375 cat confdefs.h >>conftest.$ac_ext
31376 cat >>conftest.$ac_ext <<_ACEOF
31377 /* end confdefs.h. */
31378 #include <alloca.h>
31382 char *p = (char *) alloca (2 * sizeof (int));
31388 rm -f conftest.$ac_objext conftest$ac_exeext
31389 if { (ac_try="$ac_link"
31390 case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_link") 2>conftest.er1
31397 grep -v '^ *+' conftest.er1 >conftest.err
31399 cat conftest.err >&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } &&
31402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31403 { (case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_try") 2>&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest$ac_exeext'
31413 { (case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; }; then
31422 ac_cv_working_alloca_h=yes
31424 echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31427 ac_cv_working_alloca_h=no
31430 rm -f core conftest.err conftest.$ac_objext \
31431 conftest$ac_exeext conftest.$ac_ext
31433 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31434 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31435 if test $ac_cv_working_alloca_h = yes; then
31437 cat >>confdefs.h <<\_ACEOF
31438 #define HAVE_ALLOCA_H 1
31443 { echo "$as_me:$LINENO: checking for alloca" >&5
31444 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31445 if test "${ac_cv_func_alloca_works+set}" = set; then
31446 echo $ECHO_N "(cached) $ECHO_C" >&6
31448 cat >conftest.$ac_ext <<_ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h. */
31455 # define alloca __builtin_alloca
31458 # include <malloc.h>
31459 # define alloca _alloca
31462 # include <alloca.h>
31467 # ifndef alloca /* predefined by HP cc +Olibcalls */
31478 char *p = (char *) alloca (1);
31484 rm -f conftest.$ac_objext conftest$ac_exeext
31485 if { (ac_try="$ac_link"
31486 case "(($ac_try" in
31487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488 *) ac_try_echo=$ac_try;;
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491 (eval "$ac_link") 2>conftest.er1
31493 grep -v '^ *+' conftest.er1 >conftest.err
31495 cat conftest.err >&5
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); } &&
31498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31499 { (case "(($ac_try" in
31500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501 *) ac_try_echo=$ac_try;;
31503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504 (eval "$ac_try") 2>&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest$ac_exeext'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
31518 ac_cv_func_alloca_works=yes
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31523 ac_cv_func_alloca_works=no
31526 rm -f core conftest.err conftest.$ac_objext \
31527 conftest$ac_exeext conftest.$ac_ext
31529 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31530 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31532 if test $ac_cv_func_alloca_works = yes; then
31534 cat >>confdefs.h <<\_ACEOF
31535 #define HAVE_ALLOCA 1
31539 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31540 # that cause trouble. Some versions do not even contain alloca or
31541 # contain a buggy version. If you still want to use their alloca,
31542 # use ar to extract alloca.o from them instead of compiling alloca.c.
31544 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31546 cat >>confdefs.h <<\_ACEOF
31551 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31552 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31553 if test "${ac_cv_os_cray+set}" = set; then
31554 echo $ECHO_N "(cached) $ECHO_C" >&6
31556 cat >conftest.$ac_ext <<_ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h. */
31562 #if defined CRAY && ! defined CRAY2
31569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31570 $EGREP "webecray" >/dev/null 2>&1; then
31578 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31579 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31580 if test $ac_cv_os_cray = yes; then
31581 for ac_func in _getb67 GETB67 getb67; do
31582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31586 echo $ECHO_N "(cached) $ECHO_C" >&6
31588 cat >conftest.$ac_ext <<_ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h. */
31594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31596 #define $ac_func innocuous_$ac_func
31598 /* System header to define __stub macros and hopefully few prototypes,
31599 which can conflict with char $ac_func (); below.
31600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31601 <limits.h> exists even on freestanding compilers. */
31604 # include <limits.h>
31606 # include <assert.h>
31611 /* Override any GCC internal prototype to avoid an error.
31612 Use char because int might match the return type of a GCC
31613 builtin and then its argument prototype would still apply. */
31618 /* The GNU C library defines this for functions which it implements
31619 to always fail with ENOSYS. Some functions are actually named
31620 something starting with __ and the normal name is an alias. */
31621 #if defined __stub_$ac_func || defined __stub___$ac_func
31628 return $ac_func ();
31633 rm -f conftest.$ac_objext conftest$ac_exeext
31634 if { (ac_try="$ac_link"
31635 case "(($ac_try" in
31636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637 *) ac_try_echo=$ac_try;;
31639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640 (eval "$ac_link") 2>conftest.er1
31642 grep -v '^ *+' conftest.er1 >conftest.err
31644 cat conftest.err >&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } &&
31647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31648 { (case "(($ac_try" in
31649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31650 *) ac_try_echo=$ac_try;;
31652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31653 (eval "$ac_try") 2>&5
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; } &&
31657 { ac_try='test -s conftest$ac_exeext'
31658 { (case "(($ac_try" in
31659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660 *) ac_try_echo=$ac_try;;
31662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663 (eval "$ac_try") 2>&5
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }; then
31667 eval "$as_ac_var=yes"
31669 echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31672 eval "$as_ac_var=no"
31675 rm -f core conftest.err conftest.$ac_objext \
31676 conftest$ac_exeext conftest.$ac_ext
31678 ac_res=`eval echo '${'$as_ac_var'}'`
31679 { echo "$as_me:$LINENO: result: $ac_res" >&5
31680 echo "${ECHO_T}$ac_res" >&6; }
31681 if test `eval echo '${'$as_ac_var'}'` = yes; then
31683 cat >>confdefs.h <<_ACEOF
31684 #define CRAY_STACKSEG_END $ac_func
31693 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31694 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31695 if test "${ac_cv_c_stack_direction+set}" = set; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31698 if test "$cross_compiling" = yes; then
31699 ac_cv_c_stack_direction=0
31701 cat >conftest.$ac_ext <<_ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h. */
31707 $ac_includes_default
31709 find_stack_direction ()
31711 static char *addr = 0;
31716 return find_stack_direction ();
31719 return (&dummy > addr) ? 1 : -1;
31725 return find_stack_direction () < 0;
31728 rm -f conftest$ac_exeext
31729 if { (ac_try="$ac_link"
31730 case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_link") 2>&5
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31739 { (case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_try") 2>&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); }; }; then
31748 ac_cv_c_stack_direction=1
31750 echo "$as_me: program exited with status $ac_status" >&5
31751 echo "$as_me: failed program was:" >&5
31752 sed 's/^/| /' conftest.$ac_ext >&5
31754 ( exit $ac_status )
31755 ac_cv_c_stack_direction=-1
31757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31762 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31763 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31765 cat >>confdefs.h <<_ACEOF
31766 #define STACK_DIRECTION $ac_cv_c_stack_direction
31773 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31774 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31775 if test "${ac_cv_func_rand48+set}" = set; then
31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31779 ac_cpp='$CXXCPP $CPPFLAGS'
31780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31784 cat >conftest.$ac_ext <<_ACEOF
31787 cat confdefs.h >>conftest.$ac_ext
31788 cat >>conftest.$ac_ext <<_ACEOF
31789 /* end confdefs.h. */
31790 #include <stdlib.h>
31794 srand48(0);lrand48();drand48();
31799 rm -f conftest.$ac_objext
31800 if { (ac_try="$ac_compile"
31801 case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_compile") 2>conftest.er1
31808 grep -v '^ *+' conftest.er1 >conftest.err
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } &&
31813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest.$ac_objext'
31824 { (case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 ac_cv_func_rand48=yes
31835 echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31838 ac_cv_func_rand48=no
31841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31843 ac_cpp='$CPP $CPPFLAGS'
31844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31849 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31850 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31852 if test "$ac_cv_func_rand48" = "yes" ; then
31854 cat >>confdefs.h <<\_ACEOF
31855 #define HAVE_RAND48 1
31861 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31862 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31863 if test "${ac_cv_cxx_namespaces+set}" = set; then
31864 echo $ECHO_N "(cached) $ECHO_C" >&6
31867 ac_cpp='$CXXCPP $CPPFLAGS'
31868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31872 cat >conftest.$ac_ext <<_ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h. */
31878 namespace Outer { namespace Inner { int i = 0; }}
31882 using namespace Outer::Inner; return i;
31887 rm -f conftest.$ac_objext
31888 if { (ac_try="$ac_compile"
31889 case "(($ac_try" in
31890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891 *) ac_try_echo=$ac_try;;
31893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31894 (eval "$ac_compile") 2>conftest.er1
31896 grep -v '^ *+' conftest.er1 >conftest.err
31898 cat conftest.err >&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); } &&
31901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31902 { (case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_try") 2>&5
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; } &&
31911 { ac_try='test -s conftest.$ac_objext'
31912 { (case "(($ac_try" in
31913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914 *) ac_try_echo=$ac_try;;
31916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917 (eval "$ac_try") 2>&5
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
31921 ac_cv_cxx_namespaces=yes
31923 echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31926 ac_cv_cxx_namespaces=no
31929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31931 ac_cpp='$CPP $CPPFLAGS'
31932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31938 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31939 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31940 if test "$ac_cv_cxx_namespaces" = yes; then
31942 cat >>confdefs.h <<\_ACEOF
31943 #define HAVE_NAMESPACES
31948 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31949 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31950 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31951 echo $ECHO_N "(cached) $ECHO_C" >&6
31955 ac_cpp='$CXXCPP $CPPFLAGS'
31956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31960 cat >conftest.$ac_ext <<_ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h. */
31966 #include <ext/hash_map>
31967 #ifdef HAVE_NAMESPACES
31968 using namespace std;
31973 hash_map<int, int> t;
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_compile") 2>conftest.er1
31987 grep -v '^ *+' conftest.er1 >conftest.err
31989 cat conftest.err >&5
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); } &&
31992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31993 { (case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_try") 2>&5
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); }; } &&
32002 { ac_try='test -s conftest.$ac_objext'
32003 { (case "(($ac_try" in
32004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005 *) ac_try_echo=$ac_try;;
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008 (eval "$ac_try") 2>&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; }; then
32012 ac_cv_cxx_have_std_ext_hash_map=yes
32014 echo "$as_me: failed program was:" >&5
32015 sed 's/^/| /' conftest.$ac_ext >&5
32017 ac_cv_cxx_have_std_ext_hash_map=no
32020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32022 ac_cpp='$CPP $CPPFLAGS'
32023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32028 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32029 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32030 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32033 cat >>confdefs.h <<\_ACEOF
32034 #define HAVE_STD_EXT_HASH_MAP 1
32039 cat >>confdefs.h <<\_ACEOF
32040 #define HAVE_STD_EXT_HASH_MAP 0
32045 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32046 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32047 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32048 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 ac_cpp='$CXXCPP $CPPFLAGS'
32053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32057 cat >conftest.$ac_ext <<_ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h. */
32063 #include <ext/hash_map>
32064 #ifdef HAVE_NAMESPACES
32065 using namespace __gnu_cxx;
32070 hash_map<int,int> t;
32075 rm -f conftest.$ac_objext
32076 if { (ac_try="$ac_compile"
32077 case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_compile") 2>conftest.er1
32084 grep -v '^ *+' conftest.er1 >conftest.err
32086 cat conftest.err >&5
32087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088 (exit $ac_status); } &&
32089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32090 { (case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095 (eval "$ac_try") 2>&5
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); }; } &&
32099 { ac_try='test -s conftest.$ac_objext'
32100 { (case "(($ac_try" in
32101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102 *) ac_try_echo=$ac_try;;
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105 (eval "$ac_try") 2>&5
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
32109 ac_cv_cxx_have_gnu_ext_hash_map=yes
32111 echo "$as_me: failed program was:" >&5
32112 sed 's/^/| /' conftest.$ac_ext >&5
32114 ac_cv_cxx_have_gnu_ext_hash_map=no
32117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32119 ac_cpp='$CPP $CPPFLAGS'
32120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32125 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32126 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32127 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32130 cat >>confdefs.h <<\_ACEOF
32131 #define HAVE_GNU_EXT_HASH_MAP 1
32136 cat >>confdefs.h <<\_ACEOF
32137 #define HAVE_GNU_EXT_HASH_MAP 0
32142 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32143 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32144 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32149 ac_cpp='$CXXCPP $CPPFLAGS'
32150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32154 cat >conftest.$ac_ext <<_ACEOF
32157 cat confdefs.h >>conftest.$ac_ext
32158 cat >>conftest.$ac_ext <<_ACEOF
32159 /* end confdefs.h. */
32160 #include <hash_map>
32164 hash_map<int,int> t;
32169 rm -f conftest.$ac_objext
32170 if { (ac_try="$ac_compile"
32171 case "(($ac_try" in
32172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173 *) ac_try_echo=$ac_try;;
32175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32176 (eval "$ac_compile") 2>conftest.er1
32178 grep -v '^ *+' conftest.er1 >conftest.err
32180 cat conftest.err >&5
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); } &&
32183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32184 { (case "(($ac_try" in
32185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_try") 2>&5
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; } &&
32193 { ac_try='test -s conftest.$ac_objext'
32194 { (case "(($ac_try" in
32195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196 *) ac_try_echo=$ac_try;;
32198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199 (eval "$ac_try") 2>&5
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); }; }; then
32203 ac_cv_cxx_have_global_hash_map=yes
32205 echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32208 ac_cv_cxx_have_global_hash_map=no
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213 ac_cpp='$CPP $CPPFLAGS'
32214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32219 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32220 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32221 if test "$ac_cv_cxx_have_global_hash_map" = yes
32224 cat >>confdefs.h <<\_ACEOF
32225 #define HAVE_GLOBAL_HASH_MAP 1
32230 cat >>confdefs.h <<\_ACEOF
32231 #define HAVE_GLOBAL_HASH_MAP 0
32236 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32237 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32238 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32239 echo $ECHO_N "(cached) $ECHO_C" >&6
32243 ac_cpp='$CXXCPP $CPPFLAGS'
32244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32248 cat >conftest.$ac_ext <<_ACEOF
32251 cat confdefs.h >>conftest.$ac_ext
32252 cat >>conftest.$ac_ext <<_ACEOF
32253 /* end confdefs.h. */
32254 #include <ext/hash_set>
32255 #ifdef HAVE_NAMESPACES
32256 using namespace std;
32266 rm -f conftest.$ac_objext
32267 if { (ac_try="$ac_compile"
32268 case "(($ac_try" in
32269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32270 *) ac_try_echo=$ac_try;;
32272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32273 (eval "$ac_compile") 2>conftest.er1
32275 grep -v '^ *+' conftest.er1 >conftest.err
32277 cat conftest.err >&5
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); } &&
32280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32281 { (case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_try") 2>&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; } &&
32290 { ac_try='test -s conftest.$ac_objext'
32291 { (case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_try") 2>&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; }; then
32300 ac_cv_cxx_have_std_ext_hash_set=yes
32302 echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32305 ac_cv_cxx_have_std_ext_hash_set=no
32308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32310 ac_cpp='$CPP $CPPFLAGS'
32311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32316 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32317 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32318 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_STD_EXT_HASH_SET 1
32327 cat >>confdefs.h <<\_ACEOF
32328 #define HAVE_STD_EXT_HASH_SET 0
32333 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32334 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32335 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32340 ac_cpp='$CXXCPP $CPPFLAGS'
32341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32345 cat >conftest.$ac_ext <<_ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h. */
32351 #include <ext/hash_set>
32352 #ifdef HAVE_NAMESPACES
32353 using namespace __gnu_cxx;
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
32372 grep -v '^ *+' conftest.er1 >conftest.err
32374 cat conftest.err >&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); } &&
32377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378 { (case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_try") 2>&5
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); }; } &&
32387 { ac_try='test -s conftest.$ac_objext'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393 (eval "$ac_try") 2>&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 ac_cv_cxx_have_gnu_ext_hash_set=yes
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32402 ac_cv_cxx_have_gnu_ext_hash_set=no
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32407 ac_cpp='$CPP $CPPFLAGS'
32408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32413 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32414 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32415 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32418 cat >>confdefs.h <<\_ACEOF
32419 #define HAVE_GNU_EXT_HASH_SET 1
32424 cat >>confdefs.h <<\_ACEOF
32425 #define HAVE_GNU_EXT_HASH_SET 0
32430 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32431 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32432 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32437 ac_cpp='$CXXCPP $CPPFLAGS'
32438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32442 cat >conftest.$ac_ext <<_ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h. */
32448 #include <hash_set>
32452 hash_set<int> t; return 0;
32457 rm -f conftest.$ac_objext
32458 if { (ac_try="$ac_compile"
32459 case "(($ac_try" in
32460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_compile") 2>conftest.er1
32466 grep -v '^ *+' conftest.er1 >conftest.err
32468 cat conftest.err >&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } &&
32471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32472 { (case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477 (eval "$ac_try") 2>&5
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; } &&
32481 { ac_try='test -s conftest.$ac_objext'
32482 { (case "(($ac_try" in
32483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484 *) ac_try_echo=$ac_try;;
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_try") 2>&5
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; }; then
32491 ac_cv_cxx_have_global_hash_set=yes
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 ac_cv_cxx_have_global_hash_set=no
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32501 ac_cpp='$CPP $CPPFLAGS'
32502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32508 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32509 if test "$ac_cv_cxx_have_global_hash_set" = yes
32512 cat >>confdefs.h <<\_ACEOF
32513 #define HAVE_GLOBAL_HASH_SET 1
32518 cat >>confdefs.h <<\_ACEOF
32519 #define HAVE_GLOBAL_HASH_SET 0
32524 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32525 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32526 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32527 echo $ECHO_N "(cached) $ECHO_C" >&6
32531 ac_cpp='$CXXCPP $CPPFLAGS'
32532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32536 cat >conftest.$ac_ext <<_ACEOF
32539 cat confdefs.h >>conftest.$ac_ext
32540 cat >>conftest.$ac_ext <<_ACEOF
32541 /* end confdefs.h. */
32542 #include <iterator>
32543 #ifdef HAVE_NAMESPACES
32544 using namespace std;
32549 iterator<int,int,int> t; return 0;
32554 rm -f conftest.$ac_objext
32555 if { (ac_try="$ac_compile"
32556 case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_compile") 2>conftest.er1
32563 grep -v '^ *+' conftest.er1 >conftest.err
32565 cat conftest.err >&5
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } &&
32568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32569 { (case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574 (eval "$ac_try") 2>&5
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); }; } &&
32578 { ac_try='test -s conftest.$ac_objext'
32579 { (case "(($ac_try" in
32580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581 *) ac_try_echo=$ac_try;;
32583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32584 (eval "$ac_try") 2>&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); }; }; then
32588 ac_cv_cxx_have_std_iterator=yes
32590 echo "$as_me: failed program was:" >&5
32591 sed 's/^/| /' conftest.$ac_ext >&5
32593 ac_cv_cxx_have_std_iterator=no
32596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32598 ac_cpp='$CPP $CPPFLAGS'
32599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32605 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32606 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32607 if test "$ac_cv_cxx_have_std_iterator" = yes
32610 cat >>confdefs.h <<\_ACEOF
32611 #define HAVE_STD_ITERATOR 1
32616 cat >>confdefs.h <<\_ACEOF
32617 #define HAVE_STD_ITERATOR 0
32622 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32623 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32624 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32625 echo $ECHO_N "(cached) $ECHO_C" >&6
32629 ac_cpp='$CXXCPP $CPPFLAGS'
32630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32634 cat >conftest.$ac_ext <<_ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32640 #include <iterator>
32641 #ifdef HAVE_NAMESPACES
32642 using namespace std;
32647 bidirectional_iterator<int,int> t; return 0;
32652 rm -f conftest.$ac_objext
32653 if { (ac_try="$ac_compile"
32654 case "(($ac_try" in
32655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32656 *) ac_try_echo=$ac_try;;
32658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32659 (eval "$ac_compile") 2>conftest.er1
32661 grep -v '^ *+' conftest.er1 >conftest.err
32663 cat conftest.err >&5
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); } &&
32666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32667 { (case "(($ac_try" in
32668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32669 *) ac_try_echo=$ac_try;;
32671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32672 (eval "$ac_try") 2>&5
32674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); }; } &&
32676 { ac_try='test -s conftest.$ac_objext'
32677 { (case "(($ac_try" in
32678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679 *) ac_try_echo=$ac_try;;
32681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682 (eval "$ac_try") 2>&5
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; }; then
32686 ac_cv_cxx_have_bi_iterator=yes
32688 echo "$as_me: failed program was:" >&5
32689 sed 's/^/| /' conftest.$ac_ext >&5
32691 ac_cv_cxx_have_bi_iterator=no
32694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32696 ac_cpp='$CPP $CPPFLAGS'
32697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32703 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32704 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32705 if test "$ac_cv_cxx_have_bi_iterator" = yes
32708 cat >>confdefs.h <<\_ACEOF
32709 #define HAVE_BI_ITERATOR 1
32714 cat >>confdefs.h <<\_ACEOF
32715 #define HAVE_BI_ITERATOR 0
32720 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32721 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32722 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32723 echo $ECHO_N "(cached) $ECHO_C" >&6
32727 ac_cpp='$CXXCPP $CPPFLAGS'
32728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732 cat >conftest.$ac_ext <<_ACEOF
32735 cat confdefs.h >>conftest.$ac_ext
32736 cat >>conftest.$ac_ext <<_ACEOF
32737 /* end confdefs.h. */
32738 #include <iterator>
32739 #ifdef HAVE_NAMESPACES
32740 using namespace std;
32745 forward_iterator<int,int> t; return 0;
32750 rm -f conftest.$ac_objext
32751 if { (ac_try="$ac_compile"
32752 case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757 (eval "$ac_compile") 2>conftest.er1
32759 grep -v '^ *+' conftest.er1 >conftest.err
32761 cat conftest.err >&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } &&
32764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32765 { (case "(($ac_try" in
32766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767 *) ac_try_echo=$ac_try;;
32769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770 (eval "$ac_try") 2>&5
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); }; } &&
32774 { ac_try='test -s conftest.$ac_objext'
32775 { (case "(($ac_try" in
32776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777 *) ac_try_echo=$ac_try;;
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780 (eval "$ac_try") 2>&5
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); }; }; then
32784 ac_cv_cxx_have_fwd_iterator=yes
32786 echo "$as_me: failed program was:" >&5
32787 sed 's/^/| /' conftest.$ac_ext >&5
32789 ac_cv_cxx_have_fwd_iterator=no
32792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32794 ac_cpp='$CPP $CPPFLAGS'
32795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32801 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32802 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32803 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32806 cat >>confdefs.h <<\_ACEOF
32807 #define HAVE_FWD_ITERATOR 1
32812 cat >>confdefs.h <<\_ACEOF
32813 #define HAVE_FWD_ITERATOR 0
32819 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32820 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32821 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32822 echo $ECHO_N "(cached) $ECHO_C" >&6
32825 ac_cpp='$CXXCPP $CPPFLAGS'
32826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32830 cat >conftest.$ac_ext <<_ACEOF
32833 cat confdefs.h >>conftest.$ac_ext
32834 cat >>conftest.$ac_ext <<_ACEOF
32835 /* end confdefs.h. */
32845 rm -f conftest.$ac_objext
32846 if { (ac_try="$ac_compile"
32847 case "(($ac_try" in
32848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849 *) ac_try_echo=$ac_try;;
32851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852 (eval "$ac_compile") 2>conftest.er1
32854 grep -v '^ *+' conftest.er1 >conftest.err
32856 cat conftest.err >&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
32859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32869 { ac_try='test -s conftest.$ac_objext'
32870 { (case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_try") 2>&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; }; then
32879 ac_cv_func_isnan_in_math_h=yes
32881 echo "$as_me: failed program was:" >&5
32882 sed 's/^/| /' conftest.$ac_ext >&5
32884 ac_cv_func_isnan_in_math_h=no
32887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32889 ac_cpp='$CPP $CPPFLAGS'
32890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32895 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32896 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32899 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32901 cat >>confdefs.h <<\_ACEOF
32902 #define HAVE_ISNAN_IN_MATH_H 1
32907 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32908 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32909 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32913 ac_cpp='$CXXCPP $CPPFLAGS'
32914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32918 cat >conftest.$ac_ext <<_ACEOF
32921 cat confdefs.h >>conftest.$ac_ext
32922 cat >>conftest.$ac_ext <<_ACEOF
32923 /* end confdefs.h. */
32933 rm -f conftest.$ac_objext
32934 if { (ac_try="$ac_compile"
32935 case "(($ac_try" in
32936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937 *) ac_try_echo=$ac_try;;
32939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940 (eval "$ac_compile") 2>conftest.er1
32942 grep -v '^ *+' conftest.er1 >conftest.err
32944 cat conftest.err >&5
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); } &&
32947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32948 { (case "(($ac_try" in
32949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32950 *) ac_try_echo=$ac_try;;
32952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32953 (eval "$ac_try") 2>&5
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; } &&
32957 { ac_try='test -s conftest.$ac_objext'
32958 { (case "(($ac_try" in
32959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32960 *) ac_try_echo=$ac_try;;
32962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32963 (eval "$ac_try") 2>&5
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); }; }; then
32967 ac_cv_func_isnan_in_cmath=yes
32969 echo "$as_me: failed program was:" >&5
32970 sed 's/^/| /' conftest.$ac_ext >&5
32972 ac_cv_func_isnan_in_cmath=no
32975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32977 ac_cpp='$CPP $CPPFLAGS'
32978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32983 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32984 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32986 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32988 cat >>confdefs.h <<\_ACEOF
32989 #define HAVE_ISNAN_IN_CMATH 1
32994 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32995 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32996 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32997 echo $ECHO_N "(cached) $ECHO_C" >&6
33000 ac_cpp='$CXXCPP $CPPFLAGS'
33001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33005 cat >conftest.$ac_ext <<_ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h. */
33015 float f; std::isnan(f);
33020 rm -f conftest.$ac_objext
33021 if { (ac_try="$ac_compile"
33022 case "(($ac_try" in
33023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33024 *) ac_try_echo=$ac_try;;
33026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33027 (eval "$ac_compile") 2>conftest.er1
33029 grep -v '^ *+' conftest.er1 >conftest.err
33031 cat conftest.err >&5
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); } &&
33034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33035 { (case "(($ac_try" in
33036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037 *) ac_try_echo=$ac_try;;
33039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040 (eval "$ac_try") 2>&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; } &&
33044 { ac_try='test -s conftest.$ac_objext'
33045 { (case "(($ac_try" in
33046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047 *) ac_try_echo=$ac_try;;
33049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050 (eval "$ac_try") 2>&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; }; then
33054 ac_cv_func_std_isnan_in_cmath=yes
33056 echo "$as_me: failed program was:" >&5
33057 sed 's/^/| /' conftest.$ac_ext >&5
33059 ac_cv_func_std_isnan_in_cmath=no
33062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064 ac_cpp='$CPP $CPPFLAGS'
33065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33070 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33071 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33073 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33075 cat >>confdefs.h <<\_ACEOF
33076 #define HAVE_STD_ISNAN_IN_CMATH 1
33082 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33083 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33084 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33085 echo $ECHO_N "(cached) $ECHO_C" >&6
33088 ac_cpp='$CXXCPP $CPPFLAGS'
33089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33093 cat >conftest.$ac_ext <<_ACEOF
33096 cat confdefs.h >>conftest.$ac_ext
33097 cat >>conftest.$ac_ext <<_ACEOF
33098 /* end confdefs.h. */
33108 rm -f conftest.$ac_objext
33109 if { (ac_try="$ac_compile"
33110 case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_compile") 2>conftest.er1
33117 grep -v '^ *+' conftest.er1 >conftest.err
33119 cat conftest.err >&5
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); } &&
33122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33123 { (case "(($ac_try" in
33124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33125 *) ac_try_echo=$ac_try;;
33127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33128 (eval "$ac_try") 2>&5
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest.$ac_objext'
33133 { (case "(($ac_try" in
33134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135 *) ac_try_echo=$ac_try;;
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138 (eval "$ac_try") 2>&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; }; then
33142 ac_cv_func_isinf_in_math_h=yes
33144 echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33147 ac_cv_func_isinf_in_math_h=no
33150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33152 ac_cpp='$CPP $CPPFLAGS'
33153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33158 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33159 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33161 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33163 cat >>confdefs.h <<\_ACEOF
33164 #define HAVE_ISINF_IN_MATH_H 1
33169 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33170 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33171 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33172 echo $ECHO_N "(cached) $ECHO_C" >&6
33175 ac_cpp='$CXXCPP $CPPFLAGS'
33176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33180 cat >conftest.$ac_ext <<_ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h. */
33195 rm -f conftest.$ac_objext
33196 if { (ac_try="$ac_compile"
33197 case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_compile") 2>conftest.er1
33204 grep -v '^ *+' conftest.er1 >conftest.err
33206 cat conftest.err >&5
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } &&
33209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33210 { (case "(($ac_try" in
33211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212 *) ac_try_echo=$ac_try;;
33214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215 (eval "$ac_try") 2>&5
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; } &&
33219 { ac_try='test -s conftest.$ac_objext'
33220 { (case "(($ac_try" in
33221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222 *) ac_try_echo=$ac_try;;
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225 (eval "$ac_try") 2>&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; }; then
33229 ac_cv_func_isinf_in_cmath=yes
33231 echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33234 ac_cv_func_isinf_in_cmath=no
33237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33239 ac_cpp='$CPP $CPPFLAGS'
33240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33245 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33246 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33248 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33250 cat >>confdefs.h <<\_ACEOF
33251 #define HAVE_ISINF_IN_CMATH 1
33256 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33257 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33258 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33259 echo $ECHO_N "(cached) $ECHO_C" >&6
33262 ac_cpp='$CXXCPP $CPPFLAGS'
33263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33267 cat >conftest.$ac_ext <<_ACEOF
33270 cat confdefs.h >>conftest.$ac_ext
33271 cat >>conftest.$ac_ext <<_ACEOF
33272 /* end confdefs.h. */
33277 float f; std::isinf(f)}
33282 rm -f conftest.$ac_objext
33283 if { (ac_try="$ac_compile"
33284 case "(($ac_try" in
33285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286 *) ac_try_echo=$ac_try;;
33288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289 (eval "$ac_compile") 2>conftest.er1
33291 grep -v '^ *+' conftest.er1 >conftest.err
33293 cat conftest.err >&5
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); } &&
33296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33297 { (case "(($ac_try" in
33298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299 *) ac_try_echo=$ac_try;;
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302 (eval "$ac_try") 2>&5
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); }; } &&
33306 { ac_try='test -s conftest.$ac_objext'
33307 { (case "(($ac_try" in
33308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309 *) ac_try_echo=$ac_try;;
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312 (eval "$ac_try") 2>&5
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; }; then
33316 ac_cv_func_std_isinf_in_cmath=yes
33318 echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33321 ac_cv_func_std_isinf_in_cmath=no
33324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33326 ac_cpp='$CPP $CPPFLAGS'
33327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33332 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33333 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33335 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33337 cat >>confdefs.h <<\_ACEOF
33338 #define HAVE_STD_ISINF_IN_CMATH 1
33343 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33344 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33345 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33346 echo $ECHO_N "(cached) $ECHO_C" >&6
33349 ac_cpp='$CXXCPP $CPPFLAGS'
33350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33354 cat >conftest.$ac_ext <<_ACEOF
33357 cat confdefs.h >>conftest.$ac_ext
33358 cat >>conftest.$ac_ext <<_ACEOF
33359 /* end confdefs.h. */
33360 #include <ieeefp.h>
33364 float f; finite(f);
33369 rm -f conftest.$ac_objext
33370 if { (ac_try="$ac_compile"
33371 case "(($ac_try" in
33372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373 *) ac_try_echo=$ac_try;;
33375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376 (eval "$ac_compile") 2>conftest.er1
33378 grep -v '^ *+' conftest.er1 >conftest.err
33380 cat conftest.err >&5
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); } &&
33383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33384 { (case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389 (eval "$ac_try") 2>&5
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; } &&
33393 { ac_try='test -s conftest.$ac_objext'
33394 { (case "(($ac_try" in
33395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396 *) ac_try_echo=$ac_try;;
33398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399 (eval "$ac_try") 2>&5
33401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33402 (exit $ac_status); }; }; then
33403 ac_cv_func_finite_in_ieeefp_h=yes
33405 echo "$as_me: failed program was:" >&5
33406 sed 's/^/| /' conftest.$ac_ext >&5
33408 ac_cv_func_finite_in_ieeefp_h=no
33411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33413 ac_cpp='$CPP $CPPFLAGS'
33414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33419 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33420 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33422 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33424 cat >>confdefs.h <<\_ACEOF
33425 #define HAVE_FINITE_IN_IEEEFP_H 1
33432 if test "$llvm_cv_platform_type" = "Unix" ; then
33435 for ac_header in stdlib.h unistd.h
33437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33444 ac_res=`eval echo '${'$as_ac_Header'}'`
33445 { echo "$as_me:$LINENO: result: $ac_res" >&5
33446 echo "${ECHO_T}$ac_res" >&6; }
33448 # Is the header compilable?
33449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33451 cat >conftest.$ac_ext <<_ACEOF
33454 cat confdefs.h >>conftest.$ac_ext
33455 cat >>conftest.$ac_ext <<_ACEOF
33456 /* end confdefs.h. */
33457 $ac_includes_default
33458 #include <$ac_header>
33460 rm -f conftest.$ac_objext
33461 if { (ac_try="$ac_compile"
33462 case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_compile") 2>conftest.er1
33469 grep -v '^ *+' conftest.er1 >conftest.err
33471 cat conftest.err >&5
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); } &&
33474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33475 { (case "(($ac_try" in
33476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33477 *) ac_try_echo=$ac_try;;
33479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33480 (eval "$ac_try") 2>&5
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); }; } &&
33484 { ac_try='test -s conftest.$ac_objext'
33485 { (case "(($ac_try" in
33486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487 *) ac_try_echo=$ac_try;;
33489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490 (eval "$ac_try") 2>&5
33492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493 (exit $ac_status); }; }; then
33494 ac_header_compiler=yes
33496 echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33499 ac_header_compiler=no
33502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33504 echo "${ECHO_T}$ac_header_compiler" >&6; }
33506 # Is the header present?
33507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33509 cat >conftest.$ac_ext <<_ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h. */
33515 #include <$ac_header>
33517 if { (ac_try="$ac_cpp conftest.$ac_ext"
33518 case "(($ac_try" in
33519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33520 *) ac_try_echo=$ac_try;;
33522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33525 grep -v '^ *+' conftest.er1 >conftest.err
33527 cat conftest.err >&5
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); } >/dev/null; then
33530 if test -s conftest.err; then
33531 ac_cpp_err=$ac_c_preproc_warn_flag
33532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33539 if test -z "$ac_cpp_err"; then
33540 ac_header_preproc=yes
33542 echo "$as_me: failed program was:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33545 ac_header_preproc=no
33548 rm -f conftest.err conftest.$ac_ext
33549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33550 echo "${ECHO_T}$ac_header_preproc" >&6; }
33552 # So? What about this header?
33553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33559 ac_header_preproc=yes
33562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33575 ## ----------------------------------- ##
33576 ## Report this to llvmbugs@cs.uiuc.edu ##
33577 ## ----------------------------------- ##
33579 ) | sed "s/^/$as_me: WARNING: /" >&2
33582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33585 echo $ECHO_N "(cached) $ECHO_C" >&6
33587 eval "$as_ac_Header=\$ac_header_preproc"
33589 ac_res=`eval echo '${'$as_ac_Header'}'`
33590 { echo "$as_me:$LINENO: result: $ac_res" >&5
33591 echo "${ECHO_T}$ac_res" >&6; }
33594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33595 cat >>confdefs.h <<_ACEOF
33596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33604 for ac_func in getpagesize
33606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33612 cat >conftest.$ac_ext <<_ACEOF
33615 cat confdefs.h >>conftest.$ac_ext
33616 cat >>conftest.$ac_ext <<_ACEOF
33617 /* end confdefs.h. */
33618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33620 #define $ac_func innocuous_$ac_func
33622 /* System header to define __stub macros and hopefully few prototypes,
33623 which can conflict with char $ac_func (); below.
33624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33625 <limits.h> exists even on freestanding compilers. */
33628 # include <limits.h>
33630 # include <assert.h>
33635 /* Override any GCC internal prototype to avoid an error.
33636 Use char because int might match the return type of a GCC
33637 builtin and then its argument prototype would still apply. */
33642 /* The GNU C library defines this for functions which it implements
33643 to always fail with ENOSYS. Some functions are actually named
33644 something starting with __ and the normal name is an alias. */
33645 #if defined __stub_$ac_func || defined __stub___$ac_func
33652 return $ac_func ();
33657 rm -f conftest.$ac_objext conftest$ac_exeext
33658 if { (ac_try="$ac_link"
33659 case "(($ac_try" in
33660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33661 *) ac_try_echo=$ac_try;;
33663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33664 (eval "$ac_link") 2>conftest.er1
33666 grep -v '^ *+' conftest.er1 >conftest.err
33668 cat conftest.err >&5
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); } &&
33671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33672 { (case "(($ac_try" in
33673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33674 *) ac_try_echo=$ac_try;;
33676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677 (eval "$ac_try") 2>&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); }; } &&
33681 { ac_try='test -s conftest$ac_exeext'
33682 { (case "(($ac_try" in
33683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33684 *) ac_try_echo=$ac_try;;
33686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33687 (eval "$ac_try") 2>&5
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); }; }; then
33691 eval "$as_ac_var=yes"
33693 echo "$as_me: failed program was:" >&5
33694 sed 's/^/| /' conftest.$ac_ext >&5
33696 eval "$as_ac_var=no"
33699 rm -f core conftest.err conftest.$ac_objext \
33700 conftest$ac_exeext conftest.$ac_ext
33702 ac_res=`eval echo '${'$as_ac_var'}'`
33703 { echo "$as_me:$LINENO: result: $ac_res" >&5
33704 echo "${ECHO_T}$ac_res" >&6; }
33705 if test `eval echo '${'$as_ac_var'}'` = yes; then
33706 cat >>confdefs.h <<_ACEOF
33707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33713 { echo "$as_me:$LINENO: checking for working mmap" >&5
33714 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33715 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33716 echo $ECHO_N "(cached) $ECHO_C" >&6
33718 if test "$cross_compiling" = yes; then
33719 ac_cv_func_mmap_fixed_mapped=no
33721 cat >conftest.$ac_ext <<_ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h. */
33727 $ac_includes_default
33728 /* malloc might have been renamed as rpl_malloc. */
33731 /* Thanks to Mike Haertel and Jim Avera for this test.
33732 Here is a matrix of mmap possibilities:
33733 mmap private not fixed
33734 mmap private fixed at somewhere currently unmapped
33735 mmap private fixed at somewhere already mapped
33736 mmap shared not fixed
33737 mmap shared fixed at somewhere currently unmapped
33738 mmap shared fixed at somewhere already mapped
33739 For private mappings, we should verify that changes cannot be read()
33740 back from the file, nor mmap's back from the file at a different
33741 address. (There have been systems where private was not correctly
33742 implemented like the infamous i386 svr4.0, and systems where the
33743 VM page cache was not coherent with the file system buffer cache
33744 like early versions of FreeBSD and possibly contemporary NetBSD.)
33745 For shared mappings, we should conversely verify that changes get
33746 propagated back to all the places they're supposed to be.
33748 Grep wants private fixed already mapped.
33749 The main things grep needs to know about mmap are:
33750 * does it exist and is it safe to write into the mmap'd area
33751 * how to use it (BSD variants) */
33754 #include <sys/mman.h>
33756 #if !STDC_HEADERS && !HAVE_STDLIB_H
33760 /* This mess was copied from the GNU getpagesize.h. */
33761 #if !HAVE_GETPAGESIZE
33762 /* Assume that all systems that can run configure have sys/param.h. */
33763 # if !HAVE_SYS_PARAM_H
33764 # define HAVE_SYS_PARAM_H 1
33767 # ifdef _SC_PAGESIZE
33768 # define getpagesize() sysconf(_SC_PAGESIZE)
33769 # else /* no _SC_PAGESIZE */
33770 # if HAVE_SYS_PARAM_H
33771 # include <sys/param.h>
33772 # ifdef EXEC_PAGESIZE
33773 # define getpagesize() EXEC_PAGESIZE
33774 # else /* no EXEC_PAGESIZE */
33776 # define getpagesize() NBPG * CLSIZE
33779 # endif /* no CLSIZE */
33780 # else /* no NBPG */
33782 # define getpagesize() NBPC
33783 # else /* no NBPC */
33785 # define getpagesize() PAGESIZE
33786 # endif /* PAGESIZE */
33787 # endif /* no NBPC */
33788 # endif /* no NBPG */
33789 # endif /* no EXEC_PAGESIZE */
33790 # else /* no HAVE_SYS_PARAM_H */
33791 # define getpagesize() 8192 /* punt totally */
33792 # endif /* no HAVE_SYS_PARAM_H */
33793 # endif /* no _SC_PAGESIZE */
33795 #endif /* no HAVE_GETPAGESIZE */
33800 char *data, *data2, *data3;
33804 pagesize = getpagesize ();
33806 /* First, make a file with some known garbage in it. */
33807 data = (char *) malloc (pagesize);
33810 for (i = 0; i < pagesize; ++i)
33811 *(data + i) = rand ();
33813 fd = creat ("conftest.mmap", 0600);
33816 if (write (fd, data, pagesize) != pagesize)
33820 /* Next, try to mmap the file at a fixed address which already has
33821 something else allocated at it. If we can, also make sure that
33822 we see the same garbage. */
33823 fd = open ("conftest.mmap", O_RDWR);
33826 data2 = (char *) malloc (2 * pagesize);
33829 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33830 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33831 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33833 for (i = 0; i < pagesize; ++i)
33834 if (*(data + i) != *(data2 + i))
33837 /* Finally, make sure that changes to the mapped area do not
33838 percolate back to the file as seen by read(). (This is a bug on
33839 some variants of i386 svr4.0.) */
33840 for (i = 0; i < pagesize; ++i)
33841 *(data2 + i) = *(data2 + i) + 1;
33842 data3 = (char *) malloc (pagesize);
33845 if (read (fd, data3, pagesize) != pagesize)
33847 for (i = 0; i < pagesize; ++i)
33848 if (*(data + i) != *(data3 + i))
33854 rm -f conftest$ac_exeext
33855 if { (ac_try="$ac_link"
33856 case "(($ac_try" in
33857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33858 *) ac_try_echo=$ac_try;;
33860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33861 (eval "$ac_link") 2>&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33865 { (case "(($ac_try" in
33866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33867 *) ac_try_echo=$ac_try;;
33869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33870 (eval "$ac_try") 2>&5
33872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873 (exit $ac_status); }; }; then
33874 ac_cv_func_mmap_fixed_mapped=yes
33876 echo "$as_me: program exited with status $ac_status" >&5
33877 echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33880 ( exit $ac_status )
33881 ac_cv_func_mmap_fixed_mapped=no
33883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33888 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33889 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33890 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33892 cat >>confdefs.h <<\_ACEOF
33893 #define HAVE_MMAP 1
33897 rm -f conftest.mmap
33899 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33900 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33901 if test "${ac_cv_func_mmap_file+set}" = set; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33905 ac_cpp='$CPP $CPPFLAGS'
33906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33910 if test "$cross_compiling" = yes; then
33911 ac_cv_func_mmap_file=no
33913 cat >conftest.$ac_ext <<_ACEOF
33917 cat confdefs.h >>conftest.$ac_ext
33918 cat >>conftest.$ac_ext <<_ACEOF
33919 /* end confdefs.h. */
33921 #include <sys/types.h>
33922 #include <sys/mman.h>
33930 fd = creat ("foo",0777);
33931 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33933 return (fd != (int) MAP_FAILED);
33938 rm -f conftest$ac_exeext
33939 if { (ac_try="$ac_link"
33940 case "(($ac_try" in
33941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942 *) ac_try_echo=$ac_try;;
33944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33945 (eval "$ac_link") 2>&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33949 { (case "(($ac_try" in
33950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951 *) ac_try_echo=$ac_try;;
33953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954 (eval "$ac_try") 2>&5
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; }; then
33958 ac_cv_func_mmap_file=yes
33960 echo "$as_me: program exited with status $ac_status" >&5
33961 echo "$as_me: failed program was:" >&5
33962 sed 's/^/| /' conftest.$ac_ext >&5
33964 ( exit $ac_status )
33965 ac_cv_func_mmap_file=no
33967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33972 ac_cpp='$CPP $CPPFLAGS'
33973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33979 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33980 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33981 if test "$ac_cv_func_mmap_file" = yes; then
33983 cat >>confdefs.h <<\_ACEOF
33984 #define HAVE_MMAP_FILE
33991 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33992 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33993 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33996 if test "$llvm_cv_os_type" = "Interix" ; then
33997 ac_cv_need_dev_zero_for_mmap=yes
33999 ac_cv_need_dev_zero_for_mmap=no
34003 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34004 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34005 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34007 cat >>confdefs.h <<\_ACEOF
34008 #define NEED_DEV_ZERO_FOR_MMAP 1
34013 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34015 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34016 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34018 if test "$ac_cv_func_mmap_file" = "no"
34020 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34021 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34027 for ac_func in __dso_handle
34029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34033 echo $ECHO_N "(cached) $ECHO_C" >&6
34035 cat >conftest.$ac_ext <<_ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h. */
34041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34043 #define $ac_func innocuous_$ac_func
34045 /* System header to define __stub macros and hopefully few prototypes,
34046 which can conflict with char $ac_func (); below.
34047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34048 <limits.h> exists even on freestanding compilers. */
34051 # include <limits.h>
34053 # include <assert.h>
34058 /* Override any GCC internal prototype to avoid an error.
34059 Use char because int might match the return type of a GCC
34060 builtin and then its argument prototype would still apply. */
34065 /* The GNU C library defines this for functions which it implements
34066 to always fail with ENOSYS. Some functions are actually named
34067 something starting with __ and the normal name is an alias. */
34068 #if defined __stub_$ac_func || defined __stub___$ac_func
34075 return $ac_func ();
34080 rm -f conftest.$ac_objext conftest$ac_exeext
34081 if { (ac_try="$ac_link"
34082 case "(($ac_try" in
34083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084 *) ac_try_echo=$ac_try;;
34086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087 (eval "$ac_link") 2>conftest.er1
34089 grep -v '^ *+' conftest.er1 >conftest.err
34091 cat conftest.err >&5
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } &&
34094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34095 { (case "(($ac_try" in
34096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097 *) ac_try_echo=$ac_try;;
34099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100 (eval "$ac_try") 2>&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; } &&
34104 { ac_try='test -s conftest$ac_exeext'
34105 { (case "(($ac_try" in
34106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107 *) ac_try_echo=$ac_try;;
34109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110 (eval "$ac_try") 2>&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34114 eval "$as_ac_var=yes"
34116 echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34119 eval "$as_ac_var=no"
34122 rm -f core conftest.err conftest.$ac_objext \
34123 conftest$ac_exeext conftest.$ac_ext
34125 ac_res=`eval echo '${'$as_ac_var'}'`
34126 { echo "$as_me:$LINENO: result: $ac_res" >&5
34127 echo "${ECHO_T}$ac_res" >&6; }
34128 if test `eval echo '${'$as_ac_var'}'` = yes; then
34129 cat >>confdefs.h <<_ACEOF
34130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34137 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34138 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34139 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34140 echo $ECHO_N "(cached) $ECHO_C" >&6
34142 llvm_cv_llvmgcc_sanity="no"
34143 if test -x "$LLVMGCC" ; then
34144 cp /dev/null conftest.c
34145 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34146 grep 'target datalayout =' > /dev/null 2>&1
34147 if test $? -eq 0 ; then
34148 llvm_cv_llvmgcc_sanity="yes"
34153 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34154 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34156 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34157 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34158 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34159 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34160 LLVMCC1=$llvmcc1path
34162 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34163 LLVMCC1PLUS=$llvmcc1pluspath
34165 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34166 LLVMGCCDIR=$llvmgccdir
34168 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34169 LLVMGCCLIBEXEC=$llvmgcclibexec
34171 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34172 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34173 LLVMGCC_VERSION=$llvmgccversion
34175 LLVMGCC_MAJVERS=$llvmgccmajvers
34177 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34178 LLVMGCC_LANGS=$llvmgcclangs
34180 { echo "$as_me:$LINENO: result: ok" >&5
34181 echo "${ECHO_T}ok" >&6; }
34184 SHLIBEXT=$libltdl_cv_shlibext
34187 # Translate the various configuration directories and other basic
34188 # information into substitutions that will end up in Makefile.config.in
34189 # that these configured values can be used by the makefiles
34190 if test "${prefix}" = "NONE" ; then
34191 prefix="/usr/local"
34193 eval LLVM_PREFIX="${prefix}";
34194 eval LLVM_BINDIR="${prefix}/bin";
34195 eval LLVM_LIBDIR="${prefix}/lib";
34196 eval LLVM_DATADIR="${prefix}/share/llvm";
34197 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34198 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34199 eval LLVM_INCLUDEDIR="${prefix}/include";
34200 eval LLVM_INFODIR="${prefix}/info";
34201 eval LLVM_MANDIR="${prefix}/man";
34202 LLVM_CONFIGTIME=`date`
34214 # Place the various directores into the config.h file as #defines so that we
34215 # can know about the installation paths within LLVM.
34217 cat >>confdefs.h <<_ACEOF
34218 #define LLVM_PREFIX "$LLVM_PREFIX"
34222 cat >>confdefs.h <<_ACEOF
34223 #define LLVM_BINDIR "$LLVM_BINDIR"
34227 cat >>confdefs.h <<_ACEOF
34228 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34232 cat >>confdefs.h <<_ACEOF
34233 #define LLVM_DATADIR "$LLVM_DATADIR"
34237 cat >>confdefs.h <<_ACEOF
34238 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34242 cat >>confdefs.h <<_ACEOF
34243 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34247 cat >>confdefs.h <<_ACEOF
34248 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34252 cat >>confdefs.h <<_ACEOF
34253 #define LLVM_INFODIR "$LLVM_INFODIR"
34257 cat >>confdefs.h <<_ACEOF
34258 #define LLVM_MANDIR "$LLVM_MANDIR"
34262 cat >>confdefs.h <<_ACEOF
34263 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34267 cat >>confdefs.h <<_ACEOF
34268 #define LLVM_HOSTTRIPLE "$host"
34272 # Determine which bindings to build.
34273 if test "$BINDINGS_TO_BUILD" = auto ; then
34274 BINDINGS_TO_BUILD=""
34275 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34276 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34279 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34282 # This isn't really configurey, but it avoids having to repeat the list in
34287 # Do any work necessary to ensure that bindings have what they need.
34288 binding_prereqs_failed=0
34289 for a_binding in $BINDINGS_TO_BUILD ; do
34290 case "$a_binding" in
34292 if test "x$OCAMLC" = x ; then
34293 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34294 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34295 binding_prereqs_failed=1
34297 if test "x$OCAMLDEP" = x ; then
34298 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34299 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34300 binding_prereqs_failed=1
34302 if test "x$OCAMLOPT" = x ; then
34303 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34304 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34306 if test "x$with_ocaml_libdir" != xauto ; then
34307 OCAML_LIBDIR=$with_ocaml_libdir
34310 ocaml_stdlib="`"$OCAMLC" -where`"
34311 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34313 # ocaml stdlib is beneath our prefix; use stdlib
34314 OCAML_LIBDIR=$ocaml_stdlib
34317 # ocaml stdlib is outside our prefix; use libdir/ocaml
34318 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34325 if test "$binding_prereqs_failed" = 1 ; then
34326 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34327 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34328 { (exit 1); exit 1; }; }
34331 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34332 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34333 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34334 echo $ECHO_N "(cached) $ECHO_C" >&6
34337 ac_cpp='$CXXCPP $CPPFLAGS'
34338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34342 oldcxxflags="$CXXFLAGS"
34343 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34344 cat >conftest.$ac_ext <<_ACEOF
34347 cat confdefs.h >>conftest.$ac_ext
34348 cat >>conftest.$ac_ext <<_ACEOF
34349 /* end confdefs.h. */
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363 *) ac_try_echo=$ac_try;;
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366 (eval "$ac_compile") 2>conftest.er1
34368 grep -v '^ *+' conftest.er1 >conftest.err
34370 cat conftest.err >&5
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); } &&
34373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34374 { (case "(($ac_try" in
34375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376 *) ac_try_echo=$ac_try;;
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379 (eval "$ac_try") 2>&5
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } &&
34383 { ac_try='test -s conftest.$ac_objext'
34384 { (case "(($ac_try" in
34385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34386 *) ac_try_echo=$ac_try;;
34388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34389 (eval "$ac_try") 2>&5
34391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392 (exit $ac_status); }; }; then
34393 llvm_cv_cxx_visibility_inlines_hidden=yes
34395 echo "$as_me: failed program was:" >&5
34396 sed 's/^/| /' conftest.$ac_ext >&5
34398 llvm_cv_cxx_visibility_inlines_hidden=no
34401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34402 CXXFLAGS="$oldcxxflags"
34404 ac_cpp='$CPP $CPPFLAGS'
34405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34411 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34412 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34413 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34414 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34417 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34423 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34425 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34427 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34429 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34431 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34434 ac_config_files="$ac_config_files Makefile.config"
34437 ac_config_files="$ac_config_files llvm.spec"
34440 ac_config_files="$ac_config_files docs/doxygen.cfg"
34443 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34446 ac_config_commands="$ac_config_commands setup"
34448 ac_config_commands="$ac_config_commands Makefile"
34451 ac_config_commands="$ac_config_commands Makefile.common"
34454 ac_config_commands="$ac_config_commands examples/Makefile"
34457 ac_config_commands="$ac_config_commands lib/Makefile"
34460 ac_config_commands="$ac_config_commands runtime/Makefile"
34463 ac_config_commands="$ac_config_commands test/Makefile"
34466 ac_config_commands="$ac_config_commands test/Makefile.tests"
34469 ac_config_commands="$ac_config_commands unittests/Makefile"
34472 ac_config_commands="$ac_config_commands tools/Makefile"
34475 ac_config_commands="$ac_config_commands utils/Makefile"
34478 ac_config_commands="$ac_config_commands projects/Makefile"
34481 ac_config_commands="$ac_config_commands bindings/Makefile"
34484 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34488 cat >confcache <<\_ACEOF
34489 # This file is a shell script that caches the results of configure
34490 # tests run on this system so they can be shared between configure
34491 # scripts and configure runs, see configure's option --config-cache.
34492 # It is not useful on other systems. If it contains results you don't
34493 # want to keep, you may remove or edit it.
34495 # config.status only pays attention to the cache file if you give it
34496 # the --recheck option to rerun configure.
34498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34500 # following values.
34504 # The following way of writing the cache mishandles newlines in values,
34505 # but we know of no workaround that is simple, portable, and efficient.
34506 # So, we kill variables containing newlines.
34507 # Ultrix sh set writes to stderr and can't be redirected directly,
34508 # and sets the high bit in the cache file unless we assign to the vars.
34510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34511 eval ac_val=\$$ac_var
34515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34519 _ | IFS | as_nl) ;; #(
34520 *) $as_unset $ac_var ;;
34526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34527 *${as_nl}ac_space=\ *)
34528 # `set' does not quote correctly, so add quotes (double-quote
34529 # substitution turns \\\\ into \\, and sed turns \\ into \).
34532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34535 # `set' quotes correctly as required by POSIX, so do not add quotes.
34536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34550 if test -w "$cache_file"; then
34551 test "x$cache_file" != "x/dev/null" &&
34552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34553 echo "$as_me: updating cache $cache_file" >&6;}
34554 cat confcache >$cache_file
34556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34563 # Let make expand exec_prefix.
34564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34566 DEFS=-DHAVE_CONFIG_H
34570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34571 # 1. Remove the extension, and $U if already installed.
34572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34573 ac_i=`echo "$ac_i" | sed "$ac_script"`
34574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34575 # will be set to the directory where LIBOBJS objects are built.
34576 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34577 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34579 LIBOBJS=$ac_libobjs
34581 LTLIBOBJS=$ac_ltlibobjs
34584 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34585 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34586 Usually this means the macro was only invoked conditionally." >&5
34587 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34588 Usually this means the macro was only invoked conditionally." >&2;}
34589 { (exit 1); exit 1; }; }
34591 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34592 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34593 Usually this means the macro was only invoked conditionally." >&5
34594 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34595 Usually this means the macro was only invoked conditionally." >&2;}
34596 { (exit 1); exit 1; }; }
34599 : ${CONFIG_STATUS=./config.status}
34600 ac_clean_files_save=$ac_clean_files
34601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34602 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34604 cat >$CONFIG_STATUS <<_ACEOF
34606 # Generated by $as_me.
34607 # Run this file to recreate the current configuration.
34608 # Compiler output produced by configure, useful for debugging
34609 # configure, is in config.log if it exists.
34612 ac_cs_recheck=false
34614 SHELL=\${CONFIG_SHELL-$SHELL}
34617 cat >>$CONFIG_STATUS <<\_ACEOF
34618 ## --------------------- ##
34619 ## M4sh Initialization. ##
34620 ## --------------------- ##
34622 # Be Bourne compatible
34623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34627 # is contrary to our usage. Disable this feature.
34628 alias -g '${1+"$@"}'='"$@"'
34629 setopt NO_GLOB_SUBST
34631 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34633 BIN_SH=xpg4; export BIN_SH # for Tru64
34634 DUALCASE=1; export DUALCASE # for MKS sh
34638 # Avoid depending upon Character Ranges.
34639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34642 as_cr_digits='0123456789'
34643 as_cr_alnum=$as_cr_Letters$as_cr_digits
34645 # The user is always right.
34646 if test "${PATH_SEPARATOR+set}" != set; then
34647 echo "#! /bin/sh" >conf$$.sh
34648 echo "exit 0" >>conf$$.sh
34650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34658 # Support unset when possible.
34659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34667 # We need space, tab and new line, in precisely that order. Quoting is
34668 # there to prevent editors from complaining about space-tab.
34669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34670 # splitting by setting IFS to empty value.)
34675 # Find who we are. Look in the path if we contain no directory separator.
34677 *[\\/]* ) as_myself=$0 ;;
34678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34679 for as_dir in $PATH
34682 test -z "$as_dir" && as_dir=.
34683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34689 # We did not find ourselves, most probably we were run as `sh COMMAND'
34690 # in which case we are not to be found in the path.
34691 if test "x$as_myself" = x; then
34694 if test ! -f "$as_myself"; then
34695 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34696 { (exit 1); exit 1; }
34699 # Work around bugs in pre-3.0 UWIN ksh.
34700 for as_var in ENV MAIL MAILPATH
34701 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34709 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34710 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34711 LC_TELEPHONE LC_TIME
34713 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34714 eval $as_var=C; export $as_var
34716 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34720 # Required to use basename.
34721 if expr a : '\(a\)' >/dev/null 2>&1 &&
34722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34728 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34729 as_basename=basename
34735 # Name of the executable.
34736 as_me=`$as_basename -- "$0" ||
34737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34738 X"$0" : 'X\(//\)$' \| \
34739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34741 sed '/^.*\/\([^/][^/]*\)\/*$/{
34760 as_lineno_1=$LINENO
34761 as_lineno_2=$LINENO
34762 test "x$as_lineno_1" != "x$as_lineno_2" &&
34763 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34765 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34766 # uniformly replaced by the line number. The first 'sed' inserts a
34767 # line-number line after each line using $LINENO; the second 'sed'
34768 # does the real work. The second script uses 'N' to pair each
34769 # line-number line with the line containing $LINENO, and appends
34770 # trailing '-' during substitution so that $LINENO is not a special
34771 # case at line end.
34772 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34773 # scripts with optimization help from Paolo Bonzini. Blame Lee
34774 # E. McMahon (1931-1989) for sed's syntax. :-)
34786 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34789 ' >$as_me.lineno &&
34790 chmod +x "$as_me.lineno" ||
34791 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34792 { (exit 1); exit 1; }; }
34794 # Don't try to exec as it changes $[0], causing all sort of problems
34795 # (the dirname of $[0] is not the place where we might find the
34796 # original and so on. Autoconf is especially sensitive to this).
34797 . "./$as_me.lineno"
34798 # Exit status is that of the last command.
34803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34809 ECHO_C= ECHO_N= ECHO_T=
34810 case `echo -n x` in
34812 case `echo 'x\c'` in
34813 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34820 if expr a : '\(a\)' >/dev/null 2>&1 &&
34821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34827 rm -f conf$$ conf$$.exe conf$$.file
34828 if test -d conf$$.dir; then
34829 rm -f conf$$.dir/conf$$.file
34835 if ln -s conf$$.file conf$$ 2>/dev/null; then
34837 # ... but there are two gotchas:
34838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34840 # In both cases, we have to default to `cp -p'.
34841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34843 elif ln conf$$.file conf$$ 2>/dev/null; then
34848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34849 rmdir conf$$.dir 2>/dev/null
34851 if mkdir -p . 2>/dev/null; then
34854 test -d ./-p && rmdir ./-p
34858 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34859 # systems may use methods other than mode bits to determine executability.
34860 cat >conf$$.file <<_ASEOF
34864 chmod +x conf$$.file
34865 if test -x conf$$.file >/dev/null 2>&1; then
34866 as_executable_p="test -x"
34872 # Sed expression to map a string onto a valid CPP name.
34873 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34875 # Sed expression to map a string onto a valid variable name.
34876 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34881 # Save the log message, to keep $[0] and so on meaningful, and to
34882 # report actual input values of CONFIG_FILES etc. instead of their
34883 # values after options handling.
34885 This file was extended by llvm $as_me 2.6svn, which was
34886 generated by GNU Autoconf 2.60. Invocation command line was
34888 CONFIG_FILES = $CONFIG_FILES
34889 CONFIG_HEADERS = $CONFIG_HEADERS
34890 CONFIG_LINKS = $CONFIG_LINKS
34891 CONFIG_COMMANDS = $CONFIG_COMMANDS
34894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34899 cat >>$CONFIG_STATUS <<_ACEOF
34900 # Files that config.status was made for.
34901 config_files="$ac_config_files"
34902 config_headers="$ac_config_headers"
34903 config_commands="$ac_config_commands"
34907 cat >>$CONFIG_STATUS <<\_ACEOF
34909 \`$as_me' instantiates files from templates according to the
34910 current configuration.
34912 Usage: $0 [OPTIONS] [FILE]...
34914 -h, --help print this help, then exit
34915 -V, --version print version number, then exit
34916 -q, --quiet do not print progress messages
34917 -d, --debug don't remove temporary files
34918 --recheck update $as_me by reconfiguring in the same conditions
34919 --file=FILE[:TEMPLATE]
34920 instantiate the configuration file FILE
34921 --header=FILE[:TEMPLATE]
34922 instantiate the configuration header FILE
34924 Configuration files:
34927 Configuration headers:
34930 Configuration commands:
34933 Report bugs to <bug-autoconf@gnu.org>."
34936 cat >>$CONFIG_STATUS <<_ACEOF
34938 llvm config.status 2.6svn
34939 configured by $0, generated by GNU Autoconf 2.60,
34940 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34942 Copyright (C) 2006 Free Software Foundation, Inc.
34943 This config.status script is free software; the Free Software Foundation
34944 gives unlimited permission to copy, distribute and modify it."
34951 cat >>$CONFIG_STATUS <<\_ACEOF
34952 # If no file are specified by the user, then we need to provide default
34953 # value. By we need to know if files were specified by the user.
34959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34960 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34971 # Handling of the options.
34972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34974 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34975 echo "$ac_cs_version"; exit ;;
34976 --debug | --debu | --deb | --de | --d | -d )
34978 --file | --fil | --fi | --f )
34980 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34981 ac_need_defaults=false;;
34982 --header | --heade | --head | --hea )
34984 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34985 ac_need_defaults=false;;
34987 # Conflict between --help and --header
34988 { echo "$as_me: error: ambiguous option: $1
34989 Try \`$0 --help' for more information." >&2
34990 { (exit 1); exit 1; }; };;
34991 --help | --hel | -h )
34992 echo "$ac_cs_usage"; exit ;;
34993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34994 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34997 # This is an error.
34998 -*) { echo "$as_me: error: unrecognized option: $1
34999 Try \`$0 --help' for more information." >&2
35000 { (exit 1); exit 1; }; } ;;
35002 *) ac_config_targets="$ac_config_targets $1"
35003 ac_need_defaults=false ;;
35009 ac_configure_extra_args=
35011 if $ac_cs_silent; then
35013 ac_configure_extra_args="$ac_configure_extra_args --silent"
35017 cat >>$CONFIG_STATUS <<_ACEOF
35018 if \$ac_cs_recheck; then
35019 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35020 CONFIG_SHELL=$SHELL
35021 export CONFIG_SHELL
35022 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35026 cat >>$CONFIG_STATUS <<\_ACEOF
35030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35031 ## Running $as_me. ##
35037 cat >>$CONFIG_STATUS <<_ACEOF
35041 llvm_src="${srcdir}"
35045 cat >>$CONFIG_STATUS <<\_ACEOF
35047 # Handling of arguments.
35048 for ac_config_target in $ac_config_targets
35050 case $ac_config_target in
35051 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35052 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35053 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35054 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35055 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35056 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35057 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35058 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35059 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35060 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35061 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35062 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35063 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35064 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35065 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35066 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35067 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35068 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35069 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35070 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35071 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35072 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35073 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35077 { (exit 1); exit 1; }; };;
35082 # If the user did not use the arguments to specify the items to instantiate,
35083 # then the envvar interface is used. Set only those that are not.
35084 # We use the long form for the default assignment because of an extremely
35085 # bizarre bug on SunOS 4.1.3.
35086 if $ac_need_defaults; then
35087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35092 # Have a temporary directory for convenience. Make it in the build tree
35093 # simply because there is no reason against having it here, and in addition,
35094 # creating and moving files from /tmp can sometimes cause problems.
35095 # Hook for its removal unless debugging.
35096 # Note that there is a small window in which the directory will not be cleaned:
35097 # after its creation but before its name has been assigned to `$tmp'.
35101 trap 'exit_status=$?
35102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35104 trap '{ (exit 1); exit 1; }' 1 2 13 15
35106 # Create a (secure) tmp directory for tmp files.
35109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35110 test -n "$tmp" && test -d "$tmp"
35113 tmp=./conf$$-$RANDOM
35114 (umask 077 && mkdir "$tmp")
35117 echo "$me: cannot create a temporary directory in ." >&2
35118 { (exit 1); exit 1; }
35122 # Set up the sed scripts for CONFIG_FILES section.
35125 # No need to generate the scripts if there are no CONFIG_FILES.
35126 # This happens for instance when ./config.status config.h
35127 if test -n "$CONFIG_FILES"; then
35134 for ac_last_try in false false false false false :; do
35135 cat >conf$$subs.sed <<_ACEOF
35136 SHELL!$SHELL$ac_delim
35137 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35138 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35139 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35140 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35141 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35142 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35143 exec_prefix!$exec_prefix$ac_delim
35144 prefix!$prefix$ac_delim
35145 program_transform_name!$program_transform_name$ac_delim
35146 bindir!$bindir$ac_delim
35147 sbindir!$sbindir$ac_delim
35148 libexecdir!$libexecdir$ac_delim
35149 datarootdir!$datarootdir$ac_delim
35150 datadir!$datadir$ac_delim
35151 sysconfdir!$sysconfdir$ac_delim
35152 sharedstatedir!$sharedstatedir$ac_delim
35153 localstatedir!$localstatedir$ac_delim
35154 includedir!$includedir$ac_delim
35155 oldincludedir!$oldincludedir$ac_delim
35156 docdir!$docdir$ac_delim
35157 infodir!$infodir$ac_delim
35158 htmldir!$htmldir$ac_delim
35159 dvidir!$dvidir$ac_delim
35160 pdfdir!$pdfdir$ac_delim
35161 psdir!$psdir$ac_delim
35162 libdir!$libdir$ac_delim
35163 localedir!$localedir$ac_delim
35164 mandir!$mandir$ac_delim
35165 DEFS!$DEFS$ac_delim
35166 ECHO_C!$ECHO_C$ac_delim
35167 ECHO_N!$ECHO_N$ac_delim
35168 ECHO_T!$ECHO_T$ac_delim
35169 LIBS!$LIBS$ac_delim
35170 build_alias!$build_alias$ac_delim
35171 host_alias!$host_alias$ac_delim
35172 target_alias!$target_alias$ac_delim
35173 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35174 subdirs!$subdirs$ac_delim
35175 build!$build$ac_delim
35176 build_cpu!$build_cpu$ac_delim
35177 build_vendor!$build_vendor$ac_delim
35178 build_os!$build_os$ac_delim
35179 host!$host$ac_delim
35180 host_cpu!$host_cpu$ac_delim
35181 host_vendor!$host_vendor$ac_delim
35182 host_os!$host_os$ac_delim
35183 target!$target$ac_delim
35184 target_cpu!$target_cpu$ac_delim
35185 target_vendor!$target_vendor$ac_delim
35186 target_os!$target_os$ac_delim
35188 LINKALL!$LINKALL$ac_delim
35189 NOLINKALL!$NOLINKALL$ac_delim
35190 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35191 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35192 ARCH!$ARCH$ac_delim
35193 ENDIAN!$ENDIAN$ac_delim
35195 CFLAGS!$CFLAGS$ac_delim
35196 LDFLAGS!$LDFLAGS$ac_delim
35197 CPPFLAGS!$CPPFLAGS$ac_delim
35198 ac_ct_CC!$ac_ct_CC$ac_delim
35199 EXEEXT!$EXEEXT$ac_delim
35200 OBJEXT!$OBJEXT$ac_delim
35202 GREP!$GREP$ac_delim
35203 EGREP!$EGREP$ac_delim
35204 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35205 BUILD_CC!$BUILD_CC$ac_delim
35206 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35207 BUILD_CXX!$BUILD_CXX$ac_delim
35208 CVSBUILD!$CVSBUILD$ac_delim
35209 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35210 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35211 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35212 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35213 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35215 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35216 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35217 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35218 ENABLE_PIC!$ENABLE_PIC$ac_delim
35219 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35220 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35221 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35222 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35224 CXXFLAGS!$CXXFLAGS$ac_delim
35225 ac_ct_CXX!$ac_ct_CXX$ac_delim
35227 ifGNUmake!$ifGNUmake$ac_delim
35228 LN_S!$LN_S$ac_delim
35231 DATE!$DATE$ac_delim
35232 FIND!$FIND$ac_delim
35235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35237 elif $ac_last_try; then
35238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35240 { (exit 1); exit 1; }; }
35242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35247 if test -n "$ac_eof"; then
35248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35249 ac_eof=`expr $ac_eof + 1`
35252 cat >>$CONFIG_STATUS <<_ACEOF
35253 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35258 s/^/s,@/; s/!/@,|#_!!_#|/
35261 s/'"$ac_delim"'$/,g/; t
35263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35264 ' >>$CONFIG_STATUS <conf$$subs.sed
35265 rm -f conf$$subs.sed
35266 cat >>$CONFIG_STATUS <<_ACEOF
35272 for ac_last_try in false false false false false :; do
35273 cat >conf$$subs.sed <<_ACEOF
35274 MKDIR!$MKDIR$ac_delim
35276 RANLIB!$RANLIB$ac_delim
35280 BINPWD!$BINPWD$ac_delim
35281 GRAPHVIZ!$GRAPHVIZ$ac_delim
35284 DOTTY!$DOTTY$ac_delim
35285 PERL!$PERL$ac_delim
35286 HAVE_PERL!$HAVE_PERL$ac_delim
35287 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35288 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35289 INSTALL_DATA!$INSTALL_DATA$ac_delim
35290 BZIP2!$BZIP2$ac_delim
35291 DOXYGEN!$DOXYGEN$ac_delim
35292 GROFF!$GROFF$ac_delim
35293 GZIP!$GZIP$ac_delim
35294 POD2HTML!$POD2HTML$ac_delim
35295 POD2MAN!$POD2MAN$ac_delim
35296 RUNTEST!$RUNTEST$ac_delim
35297 TCLSH!$TCLSH$ac_delim
35299 OCAMLC!$OCAMLC$ac_delim
35300 OCAMLOPT!$OCAMLOPT$ac_delim
35301 OCAMLDEP!$OCAMLDEP$ac_delim
35302 OCAMLDOC!$OCAMLDOC$ac_delim
35304 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35305 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35306 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35307 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35308 LIBADD_DL!$LIBADD_DL$ac_delim
35309 ECHO!$ECHO$ac_delim
35311 STRIP!$STRIP$ac_delim
35312 CXXCPP!$CXXCPP$ac_delim
35314 FFLAGS!$FFLAGS$ac_delim
35315 ac_ct_F77!$ac_ct_F77$ac_delim
35316 LIBTOOL!$LIBTOOL$ac_delim
35317 LLVMGCC!$LLVMGCC$ac_delim
35318 LLVMGXX!$LLVMGXX$ac_delim
35319 USE_UDIS86!$USE_UDIS86$ac_delim
35320 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35321 HAVE_FFI!$HAVE_FFI$ac_delim
35322 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35323 ALLOCA!$ALLOCA$ac_delim
35324 MMAP_FILE!$MMAP_FILE$ac_delim
35325 LLVMCC1!$LLVMCC1$ac_delim
35326 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35327 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35328 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35329 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35330 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35331 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35332 SHLIBEXT!$SHLIBEXT$ac_delim
35333 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35334 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35335 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35336 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35337 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35338 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35339 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35340 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35341 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35342 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35343 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35344 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35345 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35346 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35347 LIBOBJS!$LIBOBJS$ac_delim
35348 LTLIBOBJS!$LTLIBOBJS$ac_delim
35351 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
35353 elif $ac_last_try; then
35354 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35355 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35356 { (exit 1); exit 1; }; }
35358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35362 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35363 if test -n "$ac_eof"; then
35364 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35365 ac_eof=`expr $ac_eof + 1`
35368 cat >>$CONFIG_STATUS <<_ACEOF
35369 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35373 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35374 s/^/s,@/; s/!/@,|#_!!_#|/
35377 s/'"$ac_delim"'$/,g/; t
35379 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35380 ' >>$CONFIG_STATUS <conf$$subs.sed
35381 rm -f conf$$subs.sed
35382 cat >>$CONFIG_STATUS <<_ACEOF
35389 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35390 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35391 # trailing colons and then remove the whole line if VPATH becomes empty
35392 # (actually we leave an empty line to preserve line numbers).
35393 if test "x$srcdir" = x.; then
35394 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35395 s/:*\$(srcdir):*/:/
35396 s/:*\${srcdir}:*/:/
35398 s/^\([^=]*=[ ]*\):*/\1/
35404 cat >>$CONFIG_STATUS <<\_ACEOF
35405 fi # test -n "$CONFIG_FILES"
35408 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35411 :[FHLC]) ac_mode=$ac_tag; continue;;
35413 case $ac_mode$ac_tag in
35415 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35416 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35417 { (exit 1); exit 1; }; };;
35418 :[FH]-) ac_tag=-:-;;
35419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35436 -) ac_f="$tmp/stdin";;
35437 *) # Look for the file first in the build tree, then in the source tree
35438 # (if the path is not absolute). The absolute path cannot be DOS-style,
35439 # because $ac_f cannot contain `:'.
35443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35445 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35446 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35447 { (exit 1); exit 1; }; };;
35449 ac_file_inputs="$ac_file_inputs $ac_f"
35452 # Let's still pretend it is `configure' which instantiates (i.e., don't
35453 # use $as_me), people would be surprised to read:
35454 # /* config.h. Generated by config.status. */
35455 configure_input="Generated from "`IFS=:
35456 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35457 if test x"$ac_file" != x-; then
35458 configure_input="$ac_file. $configure_input"
35459 { echo "$as_me:$LINENO: creating $ac_file" >&5
35460 echo "$as_me: creating $ac_file" >&6;}
35464 *:-:* | *:-) cat >"$tmp/stdin";;
35469 ac_dir=`$as_dirname -- "$ac_file" ||
35470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35471 X"$ac_file" : 'X\(//\)[^/]' \| \
35472 X"$ac_file" : 'X\(//\)$' \| \
35473 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35479 /^X\(\/\/\)[^/].*/{
35494 -*) as_dir=./$as_dir;;
35496 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35500 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35501 *) as_qdir=$as_dir;;
35503 as_dirs="'$as_qdir' $as_dirs"
35504 as_dir=`$as_dirname -- "$as_dir" ||
35505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35506 X"$as_dir" : 'X\(//\)[^/]' \| \
35507 X"$as_dir" : 'X\(//\)$' \| \
35508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35514 /^X\(\/\/\)[^/].*/{
35527 test -d "$as_dir" && break
35529 test -z "$as_dirs" || eval "mkdir $as_dirs"
35530 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35531 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35532 { (exit 1); exit 1; }; }; }
35536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35539 # A ".." for each directory in $ac_dir_suffix.
35540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35541 case $ac_top_builddir_sub in
35542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35546 ac_abs_top_builddir=$ac_pwd
35547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35548 # for backward compatibility:
35549 ac_top_builddir=$ac_top_build_prefix
35552 .) # We are building in place.
35554 ac_top_srcdir=$ac_top_builddir_sub
35555 ac_abs_top_srcdir=$ac_pwd ;;
35556 [\\/]* | ?:[\\/]* ) # Absolute name.
35557 ac_srcdir=$srcdir$ac_dir_suffix;
35558 ac_top_srcdir=$srcdir
35559 ac_abs_top_srcdir=$srcdir ;;
35560 *) # Relative name.
35561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35562 ac_top_srcdir=$ac_top_build_prefix$srcdir
35563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35576 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35580 cat >>$CONFIG_STATUS <<\_ACEOF
35581 # If the template does not know about datarootdir, expand it.
35582 # FIXME: This hack should be removed a few years after 2.60.
35583 ac_datarootdir_hack=; ac_datarootdir_seen=
35585 case `sed -n '/datarootdir/ {
35594 ' $ac_file_inputs` in
35595 *datarootdir*) ac_datarootdir_seen=yes;;
35596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35597 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35598 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35600 cat >>$CONFIG_STATUS <<_ACEOF
35601 ac_datarootdir_hack='
35602 s&@datadir@&$datadir&g
35603 s&@docdir@&$docdir&g
35604 s&@infodir@&$infodir&g
35605 s&@localedir@&$localedir&g
35606 s&@mandir@&$mandir&g
35607 s&\\\${datarootdir}&$datarootdir&g' ;;
35611 # Neutralize VPATH when `$srcdir' = `.'.
35612 # Shell code in configure.ac might set extrasub.
35613 # FIXME: do we really want to maintain this feature?
35614 cat >>$CONFIG_STATUS <<_ACEOF
35618 cat >>$CONFIG_STATUS <<\_ACEOF
35620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35621 s&@configure_input@&$configure_input&;t t
35622 s&@top_builddir@&$ac_top_builddir_sub&;t t
35623 s&@srcdir@&$ac_srcdir&;t t
35624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35625 s&@top_srcdir@&$ac_top_srcdir&;t t
35626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35627 s&@builddir@&$ac_builddir&;t t
35628 s&@abs_builddir@&$ac_abs_builddir&;t t
35629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35630 s&@INSTALL@&$ac_INSTALL&;t t
35631 $ac_datarootdir_hack
35632 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35635 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35637 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35638 which seems to be undefined. Please make sure it is defined." >&5
35639 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35640 which seems to be undefined. Please make sure it is defined." >&2;}
35644 -) cat "$tmp/out"; rm -f "$tmp/out";;
35645 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35654 # Transform confdefs.h into a sed script `conftest.defines', that
35655 # substitutes the proper values into config.h.in to produce config.h.
35656 rm -f conftest.defines conftest.tail
35657 # First, append a space to every undef/define line, to ease matching.
35658 echo 's/$/ /' >conftest.defines
35659 # Then, protect against being on the right side of a sed subst, or in
35660 # an unquoted here document, in config.status. If some macros were
35661 # called several times there might be several #defines for the same
35662 # symbol, which is useless. But do not sort them, since the last
35663 # AC_DEFINE must be honored.
35664 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35665 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35666 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35667 # PARAMS is the parameter list in the macro definition--in most cases, it's
35668 # just an empty string.
35669 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35670 ac_dB='\\)[ (].*,\\1define\\2'
35678 s/^[ ]*#[ ]*define[ ][ ]*//
35683 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35684 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35685 ' >>conftest.defines
35687 # Remove the space that was appended to ease matching.
35688 # Then replace #undef with comments. This is necessary, for
35689 # example, in the case of _POSIX_SOURCE, which is predefined and required
35690 # on some systems where configure will not decide to define it.
35691 # (The regexp can be short, since the line contains either #define or #undef.)
35693 s,^[ #]*u.*,/* & */,' >>conftest.defines
35695 # Break up conftest.defines:
35696 ac_max_sed_lines=50
35698 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35699 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35700 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35702 ac_in='$ac_file_inputs'
35703 ac_out='"$tmp/out1"'
35704 ac_nxt='"$tmp/out2"'
35708 # Write a here document:
35709 cat >>$CONFIG_STATUS <<_ACEOF
35710 # First, check the format of the line:
35711 cat >"\$tmp/defines.sed" <<\\CEOF
35712 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35713 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35717 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35719 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35720 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35721 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35722 grep . conftest.tail >/dev/null || break
35723 rm -f conftest.defines
35724 mv conftest.tail conftest.defines
35726 rm -f conftest.defines conftest.tail
35728 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35729 cat >>$CONFIG_STATUS <<\_ACEOF
35730 if test x"$ac_file" != x-; then
35731 echo "/* $configure_input */" >"$tmp/config.h"
35732 cat "$ac_result" >>"$tmp/config.h"
35733 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35734 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35735 echo "$as_me: $ac_file is unchanged" >&6;}
35738 mv "$tmp/config.h" $ac_file
35741 echo "/* $configure_input */"
35747 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35748 echo "$as_me: executing $ac_file commands" >&6;}
35753 case $ac_file$ac_mode in
35754 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35755 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35756 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35757 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35758 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35759 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35760 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35761 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35762 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35763 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35764 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35765 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35766 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35767 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35768 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35769 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35770 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35771 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35772 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35773 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35774 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35775 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35776 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35777 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35778 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35779 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35785 { (exit 0); exit 0; }
35787 chmod +x $CONFIG_STATUS
35788 ac_clean_files=$ac_clean_files_save
35791 # configure is writing to config.log, and then calls config.status.
35792 # config.status does its own redirection, appending to config.log.
35793 # Unfortunately, on DOS this fails, as config.log is still kept open
35794 # by configure, so config.status won't be able to write to it; its
35795 # output is simply discarded. So we exec the FD to /dev/null,
35796 # effectively closing config.log, so it can be properly (re)opened and
35797 # appended to by config.status. When coming back to configure, we
35798 # need to make the FD available again.
35799 if test "$no_create" != yes; then
35801 ac_config_status_args=
35802 test "$silent" = yes &&
35803 ac_config_status_args="$ac_config_status_args --quiet"
35805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35808 # would make configure fail if this is the last instruction.
35809 $ac_cs_success || { (exit 1); exit 1; }
35813 # CONFIG_SUBDIRS section.
35815 if test "$no_recursion" != yes; then
35817 # Remove --cache-file and --srcdir arguments so they do not pile up.
35818 ac_sub_configure_args=
35820 eval "set x $ac_configure_args"
35824 if test -n "$ac_prev"; then
35829 -cache-file | --cache-file | --cache-fil | --cache-fi \
35830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35831 ac_prev=cache_file ;;
35832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35836 --config-cache | -C)
35838 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35840 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35842 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35844 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35848 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35850 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35854 # Always prepend --prefix to ensure using the same prefix
35855 # in subdir configurations.
35856 ac_arg="--prefix=$prefix"
35858 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35860 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35863 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35865 # Do not complain, so a configure script can configure whichever
35866 # parts of a large source tree are present.
35867 test -d "$srcdir/$ac_dir" || continue
35869 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35870 echo "$as_me:$LINENO: $ac_msg" >&5
35874 -*) as_dir=./$as_dir;;
35876 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35880 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35881 *) as_qdir=$as_dir;;
35883 as_dirs="'$as_qdir' $as_dirs"
35884 as_dir=`$as_dirname -- "$as_dir" ||
35885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35886 X"$as_dir" : 'X\(//\)[^/]' \| \
35887 X"$as_dir" : 'X\(//\)$' \| \
35888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35894 /^X\(\/\/\)[^/].*/{
35907 test -d "$as_dir" && break
35909 test -z "$as_dirs" || eval "mkdir $as_dirs"
35910 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35911 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35912 { (exit 1); exit 1; }; }; }
35916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35919 # A ".." for each directory in $ac_dir_suffix.
35920 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35921 case $ac_top_builddir_sub in
35922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35926 ac_abs_top_builddir=$ac_pwd
35927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35928 # for backward compatibility:
35929 ac_top_builddir=$ac_top_build_prefix
35932 .) # We are building in place.
35934 ac_top_srcdir=$ac_top_builddir_sub
35935 ac_abs_top_srcdir=$ac_pwd ;;
35936 [\\/]* | ?:[\\/]* ) # Absolute name.
35937 ac_srcdir=$srcdir$ac_dir_suffix;
35938 ac_top_srcdir=$srcdir
35939 ac_abs_top_srcdir=$srcdir ;;
35940 *) # Relative name.
35941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35942 ac_top_srcdir=$ac_top_build_prefix$srcdir
35943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35950 # Check for guested configure; otherwise get Cygnus style configure.
35951 if test -f "$ac_srcdir/configure.gnu"; then
35952 ac_sub_configure=$ac_srcdir/configure.gnu
35953 elif test -f "$ac_srcdir/configure"; then
35954 ac_sub_configure=$ac_srcdir/configure
35955 elif test -f "$ac_srcdir/configure.in"; then
35956 # This should be Cygnus configure.
35957 ac_sub_configure=$ac_aux_dir/configure
35959 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35964 # The recursion is here.
35965 if test -n "$ac_sub_configure"; then
35966 # Make the cache file name correct relative to the subdirectory.
35967 case $cache_file in
35968 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35969 *) # Relative name.
35970 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35973 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35974 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35975 # The eval makes quoting arguments work.
35976 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35977 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35978 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35979 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35980 { (exit 1); exit 1; }; }