2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
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
837 ENABLE_EXPENSIVE_CHECKS
847 LLVM_ENUM_ASM_PRINTERS
848 LLVM_ENUM_ASM_PARSERS
853 ENABLE_LLVMC_DYNAMIC_PLUGINS
900 CONVENIENCE_LTDL_TRUE
901 CONVENIENCE_LTDL_FALSE
942 ENABLE_VISIBILITY_INLINES_HIDDEN
948 ac_precious_vars='build_alias
962 ac_subdirs_all='projects/sample
964 projects/llvm-stacker
971 projects/llvm-poolalloc
973 projects/llvm-kernel'
975 # Initialize some variables set by options.
977 ac_init_version=false
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
987 program_transform_name=s,x,x,
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012 infodir='${datarootdir}/info'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082 eval enable_$ac_feature=no ;;
1084 -docdir | --docdir | --docdi | --doc | --do)
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1094 -enable-* | --enable-*)
1095 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1101 eval enable_$ac_feature=\$ac_optarg ;;
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 htmldir=$ac_optarg ;;
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1146 -libdir | --libdir | --libdi | --libd)
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1237 -psdir | --psdir | --psdi | --psd | --ps)
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 sbindir=$ac_optarg ;;
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 sharedstatedir=$ac_optarg ;;
1263 -site | --site | --sit)
1265 -site=* | --site=* | --sit=*)
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1292 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_package=`echo $ac_package| sed 's/-/_/g'`
1298 eval with_$ac_package=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1304 { echo "$as_me: error: invalid package name: $ac_package" >&2
1305 { (exit 1); exit 1; }; }
1306 ac_package=`echo $ac_package | sed 's/-/_/g'`
1307 eval with_$ac_package=no ;;
1310 # Obsolete; use --with-x.
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) { echo "$as_me: error: unrecognized option: $ac_option
1328 Try \`$0 --help' for more information." >&2
1329 { (exit 1); exit 1; }; }
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337 { (exit 1); exit 1; }; }
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 { echo "$as_me: error: missing argument to $ac_option" >&2
1355 { (exit 1); exit 1; }; }
1358 # Be sure to have absolute directory names.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1364 eval ac_val=\$$ac_var
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370 { (exit 1); exit 1; }; }
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1378 target=$target_alias
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385 If a cross compiler is detected then cross compile mode will be used." >&2
1386 elif test "x$build_alias" != "x$host_alias"; then
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394 test "$silent" = yes && exec 6>/dev/null
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 { echo "$as_me: error: Working directory cannot be determined" >&2
1401 { (exit 1); exit 1; }; }
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 { echo "$as_me: error: pwd does not report name of working directory" >&2
1404 { (exit 1); exit 1; }; }
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$0" ||
1412 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$0" : 'X\(//\)[^/]' \| \
1414 X"$0" : 'X\(//\)$' \| \
1415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1444 { (exit 1); exit 1; }; }
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1449 { (exit 1); exit 1; }; }
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 # Report the --help message.
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1475 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1482 Defaults for the options are specified in brackets.
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1506 For better control, use the options below.
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 --target=TARGET configure for building compilers for TARGET [HOST]
1539 if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-optimized Compile with optimizations enabled (default is NO)
1549 --enable-profiling Compile with profiling enabled (default is NO)
1550 --enable-assertions Compile with assertion checks enabled (default is
1552 --enable-expensive-checks
1553 Compile with expensive debug checks enabled (default
1555 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 --enable-jit Enable Just In Time Compiling (default is YES)
1558 --enable-doxygen Build doxygen documentation (default is NO)
1559 --enable-threads Use threads if available (default is YES)
1560 --enable-pic Build LLVM with Position Independent Code (default
1562 --enable-targets Build specific host targets: all or
1563 target1,target2,... Valid targets are: host, x86,
1564 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1565 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1566 and cpp (default=all)
1567 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1569 --enable-bindings Build specific language bindings:
1570 all,auto,none,{binding-name} (default=auto)
1571 --enable-libffi Check for the presence of libffi (default is YES)
1572 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1574 --enable-llvmc-dynamic-plugins
1575 Enable dynamic LLVMC plugins (default is YES)
1576 --enable-ltdl-install install libltdl
1577 --enable-shared[=PKGS] build shared libraries
1579 --enable-static[=PKGS] build static libraries
1581 --enable-fast-install[=PKGS]
1582 optimize for fast installation
1584 --disable-libtool-lock avoid locking (might break parallel builds)
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1591 --with-llvmgcc Specify location of llvm-gcc driver (default
1593 --with-llvmgxx Specify location of llvm-g++ driver (default
1595 --with-extra-options Specify additional options to compile LLVM with
1596 --with-ocaml-libdir Specify install location for ocaml bindings (default
1598 --with-binutils-include Specify path to binutils/include/ containing
1599 plugin-api.h file for gold plugin.
1600 --with-tclinclude directory where tcl headers are
1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1602 --with-pic try to use only PIC/non-PIC objects [default=use
1604 --with-tags[=TAGS] include additional configurations [automatic]
1605 --with-udis86=<path> Use udis86 external x86 disassembler library
1606 --with-oprofile=<prefix>
1607 Tell OProfile >= 0.9.4 how to symbolize JIT output
1609 Some influential environment variables:
1610 CC C compiler command
1611 CFLAGS C compiler flags
1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
1614 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
1617 CXX C++ compiler command
1618 CXXFLAGS C++ compiler flags
1619 CXXCPP C++ preprocessor
1620 F77 Fortran 77 compiler command
1621 FFLAGS Fortran 77 compiler flags
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to <llvmbugs@cs.uiuc.edu>.
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" || continue
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1641 # A ".." for each directory in $ac_dir_suffix.
1642 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1643 case $ac_top_builddir_sub in
1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1654 .) # We are building in place.
1656 ac_top_srcdir=$ac_top_builddir_sub
1657 ac_abs_top_srcdir=$ac_pwd ;;
1658 [\\/]* | ?:[\\/]* ) # Absolute name.
1659 ac_srcdir=$srcdir$ac_dir_suffix;
1660 ac_top_srcdir=$srcdir
1661 ac_abs_top_srcdir=$srcdir ;;
1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664 ac_top_srcdir=$ac_top_build_prefix$srcdir
1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669 cd "$ac_dir" || { ac_status=$?; continue; }
1670 # Check for guested configure.
1671 if test -f "$ac_srcdir/configure.gnu"; then
1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674 elif test -f "$ac_srcdir/configure"; then
1676 $SHELL "$ac_srcdir/configure" --help=recursive
1678 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 cd "$ac_pwd" || { ac_status=$?; break; }
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1687 llvm configure 2.7svn
1688 generated by GNU Autoconf 2.60
1690 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1691 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1695 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1699 cat >config.log <<_ACEOF
1700 This file contains any messages produced by compilers while
1701 running configure, to aid debugging if configure makes a mistake.
1703 It was created by llvm $as_me 2.7svn, which was
1704 generated by GNU Autoconf 2.60. Invocation command line was
1716 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1717 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1718 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1719 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1720 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1722 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1723 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1725 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1726 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1727 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1728 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1729 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1730 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1731 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 test -z "$as_dir" && as_dir=.
1740 echo "PATH: $as_dir"
1756 # Keep a trace of the command line.
1757 # Strip out --no-create and --no-recursion so they do not pile up.
1758 # Strip out --silent because we don't want to record it for future runs.
1759 # Also quote any args containing shell meta-characters.
1760 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_must_keep_next=false
1770 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1772 | -silent | --silent | --silen | --sile | --sil)
1775 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1778 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1780 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1781 if test $ac_must_keep_next = true; then
1782 ac_must_keep_next=false # Got value, back to normal.
1785 *=* | --config-cache | -C | -disable-* | --disable-* \
1786 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1787 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1788 | -with-* | --with-* | -without-* | --without-* | --x)
1789 case "$ac_configure_args0 " in
1790 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1793 -* ) ac_must_keep_next=true ;;
1796 ac_configure_args="$ac_configure_args '$ac_arg'"
1801 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1802 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1804 # When interrupted or exit'd, cleanup temporary files, and complete
1805 # config.log. We remove comments because anyway the quotes in there
1806 # would cause problems or look ugly.
1807 # WARNING: Use '\'' to represent an apostrophe within the trap.
1808 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1809 trap 'exit_status=$?
1810 # Save into config.log some information that might help in debugging.
1815 ## ---------------- ##
1816 ## Cache variables. ##
1817 ## ---------------- ##
1820 # The following way of writing the cache mishandles newlines in values,
1822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1823 eval ac_val=\$$ac_var
1827 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1828 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1831 _ | IFS | as_nl) ;; #(
1832 *) $as_unset $ac_var ;;
1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838 *${as_nl}ac_space=\ *)
1840 "s/'\''/'\''\\\\'\'''\''/g;
1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852 ## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##
1857 for ac_var in $ac_subst_vars
1859 eval ac_val=\$$ac_var
1861 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 echo "$ac_var='\''$ac_val'\''"
1867 if test -n "$ac_subst_files"; then
1869 ## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##
1874 for ac_var in $ac_subst_files
1876 eval ac_val=\$$ac_var
1878 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 echo "$ac_var='\''$ac_val'\''"
1885 if test -s confdefs.h; then
1895 test "$ac_signal" != 0 &&
1896 echo "$as_me: caught signal $ac_signal"
1897 echo "$as_me: exit $exit_status"
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1911 # Predefined preprocessor variables.
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_STRING "$PACKAGE_STRING"
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938 # Let the site file select an alternate cache file if it wants to.
1939 # Prefer explicitly selected file to automatically selected ones.
1940 if test -n "$CONFIG_SITE"; then
1941 set x "$CONFIG_SITE"
1942 elif test "x$prefix" != xNONE; then
1943 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1945 set x "$ac_default_prefix/share/config.site" \
1946 "$ac_default_prefix/etc/config.site"
1951 if test -r "$ac_site_file"; then
1952 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953 echo "$as_me: loading site script $ac_site_file" >&6;}
1954 sed 's/^/| /' "$ac_site_file" >&5
1959 if test -r "$cache_file"; then
1960 # Some versions of bash will fail to source /dev/null (special
1961 # files actually), so we avoid doing that.
1962 if test -f "$cache_file"; then
1963 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964 echo "$as_me: loading cache $cache_file" >&6;}
1966 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1967 *) . "./$cache_file";;
1971 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972 echo "$as_me: creating cache $cache_file" >&6;}
1976 # Check that the precious variables saved in the cache have kept the same
1978 ac_cache_corrupted=false
1979 for ac_var in $ac_precious_vars; do
1980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981 eval ac_new_set=\$ac_env_${ac_var}_set
1982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983 eval ac_new_val=\$ac_env_${ac_var}_value
1984 case $ac_old_set,$ac_new_set in
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1990 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992 ac_cache_corrupted=: ;;
1995 if test "x$ac_old_val" != "x$ac_new_val"; then
1996 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1997 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1998 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1999 echo "$as_me: former value: $ac_old_val" >&2;}
2000 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2001 echo "$as_me: current value: $ac_new_val" >&2;}
2002 ac_cache_corrupted=:
2005 # Pass precious variables to config.status.
2006 if test "$ac_new_set" = set; then
2008 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 *) ac_arg=$ac_var=$ac_new_val ;;
2011 case " $ac_configure_args " in
2012 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2013 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 if $ac_cache_corrupted; then
2018 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2019 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2020 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2021 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2022 { (exit 1); exit 1; }; }
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2066 for ac_dir in autoconf "$srcdir"/autoconf; do
2067 if test -f "$ac_dir/install-sh"; then
2069 ac_install_sh="$ac_aux_dir/install-sh -c"
2071 elif test -f "$ac_dir/install.sh"; then
2073 ac_install_sh="$ac_aux_dir/install.sh -c"
2075 elif test -f "$ac_dir/shtool"; then
2077 ac_install_sh="$ac_aux_dir/shtool install -c"
2081 if test -z "$ac_aux_dir"; then
2082 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2083 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2084 { (exit 1); exit 1; }; }
2087 # These three variables are undocumented and unsupported,
2088 # and are intended to be withdrawn in a future Autoconf release.
2089 # They can cause serious problems if a builder's source tree is in a directory
2090 # whose full name contains unusual characters.
2091 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2092 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2093 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097 if test ${srcdir} != "." ; then
2098 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2099 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2100 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2101 { (exit 1); exit 1; }; }
2105 for i in `ls ${srcdir}/projects`
2107 if test -d ${srcdir}/projects/${i} ; then
2110 sample) subdirs="$subdirs projects/sample"
2112 privbracket) subdirs="$subdirs projects/privbracket"
2114 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2116 # llvm-test is the old name of the test-suite, kept here for backwards
2118 llvm-test) subdirs="$subdirs projects/llvm-test"
2120 test-suite) subdirs="$subdirs projects/test-suite"
2122 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2124 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2126 llvm-java) subdirs="$subdirs projects/llvm-java"
2128 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2130 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2132 poolalloc) subdirs="$subdirs projects/poolalloc"
2134 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2137 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2138 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2145 # Make sure we can run config.sub.
2146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2147 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2148 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2149 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: checking build system type" >&5
2152 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_build+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 ac_build_alias=$build_alias
2157 test "x$ac_build_alias" = x &&
2158 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2159 test "x$ac_build_alias" = x &&
2160 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2161 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2162 { (exit 1); exit 1; }; }
2163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2164 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2165 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2166 { (exit 1); exit 1; }; }
2169 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2170 echo "${ECHO_T}$ac_cv_build" >&6; }
2171 case $ac_cv_build in
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2174 echo "$as_me: error: invalid value of canonical build" >&2;}
2175 { (exit 1); exit 1; }; };;
2178 ac_save_IFS=$IFS; IFS='-'
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2191 { echo "$as_me:$LINENO: checking host system type" >&5
2192 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2193 if test "${ac_cv_host+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test "x$host_alias" = x; then
2197 ac_cv_host=$ac_cv_build
2199 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2200 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2201 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2202 { (exit 1); exit 1; }; }
2206 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2207 echo "${ECHO_T}$ac_cv_host" >&6; }
2210 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2211 echo "$as_me: error: invalid value of canonical host" >&2;}
2212 { (exit 1); exit 1; }; };;
2215 ac_save_IFS=$IFS; IFS='-'
2221 # Remember, the first character of IFS is used to create $*,
2222 # except with old shells:
2225 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2228 { echo "$as_me:$LINENO: checking target system type" >&5
2229 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2230 if test "${ac_cv_target+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test "x$target_alias" = x; then
2234 ac_cv_target=$ac_cv_host
2236 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2237 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2238 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2239 { (exit 1); exit 1; }; }
2243 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2244 echo "${ECHO_T}$ac_cv_target" >&6; }
2245 case $ac_cv_target in
2247 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2248 echo "$as_me: error: invalid value of canonical target" >&2;}
2249 { (exit 1); exit 1; }; };;
2251 target=$ac_cv_target
2252 ac_save_IFS=$IFS; IFS='-'
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2262 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2265 # The aliases save the names the user supplied, while $host etc.
2266 # will get canonicalized.
2267 test -n "$target_alias" &&
2268 test "$program_prefix$program_suffix$program_transform_name" = \
2270 program_prefix=${target_alias}-
2272 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2273 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2274 if test "${llvm_cv_os_type+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
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="AIX"
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="IRIX"
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="Cygwin"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,-all_load"
2295 llvm_cv_no_link_all_option="-Wl,-noall_load"
2296 llvm_cv_os_type="Darwin"
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="FreeBSD"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="OpenBSD"
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="NetBSD"
2312 llvm_cv_platform_type="Unix" ;;
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="DragonFly"
2317 llvm_cv_platform_type="Unix" ;;
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="HP-UX"
2322 llvm_cv_platform_type="Unix" ;;
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="Interix"
2327 llvm_cv_platform_type="Unix" ;;
2329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331 llvm_cv_os_type="Linux"
2332 llvm_cv_platform_type="Unix" ;;
2334 llvm_cv_link_all_option="-Wl,-z,allextract"
2335 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2336 llvm_cv_os_type="SunOS"
2337 llvm_cv_platform_type="Unix" ;;
2339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2341 llvm_cv_os_type="Win32"
2342 llvm_cv_platform_type="Win32" ;;
2344 llvm_cv_link_all_option="-Wl,--whole-archive"
2345 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2346 llvm_cv_os_type="MingW"
2347 llvm_cv_platform_type="Win32" ;;
2349 llvm_cv_link_all_option="-Wl,--whole-archive"
2350 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2351 llvm_cv_os_type="Freestanding"
2352 llvm_cv_platform_type="Unix" ;;
2354 llvm_cv_link_all_option="-Wl,--whole-archive"
2355 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2356 llvm_cv_os_type="Freestanding"
2357 llvm_cv_platform_type="Unix" ;;
2359 llvm_cv_link_all_option=""
2360 llvm_cv_no_link_all_option=""
2361 llvm_cv_os_type="Unknown"
2362 llvm_cv_platform_type="Unknown" ;;
2365 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2366 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2368 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2369 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2370 if test "${llvm_cv_target_os_type+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 llvm_cv_target_os_type="AIX" ;;
2377 llvm_cv_target_os_type="IRIX" ;;
2379 llvm_cv_target_os_type="Cygwin" ;;
2381 llvm_cv_target_os_type="Darwin" ;;
2383 llvm_cv_target_os_type="FreeBSD" ;;
2385 llvm_cv_target_os_type="OpenBSD" ;;
2387 llvm_cv_target_os_type="NetBSD" ;;
2389 llvm_cv_target_os_type="DragonFly" ;;
2391 llvm_cv_target_os_type="HP-UX" ;;
2393 llvm_cv_target_os_type="Interix" ;;
2395 llvm_cv_target_os_type="Linux" ;;
2397 llvm_cv_target_os_type="SunOS" ;;
2399 llvm_cv_target_os_type="Win32" ;;
2401 llvm_cv_target_os_type="MingW" ;;
2403 llvm_cv_target_os_type="Freestanding" ;;
2405 llvm_cv_target_os_type="Unknown" ;;
2408 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2409 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2411 if test "$llvm_cv_os_type" = "Unknown" ; then
2412 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2413 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2414 { (exit 1); exit 1; }; }
2419 HOST_OS=$llvm_cv_os_type
2421 TARGET_OS=$llvm_cv_target_os_type
2424 LINKALL=$llvm_cv_link_all_option
2426 NOLINKALL=$llvm_cv_no_link_all_option
2429 case $llvm_cv_platform_type in
2432 cat >>confdefs.h <<\_ACEOF
2433 #define LLVM_ON_UNIX 1
2443 cat >>confdefs.h <<\_ACEOF
2444 #define LLVM_ON_WIN32 1
2454 { echo "$as_me:$LINENO: checking target architecture" >&5
2455 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2456 if test "${llvm_cv_target_arch+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 i?86-*) llvm_cv_target_arch="x86" ;;
2461 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2462 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2463 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2464 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2465 arm*-*) llvm_cv_target_arch="ARM" ;;
2466 mips-*) llvm_cv_target_arch="Mips" ;;
2467 pic16-*) llvm_cv_target_arch="PIC16" ;;
2468 xcore-*) llvm_cv_target_arch="XCore" ;;
2469 msp430-*) llvm_cv_target_arch="MSP430" ;;
2470 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2471 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2472 *) llvm_cv_target_arch="Unknown" ;;
2475 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2476 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2478 if test "$llvm_cv_target_arch" = "Unknown" ; then
2479 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2480 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2483 # Determine the LLVM native architecture for the target
2484 case "$llvm_cv_target_arch" in
2485 x86) LLVM_NATIVE_ARCH="X86" ;;
2486 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2487 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2490 ARCH=$llvm_cv_target_arch
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test -n "$CC"; then
2528 { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2537 if test -z "$ac_cv_prog_CC"; then
2539 # Extract the first word of "gcc", so it can be a program name with args.
2540 set dummy gcc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$ac_ct_CC"; then
2547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_ac_ct_CC="gcc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567 if test -n "$ac_ct_CC"; then
2568 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2569 echo "${ECHO_T}$ac_ct_CC" >&6; }
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2575 if test "x$ac_ct_CC" = x; then
2578 case $cross_compiling:$ac_tool_warned in
2580 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2581 whose name does not start with the host triplet. If you think this
2582 configuration is useful to you, please write to autoconf@gnu.org." >&5
2583 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet. If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2586 ac_tool_warned=yes ;;
2594 if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}cc; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_CC="${ac_tool_prefix}cc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 if test -n "$CC"; then
2625 { echo "$as_me:$LINENO: result: $CC" >&5
2626 echo "${ECHO_T}$CC" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2635 if test -z "$CC"; then
2636 # Extract the first word of "cc", so it can be a program name with args.
2637 set dummy cc; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2655 ac_prog_rejected=yes
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test $ac_prog_rejected = yes; then
2667 # We found a bogon in the path, so make sure we never use it.
2668 set dummy $ac_cv_prog_CC
2670 if test $# != 0; then
2671 # We chose a different compiler from the bogus one.
2672 # However, it has the same basename, so the bogon will be chosen
2673 # first if we set CC to just the basename; use the full file name.
2675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2681 if test -n "$CC"; then
2682 { echo "$as_me:$LINENO: result: $CC" >&5
2683 echo "${ECHO_T}$CC" >&6; }
2685 { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2691 if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 for ac_prog in cl.exe
2695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 if test -n "$CC"; then
2724 { echo "$as_me:$LINENO: result: $CC" >&5
2725 echo "${ECHO_T}$CC" >&6; }
2727 { echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6; }
2732 test -n "$CC" && break
2735 if test -z "$CC"; then
2737 for ac_prog in cl.exe
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy $ac_prog; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_CC="$ac_prog"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2769 echo "${ECHO_T}$ac_ct_CC" >&6; }
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2776 test -n "$ac_ct_CC" && break
2779 if test "x$ac_ct_CC" = x; then
2782 case $cross_compiling:$ac_tool_warned in
2784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2785 whose name does not start with the host triplet. If you think this
2786 configuration is useful to you, please write to autoconf@gnu.org." >&5
2787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet. If you think this
2789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2790 ac_tool_warned=yes ;;
2799 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: no acceptable C compiler found in \$PATH
2802 See \`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }
2805 # Provide some information about the compiler.
2806 echo "$as_me:$LINENO: checking for C compiler version" >&5
2807 ac_compiler=`set X $ac_compile; echo $2`
2808 { (ac_try="$ac_compiler --version >&5"
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compiler --version >&5") 2>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }
2818 { (ac_try="$ac_compiler -v >&5"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compiler -v >&5") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }
2828 { (ac_try="$ac_compiler -V >&5"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compiler -V >&5") 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2839 cat >conftest.$ac_ext <<_ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2854 ac_clean_files_save=$ac_clean_files
2855 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2856 # Try to create an executable without -o first, disregard a.out.
2857 # It will help us diagnose broken compilers, and finding out an intuition
2859 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2860 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2861 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2863 # List of possible output files, starting from the most likely.
2864 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2865 # only as a last resort. b.out is created by i960 compilers.
2866 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2868 # The IRIX 6 linker writes into existing files which may not be
2869 # executable, retaining their permissions. Remove them first so a
2870 # subsequent execution test works.
2872 for ac_file in $ac_files
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2876 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2881 if { (ac_try="$ac_link_default"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_link_default") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
2891 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2893 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2894 # so that the user can short-circuit this test for compilers unknown to
2896 for ac_file in $ac_files
2898 test -f "$ac_file" || continue
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2903 # We found the default executable, but exeext='' is most
2907 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2911 # We set ac_cv_exeext here because the later test for it is not
2912 # safe: cross compilers may not add the suffix if given an `-o'
2913 # argument, so we may need to know it at that point already.
2914 # Even if this section looks crufty: it has the advantage of
2921 test "$ac_cv_exeext" = no && ac_cv_exeext=
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: C compiler cannot create executables
2930 See \`config.log' for more details." >&2;}
2931 { (exit 77); exit 77; }; }
2934 ac_exeext=$ac_cv_exeext
2935 { echo "$as_me:$LINENO: result: $ac_file" >&5
2936 echo "${ECHO_T}$ac_file" >&6; }
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2942 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943 # If not cross compiling, check that we can run a simple program.
2944 if test "$cross_compiling" != yes; then
2945 if { ac_try='./$ac_file'
2946 { (case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_try") 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 if test "$cross_compiling" = maybe; then
2960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2961 If you meant to cross compile, use \`--host'.
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&2;}
2966 { (exit 1); exit 1; }; }
2970 { echo "$as_me:$LINENO: result: yes" >&5
2971 echo "${ECHO_T}yes" >&6; }
2973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2974 ac_clean_files=$ac_clean_files_save
2975 # Check that the compiler produces executables we can run. If not, either
2976 # the compiler is broken, or we cross compile.
2977 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2979 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2980 echo "${ECHO_T}$cross_compiling" >&6; }
2982 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2984 if { (ac_try="$ac_link"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_link") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2995 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2996 # work properly (i.e., refer to `conftest.exe'), while it won't with
2998 for ac_file in conftest.exe conftest conftest.*; do
2999 test -f "$ac_file" || continue
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3015 rm -f conftest$ac_cv_exeext
3016 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3017 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3019 rm -f conftest.$ac_ext
3020 EXEEXT=$ac_cv_exeext
3022 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3023 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3024 if test "${ac_cv_objext+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3042 rm -f conftest.o conftest.obj
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; then
3053 for ac_file in conftest.o conftest.obj conftest.*; do
3054 test -f "$ac_file" || continue;
3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3068 See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3074 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3075 echo "${ECHO_T}$ac_cv_objext" >&6; }
3076 OBJEXT=$ac_cv_objext
3078 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3079 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3080 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3147 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3148 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3149 GCC=`test $ac_compiler_gnu = yes && echo yes`
3150 ac_test_CFLAGS=${CFLAGS+set}
3151 ac_save_CFLAGS=$CFLAGS
3152 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_g+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 ac_save_c_werror_flag=$ac_c_werror_flag
3158 ac_c_werror_flag=yes
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191 { (case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; } &&
3255 { ac_try='test -s conftest.$ac_objext'
3256 { (case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_try") 2>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3287 rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302 { (case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_try") 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_c_werror_flag=$ac_save_c_werror_flag
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3340 if test "$ac_test_CFLAGS" = set; then
3341 CFLAGS=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343 if test "$GCC" = yes; then
3349 if test "$GCC" = yes; then
3355 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3356 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_cc_c89+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 ac_cv_prog_cc_c89=no
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3386 s = g (p, va_arg (v,int));
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC="$ac_save_CC $ac_arg"
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3438 { (case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_try") 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_cv_prog_cc_c89=$ac_arg
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3465 rm -f core conftest.err conftest.$ac_objext
3466 test "x$ac_cv_prog_cc_c89" != "xno" && break
3468 rm -f conftest.$ac_ext
3473 case "x$ac_cv_prog_cc_c89" in
3475 { echo "$as_me:$LINENO: result: none needed" >&5
3476 echo "${ECHO_T}none needed" >&6; } ;;
3478 { echo "$as_me:$LINENO: result: unsupported" >&5
3479 echo "${ECHO_T}unsupported" >&6; } ;;
3481 CC="$CC $ac_cv_prog_cc_c89"
3482 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3483 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3500 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3501 # On Suns, sometimes $CPP names a directory.
3502 if test -n "$CPP" && test -d "$CPP"; then
3505 if test -z "$CPP"; then
3506 if test "${ac_cv_prog_CPP+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 # Double quotes because CPP needs to be expanded
3510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3513 for ac_c_preproc_warn_flag in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3528 # include <limits.h>
3530 # include <assert.h>
3534 if { (ac_try="$ac_cpp conftest.$ac_ext"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556 if test -z "$ac_cpp_err"; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 # Broken: fails on valid input.
3566 rm -f conftest.err conftest.$ac_ext
3568 # OK, works on sane cases. Now check whether nonexistent headers
3569 # can be detected and how.
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <ac_nonexistent.h>
3578 if { (ac_try="$ac_cpp conftest.$ac_ext"
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600 if test -z "$ac_cpp_err"; then
3601 # Broken: success on invalid input.
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Passes both tests.
3612 rm -f conftest.err conftest.$ac_ext
3615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616 rm -f conftest.err conftest.$ac_ext
3617 if $ac_preproc_ok; then
3629 { echo "$as_me:$LINENO: result: $CPP" >&5
3630 echo "${ECHO_T}$CPP" >&6; }
3632 for ac_c_preproc_warn_flag in '' yes
3634 # Use a header file that comes with gcc, so configuring glibc
3635 # with a fresh cross-compiler works.
3636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3637 # <limits.h> exists even on freestanding compilers.
3638 # On the NeXT, cc -E runs the code through the compiler's parser,
3639 # not just through cpp. "Syntax error" is here to catch this case.
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3647 # include <limits.h>
3649 # include <assert.h>
3653 if { (ac_try="$ac_cpp conftest.$ac_ext"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3661 grep -v '^ *+' conftest.er1 >conftest.err
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } >/dev/null; then
3666 if test -s conftest.err; then
3667 ac_cpp_err=$ac_c_preproc_warn_flag
3668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3675 if test -z "$ac_cpp_err"; then
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 # Broken: fails on valid input.
3685 rm -f conftest.err conftest.$ac_ext
3687 # OK, works on sane cases. Now check whether nonexistent headers
3688 # can be detected and how.
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <ac_nonexistent.h>
3697 if { (ac_try="$ac_cpp conftest.$ac_ext"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev/null; then
3710 if test -s conftest.err; then
3711 ac_cpp_err=$ac_c_preproc_warn_flag
3712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3719 if test -z "$ac_cpp_err"; then
3720 # Broken: success on invalid input.
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 # Passes both tests.
3731 rm -f conftest.err conftest.$ac_ext
3734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3735 rm -f conftest.err conftest.$ac_ext
3736 if $ac_preproc_ok; then
3739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3742 See \`config.log' for more details." >&2;}
3743 { (exit 1); exit 1; }; }
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3754 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3755 if test "${ac_cv_path_GREP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 # Extract the first word of "grep ggrep" to use in msg output
3759 if test -z "$GREP"; then
3760 set dummy grep ggrep; ac_prog_name=$2
3761 if test "${ac_cv_path_GREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 ac_path_GREP_found=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3770 test -z "$as_dir" && as_dir=.
3771 for ac_prog in grep ggrep; do
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3774 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3775 # Check for GNU ac_path_GREP and select it if it is found.
3776 # Check for GNU $ac_path_GREP
3777 case `"$ac_path_GREP" --version 2>&1` in
3779 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3782 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3785 cat "conftest.in" "conftest.in" >"conftest.tmp"
3786 mv "conftest.tmp" "conftest.in"
3787 cp "conftest.in" "conftest.nl"
3788 echo 'GREP' >> "conftest.nl"
3789 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791 ac_count=`expr $ac_count + 1`
3792 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3793 # Best one so far, save it but keep looking for a better one
3794 ac_cv_path_GREP="$ac_path_GREP"
3795 ac_path_GREP_max=$ac_count
3797 # 10*(2^10) chars as input seems more than enough
3798 test $ac_count -gt 10 && break
3800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 $ac_path_GREP_found && break 3
3814 GREP="$ac_cv_path_GREP"
3815 if test -z "$GREP"; then
3816 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818 { (exit 1); exit 1; }; }
3822 ac_cv_path_GREP=$GREP
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3829 GREP="$ac_cv_path_GREP"
3832 { echo "$as_me:$LINENO: checking for egrep" >&5
3833 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3834 if test "${ac_cv_path_EGREP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3838 then ac_cv_path_EGREP="$GREP -E"
3840 # Extract the first word of "egrep" to use in msg output
3841 if test -z "$EGREP"; then
3842 set dummy egrep; ac_prog_name=$2
3843 if test "${ac_cv_path_EGREP+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 ac_path_EGREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in egrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3857 # Check for GNU ac_path_EGREP and select it if it is found.
3858 # Check for GNU $ac_path_EGREP
3859 case `"$ac_path_EGREP" --version 2>&1` in
3861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3864 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 echo 'EGREP' >> "conftest.nl"
3871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 ac_count=`expr $ac_count + 1`
3874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_EGREP="$ac_path_EGREP"
3877 ac_path_EGREP_max=$ac_count
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 $ac_path_EGREP_found && break 3
3896 EGREP="$ac_cv_path_EGREP"
3897 if test -z "$EGREP"; then
3898 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3899 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3900 { (exit 1); exit 1; }; }
3904 ac_cv_path_EGREP=$EGREP
3910 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3911 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3912 EGREP="$ac_cv_path_EGREP"
3915 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3916 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3917 if test "${ac_cv_header_stdc+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_compile") 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
3953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3954 { (case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_try") 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest.$ac_objext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 ac_cv_header_stdc=yes
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 ac_cv_header_stdc=no
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 if test $ac_cv_header_stdc = yes; then
3984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3995 $EGREP "memchr" >/dev/null 2>&1; then
3998 ac_cv_header_stdc=no
4004 if test $ac_cv_header_stdc = yes; then
4005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016 $EGREP "free" >/dev/null 2>&1; then
4019 ac_cv_header_stdc=no
4025 if test $ac_cv_header_stdc = yes; then
4026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4027 if test "$cross_compiling" = yes; then
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4038 #if ((' ' & 0x0FF) == 0x020)
4039 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4040 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4042 # define ISLOWER(c) \
4043 (('a' <= (c) && (c) <= 'i') \
4044 || ('j' <= (c) && (c) <= 'r') \
4045 || ('s' <= (c) && (c) <= 'z'))
4046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4054 for (i = 0; i < 256; i++)
4055 if (XOR (islower (i), ISLOWER (i))
4056 || toupper (i) != TOUPPER (i))
4061 rm -f conftest$ac_exeext
4062 if { (ac_try="$ac_link"
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_link") 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4072 { (case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_try") 2>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4083 echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_header_stdc=no
4090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4096 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4097 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4098 if test $ac_cv_header_stdc = yes; then
4100 cat >>confdefs.h <<\_ACEOF
4101 #define STDC_HEADERS 1
4106 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4117 inttypes.h stdint.h unistd.h
4119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4133 #include <$ac_header>
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 eval "$as_ac_Header=yes"
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 eval "$as_ac_Header=no"
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_res=`eval echo '${'$as_ac_Header'}'`
4180 { echo "$as_me:$LINENO: result: $ac_res" >&5
4181 echo "${ECHO_T}$ac_res" >&6; }
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4192 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4194 if test "${ac_cv_c_bigendian+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 # See if sys/param.h defines the BYTE_ORDER macro.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <sys/types.h>
4205 #include <sys/param.h>
4210 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_try") 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_try") 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 # It does; now see whether it defined to BIG_ENDIAN or not.
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <sys/types.h>
4260 #include <sys/param.h>
4265 #if BYTE_ORDER != BIG_ENDIAN
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_c_bigendian=yes
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_c_bigendian=no
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4320 # It does not; compile a test program.
4321 if test "$cross_compiling" = yes; then
4322 # try to guess the endianness by grepping values into an object file
4323 ac_cv_c_bigendian=unknown
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4331 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4332 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4333 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4334 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4335 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4339 _ascii (); _ebcdic ();
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4379 ac_cv_c_bigendian=yes
4381 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4382 if test "$ac_cv_c_bigendian" = unknown; then
4383 ac_cv_c_bigendian=no
4385 # finding both strings is unlikely to happen, but who knows?
4386 ac_cv_c_bigendian=unknown
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 $ac_includes_default
4409 /* Are we little or big endian? From Harbison&Steele. */
4413 char c[sizeof (long int)];
4416 return u.c[sizeof (long int) - 1] == 1;
4422 rm -f conftest$ac_exeext
4423 if { (ac_try="$ac_link"
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_link") 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4433 { (case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_try") 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_c_bigendian=no
4444 echo "$as_me: program exited with status $ac_status" >&5
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4449 ac_cv_c_bigendian=yes
4451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4460 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4461 case $ac_cv_c_bigendian in
4469 { { echo "$as_me:$LINENO: error: unknown endianness
4470 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4471 echo "$as_me: error: unknown endianness
4472 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4473 { (exit 1); exit 1; }; } ;;
4477 if test "$cross_compiling" = yes; then
4478 LLVM_CROSS_COMPILING=1
4481 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4482 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4483 if test "${ac_cv_build_exeext+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4487 ac_cv_build_exeext=.exe
4489 ac_build_prefix=${build_alias}-
4491 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4492 set dummy ${ac_build_prefix}gcc; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$BUILD_CC"; then
4499 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 BUILD_CC=$ac_cv_prog_BUILD_CC
4519 if test -n "$BUILD_CC"; then
4520 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4521 echo "${ECHO_T}$BUILD_CC" >&6; }
4523 { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4528 if test -z "$BUILD_CC"; then
4529 # Extract the first word of "gcc", so it can be a program name with args.
4530 set dummy gcc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$BUILD_CC"; then
4537 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_BUILD_CC="gcc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 BUILD_CC=$ac_cv_prog_BUILD_CC
4557 if test -n "$BUILD_CC"; then
4558 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4559 echo "${ECHO_T}$BUILD_CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4566 if test -z "$BUILD_CC"; then
4567 # Extract the first word of "cc", so it can be a program name with args.
4568 set dummy cc; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 if test -n "$BUILD_CC"; then
4575 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4586 ac_prog_rejected=yes
4589 ac_cv_prog_BUILD_CC="cc"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_BUILD_CC
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set BUILD_CC to just the basename; use the full file name.
4606 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4611 BUILD_CC=$ac_cv_prog_BUILD_CC
4612 if test -n "$BUILD_CC"; then
4613 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4614 echo "${ECHO_T}$BUILD_CC" >&6; }
4616 { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4623 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4624 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4625 { (exit 1); exit 1; }; }
4626 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4628 echo 'int main () { return 0; }' > conftest.$ac_ext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4631 (eval $ac_build_link) 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; then
4635 for file in conftest.*; do
4637 *.c | *.o | *.obj | *.dSYM) ;;
4638 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4642 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4643 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4644 { (exit 1); exit 1; }; }
4647 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4652 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4653 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4654 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4655 ac_build_exeext=$BUILD_EXEEXT
4657 ac_build_prefix=${build_alias}-
4658 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4659 set dummy ${ac_build_prefix}g++; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$BUILD_CXX"; then
4666 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4686 if test -n "$BUILD_CXX"; then
4687 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4688 echo "${ECHO_T}$BUILD_CXX" >&6; }
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4695 if test -z "$BUILD_CXX"; then
4696 # Extract the first word of "g++", so it can be a program name with args.
4697 set dummy g++; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 if test -n "$BUILD_CXX"; then
4704 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_BUILD_CXX="g++"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4724 if test -n "$BUILD_CXX"; then
4725 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4726 echo "${ECHO_T}$BUILD_CXX" >&6; }
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4733 if test -z "$BUILD_CXX"; then
4734 # Extract the first word of "c++", so it can be a program name with args.
4735 set dummy c++; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$BUILD_CXX"; then
4742 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4753 ac_prog_rejected=yes
4756 ac_cv_prog_BUILD_CXX="c++"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 if test $ac_prog_rejected = yes; then
4765 # We found a bogon in the path, so make sure we never use it.
4766 set dummy $ac_cv_prog_BUILD_CXX
4768 if test $# != 0; then
4769 # We chose a different compiler from the bogus one.
4770 # However, it has the same basename, so the bogon will be chosen
4771 # first if we set BUILD_CXX to just the basename; use the full file name.
4773 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4778 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4779 if test -n "$BUILD_CXX"; then
4780 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4781 echo "${ECHO_T}$BUILD_CXX" >&6; }
4783 { echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6; }
4791 LLVM_CROSS_COMPILING=0
4795 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4806 # Check whether --enable-optimized was given.
4807 if test "${enable_optimized+set}" = set; then
4808 enableval=$enable_optimized;
4813 if test ${enableval} = "no" ; then
4817 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4821 # Check whether --enable-profiling was given.
4822 if test "${enable_profiling+set}" = set; then
4823 enableval=$enable_profiling;
4828 if test ${enableval} = "no" ; then
4832 ENABLE_PROFILING=ENABLE_PROFILING=1
4836 # Check whether --enable-assertions was given.
4837 if test "${enable_assertions+set}" = set; then
4838 enableval=$enable_assertions;
4843 if test ${enableval} = "yes" ; then
4847 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4851 # Check whether --enable-expensive-checks was given.
4852 if test "${enable_expensive_checks+set}" = set; then
4853 enableval=$enable_expensive_checks;
4858 if test ${enableval} = "yes" ; then
4859 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4861 EXPENSIVE_CHECKS=yes
4864 ENABLE_EXPENSIVE_CHECKS=
4870 # Check whether --enable-debug-runtime was given.
4871 if test "${enable_debug_runtime+set}" = set; then
4872 enableval=$enable_debug_runtime;
4877 if test ${enableval} = "no" ; then
4881 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4885 # Check whether --enable-jit was given.
4886 if test "${enable_jit+set}" = set; then
4887 enableval=$enable_jit;
4892 if test ${enableval} = "no"
4897 case "$llvm_cv_target_arch" in
4898 x86) TARGET_HAS_JIT=1
4900 Sparc) TARGET_HAS_JIT=0
4902 PowerPC) TARGET_HAS_JIT=1
4904 x86_64) TARGET_HAS_JIT=1
4906 Alpha) TARGET_HAS_JIT=1
4908 ARM) TARGET_HAS_JIT=1
4910 Mips) TARGET_HAS_JIT=0
4912 PIC16) TARGET_HAS_JIT=0
4914 XCore) TARGET_HAS_JIT=0
4916 MSP430) TARGET_HAS_JIT=0
4918 SystemZ) TARGET_HAS_JIT=0
4920 Blackfin) TARGET_HAS_JIT=0
4927 # Check whether --enable-doxygen was given.
4928 if test "${enable_doxygen+set}" = set; then
4929 enableval=$enable_doxygen;
4934 case "$enableval" in
4935 yes) ENABLE_DOXYGEN=1
4937 no) ENABLE_DOXYGEN=0
4939 default) ENABLE_DOXYGEN=0
4941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4946 # Check whether --enable-threads was given.
4947 if test "${enable_threads+set}" = set; then
4948 enableval=$enable_threads;
4953 case "$enableval" in
4954 yes) ENABLE_THREADS=1
4956 no) ENABLE_THREADS=0
4958 default) ENABLE_THREADS=1
4960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4965 cat >>confdefs.h <<_ACEOF
4966 #define ENABLE_THREADS $ENABLE_THREADS
4970 # Check whether --enable-pic was given.
4971 if test "${enable_pic+set}" = set; then
4972 enableval=$enable_pic;
4977 case "$enableval" in
4982 default) ENABLE_PIC=1
4984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4985 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4986 { (exit 1); exit 1; }; } ;;
4989 cat >>confdefs.h <<_ACEOF
4990 #define ENABLE_PIC $ENABLE_PIC
4995 # Check whether --enable-targets was given.
4996 if test "${enable_targets+set}" = set; then
4997 enableval=$enable_targets;
5002 if test "$enableval" = host-only ; then
5005 case "$enableval" in
5006 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5007 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5009 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5010 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5011 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5012 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5013 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5014 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5015 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5016 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5017 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5018 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5019 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5020 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5021 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5022 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5023 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5024 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5025 host) case "$llvm_cv_target_arch" in
5026 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5027 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5029 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5030 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5031 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5032 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5033 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5034 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5035 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5036 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5037 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5038 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5039 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5040 echo "$as_me: error: Can not set target to build" >&2;}
5041 { (exit 1); exit 1; }; } ;;
5043 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5044 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5050 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5053 # Determine whether we are building LLVM support for the native architecture.
5054 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5055 for a_target in $TARGETS_TO_BUILD; do
5056 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5057 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5059 cat >>confdefs.h <<_ACEOF
5060 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5066 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5067 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5068 LLVM_ENUM_TARGETS=""
5069 LLVM_ENUM_ASM_PRINTERS=""
5070 LLVM_ENUM_ASM_PARSERS=""
5071 for target_to_build in $TARGETS_TO_BUILD; do
5072 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5073 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5074 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5076 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5077 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5084 # Check whether --enable-cbe-printf-a was given.
5085 if test "${enable_cbe_printf_a+set}" = set; then
5086 enableval=$enable_cbe_printf_a;
5091 case "$enableval" in
5092 yes) ENABLE_CBE_PRINTF_A=1
5094 no) ENABLE_CBE_PRINTF_A=0
5096 default) ENABLE_CBE_PRINTF_A=1
5098 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5099 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5103 cat >>confdefs.h <<_ACEOF
5104 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5109 # Check whether --with-llvmgccdir was given.
5110 if test "${with_llvmgccdir+set}" = set; then
5111 withval=$with_llvmgccdir;
5117 default) WITH_LLVMGCCDIR=default ;;
5118 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5119 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5120 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5121 { (exit 1); exit 1; }; } ;;
5125 # Check whether --with-llvmgcc was given.
5126 if test "${with_llvmgcc+set}" = set; then
5127 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5133 # Check whether --with-llvmgxx was given.
5134 if test "${with_llvmgxx+set}" = set; then
5135 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5140 if test -n "$LLVMGCC"; then
5141 LLVMGCCCOMMAND="$LLVMGCC"
5144 if test -n "$LLVMGXX"; then
5145 LLVMGXXCOMMAND="$LLVMGXX"
5148 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5149 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5150 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5151 { (exit 1); exit 1; }; };
5154 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5155 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5156 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5157 { (exit 1); exit 1; }; };
5161 # Check whether --with-extra-options was given.
5162 if test "${with_extra_options+set}" = set; then
5163 withval=$with_extra_options;
5169 default) EXTRA_OPTIONS= ;;
5170 *) EXTRA_OPTIONS=$withval ;;
5172 EXTRA_OPTIONS=$EXTRA_OPTIONS
5175 # Check whether --enable-bindings was given.
5176 if test "${enable_bindings+set}" = set; then
5177 enableval=$enable_bindings;
5182 BINDINGS_TO_BUILD=""
5183 case "$enableval" in
5184 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5185 all ) BINDINGS_TO_BUILD="ocaml" ;;
5186 none | no) BINDINGS_TO_BUILD="" ;;
5187 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5188 case "$a_binding" in
5189 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5190 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5191 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5199 # Check whether --with-ocaml-libdir was given.
5200 if test "${with_ocaml_libdir+set}" = set; then
5201 withval=$with_ocaml_libdir;
5207 auto) with_ocaml_libdir="$withval" ;;
5208 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5210 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5215 # Check whether --with-binutils-include was given.
5216 if test "${with_binutils_include+set}" = set; then
5217 withval=$with_binutils_include;
5223 default) WITH_BINUTILS_INCDIR=default ;;
5224 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5225 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5226 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5229 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5230 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5232 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5233 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5234 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5235 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5236 { (exit 1); exit 1; }; };
5240 # Check whether --enable-libffi was given.
5241 if test "${enable_libffi+set}" = set; then
5242 enableval=$enable_libffi;
5247 case "$enableval" in
5248 yes) llvm_cv_enable_libffi="yes" ;;
5249 no) llvm_cv_enable_libffi="no" ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 if test "$llvm_cv_os_type" = "Win32" ; then
5261 # Check whether --enable-llvmc-dynamic was given.
5262 if test "${enable_llvmc_dynamic+set}" = set; then
5263 enableval=$enable_llvmc_dynamic;
5265 enableval=$llvmc_dynamic
5268 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5269 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5272 ENABLE_LLVMC_DYNAMIC=
5276 # Check whether --enable-llvmc-dynamic-plugins was given.
5277 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5278 enableval=$enable_llvmc_dynamic_plugins;
5283 if test ${enableval} = "yes" ; then
5284 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5287 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5297 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5298 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5299 # On Suns, sometimes $CPP names a directory.
5300 if test -n "$CPP" && test -d "$CPP"; then
5303 if test -z "$CPP"; then
5304 if test "${ac_cv_prog_CPP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 # Double quotes because CPP needs to be expanded
5308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5311 for ac_c_preproc_warn_flag in '' yes
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5326 # include <limits.h>
5328 # include <assert.h>
5332 if { (ac_try="$ac_cpp conftest.$ac_ext"
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5354 if test -z "$ac_cpp_err"; then
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 # Broken: fails on valid input.
5364 rm -f conftest.err conftest.$ac_ext
5366 # OK, works on sane cases. Now check whether nonexistent headers
5367 # can be detected and how.
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <ac_nonexistent.h>
5376 if { (ac_try="$ac_cpp conftest.$ac_ext"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5398 if test -z "$ac_cpp_err"; then
5399 # Broken: success on invalid input.
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Passes both tests.
5410 rm -f conftest.err conftest.$ac_ext
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5427 { echo "$as_me:$LINENO: result: $CPP" >&5
5428 echo "${ECHO_T}$CPP" >&6; }
5430 for ac_c_preproc_warn_flag in '' yes
5432 # Use a header file that comes with gcc, so configuring glibc
5433 # with a fresh cross-compiler works.
5434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5435 # <limits.h> exists even on freestanding compilers.
5436 # On the NeXT, cc -E runs the code through the compiler's parser,
5437 # not just through cpp. "Syntax error" is here to catch this case.
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5445 # include <limits.h>
5447 # include <assert.h>
5451 if { (ac_try="$ac_cpp conftest.$ac_ext"
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } >/dev/null; then
5464 if test -s conftest.err; then
5465 ac_cpp_err=$ac_c_preproc_warn_flag
5466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5473 if test -z "$ac_cpp_err"; then
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 # Broken: fails on valid input.
5483 rm -f conftest.err conftest.$ac_ext
5485 # OK, works on sane cases. Now check whether nonexistent headers
5486 # can be detected and how.
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #include <ac_nonexistent.h>
5495 if { (ac_try="$ac_cpp conftest.$ac_ext"
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5517 if test -z "$ac_cpp_err"; then
5518 # Broken: success on invalid input.
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 # Passes both tests.
5529 rm -f conftest.err conftest.$ac_ext
5532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5533 rm -f conftest.err conftest.$ac_ext
5534 if $ac_preproc_ok; then
5537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5538 See \`config.log' for more details." >&5
5539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5540 See \`config.log' for more details." >&2;}
5541 { (exit 1); exit 1; }; }
5545 ac_cpp='$CPP $CPPFLAGS'
5546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5562 if test "${ac_cv_prog_CC+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 if test -n "$CC"; then
5566 ac_cv_prog_CC="$CC" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 if test -n "$CC"; then
5587 { echo "$as_me:$LINENO: result: $CC" >&5
5588 echo "${ECHO_T}$CC" >&6; }
5590 { echo "$as_me:$LINENO: result: no" >&5
5591 echo "${ECHO_T}no" >&6; }
5595 test -n "$CC" && break
5598 if test -z "$CC"; then
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy $ac_prog; ac_word=$2
5604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 if test -n "$ac_ct_CC"; then
5610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_CC="$ac_prog"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5630 if test -n "$ac_ct_CC"; then
5631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5632 echo "${ECHO_T}$ac_ct_CC" >&6; }
5634 { echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6; }
5639 test -n "$ac_ct_CC" && break
5642 if test "x$ac_ct_CC" = x; then
5645 case $cross_compiling:$ac_tool_warned in
5647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5648 whose name does not start with the host triplet. If you think this
5649 configuration is useful to you, please write to autoconf@gnu.org." >&5
5650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5651 whose name does not start with the host triplet. If you think this
5652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5653 ac_tool_warned=yes ;;
5660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5661 See \`config.log' for more details." >&5
5662 echo "$as_me: error: no acceptable C compiler found in \$PATH
5663 See \`config.log' for more details." >&2;}
5664 { (exit 1); exit 1; }; }
5666 # Provide some information about the compiler.
5667 echo "$as_me:$LINENO: checking for C compiler version" >&5
5668 ac_compiler=`set X $ac_compile; echo $2`
5669 { (ac_try="$ac_compiler --version >&5"
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compiler --version >&5") 2>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }
5679 { (ac_try="$ac_compiler -v >&5"
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compiler -v >&5") 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }
5689 { (ac_try="$ac_compiler -V >&5"
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compiler -V >&5") 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }
5700 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5701 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5702 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5738 { (case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_try") 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest.$ac_objext'
5748 { (case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_try") 2>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5769 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5770 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5771 GCC=`test $ac_compiler_gnu = yes && echo yes`
5772 ac_test_CFLAGS=${CFLAGS+set}
5773 ac_save_CFLAGS=$CFLAGS
5774 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5775 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5776 if test "${ac_cv_prog_cc_g+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 ac_save_c_werror_flag=$ac_c_werror_flag
5780 ac_c_werror_flag=yes
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5813 { (case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_try") 2>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_try") 2>&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_c_werror_flag=$ac_save_c_werror_flag
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5909 rm -f conftest.$ac_objext
5910 if { (ac_try="$ac_compile"
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_try") 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ac_c_werror_flag=$ac_save_c_werror_flag
5960 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5962 if test "$ac_test_CFLAGS" = set; then
5963 CFLAGS=$ac_save_CFLAGS
5964 elif test $ac_cv_prog_cc_g = yes; then
5965 if test "$GCC" = yes; then
5971 if test "$GCC" = yes; then
5977 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5978 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_cc_c89+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_cv_prog_cc_c89=no
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5992 #include <sys/types.h>
5993 #include <sys/stat.h>
5994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5995 struct buf { int x; };
5996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5997 static char *e (p, i)
6003 static char *f (char * (*g) (char **, int), char **p, ...)
6008 s = g (p, va_arg (v,int));
6013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6014 function prototypes and stuff, but not '\xHH' hex character constants.
6015 These don't provoke an error unfortunately, instead are silently treated
6016 as 'x'. The following induces an error, until -std is added to get
6017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6018 array size at least. It's necessary to write '\x00'==0 to get something
6019 that's true only with -std. */
6020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6023 inside strings and character constants. */
6025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6027 int test (int i, double x);
6028 struct s1 {int (*f) (int a);};
6029 struct s2 {int (*f) (double a);};
6030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6044 CC="$ac_save_CC $ac_arg"
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_prog_cc_c89=$ac_arg
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6087 rm -f core conftest.err conftest.$ac_objext
6088 test "x$ac_cv_prog_cc_c89" != "xno" && break
6090 rm -f conftest.$ac_ext
6095 case "x$ac_cv_prog_cc_c89" in
6097 { echo "$as_me:$LINENO: result: none needed" >&5
6098 echo "${ECHO_T}none needed" >&6; } ;;
6100 { echo "$as_me:$LINENO: result: unsupported" >&5
6101 echo "${ECHO_T}unsupported" >&6; } ;;
6103 CC="$CC $ac_cv_prog_cc_c89"
6104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6105 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6116 ac_cpp='$CXXCPP $CPPFLAGS'
6117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6120 if test -z "$CXX"; then
6121 if test -n "$CCC"; then
6124 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_CXX+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 if test -n "$CXX"; then
6135 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 if test -n "$CXX"; then
6156 { echo "$as_me:$LINENO: result: $CXX" >&5
6157 echo "${ECHO_T}$CXX" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6164 test -n "$CXX" && break
6167 if test -z "$CXX"; then
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 if test -n "$ac_ct_CXX"; then
6179 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_ac_ct_CXX="$ac_prog"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6199 if test -n "$ac_ct_CXX"; then
6200 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6201 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6208 test -n "$ac_ct_CXX" && break
6211 if test "x$ac_ct_CXX" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet. If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet. If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6230 # Provide some information about the compiler.
6231 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6232 ac_compiler=`set X $ac_compile; echo $2`
6233 { (ac_try="$ac_compiler --version >&5"
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compiler --version >&5") 2>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }
6243 { (ac_try="$ac_compiler -v >&5"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compiler -v >&5") 2>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }
6253 { (ac_try="$ac_compiler -V >&5"
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compiler -V >&5") 2>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }
6264 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6265 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6266 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6287 rm -f conftest.$ac_objext
6288 if { (ac_try="$ac_compile"
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compile") 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6333 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6334 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6335 GXX=`test $ac_compiler_gnu = yes && echo yes`
6336 ac_test_CXXFLAGS=${CXXFLAGS+set}
6337 ac_save_CXXFLAGS=$CXXFLAGS
6338 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6339 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6340 if test "${ac_cv_prog_cxx_g+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6344 ac_cxx_werror_flag=yes
6347 cat >conftest.$ac_ext <<_ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6362 rm -f conftest.$ac_objext
6363 if { (ac_try="$ac_compile"
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_compile") 2>conftest.er1
6371 grep -v '^ *+' conftest.er1 >conftest.err
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6377 { (case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_try") 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_try") 2>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_cv_prog_cxx_g=yes
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6402 cat >conftest.$ac_ext <<_ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6432 { (case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_try") 2>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_compile") 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6488 { (case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_try") 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest.$ac_objext'
6498 { (case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_try") 2>&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507 ac_cv_prog_cxx_g=yes
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6524 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6525 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6526 if test "$ac_test_CXXFLAGS" = set; then
6527 CXXFLAGS=$ac_save_CXXFLAGS
6528 elif test $ac_cv_prog_cxx_g = yes; then
6529 if test "$GXX" = yes; then
6535 if test "$GXX" = yes; then
6542 ac_cpp='$CPP $CPPFLAGS'
6543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6548 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6549 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6550 if test "${lt_cv_path_NM+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 if test -n "$NM"; then
6554 # Let the user override the test.
6557 lt_nm_to_check="${ac_tool_prefix}nm"
6558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6559 lt_nm_to_check="$lt_nm_to_check nm"
6561 for lt_tmp_nm in $lt_nm_to_check; do
6562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6565 test -z "$ac_dir" && ac_dir=.
6566 tmp_nm="$ac_dir/$lt_tmp_nm"
6567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6568 # Check to see if the nm accepts a BSD-compat flag.
6569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6570 # nm: unknown option "B" ignored
6571 # Tru64's nm complains that /dev/null is an invalid object file
6572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6573 */dev/null* | *'Invalid file or object type'*)
6574 lt_cv_path_NM="$tmp_nm -B"
6578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6580 lt_cv_path_NM="$tmp_nm -p"
6584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6585 continue # so that we can try to find one that supports BSD flags
6594 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6597 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6598 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6603 { echo "$as_me:$LINENO: checking for GNU make" >&5
6604 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6605 if test "${llvm_cv_gnu_make_command+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 llvm_cv_gnu_make_command=''
6609 for a in "$MAKE" make gmake gnumake ; do
6610 if test -z "$a" ; then continue ; fi ;
6611 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6613 llvm_cv_gnu_make_command=$a ;
6618 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6619 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6620 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6624 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6625 echo "${ECHO_T}\"Not found\"" >&6; };
6629 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6630 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6632 if test "$LN_S" = "ln -s"; then
6633 { echo "$as_me:$LINENO: result: yes" >&5
6634 echo "${ECHO_T}yes" >&6; }
6636 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6637 echo "${ECHO_T}no, using $LN_S" >&6; }
6640 # Extract the first word of "cmp", so it can be a program name with args.
6641 set dummy cmp; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_path_CMP+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6672 if test -n "$CMP"; then
6673 { echo "$as_me:$LINENO: result: $CMP" >&5
6674 echo "${ECHO_T}$CMP" >&6; }
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6681 # Extract the first word of "cp", so it can be a program name with args.
6682 set dummy cp; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_path_CP+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6713 if test -n "$CP"; then
6714 { echo "$as_me:$LINENO: result: $CP" >&5
6715 echo "${ECHO_T}$CP" >&6; }
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6722 # Extract the first word of "date", so it can be a program name with args.
6723 set dummy date; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_path_DATE+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6753 DATE=$ac_cv_path_DATE
6754 if test -n "$DATE"; then
6755 { echo "$as_me:$LINENO: result: $DATE" >&5
6756 echo "${ECHO_T}$DATE" >&6; }
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6763 # Extract the first word of "find", so it can be a program name with args.
6764 set dummy find; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_path_FIND+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6794 FIND=$ac_cv_path_FIND
6795 if test -n "$FIND"; then
6796 { echo "$as_me:$LINENO: result: $FIND" >&5
6797 echo "${ECHO_T}$FIND" >&6; }
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6804 # Extract the first word of "grep", so it can be a program name with args.
6805 set dummy grep; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_GREP+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6835 GREP=$ac_cv_path_GREP
6836 if test -n "$GREP"; then
6837 { echo "$as_me:$LINENO: result: $GREP" >&5
6838 echo "${ECHO_T}$GREP" >&6; }
6840 { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6845 # Extract the first word of "mkdir", so it can be a program name with args.
6846 set dummy mkdir; ac_word=$2
6847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849 if test "${ac_cv_path_MKDIR+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6876 MKDIR=$ac_cv_path_MKDIR
6877 if test -n "$MKDIR"; then
6878 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6879 echo "${ECHO_T}$MKDIR" >&6; }
6881 { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6886 # Extract the first word of "mv", so it can be a program name with args.
6887 set dummy mv; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_MV+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6918 if test -n "$MV"; then
6919 { echo "$as_me:$LINENO: result: $MV" >&5
6920 echo "${ECHO_T}$MV" >&6; }
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_RANLIB+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 if test -n "$RANLIB"; then
6936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 RANLIB=$ac_cv_prog_RANLIB
6956 if test -n "$RANLIB"; then
6957 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6958 echo "${ECHO_T}$RANLIB" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6966 if test -z "$ac_cv_prog_RANLIB"; then
6967 ac_ct_RANLIB=$RANLIB
6968 # Extract the first word of "ranlib", so it can be a program name with args.
6969 set dummy ranlib; ac_word=$2
6970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 if test -n "$ac_ct_RANLIB"; then
6976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_ac_ct_RANLIB="ranlib"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6996 if test -n "$ac_ct_RANLIB"; then
6997 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6998 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7004 if test "x$ac_ct_RANLIB" = x; then
7007 case $cross_compiling:$ac_tool_warned in
7009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7010 whose name does not start with the host triplet. If you think this
7011 configuration is useful to you, please write to autoconf@gnu.org." >&5
7012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7013 whose name does not start with the host triplet. If you think this
7014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7015 ac_tool_warned=yes ;;
7017 RANLIB=$ac_ct_RANLIB
7020 RANLIB="$ac_cv_prog_RANLIB"
7023 # Extract the first word of "rm", so it can be a program name with args.
7024 set dummy rm; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_path_RM+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7055 if test -n "$RM"; then
7056 { echo "$as_me:$LINENO: result: $RM" >&5
7057 echo "${ECHO_T}$RM" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7064 # Extract the first word of "sed", so it can be a program name with args.
7065 set dummy sed; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_SED+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7096 if test -n "$SED"; then
7097 { echo "$as_me:$LINENO: result: $SED" >&5
7098 echo "${ECHO_T}$SED" >&6; }
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7105 # Extract the first word of "tar", so it can be a program name with args.
7106 set dummy tar; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_TAR+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7137 if test -n "$TAR"; then
7138 { echo "$as_me:$LINENO: result: $TAR" >&5
7139 echo "${ECHO_T}$TAR" >&6; }
7141 { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7146 # Extract the first word of "pwd", so it can be a program name with args.
7147 set dummy pwd; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_path_BINPWD+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7177 BINPWD=$ac_cv_path_BINPWD
7178 if test -n "$BINPWD"; then
7179 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7180 echo "${ECHO_T}$BINPWD" >&6; }
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7188 # Extract the first word of "Graphviz", so it can be a program name with args.
7189 set dummy Graphviz; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7219 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7220 if test -n "$GRAPHVIZ"; then
7221 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7222 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7229 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_GRAPHVIZ 1
7235 if test "$llvm_cv_os_type" = "MingW" ; then
7236 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7239 cat >>confdefs.h <<_ACEOF
7240 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7244 # Extract the first word of "dot", so it can be a program name with args.
7245 set dummy dot; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_DOT+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7276 if test -n "$DOT"; then
7277 { echo "$as_me:$LINENO: result: $DOT" >&5
7278 echo "${ECHO_T}$DOT" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 if test "$DOT" != "echo dot" ; then
7287 cat >>confdefs.h <<\_ACEOF
7291 if test "$llvm_cv_os_type" = "MingW" ; then
7292 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7295 cat >>confdefs.h <<_ACEOF
7296 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7300 # Extract the first word of "fdp", so it can be a program name with args.
7301 set dummy fdp; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_FDP+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7332 if test -n "$FDP"; then
7333 { echo "$as_me:$LINENO: result: $FDP" >&5
7334 echo "${ECHO_T}$FDP" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 if test "$FDP" != "echo fdp" ; then
7343 cat >>confdefs.h <<\_ACEOF
7347 if test "$llvm_cv_os_type" = "MingW" ; then
7348 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7351 cat >>confdefs.h <<_ACEOF
7352 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7356 # Extract the first word of "neato", so it can be a program name with args.
7357 set dummy neato; 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_NEATO+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_cv_path_NEATO="$NEATO" # 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_NEATO="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7387 NEATO=$ac_cv_path_NEATO
7388 if test -n "$NEATO"; then
7389 { echo "$as_me:$LINENO: result: $NEATO" >&5
7390 echo "${ECHO_T}$NEATO" >&6; }
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7397 if test "$NEATO" != "echo neato" ; then
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_NEATO 1
7403 if test "$llvm_cv_os_type" = "MingW" ; then
7404 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7407 cat >>confdefs.h <<_ACEOF
7408 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7412 # Extract the first word of "twopi", so it can be a program name with args.
7413 set dummy twopi; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_TWOPI+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7443 TWOPI=$ac_cv_path_TWOPI
7444 if test -n "$TWOPI"; then
7445 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7446 echo "${ECHO_T}$TWOPI" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7453 if test "$TWOPI" != "echo twopi" ; then
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_TWOPI 1
7459 if test "$llvm_cv_os_type" = "MingW" ; then
7460 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7463 cat >>confdefs.h <<_ACEOF
7464 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7468 # Extract the first word of "circo", so it can be a program name with args.
7469 set dummy circo; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_CIRCO+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7499 CIRCO=$ac_cv_path_CIRCO
7500 if test -n "$CIRCO"; then
7501 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7502 echo "${ECHO_T}$CIRCO" >&6; }
7504 { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7509 if test "$CIRCO" != "echo circo" ; then
7511 cat >>confdefs.h <<\_ACEOF
7512 #define HAVE_CIRCO 1
7515 if test "$llvm_cv_os_type" = "MingW" ; then
7516 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7519 cat >>confdefs.h <<_ACEOF
7520 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7524 for ac_prog in gv gsview32
7526 # Extract the first word of "$ac_prog", so it can be a program name with args.
7527 set dummy $ac_prog; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_GV+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 if test -n "$GV"; then
7558 { echo "$as_me:$LINENO: result: $GV" >&5
7559 echo "${ECHO_T}$GV" >&6; }
7561 { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7566 test -n "$GV" && break
7568 test -n "$GV" || GV="echo gv"
7570 if test "$GV" != "echo gv" ; then
7572 cat >>confdefs.h <<\_ACEOF
7576 if test "$llvm_cv_os_type" = "MingW" ; then
7577 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7580 cat >>confdefs.h <<_ACEOF
7581 #define LLVM_PATH_GV "$GV${EXEEXT}"
7585 # Extract the first word of "dotty", so it can be a program name with args.
7586 set dummy dotty; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_DOTTY+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7616 DOTTY=$ac_cv_path_DOTTY
7617 if test -n "$DOTTY"; then
7618 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7619 echo "${ECHO_T}$DOTTY" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 if test "$DOTTY" != "echo dotty" ; then
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_DOTTY 1
7632 if test "$llvm_cv_os_type" = "MingW" ; then
7633 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7636 cat >>confdefs.h <<_ACEOF
7637 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7643 # Extract the first word of "perl", so it can be a program name with args.
7644 set dummy perl; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_path_PERL+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7674 PERL=$ac_cv_path_PERL
7675 if test -n "$PERL"; then
7676 { echo "$as_me:$LINENO: result: $PERL" >&5
7677 echo "${ECHO_T}$PERL" >&6; }
7679 { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7684 if test "$PERL" != "none"; then
7685 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7686 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7687 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7688 { echo "$as_me:$LINENO: result: yes" >&5
7689 echo "${ECHO_T}yes" >&6; }
7692 { echo "$as_me:$LINENO: result: not found" >&5
7693 echo "${ECHO_T}not found" >&6; }
7698 if test x"$PERL" = xnone; then
7701 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7702 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7703 { (exit 1); exit 1; }; }
7709 # Find a good install program. We prefer a C program (faster),
7710 # so one script is as good as another. But avoid the broken or
7711 # incompatible versions:
7712 # SysV /etc/install, /usr/sbin/install
7713 # SunOS /usr/etc/install
7714 # IRIX /sbin/install
7716 # AmigaOS /C/install, which installs bootblocks on floppy discs
7717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7720 # OS/2's system install, which has a completely different semantic
7721 # ./install, which can be erroneously created by make from ./install.sh.
7722 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7723 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7724 if test -z "$INSTALL"; then
7725 if test "${ac_cv_path_install+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 # Account for people who put trailing slashes in PATH elements.
7735 ./ | .// | /cC/* | \
7736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7737 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7740 # OSF1 and SCO ODT 3.0 have their own names for install.
7741 # Don't use installbsd from OSF since it installs stuff as root
7743 for ac_prog in ginstall scoinst install; do
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7746 if test $ac_prog = install &&
7747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7748 # AIX install. It has an incompatible calling convention.
7750 elif test $ac_prog = install &&
7751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7752 # program-specific install script used by HP pwplus--don't use.
7755 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7768 if test "${ac_cv_path_install+set}" = set; then
7769 INSTALL=$ac_cv_path_install
7771 # As a last resort, use the slow shell script. Don't cache a
7772 # value for INSTALL within a source directory, because that will
7773 # break other packages using the cache if that directory is
7774 # removed, or if the value is a relative name.
7775 INSTALL=$ac_install_sh
7778 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7779 echo "${ECHO_T}$INSTALL" >&6; }
7781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7782 # It thinks the first close brace ends the variable substitution.
7783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7790 # Extract the first word of "bzip2", so it can be a program name with args.
7791 set dummy bzip2; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_path_BZIP2+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 BZIP2=$ac_cv_path_BZIP2
7821 if test -n "$BZIP2"; then
7822 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7823 echo "${ECHO_T}$BZIP2" >&6; }
7825 { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7830 # Extract the first word of "doxygen", so it can be a program name with args.
7831 set dummy doxygen; ac_word=$2
7832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 DOXYGEN=$ac_cv_path_DOXYGEN
7861 if test -n "$DOXYGEN"; then
7862 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7863 echo "${ECHO_T}$DOXYGEN" >&6; }
7865 { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7870 # Extract the first word of "groff", so it can be a program name with args.
7871 set dummy groff; ac_word=$2
7872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874 if test "${ac_cv_path_GROFF+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7889 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 GROFF=$ac_cv_path_GROFF
7901 if test -n "$GROFF"; then
7902 { echo "$as_me:$LINENO: result: $GROFF" >&5
7903 echo "${ECHO_T}$GROFF" >&6; }
7905 { echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6; }
7910 # Extract the first word of "gzip", so it can be a program name with args.
7911 set dummy gzip; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_path_GZIP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 GZIP=$ac_cv_path_GZIP
7941 if test -n "$GZIP"; then
7942 { echo "$as_me:$LINENO: result: $GZIP" >&5
7943 echo "${ECHO_T}$GZIP" >&6; }
7945 { echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6; }
7950 # Extract the first word of "pod2html", so it can be a program name with args.
7951 set dummy pod2html; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_path_POD2HTML+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 POD2HTML=$ac_cv_path_POD2HTML
7981 if test -n "$POD2HTML"; then
7982 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7983 echo "${ECHO_T}$POD2HTML" >&6; }
7985 { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7990 # Extract the first word of "pod2man", so it can be a program name with args.
7991 set dummy pod2man; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_POD2MAN+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 POD2MAN=$ac_cv_path_POD2MAN
8021 if test -n "$POD2MAN"; then
8022 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8023 echo "${ECHO_T}$POD2MAN" >&6; }
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 # Extract the first word of "runtest", so it can be a program name with args.
8031 set dummy runtest; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_RUNTEST+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 RUNTEST=$ac_cv_path_RUNTEST
8061 if test -n "$RUNTEST"; then
8062 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8063 echo "${ECHO_T}$RUNTEST" >&6; }
8065 { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8072 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8073 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8075 # Check whether --with-tclinclude was given.
8076 if test "${with_tclinclude+set}" = set; then
8077 withval=$with_tclinclude; with_tclinclude=${withval}
8082 if test "${ac_cv_path_tclsh+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 if test x"${with_tclinclude}" != x ; then
8087 if test -f ${with_tclinclude}/tclsh ; then
8088 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8089 elif test -f ${with_tclinclude}/src/tclsh ; then
8090 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8092 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8093 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8094 { (exit 1); exit 1; }; }
8098 if test x"${ac_cv_path_tclsh}" = x ; then
8099 { echo "$as_me:$LINENO: result: none" >&5
8100 echo "${ECHO_T}none" >&6; }
8101 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
8103 # Extract the first word of "$ac_prog", so it can be a program name with args.
8104 set dummy $ac_prog; ac_word=$2
8105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107 if test "${ac_cv_path_TCLSH+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 TCLSH=$ac_cv_path_TCLSH
8134 if test -n "$TCLSH"; then
8135 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8136 echo "${ECHO_T}$TCLSH" >&6; }
8138 { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8143 test -n "$TCLSH" && break
8146 if test x"${TCLSH}" = x ; then
8147 ac_cv_path_tclsh='';
8149 ac_cv_path_tclsh="${TCLSH}";
8152 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8153 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8154 TCLSH="${ac_cv_path_tclsh}"
8160 # Extract the first word of "zip", so it can be a program name with args.
8161 set dummy zip; ac_word=$2
8162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8164 if test "${ac_cv_path_ZIP+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 if test -n "$ZIP"; then
8192 { echo "$as_me:$LINENO: result: $ZIP" >&5
8193 echo "${ECHO_T}$ZIP" >&6; }
8195 { echo "$as_me:$LINENO: result: no" >&5
8196 echo "${ECHO_T}no" >&6; }
8200 for ac_prog in ocamlc
8202 # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy $ac_prog; ac_word=$2
8204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8206 if test "${ac_cv_path_OCAMLC+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 OCAMLC=$ac_cv_path_OCAMLC
8233 if test -n "$OCAMLC"; then
8234 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8235 echo "${ECHO_T}$OCAMLC" >&6; }
8237 { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8242 test -n "$OCAMLC" && break
8245 for ac_prog in ocamlopt
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 OCAMLOPT=$ac_cv_path_OCAMLOPT
8278 if test -n "$OCAMLOPT"; then
8279 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8280 echo "${ECHO_T}$OCAMLOPT" >&6; }
8282 { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8287 test -n "$OCAMLOPT" && break
8290 for ac_prog in ocamldep
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 OCAMLDEP=$ac_cv_path_OCAMLDEP
8323 if test -n "$OCAMLDEP"; then
8324 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8325 echo "${ECHO_T}$OCAMLDEP" >&6; }
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8332 test -n "$OCAMLDEP" && break
8335 for ac_prog in ocamldoc
8337 # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 OCAMLDOC=$ac_cv_path_OCAMLDOC
8368 if test -n "$OCAMLDOC"; then
8369 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8370 echo "${ECHO_T}$OCAMLDOC" >&6; }
8372 { echo "$as_me:$LINENO: result: no" >&5
8373 echo "${ECHO_T}no" >&6; }
8377 test -n "$OCAMLDOC" && break
8380 for ac_prog in gas as
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383 set dummy $ac_prog; ac_word=$2
8384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8386 if test "${ac_cv_path_GAS+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 if test -n "$GAS"; then
8414 { echo "$as_me:$LINENO: result: $GAS" >&5
8415 echo "${ECHO_T}$GAS" >&6; }
8417 { echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6; }
8422 test -n "$GAS" && break
8426 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8427 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8428 if test "${llvm_cv_link_use_r+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 ac_cpp='$CPP $CPPFLAGS'
8433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8438 CFLAGS="$CFLAGS -Wl,-R."
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8449 int main() { return 0; }
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_link") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469 { (case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_try") 2>&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_try") 2>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 llvm_cv_link_use_r=yes
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 llvm_cv_link_use_r=no
8496 rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8500 ac_cpp='$CPP $CPPFLAGS'
8501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8507 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8508 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8509 if test "$llvm_cv_link_use_r" = yes ; then
8511 cat >>confdefs.h <<\_ACEOF
8512 #define HAVE_LINK_R 1
8518 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8519 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8520 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8530 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8531 cat >conftest.$ac_ext <<_ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8541 int main() { return 0; }
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; } &&
8570 { ac_try='test -s conftest$ac_exeext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_try") 2>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 llvm_cv_link_use_export_dynamic=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 llvm_cv_link_use_export_dynamic=no
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8599 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8600 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8601 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8603 cat >>confdefs.h <<\_ACEOF
8604 #define HAVE_LINK_EXPORT_DYNAMIC 1
8612 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8614 if test "${ac_cv_c_const+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 cat >conftest.$ac_ext <<_ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8627 /* FIXME: Include the comments suggested by Paul. */
8629 /* Ultrix mips cc rejects this. */
8630 typedef int charset[2];
8632 /* SunOS 4.1.1 cc rejects this. */
8633 char const *const *ccp;
8635 /* NEC SVR4.0.2 mips cc rejects this. */
8636 struct point {int x, y;};
8637 static struct point const zero = {0,0};
8638 /* AIX XL C 1.02.0.0 rejects this.
8639 It does not let you subtract one const X* pointer from another in
8640 an arm of an if-expression whose if-part is not a constant
8642 const char *g = "string";
8643 ccp = &g + (g ? g-g : 0);
8644 /* HPUX 7.0 cc rejects these. */
8647 ccp = (char const *const *) p;
8648 { /* SCO 3.2v4 cc rejects this. */
8650 char const *s = 0 ? (char *) 0 : (char const *) 0;
8655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8657 const int *foo = &x[0];
8660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8661 typedef const int *iptr;
8665 { /* AIX XL C 1.02.0.0 rejects this saying
8666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8667 struct s { int j; const int *ap[3]; };
8668 struct s *b; b->j = 5;
8670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8674 return !x[0] && !zero.x;
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8690 grep -v '^ *+' conftest.er1 >conftest.err
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8696 { (case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_try") 2>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_try") 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8727 if test $ac_cv_c_const = no; then
8729 cat >>confdefs.h <<\_ACEOF
8741 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8742 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8743 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8744 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 #include <sys/types.h>
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_compile") 2>conftest.er1
8775 grep -v '^ *+' conftest.er1 >conftest.err
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } &&
8780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_try") 2>&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest.$ac_objext'
8791 { (case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_try") 2>&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 eval "$as_ac_Header=yes"
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 eval "$as_ac_Header=no"
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 ac_res=`eval echo '${'$as_ac_Header'}'`
8811 { echo "$as_me:$LINENO: result: $ac_res" >&5
8812 echo "${ECHO_T}$ac_res" >&6; }
8813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8818 ac_header_dirent=$ac_hdr; break
8822 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8823 if test $ac_header_dirent = dirent.h; then
8824 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8825 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8826 if test "${ac_cv_search_opendir+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_func_search_save_LIBS=$LIBS
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 /* Override any GCC internal prototype to avoid an error.
8838 Use char because int might match the return type of a GCC
8839 builtin and then its argument prototype would still apply. */
8852 for ac_lib in '' dir; do
8853 if test -z "$ac_lib"; then
8854 ac_res="none required"
8857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (ac_try="$ac_link"
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_link") 2>conftest.er1
8868 grep -v '^ *+' conftest.er1 >conftest.err
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } &&
8873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8874 { (case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_try") 2>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_try") 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 ac_cv_search_opendir=$ac_res
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8901 rm -f core conftest.err conftest.$ac_objext \
8903 if test "${ac_cv_search_opendir+set}" = set; then
8907 if test "${ac_cv_search_opendir+set}" = set; then
8910 ac_cv_search_opendir=no
8913 LIBS=$ac_func_search_save_LIBS
8915 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8916 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8917 ac_res=$ac_cv_search_opendir
8918 if test "$ac_res" != no; then
8919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8924 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8925 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8926 if test "${ac_cv_search_opendir+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 ac_func_search_save_LIBS=$LIBS
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8937 /* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8952 for ac_lib in '' x; do
8953 if test -z "$ac_lib"; then
8954 ac_res="none required"
8957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_link") 2>conftest.er1
8968 grep -v '^ *+' conftest.er1 >conftest.err
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974 { (case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_try") 2>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_try") 2>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_search_opendir=$ac_res
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
9001 rm -f core conftest.err conftest.$ac_objext \
9003 if test "${ac_cv_search_opendir+set}" = set; then
9007 if test "${ac_cv_search_opendir+set}" = set; then
9010 ac_cv_search_opendir=no
9013 LIBS=$ac_func_search_save_LIBS
9015 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9016 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9017 ac_res=$ac_cv_search_opendir
9018 if test "$ac_res" != no; then
9019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9026 for ac_header in dlfcn.h
9028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 ac_res=`eval echo '${'$as_ac_Header'}'`
9036 { echo "$as_me:$LINENO: result: $ac_res" >&5
9037 echo "${ECHO_T}$ac_res" >&6; }
9039 # Is the header compilable?
9040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 $ac_includes_default
9049 #include <$ac_header>
9051 rm -f conftest.$ac_objext
9052 if { (ac_try="$ac_compile"
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_compile") 2>conftest.er1
9060 grep -v '^ *+' conftest.er1 >conftest.err
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9066 { (case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_try") 2>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_try") 2>&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_header_compiler=yes
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_header_compiler=no
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095 echo "${ECHO_T}$ac_header_compiler" >&6; }
9097 # Is the header present?
9098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 #include <$ac_header>
9108 if { (ac_try="$ac_cpp conftest.$ac_ext"
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9116 grep -v '^ *+' conftest.er1 >conftest.err
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } >/dev/null; then
9121 if test -s conftest.err; then
9122 ac_cpp_err=$ac_c_preproc_warn_flag
9123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9130 if test -z "$ac_cpp_err"; then
9131 ac_header_preproc=yes
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_header_preproc=no
9139 rm -f conftest.err conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9141 echo "${ECHO_T}$ac_header_preproc" >&6; }
9143 # So? What about this header?
9144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9150 ac_header_preproc=yes
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9166 ## ----------------------------------- ##
9167 ## Report this to llvmbugs@cs.uiuc.edu ##
9168 ## ----------------------------------- ##
9170 ) | sed "s/^/$as_me: WARNING: /" >&2
9173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 eval "$as_ac_Header=\$ac_header_preproc"
9180 ac_res=`eval echo '${'$as_ac_Header'}'`
9181 { echo "$as_me:$LINENO: result: $ac_res" >&5
9182 echo "${ECHO_T}$ac_res" >&6; }
9185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9186 cat >>confdefs.h <<_ACEOF
9187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9194 # Check whether --enable-ltdl-install was given.
9195 if test "${enable_ltdl_install+set}" = set; then
9196 enableval=$enable_ltdl_install;
9202 if test x"${enable_ltdl_install-no}" != xno; then
9204 INSTALL_LTDL_FALSE='#'
9206 INSTALL_LTDL_TRUE='#'
9212 if test x"${enable_ltdl_convenience-no}" != xno; then
9213 CONVENIENCE_LTDL_TRUE=
9214 CONVENIENCE_LTDL_FALSE='#'
9216 CONVENIENCE_LTDL_TRUE='#'
9217 CONVENIENCE_LTDL_FALSE=
9221 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9222 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9224 libname_spec='lib$name'
9232 shlibpath_overrides_runpath=unknown
9234 dynamic_linker="$host_os ld.so"
9235 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9236 if test "$GCC" = yes; then
9237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9238 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9239 # if the path contains ";" then we assume it to be the separator
9240 # otherwise default to the standard path separator (i.e. ":") - it is
9241 # assumed that no part of a normal pathname contains ";" but that should
9242 # okay in the real world where ";" in dirpaths is itself problematic.
9243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9250 need_lib_prefix=unknown
9251 hardcode_into_libs=no
9253 # when you set need_version to no, make sure it does not cause -set_version
9254 # flags to be left without arguments
9255 need_version=unknown
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9261 shlibpath_var=LIBPATH
9263 # AIX 3 has no versioning support, so we append a major version to the name.
9264 soname_spec='${libname}${release}${shared_ext}$major'
9271 hardcode_into_libs=yes
9272 if test "$host_cpu" = ia64; then
9273 # AIX 5 supports IA64
9274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9275 shlibpath_var=LD_LIBRARY_PATH
9277 # With GCC up to 2.95.x, collect2 would create an import file
9278 # for dependence libraries. The import file would start with
9279 # the line `#! .'. This would cause the generated library to
9280 # depend on `.', always an invalid library. This was fixed in
9281 # development snapshots of GCC prior to 3.0.
9283 aix4 | aix4.[01] | aix4.[01].*)
9284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9286 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9294 # soname into executable. Probably we can add versioning support to
9295 # collect2, so additional links can be useful in future.
9296 if test "$aix_use_runtimelinking" = yes; then
9297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9298 # instead of lib<name>.a to let people know that these are not
9299 # typical AIX shared libraries.
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302 # We preserve .a as extension for shared libraries through AIX4.2
9303 # and later when we are not doing run time linking.
9304 library_names_spec='${libname}${release}.a $libname.a'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LIBPATH
9312 library_names_spec='$libname.ixlibrary $libname.a'
9313 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9314 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'
9318 library_names_spec='${libname}${shared_ext}'
9319 dynamic_linker="$host_os ld.so"
9320 shlibpath_var=LIBRARY_PATH
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9332 # the default ld.so.conf also contains /usr/contrib/lib and
9333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9334 # libtool to hard-code these into programs
9337 cygwin* | mingw* | pw32*)
9338 version_type=windows
9343 case $GCC,$host_os in
9344 yes,cygwin* | yes,mingw* | yes,pw32*)
9345 library_names_spec='$libname.dll.a'
9346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9347 postinstall_cmds='base_file=`basename \${file}`~
9348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9349 dldir=$destdir/`dirname \$dlpath`~
9350 test -d \$dldir || mkdir -p \$dldir~
9351 $install_prog $dir/$dlname \$dldir/$dlname~
9352 chmod a+x \$dldir/$dlname'
9353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9354 dlpath=$dir/\$dldll~
9356 shlibpath_overrides_runpath=yes
9360 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9361 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9362 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9365 # MinGW DLLs use traditional 'lib' prefix
9366 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9367 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9368 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9369 # It is most probably a Windows format PATH printed by
9370 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9371 # path with ; separators, and with drive letters. We can handle the
9372 # drive letters (cygwin fileutils understands them), so leave them,
9373 # especially as we might pass files found there to a mingw objdump,
9374 # which wouldn't understand a cygwinified path. Ahh.
9375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9381 # pw32 DLLs use 'pw' prefix rather than 'lib'
9382 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9388 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9391 dynamic_linker='Win32 ld.exe'
9392 # FIXME: first we should search . and the directory the executable is in
9396 darwin* | rhapsody*)
9397 dynamic_linker="$host_os dyld"
9401 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9402 soname_spec='${libname}${release}${major}$shared_ext'
9403 shlibpath_overrides_runpath=yes
9404 shlibpath_var=DYLD_LIBRARY_PATH
9405 shrext_cmds='.dylib'
9406 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9407 if test "$GCC" = yes; then
9408 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"`
9410 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9412 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath=no
9436 hardcode_into_libs=yes
9437 dynamic_linker='GNU ld.so'
9440 freebsd* | dragonfly*)
9441 # DragonFly does not have aout. When/if they implement a new
9442 # versioning mechanism, adjust this.
9443 if test -x /usr/bin/objformat; then
9444 objformat=`/usr/bin/objformat`
9447 freebsd[123]*) objformat=aout ;;
9451 version_type=freebsd-$objformat
9452 case $version_type in
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9463 shlibpath_var=LD_LIBRARY_PATH
9466 shlibpath_overrides_runpath=yes
9468 freebsd3.[01]* | freebsdelf3.[01]*)
9469 shlibpath_overrides_runpath=yes
9470 hardcode_into_libs=yes
9472 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9473 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9477 freebsd*) # from 4.6 on
9478 shlibpath_overrides_runpath=yes
9479 hardcode_into_libs=yes
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 hardcode_into_libs=yes
9494 hpux9* | hpux10* | hpux11*)
9495 # Give a soname corresponding to the major version so that dld.sl refuses to
9496 # link against other versions.
9503 hardcode_into_libs=yes
9504 dynamic_linker="$host_os dld.so"
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 if test "X$HPUX_IA64_MODE" = X32; then
9510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9518 hardcode_into_libs=yes
9519 dynamic_linker="$host_os dld.sl"
9520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9529 dynamic_linker="$host_os dld.sl"
9530 shlibpath_var=SHLIB_PATH
9531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9537 postinstall_cmds='chmod 555 $lib'
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 shlibpath_overrides_runpath=no
9549 hardcode_into_libs=yes
9552 irix5* | irix6* | nonstopux*)
9554 nonstopux*) version_type=nonstopux ;;
9556 if test "$lt_cv_prog_gnu_ld" = yes; then
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9567 irix5* | nonstopux*)
9571 case $LD in # libtool.m4 will add one of these switches to LD
9572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9573 libsuff= shlibsuff= libmagic=32-bit;;
9574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9575 libsuff=32 shlibsuff=N32 libmagic=N32;;
9576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9577 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9578 *) libsuff= shlibsuff= libmagic=never-match;;
9582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9583 shlibpath_overrides_runpath=no
9584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9586 hardcode_into_libs=yes
9589 # No shared lib support for Linux oldld, aout, or coff.
9590 linux*oldld* | linux*aout* | linux*coff*)
9594 # This must be Linux ELF.
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 shlibpath_overrides_runpath=no
9604 # This implies no fast_install, which is unacceptable.
9605 # Some rework will be needed to allow for fast_install
9606 # before this can be enabled.
9607 hardcode_into_libs=yes
9609 # Append ld.so.conf contents to the search path
9610 if test -f /etc/ld.so.conf; then
9611 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' ' '`
9612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9615 # We used to test for /lib/ld.so.1 and disable shared libraries on
9616 # powerpc, because MkLinux only supported shared libraries with the
9617 # GNU dynamic linker. Since this was broken with cross compilers,
9618 # most powerpc-linux boxes support dynamic linking these days and
9619 # people can always --disable-shared, the test was removed, and we
9620 # assume the GNU/Linux dynamic linker is in use.
9621 dynamic_linker='GNU/Linux ld.so'
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9629 soname_spec='${libname}${release}${shared_ext}$major'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 shlibpath_overrides_runpath=no
9632 hardcode_into_libs=yes
9633 dynamic_linker='GNU ld.so'
9640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9643 dynamic_linker='NetBSD (a.out) ld.so'
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 dynamic_linker='NetBSD ld.elf_so'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 hardcode_into_libs=yes
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 shlibpath_overrides_runpath=yes
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes
9673 sys_lib_dlsearch_path_spec="/usr/lib"
9675 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9677 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9678 *) need_version=no ;;
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682 shlibpath_var=LD_LIBRARY_PATH
9683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9685 openbsd2.[89] | openbsd2.[89].*)
9686 shlibpath_overrides_runpath=no
9689 shlibpath_overrides_runpath=yes
9693 shlibpath_overrides_runpath=yes
9698 libname_spec='$name'
9701 library_names_spec='$libname${shared_ext} $libname.a'
9702 dynamic_linker='OS/2 ld.exe'
9703 shlibpath_var=LIBPATH
9706 osf3* | osf4* | osf5*)
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9714 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=yes
9725 hardcode_into_libs=yes
9726 # ldd complains unless libraries are executable
9727 postinstall_cmds='chmod +x $lib'
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=yes
9736 if test "$with_gnu_ld" = yes; then
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 case $host_vendor in
9749 shlibpath_overrides_runpath=no
9751 export_dynamic_flag_spec='${wl}-Blargedynsym'
9752 runpath_var=LD_RUN_PATH
9760 shlibpath_overrides_runpath=no
9761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9767 if test -d /usr/nec ;then
9769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770 soname_spec='$libname${shared_ext}.$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776 version_type=freebsd-elf
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 hardcode_into_libs=yes
9783 if test "$with_gnu_ld" = yes; then
9784 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9785 shlibpath_overrides_runpath=no
9787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9788 shlibpath_overrides_runpath=yes
9791 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9795 sys_lib_dlsearch_path_spec='/usr/lib'
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9809 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9810 echo "${ECHO_T}$dynamic_linker" >&6; }
9811 test "$dynamic_linker" = no && can_build_shared=no
9813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9814 if test "$GCC" = yes; then
9815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9819 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9820 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9821 if test "${libltdl_cv_shlibext+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 eval libltdl_cv_shlibext=$shrext_cmds
9829 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9830 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9831 if test -n "$libltdl_cv_shlibext"; then
9833 cat >>confdefs.h <<_ACEOF
9834 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9840 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9841 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9842 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 libltdl_cv_shlibpath_var="$shlibpath_var"
9847 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9848 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9849 if test -n "$libltdl_cv_shlibpath_var"; then
9851 cat >>confdefs.h <<_ACEOF
9852 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9858 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9859 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9860 if test "${libltdl_cv_sys_search_path+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9865 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9866 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9867 if test -n "$libltdl_cv_sys_search_path"; then
9869 for dir in $libltdl_cv_sys_search_path; do
9870 if test -z "$sys_search_path"; then
9871 sys_search_path="$dir"
9873 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9877 cat >>confdefs.h <<_ACEOF
9878 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9883 { echo "$as_me:$LINENO: checking for objdir" >&5
9884 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9885 if test "${libltdl_cv_objdir+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 libltdl_cv_objdir="$objdir"
9889 if test -n "$objdir"; then
9892 rm -f .libs 2>/dev/null
9893 mkdir .libs 2>/dev/null
9894 if test -d .libs; then
9895 libltdl_cv_objdir=.libs
9897 # MS-DOS does not allow filenames that begin with a dot.
9898 libltdl_cv_objdir=_libs
9900 rmdir .libs 2>/dev/null
9904 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9905 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9907 cat >>confdefs.h <<_ACEOF
9908 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9916 # Check for command to grab the raw symbol name followed by C symbol from nm.
9917 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9918 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9919 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 # These are sane defaults that work on at least a few old systems.
9924 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9926 # Character class describing NM global symbol codes.
9927 symcode='[BCDEGRST]'
9929 # Regexp to match symbols that can be accessed directly from C.
9930 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9932 # Transform an extracted symbol line into a proper C declaration
9933 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9935 # Transform an extracted symbol line into symbol name and symbol address
9936 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'"
9938 # Define system-specific variables.
9943 cygwin* | mingw* | pw32*)
9944 symcode='[ABCDGISTW]'
9946 hpux*) # Its linker distinguishes data from code symbols
9947 if test "$host_cpu" = ia64; then
9948 symcode='[ABCDEGRST]'
9950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9951 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'"
9954 if test "$host_cpu" = ia64; then
9955 symcode='[ABCDGIRSTW]'
9956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9957 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'"
9961 symcode='[BCDEGRST]'
9964 symcode='[BCDEGQRST]'
9975 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9983 # Handle CRLF in mingw tool chain
9987 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9991 # If we're using GNU nm, then use its standard symbol codes.
9992 case `$NM -V 2>&1` in
9993 *GNU* | *'with BFD'*)
9994 symcode='[ABCDGIRSTW]' ;;
9997 # Try without a prefix undercore, then with it.
9998 for ac_symprfx in "" "_"; do
10000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10001 symxfrm="\\1 $ac_symprfx\\2 \\2"
10003 # Write the raw and C identifiers.
10004 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10006 # Check to see that the pipe works correctly.
10010 cat > conftest.$ac_ext <<EOF
10015 void nm_test_func(){}
10019 int main(){nm_test_var='a';nm_test_func();return(0);}
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; then
10027 # Now try to grab the symbols.
10029 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10030 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } && test -s "$nlist"; then
10034 # Try sorting and uniquifying the output.
10035 if sort "$nlist" | uniq > "$nlist"T; then
10036 mv -f "$nlist"T "$nlist"
10041 # Make sure that we snagged all the symbols we need.
10042 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10043 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10044 cat <<EOF > conftest.$ac_ext
10050 # Now generate the symbol file.
10051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10053 cat <<EOF >> conftest.$ac_ext
10054 #if defined (__STDC__) && __STDC__
10055 # define lt_ptr_t void *
10057 # define lt_ptr_t char *
10061 /* The mapping between symbol names and symbols. */
10066 lt_preloaded_symbols[] =
10069 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10070 cat <<\EOF >> conftest.$ac_ext
10078 # Now try linking the two files.
10079 mv conftest.$ac_objext conftstm.$ac_objext
10080 lt_save_LIBS="$LIBS"
10081 lt_save_CFLAGS="$CFLAGS"
10082 LIBS="conftstm.$ac_objext"
10083 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10091 LIBS="$lt_save_LIBS"
10092 CFLAGS="$lt_save_CFLAGS"
10094 echo "cannot find nm_test_func in $nlist" >&5
10097 echo "cannot find nm_test_var in $nlist" >&5
10100 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10103 echo "$progname: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10106 rm -f conftest* conftst*
10108 # Do not use the global_symbol_pipe unless it works.
10109 if test "$pipe_works" = yes; then
10112 lt_cv_sys_global_symbol_pipe=
10118 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10119 lt_cv_sys_global_symbol_to_cdecl=
10121 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10122 { echo "$as_me:$LINENO: result: failed" >&5
10123 echo "${ECHO_T}failed" >&6; }
10125 { echo "$as_me:$LINENO: result: ok" >&5
10126 echo "${ECHO_T}ok" >&6; }
10130 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10131 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10132 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10136 libltdl_cv_preloaded_symbols=yes
10138 libltdl_cv_preloaded_symbols=no
10142 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10143 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10144 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_PRELOADED_SYMBOLS 1
10155 ac_cpp='$CPP $CPPFLAGS'
10156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10161 { echo "$as_me:$LINENO: checking for shl_load" >&5
10162 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10163 if test "${ac_cv_func_shl_load+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10174 #define shl_load innocuous_shl_load
10176 /* System header to define __stub macros and hopefully few prototypes,
10177 which can conflict with char shl_load (); below.
10178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10179 <limits.h> exists even on freestanding compilers. */
10182 # include <limits.h>
10184 # include <assert.h>
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10196 /* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
10199 #if defined __stub_shl_load || defined __stub___shl_load
10206 return shl_load ();
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>conftest.er1
10220 grep -v '^ *+' conftest.er1 >conftest.err
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_try") 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_func_shl_load=yes
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_func_shl_load=no
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10256 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10257 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10258 if test $ac_cv_func_shl_load = yes; then
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_SHL_LOAD 1
10265 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10266 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10267 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_check_lib_save_LIBS=$LIBS
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 /* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
10289 return shl_load ();
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_link") 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 ac_cv_lib_dld_shl_load=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_cv_lib_dld_shl_load=no
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10342 if test $ac_cv_lib_dld_shl_load = yes; then
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_SHL_LOAD 1
10348 LIBADD_DL="$LIBADD_DL -ldld"
10350 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10351 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 ac_check_lib_save_LIBS=$LIBS
10357 cat >conftest.$ac_ext <<_ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_lib_dl_dlopen=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_lib_dl_dlopen=no
10421 rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10426 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10427 if test $ac_cv_lib_dl_dlopen = yes; then
10429 cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_LIBDL 1
10433 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10442 # include <dlfcn.h>
10453 rm -f conftest.$ac_objext conftest$ac_exeext
10454 if { (ac_try="$ac_link"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_link") 2>conftest.er1
10462 grep -v '^ *+' conftest.er1 >conftest.err
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10468 { (case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_try") 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest$ac_exeext'
10478 { (case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_try") 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_LIBDL 1
10491 libltdl_cv_func_dlopen="yes"
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10497 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10498 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lsvld $LIBS"
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10510 /* Override any GCC internal prototype to avoid an error.
10511 Use char because int might match the return type of a GCC
10512 builtin and then its argument prototype would still apply. */
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10540 { (case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_try") 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest$ac_exeext'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_lib_svld_dlopen=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_lib_svld_dlopen=no
10567 rm -f core conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 LIBS=$ac_check_lib_save_LIBS
10571 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10572 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10573 if test $ac_cv_lib_svld_dlopen = yes; then
10575 cat >>confdefs.h <<\_ACEOF
10576 #define HAVE_LIBDL 1
10579 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10581 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10582 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 ac_check_lib_save_LIBS=$LIBS
10588 cat >conftest.$ac_ext <<_ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10595 /* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10605 return dld_link ();
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_cv_lib_dld_dld_link=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_cv_lib_dld_dld_link=no
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10656 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10657 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10658 if test $ac_cv_lib_dld_dld_link = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10664 LIBADD_DL="$LIBADD_DL -ldld"
10666 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10667 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10668 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10679 #define _dyld_func_lookup innocuous__dyld_func_lookup
10681 /* System header to define __stub macros and hopefully few prototypes,
10682 which can conflict with char _dyld_func_lookup (); below.
10683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684 <limits.h> exists even on freestanding compilers. */
10687 # include <limits.h>
10689 # include <assert.h>
10692 #undef _dyld_func_lookup
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10700 char _dyld_func_lookup ();
10701 /* The GNU C library defines this for functions which it implements
10702 to always fail with ENOSYS. Some functions are actually named
10703 something starting with __ and the normal name is an alias. */
10704 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10711 return _dyld_func_lookup ();
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_link") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_cv_func__dyld_func_lookup=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_cv_func__dyld_func_lookup=no
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10761 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10762 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10763 if test $ac_cv_func__dyld_func_lookup = yes; then
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_DYLD 1
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10792 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10794 lt_save_LIBS="$LIBS"
10795 LIBS="$LIBS $LIBADD_DL"
10797 for ac_func in dlerror
10799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 cat >conftest.$ac_ext <<_ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813 #define $ac_func innocuous_$ac_func
10815 /* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char $ac_func (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10821 # include <limits.h>
10823 # include <assert.h>
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined __stub_$ac_func || defined __stub___$ac_func
10845 return $ac_func ();
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 eval "$as_ac_var=yes"
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 eval "$as_ac_var=no"
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10895 ac_res=`eval echo '${'$as_ac_var'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897 echo "${ECHO_T}$ac_res" >&6; }
10898 if test `eval echo '${'$as_ac_var'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10906 LIBS="$lt_save_LIBS"
10909 ac_cpp='$CPP $CPPFLAGS'
10910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10916 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10917 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10918 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 ac_cv_sys_symbol_underscore=no
10922 cat > conftest.$ac_ext <<EOF
10923 void nm_test_func(){}
10924 int main(){nm_test_func;return 0;}
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927 (eval $ac_compile) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; then
10931 # Now try to grab the symbols.
10932 ac_nlist=conftest.nm
10933 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10934 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && test -s "$ac_nlist"; then
10938 # See whether the symbols have a leading underscore.
10939 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10940 ac_cv_sys_symbol_underscore=yes
10942 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10949 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10952 echo "configure: failed program was:" >&5
10958 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10959 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10962 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10963 if test x"$libltdl_cv_func_dlopen" = xyes ||
10964 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10965 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10966 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10967 if test "${libltdl_cv_need_uscore+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 libltdl_cv_need_uscore=unknown
10972 LIBS="$LIBS $LIBADD_DL"
10973 if test "$cross_compiling" = yes; then :
10974 libltdl_cv_need_uscore=cross
10976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10977 lt_status=$lt_dlunknown
10978 cat > conftest.$ac_ext <<EOF
10979 #line 10979 "configure"
10980 #include "confdefs.h"
10989 # define LT_DLGLOBAL RTLD_GLOBAL
10992 # define LT_DLGLOBAL DL_GLOBAL
10994 # define LT_DLGLOBAL 0
10998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10999 find out it does not work in some platform. */
11000 #ifndef LT_DLLAZY_OR_NOW
11002 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11005 # define LT_DLLAZY_OR_NOW DL_LAZY
11008 # define LT_DLLAZY_OR_NOW RTLD_NOW
11011 # define LT_DLLAZY_OR_NOW DL_NOW
11013 # define LT_DLLAZY_OR_NOW 0
11021 extern "C" void exit (int);
11024 void fnord() { int i=42;}
11027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11028 int status = $lt_dlunknown;
11032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11033 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11034 /* dlclose (self); */
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11047 (./conftest; exit; ) >&5 2>/dev/null
11049 case x$lt_status in
11050 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11051 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11052 x$lt_dlunknown|x*) ;;
11055 # compilation failed
11064 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11065 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11069 if test x"$libltdl_cv_need_uscore" = xyes; then
11071 cat >>confdefs.h <<\_ACEOF
11072 #define NEED_USCORE 1
11078 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11079 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11080 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 # PORTME does your system automatically load deplibs for dlopen?
11084 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11085 # For now, we just catch OSes we know something about -- in the
11086 # future, we'll try test this programmatically.
11087 libltdl_cv_sys_dlopen_deplibs=unknown
11089 aix3*|aix4.1.*|aix4.2.*)
11090 # Unknown whether this is true for these versions of AIX, but
11091 # we want this `case' here to explicitly catch those versions.
11092 libltdl_cv_sys_dlopen_deplibs=unknown
11095 libltdl_cv_sys_dlopen_deplibs=yes
11098 # Assuming the user has installed a libdl from somewhere, this is true
11099 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11100 libltdl_cv_sys_dlopen_deplibs=yes
11102 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11103 # GNU and its variants, using gnu ld.so (Glibc)
11104 libltdl_cv_sys_dlopen_deplibs=yes
11107 libltdl_cv_sys_dlopen_deplibs=yes
11110 libltdl_cv_sys_dlopen_deplibs=yes
11112 irix[12345]*|irix6.[01]*)
11113 # Catch all versions of IRIX before 6.2, and indicate that we don't
11114 # know how it worked for any of those versions.
11115 libltdl_cv_sys_dlopen_deplibs=unknown
11118 # The case above catches anything before 6.2, and it's known that
11119 # at 6.2 and later dlopen does load deplibs.
11120 libltdl_cv_sys_dlopen_deplibs=yes
11123 libltdl_cv_sys_dlopen_deplibs=yes
11126 libltdl_cv_sys_dlopen_deplibs=yes
11129 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11130 # it did *not* use an RPATH in a shared library to find objects the
11131 # library depends on, so we explictly say `no'.
11132 libltdl_cv_sys_dlopen_deplibs=no
11134 osf5.0|osf5.0a|osf5.1)
11135 # dlopen *does* load deplibs and with the right loader patch applied
11136 # it even uses RPATH in a shared library to search for shared objects
11137 # that the library depends on, but there's no easy way to know if that
11138 # patch is installed. Since this is the case, all we can really
11139 # say is unknown -- it depends on the patch being installed. If
11140 # it is, this changes to `yes'. Without it, it would be `no'.
11141 libltdl_cv_sys_dlopen_deplibs=unknown
11144 # the two cases above should catch all versions of osf <= 5.1. Read
11145 # the comments above for what we know about them.
11146 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11147 # is used to find them so we can finally say `yes'.
11148 libltdl_cv_sys_dlopen_deplibs=yes
11151 libltdl_cv_sys_dlopen_deplibs=yes
11153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11154 libltdl_cv_sys_dlopen_deplibs=yes
11159 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11160 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11161 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11163 cat >>confdefs.h <<\_ACEOF
11164 #define LTDL_DLOPEN_DEPLIBS 1
11170 for ac_header in argz.h
11172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 ac_res=`eval echo '${'$as_ac_Header'}'`
11180 { echo "$as_me:$LINENO: result: $ac_res" >&5
11181 echo "${ECHO_T}$ac_res" >&6; }
11183 # Is the header compilable?
11184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 #include <$ac_header>
11195 rm -f conftest.$ac_objext
11196 if { (ac_try="$ac_compile"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_compile") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest.$ac_objext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 ac_header_compiler=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_header_compiler=no
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239 echo "${ECHO_T}$ac_header_compiler" >&6; }
11241 # Is the header present?
11242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #include <$ac_header>
11252 if { (ac_try="$ac_cpp conftest.$ac_ext"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
11267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11274 if test -z "$ac_cpp_err"; then
11275 ac_header_preproc=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_header_preproc=no
11283 rm -f conftest.err conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285 echo "${ECHO_T}$ac_header_preproc" >&6; }
11287 # So? What about this header?
11288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294 ac_header_preproc=yes
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11310 ## ----------------------------------- ##
11311 ## Report this to llvmbugs@cs.uiuc.edu ##
11312 ## ----------------------------------- ##
11314 ) | sed "s/^/$as_me: WARNING: /" >&2
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 eval "$as_ac_Header=\$ac_header_preproc"
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11330 cat >>confdefs.h <<_ACEOF
11331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11339 { echo "$as_me:$LINENO: checking for error_t" >&5
11340 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11341 if test "${ac_cv_type_error_t+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 cat >conftest.$ac_ext <<_ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11354 typedef error_t ac__type_new_;
11358 if ((ac__type_new_ *) 0)
11360 if (sizeof (ac__type_new_))
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11375 grep -v '^ *+' conftest.er1 >conftest.err
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_type_error_t=yes
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ac_cv_type_error_t=no
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11410 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11411 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11412 if test $ac_cv_type_error_t = yes; then
11414 cat >>confdefs.h <<_ACEOF
11415 #define HAVE_ERROR_T 1
11421 cat >>confdefs.h <<\_ACEOF
11422 #define error_t int
11433 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11449 #define $ac_func innocuous_$ac_func
11451 /* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func (); below.
11453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454 <limits.h> exists even on freestanding compilers. */
11457 # include <limits.h>
11459 # include <assert.h>
11464 /* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined __stub_$ac_func || defined __stub___$ac_func
11481 return $ac_func ();
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 eval "$as_ac_var=yes"
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 eval "$as_ac_var=no"
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11531 ac_res=`eval echo '${'$as_ac_var'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 ac_res=`eval echo '${'$as_ac_Header'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11583 # Is the header compilable?
11584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11586 cat >conftest.$ac_ext <<_ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 $ac_includes_default
11593 #include <$ac_header>
11595 rm -f conftest.$ac_objext
11596 if { (ac_try="$ac_compile"
11597 case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_compile") 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11610 { (case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_try") 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_try") 2>&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_header_compiler=yes
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 ac_header_compiler=no
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11639 echo "${ECHO_T}$ac_header_compiler" >&6; }
11641 # Is the header present?
11642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 #include <$ac_header>
11652 if { (ac_try="$ac_cpp conftest.$ac_ext"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } >/dev/null; then
11665 if test -s conftest.err; then
11666 ac_cpp_err=$ac_c_preproc_warn_flag
11667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11674 if test -z "$ac_cpp_err"; then
11675 ac_header_preproc=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_header_preproc=no
11683 rm -f conftest.err conftest.$ac_ext
11684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11685 echo "${ECHO_T}$ac_header_preproc" >&6; }
11687 # So? What about this header?
11688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11694 ac_header_preproc=yes
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11710 ## ----------------------------------- ##
11711 ## Report this to llvmbugs@cs.uiuc.edu ##
11712 ## ----------------------------------- ##
11714 ) | sed "s/^/$as_me: WARNING: /" >&2
11717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 eval "$as_ac_Header=\$ac_header_preproc"
11724 ac_res=`eval echo '${'$as_ac_Header'}'`
11725 { echo "$as_me:$LINENO: result: $ac_res" >&5
11726 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11742 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 ac_res=`eval echo '${'$as_ac_Header'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11755 # Is the header compilable?
11756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 $ac_includes_default
11765 #include <$ac_header>
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_compile") 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11782 { (case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_try") 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_header_compiler=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_compiler=no
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 #include <$ac_header>
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null; then
11837 if test -s conftest.err; then
11838 ac_cpp_err=$ac_c_preproc_warn_flag
11839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11846 if test -z "$ac_cpp_err"; then
11847 ac_header_preproc=yes
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 ac_header_preproc=no
11855 rm -f conftest.err conftest.$ac_ext
11856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 echo "${ECHO_T}$ac_header_preproc" >&6; }
11859 # So? What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866 ac_header_preproc=yes
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11882 ## ----------------------------------- ##
11883 ## Report this to llvmbugs@cs.uiuc.edu ##
11884 ## ----------------------------------- ##
11886 ) | sed "s/^/$as_me: WARNING: /" >&2
11889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 eval "$as_ac_Header=\$ac_header_preproc"
11896 ac_res=`eval echo '${'$as_ac_Header'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11902 cat >>confdefs.h <<_ACEOF
11903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11912 for ac_header in string.h strings.h
11914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 ac_res=`eval echo '${'$as_ac_Header'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923 echo "${ECHO_T}$ac_res" >&6; }
11925 # Is the header compilable?
11926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11928 cat >conftest.$ac_ext <<_ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 $ac_includes_default
11935 #include <$ac_header>
11937 rm -f conftest.$ac_objext
11938 if { (ac_try="$ac_compile"
11939 case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_compile") 2>conftest.er1
11946 grep -v '^ *+' conftest.er1 >conftest.err
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
11961 { ac_try='test -s conftest.$ac_objext'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 ac_header_compiler=yes
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_header_compiler=no
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981 echo "${ECHO_T}$ac_header_compiler" >&6; }
11983 # Is the header present?
11984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 #include <$ac_header>
11994 if { (ac_try="$ac_cpp conftest.$ac_ext"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12002 grep -v '^ *+' conftest.er1 >conftest.err
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } >/dev/null; then
12007 if test -s conftest.err; then
12008 ac_cpp_err=$ac_c_preproc_warn_flag
12009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12016 if test -z "$ac_cpp_err"; then
12017 ac_header_preproc=yes
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ac_header_preproc=no
12025 rm -f conftest.err conftest.$ac_ext
12026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12027 echo "${ECHO_T}$ac_header_preproc" >&6; }
12029 # So? What about this header?
12030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12036 ac_header_preproc=yes
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12052 ## ----------------------------------- ##
12053 ## Report this to llvmbugs@cs.uiuc.edu ##
12054 ## ----------------------------------- ##
12056 ) | sed "s/^/$as_me: WARNING: /" >&2
12059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 eval "$as_ac_Header=\$ac_header_preproc"
12066 ac_res=`eval echo '${'$as_ac_Header'}'`
12067 { echo "$as_me:$LINENO: result: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083 for ac_func in strchr index
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099 #define $ac_func innocuous_$ac_func
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12107 # include <limits.h>
12109 # include <assert.h>
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12121 /* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12131 return $ac_func ();
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151 { (case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_try") 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_try") 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
12170 eval "$as_ac_var=yes"
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12175 eval "$as_ac_var=no"
12178 rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12181 ac_res=`eval echo '${'$as_ac_var'}'`
12182 { echo "$as_me:$LINENO: result: $ac_res" >&5
12183 echo "${ECHO_T}$ac_res" >&6; }
12184 if test `eval echo '${'$as_ac_var'}'` = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12194 for ac_func in strrchr rindex
12196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 cat >conftest.$ac_ext <<_ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12210 #define $ac_func innocuous_$ac_func
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char $ac_func (); below.
12214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215 <limits.h> exists even on freestanding compilers. */
12218 # include <limits.h>
12220 # include <assert.h>
12225 /* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined __stub_$ac_func || defined __stub___$ac_func
12242 return $ac_func ();
12247 rm -f conftest.$ac_objext conftest$ac_exeext
12248 if { (ac_try="$ac_link"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262 { (case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_try") 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest$ac_exeext'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 eval "$as_ac_var=yes"
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 eval "$as_ac_var=no"
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12292 ac_res=`eval echo '${'$as_ac_var'}'`
12293 { echo "$as_me:$LINENO: result: $ac_res" >&5
12294 echo "${ECHO_T}$ac_res" >&6; }
12295 if test `eval echo '${'$as_ac_var'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12305 for ac_func in memcpy bcopy
12307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12321 #define $ac_func innocuous_$ac_func
12323 /* System header to define __stub macros and hopefully few prototypes,
12324 which can conflict with char $ac_func (); below.
12325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326 <limits.h> exists even on freestanding compilers. */
12329 # include <limits.h>
12331 # include <assert.h>
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12343 /* The GNU C library defines this for functions which it implements
12344 to always fail with ENOSYS. Some functions are actually named
12345 something starting with __ and the normal name is an alias. */
12346 #if defined __stub_$ac_func || defined __stub___$ac_func
12353 return $ac_func ();
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_link") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373 { (case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_try") 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest$ac_exeext'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 eval "$as_ac_var=yes"
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 eval "$as_ac_var=no"
12400 rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12403 ac_res=`eval echo '${'$as_ac_var'}'`
12404 { echo "$as_me:$LINENO: result: $ac_res" >&5
12405 echo "${ECHO_T}$ac_res" >&6; }
12406 if test `eval echo '${'$as_ac_var'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12416 for ac_func in memmove strcmp
12418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432 #define $ac_func innocuous_$ac_func
12434 /* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char $ac_func (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12440 # include <limits.h>
12442 # include <assert.h>
12447 /* Override any GCC internal prototype to avoid an error.
12448 Use char because int might match the return type of a GCC
12449 builtin and then its argument prototype would still apply. */
12454 /* The GNU C library defines this for functions which it implements
12455 to always fail with ENOSYS. Some functions are actually named
12456 something starting with __ and the normal name is an alias. */
12457 #if defined __stub_$ac_func || defined __stub___$ac_func
12464 return $ac_func ();
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
12478 grep -v '^ *+' conftest.er1 >conftest.err
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12484 { (case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_try") 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 eval "$as_ac_var=yes"
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 eval "$as_ac_var=no"
12511 rm -f core conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12514 ac_res=`eval echo '${'$as_ac_var'}'`
12515 { echo "$as_me:$LINENO: result: $ac_res" >&5
12516 echo "${ECHO_T}$ac_res" >&6; }
12517 if test `eval echo '${'$as_ac_var'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12528 for ac_func in closedir opendir readdir
12530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12544 #define $ac_func innocuous_$ac_func
12546 /* System header to define __stub macros and hopefully few prototypes,
12547 which can conflict with char $ac_func (); below.
12548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12549 <limits.h> exists even on freestanding compilers. */
12552 # include <limits.h>
12554 # include <assert.h>
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12566 /* The GNU C library defines this for functions which it implements
12567 to always fail with ENOSYS. Some functions are actually named
12568 something starting with __ and the normal name is an alias. */
12569 #if defined __stub_$ac_func || defined __stub___$ac_func
12576 return $ac_func ();
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (ac_try="$ac_link"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_link") 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12596 { (case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_try") 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } &&
12605 { ac_try='test -s conftest$ac_exeext'
12606 { (case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_try") 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 eval "$as_ac_var=yes"
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 eval "$as_ac_var=no"
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12626 ac_res=`eval echo '${'$as_ac_var'}'`
12627 { echo "$as_me:$LINENO: result: $ac_res" >&5
12628 echo "${ECHO_T}$ac_res" >&6; }
12629 if test `eval echo '${'$as_ac_var'}'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12638 # Check whether --enable-shared was given.
12639 if test "${enable_shared+set}" = set; then
12640 enableval=$enable_shared; p=${PACKAGE-default}
12642 yes) enable_shared=yes ;;
12643 no) enable_shared=no ;;
12646 # Look at the argument we got. We use all the common list separators.
12647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12648 for pkg in $enableval; do
12650 if test "X$pkg" = "X$p"; then
12662 # Check whether --enable-static was given.
12663 if test "${enable_static+set}" = set; then
12664 enableval=$enable_static; p=${PACKAGE-default}
12666 yes) enable_static=yes ;;
12667 no) enable_static=no ;;
12670 # Look at the argument we got. We use all the common list separators.
12671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12672 for pkg in $enableval; do
12674 if test "X$pkg" = "X$p"; then
12686 # Check whether --enable-fast-install was given.
12687 if test "${enable_fast_install+set}" = set; then
12688 enableval=$enable_fast_install; p=${PACKAGE-default}
12690 yes) enable_fast_install=yes ;;
12691 no) enable_fast_install=no ;;
12693 enable_fast_install=no
12694 # Look at the argument we got. We use all the common list separators.
12695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12696 for pkg in $enableval; do
12698 if test "X$pkg" = "X$p"; then
12699 enable_fast_install=yes
12706 enable_fast_install=yes
12710 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12711 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12712 if test "${lt_cv_path_SED+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 # Loop through the user's path and test for sed and gsed.
12716 # Then use that list of sed's as ones to test for truncation.
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $PATH
12721 test -z "$as_dir" && as_dir=.
12722 for lt_ac_prog in sed gsed; do
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12725 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12732 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12733 # along with /bin/sed that truncates output.
12734 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12735 test ! -f $lt_ac_sed && continue
12736 cat /dev/null > conftest.in
12738 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12739 # Check for GNU sed and select it if it is found.
12740 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12741 lt_cv_path_SED=$lt_ac_sed
12745 cat conftest.in conftest.in >conftest.tmp
12746 mv conftest.tmp conftest.in
12747 cp conftest.in conftest.nl
12749 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12750 cmp -s conftest.out conftest.nl || break
12751 # 10000 chars as input seems more than enough
12752 test $lt_ac_count -gt 10 && break
12753 lt_ac_count=`expr $lt_ac_count + 1`
12754 if test $lt_ac_count -gt $lt_ac_max; then
12755 lt_ac_max=$lt_ac_count
12756 lt_cv_path_SED=$lt_ac_sed
12763 SED=$lt_cv_path_SED
12764 { echo "$as_me:$LINENO: result: $SED" >&5
12765 echo "${ECHO_T}$SED" >&6; }
12768 # Check whether --with-gnu-ld was given.
12769 if test "${with_gnu_ld+set}" = set; then
12770 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12776 if test "$GCC" = yes; then
12777 # Check if gcc -print-prog-name=ld gives a path.
12778 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12779 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12782 # gcc leaves a trailing carriage return which upsets mingw
12783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12788 # Accept absolute paths.
12790 re_direlt='/[^/][^/]*/\.\./'
12791 # Canonicalize the pathname of ld
12792 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12793 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12794 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12796 test -z "$LD" && LD="$ac_prog"
12799 # If it fails, then pretend we aren't using GCC.
12803 # If it is relative, then search for the first ld in PATH.
12804 with_gnu_ld=unknown
12807 elif test "$with_gnu_ld" = yes; then
12808 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12809 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12811 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12812 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12814 if test "${lt_cv_path_LD+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 if test -z "$LD"; then
12818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12819 for ac_dir in $PATH; do
12821 test -z "$ac_dir" && ac_dir=.
12822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12823 lt_cv_path_LD="$ac_dir/$ac_prog"
12824 # Check to see if the program is GNU ld. I'd rather use --version,
12825 # but apparently some variants of GNU ld only accept -v.
12826 # Break only if it was the GNU/non-GNU ld that we prefer.
12827 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12828 *GNU* | *'with BFD'*)
12829 test "$with_gnu_ld" != no && break
12832 test "$with_gnu_ld" != yes && break
12839 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12843 LD="$lt_cv_path_LD"
12844 if test -n "$LD"; then
12845 { echo "$as_me:$LINENO: result: $LD" >&5
12846 echo "${ECHO_T}$LD" >&6; }
12848 { echo "$as_me:$LINENO: result: no" >&5
12849 echo "${ECHO_T}no" >&6; }
12851 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12852 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12853 { (exit 1); exit 1; }; }
12854 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12855 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12856 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12860 case `$LD -v 2>&1 </dev/null` in
12861 *GNU* | *'with BFD'*)
12862 lt_cv_prog_gnu_ld=yes
12865 lt_cv_prog_gnu_ld=no
12869 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12870 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12871 with_gnu_ld=$lt_cv_prog_gnu_ld
12874 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12875 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12876 if test "${lt_cv_ld_reload_flag+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 lt_cv_ld_reload_flag='-r'
12881 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12882 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12883 reload_flag=$lt_cv_ld_reload_flag
12884 case $reload_flag in
12886 *) reload_flag=" $reload_flag" ;;
12888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12891 if test "$GCC" = yes; then
12892 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12899 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12900 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12901 if test "${lt_cv_deplibs_check_method+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 lt_cv_file_magic_cmd='$MAGIC_CMD'
12905 lt_cv_file_magic_test_file=
12906 lt_cv_deplibs_check_method='unknown'
12907 # Need to set the preceding variable on all platforms that support
12908 # interlibrary dependencies.
12909 # 'none' -- dependencies not supported.
12910 # `unknown' -- same as none, but documents that we really don't know.
12911 # 'pass_all' -- all dependencies passed with no checks.
12912 # 'test_compile' -- check by making test program.
12913 # 'file_magic [[regex]]' -- check by looking for files in library path
12914 # which responds to the $file_magic_cmd with a given extended regex.
12915 # If you have `file' or equivalent on your system and you're not sure
12916 # whether `pass_all' will *always* work, you probably want this one.
12920 lt_cv_deplibs_check_method=pass_all
12924 lt_cv_deplibs_check_method=pass_all
12928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12929 lt_cv_file_magic_cmd='/usr/bin/file -L'
12930 lt_cv_file_magic_test_file=/shlib/libc.so
12934 # func_win32_libid is a shell function defined in ltmain.sh
12935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12936 lt_cv_file_magic_cmd='func_win32_libid'
12940 # Base MSYS/MinGW do not provide the 'file' command needed by
12941 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12942 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12943 lt_cv_file_magic_cmd='$OBJDUMP -f'
12946 darwin* | rhapsody*)
12947 lt_cv_deplibs_check_method=pass_all
12950 freebsd* | kfreebsd*-gnu | dragonfly*)
12951 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12954 # Not sure whether the presence of OpenBSD here was a mistake.
12955 # Let's accept both of them until this is cleared up.
12956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12957 lt_cv_file_magic_cmd=/usr/bin/file
12958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12962 lt_cv_deplibs_check_method=pass_all
12967 lt_cv_deplibs_check_method=pass_all
12970 hpux10.20* | hpux11*)
12971 lt_cv_file_magic_cmd=/usr/bin/file
12974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12978 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]'
12979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12983 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12993 irix5* | irix6* | nonstopux*)
12995 *-32|*"-32 ") libmagic=32-bit;;
12996 *-n32|*"-n32 ") libmagic=N32;;
12997 *-64|*"-64 ") libmagic=64-bit;;
12998 *) libmagic=never-match;;
13000 lt_cv_deplibs_check_method=pass_all
13003 # This must be Linux ELF.
13005 lt_cv_deplibs_check_method=pass_all
13009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13018 lt_cv_file_magic_cmd=/usr/bin/file
13019 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13023 lt_cv_deplibs_check_method=unknown
13027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13034 osf3* | osf4* | osf5*)
13035 lt_cv_deplibs_check_method=pass_all
13039 lt_cv_deplibs_check_method=pass_all
13043 case $host_vendor in
13045 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]'
13046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13049 lt_cv_deplibs_check_method=pass_all
13052 lt_cv_file_magic_cmd='/bin/file'
13053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13056 lt_cv_file_magic_cmd='/bin/file'
13057 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13058 lt_cv_file_magic_test_file=/lib/libc.so
13061 lt_cv_deplibs_check_method=pass_all
13064 lt_cv_deplibs_check_method=pass_all
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13070 lt_cv_deplibs_check_method=pass_all
13075 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13076 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13077 file_magic_cmd=$lt_cv_file_magic_cmd
13078 deplibs_check_method=$lt_cv_deplibs_check_method
13079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13083 # If no C compiler was specified, use CC.
13086 # If no C compiler flags were specified, use CFLAGS.
13087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13089 # Allow CC to be a program name with arguments.
13092 # Check whether --enable-libtool-lock was given.
13093 if test "${enable_libtool_lock+set}" = set; then
13094 enableval=$enable_libtool_lock;
13097 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13099 # Some flags need to be propagated to the compiler or linker for good
13103 # Find out which ABI we are using.
13104 echo 'int i;' > conftest.$ac_ext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106 (eval $ac_compile) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; then
13110 case `/usr/bin/file conftest.$ac_objext` in
13112 HPUX_IA64_MODE="32"
13115 HPUX_IA64_MODE="64"
13122 # Find out which ABI we are using.
13123 echo '#line 13123 "configure"' > conftest.$ac_ext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125 (eval $ac_compile) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; then
13129 if test "$lt_cv_prog_gnu_ld" = yes; then
13130 case `/usr/bin/file conftest.$ac_objext` in
13132 LD="${LD-ld} -melf32bsmip"
13135 LD="${LD-ld} -melf32bmipn32"
13138 LD="${LD-ld} -melf64bmip"
13142 case `/usr/bin/file conftest.$ac_objext` in
13158 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13159 # Find out which ABI we are using.
13160 echo 'int i;' > conftest.$ac_ext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; then
13166 case `/usr/bin/file conftest.o` in
13170 LD="${LD-ld} -m elf_i386"
13172 ppc64-*linux*|powerpc64-*linux*)
13173 LD="${LD-ld} -m elf32ppclinux"
13176 LD="${LD-ld} -m elf_s390"
13179 LD="${LD-ld} -m elf32_sparc"
13186 LD="${LD-ld} -m elf_x86_64"
13188 ppc*-*linux*|powerpc*-*linux*)
13189 LD="${LD-ld} -m elf64ppc"
13192 LD="${LD-ld} -m elf64_s390"
13195 LD="${LD-ld} -m elf64_sparc"
13205 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13206 SAVE_CFLAGS="$CFLAGS"
13207 CFLAGS="$CFLAGS -belf"
13208 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13209 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13210 if test "${lt_cv_cc_needs_belf+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 ac_cpp='$CPP $CPPFLAGS'
13215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest$ac_exeext'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 lt_cv_cc_needs_belf=yes
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 lt_cv_cc_needs_belf=no
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13279 ac_cpp='$CPP $CPPFLAGS'
13280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13285 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13286 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13287 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13288 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13289 CFLAGS="$SAVE_CFLAGS"
13293 # Find out which ABI we are using.
13294 echo 'int i;' > conftest.$ac_ext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; then
13300 case `/usr/bin/file conftest.o` in
13302 case $lt_cv_prog_gnu_ld in
13303 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13304 *) LD="${LD-ld} -64" ;;
13315 need_locks="$enable_libtool_lock"
13320 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13321 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13322 (test "X$CXX" != "Xg++"))) ; then
13324 ac_cpp='$CXXCPP $CPPFLAGS'
13325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13328 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13329 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13330 if test -z "$CXXCPP"; then
13331 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 # Double quotes because CXXCPP needs to be expanded
13335 for CXXCPP in "$CXX -E" "/lib/cpp"
13337 ac_preproc_ok=false
13338 for ac_cxx_preproc_warn_flag in '' yes
13340 # Use a header file that comes with gcc, so configuring glibc
13341 # with a fresh cross-compiler works.
13342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13343 # <limits.h> exists even on freestanding compilers.
13344 # On the NeXT, cc -E runs the code through the compiler's parser,
13345 # not just through cpp. "Syntax error" is here to catch this case.
13346 cat >conftest.$ac_ext <<_ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13353 # include <limits.h>
13355 # include <assert.h>
13359 if { (ac_try="$ac_cpp conftest.$ac_ext"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } >/dev/null; then
13372 if test -s conftest.err; then
13373 ac_cpp_err=$ac_cxx_preproc_warn_flag
13374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13381 if test -z "$ac_cpp_err"; then
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 # Broken: fails on valid input.
13391 rm -f conftest.err conftest.$ac_ext
13393 # OK, works on sane cases. Now check whether nonexistent headers
13394 # can be detected and how.
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 #include <ac_nonexistent.h>
13403 if { (ac_try="$ac_cpp conftest.$ac_ext"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } >/dev/null; then
13416 if test -s conftest.err; then
13417 ac_cpp_err=$ac_cxx_preproc_warn_flag
13418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13425 if test -z "$ac_cpp_err"; then
13426 # Broken: success on invalid input.
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 # Passes both tests.
13437 rm -f conftest.err conftest.$ac_ext
13440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13441 rm -f conftest.err conftest.$ac_ext
13442 if $ac_preproc_ok; then
13447 ac_cv_prog_CXXCPP=$CXXCPP
13450 CXXCPP=$ac_cv_prog_CXXCPP
13452 ac_cv_prog_CXXCPP=$CXXCPP
13454 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13455 echo "${ECHO_T}$CXXCPP" >&6; }
13456 ac_preproc_ok=false
13457 for ac_cxx_preproc_warn_flag in '' yes
13459 # Use a header file that comes with gcc, so configuring glibc
13460 # with a fresh cross-compiler works.
13461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13462 # <limits.h> exists even on freestanding compilers.
13463 # On the NeXT, cc -E runs the code through the compiler's parser,
13464 # not just through cpp. "Syntax error" is here to catch this case.
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 # include <limits.h>
13474 # include <assert.h>
13478 if { (ac_try="$ac_cpp conftest.$ac_ext"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13486 grep -v '^ *+' conftest.er1 >conftest.err
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } >/dev/null; then
13491 if test -s conftest.err; then
13492 ac_cpp_err=$ac_cxx_preproc_warn_flag
13493 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13500 if test -z "$ac_cpp_err"; then
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 # Broken: fails on valid input.
13510 rm -f conftest.err conftest.$ac_ext
13512 # OK, works on sane cases. Now check whether nonexistent headers
13513 # can be detected and how.
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 #include <ac_nonexistent.h>
13522 if { (ac_try="$ac_cpp conftest.$ac_ext"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13530 grep -v '^ *+' conftest.er1 >conftest.err
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } >/dev/null; then
13535 if test -s conftest.err; then
13536 ac_cpp_err=$ac_cxx_preproc_warn_flag
13537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13544 if test -z "$ac_cpp_err"; then
13545 # Broken: success on invalid input.
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 # Passes both tests.
13556 rm -f conftest.err conftest.$ac_ext
13559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13560 rm -f conftest.err conftest.$ac_ext
13561 if $ac_preproc_ok; then
13564 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13565 See \`config.log' for more details." >&5
13566 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13567 See \`config.log' for more details." >&2;}
13568 { (exit 1); exit 1; }; }
13572 ac_cpp='$CXXCPP $CPPFLAGS'
13573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13581 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13582 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13583 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13584 if test -n "$ac_tool_prefix"; then
13585 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
13587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13591 if test "${ac_cv_prog_F77+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 if test -n "$F77"; then
13595 ac_cv_prog_F77="$F77" # Let the user override the test.
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
13603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13604 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13614 F77=$ac_cv_prog_F77
13615 if test -n "$F77"; then
13616 { echo "$as_me:$LINENO: result: $F77" >&5
13617 echo "${ECHO_T}$F77" >&6; }
13619 { echo "$as_me:$LINENO: result: no" >&5
13620 echo "${ECHO_T}no" >&6; }
13624 test -n "$F77" && break
13627 if test -z "$F77"; then
13629 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
13631 # Extract the first word of "$ac_prog", so it can be a program name with args.
13632 set dummy $ac_prog; ac_word=$2
13633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13635 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 if test -n "$ac_ct_F77"; then
13639 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH
13645 test -z "$as_dir" && as_dir=.
13646 for ac_exec_ext in '' $ac_executable_extensions; do
13647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13648 ac_cv_prog_ac_ct_F77="$ac_prog"
13649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13659 if test -n "$ac_ct_F77"; then
13660 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13661 echo "${ECHO_T}$ac_ct_F77" >&6; }
13663 { echo "$as_me:$LINENO: result: no" >&5
13664 echo "${ECHO_T}no" >&6; }
13668 test -n "$ac_ct_F77" && break
13671 if test "x$ac_ct_F77" = x; then
13674 case $cross_compiling:$ac_tool_warned in
13676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13677 whose name does not start with the host triplet. If you think this
13678 configuration is useful to you, please write to autoconf@gnu.org." >&5
13679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13680 whose name does not start with the host triplet. If you think this
13681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13682 ac_tool_warned=yes ;;
13689 # Provide some information about the compiler.
13690 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13691 ac_compiler=`set X $ac_compile; echo $2`
13692 { (ac_try="$ac_compiler --version >&5"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compiler --version >&5") 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }
13702 { (ac_try="$ac_compiler -v >&5"
13703 case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_compiler -v >&5") 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }
13712 { (ac_try="$ac_compiler -V >&5"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compiler -V >&5") 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }
13724 # If we don't use `.F' as extension, the preprocessor is not run on the
13725 # input file. (Note that this only needs to work for GNU compilers.)
13726 ac_save_ext=$ac_ext
13728 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13729 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13730 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 cat >conftest.$ac_ext <<_ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_compiler_gnu=yes
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13787 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13788 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13789 ac_ext=$ac_save_ext
13790 ac_test_FFLAGS=${FFLAGS+set}
13791 ac_save_FFLAGS=$FFLAGS
13793 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13794 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13795 if test "${ac_cv_prog_f77_g+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13804 rm -f conftest.$ac_objext
13805 if { (ac_try="$ac_compile"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_compile") 2>conftest.er1
13813 grep -v '^ *+' conftest.er1 >conftest.err
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_prog_f77_g=yes
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_cv_prog_f77_g=no
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13850 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13851 if test "$ac_test_FFLAGS" = set; then
13852 FFLAGS=$ac_save_FFLAGS
13853 elif test $ac_cv_prog_f77_g = yes; then
13854 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13860 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13867 G77=`test $ac_compiler_gnu = yes && echo yes`
13869 ac_cpp='$CPP $CPPFLAGS'
13870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13876 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13878 # find the maximum length of command line arguments
13879 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13880 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13881 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 # On DJGPP, this test can blow up pretty badly due to problems in libc
13890 # (any single argument exceeding 2000 bytes causes a buffer overrun
13891 # during glob expansion). Even if it were fixed, the result of this
13892 # check would be larger than it should be.
13893 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13897 # Under GNU Hurd, this test is not required because there is
13898 # no limit to the length of command line arguments.
13899 # Libtool will interpret -1 as no limit whatsoever
13900 lt_cv_sys_max_cmd_len=-1;
13904 # On Win9x/ME, this test blows up -- it succeeds, but takes
13905 # about 5 minutes as the teststring grows exponentially.
13906 # Worse, since 9x/ME are not pre-emptively multitasking,
13907 # you end up with a "frozen" computer, even though with patience
13908 # the test eventually succeeds (with a max line length of 256k).
13909 # Instead, let's just punt: use the minimum linelength reported by
13910 # all of the supported platforms: 8192 (on NT/2K/XP).
13911 lt_cv_sys_max_cmd_len=8192;
13915 # On AmigaOS with pdksh, this test takes hours, literally.
13916 # So we just punt and use a minimum line length of 8192.
13917 lt_cv_sys_max_cmd_len=8192;
13920 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13921 # This has been around since 386BSD, at least. Likely further.
13922 if test -x /sbin/sysctl; then
13923 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13924 elif test -x /usr/sbin/sysctl; then
13925 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13927 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13929 # And add a safety zone
13930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13935 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13936 lt_cv_sys_max_cmd_len=196608
13940 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13941 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13942 # nice to cause kernel panics so lets avoid the loop below.
13943 # First set a reasonable default.
13944 lt_cv_sys_max_cmd_len=16384
13946 if test -x /sbin/sysconfig; then
13947 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13948 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13953 lt_cv_sys_max_cmd_len=102400
13955 sysv5* | sco5v6* | sysv4.2uw2*)
13956 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13957 if test -n "$kargmax"; then
13958 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13960 lt_cv_sys_max_cmd_len=32768
13964 # If test is not a shell built-in, we'll probably end up computing a
13965 # maximum length that is only half of the actual maximum length, but
13967 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13968 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13969 = "XX$teststring") >/dev/null 2>&1 &&
13970 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13971 lt_cv_sys_max_cmd_len=$new_result &&
13972 test $i != 17 # 1/2 MB should be enough
13975 teststring=$teststring$teststring
13978 # Add a significant safety factor because C++ compilers can tack on massive
13979 # amounts of additional arguments before passing them to the linker.
13980 # It appears as though 1/2 is a usable value.
13981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13987 if test -n $lt_cv_sys_max_cmd_len ; then
13988 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13989 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13991 { echo "$as_me:$LINENO: result: none" >&5
13992 echo "${ECHO_T}none" >&6; }
13998 # Check for command to grab the raw symbol name followed by C symbol from nm.
13999 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14000 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14001 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 # These are sane defaults that work on at least a few old systems.
14006 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14008 # Character class describing NM global symbol codes.
14009 symcode='[BCDEGRST]'
14011 # Regexp to match symbols that can be accessed directly from C.
14012 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14014 # Transform an extracted symbol line into a proper C declaration
14015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14017 # Transform an extracted symbol line into symbol name and symbol address
14018 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'"
14020 # Define system-specific variables.
14025 cygwin* | mingw* | pw32*)
14026 symcode='[ABCDGISTW]'
14028 hpux*) # Its linker distinguishes data from code symbols
14029 if test "$host_cpu" = ia64; then
14030 symcode='[ABCDEGRST]'
14032 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14033 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'"
14036 if test "$host_cpu" = ia64; then
14037 symcode='[ABCDGIRSTW]'
14038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14039 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'"
14042 irix* | nonstopux*)
14043 symcode='[BCDEGRST]'
14046 symcode='[BCDEGQRST]'
14057 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14065 # Handle CRLF in mingw tool chain
14069 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14073 # If we're using GNU nm, then use its standard symbol codes.
14074 case `$NM -V 2>&1` in
14075 *GNU* | *'with BFD'*)
14076 symcode='[ABCDGIRSTW]' ;;
14079 # Try without a prefix undercore, then with it.
14080 for ac_symprfx in "" "_"; do
14082 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14083 symxfrm="\\1 $ac_symprfx\\2 \\2"
14085 # Write the raw and C identifiers.
14086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14088 # Check to see that the pipe works correctly.
14092 cat > conftest.$ac_ext <<EOF
14097 void nm_test_func(){}
14101 int main(){nm_test_var='a';nm_test_func();return(0);}
14104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105 (eval $ac_compile) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; then
14109 # Now try to grab the symbols.
14111 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14112 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && test -s "$nlist"; then
14116 # Try sorting and uniquifying the output.
14117 if sort "$nlist" | uniq > "$nlist"T; then
14118 mv -f "$nlist"T "$nlist"
14123 # Make sure that we snagged all the symbols we need.
14124 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14125 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14126 cat <<EOF > conftest.$ac_ext
14132 # Now generate the symbol file.
14133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14135 cat <<EOF >> conftest.$ac_ext
14136 #if defined (__STDC__) && __STDC__
14137 # define lt_ptr_t void *
14139 # define lt_ptr_t char *
14143 /* The mapping between symbol names and symbols. */
14148 lt_preloaded_symbols[] =
14151 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14152 cat <<\EOF >> conftest.$ac_ext
14160 # Now try linking the two files.
14161 mv conftest.$ac_objext conftstm.$ac_objext
14162 lt_save_LIBS="$LIBS"
14163 lt_save_CFLAGS="$CFLAGS"
14164 LIBS="conftstm.$ac_objext"
14165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14167 (eval $ac_link) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14173 LIBS="$lt_save_LIBS"
14174 CFLAGS="$lt_save_CFLAGS"
14176 echo "cannot find nm_test_func in $nlist" >&5
14179 echo "cannot find nm_test_var in $nlist" >&5
14182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14185 echo "$progname: failed program was:" >&5
14186 cat conftest.$ac_ext >&5
14188 rm -f conftest* conftst*
14190 # Do not use the global_symbol_pipe unless it works.
14191 if test "$pipe_works" = yes; then
14194 lt_cv_sys_global_symbol_pipe=
14200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14201 lt_cv_sys_global_symbol_to_cdecl=
14203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14204 { echo "$as_me:$LINENO: result: failed" >&5
14205 echo "${ECHO_T}failed" >&6; }
14207 { echo "$as_me:$LINENO: result: ok" >&5
14208 echo "${ECHO_T}ok" >&6; }
14211 { echo "$as_me:$LINENO: checking for objdir" >&5
14212 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14213 if test "${lt_cv_objdir+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 rm -f .libs 2>/dev/null
14217 mkdir .libs 2>/dev/null
14218 if test -d .libs; then
14221 # MS-DOS does not allow filenames that begin with a dot.
14224 rmdir .libs 2>/dev/null
14226 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14227 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14228 objdir=$lt_cv_objdir
14236 # AIX sometimes has problems with the GCC collect2 program. For some
14237 # reason, if we set the COLLECT_NAMES environment variable, the problems
14238 # vanish in a puff of smoke.
14239 if test "X${COLLECT_NAMES+set}" != Xset; then
14241 export COLLECT_NAMES
14246 # Sed substitution that helps us do robust quoting. It backslashifies
14247 # metacharacters that are still active within double-quoted strings.
14248 Xsed='sed -e 1s/^X//'
14249 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14251 # Same as above, but do not quote variable references.
14252 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14254 # Sed substitution to delay expansion of an escaped shell variable in a
14255 # double_quote_subst'ed string.
14256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14258 # Sed substitution to avoid accidental globbing in evaled expressions
14259 no_glob_subst='s/\*/\\\*/g'
14264 # Global variables:
14265 default_ofile=mklib
14266 can_build_shared=yes
14268 # All known linkers require a `.a' archive for static linking (except MSVC,
14269 # which needs '.lib').
14271 ltmain="$ac_aux_dir/ltmain.sh"
14272 ofile="$default_ofile"
14273 with_gnu_ld="$lt_cv_prog_gnu_ld"
14275 if test -n "$ac_tool_prefix"; then
14276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14277 set dummy ${ac_tool_prefix}ar; ac_word=$2
14278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14280 if test "${ac_cv_prog_AR+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 if test -n "$AR"; then
14284 ac_cv_prog_AR="$AR" # Let the user override the test.
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14293 ac_cv_prog_AR="${ac_tool_prefix}ar"
14294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14304 if test -n "$AR"; then
14305 { echo "$as_me:$LINENO: result: $AR" >&5
14306 echo "${ECHO_T}$AR" >&6; }
14308 { echo "$as_me:$LINENO: result: no" >&5
14309 echo "${ECHO_T}no" >&6; }
14314 if test -z "$ac_cv_prog_AR"; then
14316 # Extract the first word of "ar", so it can be a program name with args.
14317 set dummy ar; ac_word=$2
14318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14320 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 if test -n "$ac_ct_AR"; then
14324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
14332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14333 ac_cv_prog_ac_ct_AR="ar"
14334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14344 if test -n "$ac_ct_AR"; then
14345 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14346 echo "${ECHO_T}$ac_ct_AR" >&6; }
14348 { echo "$as_me:$LINENO: result: no" >&5
14349 echo "${ECHO_T}no" >&6; }
14352 if test "x$ac_ct_AR" = x; then
14355 case $cross_compiling:$ac_tool_warned in
14357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14358 whose name does not start with the host triplet. If you think this
14359 configuration is useful to you, please write to autoconf@gnu.org." >&5
14360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14361 whose name does not start with the host triplet. If you think this
14362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14363 ac_tool_warned=yes ;;
14368 AR="$ac_cv_prog_AR"
14371 if test -n "$ac_tool_prefix"; then
14372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14376 if test "${ac_cv_prog_RANLIB+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 if test -n "$RANLIB"; then
14380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 RANLIB=$ac_cv_prog_RANLIB
14400 if test -n "$RANLIB"; then
14401 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14402 echo "${ECHO_T}$RANLIB" >&6; }
14404 { echo "$as_me:$LINENO: result: no" >&5
14405 echo "${ECHO_T}no" >&6; }
14410 if test -z "$ac_cv_prog_RANLIB"; then
14411 ac_ct_RANLIB=$RANLIB
14412 # Extract the first word of "ranlib", so it can be a program name with args.
14413 set dummy ranlib; ac_word=$2
14414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 if test -n "$ac_ct_RANLIB"; then
14420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
14428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14429 ac_cv_prog_ac_ct_RANLIB="ranlib"
14430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14440 if test -n "$ac_ct_RANLIB"; then
14441 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14442 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14444 { echo "$as_me:$LINENO: result: no" >&5
14445 echo "${ECHO_T}no" >&6; }
14448 if test "x$ac_ct_RANLIB" = x; then
14451 case $cross_compiling:$ac_tool_warned in
14453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14454 whose name does not start with the host triplet. If you think this
14455 configuration is useful to you, please write to autoconf@gnu.org." >&5
14456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14457 whose name does not start with the host triplet. If you think this
14458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14459 ac_tool_warned=yes ;;
14461 RANLIB=$ac_ct_RANLIB
14464 RANLIB="$ac_cv_prog_RANLIB"
14467 if test -n "$ac_tool_prefix"; then
14468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14469 set dummy ${ac_tool_prefix}strip; ac_word=$2
14470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14472 if test "${ac_cv_prog_STRIP+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 if test -n "$STRIP"; then
14476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479 for as_dir in $PATH
14482 test -z "$as_dir" && as_dir=.
14483 for ac_exec_ext in '' $ac_executable_extensions; do
14484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14485 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 STRIP=$ac_cv_prog_STRIP
14496 if test -n "$STRIP"; then
14497 { echo "$as_me:$LINENO: result: $STRIP" >&5
14498 echo "${ECHO_T}$STRIP" >&6; }
14500 { echo "$as_me:$LINENO: result: no" >&5
14501 echo "${ECHO_T}no" >&6; }
14506 if test -z "$ac_cv_prog_STRIP"; then
14508 # Extract the first word of "strip", so it can be a program name with args.
14509 set dummy strip; ac_word=$2
14510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14512 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 if test -n "$ac_ct_STRIP"; then
14516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14525 ac_cv_prog_ac_ct_STRIP="strip"
14526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14536 if test -n "$ac_ct_STRIP"; then
14537 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14538 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14540 { echo "$as_me:$LINENO: result: no" >&5
14541 echo "${ECHO_T}no" >&6; }
14544 if test "x$ac_ct_STRIP" = x; then
14547 case $cross_compiling:$ac_tool_warned in
14549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14550 whose name does not start with the host triplet. If you think this
14551 configuration is useful to you, please write to autoconf@gnu.org." >&5
14552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14553 whose name does not start with the host triplet. If you think this
14554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14555 ac_tool_warned=yes ;;
14560 STRIP="$ac_cv_prog_STRIP"
14565 old_CFLAGS="$CFLAGS"
14567 # Set sane defaults for various variables
14568 test -z "$AR" && AR=ar
14569 test -z "$AR_FLAGS" && AR_FLAGS=cru
14570 test -z "$AS" && AS=as
14571 test -z "$CC" && CC=cc
14572 test -z "$LTCC" && LTCC=$CC
14573 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14574 test -z "$DLLTOOL" && DLLTOOL=dlltool
14575 test -z "$LD" && LD=ld
14576 test -z "$LN_S" && LN_S="ln -s"
14577 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14578 test -z "$NM" && NM=nm
14579 test -z "$SED" && SED=sed
14580 test -z "$OBJDUMP" && OBJDUMP=objdump
14581 test -z "$RANLIB" && RANLIB=:
14582 test -z "$STRIP" && STRIP=:
14583 test -z "$ac_objext" && ac_objext=o
14585 # Determine commands to create old-style static archives.
14586 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14587 old_postinstall_cmds='chmod 644 $oldlib'
14588 old_postuninstall_cmds=
14590 if test -n "$RANLIB"; then
14593 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14599 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14602 for cc_temp in $compiler""; do
14604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14610 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14613 # Only perform the check for file, if the check method requires it
14614 case $deplibs_check_method in
14616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14617 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14618 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14627 lt_save_MAGIC_CMD="$MAGIC_CMD"
14628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14630 for ac_dir in $ac_dummy; do
14632 test -z "$ac_dir" && ac_dir=.
14633 if test -f $ac_dir/${ac_tool_prefix}file; then
14634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14635 if test -n "$file_magic_test_file"; then
14636 case $deplibs_check_method in
14638 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14641 $EGREP "$file_magic_regex" > /dev/null; then
14646 *** Warning: the command libtool uses to detect shared libraries,
14647 *** $file_magic_cmd, produces output that libtool cannot recognize.
14648 *** The result is that libtool may fail to recognize shared libraries
14649 *** as such. This will affect the creation of libtool libraries that
14650 *** depend on shared libraries, but programs linked with such libtool
14651 *** libraries will work regardless of this problem. Nevertheless, you
14652 *** may want to report the problem to your system manager and/or to
14653 *** bug-libtool@gnu.org
14663 MAGIC_CMD="$lt_save_MAGIC_CMD"
14668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14669 if test -n "$MAGIC_CMD"; then
14670 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14671 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14673 { echo "$as_me:$LINENO: result: no" >&5
14674 echo "${ECHO_T}no" >&6; }
14677 if test -z "$lt_cv_path_MAGIC_CMD"; then
14678 if test -n "$ac_tool_prefix"; then
14679 { echo "$as_me:$LINENO: checking for file" >&5
14680 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14689 lt_save_MAGIC_CMD="$MAGIC_CMD"
14690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14692 for ac_dir in $ac_dummy; do
14694 test -z "$ac_dir" && ac_dir=.
14695 if test -f $ac_dir/file; then
14696 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14697 if test -n "$file_magic_test_file"; then
14698 case $deplibs_check_method in
14700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14703 $EGREP "$file_magic_regex" > /dev/null; then
14708 *** Warning: the command libtool uses to detect shared libraries,
14709 *** $file_magic_cmd, produces output that libtool cannot recognize.
14710 *** The result is that libtool may fail to recognize shared libraries
14711 *** as such. This will affect the creation of libtool libraries that
14712 *** depend on shared libraries, but programs linked with such libtool
14713 *** libraries will work regardless of this problem. Nevertheless, you
14714 *** may want to report the problem to your system manager and/or to
14715 *** bug-libtool@gnu.org
14725 MAGIC_CMD="$lt_save_MAGIC_CMD"
14730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14731 if test -n "$MAGIC_CMD"; then
14732 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14733 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14735 { echo "$as_me:$LINENO: result: no" >&5
14736 echo "${ECHO_T}no" >&6; }
14749 enable_win32_dll=no
14751 # Check whether --enable-libtool-lock was given.
14752 if test "${enable_libtool_lock+set}" = set; then
14753 enableval=$enable_libtool_lock;
14756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14759 # Check whether --with-pic was given.
14760 if test "${with_pic+set}" = set; then
14761 withval=$with_pic; pic_mode="$withval"
14766 test -z "$pic_mode" && pic_mode=default
14768 # Use C for the default configuration in the libtool script
14772 ac_cpp='$CPP $CPPFLAGS'
14773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14778 # Source file extension for C test sources.
14781 # Object file extension for compiled C test sources.
14785 # Code to be used in simple compile tests
14786 lt_simple_compile_test_code="int some_variable = 0;\n"
14788 # Code to be used in simple link tests
14789 lt_simple_link_test_code='int main(){return(0);}\n'
14792 # If no C compiler was specified, use CC.
14795 # If no C compiler flags were specified, use CFLAGS.
14796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14798 # Allow CC to be a program name with arguments.
14802 # save warnings/boilerplate of simple test code
14803 ac_outfile=conftest.$ac_objext
14804 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14805 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14806 _lt_compiler_boilerplate=`cat conftest.err`
14809 ac_outfile=conftest.$ac_objext
14810 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14811 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14812 _lt_linker_boilerplate=`cat conftest.err`
14817 lt_prog_compiler_no_builtin_flag=
14819 if test "$GCC" = yes; then
14820 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14823 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14824 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14825 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 lt_cv_prog_compiler_rtti_exceptions=no
14829 ac_outfile=conftest.$ac_objext
14830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14831 lt_compiler_flag="-fno-rtti -fno-exceptions"
14832 # Insert the option either (1) after the last *FLAGS variable, or
14833 # (2) before a word containing "conftest.", or (3) at the end.
14834 # Note that $ac_compile itself does not contain backslashes and begins
14835 # with a dollar sign (not a hyphen), so the echo should work correctly.
14836 # The option is referenced via a variable to avoid confusing sed.
14837 lt_compile=`echo "$ac_compile" | $SED \
14838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840 -e 's:$: $lt_compiler_flag:'`
14841 (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
14842 (eval "$lt_compile" 2>conftest.err)
14844 cat conftest.err >&5
14845 echo "$as_me:14845: \$? = $ac_status" >&5
14846 if (exit $ac_status) && test -s "$ac_outfile"; then
14847 # The compiler can only warn and ignore the option if not recognized
14848 # So say no if there are warnings other than the usual output.
14849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14852 lt_cv_prog_compiler_rtti_exceptions=yes
14858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14859 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14862 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14869 lt_prog_compiler_wl=
14870 lt_prog_compiler_pic=
14871 lt_prog_compiler_static=
14873 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14874 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14876 if test "$GCC" = yes; then
14877 lt_prog_compiler_wl='-Wl,'
14878 lt_prog_compiler_static='-static'
14882 # All AIX code is PIC.
14883 if test "$host_cpu" = ia64; then
14884 # AIX 5 now supports IA64 processor
14885 lt_prog_compiler_static='-Bstatic'
14890 # FIXME: we need at least 68020 code to build shared libraries, but
14891 # adding the `-m68020' flag to GCC prevents building anything better,
14893 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14896 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14897 # PIC is the default for these OSes.
14900 mingw* | pw32* | os2*)
14901 # This hack is so that the source file can tell whether it is being
14902 # built for inclusion in a dll (and should export symbols for example).
14903 lt_prog_compiler_pic='-DDLL_EXPORT'
14906 darwin* | rhapsody*)
14907 # PIC is the default on this platform
14908 # Common symbols not allowed in MH_DYLIB files
14909 lt_prog_compiler_pic='-fno-common'
14913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14914 # Instead, we relocate shared libraries at runtime.
14918 # Just because we use GCC doesn't mean we suddenly get shared libraries
14919 # on systems that don't support them.
14920 lt_prog_compiler_can_build_shared=no
14925 if test -d /usr/nec; then
14926 lt_prog_compiler_pic=-Kconform_pic
14931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932 # not for PA HP-UX.
14938 lt_prog_compiler_pic='-fPIC'
14944 lt_prog_compiler_pic='-fPIC'
14948 # PORTME Check for flag to pass linker flags through the system compiler.
14951 lt_prog_compiler_wl='-Wl,'
14952 if test "$host_cpu" = ia64; then
14953 # AIX 5 now supports IA64 processor
14954 lt_prog_compiler_static='-Bstatic'
14956 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14960 # PIC is the default on this platform
14961 # Common symbols not allowed in MH_DYLIB files
14962 case $cc_basename in
14964 lt_prog_compiler_pic='-qnocommon'
14965 lt_prog_compiler_wl='-Wl,'
14970 mingw* | pw32* | os2*)
14971 # This hack is so that the source file can tell whether it is being
14972 # built for inclusion in a dll (and should export symbols for example).
14973 lt_prog_compiler_pic='-DDLL_EXPORT'
14976 hpux9* | hpux10* | hpux11*)
14977 lt_prog_compiler_wl='-Wl,'
14978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14979 # not for PA HP-UX.
14985 lt_prog_compiler_pic='+Z'
14988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14989 lt_prog_compiler_static='${wl}-a ${wl}archive'
14992 irix5* | irix6* | nonstopux*)
14993 lt_prog_compiler_wl='-Wl,'
14994 # PIC (with -KPIC) is the default.
14995 lt_prog_compiler_static='-non_shared'
14999 lt_prog_compiler_pic='-KPIC'
15000 lt_prog_compiler_static='-Bstatic'
15004 case $cc_basename in
15006 lt_prog_compiler_wl='-Wl,'
15007 lt_prog_compiler_pic='-KPIC'
15008 lt_prog_compiler_static='-static'
15010 pgcc* | pgf77* | pgf90* | pgf95*)
15011 # Portland Group compilers (*not* the Pentium gcc compiler,
15012 # which looks to be a dead project)
15013 lt_prog_compiler_wl='-Wl,'
15014 lt_prog_compiler_pic='-fpic'
15015 lt_prog_compiler_static='-Bstatic'
15018 lt_prog_compiler_wl='-Wl,'
15019 # All Alpha code is PIC.
15020 lt_prog_compiler_static='-non_shared'
15025 osf3* | osf4* | osf5*)
15026 lt_prog_compiler_wl='-Wl,'
15027 # All OSF/1 code is PIC.
15028 lt_prog_compiler_static='-non_shared'
15032 lt_prog_compiler_pic='-KPIC'
15033 lt_prog_compiler_static='-Bstatic'
15034 case $cc_basename in
15035 f77* | f90* | f95*)
15036 lt_prog_compiler_wl='-Qoption ld ';;
15038 lt_prog_compiler_wl='-Wl,';;
15043 lt_prog_compiler_wl='-Qoption ld '
15044 lt_prog_compiler_pic='-PIC'
15045 lt_prog_compiler_static='-Bstatic'
15048 sysv4 | sysv4.2uw2* | sysv4.3*)
15049 lt_prog_compiler_wl='-Wl,'
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15055 if test -d /usr/nec ;then
15056 lt_prog_compiler_pic='-Kconform_pic'
15057 lt_prog_compiler_static='-Bstatic'
15061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15062 lt_prog_compiler_wl='-Wl,'
15063 lt_prog_compiler_pic='-KPIC'
15064 lt_prog_compiler_static='-Bstatic'
15068 lt_prog_compiler_wl='-Wl,'
15069 lt_prog_compiler_can_build_shared=no
15073 lt_prog_compiler_pic='-pic'
15074 lt_prog_compiler_static='-Bstatic'
15078 lt_prog_compiler_can_build_shared=no
15083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15084 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15087 # Check to make sure the PIC flag actually works.
15089 if test -n "$lt_prog_compiler_pic"; then
15091 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15092 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15093 if test "${lt_prog_compiler_pic_works+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 lt_prog_compiler_pic_works=no
15097 ac_outfile=conftest.$ac_objext
15098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15100 # Insert the option either (1) after the last *FLAGS variable, or
15101 # (2) before a word containing "conftest.", or (3) at the end.
15102 # Note that $ac_compile itself does not contain backslashes and begins
15103 # with a dollar sign (not a hyphen), so the echo should work correctly.
15104 # The option is referenced via a variable to avoid confusing sed.
15105 lt_compile=`echo "$ac_compile" | $SED \
15106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15108 -e 's:$: $lt_compiler_flag:'`
15109 (eval echo "\"\$as_me:15109: $lt_compile\"" >&5)
15110 (eval "$lt_compile" 2>conftest.err)
15112 cat conftest.err >&5
15113 echo "$as_me:15113: \$? = $ac_status" >&5
15114 if (exit $ac_status) && test -s "$ac_outfile"; then
15115 # The compiler can only warn and ignore the option if not recognized
15116 # So say no if there are warnings other than the usual output.
15117 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15120 lt_prog_compiler_pic_works=yes
15126 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15127 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15129 if test x"$lt_prog_compiler_pic_works" = xyes; then
15130 case $lt_prog_compiler_pic in
15132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15135 lt_prog_compiler_pic=
15136 lt_prog_compiler_can_build_shared=no
15141 # For platforms which do not support PIC, -DPIC is meaningless:
15143 lt_prog_compiler_pic=
15146 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15151 # Check to make sure the static flag actually works.
15153 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15154 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15155 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15156 if test "${lt_prog_compiler_static_works+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 lt_prog_compiler_static_works=no
15160 save_LDFLAGS="$LDFLAGS"
15161 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15162 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15164 # The linker can only warn and ignore the option if not recognized
15165 # So say no if there are warnings
15166 if test -s conftest.err; then
15167 # Append any errors to the config.log.
15168 cat conftest.err 1>&5
15169 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15171 if diff conftest.exp conftest.er2 >/dev/null; then
15172 lt_prog_compiler_static_works=yes
15175 lt_prog_compiler_static_works=yes
15179 LDFLAGS="$save_LDFLAGS"
15182 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15183 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15185 if test x"$lt_prog_compiler_static_works" = xyes; then
15188 lt_prog_compiler_static=
15192 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15193 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15194 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 lt_cv_prog_compiler_c_o=no
15198 $rm -r conftest 2>/dev/null
15202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15204 lt_compiler_flag="-o out/conftest2.$ac_objext"
15205 # Insert the option either (1) after the last *FLAGS variable, or
15206 # (2) before a word containing "conftest.", or (3) at the end.
15207 # Note that $ac_compile itself does not contain backslashes and begins
15208 # with a dollar sign (not a hyphen), so the echo should work correctly.
15209 lt_compile=`echo "$ac_compile" | $SED \
15210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212 -e 's:$: $lt_compiler_flag:'`
15213 (eval echo "\"\$as_me:15213: $lt_compile\"" >&5)
15214 (eval "$lt_compile" 2>out/conftest.err)
15216 cat out/conftest.err >&5
15217 echo "$as_me:15217: \$? = $ac_status" >&5
15218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15220 # The compiler can only warn and ignore the option if not recognized
15221 # So say no if there are warnings
15222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15225 lt_cv_prog_compiler_c_o=yes
15230 # SGI C++ compiler will create directory out/ii_files/ for
15231 # template instantiation
15232 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15233 $rm out/* && rmdir out
15239 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15240 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15243 hard_links="nottested"
15244 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15245 # do not overwrite the value of need_locks provided by the user
15246 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15247 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15252 ln conftest.a conftest.b 2>&5 || hard_links=no
15253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15254 { echo "$as_me:$LINENO: result: $hard_links" >&5
15255 echo "${ECHO_T}$hard_links" >&6; }
15256 if test "$hard_links" = no; then
15257 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15258 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15265 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15266 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15269 allow_undefined_flag=
15270 enable_shared_with_static_runtimes=no
15272 archive_expsym_cmds=
15273 old_archive_From_new_cmds=
15274 old_archive_from_expsyms_cmds=
15275 export_dynamic_flag_spec=
15276 whole_archive_flag_spec=
15277 thread_safe_flag_spec=
15278 hardcode_libdir_flag_spec=
15279 hardcode_libdir_flag_spec_ld=
15280 hardcode_libdir_separator=
15282 hardcode_minus_L=no
15283 hardcode_shlibpath_var=unsupported
15284 link_all_deplibs=unknown
15285 hardcode_automatic=no
15287 module_expsym_cmds=
15288 always_export_symbols=no
15289 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15290 # include_expsyms should be a list of space-separated symbols to be *always*
15291 # included in the symbol list
15293 # exclude_expsyms can be an extended regexp of symbols to exclude
15294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15296 # as well as any symbol that contains `d'.
15297 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15299 # platforms (ab)use it in PIC code, but their linkers get confused if
15300 # the symbol is explicitly referenced. Since portable code cannot
15301 # rely on this symbol name, it's probably fine to never include it in
15302 # preloaded symbol tables.
15303 extract_expsyms_cmds=
15304 # Just being paranoid about ensuring that cc_basename is set.
15305 for cc_temp in $compiler""; do
15307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15316 cygwin* | mingw* | pw32*)
15317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15318 # When not using gcc, we currently assume that we are using
15319 # Microsoft Visual C++.
15320 if test "$GCC" != yes; then
15325 # we just hope/assume this is gcc and not c89 (= MSVC++)
15334 if test "$with_gnu_ld" = yes; then
15335 # If archive_cmds runs LD, not CC, wlarc should be empty
15338 # Set some defaults for GNU ld with shared library support. These
15339 # are reset later if shared libraries are not supported. Putting them
15340 # here allows them to be overridden if necessary.
15341 runpath_var=LD_RUN_PATH
15342 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15343 export_dynamic_flag_spec='${wl}--export-dynamic'
15344 # ancient GNU ld didn't support --whole-archive et. al.
15345 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15346 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15348 whole_archive_flag_spec=
15350 supports_anon_versioning=no
15351 case `$LD -v 2>/dev/null` in
15352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15355 *\ 2.11.*) ;; # other 2.11 versions
15356 *) supports_anon_versioning=yes ;;
15359 # See if GNU ld supports shared libraries.
15361 aix3* | aix4* | aix5*)
15362 # On AIX/PPC, the GNU linker is very broken
15363 if test "$host_cpu" != ia64; then
15367 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15368 *** to be unable to reliably create shared libraries on AIX.
15369 *** Therefore, libtool is disabling shared libraries support. If you
15370 *** really care for shared libraries, you may want to modify your PATH
15371 *** so that a non-GNU linker is found, and then restart.
15378 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)'
15379 hardcode_libdir_flag_spec='-L$libdir'
15380 hardcode_minus_L=yes
15382 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15383 # that the semantics of dynamic libraries on AmigaOS, at least up
15384 # to version 4, is to share data among multiple programs linked
15385 # with the same dynamic library. Since this doesn't match the
15386 # behavior of shared libraries on other platforms, we can't use
15392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15393 allow_undefined_flag=unsupported
15394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15395 # support --undefined. This deserves some investigation. FIXME
15396 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15402 cygwin* | mingw* | pw32*)
15403 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15404 # as there is no search path for DLLs.
15405 hardcode_libdir_flag_spec='-L$libdir'
15406 allow_undefined_flag=unsupported
15407 always_export_symbols=no
15408 enable_shared_with_static_runtimes=yes
15409 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15413 # If the export-symbols file already is a .def file (1st line
15414 # is EXPORTS), use it as is; otherwise, prepend...
15415 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15416 cp $export_symbols $output_objdir/$soname.def;
15418 echo EXPORTS > $output_objdir/$soname.def;
15419 cat $export_symbols >> $output_objdir/$soname.def;
15421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15429 hardcode_shlibpath_var=no
15430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15431 export_dynamic_flag_spec='${wl}-E'
15432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15433 # Instead, shared libraries are loaded at an image base (0x10000000 by
15434 # default) and relocated if they conflict, which is a slow very memory
15435 # consuming and fragmenting process. To avoid this, we pick a random,
15436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15439 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'
15443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15445 case $cc_basename,$host_cpu in
15446 pgcc*) # Portland Group C compiler
15447 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'
15448 tmp_addflag=' $pic_flag'
15450 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15451 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'
15452 tmp_addflag=' $pic_flag -Mnomain' ;;
15453 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15454 tmp_addflag=' -i_dynamic' ;;
15455 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15456 tmp_addflag=' -i_dynamic -nofor_main' ;;
15457 ifc* | ifort*) # Intel Fortran compiler
15458 tmp_addflag=' -nofor_main' ;;
15460 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15462 if test $supports_anon_versioning = yes; then
15463 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15465 $echo "local: *; };" >> $output_objdir/$libname.ver~
15466 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15475 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15484 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15489 *** create shared libraries on Solaris systems. Therefore, libtool
15490 *** is disabling shared libraries support. We urge you to upgrade GNU
15491 *** binutils to release 2.9.1 or newer. Another option is to modify
15492 *** your PATH or compiler configuration so that the native linker is
15493 *** used, and then restart.
15496 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15498 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15505 case `$LD -v 2>&1` in
15506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15510 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15511 *** reliably create shared libraries on SCO systems. Therefore, libtool
15512 *** is disabling shared libraries support. We urge you to upgrade GNU
15513 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15514 *** your PATH or compiler configuration so that the native linker is
15515 *** used, and then restart.
15520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15521 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15532 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_direct=yes
15535 hardcode_shlibpath_var=no
15539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548 if test "$ld_shlibs" = no; then
15550 hardcode_libdir_flag_spec=
15551 export_dynamic_flag_spec=
15552 whole_archive_flag_spec=
15555 # PORTME fill in a description of your system's linker (not GNU ld)
15558 allow_undefined_flag=unsupported
15559 always_export_symbols=yes
15560 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'
15561 # Note: this linker hardcodes the directories in LIBPATH if there
15562 # are no directories specified by -L.
15563 hardcode_minus_L=yes
15564 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15565 # Neither direct hardcoding nor static linking is supported with a
15567 hardcode_direct=unsupported
15572 if test "$host_cpu" = ia64; then
15573 # On IA64, the linker does run time linking by default, so we don't
15574 # have to do anything special.
15575 aix_use_runtimelinking=no
15576 exp_sym_flag='-Bexport'
15579 # If we're using GNU nm, then we don't want the "-C" option.
15580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15582 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'
15584 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'
15586 aix_use_runtimelinking=no
15588 # Test if we are trying to use run time linking or normal
15589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15590 # need to do runtime linking.
15591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15592 for ld_flag in $LDFLAGS; do
15593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15594 aix_use_runtimelinking=yes
15601 exp_sym_flag='-bexport'
15602 no_entry_flag='-bnoentry'
15605 # When large executables or shared objects are built, AIX ld can
15606 # have problems creating the table of contents. If linking a library
15607 # or program results in "error TOC overflow" add -mminimal-toc to
15608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15612 hardcode_direct=yes
15613 hardcode_libdir_separator=':'
15614 link_all_deplibs=yes
15616 if test "$GCC" = yes; then
15617 case $host_os in aix4.[012]|aix4.[012].*)
15618 # We only want to do this on AIX 4.2 and lower, the check
15619 # below for broken collect2 doesn't work under 4.3+
15620 collect2name=`${CC} -print-prog-name=collect2`
15621 if test -f "$collect2name" && \
15622 strings "$collect2name" | grep resolve_lib_name >/dev/null
15624 # We have reworked collect2
15625 hardcode_direct=yes
15627 # We have old collect2
15628 hardcode_direct=unsupported
15629 # It fails to find uninstalled libraries when the uninstalled
15630 # path is not listed in the libpath. Setting hardcode_minus_L
15631 # to unsupported forces relinking
15632 hardcode_minus_L=yes
15633 hardcode_libdir_flag_spec='-L$libdir'
15634 hardcode_libdir_separator=
15638 shared_flag='-shared'
15639 if test "$aix_use_runtimelinking" = yes; then
15640 shared_flag="$shared_flag "'${wl}-G'
15644 if test "$host_cpu" = ia64; then
15645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15646 # chokes on -Wl,-G. The following line is correct:
15649 if test "$aix_use_runtimelinking" = yes; then
15650 shared_flag='${wl}-G'
15652 shared_flag='${wl}-bM:SRE'
15657 # It seems that -bexpall does not export symbols beginning with
15658 # underscore (_), so it is better to generate a list of symbols to export.
15659 always_export_symbols=yes
15660 if test "$aix_use_runtimelinking" = yes; then
15661 # Warning - without using the other runtime loading flags (-brtl),
15662 # -berok will link without error, but may produce a broken library.
15663 allow_undefined_flag='-berok'
15664 # Determine the default libpath from the value encoded in an empty executable.
15665 cat >conftest.$ac_ext <<_ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (ac_try="$ac_link"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_link") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest$ac_exeext'
15705 { (case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15717 # Check for a 64-bit object if we didn't find anything.
15718 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; }
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15729 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15731 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15732 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"
15734 if test "$host_cpu" = ia64; then
15735 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15736 allow_undefined_flag="-z nodefs"
15737 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"
15739 # Determine the default libpath from the value encoded in an empty executable.
15740 cat >conftest.$ac_ext <<_ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (ac_try="$ac_link"
15757 case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_link") 2>conftest.er1
15764 grep -v '^ *+' conftest.er1 >conftest.err
15766 cat conftest.err >&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
15769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest$ac_exeext'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15792 # Check for a 64-bit object if we didn't find anything.
15793 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; }
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15802 rm -f core conftest.err conftest.$ac_objext \
15803 conftest$ac_exeext conftest.$ac_ext
15804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15807 # Warning - without using the other run time loading flags,
15808 # -berok will link without error, but may produce a broken library.
15809 no_undefined_flag=' ${wl}-bernotok'
15810 allow_undefined_flag=' ${wl}-berok'
15811 # Exported symbols can be pulled into shared objects from archives
15812 whole_archive_flag_spec='$convenience'
15813 archive_cmds_need_lc=yes
15814 # This is similar to how AIX traditionally builds its shared libraries.
15815 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'
15821 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)'
15822 hardcode_libdir_flag_spec='-L$libdir'
15823 hardcode_minus_L=yes
15824 # see comment about different semantics on the GNU ld section
15829 export_dynamic_flag_spec=-rdynamic
15832 cygwin* | mingw* | pw32*)
15833 # When not using gcc, we currently assume that we are using
15834 # Microsoft Visual C++.
15835 # hardcode_libdir_flag_spec is actually meaningless, as there is
15836 # no search path for DLLs.
15837 hardcode_libdir_flag_spec=' '
15838 allow_undefined_flag=unsupported
15839 # Tell ltmain to make .lib files, not .a files.
15841 # Tell ltmain to make .dll files, not .so files.
15843 # FIXME: Setting linknames here is a bad hack.
15844 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15845 # The linker will automatically build a .lib file if we build a DLL.
15846 old_archive_From_new_cmds='true'
15847 # FIXME: Should let the user specify the lib program.
15848 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15849 fix_srcfile_path='`cygpath -w "$srcfile"`'
15850 enable_shared_with_static_runtimes=yes
15853 darwin* | rhapsody*)
15855 rhapsody* | darwin1.[012])
15856 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15860 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15862 case ${MACOSX_DEPLOYMENT_TARGET} in
15864 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15867 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15873 archive_cmds_need_lc=no
15875 hardcode_automatic=yes
15876 hardcode_shlibpath_var=unsupported
15877 whole_archive_flag_spec=''
15878 link_all_deplibs=yes
15879 if test "$GCC" = yes ; then
15880 output_verbose_link_cmd='echo'
15881 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15882 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15884 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}'
15885 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}'
15887 case $cc_basename in
15889 output_verbose_link_cmd='echo'
15890 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15891 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15893 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}'
15894 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}'
15904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15905 hardcode_libdir_flag_spec='-L$libdir'
15906 hardcode_shlibpath_var=no
15913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15914 # support. Future versions do this automatically, but an explicit c++rt0.o
15915 # does not break anything, and helps significantly (at the cost of a little
15918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15919 hardcode_libdir_flag_spec='-R$libdir'
15920 hardcode_direct=yes
15921 hardcode_shlibpath_var=no
15924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15927 hardcode_direct=yes
15928 hardcode_minus_L=yes
15929 hardcode_shlibpath_var=no
15932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15933 freebsd* | kfreebsd*-gnu | dragonfly*)
15934 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15935 hardcode_libdir_flag_spec='-R$libdir'
15936 hardcode_direct=yes
15937 hardcode_shlibpath_var=no
15941 if test "$GCC" = yes; then
15942 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'
15944 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'
15946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15947 hardcode_libdir_separator=:
15948 hardcode_direct=yes
15950 # hardcode_minus_L: Not really in the search PATH,
15951 # but as the default location of the library.
15952 hardcode_minus_L=yes
15953 export_dynamic_flag_spec='${wl}-E'
15957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15958 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15960 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15962 if test "$with_gnu_ld" = no; then
15963 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15964 hardcode_libdir_separator=:
15966 hardcode_direct=yes
15967 export_dynamic_flag_spec='${wl}-E'
15969 # hardcode_minus_L: Not really in the search PATH,
15970 # but as the default location of the library.
15971 hardcode_minus_L=yes
15976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15979 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15982 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15985 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15991 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15994 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15997 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16001 if test "$with_gnu_ld" = no; then
16002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16003 hardcode_libdir_separator=:
16007 hardcode_libdir_flag_spec_ld='+b $libdir'
16009 hardcode_shlibpath_var=no
16012 hardcode_direct=yes
16013 export_dynamic_flag_spec='${wl}-E'
16015 # hardcode_minus_L: Not really in the search PATH,
16016 # but as the default location of the library.
16017 hardcode_minus_L=yes
16023 irix5* | irix6* | nonstopux*)
16024 if test "$GCC" = yes; then
16025 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'
16027 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'
16028 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16031 hardcode_libdir_separator=:
16032 link_all_deplibs=yes
16036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16039 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16041 hardcode_libdir_flag_spec='-R$libdir'
16042 hardcode_direct=yes
16043 hardcode_shlibpath_var=no
16047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16048 hardcode_direct=yes
16049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16050 hardcode_libdir_separator=:
16051 hardcode_shlibpath_var=no
16055 hardcode_direct=yes
16056 hardcode_shlibpath_var=no
16057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16059 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16060 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16061 export_dynamic_flag_spec='${wl}-E'
16064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_libdir_flag_spec='-R$libdir'
16069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16077 hardcode_libdir_flag_spec='-L$libdir'
16078 hardcode_minus_L=yes
16079 allow_undefined_flag=unsupported
16080 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'
16081 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16085 if test "$GCC" = yes; then
16086 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16087 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'
16089 allow_undefined_flag=' -expect_unresolved \*'
16090 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'
16092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16093 hardcode_libdir_separator=:
16096 osf4* | osf5*) # as osf3* with the addition of -msym flag
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16102 allow_undefined_flag=' -expect_unresolved \*'
16103 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'
16104 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16105 $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'
16107 # Both c and cxx compiler support -rpath directly
16108 hardcode_libdir_flag_spec='-rpath $libdir'
16110 hardcode_libdir_separator=:
16114 no_undefined_flag=' -z text'
16115 if test "$GCC" = yes; then
16117 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16122 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16126 hardcode_libdir_flag_spec='-R$libdir'
16127 hardcode_shlibpath_var=no
16129 solaris2.[0-5] | solaris2.[0-5].*) ;;
16131 # The compiler driver will combine linker options so we
16132 # cannot just pass the convience library names through
16133 # without $wl, iff we do not link with $LD.
16134 # Luckily, gcc supports the same syntax we need for Sun Studio.
16135 # Supported since Solaris 2.6 (maybe 2.5.1?)
16138 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16140 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' ;;
16143 link_all_deplibs=yes
16147 if test "x$host_vendor" = xsequent; then
16148 # Use $CC to link under sequent, because it throws in some extra .o
16149 # files that make .init and .fini sections work.
16150 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16152 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16154 hardcode_libdir_flag_spec='-L$libdir'
16155 hardcode_direct=yes
16156 hardcode_minus_L=yes
16157 hardcode_shlibpath_var=no
16161 case $host_vendor in
16163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_direct=yes # is this really true???
16167 ## LD is ld it makes a PLAMLIB
16168 ## CC just makes a GrossModule.
16169 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16170 reload_cmds='$CC -r -o $output$reload_objs'
16174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16175 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16178 runpath_var='LD_RUN_PATH'
16179 hardcode_shlibpath_var=no
16183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16184 hardcode_shlibpath_var=no
16185 export_dynamic_flag_spec='-Bexport'
16189 if test -d /usr/nec; then
16190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_shlibpath_var=no
16192 runpath_var=LD_RUN_PATH
16193 hardcode_runpath_var=yes
16198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16199 no_undefined_flag='${wl}-z,text'
16200 archive_cmds_need_lc=no
16201 hardcode_shlibpath_var=no
16202 runpath_var='LD_RUN_PATH'
16204 if test "$GCC" = yes; then
16205 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16208 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16209 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16213 sysv5* | sco3.2v5* | sco5v6*)
16214 # Note: We can NOT use -z defs as we might desire, because we do not
16215 # link with -lc, and that would cause any symbols used from libc to
16216 # always be unresolved, which means just about no library would
16217 # ever link correctly. If we're not using GNU ld we use -z text
16218 # though, which does catch some bad symbols but isn't as heavy-handed
16220 no_undefined_flag='${wl}-z,text'
16221 allow_undefined_flag='${wl}-z,nodefs'
16222 archive_cmds_need_lc=no
16223 hardcode_shlibpath_var=no
16224 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16225 hardcode_libdir_separator=':'
16226 link_all_deplibs=yes
16227 export_dynamic_flag_spec='${wl}-Bexport'
16228 runpath_var='LD_RUN_PATH'
16230 if test "$GCC" = yes; then
16231 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16234 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16235 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16241 hardcode_libdir_flag_spec='-L$libdir'
16242 hardcode_shlibpath_var=no
16251 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16252 echo "${ECHO_T}$ld_shlibs" >&6; }
16253 test "$ld_shlibs" = no && can_build_shared=no
16256 # Do we need to explicitly link libc?
16258 case "x$archive_cmds_need_lc" in
16260 # Assume -lc should be added
16261 archive_cmds_need_lc=yes
16263 if test "$enable_shared" = yes && test "$GCC" = yes; then
16264 case $archive_cmds in
16266 # FIXME: we may have to deal with multi-command sequences.
16269 # Test whether the compiler implicitly links with -lc since on some
16270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16271 # to ld, don't add -lc before -lgcc.
16272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16278 (eval $ac_compile) 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } 2>conftest.err; then
16284 libobjs=conftest.$ac_objext
16286 wl=$lt_prog_compiler_wl
16287 pic_flag=$lt_prog_compiler_pic
16293 lt_save_allow_undefined_flag=$allow_undefined_flag
16294 allow_undefined_flag=
16295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16296 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }
16301 archive_cmds_need_lc=no
16303 archive_cmds_need_lc=yes
16305 allow_undefined_flag=$lt_save_allow_undefined_flag
16307 cat conftest.err 1>&5
16310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16311 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16320 library_names_spec=
16321 libname_spec='lib$name'
16325 postuninstall_cmds=
16329 shlibpath_overrides_runpath=unknown
16331 dynamic_linker="$host_os ld.so"
16332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16333 if test "$GCC" = yes; then
16334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16336 # if the path contains ";" then we assume it to be the separator
16337 # otherwise default to the standard path separator (i.e. ":") - it is
16338 # assumed that no part of a normal pathname contains ";" but that should
16339 # okay in the real world where ";" in dirpaths is itself problematic.
16340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16347 need_lib_prefix=unknown
16348 hardcode_into_libs=no
16350 # when you set need_version to no, make sure it does not cause -set_version
16351 # flags to be left without arguments
16352 need_version=unknown
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16358 shlibpath_var=LIBPATH
16360 # AIX 3 has no versioning support, so we append a major version to the name.
16361 soname_spec='${libname}${release}${shared_ext}$major'
16368 hardcode_into_libs=yes
16369 if test "$host_cpu" = ia64; then
16370 # AIX 5 supports IA64
16371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16372 shlibpath_var=LD_LIBRARY_PATH
16374 # With GCC up to 2.95.x, collect2 would create an import file
16375 # for dependence libraries. The import file would start with
16376 # the line `#! .'. This would cause the generated library to
16377 # depend on `.', always an invalid library. This was fixed in
16378 # development snapshots of GCC prior to 3.0.
16380 aix4 | aix4.[01] | aix4.[01].*)
16381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16386 can_build_shared=no
16390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16391 # soname into executable. Probably we can add versioning support to
16392 # collect2, so additional links can be useful in future.
16393 if test "$aix_use_runtimelinking" = yes; then
16394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16395 # instead of lib<name>.a to let people know that these are not
16396 # typical AIX shared libraries.
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 # We preserve .a as extension for shared libraries through AIX4.2
16400 # and later when we are not doing run time linking.
16401 library_names_spec='${libname}${release}.a $libname.a'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LIBPATH
16409 library_names_spec='$libname.ixlibrary $libname.a'
16410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16411 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'
16415 library_names_spec='${libname}${shared_ext}'
16416 dynamic_linker="$host_os ld.so"
16417 shlibpath_var=LIBRARY_PATH
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 soname_spec='${libname}${release}${shared_ext}$major'
16425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16426 shlibpath_var=LD_LIBRARY_PATH
16427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16429 # the default ld.so.conf also contains /usr/contrib/lib and
16430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16431 # libtool to hard-code these into programs
16434 cygwin* | mingw* | pw32*)
16435 version_type=windows
16440 case $GCC,$host_os in
16441 yes,cygwin* | yes,mingw* | yes,pw32*)
16442 library_names_spec='$libname.dll.a'
16443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16444 postinstall_cmds='base_file=`basename \${file}`~
16445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16446 dldir=$destdir/`dirname \$dlpath`~
16447 test -d \$dldir || mkdir -p \$dldir~
16448 $install_prog $dir/$dlname \$dldir/$dlname~
16449 chmod a+x \$dldir/$dlname'
16450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16451 dlpath=$dir/\$dldll~
16453 shlibpath_overrides_runpath=yes
16457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16462 # MinGW DLLs use traditional 'lib' prefix
16463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16466 # It is most probably a Windows format PATH printed by
16467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16468 # path with ; separators, and with drive letters. We can handle the
16469 # drive letters (cygwin fileutils understands them), so leave them,
16470 # especially as we might pass files found there to a mingw objdump,
16471 # which wouldn't understand a cygwinified path. Ahh.
16472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16478 # pw32 DLLs use 'pw' prefix rather than 'lib'
16479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16488 dynamic_linker='Win32 ld.exe'
16489 # FIXME: first we should search . and the directory the executable is in
16493 darwin* | rhapsody*)
16494 dynamic_linker="$host_os dyld"
16495 version_type=darwin
16498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16499 soname_spec='${libname}${release}${major}$shared_ext'
16500 shlibpath_overrides_runpath=yes
16501 shlibpath_var=DYLD_LIBRARY_PATH
16502 shrext_cmds='.dylib'
16503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16504 if test "$GCC" = yes; then
16505 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"`
16507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 shlibpath_var=LD_LIBRARY_PATH
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 shlibpath_overrides_runpath=no
16533 hardcode_into_libs=yes
16534 dynamic_linker='GNU ld.so'
16537 freebsd* | dragonfly*)
16538 # DragonFly does not have aout. When/if they implement a new
16539 # versioning mechanism, adjust this.
16540 if test -x /usr/bin/objformat; then
16541 objformat=`/usr/bin/objformat`
16544 freebsd[123]*) objformat=aout ;;
16545 *) objformat=elf ;;
16548 version_type=freebsd-$objformat
16549 case $version_type in
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16560 shlibpath_var=LD_LIBRARY_PATH
16563 shlibpath_overrides_runpath=yes
16565 freebsd3.[01]* | freebsdelf3.[01]*)
16566 shlibpath_overrides_runpath=yes
16567 hardcode_into_libs=yes
16569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16574 freebsd*) # from 4.6 on
16575 shlibpath_overrides_runpath=yes
16576 hardcode_into_libs=yes
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 hardcode_into_libs=yes
16591 hpux9* | hpux10* | hpux11*)
16592 # Give a soname corresponding to the major version so that dld.sl refuses to
16593 # link against other versions.
16600 hardcode_into_libs=yes
16601 dynamic_linker="$host_os dld.so"
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605 soname_spec='${libname}${release}${shared_ext}$major'
16606 if test "X$HPUX_IA64_MODE" = X32; then
16607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16615 hardcode_into_libs=yes
16616 dynamic_linker="$host_os dld.sl"
16617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16626 dynamic_linker="$host_os dld.sl"
16627 shlibpath_var=SHLIB_PATH
16628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16634 postinstall_cmds='chmod 555 $lib'
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16649 irix5* | irix6* | nonstopux*)
16651 nonstopux*) version_type=nonstopux ;;
16653 if test "$lt_cv_prog_gnu_ld" = yes; then
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16664 irix5* | nonstopux*)
16665 libsuff= shlibsuff=
16668 case $LD in # libtool.m4 will add one of these switches to LD
16669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670 libsuff= shlibsuff= libmagic=32-bit;;
16671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672 libsuff=32 shlibsuff=N32 libmagic=N32;;
16673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16675 *) libsuff= shlibsuff= libmagic=never-match;;
16679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680 shlibpath_overrides_runpath=no
16681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16683 hardcode_into_libs=yes
16686 # No shared lib support for Linux oldld, aout, or coff.
16687 linux*oldld* | linux*aout* | linux*coff*)
16691 # This must be Linux ELF.
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=no
16701 # This implies no fast_install, which is unacceptable.
16702 # Some rework will be needed to allow for fast_install
16703 # before this can be enabled.
16704 hardcode_into_libs=yes
16706 # Append ld.so.conf contents to the search path
16707 if test -f /etc/ld.so.conf; then
16708 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' ' '`
16709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16712 # We used to test for /lib/ld.so.1 and disable shared libraries on
16713 # powerpc, because MkLinux only supported shared libraries with the
16714 # GNU dynamic linker. Since this was broken with cross compilers,
16715 # most powerpc-linux boxes support dynamic linking these days and
16716 # people can always --disable-shared, the test was removed, and we
16717 # assume the GNU/Linux dynamic linker is in use.
16718 dynamic_linker='GNU/Linux ld.so'
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 shlibpath_var=LD_LIBRARY_PATH
16728 shlibpath_overrides_runpath=no
16729 hardcode_into_libs=yes
16730 dynamic_linker='GNU ld.so'
16737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16740 dynamic_linker='NetBSD (a.out) ld.so'
16742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 dynamic_linker='NetBSD ld.elf_so'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes
16748 hardcode_into_libs=yes
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16770 sys_lib_dlsearch_path_spec="/usr/lib"
16772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16775 *) need_version=no ;;
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16779 shlibpath_var=LD_LIBRARY_PATH
16780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16782 openbsd2.[89] | openbsd2.[89].*)
16783 shlibpath_overrides_runpath=no
16786 shlibpath_overrides_runpath=yes
16790 shlibpath_overrides_runpath=yes
16795 libname_spec='$name'
16798 library_names_spec='$libname${shared_ext} $libname.a'
16799 dynamic_linker='OS/2 ld.exe'
16800 shlibpath_var=LIBPATH
16803 osf3* | osf4* | osf5*)
16807 soname_spec='${libname}${release}${shared_ext}$major'
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 shlibpath_overrides_runpath=yes
16822 hardcode_into_libs=yes
16823 # ldd complains unless libraries are executable
16824 postinstall_cmds='chmod +x $lib'
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 shlibpath_overrides_runpath=yes
16833 if test "$with_gnu_ld" = yes; then
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 case $host_vendor in
16846 shlibpath_overrides_runpath=no
16848 export_dynamic_flag_spec='${wl}-Blargedynsym'
16849 runpath_var=LD_RUN_PATH
16857 shlibpath_overrides_runpath=no
16858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16864 if test -d /usr/nec ;then
16866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16867 soname_spec='$libname${shared_ext}.$major'
16868 shlibpath_var=LD_LIBRARY_PATH
16872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16873 version_type=freebsd-elf
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 hardcode_into_libs=yes
16880 if test "$with_gnu_ld" = yes; then
16881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16882 shlibpath_overrides_runpath=no
16884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16885 shlibpath_overrides_runpath=yes
16888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16892 sys_lib_dlsearch_path_spec='/usr/lib'
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 soname_spec='${libname}${release}${shared_ext}$major'
16899 shlibpath_var=LD_LIBRARY_PATH
16906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16907 echo "${ECHO_T}$dynamic_linker" >&6; }
16908 test "$dynamic_linker" = no && can_build_shared=no
16910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16911 if test "$GCC" = yes; then
16912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16918 if test -n "$hardcode_libdir_flag_spec" || \
16919 test -n "$runpath_var" || \
16920 test "X$hardcode_automatic" = "Xyes" ; then
16922 # We can hardcode non-existant directories.
16923 if test "$hardcode_direct" != no &&
16924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16925 # have to relink, otherwise we might link with an installed library
16926 # when we should be linking with a yet-to-be-installed one
16927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16928 test "$hardcode_minus_L" != no; then
16929 # Linking always hardcodes the temporary library directory.
16930 hardcode_action=relink
16932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16933 hardcode_action=immediate
16936 # We cannot hardcode anything, or else we can only hardcode existing
16938 hardcode_action=unsupported
16940 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16941 echo "${ECHO_T}$hardcode_action" >&6; }
16943 if test "$hardcode_action" = relink; then
16944 # Fast installation is not supported
16945 enable_fast_install=no
16946 elif test "$shlibpath_overrides_runpath" = yes ||
16947 test "$enable_shared" = no; then
16948 # Fast installation is not necessary
16949 enable_fast_install=needless
16954 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16959 { echo "$as_me:$LINENO: result: yes" >&5
16960 echo "${ECHO_T}yes" >&6; }
16962 # FIXME - insert some real tests, host_os isn't really good enough
16965 if test -n "$STRIP" ; then
16966 striplib="$STRIP -x"
16967 { echo "$as_me:$LINENO: result: yes" >&5
16968 echo "${ECHO_T}yes" >&6; }
16970 { echo "$as_me:$LINENO: result: no" >&5
16971 echo "${ECHO_T}no" >&6; }
16975 { echo "$as_me:$LINENO: result: no" >&5
16976 echo "${ECHO_T}no" >&6; }
16981 if test "x$enable_dlopen" != xyes; then
16982 enable_dlopen=unknown
16983 enable_dlopen_self=unknown
16984 enable_dlopen_self_static=unknown
16991 lt_cv_dlopen="load_add_on"
16993 lt_cv_dlopen_self=yes
16997 lt_cv_dlopen="LoadLibrary"
17002 lt_cv_dlopen="dlopen"
17007 # if libdl is installed we need to link against it
17008 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 ac_check_lib_save_LIBS=$LIBS
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 /* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_try") 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_lib_dl_dlopen=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_lib_dl_dlopen=no
17079 rm -f core conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17081 LIBS=$ac_check_lib_save_LIBS
17083 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17084 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17085 if test $ac_cv_lib_dl_dlopen = yes; then
17086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17089 lt_cv_dlopen="dyld"
17091 lt_cv_dlopen_self=yes
17098 { echo "$as_me:$LINENO: checking for shl_load" >&5
17099 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17100 if test "${ac_cv_func_shl_load+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17111 #define shl_load innocuous_shl_load
17113 /* System header to define __stub macros and hopefully few prototypes,
17114 which can conflict with char shl_load (); below.
17115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17116 <limits.h> exists even on freestanding compilers. */
17119 # include <limits.h>
17121 # include <assert.h>
17126 /* Override any GCC internal prototype to avoid an error.
17127 Use char because int might match the return type of a GCC
17128 builtin and then its argument prototype would still apply. */
17133 /* The GNU C library defines this for functions which it implements
17134 to always fail with ENOSYS. Some functions are actually named
17135 something starting with __ and the normal name is an alias. */
17136 #if defined __stub_shl_load || defined __stub___shl_load
17143 return shl_load ();
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (ac_try="$ac_link"
17150 case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_link") 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_try") 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_cv_func_shl_load=yes
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_cv_func_shl_load=no
17190 rm -f core conftest.err conftest.$ac_objext \
17191 conftest$ac_exeext conftest.$ac_ext
17193 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17194 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17195 if test $ac_cv_func_shl_load = yes; then
17196 lt_cv_dlopen="shl_load"
17198 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17199 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17200 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 ac_check_lib_save_LIBS=$LIBS
17205 cat >conftest.$ac_ext <<_ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17222 return shl_load ();
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_cv_lib_dld_shl_load=yes
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 ac_cv_lib_dld_shl_load=no
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17273 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17274 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17275 if test $ac_cv_lib_dld_shl_load = yes; then
17276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17278 { echo "$as_me:$LINENO: checking for dlopen" >&5
17279 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17280 if test "${ac_cv_func_dlopen+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17291 #define dlopen innocuous_dlopen
17293 /* System header to define __stub macros and hopefully few prototypes,
17294 which can conflict with char dlopen (); below.
17295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17296 <limits.h> exists even on freestanding compilers. */
17299 # include <limits.h>
17301 # include <assert.h>
17306 /* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
17313 /* The GNU C library defines this for functions which it implements
17314 to always fail with ENOSYS. Some functions are actually named
17315 something starting with __ and the normal name is an alias. */
17316 #if defined __stub_dlopen || defined __stub___dlopen
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest$ac_exeext'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 ac_cv_func_dlopen=yes
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 ac_cv_func_dlopen=no
17370 rm -f core conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
17373 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17374 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17375 if test $ac_cv_func_dlopen = yes; then
17376 lt_cv_dlopen="dlopen"
17378 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17379 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 ac_check_lib_save_LIBS=$LIBS
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17392 /* Override any GCC internal prototype to avoid an error.
17393 Use char because int might match the return type of a GCC
17394 builtin and then its argument prototype would still apply. */
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (ac_try="$ac_link"
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_link") 2>conftest.er1
17416 grep -v '^ *+' conftest.er1 >conftest.err
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17422 { (case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_try") 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_lib_dl_dlopen=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 ac_cv_lib_dl_dlopen=no
17449 rm -f core conftest.err conftest.$ac_objext \
17450 conftest$ac_exeext conftest.$ac_ext
17451 LIBS=$ac_check_lib_save_LIBS
17453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17454 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17455 if test $ac_cv_lib_dl_dlopen = yes; then
17456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17458 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17459 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17460 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 ac_check_lib_save_LIBS=$LIBS
17464 LIBS="-lsvld $LIBS"
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (ac_try="$ac_link"
17489 case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_lib_svld_dlopen=yes
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 ac_cv_lib_svld_dlopen=no
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 LIBS=$ac_check_lib_save_LIBS
17533 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17534 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17535 if test $ac_cv_lib_svld_dlopen = yes; then
17536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17538 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17539 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17540 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 ac_check_lib_save_LIBS=$LIBS
17545 cat >conftest.$ac_ext <<_ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17552 /* Override any GCC internal prototype to avoid an error.
17553 Use char because int might match the return type of a GCC
17554 builtin and then its argument prototype would still apply. */
17562 return dld_link ();
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (ac_try="$ac_link"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_link") 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest$ac_exeext'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_lib_dld_dld_link=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_dld_dld_link=no
17609 rm -f core conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17614 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17615 if test $ac_cv_lib_dld_dld_link = yes; then
17616 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17637 if test "x$lt_cv_dlopen" != xno; then
17643 case $lt_cv_dlopen in
17645 save_CPPFLAGS="$CPPFLAGS"
17646 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17648 save_LDFLAGS="$LDFLAGS"
17649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17652 LIBS="$lt_cv_dlopen_libs $LIBS"
17654 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17655 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17656 if test "${lt_cv_dlopen_self+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 if test "$cross_compiling" = yes; then :
17660 lt_cv_dlopen_self=cross
17662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17663 lt_status=$lt_dlunknown
17664 cat > conftest.$ac_ext <<EOF
17665 #line 17665 "configure"
17666 #include "confdefs.h"
17675 # define LT_DLGLOBAL RTLD_GLOBAL
17678 # define LT_DLGLOBAL DL_GLOBAL
17680 # define LT_DLGLOBAL 0
17684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17685 find out it does not work in some platform. */
17686 #ifndef LT_DLLAZY_OR_NOW
17688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17691 # define LT_DLLAZY_OR_NOW DL_LAZY
17694 # define LT_DLLAZY_OR_NOW RTLD_NOW
17697 # define LT_DLLAZY_OR_NOW DL_NOW
17699 # define LT_DLLAZY_OR_NOW 0
17707 extern "C" void exit (int);
17710 void fnord() { int i=42;}
17713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17714 int status = $lt_dlunknown;
17718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17720 /* dlclose (self); */
17728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729 (eval $ac_link) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17733 (./conftest; exit; ) >&5 2>/dev/null
17735 case x$lt_status in
17736 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17737 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17738 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17741 # compilation failed
17742 lt_cv_dlopen_self=no
17749 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17750 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17752 if test "x$lt_cv_dlopen_self" = xyes; then
17753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17754 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17755 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17756 if test "${lt_cv_dlopen_self_static+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 if test "$cross_compiling" = yes; then :
17760 lt_cv_dlopen_self_static=cross
17762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17763 lt_status=$lt_dlunknown
17764 cat > conftest.$ac_ext <<EOF
17765 #line 17765 "configure"
17766 #include "confdefs.h"
17775 # define LT_DLGLOBAL RTLD_GLOBAL
17778 # define LT_DLGLOBAL DL_GLOBAL
17780 # define LT_DLGLOBAL 0
17784 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17785 find out it does not work in some platform. */
17786 #ifndef LT_DLLAZY_OR_NOW
17788 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17791 # define LT_DLLAZY_OR_NOW DL_LAZY
17794 # define LT_DLLAZY_OR_NOW RTLD_NOW
17797 # define LT_DLLAZY_OR_NOW DL_NOW
17799 # define LT_DLLAZY_OR_NOW 0
17807 extern "C" void exit (int);
17810 void fnord() { int i=42;}
17813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17814 int status = $lt_dlunknown;
17818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17819 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17820 /* dlclose (self); */
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829 (eval $ac_link) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17833 (./conftest; exit; ) >&5 2>/dev/null
17835 case x$lt_status in
17836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17841 # compilation failed
17842 lt_cv_dlopen_self_static=no
17849 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17850 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17853 CPPFLAGS="$save_CPPFLAGS"
17854 LDFLAGS="$save_LDFLAGS"
17859 case $lt_cv_dlopen_self in
17860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17861 *) enable_dlopen_self=unknown ;;
17864 case $lt_cv_dlopen_self_static in
17865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17866 *) enable_dlopen_self_static=unknown ;;
17871 # Report which library types will actually be built
17872 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17873 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17874 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17875 echo "${ECHO_T}$can_build_shared" >&6; }
17877 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17878 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17879 test "$can_build_shared" = "no" && enable_shared=no
17881 # On AIX, shared libraries and static libraries use the same namespace, and
17882 # are all built from PIC.
17885 test "$enable_shared" = yes && enable_static=no
17886 if test -n "$RANLIB"; then
17887 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17888 postinstall_cmds='$RANLIB $lib'
17893 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17894 test "$enable_shared" = yes && enable_static=no
17898 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17899 echo "${ECHO_T}$enable_shared" >&6; }
17901 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17902 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17903 # Make sure either enable_shared or enable_static is yes.
17904 test "$enable_shared" = yes || enable_static=yes
17905 { echo "$as_me:$LINENO: result: $enable_static" >&5
17906 echo "${ECHO_T}$enable_static" >&6; }
17908 # The else clause should only fire when bootstrapping the
17909 # libtool distribution, otherwise you forgot to ship ltmain.sh
17910 # with your package, and you will get complaints that there are
17911 # no rules to generate ltmain.sh.
17912 if test -f "$ltmain"; then
17913 # See if we are running on zsh, and set the options which allow our commands through
17914 # without removal of \ escapes.
17915 if test -n "${ZSH_VERSION+set}" ; then
17916 setopt NO_GLOB_SUBST
17918 # Now quote all the things that may contain metacharacters while being
17919 # careful not to overquote the AC_SUBSTed values. We take copies of the
17920 # variables and quote the copies for generation of the libtool script.
17921 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17923 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17924 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17925 deplibs_check_method reload_flag reload_cmds need_locks \
17926 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17927 lt_cv_sys_global_symbol_to_c_name_address \
17928 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17929 old_postinstall_cmds old_postuninstall_cmds \
17933 lt_prog_compiler_wl \
17934 lt_prog_compiler_pic \
17935 lt_prog_compiler_static \
17936 lt_prog_compiler_no_builtin_flag \
17937 export_dynamic_flag_spec \
17938 thread_safe_flag_spec \
17939 whole_archive_flag_spec \
17940 enable_shared_with_static_runtimes \
17942 old_archive_from_new_cmds \
17947 compiler_lib_search_path \
17949 archive_expsym_cmds \
17951 postuninstall_cmds \
17952 old_archive_from_expsyms_cmds \
17953 allow_undefined_flag \
17954 no_undefined_flag \
17955 export_symbols_cmds \
17956 hardcode_libdir_flag_spec \
17957 hardcode_libdir_flag_spec_ld \
17958 hardcode_libdir_separator \
17959 hardcode_automatic \
17961 module_expsym_cmds \
17962 lt_cv_prog_compiler_c_o \
17964 include_expsyms; do
17967 old_archive_cmds | \
17968 old_archive_from_new_cmds | \
17970 archive_expsym_cmds | \
17972 module_expsym_cmds | \
17973 old_archive_from_expsyms_cmds | \
17974 export_symbols_cmds | \
17975 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17976 postinstall_cmds | postuninstall_cmds | \
17977 old_postinstall_cmds | old_postuninstall_cmds | \
17978 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17979 # Double-quote double-evaled strings.
17980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17989 *'\$0 --fallback-echo"')
17990 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17994 cfgfile="${ofile}T"
17995 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17997 { echo "$as_me:$LINENO: creating $ofile" >&5
17998 echo "$as_me: creating $ofile" >&6;}
18000 cat <<__EOF__ >> "$cfgfile"
18003 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18004 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18005 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18007 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18008 # Free Software Foundation, Inc.
18010 # This file is part of GNU Libtool:
18011 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18013 # This program is free software; you can redistribute it and/or modify
18014 # it under the terms of the GNU General Public License as published by
18015 # the Free Software Foundation; either version 2 of the License, or
18016 # (at your option) any later version.
18018 # This program is distributed in the hope that it will be useful, but
18019 # WITHOUT ANY WARRANTY; without even the implied warranty of
18020 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18021 # General Public License for more details.
18023 # You should have received a copy of the GNU General Public License
18024 # along with this program; if not, write to the Free Software
18025 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18027 # As a special exception to the GNU General Public License, if you
18028 # distribute this file as part of a program that contains a
18029 # configuration script generated by Autoconf, you may include it under
18030 # the same distribution terms that you use for the rest of that program.
18032 # A sed program that does not truncate output.
18035 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18036 Xsed="$SED -e 1s/^X//"
18038 # The HP-UX ksh and POSIX shell print the target directory to stdout
18039 # if CDPATH is set.
18040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18042 # The names of the tagged configurations supported by this script.
18045 # ### BEGIN LIBTOOL CONFIG
18047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18049 # Shell to use when invoking shell scripts.
18052 # Whether or not to build shared libraries.
18053 build_libtool_libs=$enable_shared
18055 # Whether or not to build static libraries.
18056 build_old_libs=$enable_static
18058 # Whether or not to add -lc for building shared libraries.
18059 build_libtool_need_lc=$archive_cmds_need_lc
18061 # Whether or not to disallow shared libs when runtime libs are static
18062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18064 # Whether or not to optimize for fast installation.
18065 fast_install=$enable_fast_install
18068 host_alias=$host_alias
18072 # The build system.
18073 build_alias=$build_alias
18077 # An echo program that does not interpret backslashes.
18082 AR_FLAGS=$lt_AR_FLAGS
18087 # LTCC compiler flags.
18088 LTCFLAGS=$lt_LTCFLAGS
18090 # A language-specific compiler.
18093 # Is the compiler the GNU C compiler?
18099 # The linker used to build libraries.
18102 # Whether we need hard or soft links.
18105 # A BSD-compatible nm program.
18108 # A symbol stripping program
18111 # Used to examine libraries when file_magic_cmd begins "file"
18112 MAGIC_CMD=$MAGIC_CMD
18114 # Used on cygwin: DLL creation program.
18117 # Used on cygwin: object dumper.
18120 # Used on cygwin: assembler.
18123 # The name of the directory that contains temporary libtool files.
18126 # How to create reloadable object files.
18127 reload_flag=$lt_reload_flag
18128 reload_cmds=$lt_reload_cmds
18130 # How to pass a linker flag through the compiler.
18131 wl=$lt_lt_prog_compiler_wl
18133 # Object file suffix (normally "o").
18134 objext="$ac_objext"
18136 # Old archive suffix (normally "a").
18139 # Shared library suffix (normally ".so").
18140 shrext_cmds='$shrext_cmds'
18142 # Executable file suffix (normally "").
18145 # Additional compiler flags for building library objects.
18146 pic_flag=$lt_lt_prog_compiler_pic
18149 # What is the maximum length of a command?
18150 max_cmd_len=$lt_cv_sys_max_cmd_len
18152 # Does compiler simultaneously support -c and -o options?
18153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18155 # Must we lock files when doing compilation?
18156 need_locks=$lt_need_locks
18158 # Do we need the lib prefix for modules?
18159 need_lib_prefix=$need_lib_prefix
18161 # Do we need a version for libraries?
18162 need_version=$need_version
18164 # Whether dlopen is supported.
18165 dlopen_support=$enable_dlopen
18167 # Whether dlopen of programs is supported.
18168 dlopen_self=$enable_dlopen_self
18170 # Whether dlopen of statically linked programs is supported.
18171 dlopen_self_static=$enable_dlopen_self_static
18173 # Compiler flag to prevent dynamic linking.
18174 link_static_flag=$lt_lt_prog_compiler_static
18176 # Compiler flag to turn off builtin functions.
18177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18179 # Compiler flag to allow reflexive dlopens.
18180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18182 # Compiler flag to generate shared objects directly from archives.
18183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18185 # Compiler flag to generate thread-safe objects.
18186 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18188 # Library versioning type.
18189 version_type=$version_type
18191 # Format of library name prefix.
18192 libname_spec=$lt_libname_spec
18194 # List of archive names. First name is the real one, the rest are links.
18195 # The last name is the one that the linker finds with -lNAME.
18196 library_names_spec=$lt_library_names_spec
18198 # The coded name of the library, if different from the real name.
18199 soname_spec=$lt_soname_spec
18201 # Commands used to build and install an old-style archive.
18203 old_archive_cmds=$lt_old_archive_cmds
18204 old_postinstall_cmds=$lt_old_postinstall_cmds
18205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18207 # Create an old-style archive from a shared archive.
18208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18210 # Create a temporary old-style archive to link instead of a shared archive.
18211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18213 # Commands used to build and install a shared archive.
18214 archive_cmds=$lt_archive_cmds
18215 archive_expsym_cmds=$lt_archive_expsym_cmds
18216 postinstall_cmds=$lt_postinstall_cmds
18217 postuninstall_cmds=$lt_postuninstall_cmds
18219 # Commands used to build a loadable module (assumed same as above if empty)
18220 module_cmds=$lt_module_cmds
18221 module_expsym_cmds=$lt_module_expsym_cmds
18223 # Commands to strip libraries.
18224 old_striplib=$lt_old_striplib
18225 striplib=$lt_striplib
18227 # Dependencies to place before the objects being linked to create a
18229 predep_objects=$lt_predep_objects
18231 # Dependencies to place after the objects being linked to create a
18233 postdep_objects=$lt_postdep_objects
18235 # Dependencies to place before the objects being linked to create a
18237 predeps=$lt_predeps
18239 # Dependencies to place after the objects being linked to create a
18241 postdeps=$lt_postdeps
18243 # The library search path used internally by the compiler when linking
18244 # a shared library.
18245 compiler_lib_search_path=$lt_compiler_lib_search_path
18247 # Method to check whether dependent libraries are shared objects.
18248 deplibs_check_method=$lt_deplibs_check_method
18250 # Command to use when deplibs_check_method == file_magic.
18251 file_magic_cmd=$lt_file_magic_cmd
18253 # Flag that allows shared libraries with undefined symbols to be built.
18254 allow_undefined_flag=$lt_allow_undefined_flag
18256 # Flag that forces no undefined symbols.
18257 no_undefined_flag=$lt_no_undefined_flag
18259 # Commands used to finish a libtool library installation in a directory.
18260 finish_cmds=$lt_finish_cmds
18262 # Same as above, but a single script fragment to be evaled but not shown.
18263 finish_eval=$lt_finish_eval
18265 # Take the output of nm and produce a listing of raw symbols and C names.
18266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18268 # Transform the output of nm in a proper C declaration
18269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18271 # Transform the output of nm in a C name address pair
18272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18274 # This is the shared library runtime path variable.
18275 runpath_var=$runpath_var
18277 # This is the shared library path variable.
18278 shlibpath_var=$shlibpath_var
18280 # Is shlibpath searched before the hard-coded library search path?
18281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18283 # How to hardcode a shared library path into an executable.
18284 hardcode_action=$hardcode_action
18286 # Whether we should hardcode library paths into libraries.
18287 hardcode_into_libs=$hardcode_into_libs
18289 # Flag to hardcode \$libdir into a binary during linking.
18290 # This must work even if \$libdir does not exist.
18291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18293 # If ld is used when linking, flag to hardcode \$libdir into
18294 # a binary during linking. This must work even if \$libdir does
18296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18298 # Whether we need a single -rpath flag with a separated argument.
18299 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18302 # resulting binary.
18303 hardcode_direct=$hardcode_direct
18305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18306 # resulting binary.
18307 hardcode_minus_L=$hardcode_minus_L
18309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18310 # the resulting binary.
18311 hardcode_shlibpath_var=$hardcode_shlibpath_var
18313 # Set to yes if building a shared library automatically hardcodes DIR into the library
18314 # and all subsequent libraries and executables linked against it.
18315 hardcode_automatic=$hardcode_automatic
18317 # Variables whose values should be saved in libtool wrapper scripts and
18318 # restored at relink time.
18319 variables_saved_for_relink="$variables_saved_for_relink"
18321 # Whether libtool must link a program against all its dependency libraries.
18322 link_all_deplibs=$link_all_deplibs
18324 # Compile-time system search path for libraries
18325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18327 # Run-time system search path for libraries
18328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18330 # Fix the shell variable \$srcfile for the compiler.
18331 fix_srcfile_path="$fix_srcfile_path"
18333 # Set to yes if exported symbols are required.
18334 always_export_symbols=$always_export_symbols
18336 # The commands to list exported symbols.
18337 export_symbols_cmds=$lt_export_symbols_cmds
18339 # The commands to extract the exported symbol list from a shared archive.
18340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18342 # Symbols that should not be listed in the preloaded symbols.
18343 exclude_expsyms=$lt_exclude_expsyms
18345 # Symbols that must always be exported.
18346 include_expsyms=$lt_include_expsyms
18348 # ### END LIBTOOL CONFIG
18355 cat <<\EOF >> "$cfgfile"
18357 # AIX sometimes has problems with the GCC collect2 program. For some
18358 # reason, if we set the COLLECT_NAMES environment variable, the problems
18359 # vanish in a puff of smoke.
18360 if test "X${COLLECT_NAMES+set}" != Xset; then
18362 export COLLECT_NAMES
18368 # We use sed instead of cat because bash on DJGPP gets confused if
18369 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18370 # text mode, it properly converts lines to CR/LF. This bash problem
18371 # is reportedly fixed, but why not run on old versions too?
18372 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18374 mv -f "$cfgfile" "$ofile" || \
18375 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18379 # If there is no Makefile yet, we rely on a make rule to execute
18380 # `config.status --recheck' to rerun these tests and create the
18381 # libtool script then.
18382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18383 if test -f "$ltmain_in"; then
18384 test -f Makefile && make "$ltmain"
18390 ac_cpp='$CPP $CPPFLAGS'
18391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18398 # Check whether --with-tags was given.
18399 if test "${with_tags+set}" = set; then
18400 withval=$with_tags; tagnames="$withval"
18404 if test -f "$ltmain" && test -n "$tagnames"; then
18405 if test ! -f "${ofile}"; then
18406 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18407 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18410 if test -z "$LTCC"; then
18411 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18412 if test -z "$LTCC"; then
18413 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18414 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18416 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18417 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18420 if test -z "$LTCFLAGS"; then
18421 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18424 # Extract list of available tagged configurations in $ofile.
18425 # Note that this assumes the entire list is on one line.
18426 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18429 for tagname in $tagnames; do
18431 # Check whether tagname contains only valid characters
18432 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18434 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18435 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18436 { (exit 1); exit 1; }; }
18440 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18442 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18443 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18444 { (exit 1); exit 1; }; }
18447 # Update the list of available tags.
18448 if test -n "$tagname"; then
18449 echo appending configuration tag \"$tagname\" to $ofile
18453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18454 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18455 (test "X$CXX" != "Xg++"))) ; then
18457 ac_cpp='$CXXCPP $CPPFLAGS'
18458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18465 archive_cmds_need_lc_CXX=no
18466 allow_undefined_flag_CXX=
18467 always_export_symbols_CXX=no
18468 archive_expsym_cmds_CXX=
18469 export_dynamic_flag_spec_CXX=
18470 hardcode_direct_CXX=no
18471 hardcode_libdir_flag_spec_CXX=
18472 hardcode_libdir_flag_spec_ld_CXX=
18473 hardcode_libdir_separator_CXX=
18474 hardcode_minus_L_CXX=no
18475 hardcode_shlibpath_var_CXX=unsupported
18476 hardcode_automatic_CXX=no
18478 module_expsym_cmds_CXX=
18479 link_all_deplibs_CXX=unknown
18480 old_archive_cmds_CXX=$old_archive_cmds
18481 no_undefined_flag_CXX=
18482 whole_archive_flag_spec_CXX=
18483 enable_shared_with_static_runtimes_CXX=no
18485 # Dependencies to place before and after the object being linked:
18486 predep_objects_CXX=
18487 postdep_objects_CXX=
18490 compiler_lib_search_path_CXX=
18492 # Source file extension for C++ test sources.
18495 # Object file extension for compiled C++ test sources.
18499 # Code to be used in simple compile tests
18500 lt_simple_compile_test_code="int some_variable = 0;\n"
18502 # Code to be used in simple link tests
18503 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18507 # If no C compiler was specified, use CC.
18510 # If no C compiler flags were specified, use CFLAGS.
18511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18513 # Allow CC to be a program name with arguments.
18517 # save warnings/boilerplate of simple test code
18518 ac_outfile=conftest.$ac_objext
18519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18521 _lt_compiler_boilerplate=`cat conftest.err`
18524 ac_outfile=conftest.$ac_objext
18525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18527 _lt_linker_boilerplate=`cat conftest.err`
18531 # Allow CC to be a program name with arguments.
18536 lt_save_with_gnu_ld=$with_gnu_ld
18537 lt_save_path_LD=$lt_cv_path_LD
18538 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18539 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18541 $as_unset lt_cv_prog_gnu_ld
18543 if test -n "${lt_cv_path_LDCXX+set}"; then
18544 lt_cv_path_LD=$lt_cv_path_LDCXX
18546 $as_unset lt_cv_path_LD
18548 test -z "${LDCXX+set}" || LD=$LDCXX
18552 for cc_temp in $compiler""; do
18554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18563 # We don't want -fno-exception wen compiling C++ code, so set the
18564 # no_builtin_flag separately
18565 if test "$GXX" = yes; then
18566 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18568 lt_prog_compiler_no_builtin_flag_CXX=
18571 if test "$GXX" = yes; then
18572 # Set up default GNU C++ configuration
18575 # Check whether --with-gnu-ld was given.
18576 if test "${with_gnu_ld+set}" = set; then
18577 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18583 if test "$GCC" = yes; then
18584 # Check if gcc -print-prog-name=ld gives a path.
18585 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18586 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18589 # gcc leaves a trailing carriage return which upsets mingw
18590 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18592 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18595 # Accept absolute paths.
18597 re_direlt='/[^/][^/]*/\.\./'
18598 # Canonicalize the pathname of ld
18599 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18600 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18601 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18603 test -z "$LD" && LD="$ac_prog"
18606 # If it fails, then pretend we aren't using GCC.
18610 # If it is relative, then search for the first ld in PATH.
18611 with_gnu_ld=unknown
18614 elif test "$with_gnu_ld" = yes; then
18615 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18616 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18618 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18619 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18621 if test "${lt_cv_path_LD+set}" = set; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 if test -z "$LD"; then
18625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18626 for ac_dir in $PATH; do
18628 test -z "$ac_dir" && ac_dir=.
18629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18630 lt_cv_path_LD="$ac_dir/$ac_prog"
18631 # Check to see if the program is GNU ld. I'd rather use --version,
18632 # but apparently some variants of GNU ld only accept -v.
18633 # Break only if it was the GNU/non-GNU ld that we prefer.
18634 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18635 *GNU* | *'with BFD'*)
18636 test "$with_gnu_ld" != no && break
18639 test "$with_gnu_ld" != yes && break
18646 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18650 LD="$lt_cv_path_LD"
18651 if test -n "$LD"; then
18652 { echo "$as_me:$LINENO: result: $LD" >&5
18653 echo "${ECHO_T}$LD" >&6; }
18655 { echo "$as_me:$LINENO: result: no" >&5
18656 echo "${ECHO_T}no" >&6; }
18658 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18660 { (exit 1); exit 1; }; }
18661 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18667 case `$LD -v 2>&1 </dev/null` in
18668 *GNU* | *'with BFD'*)
18669 lt_cv_prog_gnu_ld=yes
18672 lt_cv_prog_gnu_ld=no
18676 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18677 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18678 with_gnu_ld=$lt_cv_prog_gnu_ld
18682 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18683 # archiving commands below assume that GNU ld is being used.
18684 if test "$with_gnu_ld" = yes; then
18685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18686 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'
18688 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18691 # If archive_cmds runs LD, not CC, wlarc should be empty
18692 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18693 # investigate it a little bit more. (MM)
18696 # ancient GNU ld didn't support --whole-archive et. al.
18697 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18698 grep 'no-whole-archive' > /dev/null; then
18699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18701 whole_archive_flag_spec_CXX=
18707 # A generic and very simple default shared library creation
18708 # command for GNU C++ for the case where it uses the native
18709 # linker, instead of GNU ld. If possible, this setting should
18710 # overridden to take advantage of the native linker features on
18711 # the platform it is being used on.
18712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18715 # Commands to make compiler produce verbose output that lists
18716 # what "hidden" libraries, object files and flags are used when
18717 # linking a shared library.
18718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18726 # PORTME: fill in a description of your system's C++ link characteristics
18727 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18728 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18732 # FIXME: insert proper C++ library support
18736 if test "$host_cpu" = ia64; then
18737 # On IA64, the linker does run time linking by default, so we don't
18738 # have to do anything special.
18739 aix_use_runtimelinking=no
18740 exp_sym_flag='-Bexport'
18743 aix_use_runtimelinking=no
18745 # Test if we are trying to use run time linking or normal
18746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18747 # need to do runtime linking.
18748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18749 for ld_flag in $LDFLAGS; do
18752 aix_use_runtimelinking=yes
18760 exp_sym_flag='-bexport'
18761 no_entry_flag='-bnoentry'
18764 # When large executables or shared objects are built, AIX ld can
18765 # have problems creating the table of contents. If linking a library
18766 # or program results in "error TOC overflow" add -mminimal-toc to
18767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18770 archive_cmds_CXX=''
18771 hardcode_direct_CXX=yes
18772 hardcode_libdir_separator_CXX=':'
18773 link_all_deplibs_CXX=yes
18775 if test "$GXX" = yes; then
18776 case $host_os in aix4.[012]|aix4.[012].*)
18777 # We only want to do this on AIX 4.2 and lower, the check
18778 # below for broken collect2 doesn't work under 4.3+
18779 collect2name=`${CC} -print-prog-name=collect2`
18780 if test -f "$collect2name" && \
18781 strings "$collect2name" | grep resolve_lib_name >/dev/null
18783 # We have reworked collect2
18784 hardcode_direct_CXX=yes
18786 # We have old collect2
18787 hardcode_direct_CXX=unsupported
18788 # It fails to find uninstalled libraries when the uninstalled
18789 # path is not listed in the libpath. Setting hardcode_minus_L
18790 # to unsupported forces relinking
18791 hardcode_minus_L_CXX=yes
18792 hardcode_libdir_flag_spec_CXX='-L$libdir'
18793 hardcode_libdir_separator_CXX=
18797 shared_flag='-shared'
18798 if test "$aix_use_runtimelinking" = yes; then
18799 shared_flag="$shared_flag "'${wl}-G'
18803 if test "$host_cpu" = ia64; then
18804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18805 # chokes on -Wl,-G. The following line is correct:
18808 if test "$aix_use_runtimelinking" = yes; then
18809 shared_flag='${wl}-G'
18811 shared_flag='${wl}-bM:SRE'
18816 # It seems that -bexpall does not export symbols beginning with
18817 # underscore (_), so it is better to generate a list of symbols to export.
18818 always_export_symbols_CXX=yes
18819 if test "$aix_use_runtimelinking" = yes; then
18820 # Warning - without using the other runtime loading flags (-brtl),
18821 # -berok will link without error, but may produce a broken library.
18822 allow_undefined_flag_CXX='-berok'
18823 # Determine the default libpath from the value encoded in an empty executable.
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18876 # Check for a 64-bit object if we didn't find anything.
18877 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; }
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18886 rm -f core conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18892 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"
18894 if test "$host_cpu" = ia64; then
18895 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18896 allow_undefined_flag_CXX="-z nodefs"
18897 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"
18899 # Determine the default libpath from the value encoded in an empty executable.
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18952 # Check for a 64-bit object if we didn't find anything.
18953 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; }
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18962 rm -f core conftest.err conftest.$ac_objext \
18963 conftest$ac_exeext conftest.$ac_ext
18964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18966 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18967 # Warning - without using the other run time loading flags,
18968 # -berok will link without error, but may produce a broken library.
18969 no_undefined_flag_CXX=' ${wl}-bernotok'
18970 allow_undefined_flag_CXX=' ${wl}-berok'
18971 # Exported symbols can be pulled into shared objects from archives
18972 whole_archive_flag_spec_CXX='$convenience'
18973 archive_cmds_need_lc_CXX=yes
18974 # This is similar to how AIX traditionally builds its shared libraries.
18975 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'
18981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18982 allow_undefined_flag_CXX=unsupported
18983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18984 # support --undefined. This deserves some investigation. FIXME
18985 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18992 case $cc_basename in
18994 # FIXME: insert proper C++ library support
19000 cygwin* | mingw* | pw32*)
19001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19002 # as there is no search path for DLLs.
19003 hardcode_libdir_flag_spec_CXX='-L$libdir'
19004 allow_undefined_flag_CXX=unsupported
19005 always_export_symbols_CXX=no
19006 enable_shared_with_static_runtimes_CXX=yes
19008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19009 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'
19010 # If the export-symbols file already is a .def file (1st line
19011 # is EXPORTS), use it as is; otherwise, prepend...
19012 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19013 cp $export_symbols $output_objdir/$soname.def;
19015 echo EXPORTS > $output_objdir/$soname.def;
19016 cat $export_symbols >> $output_objdir/$soname.def;
19018 $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'
19023 darwin* | rhapsody*)
19025 rhapsody* | darwin1.[012])
19026 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19030 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19032 case ${MACOSX_DEPLOYMENT_TARGET} in
19034 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19037 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19043 archive_cmds_need_lc_CXX=no
19044 hardcode_direct_CXX=no
19045 hardcode_automatic_CXX=yes
19046 hardcode_shlibpath_var_CXX=unsupported
19047 whole_archive_flag_spec_CXX=''
19048 link_all_deplibs_CXX=yes
19050 if test "$GXX" = yes ; then
19051 lt_int_apple_cc_single_mod=no
19052 output_verbose_link_cmd='echo'
19053 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19054 lt_int_apple_cc_single_mod=yes
19056 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19057 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19059 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'
19061 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19063 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19064 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}'
19066 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}'
19068 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}'
19070 case $cc_basename in
19072 output_verbose_link_cmd='echo'
19073 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'
19074 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19075 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19076 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}'
19077 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}'
19087 case $cc_basename in
19089 # FIXME: insert proper C++ library support
19093 # Green Hills C++ Compiler
19094 # FIXME: insert proper C++ library support
19098 # FIXME: insert proper C++ library support
19104 # C++ shared libraries reported to be fairly broken before switch to ELF
19108 archive_cmds_need_lc_CXX=no
19110 freebsd* | kfreebsd*-gnu | dragonfly*)
19111 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_separator_CXX=:
19120 export_dynamic_flag_spec_CXX='${wl}-E'
19121 hardcode_direct_CXX=yes
19122 hardcode_minus_L_CXX=yes # Not in the search PATH,
19123 # but as the default
19124 # location of the library.
19126 case $cc_basename in
19128 # FIXME: insert proper C++ library support
19132 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'
19133 # Commands to make compiler produce verbose output that lists
19134 # what "hidden" libraries, object files and flags are used when
19135 # linking a shared library.
19137 # There doesn't appear to be a way to prevent this compiler from
19138 # explicitly linking system object files so we need to strip them
19139 # from the output so that they don't get included in the library
19141 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'
19144 if test "$GXX" = yes; then
19145 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'
19147 # FIXME: insert proper C++ library support
19154 if test $with_gnu_ld = no; then
19155 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19156 hardcode_libdir_separator_CXX=:
19160 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19163 export_dynamic_flag_spec_CXX='${wl}-E'
19169 hardcode_direct_CXX=no
19170 hardcode_shlibpath_var_CXX=no
19173 hardcode_direct_CXX=yes
19174 hardcode_minus_L_CXX=yes # Not in the search PATH,
19175 # but as the default
19176 # location of the library.
19180 case $cc_basename in
19182 # FIXME: insert proper C++ library support
19188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19191 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19194 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19197 # Commands to make compiler produce verbose output that lists
19198 # what "hidden" libraries, object files and flags are used when
19199 # linking a shared library.
19201 # There doesn't appear to be a way to prevent this compiler from
19202 # explicitly linking system object files so we need to strip them
19203 # from the output so that they don't get included in the library
19205 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'
19208 if test "$GXX" = yes; then
19209 if test $with_gnu_ld = no; then
19212 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19218 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'
19223 # FIXME: insert proper C++ library support
19230 hardcode_direct_CXX=no
19231 hardcode_shlibpath_var_CXX=no
19232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19233 export_dynamic_flag_spec_CXX='${wl}-E'
19234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19235 # Instead, shared libraries are loaded at an image base (0x10000000 by
19236 # default) and relocated if they conflict, which is a slow very memory
19237 # consuming and fragmenting process. To avoid this, we pick a random,
19238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19240 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'
19241 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'
19244 case $cc_basename in
19247 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'
19249 # Archives containing C++ object files must be created using
19250 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19251 # necessary to make sure instantiated templates are included
19253 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19256 if test "$GXX" = yes; then
19257 if test "$with_gnu_ld" = no; then
19258 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'
19260 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'
19263 link_all_deplibs_CXX=yes
19266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19267 hardcode_libdir_separator_CXX=:
19270 case $cc_basename in
19272 # Kuck and Associates, Inc. (KAI) C++ Compiler
19274 # KCC will only create a shared library if the output file
19275 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19276 # to its proper name (with version) after linking.
19277 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'
19278 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'
19279 # Commands to make compiler produce verbose output that lists
19280 # what "hidden" libraries, object files and flags are used when
19281 # linking a shared library.
19283 # There doesn't appear to be a way to prevent this compiler from
19284 # explicitly linking system object files so we need to strip them
19285 # from the output so that they don't get included in the library
19287 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'
19289 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19292 # Archives containing C++ object files must be created using
19293 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19294 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19299 # version 8.0 and above of icpc choke on multiply defined symbols
19300 # if we add $predep_objects and $postdep_objects, however 7.1 and
19301 # earlier do not add the objects themselves.
19302 case `$CC -V 2>&1` in
19304 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305 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'
19307 *) # Version 8.0 or newer
19310 ia64*) tmp_idyn=' -i_dynamic';;
19312 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19313 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'
19316 archive_cmds_need_lc_CXX=no
19317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19319 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19322 # Portland Group C++ compiler
19323 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19324 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'
19326 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19328 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'
19332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19333 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'
19335 runpath_var=LD_RUN_PATH
19336 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19337 hardcode_libdir_separator_CXX=:
19339 # Commands to make compiler produce verbose output that lists
19340 # what "hidden" libraries, object files and flags are used when
19341 # linking a shared library.
19343 # There doesn't appear to be a way to prevent this compiler from
19344 # explicitly linking system object files so we need to strip them
19345 # from the output so that they don't get included in the library
19347 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'
19352 # FIXME: insert proper C++ library support
19356 # FIXME: insert proper C++ library support
19360 case $cc_basename in
19362 # FIXME: insert proper C++ library support
19366 # FIXME: insert proper C++ library support
19372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19373 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19375 hardcode_libdir_flag_spec_CXX='-R$libdir'
19376 hardcode_direct_CXX=yes
19377 hardcode_shlibpath_var_CXX=no
19379 # Workaround some broken pre-1.5 toolchains
19380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19383 # C++ shared libraries are fairly broken
19387 hardcode_direct_CXX=yes
19388 hardcode_shlibpath_var_CXX=no
19389 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19392 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19393 export_dynamic_flag_spec_CXX='${wl}-E'
19394 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19396 output_verbose_link_cmd='echo'
19399 case $cc_basename in
19401 # Kuck and Associates, Inc. (KAI) C++ Compiler
19403 # KCC will only create a shared library if the output file
19404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19405 # to its proper name (with version) after linking.
19406 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'
19408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409 hardcode_libdir_separator_CXX=:
19411 # Archives containing C++ object files must be created using
19412 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19413 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19417 # Rational C++ 2.4.1
19418 # FIXME: insert proper C++ library support
19422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19423 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'
19425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19426 hardcode_libdir_separator_CXX=:
19428 # Commands to make compiler produce verbose output that lists
19429 # what "hidden" libraries, object files and flags are used when
19430 # linking a shared library.
19432 # There doesn't appear to be a way to prevent this compiler from
19433 # explicitly linking system object files so we need to strip them
19434 # from the output so that they don't get included in the library
19436 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'
19439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19441 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'
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19452 # FIXME: insert proper C++ library support
19459 case $cc_basename in
19461 # Kuck and Associates, Inc. (KAI) C++ Compiler
19463 # KCC will only create a shared library if the output file
19464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19465 # to its proper name (with version) after linking.
19466 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'
19468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19469 hardcode_libdir_separator_CXX=:
19471 # Archives containing C++ object files must be created using
19472 # the KAI C++ compiler.
19473 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19476 # Rational C++ 2.4.1
19477 # FIXME: insert proper C++ library support
19481 allow_undefined_flag_CXX=' -expect_unresolved \*'
19482 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'
19483 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19484 echo "-hidden">> $lib.exp~
19485 $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~
19488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19489 hardcode_libdir_separator_CXX=:
19491 # Commands to make compiler produce verbose output that lists
19492 # what "hidden" libraries, object files and flags are used when
19493 # linking a shared library.
19495 # There doesn't appear to be a way to prevent this compiler from
19496 # explicitly linking system object files so we need to strip them
19497 # from the output so that they don't get included in the library
19499 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'
19502 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19503 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19504 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'
19506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19507 hardcode_libdir_separator_CXX=:
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19515 # FIXME: insert proper C++ library support
19522 # FIXME: insert proper C++ library support
19526 case $cc_basename in
19529 # FIXME: insert proper C++ library support
19534 # FIXME: insert proper C++ library support
19538 # FIXME: insert proper C++ library support
19544 case $cc_basename in
19546 # Sun C++ 4.2, 5.x and Centerline C++
19547 archive_cmds_need_lc_CXX=yes
19548 no_undefined_flag_CXX=' -zdefs'
19549 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19550 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19551 $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'
19553 hardcode_libdir_flag_spec_CXX='-R$libdir'
19554 hardcode_shlibpath_var_CXX=no
19556 solaris2.[0-5] | solaris2.[0-5].*) ;;
19558 # The C++ compiler is used as linker so we must use $wl
19559 # flag to pass the commands to the underlying system
19560 # linker. We must also pass each convience library through
19561 # to the system linker between allextract/defaultextract.
19562 # The C++ compiler will combine linker options so we
19563 # cannot just pass the convience library names through
19565 # Supported since Solaris 2.6 (maybe 2.5.1?)
19566 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'
19569 link_all_deplibs_CXX=yes
19571 output_verbose_link_cmd='echo'
19573 # Archives containing C++ object files must be created using
19574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19575 # necessary to make sure instantiated templates are included
19577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19580 # Green Hills C++ Compiler
19581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19583 # The C++ compiler must be used to create the archive.
19584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19587 # GNU C++ compiler with Solaris linker
19588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19589 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19590 if $CC --version | grep -v '^2\.7' > /dev/null; then
19591 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19592 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19593 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19595 # Commands to make compiler produce verbose output that lists
19596 # what "hidden" libraries, object files and flags are used when
19597 # linking a shared library.
19598 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19600 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19602 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19604 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19606 # Commands to make compiler produce verbose output that lists
19607 # what "hidden" libraries, object files and flags are used when
19608 # linking a shared library.
19609 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19612 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19617 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19618 no_undefined_flag_CXX='${wl}-z,text'
19619 archive_cmds_need_lc_CXX=no
19620 hardcode_shlibpath_var_CXX=no
19621 runpath_var='LD_RUN_PATH'
19623 case $cc_basename in
19625 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19626 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19629 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19630 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19634 sysv5* | sco3.2v5* | sco5v6*)
19635 # Note: We can NOT use -z defs as we might desire, because we do not
19636 # link with -lc, and that would cause any symbols used from libc to
19637 # always be unresolved, which means just about no library would
19638 # ever link correctly. If we're not using GNU ld we use -z text
19639 # though, which does catch some bad symbols but isn't as heavy-handed
19641 # For security reasons, it is highly recommended that you always
19642 # use absolute paths for naming shared libraries, and exclude the
19643 # DT_RUNPATH tag from executables and libraries. But doing so
19644 # requires that you compile everything twice, which is a pain.
19645 # So that behaviour is only enabled if SCOABSPATH is set to a
19646 # non-empty value in the environment. Most likely only useful for
19647 # creating official distributions of packages.
19648 # This is a hack until libtool officially supports absolute path
19649 # names for shared libraries.
19650 no_undefined_flag_CXX='${wl}-z,text'
19651 allow_undefined_flag_CXX='${wl}-z,nodefs'
19652 archive_cmds_need_lc_CXX=no
19653 hardcode_shlibpath_var_CXX=no
19654 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19655 hardcode_libdir_separator_CXX=':'
19656 link_all_deplibs_CXX=yes
19657 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19658 runpath_var='LD_RUN_PATH'
19660 case $cc_basename in
19662 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19666 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19667 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19672 case $cc_basename in
19674 # NonStop-UX NCC 3.20
19675 # FIXME: insert proper C++ library support
19679 # FIXME: insert proper C++ library support
19685 # FIXME: insert proper C++ library support
19689 # FIXME: insert proper C++ library support
19693 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19694 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19695 test "$ld_shlibs_CXX" = no && can_build_shared=no
19701 cat > conftest.$ac_ext <<EOF
19705 Foo (void) { a = 0; }
19711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19712 (eval $ac_compile) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; then
19716 # Parse the compiler output and extract the necessary
19717 # objects, libraries and library flags.
19719 # Sentinel used to keep track of whether or not we are before
19720 # the conftest object file.
19721 pre_test_object_deps_done=no
19723 # The `*' in the case matches for architectures that use `case' in
19724 # $output_verbose_cmd can trigger glob expansion during the loop
19725 # eval without this substitution.
19726 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19728 for p in `eval $output_verbose_link_cmd`; do
19732 # Some compilers place space between "-{L,R}" and the path.
19733 # Remove the space.
19734 if test $p = "-L" \
19735 || test $p = "-R"; then
19742 if test "$pre_test_object_deps_done" = no; then
19745 # Internal compiler library paths should come after those
19746 # provided the user. The postdeps already come after the
19747 # user supplied libs so there is no need to process them.
19748 if test -z "$compiler_lib_search_path_CXX"; then
19749 compiler_lib_search_path_CXX="${prev}${p}"
19751 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19754 # The "-l" case would never come before the object being
19755 # linked, so don't bother handling this case.
19758 if test -z "$postdeps_CXX"; then
19759 postdeps_CXX="${prev}${p}"
19761 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19767 # This assumes that the test object file only shows up
19768 # once in the compiler output.
19769 if test "$p" = "conftest.$objext"; then
19770 pre_test_object_deps_done=yes
19774 if test "$pre_test_object_deps_done" = no; then
19775 if test -z "$predep_objects_CXX"; then
19776 predep_objects_CXX="$p"
19778 predep_objects_CXX="$predep_objects_CXX $p"
19781 if test -z "$postdep_objects_CXX"; then
19782 postdep_objects_CXX="$p"
19784 postdep_objects_CXX="$postdep_objects_CXX $p"
19789 *) ;; # Ignore the rest.
19797 echo "libtool.m4: error: problem compiling CXX test program"
19800 $rm -f confest.$objext
19802 # PORTME: override above test on systems where it is broken
19805 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19806 # hack all around it, let's just trust "g++" to DTRT.
19807 predep_objects_CXX=
19808 postdep_objects_CXX=
19813 case $cc_basename in
19815 # Adding this requires a known-good setup of shared libraries for
19816 # Sun compiler versions before 5.6, else PIC objects from an old
19817 # archive will be linked into the output, leading to subtle bugs.
19818 postdeps_CXX='-lCstd -lCrun'
19825 case " $postdeps_CXX " in
19826 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19829 lt_prog_compiler_wl_CXX=
19830 lt_prog_compiler_pic_CXX=
19831 lt_prog_compiler_static_CXX=
19833 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19836 # C++ specific cases for pic, static, wl, etc.
19837 if test "$GXX" = yes; then
19838 lt_prog_compiler_wl_CXX='-Wl,'
19839 lt_prog_compiler_static_CXX='-static'
19843 # All AIX code is PIC.
19844 if test "$host_cpu" = ia64; then
19845 # AIX 5 now supports IA64 processor
19846 lt_prog_compiler_static_CXX='-Bstatic'
19850 # FIXME: we need at least 68020 code to build shared libraries, but
19851 # adding the `-m68020' flag to GCC prevents building anything better,
19853 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19855 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19856 # PIC is the default for these OSes.
19858 mingw* | os2* | pw32*)
19859 # This hack is so that the source file can tell whether it is being
19860 # built for inclusion in a dll (and should export symbols for example).
19861 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19863 darwin* | rhapsody*)
19864 # PIC is the default on this platform
19865 # Common symbols not allowed in MH_DYLIB files
19866 lt_prog_compiler_pic_CXX='-fno-common'
19869 # DJGPP does not support shared libraries at all
19870 lt_prog_compiler_pic_CXX=
19873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19874 # Instead, we relocate shared libraries at runtime.
19877 if test -d /usr/nec; then
19878 lt_prog_compiler_pic_CXX=-Kconform_pic
19882 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19883 # not for PA HP-UX.
19888 lt_prog_compiler_pic_CXX='-fPIC'
19893 lt_prog_compiler_pic_CXX='-fPIC'
19899 # All AIX code is PIC.
19900 if test "$host_cpu" = ia64; then
19901 # AIX 5 now supports IA64 processor
19902 lt_prog_compiler_static_CXX='-Bstatic'
19904 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19908 case $cc_basename in
19910 # Green Hills C++ Compiler
19911 # _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"
19916 # PIC is the default on this platform
19917 # Common symbols not allowed in MH_DYLIB files
19918 case $cc_basename in
19920 lt_prog_compiler_pic_CXX='-qnocommon'
19921 lt_prog_compiler_wl_CXX='-Wl,'
19926 case $cc_basename in
19928 lt_prog_compiler_pic_CXX='-KPIC'
19931 # Green Hills C++ Compiler
19932 lt_prog_compiler_pic_CXX='-pic'
19938 freebsd* | kfreebsd*-gnu | dragonfly*)
19939 # FreeBSD uses GNU C++
19941 hpux9* | hpux10* | hpux11*)
19942 case $cc_basename in
19944 lt_prog_compiler_wl_CXX='-Wl,'
19945 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19946 if test "$host_cpu" != ia64; then
19947 lt_prog_compiler_pic_CXX='+Z'
19951 lt_prog_compiler_wl_CXX='-Wl,'
19952 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19958 lt_prog_compiler_pic_CXX='+Z'
19967 # This is c89, which is MS Visual C++ (no shared libs)
19968 # Anyone wants to do a port?
19970 irix5* | irix6* | nonstopux*)
19971 case $cc_basename in
19973 lt_prog_compiler_wl_CXX='-Wl,'
19974 lt_prog_compiler_static_CXX='-non_shared'
19975 # CC pic flag -KPIC is the default.
19982 case $cc_basename in
19985 lt_prog_compiler_wl_CXX='--backend -Wl,'
19986 lt_prog_compiler_pic_CXX='-fPIC'
19990 lt_prog_compiler_wl_CXX='-Wl,'
19991 lt_prog_compiler_pic_CXX='-KPIC'
19992 lt_prog_compiler_static_CXX='-static'
19995 # Portland Group C++ compiler.
19996 lt_prog_compiler_wl_CXX='-Wl,'
19997 lt_prog_compiler_pic_CXX='-fpic'
19998 lt_prog_compiler_static_CXX='-Bstatic'
20002 # Make sure the PIC flag is empty. It appears that all Alpha
20003 # Linux and Compaq Tru64 Unix objects are PIC.
20004 lt_prog_compiler_pic_CXX=
20005 lt_prog_compiler_static_CXX='-non_shared'
20016 case $cc_basename in
20018 lt_prog_compiler_pic_CXX='-W c,exportall'
20026 osf3* | osf4* | osf5*)
20027 case $cc_basename in
20029 lt_prog_compiler_wl_CXX='--backend -Wl,'
20032 # Rational C++ 2.4.1
20033 lt_prog_compiler_pic_CXX='-pic'
20036 # Digital/Compaq C++
20037 lt_prog_compiler_wl_CXX='-Wl,'
20038 # Make sure the PIC flag is empty. It appears that all Alpha
20039 # Linux and Compaq Tru64 Unix objects are PIC.
20040 lt_prog_compiler_pic_CXX=
20041 lt_prog_compiler_static_CXX='-non_shared'
20050 case $cc_basename in
20052 # Sun C++ 4.2, 5.x and Centerline C++
20053 lt_prog_compiler_pic_CXX='-KPIC'
20054 lt_prog_compiler_static_CXX='-Bstatic'
20055 lt_prog_compiler_wl_CXX='-Qoption ld '
20058 # Green Hills C++ Compiler
20059 lt_prog_compiler_pic_CXX='-PIC'
20066 case $cc_basename in
20069 lt_prog_compiler_pic_CXX='-pic'
20070 lt_prog_compiler_static_CXX='-Bstatic'
20074 lt_prog_compiler_pic_CXX='-pic'
20081 case $cc_basename in
20083 # NonStop-UX NCC 3.20
20084 lt_prog_compiler_pic_CXX='-KPIC'
20090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20091 case $cc_basename in
20093 lt_prog_compiler_wl_CXX='-Wl,'
20094 lt_prog_compiler_pic_CXX='-KPIC'
20095 lt_prog_compiler_static_CXX='-Bstatic'
20102 lt_prog_compiler_can_build_shared_CXX=no
20107 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20108 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20111 # Check to make sure the PIC flag actually works.
20113 if test -n "$lt_prog_compiler_pic_CXX"; then
20115 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20116 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20117 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 lt_prog_compiler_pic_works_CXX=no
20121 ac_outfile=conftest.$ac_objext
20122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20123 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20124 # Insert the option either (1) after the last *FLAGS variable, or
20125 # (2) before a word containing "conftest.", or (3) at the end.
20126 # Note that $ac_compile itself does not contain backslashes and begins
20127 # with a dollar sign (not a hyphen), so the echo should work correctly.
20128 # The option is referenced via a variable to avoid confusing sed.
20129 lt_compile=`echo "$ac_compile" | $SED \
20130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20132 -e 's:$: $lt_compiler_flag:'`
20133 (eval echo "\"\$as_me:20133: $lt_compile\"" >&5)
20134 (eval "$lt_compile" 2>conftest.err)
20136 cat conftest.err >&5
20137 echo "$as_me:20137: \$? = $ac_status" >&5
20138 if (exit $ac_status) && test -s "$ac_outfile"; then
20139 # The compiler can only warn and ignore the option if not recognized
20140 # So say no if there are warnings other than the usual output.
20141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20144 lt_prog_compiler_pic_works_CXX=yes
20150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20151 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20153 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20154 case $lt_prog_compiler_pic_CXX in
20156 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20159 lt_prog_compiler_pic_CXX=
20160 lt_prog_compiler_can_build_shared_CXX=no
20165 # For platforms which do not support PIC, -DPIC is meaningless:
20167 lt_prog_compiler_pic_CXX=
20170 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20175 # Check to make sure the static flag actually works.
20177 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20178 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20179 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20180 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 lt_prog_compiler_static_works_CXX=no
20184 save_LDFLAGS="$LDFLAGS"
20185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20186 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20188 # The linker can only warn and ignore the option if not recognized
20189 # So say no if there are warnings
20190 if test -s conftest.err; then
20191 # Append any errors to the config.log.
20192 cat conftest.err 1>&5
20193 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20195 if diff conftest.exp conftest.er2 >/dev/null; then
20196 lt_prog_compiler_static_works_CXX=yes
20199 lt_prog_compiler_static_works_CXX=yes
20203 LDFLAGS="$save_LDFLAGS"
20206 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20207 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20209 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20212 lt_prog_compiler_static_CXX=
20216 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20217 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20218 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 lt_cv_prog_compiler_c_o_CXX=no
20222 $rm -r conftest 2>/dev/null
20226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20228 lt_compiler_flag="-o out/conftest2.$ac_objext"
20229 # Insert the option either (1) after the last *FLAGS variable, or
20230 # (2) before a word containing "conftest.", or (3) at the end.
20231 # Note that $ac_compile itself does not contain backslashes and begins
20232 # with a dollar sign (not a hyphen), so the echo should work correctly.
20233 lt_compile=`echo "$ac_compile" | $SED \
20234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20236 -e 's:$: $lt_compiler_flag:'`
20237 (eval echo "\"\$as_me:20237: $lt_compile\"" >&5)
20238 (eval "$lt_compile" 2>out/conftest.err)
20240 cat out/conftest.err >&5
20241 echo "$as_me:20241: \$? = $ac_status" >&5
20242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20244 # The compiler can only warn and ignore the option if not recognized
20245 # So say no if there are warnings
20246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20249 lt_cv_prog_compiler_c_o_CXX=yes
20254 # SGI C++ compiler will create directory out/ii_files/ for
20255 # template instantiation
20256 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20257 $rm out/* && rmdir out
20263 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20267 hard_links="nottested"
20268 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20269 # do not overwrite the value of need_locks provided by the user
20270 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20276 ln conftest.a conftest.b 2>&5 || hard_links=no
20277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20278 { echo "$as_me:$LINENO: result: $hard_links" >&5
20279 echo "${ECHO_T}$hard_links" >&6; }
20280 if test "$hard_links" = no; then
20281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20289 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20292 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20295 # If we're using GNU nm, then we don't want the "-C" option.
20296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20298 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'
20300 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'
20304 export_symbols_cmds_CXX="$ltdll_cmds"
20307 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'
20310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20314 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20315 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20316 test "$ld_shlibs_CXX" = no && can_build_shared=no
20319 # Do we need to explicitly link libc?
20321 case "x$archive_cmds_need_lc_CXX" in
20323 # Assume -lc should be added
20324 archive_cmds_need_lc_CXX=yes
20326 if test "$enable_shared" = yes && test "$GCC" = yes; then
20327 case $archive_cmds_CXX in
20329 # FIXME: we may have to deal with multi-command sequences.
20332 # Test whether the compiler implicitly links with -lc since on some
20333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20334 # to ld, don't add -lc before -lgcc.
20335 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20336 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341 (eval $ac_compile) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } 2>conftest.err; then
20347 libobjs=conftest.$ac_objext
20349 wl=$lt_prog_compiler_wl_CXX
20350 pic_flag=$lt_prog_compiler_pic_CXX
20356 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20357 allow_undefined_flag_CXX=
20358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20359 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }
20364 archive_cmds_need_lc_CXX=no
20366 archive_cmds_need_lc_CXX=yes
20368 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20370 cat conftest.err 1>&5
20373 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20374 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20381 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20383 library_names_spec=
20384 libname_spec='lib$name'
20388 postuninstall_cmds=
20392 shlibpath_overrides_runpath=unknown
20394 dynamic_linker="$host_os ld.so"
20395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20396 if test "$GCC" = yes; then
20397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20399 # if the path contains ";" then we assume it to be the separator
20400 # otherwise default to the standard path separator (i.e. ":") - it is
20401 # assumed that no part of a normal pathname contains ";" but that should
20402 # okay in the real world where ";" in dirpaths is itself problematic.
20403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20410 need_lib_prefix=unknown
20411 hardcode_into_libs=no
20413 # when you set need_version to no, make sure it does not cause -set_version
20414 # flags to be left without arguments
20415 need_version=unknown
20420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20421 shlibpath_var=LIBPATH
20423 # AIX 3 has no versioning support, so we append a major version to the name.
20424 soname_spec='${libname}${release}${shared_ext}$major'
20431 hardcode_into_libs=yes
20432 if test "$host_cpu" = ia64; then
20433 # AIX 5 supports IA64
20434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20435 shlibpath_var=LD_LIBRARY_PATH
20437 # With GCC up to 2.95.x, collect2 would create an import file
20438 # for dependence libraries. The import file would start with
20439 # the line `#! .'. This would cause the generated library to
20440 # depend on `.', always an invalid library. This was fixed in
20441 # development snapshots of GCC prior to 3.0.
20443 aix4 | aix4.[01] | aix4.[01].*)
20444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20449 can_build_shared=no
20453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20454 # soname into executable. Probably we can add versioning support to
20455 # collect2, so additional links can be useful in future.
20456 if test "$aix_use_runtimelinking" = yes; then
20457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20458 # instead of lib<name>.a to let people know that these are not
20459 # typical AIX shared libraries.
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 # We preserve .a as extension for shared libraries through AIX4.2
20463 # and later when we are not doing run time linking.
20464 library_names_spec='${libname}${release}.a $libname.a'
20465 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LIBPATH
20472 library_names_spec='$libname.ixlibrary $libname.a'
20473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20474 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'
20478 library_names_spec='${libname}${shared_ext}'
20479 dynamic_linker="$host_os ld.so"
20480 shlibpath_var=LIBRARY_PATH
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 soname_spec='${libname}${release}${shared_ext}$major'
20488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20489 shlibpath_var=LD_LIBRARY_PATH
20490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20492 # the default ld.so.conf also contains /usr/contrib/lib and
20493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20494 # libtool to hard-code these into programs
20497 cygwin* | mingw* | pw32*)
20498 version_type=windows
20503 case $GCC,$host_os in
20504 yes,cygwin* | yes,mingw* | yes,pw32*)
20505 library_names_spec='$libname.dll.a'
20506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20507 postinstall_cmds='base_file=`basename \${file}`~
20508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20509 dldir=$destdir/`dirname \$dlpath`~
20510 test -d \$dldir || mkdir -p \$dldir~
20511 $install_prog $dir/$dlname \$dldir/$dlname~
20512 chmod a+x \$dldir/$dlname'
20513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20514 dlpath=$dir/\$dldll~
20516 shlibpath_overrides_runpath=yes
20520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20525 # MinGW DLLs use traditional 'lib' prefix
20526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20529 # It is most probably a Windows format PATH printed by
20530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20531 # path with ; separators, and with drive letters. We can handle the
20532 # drive letters (cygwin fileutils understands them), so leave them,
20533 # especially as we might pass files found there to a mingw objdump,
20534 # which wouldn't understand a cygwinified path. Ahh.
20535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20541 # pw32 DLLs use 'pw' prefix rather than 'lib'
20542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20551 dynamic_linker='Win32 ld.exe'
20552 # FIXME: first we should search . and the directory the executable is in
20556 darwin* | rhapsody*)
20557 dynamic_linker="$host_os dyld"
20558 version_type=darwin
20561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20562 soname_spec='${libname}${release}${major}$shared_ext'
20563 shlibpath_overrides_runpath=yes
20564 shlibpath_var=DYLD_LIBRARY_PATH
20565 shrext_cmds='.dylib'
20566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20567 if test "$GCC" = yes; then
20568 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"`
20570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20580 soname_spec='${libname}${release}${shared_ext}$major'
20581 shlibpath_var=LD_LIBRARY_PATH
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20593 soname_spec='${libname}${release}${shared_ext}$major'
20594 shlibpath_var=LD_LIBRARY_PATH
20595 shlibpath_overrides_runpath=no
20596 hardcode_into_libs=yes
20597 dynamic_linker='GNU ld.so'
20600 freebsd* | dragonfly*)
20601 # DragonFly does not have aout. When/if they implement a new
20602 # versioning mechanism, adjust this.
20603 if test -x /usr/bin/objformat; then
20604 objformat=`/usr/bin/objformat`
20607 freebsd[123]*) objformat=aout ;;
20608 *) objformat=elf ;;
20611 version_type=freebsd-$objformat
20612 case $version_type in
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20623 shlibpath_var=LD_LIBRARY_PATH
20626 shlibpath_overrides_runpath=yes
20628 freebsd3.[01]* | freebsdelf3.[01]*)
20629 shlibpath_overrides_runpath=yes
20630 hardcode_into_libs=yes
20632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20634 shlibpath_overrides_runpath=no
20635 hardcode_into_libs=yes
20637 freebsd*) # from 4.6 on
20638 shlibpath_overrides_runpath=yes
20639 hardcode_into_libs=yes
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20649 soname_spec='${libname}${release}${shared_ext}$major'
20650 shlibpath_var=LD_LIBRARY_PATH
20651 hardcode_into_libs=yes
20654 hpux9* | hpux10* | hpux11*)
20655 # Give a soname corresponding to the major version so that dld.sl refuses to
20656 # link against other versions.
20663 hardcode_into_libs=yes
20664 dynamic_linker="$host_os dld.so"
20665 shlibpath_var=LD_LIBRARY_PATH
20666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 soname_spec='${libname}${release}${shared_ext}$major'
20669 if test "X$HPUX_IA64_MODE" = X32; then
20670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20678 hardcode_into_libs=yes
20679 dynamic_linker="$host_os dld.sl"
20680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20689 dynamic_linker="$host_os dld.sl"
20690 shlibpath_var=SHLIB_PATH
20691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20693 soname_spec='${libname}${release}${shared_ext}$major'
20696 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20697 postinstall_cmds='chmod 555 $lib'
20704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20705 soname_spec='${libname}${release}${shared_ext}$major'
20706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20707 shlibpath_var=LD_LIBRARY_PATH
20708 shlibpath_overrides_runpath=no
20709 hardcode_into_libs=yes
20712 irix5* | irix6* | nonstopux*)
20714 nonstopux*) version_type=nonstopux ;;
20716 if test "$lt_cv_prog_gnu_ld" = yes; then
20724 soname_spec='${libname}${release}${shared_ext}$major'
20725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20727 irix5* | nonstopux*)
20728 libsuff= shlibsuff=
20731 case $LD in # libtool.m4 will add one of these switches to LD
20732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20733 libsuff= shlibsuff= libmagic=32-bit;;
20734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20735 libsuff=32 shlibsuff=N32 libmagic=N32;;
20736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20738 *) libsuff= shlibsuff= libmagic=never-match;;
20742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20743 shlibpath_overrides_runpath=no
20744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20746 hardcode_into_libs=yes
20749 # No shared lib support for Linux oldld, aout, or coff.
20750 linux*oldld* | linux*aout* | linux*coff*)
20754 # This must be Linux ELF.
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20760 soname_spec='${libname}${release}${shared_ext}$major'
20761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20762 shlibpath_var=LD_LIBRARY_PATH
20763 shlibpath_overrides_runpath=no
20764 # This implies no fast_install, which is unacceptable.
20765 # Some rework will be needed to allow for fast_install
20766 # before this can be enabled.
20767 hardcode_into_libs=yes
20769 # Append ld.so.conf contents to the search path
20770 if test -f /etc/ld.so.conf; then
20771 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' ' '`
20772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20775 # We used to test for /lib/ld.so.1 and disable shared libraries on
20776 # powerpc, because MkLinux only supported shared libraries with the
20777 # GNU dynamic linker. Since this was broken with cross compilers,
20778 # most powerpc-linux boxes support dynamic linking these days and
20779 # people can always --disable-shared, the test was removed, and we
20780 # assume the GNU/Linux dynamic linker is in use.
20781 dynamic_linker='GNU/Linux ld.so'
20788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20789 soname_spec='${libname}${release}${shared_ext}$major'
20790 shlibpath_var=LD_LIBRARY_PATH
20791 shlibpath_overrides_runpath=no
20792 hardcode_into_libs=yes
20793 dynamic_linker='GNU ld.so'
20800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20803 dynamic_linker='NetBSD (a.out) ld.so'
20805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20806 soname_spec='${libname}${release}${shared_ext}$major'
20807 dynamic_linker='NetBSD ld.elf_so'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes
20811 hardcode_into_libs=yes
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 shlibpath_overrides_runpath=yes
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=yes
20833 sys_lib_dlsearch_path_spec="/usr/lib"
20835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20837 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20838 *) need_version=no ;;
20840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20845 openbsd2.[89] | openbsd2.[89].*)
20846 shlibpath_overrides_runpath=no
20849 shlibpath_overrides_runpath=yes
20853 shlibpath_overrides_runpath=yes
20858 libname_spec='$name'
20861 library_names_spec='$libname${shared_ext} $libname.a'
20862 dynamic_linker='OS/2 ld.exe'
20863 shlibpath_var=LIBPATH
20866 osf3* | osf4* | osf5*)
20870 soname_spec='${libname}${release}${shared_ext}$major'
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20872 shlibpath_var=LD_LIBRARY_PATH
20873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20882 soname_spec='${libname}${release}${shared_ext}$major'
20883 shlibpath_var=LD_LIBRARY_PATH
20884 shlibpath_overrides_runpath=yes
20885 hardcode_into_libs=yes
20886 # ldd complains unless libraries are executable
20887 postinstall_cmds='chmod +x $lib'
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20894 shlibpath_var=LD_LIBRARY_PATH
20895 shlibpath_overrides_runpath=yes
20896 if test "$with_gnu_ld" = yes; then
20904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20905 soname_spec='${libname}${release}${shared_ext}$major'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 case $host_vendor in
20909 shlibpath_overrides_runpath=no
20911 export_dynamic_flag_spec='${wl}-Blargedynsym'
20912 runpath_var=LD_RUN_PATH
20920 shlibpath_overrides_runpath=no
20921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20927 if test -d /usr/nec ;then
20929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20930 soname_spec='$libname${shared_ext}.$major'
20931 shlibpath_var=LD_LIBRARY_PATH
20935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20936 version_type=freebsd-elf
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20940 soname_spec='${libname}${release}${shared_ext}$major'
20941 shlibpath_var=LD_LIBRARY_PATH
20942 hardcode_into_libs=yes
20943 if test "$with_gnu_ld" = yes; then
20944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20945 shlibpath_overrides_runpath=no
20947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20948 shlibpath_overrides_runpath=yes
20951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20955 sys_lib_dlsearch_path_spec='/usr/lib'
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 soname_spec='${libname}${release}${shared_ext}$major'
20962 shlibpath_var=LD_LIBRARY_PATH
20969 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20970 echo "${ECHO_T}$dynamic_linker" >&6; }
20971 test "$dynamic_linker" = no && can_build_shared=no
20973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20974 if test "$GCC" = yes; then
20975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20978 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20979 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20980 hardcode_action_CXX=
20981 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20982 test -n "$runpath_var_CXX" || \
20983 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20985 # We can hardcode non-existant directories.
20986 if test "$hardcode_direct_CXX" != no &&
20987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20988 # have to relink, otherwise we might link with an installed library
20989 # when we should be linking with a yet-to-be-installed one
20990 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20991 test "$hardcode_minus_L_CXX" != no; then
20992 # Linking always hardcodes the temporary library directory.
20993 hardcode_action_CXX=relink
20995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20996 hardcode_action_CXX=immediate
20999 # We cannot hardcode anything, or else we can only hardcode existing
21001 hardcode_action_CXX=unsupported
21003 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21004 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21006 if test "$hardcode_action_CXX" = relink; then
21007 # Fast installation is not supported
21008 enable_fast_install=no
21009 elif test "$shlibpath_overrides_runpath" = yes ||
21010 test "$enable_shared" = no; then
21011 # Fast installation is not necessary
21012 enable_fast_install=needless
21016 # The else clause should only fire when bootstrapping the
21017 # libtool distribution, otherwise you forgot to ship ltmain.sh
21018 # with your package, and you will get complaints that there are
21019 # no rules to generate ltmain.sh.
21020 if test -f "$ltmain"; then
21021 # See if we are running on zsh, and set the options which allow our commands through
21022 # without removal of \ escapes.
21023 if test -n "${ZSH_VERSION+set}" ; then
21024 setopt NO_GLOB_SUBST
21026 # Now quote all the things that may contain metacharacters while being
21027 # careful not to overquote the AC_SUBSTed values. We take copies of the
21028 # variables and quote the copies for generation of the libtool script.
21029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21031 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21032 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21033 deplibs_check_method reload_flag reload_cmds need_locks \
21034 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21035 lt_cv_sys_global_symbol_to_c_name_address \
21036 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21037 old_postinstall_cmds old_postuninstall_cmds \
21041 lt_prog_compiler_wl_CXX \
21042 lt_prog_compiler_pic_CXX \
21043 lt_prog_compiler_static_CXX \
21044 lt_prog_compiler_no_builtin_flag_CXX \
21045 export_dynamic_flag_spec_CXX \
21046 thread_safe_flag_spec_CXX \
21047 whole_archive_flag_spec_CXX \
21048 enable_shared_with_static_runtimes_CXX \
21049 old_archive_cmds_CXX \
21050 old_archive_from_new_cmds_CXX \
21051 predep_objects_CXX \
21052 postdep_objects_CXX \
21055 compiler_lib_search_path_CXX \
21057 archive_expsym_cmds_CXX \
21058 postinstall_cmds_CXX \
21059 postuninstall_cmds_CXX \
21060 old_archive_from_expsyms_cmds_CXX \
21061 allow_undefined_flag_CXX \
21062 no_undefined_flag_CXX \
21063 export_symbols_cmds_CXX \
21064 hardcode_libdir_flag_spec_CXX \
21065 hardcode_libdir_flag_spec_ld_CXX \
21066 hardcode_libdir_separator_CXX \
21067 hardcode_automatic_CXX \
21069 module_expsym_cmds_CXX \
21070 lt_cv_prog_compiler_c_o_CXX \
21071 exclude_expsyms_CXX \
21072 include_expsyms_CXX; do
21075 old_archive_cmds_CXX | \
21076 old_archive_from_new_cmds_CXX | \
21077 archive_cmds_CXX | \
21078 archive_expsym_cmds_CXX | \
21079 module_cmds_CXX | \
21080 module_expsym_cmds_CXX | \
21081 old_archive_from_expsyms_cmds_CXX | \
21082 export_symbols_cmds_CXX | \
21083 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21084 postinstall_cmds | postuninstall_cmds | \
21085 old_postinstall_cmds | old_postuninstall_cmds | \
21086 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21087 # Double-quote double-evaled strings.
21088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21097 *'\$0 --fallback-echo"')
21098 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21104 cat <<__EOF__ >> "$cfgfile"
21105 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21109 # Shell to use when invoking shell scripts.
21112 # Whether or not to build shared libraries.
21113 build_libtool_libs=$enable_shared
21115 # Whether or not to build static libraries.
21116 build_old_libs=$enable_static
21118 # Whether or not to add -lc for building shared libraries.
21119 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21121 # Whether or not to disallow shared libs when runtime libs are static
21122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21124 # Whether or not to optimize for fast installation.
21125 fast_install=$enable_fast_install
21128 host_alias=$host_alias
21132 # The build system.
21133 build_alias=$build_alias
21137 # An echo program that does not interpret backslashes.
21142 AR_FLAGS=$lt_AR_FLAGS
21147 # LTCC compiler flags.
21148 LTCFLAGS=$lt_LTCFLAGS
21150 # A language-specific compiler.
21151 CC=$lt_compiler_CXX
21153 # Is the compiler the GNU C compiler?
21159 # The linker used to build libraries.
21162 # Whether we need hard or soft links.
21165 # A BSD-compatible nm program.
21168 # A symbol stripping program
21171 # Used to examine libraries when file_magic_cmd begins "file"
21172 MAGIC_CMD=$MAGIC_CMD
21174 # Used on cygwin: DLL creation program.
21177 # Used on cygwin: object dumper.
21180 # Used on cygwin: assembler.
21183 # The name of the directory that contains temporary libtool files.
21186 # How to create reloadable object files.
21187 reload_flag=$lt_reload_flag
21188 reload_cmds=$lt_reload_cmds
21190 # How to pass a linker flag through the compiler.
21191 wl=$lt_lt_prog_compiler_wl_CXX
21193 # Object file suffix (normally "o").
21194 objext="$ac_objext"
21196 # Old archive suffix (normally "a").
21199 # Shared library suffix (normally ".so").
21200 shrext_cmds='$shrext_cmds'
21202 # Executable file suffix (normally "").
21205 # Additional compiler flags for building library objects.
21206 pic_flag=$lt_lt_prog_compiler_pic_CXX
21209 # What is the maximum length of a command?
21210 max_cmd_len=$lt_cv_sys_max_cmd_len
21212 # Does compiler simultaneously support -c and -o options?
21213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21215 # Must we lock files when doing compilation?
21216 need_locks=$lt_need_locks
21218 # Do we need the lib prefix for modules?
21219 need_lib_prefix=$need_lib_prefix
21221 # Do we need a version for libraries?
21222 need_version=$need_version
21224 # Whether dlopen is supported.
21225 dlopen_support=$enable_dlopen
21227 # Whether dlopen of programs is supported.
21228 dlopen_self=$enable_dlopen_self
21230 # Whether dlopen of statically linked programs is supported.
21231 dlopen_self_static=$enable_dlopen_self_static
21233 # Compiler flag to prevent dynamic linking.
21234 link_static_flag=$lt_lt_prog_compiler_static_CXX
21236 # Compiler flag to turn off builtin functions.
21237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21239 # Compiler flag to allow reflexive dlopens.
21240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21242 # Compiler flag to generate shared objects directly from archives.
21243 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21245 # Compiler flag to generate thread-safe objects.
21246 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21248 # Library versioning type.
21249 version_type=$version_type
21251 # Format of library name prefix.
21252 libname_spec=$lt_libname_spec
21254 # List of archive names. First name is the real one, the rest are links.
21255 # The last name is the one that the linker finds with -lNAME.
21256 library_names_spec=$lt_library_names_spec
21258 # The coded name of the library, if different from the real name.
21259 soname_spec=$lt_soname_spec
21261 # Commands used to build and install an old-style archive.
21263 old_archive_cmds=$lt_old_archive_cmds_CXX
21264 old_postinstall_cmds=$lt_old_postinstall_cmds
21265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21267 # Create an old-style archive from a shared archive.
21268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21270 # Create a temporary old-style archive to link instead of a shared archive.
21271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21273 # Commands used to build and install a shared archive.
21274 archive_cmds=$lt_archive_cmds_CXX
21275 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21276 postinstall_cmds=$lt_postinstall_cmds
21277 postuninstall_cmds=$lt_postuninstall_cmds
21279 # Commands used to build a loadable module (assumed same as above if empty)
21280 module_cmds=$lt_module_cmds_CXX
21281 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21283 # Commands to strip libraries.
21284 old_striplib=$lt_old_striplib
21285 striplib=$lt_striplib
21287 # Dependencies to place before the objects being linked to create a
21289 predep_objects=$lt_predep_objects_CXX
21291 # Dependencies to place after the objects being linked to create a
21293 postdep_objects=$lt_postdep_objects_CXX
21295 # Dependencies to place before the objects being linked to create a
21297 predeps=$lt_predeps_CXX
21299 # Dependencies to place after the objects being linked to create a
21301 postdeps=$lt_postdeps_CXX
21303 # The library search path used internally by the compiler when linking
21304 # a shared library.
21305 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21307 # Method to check whether dependent libraries are shared objects.
21308 deplibs_check_method=$lt_deplibs_check_method
21310 # Command to use when deplibs_check_method == file_magic.
21311 file_magic_cmd=$lt_file_magic_cmd
21313 # Flag that allows shared libraries with undefined symbols to be built.
21314 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21316 # Flag that forces no undefined symbols.
21317 no_undefined_flag=$lt_no_undefined_flag_CXX
21319 # Commands used to finish a libtool library installation in a directory.
21320 finish_cmds=$lt_finish_cmds
21322 # Same as above, but a single script fragment to be evaled but not shown.
21323 finish_eval=$lt_finish_eval
21325 # Take the output of nm and produce a listing of raw symbols and C names.
21326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21328 # Transform the output of nm in a proper C declaration
21329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21331 # Transform the output of nm in a C name address pair
21332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21334 # This is the shared library runtime path variable.
21335 runpath_var=$runpath_var
21337 # This is the shared library path variable.
21338 shlibpath_var=$shlibpath_var
21340 # Is shlibpath searched before the hard-coded library search path?
21341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21343 # How to hardcode a shared library path into an executable.
21344 hardcode_action=$hardcode_action_CXX
21346 # Whether we should hardcode library paths into libraries.
21347 hardcode_into_libs=$hardcode_into_libs
21349 # Flag to hardcode \$libdir into a binary during linking.
21350 # This must work even if \$libdir does not exist.
21351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21353 # If ld is used when linking, flag to hardcode \$libdir into
21354 # a binary during linking. This must work even if \$libdir does
21356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21358 # Whether we need a single -rpath flag with a separated argument.
21359 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21362 # resulting binary.
21363 hardcode_direct=$hardcode_direct_CXX
21365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21366 # resulting binary.
21367 hardcode_minus_L=$hardcode_minus_L_CXX
21369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21370 # the resulting binary.
21371 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21373 # Set to yes if building a shared library automatically hardcodes DIR into the library
21374 # and all subsequent libraries and executables linked against it.
21375 hardcode_automatic=$hardcode_automatic_CXX
21377 # Variables whose values should be saved in libtool wrapper scripts and
21378 # restored at relink time.
21379 variables_saved_for_relink="$variables_saved_for_relink"
21381 # Whether libtool must link a program against all its dependency libraries.
21382 link_all_deplibs=$link_all_deplibs_CXX
21384 # Compile-time system search path for libraries
21385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21387 # Run-time system search path for libraries
21388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21390 # Fix the shell variable \$srcfile for the compiler.
21391 fix_srcfile_path="$fix_srcfile_path_CXX"
21393 # Set to yes if exported symbols are required.
21394 always_export_symbols=$always_export_symbols_CXX
21396 # The commands to list exported symbols.
21397 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21399 # The commands to extract the exported symbol list from a shared archive.
21400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21402 # Symbols that should not be listed in the preloaded symbols.
21403 exclude_expsyms=$lt_exclude_expsyms_CXX
21405 # Symbols that must always be exported.
21406 include_expsyms=$lt_include_expsyms_CXX
21408 # ### END LIBTOOL TAG CONFIG: $tagname
21414 # If there is no Makefile yet, we rely on a make rule to execute
21415 # `config.status --recheck' to rerun these tests and create the
21416 # libtool script then.
21417 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21418 if test -f "$ltmain_in"; then
21419 test -f Makefile && make "$ltmain"
21425 ac_cpp='$CPP $CPPFLAGS'
21426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21434 with_gnu_ldcxx=$with_gnu_ld
21435 with_gnu_ld=$lt_save_with_gnu_ld
21436 lt_cv_path_LDCXX=$lt_cv_path_LD
21437 lt_cv_path_LD=$lt_save_path_LD
21438 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21439 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21447 if test -n "$F77" && test "X$F77" != "Xno"; then
21450 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21451 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21455 archive_cmds_need_lc_F77=no
21456 allow_undefined_flag_F77=
21457 always_export_symbols_F77=no
21458 archive_expsym_cmds_F77=
21459 export_dynamic_flag_spec_F77=
21460 hardcode_direct_F77=no
21461 hardcode_libdir_flag_spec_F77=
21462 hardcode_libdir_flag_spec_ld_F77=
21463 hardcode_libdir_separator_F77=
21464 hardcode_minus_L_F77=no
21465 hardcode_automatic_F77=no
21467 module_expsym_cmds_F77=
21468 link_all_deplibs_F77=unknown
21469 old_archive_cmds_F77=$old_archive_cmds
21470 no_undefined_flag_F77=
21471 whole_archive_flag_spec_F77=
21472 enable_shared_with_static_runtimes_F77=no
21474 # Source file extension for f77 test sources.
21477 # Object file extension for compiled f77 test sources.
21481 # Code to be used in simple compile tests
21482 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21484 # Code to be used in simple link tests
21485 lt_simple_link_test_code=" program t\n end\n"
21487 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21489 # If no C compiler was specified, use CC.
21492 # If no C compiler flags were specified, use CFLAGS.
21493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21495 # Allow CC to be a program name with arguments.
21499 # save warnings/boilerplate of simple test code
21500 ac_outfile=conftest.$ac_objext
21501 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21503 _lt_compiler_boilerplate=`cat conftest.err`
21506 ac_outfile=conftest.$ac_objext
21507 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21509 _lt_linker_boilerplate=`cat conftest.err`
21513 # Allow CC to be a program name with arguments.
21518 for cc_temp in $compiler""; do
21520 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21521 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21526 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21529 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21530 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21531 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21532 echo "${ECHO_T}$can_build_shared" >&6; }
21534 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21535 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21536 test "$can_build_shared" = "no" && enable_shared=no
21538 # On AIX, shared libraries and static libraries use the same namespace, and
21539 # are all built from PIC.
21542 test "$enable_shared" = yes && enable_static=no
21543 if test -n "$RANLIB"; then
21544 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21545 postinstall_cmds='$RANLIB $lib'
21549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21550 test "$enable_shared" = yes && enable_static=no
21554 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21555 echo "${ECHO_T}$enable_shared" >&6; }
21557 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21558 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21559 # Make sure either enable_shared or enable_static is yes.
21560 test "$enable_shared" = yes || enable_static=yes
21561 { echo "$as_me:$LINENO: result: $enable_static" >&5
21562 echo "${ECHO_T}$enable_static" >&6; }
21567 lt_prog_compiler_wl_F77=
21568 lt_prog_compiler_pic_F77=
21569 lt_prog_compiler_static_F77=
21571 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21572 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21574 if test "$GCC" = yes; then
21575 lt_prog_compiler_wl_F77='-Wl,'
21576 lt_prog_compiler_static_F77='-static'
21580 # All AIX code is PIC.
21581 if test "$host_cpu" = ia64; then
21582 # AIX 5 now supports IA64 processor
21583 lt_prog_compiler_static_F77='-Bstatic'
21588 # FIXME: we need at least 68020 code to build shared libraries, but
21589 # adding the `-m68020' flag to GCC prevents building anything better,
21591 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21594 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21595 # PIC is the default for these OSes.
21598 mingw* | pw32* | os2*)
21599 # This hack is so that the source file can tell whether it is being
21600 # built for inclusion in a dll (and should export symbols for example).
21601 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21604 darwin* | rhapsody*)
21605 # PIC is the default on this platform
21606 # Common symbols not allowed in MH_DYLIB files
21607 lt_prog_compiler_pic_F77='-fno-common'
21611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21612 # Instead, we relocate shared libraries at runtime.
21616 # Just because we use GCC doesn't mean we suddenly get shared libraries
21617 # on systems that don't support them.
21618 lt_prog_compiler_can_build_shared_F77=no
21623 if test -d /usr/nec; then
21624 lt_prog_compiler_pic_F77=-Kconform_pic
21629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21630 # not for PA HP-UX.
21636 lt_prog_compiler_pic_F77='-fPIC'
21642 lt_prog_compiler_pic_F77='-fPIC'
21646 # PORTME Check for flag to pass linker flags through the system compiler.
21649 lt_prog_compiler_wl_F77='-Wl,'
21650 if test "$host_cpu" = ia64; then
21651 # AIX 5 now supports IA64 processor
21652 lt_prog_compiler_static_F77='-Bstatic'
21654 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21658 # PIC is the default on this platform
21659 # Common symbols not allowed in MH_DYLIB files
21660 case $cc_basename in
21662 lt_prog_compiler_pic_F77='-qnocommon'
21663 lt_prog_compiler_wl_F77='-Wl,'
21668 mingw* | pw32* | os2*)
21669 # This hack is so that the source file can tell whether it is being
21670 # built for inclusion in a dll (and should export symbols for example).
21671 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21674 hpux9* | hpux10* | hpux11*)
21675 lt_prog_compiler_wl_F77='-Wl,'
21676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21677 # not for PA HP-UX.
21683 lt_prog_compiler_pic_F77='+Z'
21686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21687 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21690 irix5* | irix6* | nonstopux*)
21691 lt_prog_compiler_wl_F77='-Wl,'
21692 # PIC (with -KPIC) is the default.
21693 lt_prog_compiler_static_F77='-non_shared'
21697 lt_prog_compiler_pic_F77='-KPIC'
21698 lt_prog_compiler_static_F77='-Bstatic'
21702 case $cc_basename in
21704 lt_prog_compiler_wl_F77='-Wl,'
21705 lt_prog_compiler_pic_F77='-KPIC'
21706 lt_prog_compiler_static_F77='-static'
21708 pgcc* | pgf77* | pgf90* | pgf95*)
21709 # Portland Group compilers (*not* the Pentium gcc compiler,
21710 # which looks to be a dead project)
21711 lt_prog_compiler_wl_F77='-Wl,'
21712 lt_prog_compiler_pic_F77='-fpic'
21713 lt_prog_compiler_static_F77='-Bstatic'
21716 lt_prog_compiler_wl_F77='-Wl,'
21717 # All Alpha code is PIC.
21718 lt_prog_compiler_static_F77='-non_shared'
21723 osf3* | osf4* | osf5*)
21724 lt_prog_compiler_wl_F77='-Wl,'
21725 # All OSF/1 code is PIC.
21726 lt_prog_compiler_static_F77='-non_shared'
21730 lt_prog_compiler_pic_F77='-KPIC'
21731 lt_prog_compiler_static_F77='-Bstatic'
21732 case $cc_basename in
21733 f77* | f90* | f95*)
21734 lt_prog_compiler_wl_F77='-Qoption ld ';;
21736 lt_prog_compiler_wl_F77='-Wl,';;
21741 lt_prog_compiler_wl_F77='-Qoption ld '
21742 lt_prog_compiler_pic_F77='-PIC'
21743 lt_prog_compiler_static_F77='-Bstatic'
21746 sysv4 | sysv4.2uw2* | sysv4.3*)
21747 lt_prog_compiler_wl_F77='-Wl,'
21748 lt_prog_compiler_pic_F77='-KPIC'
21749 lt_prog_compiler_static_F77='-Bstatic'
21753 if test -d /usr/nec ;then
21754 lt_prog_compiler_pic_F77='-Kconform_pic'
21755 lt_prog_compiler_static_F77='-Bstatic'
21759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21760 lt_prog_compiler_wl_F77='-Wl,'
21761 lt_prog_compiler_pic_F77='-KPIC'
21762 lt_prog_compiler_static_F77='-Bstatic'
21766 lt_prog_compiler_wl_F77='-Wl,'
21767 lt_prog_compiler_can_build_shared_F77=no
21771 lt_prog_compiler_pic_F77='-pic'
21772 lt_prog_compiler_static_F77='-Bstatic'
21776 lt_prog_compiler_can_build_shared_F77=no
21781 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21782 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21785 # Check to make sure the PIC flag actually works.
21787 if test -n "$lt_prog_compiler_pic_F77"; then
21789 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21790 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21791 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 lt_prog_compiler_pic_works_F77=no
21795 ac_outfile=conftest.$ac_objext
21796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21797 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21798 # Insert the option either (1) after the last *FLAGS variable, or
21799 # (2) before a word containing "conftest.", or (3) at the end.
21800 # Note that $ac_compile itself does not contain backslashes and begins
21801 # with a dollar sign (not a hyphen), so the echo should work correctly.
21802 # The option is referenced via a variable to avoid confusing sed.
21803 lt_compile=`echo "$ac_compile" | $SED \
21804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21806 -e 's:$: $lt_compiler_flag:'`
21807 (eval echo "\"\$as_me:21807: $lt_compile\"" >&5)
21808 (eval "$lt_compile" 2>conftest.err)
21810 cat conftest.err >&5
21811 echo "$as_me:21811: \$? = $ac_status" >&5
21812 if (exit $ac_status) && test -s "$ac_outfile"; then
21813 # The compiler can only warn and ignore the option if not recognized
21814 # So say no if there are warnings other than the usual output.
21815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21818 lt_prog_compiler_pic_works_F77=yes
21824 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21825 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21827 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21828 case $lt_prog_compiler_pic_F77 in
21830 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21833 lt_prog_compiler_pic_F77=
21834 lt_prog_compiler_can_build_shared_F77=no
21839 # For platforms which do not support PIC, -DPIC is meaningless:
21841 lt_prog_compiler_pic_F77=
21844 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21849 # Check to make sure the static flag actually works.
21851 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21852 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21853 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21854 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 lt_prog_compiler_static_works_F77=no
21858 save_LDFLAGS="$LDFLAGS"
21859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21860 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21862 # The linker can only warn and ignore the option if not recognized
21863 # So say no if there are warnings
21864 if test -s conftest.err; then
21865 # Append any errors to the config.log.
21866 cat conftest.err 1>&5
21867 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21869 if diff conftest.exp conftest.er2 >/dev/null; then
21870 lt_prog_compiler_static_works_F77=yes
21873 lt_prog_compiler_static_works_F77=yes
21877 LDFLAGS="$save_LDFLAGS"
21880 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21881 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21883 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21886 lt_prog_compiler_static_F77=
21890 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21891 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21892 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 lt_cv_prog_compiler_c_o_F77=no
21896 $rm -r conftest 2>/dev/null
21900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21902 lt_compiler_flag="-o out/conftest2.$ac_objext"
21903 # Insert the option either (1) after the last *FLAGS variable, or
21904 # (2) before a word containing "conftest.", or (3) at the end.
21905 # Note that $ac_compile itself does not contain backslashes and begins
21906 # with a dollar sign (not a hyphen), so the echo should work correctly.
21907 lt_compile=`echo "$ac_compile" | $SED \
21908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21910 -e 's:$: $lt_compiler_flag:'`
21911 (eval echo "\"\$as_me:21911: $lt_compile\"" >&5)
21912 (eval "$lt_compile" 2>out/conftest.err)
21914 cat out/conftest.err >&5
21915 echo "$as_me:21915: \$? = $ac_status" >&5
21916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21918 # The compiler can only warn and ignore the option if not recognized
21919 # So say no if there are warnings
21920 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21923 lt_cv_prog_compiler_c_o_F77=yes
21928 # SGI C++ compiler will create directory out/ii_files/ for
21929 # template instantiation
21930 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21931 $rm out/* && rmdir out
21937 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21938 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21941 hard_links="nottested"
21942 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21943 # do not overwrite the value of need_locks provided by the user
21944 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21945 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21950 ln conftest.a conftest.b 2>&5 || hard_links=no
21951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21952 { echo "$as_me:$LINENO: result: $hard_links" >&5
21953 echo "${ECHO_T}$hard_links" >&6; }
21954 if test "$hard_links" = no; then
21955 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21956 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21963 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21964 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21967 allow_undefined_flag_F77=
21968 enable_shared_with_static_runtimes_F77=no
21970 archive_expsym_cmds_F77=
21971 old_archive_From_new_cmds_F77=
21972 old_archive_from_expsyms_cmds_F77=
21973 export_dynamic_flag_spec_F77=
21974 whole_archive_flag_spec_F77=
21975 thread_safe_flag_spec_F77=
21976 hardcode_libdir_flag_spec_F77=
21977 hardcode_libdir_flag_spec_ld_F77=
21978 hardcode_libdir_separator_F77=
21979 hardcode_direct_F77=no
21980 hardcode_minus_L_F77=no
21981 hardcode_shlibpath_var_F77=unsupported
21982 link_all_deplibs_F77=unknown
21983 hardcode_automatic_F77=no
21985 module_expsym_cmds_F77=
21986 always_export_symbols_F77=no
21987 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21988 # include_expsyms should be a list of space-separated symbols to be *always*
21989 # included in the symbol list
21990 include_expsyms_F77=
21991 # exclude_expsyms can be an extended regexp of symbols to exclude
21992 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21993 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21994 # as well as any symbol that contains `d'.
21995 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21996 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21997 # platforms (ab)use it in PIC code, but their linkers get confused if
21998 # the symbol is explicitly referenced. Since portable code cannot
21999 # rely on this symbol name, it's probably fine to never include it in
22000 # preloaded symbol tables.
22001 extract_expsyms_cmds=
22002 # Just being paranoid about ensuring that cc_basename is set.
22003 for cc_temp in $compiler""; do
22005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22011 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22014 cygwin* | mingw* | pw32*)
22015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22016 # When not using gcc, we currently assume that we are using
22017 # Microsoft Visual C++.
22018 if test "$GCC" != yes; then
22023 # we just hope/assume this is gcc and not c89 (= MSVC++)
22032 if test "$with_gnu_ld" = yes; then
22033 # If archive_cmds runs LD, not CC, wlarc should be empty
22036 # Set some defaults for GNU ld with shared library support. These
22037 # are reset later if shared libraries are not supported. Putting them
22038 # here allows them to be overridden if necessary.
22039 runpath_var=LD_RUN_PATH
22040 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22041 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22042 # ancient GNU ld didn't support --whole-archive et. al.
22043 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22044 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22046 whole_archive_flag_spec_F77=
22048 supports_anon_versioning=no
22049 case `$LD -v 2>/dev/null` in
22050 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22051 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22052 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22053 *\ 2.11.*) ;; # other 2.11 versions
22054 *) supports_anon_versioning=yes ;;
22057 # See if GNU ld supports shared libraries.
22059 aix3* | aix4* | aix5*)
22060 # On AIX/PPC, the GNU linker is very broken
22061 if test "$host_cpu" != ia64; then
22065 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22066 *** to be unable to reliably create shared libraries on AIX.
22067 *** Therefore, libtool is disabling shared libraries support. If you
22068 *** really care for shared libraries, you may want to modify your PATH
22069 *** so that a non-GNU linker is found, and then restart.
22076 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)'
22077 hardcode_libdir_flag_spec_F77='-L$libdir'
22078 hardcode_minus_L_F77=yes
22080 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22081 # that the semantics of dynamic libraries on AmigaOS, at least up
22082 # to version 4, is to share data among multiple programs linked
22083 # with the same dynamic library. Since this doesn't match the
22084 # behavior of shared libraries on other platforms, we can't use
22090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22091 allow_undefined_flag_F77=unsupported
22092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22093 # support --undefined. This deserves some investigation. FIXME
22094 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22100 cygwin* | mingw* | pw32*)
22101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22102 # as there is no search path for DLLs.
22103 hardcode_libdir_flag_spec_F77='-L$libdir'
22104 allow_undefined_flag_F77=unsupported
22105 always_export_symbols_F77=no
22106 enable_shared_with_static_runtimes_F77=yes
22107 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22110 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22111 # If the export-symbols file already is a .def file (1st line
22112 # is EXPORTS), use it as is; otherwise, prepend...
22113 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22114 cp $export_symbols $output_objdir/$soname.def;
22116 echo EXPORTS > $output_objdir/$soname.def;
22117 cat $export_symbols >> $output_objdir/$soname.def;
22119 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22126 hardcode_direct_F77=no
22127 hardcode_shlibpath_var_F77=no
22128 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22129 export_dynamic_flag_spec_F77='${wl}-E'
22130 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22131 # Instead, shared libraries are loaded at an image base (0x10000000 by
22132 # default) and relocated if they conflict, which is a slow very memory
22133 # consuming and fragmenting process. To avoid this, we pick a random,
22134 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22135 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22136 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'
22137 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'
22141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22143 case $cc_basename,$host_cpu in
22144 pgcc*) # Portland Group C compiler
22145 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'
22146 tmp_addflag=' $pic_flag'
22148 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22149 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'
22150 tmp_addflag=' $pic_flag -Mnomain' ;;
22151 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22152 tmp_addflag=' -i_dynamic' ;;
22153 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22154 tmp_addflag=' -i_dynamic -nofor_main' ;;
22155 ifc* | ifort*) # Intel Fortran compiler
22156 tmp_addflag=' -nofor_main' ;;
22158 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22160 if test $supports_anon_versioning = yes; then
22161 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22163 $echo "local: *; };" >> $output_objdir/$libname.ver~
22164 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22173 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22176 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22177 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22182 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22186 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22187 *** create shared libraries on Solaris systems. Therefore, libtool
22188 *** is disabling shared libraries support. We urge you to upgrade GNU
22189 *** binutils to release 2.9.1 or newer. Another option is to modify
22190 *** your PATH or compiler configuration so that the native linker is
22191 *** used, and then restart.
22194 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22195 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22196 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22203 case `$LD -v 2>&1` in
22204 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22208 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22209 *** reliably create shared libraries on SCO systems. Therefore, libtool
22210 *** is disabling shared libraries support. We urge you to upgrade GNU
22211 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22212 *** your PATH or compiler configuration so that the native linker is
22213 *** used, and then restart.
22218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22219 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22221 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22230 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22232 hardcode_direct_F77=yes
22233 hardcode_shlibpath_var_F77=no
22237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22246 if test "$ld_shlibs_F77" = no; then
22248 hardcode_libdir_flag_spec_F77=
22249 export_dynamic_flag_spec_F77=
22250 whole_archive_flag_spec_F77=
22253 # PORTME fill in a description of your system's linker (not GNU ld)
22256 allow_undefined_flag_F77=unsupported
22257 always_export_symbols_F77=yes
22258 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'
22259 # Note: this linker hardcodes the directories in LIBPATH if there
22260 # are no directories specified by -L.
22261 hardcode_minus_L_F77=yes
22262 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22263 # Neither direct hardcoding nor static linking is supported with a
22265 hardcode_direct_F77=unsupported
22270 if test "$host_cpu" = ia64; then
22271 # On IA64, the linker does run time linking by default, so we don't
22272 # have to do anything special.
22273 aix_use_runtimelinking=no
22274 exp_sym_flag='-Bexport'
22277 # If we're using GNU nm, then we don't want the "-C" option.
22278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22279 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22280 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'
22282 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'
22284 aix_use_runtimelinking=no
22286 # Test if we are trying to use run time linking or normal
22287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22288 # need to do runtime linking.
22289 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22290 for ld_flag in $LDFLAGS; do
22291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22292 aix_use_runtimelinking=yes
22299 exp_sym_flag='-bexport'
22300 no_entry_flag='-bnoentry'
22303 # When large executables or shared objects are built, AIX ld can
22304 # have problems creating the table of contents. If linking a library
22305 # or program results in "error TOC overflow" add -mminimal-toc to
22306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22309 archive_cmds_F77=''
22310 hardcode_direct_F77=yes
22311 hardcode_libdir_separator_F77=':'
22312 link_all_deplibs_F77=yes
22314 if test "$GCC" = yes; then
22315 case $host_os in aix4.[012]|aix4.[012].*)
22316 # We only want to do this on AIX 4.2 and lower, the check
22317 # below for broken collect2 doesn't work under 4.3+
22318 collect2name=`${CC} -print-prog-name=collect2`
22319 if test -f "$collect2name" && \
22320 strings "$collect2name" | grep resolve_lib_name >/dev/null
22322 # We have reworked collect2
22323 hardcode_direct_F77=yes
22325 # We have old collect2
22326 hardcode_direct_F77=unsupported
22327 # It fails to find uninstalled libraries when the uninstalled
22328 # path is not listed in the libpath. Setting hardcode_minus_L
22329 # to unsupported forces relinking
22330 hardcode_minus_L_F77=yes
22331 hardcode_libdir_flag_spec_F77='-L$libdir'
22332 hardcode_libdir_separator_F77=
22336 shared_flag='-shared'
22337 if test "$aix_use_runtimelinking" = yes; then
22338 shared_flag="$shared_flag "'${wl}-G'
22342 if test "$host_cpu" = ia64; then
22343 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22344 # chokes on -Wl,-G. The following line is correct:
22347 if test "$aix_use_runtimelinking" = yes; then
22348 shared_flag='${wl}-G'
22350 shared_flag='${wl}-bM:SRE'
22355 # It seems that -bexpall does not export symbols beginning with
22356 # underscore (_), so it is better to generate a list of symbols to export.
22357 always_export_symbols_F77=yes
22358 if test "$aix_use_runtimelinking" = yes; then
22359 # Warning - without using the other runtime loading flags (-brtl),
22360 # -berok will link without error, but may produce a broken library.
22361 allow_undefined_flag_F77='-berok'
22362 # Determine the default libpath from the value encoded in an empty executable.
22363 cat >conftest.$ac_ext <<_ACEOF
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_link") 2>conftest.er1
22377 grep -v '^ *+' conftest.er1 >conftest.err
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } &&
22382 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22383 { (case "(($ac_try" in
22384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385 *) ac_try_echo=$ac_try;;
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388 (eval "$ac_try") 2>&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; } &&
22392 { ac_try='test -s conftest$ac_exeext'
22393 { (case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_try") 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22405 # Check for a 64-bit object if we didn't find anything.
22406 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; }
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22415 rm -f core conftest.err conftest.$ac_objext \
22416 conftest$ac_exeext conftest.$ac_ext
22417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22419 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22420 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"
22422 if test "$host_cpu" = ia64; then
22423 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22424 allow_undefined_flag_F77="-z nodefs"
22425 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"
22427 # Determine the default libpath from the value encoded in an empty executable.
22428 cat >conftest.$ac_ext <<_ACEOF
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_link") 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
22447 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22448 { (case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_try") 2>&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest$ac_exeext'
22458 { (case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_try") 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22470 # Check for a 64-bit object if we didn't find anything.
22471 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; }
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22480 rm -f core conftest.err conftest.$ac_objext \
22481 conftest$ac_exeext conftest.$ac_ext
22482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22484 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22485 # Warning - without using the other run time loading flags,
22486 # -berok will link without error, but may produce a broken library.
22487 no_undefined_flag_F77=' ${wl}-bernotok'
22488 allow_undefined_flag_F77=' ${wl}-berok'
22489 # Exported symbols can be pulled into shared objects from archives
22490 whole_archive_flag_spec_F77='$convenience'
22491 archive_cmds_need_lc_F77=yes
22492 # This is similar to how AIX traditionally builds its shared libraries.
22493 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'
22499 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)'
22500 hardcode_libdir_flag_spec_F77='-L$libdir'
22501 hardcode_minus_L_F77=yes
22502 # see comment about different semantics on the GNU ld section
22507 export_dynamic_flag_spec_F77=-rdynamic
22510 cygwin* | mingw* | pw32*)
22511 # When not using gcc, we currently assume that we are using
22512 # Microsoft Visual C++.
22513 # hardcode_libdir_flag_spec is actually meaningless, as there is
22514 # no search path for DLLs.
22515 hardcode_libdir_flag_spec_F77=' '
22516 allow_undefined_flag_F77=unsupported
22517 # Tell ltmain to make .lib files, not .a files.
22519 # Tell ltmain to make .dll files, not .so files.
22521 # FIXME: Setting linknames here is a bad hack.
22522 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22523 # The linker will automatically build a .lib file if we build a DLL.
22524 old_archive_From_new_cmds_F77='true'
22525 # FIXME: Should let the user specify the lib program.
22526 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22527 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22528 enable_shared_with_static_runtimes_F77=yes
22531 darwin* | rhapsody*)
22533 rhapsody* | darwin1.[012])
22534 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22537 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22538 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22540 case ${MACOSX_DEPLOYMENT_TARGET} in
22542 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22545 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22551 archive_cmds_need_lc_F77=no
22552 hardcode_direct_F77=no
22553 hardcode_automatic_F77=yes
22554 hardcode_shlibpath_var_F77=unsupported
22555 whole_archive_flag_spec_F77=''
22556 link_all_deplibs_F77=yes
22557 if test "$GCC" = yes ; then
22558 output_verbose_link_cmd='echo'
22559 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22560 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22562 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}'
22563 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}'
22565 case $cc_basename in
22567 output_verbose_link_cmd='echo'
22568 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22569 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22570 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22571 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}'
22572 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}'
22582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22583 hardcode_libdir_flag_spec_F77='-L$libdir'
22584 hardcode_shlibpath_var_F77=no
22591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22592 # support. Future versions do this automatically, but an explicit c++rt0.o
22593 # does not break anything, and helps significantly (at the cost of a little
22596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22597 hardcode_libdir_flag_spec_F77='-R$libdir'
22598 hardcode_direct_F77=yes
22599 hardcode_shlibpath_var_F77=no
22602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22604 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22605 hardcode_direct_F77=yes
22606 hardcode_minus_L_F77=yes
22607 hardcode_shlibpath_var_F77=no
22610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22611 freebsd* | kfreebsd*-gnu | dragonfly*)
22612 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22613 hardcode_libdir_flag_spec_F77='-R$libdir'
22614 hardcode_direct_F77=yes
22615 hardcode_shlibpath_var_F77=no
22619 if test "$GCC" = yes; then
22620 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'
22622 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'
22624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22625 hardcode_libdir_separator_F77=:
22626 hardcode_direct_F77=yes
22628 # hardcode_minus_L: Not really in the search PATH,
22629 # but as the default location of the library.
22630 hardcode_minus_L_F77=yes
22631 export_dynamic_flag_spec_F77='${wl}-E'
22635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22636 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22638 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22640 if test "$with_gnu_ld" = no; then
22641 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22642 hardcode_libdir_separator_F77=:
22644 hardcode_direct_F77=yes
22645 export_dynamic_flag_spec_F77='${wl}-E'
22647 # hardcode_minus_L: Not really in the search PATH,
22648 # but as the default location of the library.
22649 hardcode_minus_L_F77=yes
22654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22657 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22660 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22663 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22669 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22672 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22675 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22679 if test "$with_gnu_ld" = no; then
22680 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22681 hardcode_libdir_separator_F77=:
22685 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22686 hardcode_direct_F77=no
22687 hardcode_shlibpath_var_F77=no
22690 hardcode_direct_F77=yes
22691 export_dynamic_flag_spec_F77='${wl}-E'
22693 # hardcode_minus_L: Not really in the search PATH,
22694 # but as the default location of the library.
22695 hardcode_minus_L_F77=yes
22701 irix5* | irix6* | nonstopux*)
22702 if test "$GCC" = yes; then
22703 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'
22705 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'
22706 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22708 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22709 hardcode_libdir_separator_F77=:
22710 link_all_deplibs_F77=yes
22714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22715 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22717 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22719 hardcode_libdir_flag_spec_F77='-R$libdir'
22720 hardcode_direct_F77=yes
22721 hardcode_shlibpath_var_F77=no
22725 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22726 hardcode_direct_F77=yes
22727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22728 hardcode_libdir_separator_F77=:
22729 hardcode_shlibpath_var_F77=no
22733 hardcode_direct_F77=yes
22734 hardcode_shlibpath_var_F77=no
22735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22736 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22737 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22738 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22739 export_dynamic_flag_spec_F77='${wl}-E'
22742 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22743 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_libdir_flag_spec_F77='-R$libdir'
22747 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22748 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22755 hardcode_libdir_flag_spec_F77='-L$libdir'
22756 hardcode_minus_L_F77=yes
22757 allow_undefined_flag_F77=unsupported
22758 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'
22759 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22763 if test "$GCC" = yes; then
22764 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22765 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'
22767 allow_undefined_flag_F77=' -expect_unresolved \*'
22768 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'
22770 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22771 hardcode_libdir_separator_F77=:
22774 osf4* | osf5*) # as osf3* with the addition of -msym flag
22775 if test "$GCC" = yes; then
22776 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22777 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'
22778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22780 allow_undefined_flag_F77=' -expect_unresolved \*'
22781 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'
22782 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~
22783 $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'
22785 # Both c and cxx compiler support -rpath directly
22786 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22788 hardcode_libdir_separator_F77=:
22792 no_undefined_flag_F77=' -z text'
22793 if test "$GCC" = yes; then
22795 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22797 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22800 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22801 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22804 hardcode_libdir_flag_spec_F77='-R$libdir'
22805 hardcode_shlibpath_var_F77=no
22807 solaris2.[0-5] | solaris2.[0-5].*) ;;
22809 # The compiler driver will combine linker options so we
22810 # cannot just pass the convience library names through
22811 # without $wl, iff we do not link with $LD.
22812 # Luckily, gcc supports the same syntax we need for Sun Studio.
22813 # Supported since Solaris 2.6 (maybe 2.5.1?)
22816 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22818 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' ;;
22821 link_all_deplibs_F77=yes
22825 if test "x$host_vendor" = xsequent; then
22826 # Use $CC to link under sequent, because it throws in some extra .o
22827 # files that make .init and .fini sections work.
22828 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22830 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22832 hardcode_libdir_flag_spec_F77='-L$libdir'
22833 hardcode_direct_F77=yes
22834 hardcode_minus_L_F77=yes
22835 hardcode_shlibpath_var_F77=no
22839 case $host_vendor in
22841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22842 hardcode_direct_F77=yes # is this really true???
22845 ## LD is ld it makes a PLAMLIB
22846 ## CC just makes a GrossModule.
22847 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22848 reload_cmds_F77='$CC -r -o $output$reload_objs'
22849 hardcode_direct_F77=no
22852 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22853 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22856 runpath_var='LD_RUN_PATH'
22857 hardcode_shlibpath_var_F77=no
22861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22862 hardcode_shlibpath_var_F77=no
22863 export_dynamic_flag_spec_F77='-Bexport'
22867 if test -d /usr/nec; then
22868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22869 hardcode_shlibpath_var_F77=no
22870 runpath_var=LD_RUN_PATH
22871 hardcode_runpath_var=yes
22876 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22877 no_undefined_flag_F77='${wl}-z,text'
22878 archive_cmds_need_lc_F77=no
22879 hardcode_shlibpath_var_F77=no
22880 runpath_var='LD_RUN_PATH'
22882 if test "$GCC" = yes; then
22883 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22884 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22886 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22887 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22891 sysv5* | sco3.2v5* | sco5v6*)
22892 # Note: We can NOT use -z defs as we might desire, because we do not
22893 # link with -lc, and that would cause any symbols used from libc to
22894 # always be unresolved, which means just about no library would
22895 # ever link correctly. If we're not using GNU ld we use -z text
22896 # though, which does catch some bad symbols but isn't as heavy-handed
22898 no_undefined_flag_F77='${wl}-z,text'
22899 allow_undefined_flag_F77='${wl}-z,nodefs'
22900 archive_cmds_need_lc_F77=no
22901 hardcode_shlibpath_var_F77=no
22902 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22903 hardcode_libdir_separator_F77=':'
22904 link_all_deplibs_F77=yes
22905 export_dynamic_flag_spec_F77='${wl}-Bexport'
22906 runpath_var='LD_RUN_PATH'
22908 if test "$GCC" = yes; then
22909 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22910 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22912 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22913 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22919 hardcode_libdir_flag_spec_F77='-L$libdir'
22920 hardcode_shlibpath_var_F77=no
22929 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22930 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22931 test "$ld_shlibs_F77" = no && can_build_shared=no
22934 # Do we need to explicitly link libc?
22936 case "x$archive_cmds_need_lc_F77" in
22938 # Assume -lc should be added
22939 archive_cmds_need_lc_F77=yes
22941 if test "$enable_shared" = yes && test "$GCC" = yes; then
22942 case $archive_cmds_F77 in
22944 # FIXME: we may have to deal with multi-command sequences.
22947 # Test whether the compiler implicitly links with -lc since on some
22948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22949 # to ld, don't add -lc before -lgcc.
22950 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22951 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22956 (eval $ac_compile) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } 2>conftest.err; then
22962 libobjs=conftest.$ac_objext
22964 wl=$lt_prog_compiler_wl_F77
22965 pic_flag=$lt_prog_compiler_pic_F77
22971 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22972 allow_undefined_flag_F77=
22973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22974 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); }
22979 archive_cmds_need_lc_F77=no
22981 archive_cmds_need_lc_F77=yes
22983 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22985 cat conftest.err 1>&5
22988 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22989 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22998 library_names_spec=
22999 libname_spec='lib$name'
23003 postuninstall_cmds=
23007 shlibpath_overrides_runpath=unknown
23009 dynamic_linker="$host_os ld.so"
23010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23011 if test "$GCC" = yes; then
23012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23014 # if the path contains ";" then we assume it to be the separator
23015 # otherwise default to the standard path separator (i.e. ":") - it is
23016 # assumed that no part of a normal pathname contains ";" but that should
23017 # okay in the real world where ";" in dirpaths is itself problematic.
23018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23025 need_lib_prefix=unknown
23026 hardcode_into_libs=no
23028 # when you set need_version to no, make sure it does not cause -set_version
23029 # flags to be left without arguments
23030 need_version=unknown
23035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23036 shlibpath_var=LIBPATH
23038 # AIX 3 has no versioning support, so we append a major version to the name.
23039 soname_spec='${libname}${release}${shared_ext}$major'
23046 hardcode_into_libs=yes
23047 if test "$host_cpu" = ia64; then
23048 # AIX 5 supports IA64
23049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23050 shlibpath_var=LD_LIBRARY_PATH
23052 # With GCC up to 2.95.x, collect2 would create an import file
23053 # for dependence libraries. The import file would start with
23054 # the line `#! .'. This would cause the generated library to
23055 # depend on `.', always an invalid library. This was fixed in
23056 # development snapshots of GCC prior to 3.0.
23058 aix4 | aix4.[01] | aix4.[01].*)
23059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23064 can_build_shared=no
23068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23069 # soname into executable. Probably we can add versioning support to
23070 # collect2, so additional links can be useful in future.
23071 if test "$aix_use_runtimelinking" = yes; then
23072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23073 # instead of lib<name>.a to let people know that these are not
23074 # typical AIX shared libraries.
23075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23077 # We preserve .a as extension for shared libraries through AIX4.2
23078 # and later when we are not doing run time linking.
23079 library_names_spec='${libname}${release}.a $libname.a'
23080 soname_spec='${libname}${release}${shared_ext}$major'
23082 shlibpath_var=LIBPATH
23087 library_names_spec='$libname.ixlibrary $libname.a'
23088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23089 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'
23093 library_names_spec='${libname}${shared_ext}'
23094 dynamic_linker="$host_os ld.so"
23095 shlibpath_var=LIBRARY_PATH
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23102 soname_spec='${libname}${release}${shared_ext}$major'
23103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23104 shlibpath_var=LD_LIBRARY_PATH
23105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23107 # the default ld.so.conf also contains /usr/contrib/lib and
23108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23109 # libtool to hard-code these into programs
23112 cygwin* | mingw* | pw32*)
23113 version_type=windows
23118 case $GCC,$host_os in
23119 yes,cygwin* | yes,mingw* | yes,pw32*)
23120 library_names_spec='$libname.dll.a'
23121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23122 postinstall_cmds='base_file=`basename \${file}`~
23123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23124 dldir=$destdir/`dirname \$dlpath`~
23125 test -d \$dldir || mkdir -p \$dldir~
23126 $install_prog $dir/$dlname \$dldir/$dlname~
23127 chmod a+x \$dldir/$dlname'
23128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23129 dlpath=$dir/\$dldll~
23131 shlibpath_overrides_runpath=yes
23135 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23136 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23137 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23140 # MinGW DLLs use traditional 'lib' prefix
23141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23142 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23143 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23144 # It is most probably a Windows format PATH printed by
23145 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23146 # path with ; separators, and with drive letters. We can handle the
23147 # drive letters (cygwin fileutils understands them), so leave them,
23148 # especially as we might pass files found there to a mingw objdump,
23149 # which wouldn't understand a cygwinified path. Ahh.
23150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23152 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23156 # pw32 DLLs use 'pw' prefix rather than 'lib'
23157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23166 dynamic_linker='Win32 ld.exe'
23167 # FIXME: first we should search . and the directory the executable is in
23171 darwin* | rhapsody*)
23172 dynamic_linker="$host_os dyld"
23173 version_type=darwin
23176 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23177 soname_spec='${libname}${release}${major}$shared_ext'
23178 shlibpath_overrides_runpath=yes
23179 shlibpath_var=DYLD_LIBRARY_PATH
23180 shrext_cmds='.dylib'
23181 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23182 if test "$GCC" = yes; then
23183 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"`
23185 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23187 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23195 soname_spec='${libname}${release}${shared_ext}$major'
23196 shlibpath_var=LD_LIBRARY_PATH
23207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23208 soname_spec='${libname}${release}${shared_ext}$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23210 shlibpath_overrides_runpath=no
23211 hardcode_into_libs=yes
23212 dynamic_linker='GNU ld.so'
23215 freebsd* | dragonfly*)
23216 # DragonFly does not have aout. When/if they implement a new
23217 # versioning mechanism, adjust this.
23218 if test -x /usr/bin/objformat; then
23219 objformat=`/usr/bin/objformat`
23222 freebsd[123]*) objformat=aout ;;
23223 *) objformat=elf ;;
23226 version_type=freebsd-$objformat
23227 case $version_type in
23229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23238 shlibpath_var=LD_LIBRARY_PATH
23241 shlibpath_overrides_runpath=yes
23243 freebsd3.[01]* | freebsdelf3.[01]*)
23244 shlibpath_overrides_runpath=yes
23245 hardcode_into_libs=yes
23247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23249 shlibpath_overrides_runpath=no
23250 hardcode_into_libs=yes
23252 freebsd*) # from 4.6 on
23253 shlibpath_overrides_runpath=yes
23254 hardcode_into_libs=yes
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23264 soname_spec='${libname}${release}${shared_ext}$major'
23265 shlibpath_var=LD_LIBRARY_PATH
23266 hardcode_into_libs=yes
23269 hpux9* | hpux10* | hpux11*)
23270 # Give a soname corresponding to the major version so that dld.sl refuses to
23271 # link against other versions.
23278 hardcode_into_libs=yes
23279 dynamic_linker="$host_os dld.so"
23280 shlibpath_var=LD_LIBRARY_PATH
23281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283 soname_spec='${libname}${release}${shared_ext}$major'
23284 if test "X$HPUX_IA64_MODE" = X32; then
23285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23293 hardcode_into_libs=yes
23294 dynamic_linker="$host_os dld.sl"
23295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23298 soname_spec='${libname}${release}${shared_ext}$major'
23299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23304 dynamic_linker="$host_os dld.sl"
23305 shlibpath_var=SHLIB_PATH
23306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23308 soname_spec='${libname}${release}${shared_ext}$major'
23311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23312 postinstall_cmds='chmod 555 $lib'
23319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23320 soname_spec='${libname}${release}${shared_ext}$major'
23321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23322 shlibpath_var=LD_LIBRARY_PATH
23323 shlibpath_overrides_runpath=no
23324 hardcode_into_libs=yes
23327 irix5* | irix6* | nonstopux*)
23329 nonstopux*) version_type=nonstopux ;;
23331 if test "$lt_cv_prog_gnu_ld" = yes; then
23339 soname_spec='${libname}${release}${shared_ext}$major'
23340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23342 irix5* | nonstopux*)
23343 libsuff= shlibsuff=
23346 case $LD in # libtool.m4 will add one of these switches to LD
23347 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23348 libsuff= shlibsuff= libmagic=32-bit;;
23349 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23350 libsuff=32 shlibsuff=N32 libmagic=N32;;
23351 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23352 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23353 *) libsuff= shlibsuff= libmagic=never-match;;
23357 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23358 shlibpath_overrides_runpath=no
23359 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23360 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23361 hardcode_into_libs=yes
23364 # No shared lib support for Linux oldld, aout, or coff.
23365 linux*oldld* | linux*aout* | linux*coff*)
23369 # This must be Linux ELF.
23374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23375 soname_spec='${libname}${release}${shared_ext}$major'
23376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23377 shlibpath_var=LD_LIBRARY_PATH
23378 shlibpath_overrides_runpath=no
23379 # This implies no fast_install, which is unacceptable.
23380 # Some rework will be needed to allow for fast_install
23381 # before this can be enabled.
23382 hardcode_into_libs=yes
23384 # Append ld.so.conf contents to the search path
23385 if test -f /etc/ld.so.conf; then
23386 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' ' '`
23387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23390 # We used to test for /lib/ld.so.1 and disable shared libraries on
23391 # powerpc, because MkLinux only supported shared libraries with the
23392 # GNU dynamic linker. Since this was broken with cross compilers,
23393 # most powerpc-linux boxes support dynamic linking these days and
23394 # people can always --disable-shared, the test was removed, and we
23395 # assume the GNU/Linux dynamic linker is in use.
23396 dynamic_linker='GNU/Linux ld.so'
23403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23404 soname_spec='${libname}${release}${shared_ext}$major'
23405 shlibpath_var=LD_LIBRARY_PATH
23406 shlibpath_overrides_runpath=no
23407 hardcode_into_libs=yes
23408 dynamic_linker='GNU ld.so'
23415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23418 dynamic_linker='NetBSD (a.out) ld.so'
23420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23421 soname_spec='${libname}${release}${shared_ext}$major'
23422 dynamic_linker='NetBSD ld.elf_so'
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes
23426 hardcode_into_libs=yes
23431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23432 shlibpath_var=LD_LIBRARY_PATH
23433 shlibpath_overrides_runpath=yes
23440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23441 soname_spec='${libname}${release}${shared_ext}$major'
23442 shlibpath_var=LD_LIBRARY_PATH
23443 shlibpath_overrides_runpath=yes
23448 sys_lib_dlsearch_path_spec="/usr/lib"
23450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23453 *) need_version=no ;;
23455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23457 shlibpath_var=LD_LIBRARY_PATH
23458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23460 openbsd2.[89] | openbsd2.[89].*)
23461 shlibpath_overrides_runpath=no
23464 shlibpath_overrides_runpath=yes
23468 shlibpath_overrides_runpath=yes
23473 libname_spec='$name'
23476 library_names_spec='$libname${shared_ext} $libname.a'
23477 dynamic_linker='OS/2 ld.exe'
23478 shlibpath_var=LIBPATH
23481 osf3* | osf4* | osf5*)
23485 soname_spec='${libname}${release}${shared_ext}$major'
23486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23487 shlibpath_var=LD_LIBRARY_PATH
23488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23497 soname_spec='${libname}${release}${shared_ext}$major'
23498 shlibpath_var=LD_LIBRARY_PATH
23499 shlibpath_overrides_runpath=yes
23500 hardcode_into_libs=yes
23501 # ldd complains unless libraries are executable
23502 postinstall_cmds='chmod +x $lib'
23507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23509 shlibpath_var=LD_LIBRARY_PATH
23510 shlibpath_overrides_runpath=yes
23511 if test "$with_gnu_ld" = yes; then
23519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23520 soname_spec='${libname}${release}${shared_ext}$major'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 case $host_vendor in
23524 shlibpath_overrides_runpath=no
23526 export_dynamic_flag_spec='${wl}-Blargedynsym'
23527 runpath_var=LD_RUN_PATH
23535 shlibpath_overrides_runpath=no
23536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23542 if test -d /usr/nec ;then
23544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23545 soname_spec='$libname${shared_ext}.$major'
23546 shlibpath_var=LD_LIBRARY_PATH
23550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23551 version_type=freebsd-elf
23554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23555 soname_spec='${libname}${release}${shared_ext}$major'
23556 shlibpath_var=LD_LIBRARY_PATH
23557 hardcode_into_libs=yes
23558 if test "$with_gnu_ld" = yes; then
23559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23560 shlibpath_overrides_runpath=no
23562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23563 shlibpath_overrides_runpath=yes
23566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23570 sys_lib_dlsearch_path_spec='/usr/lib'
23575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23576 soname_spec='${libname}${release}${shared_ext}$major'
23577 shlibpath_var=LD_LIBRARY_PATH
23584 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23585 echo "${ECHO_T}$dynamic_linker" >&6; }
23586 test "$dynamic_linker" = no && can_build_shared=no
23588 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23589 if test "$GCC" = yes; then
23590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23593 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23594 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23595 hardcode_action_F77=
23596 if test -n "$hardcode_libdir_flag_spec_F77" || \
23597 test -n "$runpath_var_F77" || \
23598 test "X$hardcode_automatic_F77" = "Xyes" ; then
23600 # We can hardcode non-existant directories.
23601 if test "$hardcode_direct_F77" != no &&
23602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23603 # have to relink, otherwise we might link with an installed library
23604 # when we should be linking with a yet-to-be-installed one
23605 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23606 test "$hardcode_minus_L_F77" != no; then
23607 # Linking always hardcodes the temporary library directory.
23608 hardcode_action_F77=relink
23610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23611 hardcode_action_F77=immediate
23614 # We cannot hardcode anything, or else we can only hardcode existing
23616 hardcode_action_F77=unsupported
23618 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23619 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23621 if test "$hardcode_action_F77" = relink; then
23622 # Fast installation is not supported
23623 enable_fast_install=no
23624 elif test "$shlibpath_overrides_runpath" = yes ||
23625 test "$enable_shared" = no; then
23626 # Fast installation is not necessary
23627 enable_fast_install=needless
23631 # The else clause should only fire when bootstrapping the
23632 # libtool distribution, otherwise you forgot to ship ltmain.sh
23633 # with your package, and you will get complaints that there are
23634 # no rules to generate ltmain.sh.
23635 if test -f "$ltmain"; then
23636 # See if we are running on zsh, and set the options which allow our commands through
23637 # without removal of \ escapes.
23638 if test -n "${ZSH_VERSION+set}" ; then
23639 setopt NO_GLOB_SUBST
23641 # Now quote all the things that may contain metacharacters while being
23642 # careful not to overquote the AC_SUBSTed values. We take copies of the
23643 # variables and quote the copies for generation of the libtool script.
23644 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23646 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23647 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23648 deplibs_check_method reload_flag reload_cmds need_locks \
23649 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23650 lt_cv_sys_global_symbol_to_c_name_address \
23651 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23652 old_postinstall_cmds old_postuninstall_cmds \
23656 lt_prog_compiler_wl_F77 \
23657 lt_prog_compiler_pic_F77 \
23658 lt_prog_compiler_static_F77 \
23659 lt_prog_compiler_no_builtin_flag_F77 \
23660 export_dynamic_flag_spec_F77 \
23661 thread_safe_flag_spec_F77 \
23662 whole_archive_flag_spec_F77 \
23663 enable_shared_with_static_runtimes_F77 \
23664 old_archive_cmds_F77 \
23665 old_archive_from_new_cmds_F77 \
23666 predep_objects_F77 \
23667 postdep_objects_F77 \
23670 compiler_lib_search_path_F77 \
23672 archive_expsym_cmds_F77 \
23673 postinstall_cmds_F77 \
23674 postuninstall_cmds_F77 \
23675 old_archive_from_expsyms_cmds_F77 \
23676 allow_undefined_flag_F77 \
23677 no_undefined_flag_F77 \
23678 export_symbols_cmds_F77 \
23679 hardcode_libdir_flag_spec_F77 \
23680 hardcode_libdir_flag_spec_ld_F77 \
23681 hardcode_libdir_separator_F77 \
23682 hardcode_automatic_F77 \
23684 module_expsym_cmds_F77 \
23685 lt_cv_prog_compiler_c_o_F77 \
23686 exclude_expsyms_F77 \
23687 include_expsyms_F77; do
23690 old_archive_cmds_F77 | \
23691 old_archive_from_new_cmds_F77 | \
23692 archive_cmds_F77 | \
23693 archive_expsym_cmds_F77 | \
23694 module_cmds_F77 | \
23695 module_expsym_cmds_F77 | \
23696 old_archive_from_expsyms_cmds_F77 | \
23697 export_symbols_cmds_F77 | \
23698 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23699 postinstall_cmds | postuninstall_cmds | \
23700 old_postinstall_cmds | old_postuninstall_cmds | \
23701 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23702 # Double-quote double-evaled strings.
23703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23712 *'\$0 --fallback-echo"')
23713 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23719 cat <<__EOF__ >> "$cfgfile"
23720 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23724 # Shell to use when invoking shell scripts.
23727 # Whether or not to build shared libraries.
23728 build_libtool_libs=$enable_shared
23730 # Whether or not to build static libraries.
23731 build_old_libs=$enable_static
23733 # Whether or not to add -lc for building shared libraries.
23734 build_libtool_need_lc=$archive_cmds_need_lc_F77
23736 # Whether or not to disallow shared libs when runtime libs are static
23737 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23739 # Whether or not to optimize for fast installation.
23740 fast_install=$enable_fast_install
23743 host_alias=$host_alias
23747 # The build system.
23748 build_alias=$build_alias
23752 # An echo program that does not interpret backslashes.
23757 AR_FLAGS=$lt_AR_FLAGS
23762 # LTCC compiler flags.
23763 LTCFLAGS=$lt_LTCFLAGS
23765 # A language-specific compiler.
23766 CC=$lt_compiler_F77
23768 # Is the compiler the GNU C compiler?
23774 # The linker used to build libraries.
23777 # Whether we need hard or soft links.
23780 # A BSD-compatible nm program.
23783 # A symbol stripping program
23786 # Used to examine libraries when file_magic_cmd begins "file"
23787 MAGIC_CMD=$MAGIC_CMD
23789 # Used on cygwin: DLL creation program.
23792 # Used on cygwin: object dumper.
23795 # Used on cygwin: assembler.
23798 # The name of the directory that contains temporary libtool files.
23801 # How to create reloadable object files.
23802 reload_flag=$lt_reload_flag
23803 reload_cmds=$lt_reload_cmds
23805 # How to pass a linker flag through the compiler.
23806 wl=$lt_lt_prog_compiler_wl_F77
23808 # Object file suffix (normally "o").
23809 objext="$ac_objext"
23811 # Old archive suffix (normally "a").
23814 # Shared library suffix (normally ".so").
23815 shrext_cmds='$shrext_cmds'
23817 # Executable file suffix (normally "").
23820 # Additional compiler flags for building library objects.
23821 pic_flag=$lt_lt_prog_compiler_pic_F77
23824 # What is the maximum length of a command?
23825 max_cmd_len=$lt_cv_sys_max_cmd_len
23827 # Does compiler simultaneously support -c and -o options?
23828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23830 # Must we lock files when doing compilation?
23831 need_locks=$lt_need_locks
23833 # Do we need the lib prefix for modules?
23834 need_lib_prefix=$need_lib_prefix
23836 # Do we need a version for libraries?
23837 need_version=$need_version
23839 # Whether dlopen is supported.
23840 dlopen_support=$enable_dlopen
23842 # Whether dlopen of programs is supported.
23843 dlopen_self=$enable_dlopen_self
23845 # Whether dlopen of statically linked programs is supported.
23846 dlopen_self_static=$enable_dlopen_self_static
23848 # Compiler flag to prevent dynamic linking.
23849 link_static_flag=$lt_lt_prog_compiler_static_F77
23851 # Compiler flag to turn off builtin functions.
23852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23854 # Compiler flag to allow reflexive dlopens.
23855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23857 # Compiler flag to generate shared objects directly from archives.
23858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23860 # Compiler flag to generate thread-safe objects.
23861 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23863 # Library versioning type.
23864 version_type=$version_type
23866 # Format of library name prefix.
23867 libname_spec=$lt_libname_spec
23869 # List of archive names. First name is the real one, the rest are links.
23870 # The last name is the one that the linker finds with -lNAME.
23871 library_names_spec=$lt_library_names_spec
23873 # The coded name of the library, if different from the real name.
23874 soname_spec=$lt_soname_spec
23876 # Commands used to build and install an old-style archive.
23878 old_archive_cmds=$lt_old_archive_cmds_F77
23879 old_postinstall_cmds=$lt_old_postinstall_cmds
23880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23882 # Create an old-style archive from a shared archive.
23883 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23885 # Create a temporary old-style archive to link instead of a shared archive.
23886 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23888 # Commands used to build and install a shared archive.
23889 archive_cmds=$lt_archive_cmds_F77
23890 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23891 postinstall_cmds=$lt_postinstall_cmds
23892 postuninstall_cmds=$lt_postuninstall_cmds
23894 # Commands used to build a loadable module (assumed same as above if empty)
23895 module_cmds=$lt_module_cmds_F77
23896 module_expsym_cmds=$lt_module_expsym_cmds_F77
23898 # Commands to strip libraries.
23899 old_striplib=$lt_old_striplib
23900 striplib=$lt_striplib
23902 # Dependencies to place before the objects being linked to create a
23904 predep_objects=$lt_predep_objects_F77
23906 # Dependencies to place after the objects being linked to create a
23908 postdep_objects=$lt_postdep_objects_F77
23910 # Dependencies to place before the objects being linked to create a
23912 predeps=$lt_predeps_F77
23914 # Dependencies to place after the objects being linked to create a
23916 postdeps=$lt_postdeps_F77
23918 # The library search path used internally by the compiler when linking
23919 # a shared library.
23920 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23922 # Method to check whether dependent libraries are shared objects.
23923 deplibs_check_method=$lt_deplibs_check_method
23925 # Command to use when deplibs_check_method == file_magic.
23926 file_magic_cmd=$lt_file_magic_cmd
23928 # Flag that allows shared libraries with undefined symbols to be built.
23929 allow_undefined_flag=$lt_allow_undefined_flag_F77
23931 # Flag that forces no undefined symbols.
23932 no_undefined_flag=$lt_no_undefined_flag_F77
23934 # Commands used to finish a libtool library installation in a directory.
23935 finish_cmds=$lt_finish_cmds
23937 # Same as above, but a single script fragment to be evaled but not shown.
23938 finish_eval=$lt_finish_eval
23940 # Take the output of nm and produce a listing of raw symbols and C names.
23941 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23943 # Transform the output of nm in a proper C declaration
23944 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23946 # Transform the output of nm in a C name address pair
23947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23949 # This is the shared library runtime path variable.
23950 runpath_var=$runpath_var
23952 # This is the shared library path variable.
23953 shlibpath_var=$shlibpath_var
23955 # Is shlibpath searched before the hard-coded library search path?
23956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23958 # How to hardcode a shared library path into an executable.
23959 hardcode_action=$hardcode_action_F77
23961 # Whether we should hardcode library paths into libraries.
23962 hardcode_into_libs=$hardcode_into_libs
23964 # Flag to hardcode \$libdir into a binary during linking.
23965 # This must work even if \$libdir does not exist.
23966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23968 # If ld is used when linking, flag to hardcode \$libdir into
23969 # a binary during linking. This must work even if \$libdir does
23971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23973 # Whether we need a single -rpath flag with a separated argument.
23974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23976 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23977 # resulting binary.
23978 hardcode_direct=$hardcode_direct_F77
23980 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23981 # resulting binary.
23982 hardcode_minus_L=$hardcode_minus_L_F77
23984 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23985 # the resulting binary.
23986 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23988 # Set to yes if building a shared library automatically hardcodes DIR into the library
23989 # and all subsequent libraries and executables linked against it.
23990 hardcode_automatic=$hardcode_automatic_F77
23992 # Variables whose values should be saved in libtool wrapper scripts and
23993 # restored at relink time.
23994 variables_saved_for_relink="$variables_saved_for_relink"
23996 # Whether libtool must link a program against all its dependency libraries.
23997 link_all_deplibs=$link_all_deplibs_F77
23999 # Compile-time system search path for libraries
24000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24002 # Run-time system search path for libraries
24003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24005 # Fix the shell variable \$srcfile for the compiler.
24006 fix_srcfile_path="$fix_srcfile_path_F77"
24008 # Set to yes if exported symbols are required.
24009 always_export_symbols=$always_export_symbols_F77
24011 # The commands to list exported symbols.
24012 export_symbols_cmds=$lt_export_symbols_cmds_F77
24014 # The commands to extract the exported symbol list from a shared archive.
24015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24017 # Symbols that should not be listed in the preloaded symbols.
24018 exclude_expsyms=$lt_exclude_expsyms_F77
24020 # Symbols that must always be exported.
24021 include_expsyms=$lt_include_expsyms_F77
24023 # ### END LIBTOOL TAG CONFIG: $tagname
24029 # If there is no Makefile yet, we rely on a make rule to execute
24030 # `config.status --recheck' to rerun these tests and create the
24031 # libtool script then.
24032 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24033 if test -f "$ltmain_in"; then
24034 test -f Makefile && make "$ltmain"
24040 ac_cpp='$CPP $CPPFLAGS'
24041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24053 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24055 ac_cpp='$CPP $CPPFLAGS'
24056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24061 # Source file extension for Java test sources.
24064 # Object file extension for compiled Java test sources.
24068 # Code to be used in simple compile tests
24069 lt_simple_compile_test_code="class foo {}\n"
24071 # Code to be used in simple link tests
24072 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24076 # If no C compiler was specified, use CC.
24079 # If no C compiler flags were specified, use CFLAGS.
24080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24082 # Allow CC to be a program name with arguments.
24086 # save warnings/boilerplate of simple test code
24087 ac_outfile=conftest.$ac_objext
24088 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24090 _lt_compiler_boilerplate=`cat conftest.err`
24093 ac_outfile=conftest.$ac_objext
24094 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24096 _lt_linker_boilerplate=`cat conftest.err`
24100 # Allow CC to be a program name with arguments.
24105 for cc_temp in $compiler""; do
24107 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24108 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24113 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24116 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24117 archive_cmds_need_lc_GCJ=no
24119 old_archive_cmds_GCJ=$old_archive_cmds
24122 lt_prog_compiler_no_builtin_flag_GCJ=
24124 if test "$GCC" = yes; then
24125 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24128 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 lt_cv_prog_compiler_rtti_exceptions=no
24134 ac_outfile=conftest.$ac_objext
24135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24136 lt_compiler_flag="-fno-rtti -fno-exceptions"
24137 # Insert the option either (1) after the last *FLAGS variable, or
24138 # (2) before a word containing "conftest.", or (3) at the end.
24139 # Note that $ac_compile itself does not contain backslashes and begins
24140 # with a dollar sign (not a hyphen), so the echo should work correctly.
24141 # The option is referenced via a variable to avoid confusing sed.
24142 lt_compile=`echo "$ac_compile" | $SED \
24143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24145 -e 's:$: $lt_compiler_flag:'`
24146 (eval echo "\"\$as_me:24146: $lt_compile\"" >&5)
24147 (eval "$lt_compile" 2>conftest.err)
24149 cat conftest.err >&5
24150 echo "$as_me:24150: \$? = $ac_status" >&5
24151 if (exit $ac_status) && test -s "$ac_outfile"; then
24152 # The compiler can only warn and ignore the option if not recognized
24153 # So say no if there are warnings other than the usual output.
24154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24157 lt_cv_prog_compiler_rtti_exceptions=yes
24163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24164 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24166 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24167 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24174 lt_prog_compiler_wl_GCJ=
24175 lt_prog_compiler_pic_GCJ=
24176 lt_prog_compiler_static_GCJ=
24178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24181 if test "$GCC" = yes; then
24182 lt_prog_compiler_wl_GCJ='-Wl,'
24183 lt_prog_compiler_static_GCJ='-static'
24187 # All AIX code is PIC.
24188 if test "$host_cpu" = ia64; then
24189 # AIX 5 now supports IA64 processor
24190 lt_prog_compiler_static_GCJ='-Bstatic'
24195 # FIXME: we need at least 68020 code to build shared libraries, but
24196 # adding the `-m68020' flag to GCC prevents building anything better,
24198 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24201 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24202 # PIC is the default for these OSes.
24205 mingw* | pw32* | os2*)
24206 # This hack is so that the source file can tell whether it is being
24207 # built for inclusion in a dll (and should export symbols for example).
24208 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24211 darwin* | rhapsody*)
24212 # PIC is the default on this platform
24213 # Common symbols not allowed in MH_DYLIB files
24214 lt_prog_compiler_pic_GCJ='-fno-common'
24218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24219 # Instead, we relocate shared libraries at runtime.
24223 # Just because we use GCC doesn't mean we suddenly get shared libraries
24224 # on systems that don't support them.
24225 lt_prog_compiler_can_build_shared_GCJ=no
24230 if test -d /usr/nec; then
24231 lt_prog_compiler_pic_GCJ=-Kconform_pic
24236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24237 # not for PA HP-UX.
24243 lt_prog_compiler_pic_GCJ='-fPIC'
24249 lt_prog_compiler_pic_GCJ='-fPIC'
24253 # PORTME Check for flag to pass linker flags through the system compiler.
24256 lt_prog_compiler_wl_GCJ='-Wl,'
24257 if test "$host_cpu" = ia64; then
24258 # AIX 5 now supports IA64 processor
24259 lt_prog_compiler_static_GCJ='-Bstatic'
24261 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24265 # PIC is the default on this platform
24266 # Common symbols not allowed in MH_DYLIB files
24267 case $cc_basename in
24269 lt_prog_compiler_pic_GCJ='-qnocommon'
24270 lt_prog_compiler_wl_GCJ='-Wl,'
24275 mingw* | pw32* | os2*)
24276 # This hack is so that the source file can tell whether it is being
24277 # built for inclusion in a dll (and should export symbols for example).
24278 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24281 hpux9* | hpux10* | hpux11*)
24282 lt_prog_compiler_wl_GCJ='-Wl,'
24283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24284 # not for PA HP-UX.
24290 lt_prog_compiler_pic_GCJ='+Z'
24293 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24294 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24297 irix5* | irix6* | nonstopux*)
24298 lt_prog_compiler_wl_GCJ='-Wl,'
24299 # PIC (with -KPIC) is the default.
24300 lt_prog_compiler_static_GCJ='-non_shared'
24304 lt_prog_compiler_pic_GCJ='-KPIC'
24305 lt_prog_compiler_static_GCJ='-Bstatic'
24309 case $cc_basename in
24311 lt_prog_compiler_wl_GCJ='-Wl,'
24312 lt_prog_compiler_pic_GCJ='-KPIC'
24313 lt_prog_compiler_static_GCJ='-static'
24315 pgcc* | pgf77* | pgf90* | pgf95*)
24316 # Portland Group compilers (*not* the Pentium gcc compiler,
24317 # which looks to be a dead project)
24318 lt_prog_compiler_wl_GCJ='-Wl,'
24319 lt_prog_compiler_pic_GCJ='-fpic'
24320 lt_prog_compiler_static_GCJ='-Bstatic'
24323 lt_prog_compiler_wl_GCJ='-Wl,'
24324 # All Alpha code is PIC.
24325 lt_prog_compiler_static_GCJ='-non_shared'
24330 osf3* | osf4* | osf5*)
24331 lt_prog_compiler_wl_GCJ='-Wl,'
24332 # All OSF/1 code is PIC.
24333 lt_prog_compiler_static_GCJ='-non_shared'
24337 lt_prog_compiler_pic_GCJ='-KPIC'
24338 lt_prog_compiler_static_GCJ='-Bstatic'
24339 case $cc_basename in
24340 f77* | f90* | f95*)
24341 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24343 lt_prog_compiler_wl_GCJ='-Wl,';;
24348 lt_prog_compiler_wl_GCJ='-Qoption ld '
24349 lt_prog_compiler_pic_GCJ='-PIC'
24350 lt_prog_compiler_static_GCJ='-Bstatic'
24353 sysv4 | sysv4.2uw2* | sysv4.3*)
24354 lt_prog_compiler_wl_GCJ='-Wl,'
24355 lt_prog_compiler_pic_GCJ='-KPIC'
24356 lt_prog_compiler_static_GCJ='-Bstatic'
24360 if test -d /usr/nec ;then
24361 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24362 lt_prog_compiler_static_GCJ='-Bstatic'
24366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24367 lt_prog_compiler_wl_GCJ='-Wl,'
24368 lt_prog_compiler_pic_GCJ='-KPIC'
24369 lt_prog_compiler_static_GCJ='-Bstatic'
24373 lt_prog_compiler_wl_GCJ='-Wl,'
24374 lt_prog_compiler_can_build_shared_GCJ=no
24378 lt_prog_compiler_pic_GCJ='-pic'
24379 lt_prog_compiler_static_GCJ='-Bstatic'
24383 lt_prog_compiler_can_build_shared_GCJ=no
24388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24389 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24392 # Check to make sure the PIC flag actually works.
24394 if test -n "$lt_prog_compiler_pic_GCJ"; then
24396 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24398 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24399 echo $ECHO_N "(cached) $ECHO_C" >&6
24401 lt_prog_compiler_pic_works_GCJ=no
24402 ac_outfile=conftest.$ac_objext
24403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24404 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24405 # Insert the option either (1) after the last *FLAGS variable, or
24406 # (2) before a word containing "conftest.", or (3) at the end.
24407 # Note that $ac_compile itself does not contain backslashes and begins
24408 # with a dollar sign (not a hyphen), so the echo should work correctly.
24409 # The option is referenced via a variable to avoid confusing sed.
24410 lt_compile=`echo "$ac_compile" | $SED \
24411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24413 -e 's:$: $lt_compiler_flag:'`
24414 (eval echo "\"\$as_me:24414: $lt_compile\"" >&5)
24415 (eval "$lt_compile" 2>conftest.err)
24417 cat conftest.err >&5
24418 echo "$as_me:24418: \$? = $ac_status" >&5
24419 if (exit $ac_status) && test -s "$ac_outfile"; then
24420 # The compiler can only warn and ignore the option if not recognized
24421 # So say no if there are warnings other than the usual output.
24422 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24425 lt_prog_compiler_pic_works_GCJ=yes
24431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24432 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24434 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24435 case $lt_prog_compiler_pic_GCJ in
24437 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24440 lt_prog_compiler_pic_GCJ=
24441 lt_prog_compiler_can_build_shared_GCJ=no
24446 # For platforms which do not support PIC, -DPIC is meaningless:
24448 lt_prog_compiler_pic_GCJ=
24451 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24456 # Check to make sure the static flag actually works.
24458 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24459 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24460 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24461 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24462 echo $ECHO_N "(cached) $ECHO_C" >&6
24464 lt_prog_compiler_static_works_GCJ=no
24465 save_LDFLAGS="$LDFLAGS"
24466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24467 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24469 # The linker can only warn and ignore the option if not recognized
24470 # So say no if there are warnings
24471 if test -s conftest.err; then
24472 # Append any errors to the config.log.
24473 cat conftest.err 1>&5
24474 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24476 if diff conftest.exp conftest.er2 >/dev/null; then
24477 lt_prog_compiler_static_works_GCJ=yes
24480 lt_prog_compiler_static_works_GCJ=yes
24484 LDFLAGS="$save_LDFLAGS"
24487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24488 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24490 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24493 lt_prog_compiler_static_GCJ=
24497 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24498 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24499 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 lt_cv_prog_compiler_c_o_GCJ=no
24503 $rm -r conftest 2>/dev/null
24507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24509 lt_compiler_flag="-o out/conftest2.$ac_objext"
24510 # Insert the option either (1) after the last *FLAGS variable, or
24511 # (2) before a word containing "conftest.", or (3) at the end.
24512 # Note that $ac_compile itself does not contain backslashes and begins
24513 # with a dollar sign (not a hyphen), so the echo should work correctly.
24514 lt_compile=`echo "$ac_compile" | $SED \
24515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24517 -e 's:$: $lt_compiler_flag:'`
24518 (eval echo "\"\$as_me:24518: $lt_compile\"" >&5)
24519 (eval "$lt_compile" 2>out/conftest.err)
24521 cat out/conftest.err >&5
24522 echo "$as_me:24522: \$? = $ac_status" >&5
24523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24525 # The compiler can only warn and ignore the option if not recognized
24526 # So say no if there are warnings
24527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24530 lt_cv_prog_compiler_c_o_GCJ=yes
24535 # SGI C++ compiler will create directory out/ii_files/ for
24536 # template instantiation
24537 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24538 $rm out/* && rmdir out
24544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24545 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24548 hard_links="nottested"
24549 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24550 # do not overwrite the value of need_locks provided by the user
24551 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24552 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24557 ln conftest.a conftest.b 2>&5 || hard_links=no
24558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24559 { echo "$as_me:$LINENO: result: $hard_links" >&5
24560 echo "${ECHO_T}$hard_links" >&6; }
24561 if test "$hard_links" = no; then
24562 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24563 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24570 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24571 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24574 allow_undefined_flag_GCJ=
24575 enable_shared_with_static_runtimes_GCJ=no
24577 archive_expsym_cmds_GCJ=
24578 old_archive_From_new_cmds_GCJ=
24579 old_archive_from_expsyms_cmds_GCJ=
24580 export_dynamic_flag_spec_GCJ=
24581 whole_archive_flag_spec_GCJ=
24582 thread_safe_flag_spec_GCJ=
24583 hardcode_libdir_flag_spec_GCJ=
24584 hardcode_libdir_flag_spec_ld_GCJ=
24585 hardcode_libdir_separator_GCJ=
24586 hardcode_direct_GCJ=no
24587 hardcode_minus_L_GCJ=no
24588 hardcode_shlibpath_var_GCJ=unsupported
24589 link_all_deplibs_GCJ=unknown
24590 hardcode_automatic_GCJ=no
24592 module_expsym_cmds_GCJ=
24593 always_export_symbols_GCJ=no
24594 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24595 # include_expsyms should be a list of space-separated symbols to be *always*
24596 # included in the symbol list
24597 include_expsyms_GCJ=
24598 # exclude_expsyms can be an extended regexp of symbols to exclude
24599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24601 # as well as any symbol that contains `d'.
24602 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24604 # platforms (ab)use it in PIC code, but their linkers get confused if
24605 # the symbol is explicitly referenced. Since portable code cannot
24606 # rely on this symbol name, it's probably fine to never include it in
24607 # preloaded symbol tables.
24608 extract_expsyms_cmds=
24609 # Just being paranoid about ensuring that cc_basename is set.
24610 for cc_temp in $compiler""; do
24612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24621 cygwin* | mingw* | pw32*)
24622 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24623 # When not using gcc, we currently assume that we are using
24624 # Microsoft Visual C++.
24625 if test "$GCC" != yes; then
24630 # we just hope/assume this is gcc and not c89 (= MSVC++)
24639 if test "$with_gnu_ld" = yes; then
24640 # If archive_cmds runs LD, not CC, wlarc should be empty
24643 # Set some defaults for GNU ld with shared library support. These
24644 # are reset later if shared libraries are not supported. Putting them
24645 # here allows them to be overridden if necessary.
24646 runpath_var=LD_RUN_PATH
24647 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24648 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24649 # ancient GNU ld didn't support --whole-archive et. al.
24650 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24651 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24653 whole_archive_flag_spec_GCJ=
24655 supports_anon_versioning=no
24656 case `$LD -v 2>/dev/null` in
24657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24660 *\ 2.11.*) ;; # other 2.11 versions
24661 *) supports_anon_versioning=yes ;;
24664 # See if GNU ld supports shared libraries.
24666 aix3* | aix4* | aix5*)
24667 # On AIX/PPC, the GNU linker is very broken
24668 if test "$host_cpu" != ia64; then
24672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24673 *** to be unable to reliably create shared libraries on AIX.
24674 *** Therefore, libtool is disabling shared libraries support. If you
24675 *** really care for shared libraries, you may want to modify your PATH
24676 *** so that a non-GNU linker is found, and then restart.
24683 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)'
24684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24685 hardcode_minus_L_GCJ=yes
24687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24688 # that the semantics of dynamic libraries on AmigaOS, at least up
24689 # to version 4, is to share data among multiple programs linked
24690 # with the same dynamic library. Since this doesn't match the
24691 # behavior of shared libraries on other platforms, we can't use
24697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24698 allow_undefined_flag_GCJ=unsupported
24699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24700 # support --undefined. This deserves some investigation. FIXME
24701 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24707 cygwin* | mingw* | pw32*)
24708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24709 # as there is no search path for DLLs.
24710 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24711 allow_undefined_flag_GCJ=unsupported
24712 always_export_symbols_GCJ=no
24713 enable_shared_with_static_runtimes_GCJ=yes
24714 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24717 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24718 # If the export-symbols file already is a .def file (1st line
24719 # is EXPORTS), use it as is; otherwise, prepend...
24720 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24721 cp $export_symbols $output_objdir/$soname.def;
24723 echo EXPORTS > $output_objdir/$soname.def;
24724 cat $export_symbols >> $output_objdir/$soname.def;
24726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24733 hardcode_direct_GCJ=no
24734 hardcode_shlibpath_var_GCJ=no
24735 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24736 export_dynamic_flag_spec_GCJ='${wl}-E'
24737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24738 # Instead, shared libraries are loaded at an image base (0x10000000 by
24739 # default) and relocated if they conflict, which is a slow very memory
24740 # consuming and fragmenting process. To avoid this, we pick a random,
24741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24743 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'
24744 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'
24748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24750 case $cc_basename,$host_cpu in
24751 pgcc*) # Portland Group C compiler
24752 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'
24753 tmp_addflag=' $pic_flag'
24755 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24756 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'
24757 tmp_addflag=' $pic_flag -Mnomain' ;;
24758 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24759 tmp_addflag=' -i_dynamic' ;;
24760 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24761 tmp_addflag=' -i_dynamic -nofor_main' ;;
24762 ifc* | ifort*) # Intel Fortran compiler
24763 tmp_addflag=' -nofor_main' ;;
24765 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24767 if test $supports_anon_versioning = yes; then
24768 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24770 $echo "local: *; };" >> $output_objdir/$libname.ver~
24771 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24780 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24783 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24784 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24789 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24794 *** create shared libraries on Solaris systems. Therefore, libtool
24795 *** is disabling shared libraries support. We urge you to upgrade GNU
24796 *** binutils to release 2.9.1 or newer. Another option is to modify
24797 *** your PATH or compiler configuration so that the native linker is
24798 *** used, and then restart.
24801 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24802 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24803 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24810 case `$LD -v 2>&1` in
24811 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24815 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24816 *** reliably create shared libraries on SCO systems. Therefore, libtool
24817 *** is disabling shared libraries support. We urge you to upgrade GNU
24818 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24819 *** your PATH or compiler configuration so that the native linker is
24820 *** used, and then restart.
24825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24826 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24837 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24839 hardcode_direct_GCJ=yes
24840 hardcode_shlibpath_var_GCJ=no
24844 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24853 if test "$ld_shlibs_GCJ" = no; then
24855 hardcode_libdir_flag_spec_GCJ=
24856 export_dynamic_flag_spec_GCJ=
24857 whole_archive_flag_spec_GCJ=
24860 # PORTME fill in a description of your system's linker (not GNU ld)
24863 allow_undefined_flag_GCJ=unsupported
24864 always_export_symbols_GCJ=yes
24865 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'
24866 # Note: this linker hardcodes the directories in LIBPATH if there
24867 # are no directories specified by -L.
24868 hardcode_minus_L_GCJ=yes
24869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24870 # Neither direct hardcoding nor static linking is supported with a
24872 hardcode_direct_GCJ=unsupported
24877 if test "$host_cpu" = ia64; then
24878 # On IA64, the linker does run time linking by default, so we don't
24879 # have to do anything special.
24880 aix_use_runtimelinking=no
24881 exp_sym_flag='-Bexport'
24884 # If we're using GNU nm, then we don't want the "-C" option.
24885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24886 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24887 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'
24889 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'
24891 aix_use_runtimelinking=no
24893 # Test if we are trying to use run time linking or normal
24894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24895 # need to do runtime linking.
24896 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24897 for ld_flag in $LDFLAGS; do
24898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24899 aix_use_runtimelinking=yes
24906 exp_sym_flag='-bexport'
24907 no_entry_flag='-bnoentry'
24910 # When large executables or shared objects are built, AIX ld can
24911 # have problems creating the table of contents. If linking a library
24912 # or program results in "error TOC overflow" add -mminimal-toc to
24913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24916 archive_cmds_GCJ=''
24917 hardcode_direct_GCJ=yes
24918 hardcode_libdir_separator_GCJ=':'
24919 link_all_deplibs_GCJ=yes
24921 if test "$GCC" = yes; then
24922 case $host_os in aix4.[012]|aix4.[012].*)
24923 # We only want to do this on AIX 4.2 and lower, the check
24924 # below for broken collect2 doesn't work under 4.3+
24925 collect2name=`${CC} -print-prog-name=collect2`
24926 if test -f "$collect2name" && \
24927 strings "$collect2name" | grep resolve_lib_name >/dev/null
24929 # We have reworked collect2
24930 hardcode_direct_GCJ=yes
24932 # We have old collect2
24933 hardcode_direct_GCJ=unsupported
24934 # It fails to find uninstalled libraries when the uninstalled
24935 # path is not listed in the libpath. Setting hardcode_minus_L
24936 # to unsupported forces relinking
24937 hardcode_minus_L_GCJ=yes
24938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24939 hardcode_libdir_separator_GCJ=
24943 shared_flag='-shared'
24944 if test "$aix_use_runtimelinking" = yes; then
24945 shared_flag="$shared_flag "'${wl}-G'
24949 if test "$host_cpu" = ia64; then
24950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24951 # chokes on -Wl,-G. The following line is correct:
24954 if test "$aix_use_runtimelinking" = yes; then
24955 shared_flag='${wl}-G'
24957 shared_flag='${wl}-bM:SRE'
24962 # It seems that -bexpall does not export symbols beginning with
24963 # underscore (_), so it is better to generate a list of symbols to export.
24964 always_export_symbols_GCJ=yes
24965 if test "$aix_use_runtimelinking" = yes; then
24966 # Warning - without using the other runtime loading flags (-brtl),
24967 # -berok will link without error, but may produce a broken library.
24968 allow_undefined_flag_GCJ='-berok'
24969 # Determine the default libpath from the value encoded in an empty executable.
24970 cat >conftest.$ac_ext <<_ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24985 rm -f conftest.$ac_objext conftest$ac_exeext
24986 if { (ac_try="$ac_link"
24987 case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_link") 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25000 { (case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005 (eval "$ac_try") 2>&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest$ac_exeext'
25010 { (case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_try") 2>&5
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); }; }; then
25020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25022 # Check for a 64-bit object if we didn't find anything.
25023 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; }
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25032 rm -f core conftest.err conftest.$ac_objext \
25033 conftest$ac_exeext conftest.$ac_ext
25034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25036 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25037 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"
25039 if test "$host_cpu" = ia64; then
25040 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25041 allow_undefined_flag_GCJ="-z nodefs"
25042 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"
25044 # Determine the default libpath from the value encoded in an empty executable.
25045 cat >conftest.$ac_ext <<_ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h. */
25060 rm -f conftest.$ac_objext conftest$ac_exeext
25061 if { (ac_try="$ac_link"
25062 case "(($ac_try" in
25063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067 (eval "$ac_link") 2>conftest.er1
25069 grep -v '^ *+' conftest.er1 >conftest.err
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } &&
25074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25075 { (case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080 (eval "$ac_try") 2>&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; } &&
25084 { ac_try='test -s conftest$ac_exeext'
25085 { (case "(($ac_try" in
25086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087 *) ac_try_echo=$ac_try;;
25089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090 (eval "$ac_try") 2>&5
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; }; then
25095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25097 # Check for a 64-bit object if we didn't find anything.
25098 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; }
25101 echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25107 rm -f core conftest.err conftest.$ac_objext \
25108 conftest$ac_exeext conftest.$ac_ext
25109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25111 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25112 # Warning - without using the other run time loading flags,
25113 # -berok will link without error, but may produce a broken library.
25114 no_undefined_flag_GCJ=' ${wl}-bernotok'
25115 allow_undefined_flag_GCJ=' ${wl}-berok'
25116 # Exported symbols can be pulled into shared objects from archives
25117 whole_archive_flag_spec_GCJ='$convenience'
25118 archive_cmds_need_lc_GCJ=yes
25119 # This is similar to how AIX traditionally builds its shared libraries.
25120 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'
25126 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)'
25127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25128 hardcode_minus_L_GCJ=yes
25129 # see comment about different semantics on the GNU ld section
25134 export_dynamic_flag_spec_GCJ=-rdynamic
25137 cygwin* | mingw* | pw32*)
25138 # When not using gcc, we currently assume that we are using
25139 # Microsoft Visual C++.
25140 # hardcode_libdir_flag_spec is actually meaningless, as there is
25141 # no search path for DLLs.
25142 hardcode_libdir_flag_spec_GCJ=' '
25143 allow_undefined_flag_GCJ=unsupported
25144 # Tell ltmain to make .lib files, not .a files.
25146 # Tell ltmain to make .dll files, not .so files.
25148 # FIXME: Setting linknames here is a bad hack.
25149 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25150 # The linker will automatically build a .lib file if we build a DLL.
25151 old_archive_From_new_cmds_GCJ='true'
25152 # FIXME: Should let the user specify the lib program.
25153 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25154 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25155 enable_shared_with_static_runtimes_GCJ=yes
25158 darwin* | rhapsody*)
25160 rhapsody* | darwin1.[012])
25161 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25164 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25167 case ${MACOSX_DEPLOYMENT_TARGET} in
25169 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25172 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25178 archive_cmds_need_lc_GCJ=no
25179 hardcode_direct_GCJ=no
25180 hardcode_automatic_GCJ=yes
25181 hardcode_shlibpath_var_GCJ=unsupported
25182 whole_archive_flag_spec_GCJ=''
25183 link_all_deplibs_GCJ=yes
25184 if test "$GCC" = yes ; then
25185 output_verbose_link_cmd='echo'
25186 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25187 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25189 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}'
25190 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}'
25192 case $cc_basename in
25194 output_verbose_link_cmd='echo'
25195 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25196 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25198 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}'
25199 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}'
25209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25210 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25211 hardcode_shlibpath_var_GCJ=no
25218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25219 # support. Future versions do this automatically, but an explicit c++rt0.o
25220 # does not break anything, and helps significantly (at the cost of a little
25223 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25224 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25225 hardcode_direct_GCJ=yes
25226 hardcode_shlibpath_var_GCJ=no
25229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25231 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25232 hardcode_direct_GCJ=yes
25233 hardcode_minus_L_GCJ=yes
25234 hardcode_shlibpath_var_GCJ=no
25237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25238 freebsd* | kfreebsd*-gnu | dragonfly*)
25239 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25241 hardcode_direct_GCJ=yes
25242 hardcode_shlibpath_var_GCJ=no
25246 if test "$GCC" = yes; then
25247 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'
25249 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'
25251 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25252 hardcode_libdir_separator_GCJ=:
25253 hardcode_direct_GCJ=yes
25255 # hardcode_minus_L: Not really in the search PATH,
25256 # but as the default location of the library.
25257 hardcode_minus_L_GCJ=yes
25258 export_dynamic_flag_spec_GCJ='${wl}-E'
25262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25263 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25265 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25267 if test "$with_gnu_ld" = no; then
25268 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25269 hardcode_libdir_separator_GCJ=:
25271 hardcode_direct_GCJ=yes
25272 export_dynamic_flag_spec_GCJ='${wl}-E'
25274 # hardcode_minus_L: Not really in the search PATH,
25275 # but as the default location of the library.
25276 hardcode_minus_L_GCJ=yes
25281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25284 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25287 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25290 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25296 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25299 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25302 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25306 if test "$with_gnu_ld" = no; then
25307 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25308 hardcode_libdir_separator_GCJ=:
25312 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25313 hardcode_direct_GCJ=no
25314 hardcode_shlibpath_var_GCJ=no
25317 hardcode_direct_GCJ=yes
25318 export_dynamic_flag_spec_GCJ='${wl}-E'
25320 # hardcode_minus_L: Not really in the search PATH,
25321 # but as the default location of the library.
25322 hardcode_minus_L_GCJ=yes
25328 irix5* | irix6* | nonstopux*)
25329 if test "$GCC" = yes; then
25330 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'
25332 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'
25333 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25336 hardcode_libdir_separator_GCJ=:
25337 link_all_deplibs_GCJ=yes
25341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25342 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25344 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25347 hardcode_direct_GCJ=yes
25348 hardcode_shlibpath_var_GCJ=no
25352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25353 hardcode_direct_GCJ=yes
25354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25355 hardcode_libdir_separator_GCJ=:
25356 hardcode_shlibpath_var_GCJ=no
25360 hardcode_direct_GCJ=yes
25361 hardcode_shlibpath_var_GCJ=no
25362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25363 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25364 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25366 export_dynamic_flag_spec_GCJ='${wl}-E'
25369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25374 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25383 hardcode_minus_L_GCJ=yes
25384 allow_undefined_flag_GCJ=unsupported
25385 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'
25386 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25390 if test "$GCC" = yes; then
25391 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25392 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'
25394 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25395 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'
25397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25398 hardcode_libdir_separator_GCJ=:
25401 osf4* | osf5*) # as osf3* with the addition of -msym flag
25402 if test "$GCC" = yes; then
25403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25404 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'
25405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25407 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25408 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'
25409 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~
25410 $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'
25412 # Both c and cxx compiler support -rpath directly
25413 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25415 hardcode_libdir_separator_GCJ=:
25419 no_undefined_flag_GCJ=' -z text'
25420 if test "$GCC" = yes; then
25422 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25424 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25427 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25428 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25431 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25432 hardcode_shlibpath_var_GCJ=no
25434 solaris2.[0-5] | solaris2.[0-5].*) ;;
25436 # The compiler driver will combine linker options so we
25437 # cannot just pass the convience library names through
25438 # without $wl, iff we do not link with $LD.
25439 # Luckily, gcc supports the same syntax we need for Sun Studio.
25440 # Supported since Solaris 2.6 (maybe 2.5.1?)
25443 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25445 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' ;;
25448 link_all_deplibs_GCJ=yes
25452 if test "x$host_vendor" = xsequent; then
25453 # Use $CC to link under sequent, because it throws in some extra .o
25454 # files that make .init and .fini sections work.
25455 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25457 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25460 hardcode_direct_GCJ=yes
25461 hardcode_minus_L_GCJ=yes
25462 hardcode_shlibpath_var_GCJ=no
25466 case $host_vendor in
25468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25469 hardcode_direct_GCJ=yes # is this really true???
25472 ## LD is ld it makes a PLAMLIB
25473 ## CC just makes a GrossModule.
25474 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25475 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25476 hardcode_direct_GCJ=no
25479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25480 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25483 runpath_var='LD_RUN_PATH'
25484 hardcode_shlibpath_var_GCJ=no
25488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25489 hardcode_shlibpath_var_GCJ=no
25490 export_dynamic_flag_spec_GCJ='-Bexport'
25494 if test -d /usr/nec; then
25495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25496 hardcode_shlibpath_var_GCJ=no
25497 runpath_var=LD_RUN_PATH
25498 hardcode_runpath_var=yes
25503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25504 no_undefined_flag_GCJ='${wl}-z,text'
25505 archive_cmds_need_lc_GCJ=no
25506 hardcode_shlibpath_var_GCJ=no
25507 runpath_var='LD_RUN_PATH'
25509 if test "$GCC" = yes; then
25510 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25511 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25513 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25514 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25518 sysv5* | sco3.2v5* | sco5v6*)
25519 # Note: We can NOT use -z defs as we might desire, because we do not
25520 # link with -lc, and that would cause any symbols used from libc to
25521 # always be unresolved, which means just about no library would
25522 # ever link correctly. If we're not using GNU ld we use -z text
25523 # though, which does catch some bad symbols but isn't as heavy-handed
25525 no_undefined_flag_GCJ='${wl}-z,text'
25526 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25527 archive_cmds_need_lc_GCJ=no
25528 hardcode_shlibpath_var_GCJ=no
25529 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25530 hardcode_libdir_separator_GCJ=':'
25531 link_all_deplibs_GCJ=yes
25532 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25533 runpath_var='LD_RUN_PATH'
25535 if test "$GCC" = yes; then
25536 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25537 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25539 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25540 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25547 hardcode_shlibpath_var_GCJ=no
25556 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25557 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25558 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25561 # Do we need to explicitly link libc?
25563 case "x$archive_cmds_need_lc_GCJ" in
25565 # Assume -lc should be added
25566 archive_cmds_need_lc_GCJ=yes
25568 if test "$enable_shared" = yes && test "$GCC" = yes; then
25569 case $archive_cmds_GCJ in
25571 # FIXME: we may have to deal with multi-command sequences.
25574 # Test whether the compiler implicitly links with -lc since on some
25575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25576 # to ld, don't add -lc before -lgcc.
25577 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25583 (eval $ac_compile) 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } 2>conftest.err; then
25589 libobjs=conftest.$ac_objext
25591 wl=$lt_prog_compiler_wl_GCJ
25592 pic_flag=$lt_prog_compiler_pic_GCJ
25598 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25599 allow_undefined_flag_GCJ=
25600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25601 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }
25606 archive_cmds_need_lc_GCJ=no
25608 archive_cmds_need_lc_GCJ=yes
25610 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25612 cat conftest.err 1>&5
25615 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25616 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25625 library_names_spec=
25626 libname_spec='lib$name'
25630 postuninstall_cmds=
25634 shlibpath_overrides_runpath=unknown
25636 dynamic_linker="$host_os ld.so"
25637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25638 if test "$GCC" = yes; then
25639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25641 # if the path contains ";" then we assume it to be the separator
25642 # otherwise default to the standard path separator (i.e. ":") - it is
25643 # assumed that no part of a normal pathname contains ";" but that should
25644 # okay in the real world where ";" in dirpaths is itself problematic.
25645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25652 need_lib_prefix=unknown
25653 hardcode_into_libs=no
25655 # when you set need_version to no, make sure it does not cause -set_version
25656 # flags to be left without arguments
25657 need_version=unknown
25662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25663 shlibpath_var=LIBPATH
25665 # AIX 3 has no versioning support, so we append a major version to the name.
25666 soname_spec='${libname}${release}${shared_ext}$major'
25673 hardcode_into_libs=yes
25674 if test "$host_cpu" = ia64; then
25675 # AIX 5 supports IA64
25676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25677 shlibpath_var=LD_LIBRARY_PATH
25679 # With GCC up to 2.95.x, collect2 would create an import file
25680 # for dependence libraries. The import file would start with
25681 # the line `#! .'. This would cause the generated library to
25682 # depend on `.', always an invalid library. This was fixed in
25683 # development snapshots of GCC prior to 3.0.
25685 aix4 | aix4.[01] | aix4.[01].*)
25686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25691 can_build_shared=no
25695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25696 # soname into executable. Probably we can add versioning support to
25697 # collect2, so additional links can be useful in future.
25698 if test "$aix_use_runtimelinking" = yes; then
25699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25700 # instead of lib<name>.a to let people know that these are not
25701 # typical AIX shared libraries.
25702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25704 # We preserve .a as extension for shared libraries through AIX4.2
25705 # and later when we are not doing run time linking.
25706 library_names_spec='${libname}${release}.a $libname.a'
25707 soname_spec='${libname}${release}${shared_ext}$major'
25709 shlibpath_var=LIBPATH
25714 library_names_spec='$libname.ixlibrary $libname.a'
25715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25716 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'
25720 library_names_spec='${libname}${shared_ext}'
25721 dynamic_linker="$host_os ld.so"
25722 shlibpath_var=LIBRARY_PATH
25728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25729 soname_spec='${libname}${release}${shared_ext}$major'
25730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25731 shlibpath_var=LD_LIBRARY_PATH
25732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25734 # the default ld.so.conf also contains /usr/contrib/lib and
25735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25736 # libtool to hard-code these into programs
25739 cygwin* | mingw* | pw32*)
25740 version_type=windows
25745 case $GCC,$host_os in
25746 yes,cygwin* | yes,mingw* | yes,pw32*)
25747 library_names_spec='$libname.dll.a'
25748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25749 postinstall_cmds='base_file=`basename \${file}`~
25750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25751 dldir=$destdir/`dirname \$dlpath`~
25752 test -d \$dldir || mkdir -p \$dldir~
25753 $install_prog $dir/$dlname \$dldir/$dlname~
25754 chmod a+x \$dldir/$dlname'
25755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25756 dlpath=$dir/\$dldll~
25758 shlibpath_overrides_runpath=yes
25762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25767 # MinGW DLLs use traditional 'lib' prefix
25768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25771 # It is most probably a Windows format PATH printed by
25772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25773 # path with ; separators, and with drive letters. We can handle the
25774 # drive letters (cygwin fileutils understands them), so leave them,
25775 # especially as we might pass files found there to a mingw objdump,
25776 # which wouldn't understand a cygwinified path. Ahh.
25777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25783 # pw32 DLLs use 'pw' prefix rather than 'lib'
25784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25793 dynamic_linker='Win32 ld.exe'
25794 # FIXME: first we should search . and the directory the executable is in
25798 darwin* | rhapsody*)
25799 dynamic_linker="$host_os dyld"
25800 version_type=darwin
25803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25804 soname_spec='${libname}${release}${major}$shared_ext'
25805 shlibpath_overrides_runpath=yes
25806 shlibpath_var=DYLD_LIBRARY_PATH
25807 shrext_cmds='.dylib'
25808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25809 if test "$GCC" = yes; then
25810 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"`
25812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25822 soname_spec='${libname}${release}${shared_ext}$major'
25823 shlibpath_var=LD_LIBRARY_PATH
25834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25835 soname_spec='${libname}${release}${shared_ext}$major'
25836 shlibpath_var=LD_LIBRARY_PATH
25837 shlibpath_overrides_runpath=no
25838 hardcode_into_libs=yes
25839 dynamic_linker='GNU ld.so'
25842 freebsd* | dragonfly*)
25843 # DragonFly does not have aout. When/if they implement a new
25844 # versioning mechanism, adjust this.
25845 if test -x /usr/bin/objformat; then
25846 objformat=`/usr/bin/objformat`
25849 freebsd[123]*) objformat=aout ;;
25850 *) objformat=elf ;;
25853 version_type=freebsd-$objformat
25854 case $version_type in
25856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25865 shlibpath_var=LD_LIBRARY_PATH
25868 shlibpath_overrides_runpath=yes
25870 freebsd3.[01]* | freebsdelf3.[01]*)
25871 shlibpath_overrides_runpath=yes
25872 hardcode_into_libs=yes
25874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25876 shlibpath_overrides_runpath=no
25877 hardcode_into_libs=yes
25879 freebsd*) # from 4.6 on
25880 shlibpath_overrides_runpath=yes
25881 hardcode_into_libs=yes
25890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25891 soname_spec='${libname}${release}${shared_ext}$major'
25892 shlibpath_var=LD_LIBRARY_PATH
25893 hardcode_into_libs=yes
25896 hpux9* | hpux10* | hpux11*)
25897 # Give a soname corresponding to the major version so that dld.sl refuses to
25898 # link against other versions.
25905 hardcode_into_libs=yes
25906 dynamic_linker="$host_os dld.so"
25907 shlibpath_var=LD_LIBRARY_PATH
25908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910 soname_spec='${libname}${release}${shared_ext}$major'
25911 if test "X$HPUX_IA64_MODE" = X32; then
25912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25920 hardcode_into_libs=yes
25921 dynamic_linker="$host_os dld.sl"
25922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25925 soname_spec='${libname}${release}${shared_ext}$major'
25926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25931 dynamic_linker="$host_os dld.sl"
25932 shlibpath_var=SHLIB_PATH
25933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25935 soname_spec='${libname}${release}${shared_ext}$major'
25938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25939 postinstall_cmds='chmod 555 $lib'
25946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25947 soname_spec='${libname}${release}${shared_ext}$major'
25948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25949 shlibpath_var=LD_LIBRARY_PATH
25950 shlibpath_overrides_runpath=no
25951 hardcode_into_libs=yes
25954 irix5* | irix6* | nonstopux*)
25956 nonstopux*) version_type=nonstopux ;;
25958 if test "$lt_cv_prog_gnu_ld" = yes; then
25966 soname_spec='${libname}${release}${shared_ext}$major'
25967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25969 irix5* | nonstopux*)
25970 libsuff= shlibsuff=
25973 case $LD in # libtool.m4 will add one of these switches to LD
25974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25975 libsuff= shlibsuff= libmagic=32-bit;;
25976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25977 libsuff=32 shlibsuff=N32 libmagic=N32;;
25978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25980 *) libsuff= shlibsuff= libmagic=never-match;;
25984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25985 shlibpath_overrides_runpath=no
25986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25988 hardcode_into_libs=yes
25991 # No shared lib support for Linux oldld, aout, or coff.
25992 linux*oldld* | linux*aout* | linux*coff*)
25996 # This must be Linux ELF.
26001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26002 soname_spec='${libname}${release}${shared_ext}$major'
26003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26004 shlibpath_var=LD_LIBRARY_PATH
26005 shlibpath_overrides_runpath=no
26006 # This implies no fast_install, which is unacceptable.
26007 # Some rework will be needed to allow for fast_install
26008 # before this can be enabled.
26009 hardcode_into_libs=yes
26011 # Append ld.so.conf contents to the search path
26012 if test -f /etc/ld.so.conf; then
26013 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' ' '`
26014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26017 # We used to test for /lib/ld.so.1 and disable shared libraries on
26018 # powerpc, because MkLinux only supported shared libraries with the
26019 # GNU dynamic linker. Since this was broken with cross compilers,
26020 # most powerpc-linux boxes support dynamic linking these days and
26021 # people can always --disable-shared, the test was removed, and we
26022 # assume the GNU/Linux dynamic linker is in use.
26023 dynamic_linker='GNU/Linux ld.so'
26030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26031 soname_spec='${libname}${release}${shared_ext}$major'
26032 shlibpath_var=LD_LIBRARY_PATH
26033 shlibpath_overrides_runpath=no
26034 hardcode_into_libs=yes
26035 dynamic_linker='GNU ld.so'
26042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26045 dynamic_linker='NetBSD (a.out) ld.so'
26047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26048 soname_spec='${libname}${release}${shared_ext}$major'
26049 dynamic_linker='NetBSD ld.elf_so'
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes
26053 hardcode_into_libs=yes
26058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26059 shlibpath_var=LD_LIBRARY_PATH
26060 shlibpath_overrides_runpath=yes
26067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26068 soname_spec='${libname}${release}${shared_ext}$major'
26069 shlibpath_var=LD_LIBRARY_PATH
26070 shlibpath_overrides_runpath=yes
26075 sys_lib_dlsearch_path_spec="/usr/lib"
26077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26080 *) need_version=no ;;
26082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26084 shlibpath_var=LD_LIBRARY_PATH
26085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26087 openbsd2.[89] | openbsd2.[89].*)
26088 shlibpath_overrides_runpath=no
26091 shlibpath_overrides_runpath=yes
26095 shlibpath_overrides_runpath=yes
26100 libname_spec='$name'
26103 library_names_spec='$libname${shared_ext} $libname.a'
26104 dynamic_linker='OS/2 ld.exe'
26105 shlibpath_var=LIBPATH
26108 osf3* | osf4* | osf5*)
26112 soname_spec='${libname}${release}${shared_ext}$major'
26113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26114 shlibpath_var=LD_LIBRARY_PATH
26115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26124 soname_spec='${libname}${release}${shared_ext}$major'
26125 shlibpath_var=LD_LIBRARY_PATH
26126 shlibpath_overrides_runpath=yes
26127 hardcode_into_libs=yes
26128 # ldd complains unless libraries are executable
26129 postinstall_cmds='chmod +x $lib'
26134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26136 shlibpath_var=LD_LIBRARY_PATH
26137 shlibpath_overrides_runpath=yes
26138 if test "$with_gnu_ld" = yes; then
26146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26147 soname_spec='${libname}${release}${shared_ext}$major'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 case $host_vendor in
26151 shlibpath_overrides_runpath=no
26153 export_dynamic_flag_spec='${wl}-Blargedynsym'
26154 runpath_var=LD_RUN_PATH
26162 shlibpath_overrides_runpath=no
26163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26169 if test -d /usr/nec ;then
26171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26172 soname_spec='$libname${shared_ext}.$major'
26173 shlibpath_var=LD_LIBRARY_PATH
26177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26178 version_type=freebsd-elf
26181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26182 soname_spec='${libname}${release}${shared_ext}$major'
26183 shlibpath_var=LD_LIBRARY_PATH
26184 hardcode_into_libs=yes
26185 if test "$with_gnu_ld" = yes; then
26186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26187 shlibpath_overrides_runpath=no
26189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26190 shlibpath_overrides_runpath=yes
26193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26197 sys_lib_dlsearch_path_spec='/usr/lib'
26202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26203 soname_spec='${libname}${release}${shared_ext}$major'
26204 shlibpath_var=LD_LIBRARY_PATH
26211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26212 echo "${ECHO_T}$dynamic_linker" >&6; }
26213 test "$dynamic_linker" = no && can_build_shared=no
26215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26216 if test "$GCC" = yes; then
26217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26222 hardcode_action_GCJ=
26223 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26224 test -n "$runpath_var_GCJ" || \
26225 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26227 # We can hardcode non-existant directories.
26228 if test "$hardcode_direct_GCJ" != no &&
26229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26230 # have to relink, otherwise we might link with an installed library
26231 # when we should be linking with a yet-to-be-installed one
26232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26233 test "$hardcode_minus_L_GCJ" != no; then
26234 # Linking always hardcodes the temporary library directory.
26235 hardcode_action_GCJ=relink
26237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26238 hardcode_action_GCJ=immediate
26241 # We cannot hardcode anything, or else we can only hardcode existing
26243 hardcode_action_GCJ=unsupported
26245 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26246 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26248 if test "$hardcode_action_GCJ" = relink; then
26249 # Fast installation is not supported
26250 enable_fast_install=no
26251 elif test "$shlibpath_overrides_runpath" = yes ||
26252 test "$enable_shared" = no; then
26253 # Fast installation is not necessary
26254 enable_fast_install=needless
26258 # The else clause should only fire when bootstrapping the
26259 # libtool distribution, otherwise you forgot to ship ltmain.sh
26260 # with your package, and you will get complaints that there are
26261 # no rules to generate ltmain.sh.
26262 if test -f "$ltmain"; then
26263 # See if we are running on zsh, and set the options which allow our commands through
26264 # without removal of \ escapes.
26265 if test -n "${ZSH_VERSION+set}" ; then
26266 setopt NO_GLOB_SUBST
26268 # Now quote all the things that may contain metacharacters while being
26269 # careful not to overquote the AC_SUBSTed values. We take copies of the
26270 # variables and quote the copies for generation of the libtool script.
26271 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26275 deplibs_check_method reload_flag reload_cmds need_locks \
26276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26277 lt_cv_sys_global_symbol_to_c_name_address \
26278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26279 old_postinstall_cmds old_postuninstall_cmds \
26283 lt_prog_compiler_wl_GCJ \
26284 lt_prog_compiler_pic_GCJ \
26285 lt_prog_compiler_static_GCJ \
26286 lt_prog_compiler_no_builtin_flag_GCJ \
26287 export_dynamic_flag_spec_GCJ \
26288 thread_safe_flag_spec_GCJ \
26289 whole_archive_flag_spec_GCJ \
26290 enable_shared_with_static_runtimes_GCJ \
26291 old_archive_cmds_GCJ \
26292 old_archive_from_new_cmds_GCJ \
26293 predep_objects_GCJ \
26294 postdep_objects_GCJ \
26297 compiler_lib_search_path_GCJ \
26299 archive_expsym_cmds_GCJ \
26300 postinstall_cmds_GCJ \
26301 postuninstall_cmds_GCJ \
26302 old_archive_from_expsyms_cmds_GCJ \
26303 allow_undefined_flag_GCJ \
26304 no_undefined_flag_GCJ \
26305 export_symbols_cmds_GCJ \
26306 hardcode_libdir_flag_spec_GCJ \
26307 hardcode_libdir_flag_spec_ld_GCJ \
26308 hardcode_libdir_separator_GCJ \
26309 hardcode_automatic_GCJ \
26311 module_expsym_cmds_GCJ \
26312 lt_cv_prog_compiler_c_o_GCJ \
26313 exclude_expsyms_GCJ \
26314 include_expsyms_GCJ; do
26317 old_archive_cmds_GCJ | \
26318 old_archive_from_new_cmds_GCJ | \
26319 archive_cmds_GCJ | \
26320 archive_expsym_cmds_GCJ | \
26321 module_cmds_GCJ | \
26322 module_expsym_cmds_GCJ | \
26323 old_archive_from_expsyms_cmds_GCJ | \
26324 export_symbols_cmds_GCJ | \
26325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26326 postinstall_cmds | postuninstall_cmds | \
26327 old_postinstall_cmds | old_postuninstall_cmds | \
26328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26329 # Double-quote double-evaled strings.
26330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26339 *'\$0 --fallback-echo"')
26340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26346 cat <<__EOF__ >> "$cfgfile"
26347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26351 # Shell to use when invoking shell scripts.
26354 # Whether or not to build shared libraries.
26355 build_libtool_libs=$enable_shared
26357 # Whether or not to build static libraries.
26358 build_old_libs=$enable_static
26360 # Whether or not to add -lc for building shared libraries.
26361 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26363 # Whether or not to disallow shared libs when runtime libs are static
26364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26366 # Whether or not to optimize for fast installation.
26367 fast_install=$enable_fast_install
26370 host_alias=$host_alias
26374 # The build system.
26375 build_alias=$build_alias
26379 # An echo program that does not interpret backslashes.
26384 AR_FLAGS=$lt_AR_FLAGS
26389 # LTCC compiler flags.
26390 LTCFLAGS=$lt_LTCFLAGS
26392 # A language-specific compiler.
26393 CC=$lt_compiler_GCJ
26395 # Is the compiler the GNU C compiler?
26401 # The linker used to build libraries.
26404 # Whether we need hard or soft links.
26407 # A BSD-compatible nm program.
26410 # A symbol stripping program
26413 # Used to examine libraries when file_magic_cmd begins "file"
26414 MAGIC_CMD=$MAGIC_CMD
26416 # Used on cygwin: DLL creation program.
26419 # Used on cygwin: object dumper.
26422 # Used on cygwin: assembler.
26425 # The name of the directory that contains temporary libtool files.
26428 # How to create reloadable object files.
26429 reload_flag=$lt_reload_flag
26430 reload_cmds=$lt_reload_cmds
26432 # How to pass a linker flag through the compiler.
26433 wl=$lt_lt_prog_compiler_wl_GCJ
26435 # Object file suffix (normally "o").
26436 objext="$ac_objext"
26438 # Old archive suffix (normally "a").
26441 # Shared library suffix (normally ".so").
26442 shrext_cmds='$shrext_cmds'
26444 # Executable file suffix (normally "").
26447 # Additional compiler flags for building library objects.
26448 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26451 # What is the maximum length of a command?
26452 max_cmd_len=$lt_cv_sys_max_cmd_len
26454 # Does compiler simultaneously support -c and -o options?
26455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26457 # Must we lock files when doing compilation?
26458 need_locks=$lt_need_locks
26460 # Do we need the lib prefix for modules?
26461 need_lib_prefix=$need_lib_prefix
26463 # Do we need a version for libraries?
26464 need_version=$need_version
26466 # Whether dlopen is supported.
26467 dlopen_support=$enable_dlopen
26469 # Whether dlopen of programs is supported.
26470 dlopen_self=$enable_dlopen_self
26472 # Whether dlopen of statically linked programs is supported.
26473 dlopen_self_static=$enable_dlopen_self_static
26475 # Compiler flag to prevent dynamic linking.
26476 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26478 # Compiler flag to turn off builtin functions.
26479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26481 # Compiler flag to allow reflexive dlopens.
26482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26484 # Compiler flag to generate shared objects directly from archives.
26485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26487 # Compiler flag to generate thread-safe objects.
26488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26490 # Library versioning type.
26491 version_type=$version_type
26493 # Format of library name prefix.
26494 libname_spec=$lt_libname_spec
26496 # List of archive names. First name is the real one, the rest are links.
26497 # The last name is the one that the linker finds with -lNAME.
26498 library_names_spec=$lt_library_names_spec
26500 # The coded name of the library, if different from the real name.
26501 soname_spec=$lt_soname_spec
26503 # Commands used to build and install an old-style archive.
26505 old_archive_cmds=$lt_old_archive_cmds_GCJ
26506 old_postinstall_cmds=$lt_old_postinstall_cmds
26507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26509 # Create an old-style archive from a shared archive.
26510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26512 # Create a temporary old-style archive to link instead of a shared archive.
26513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26515 # Commands used to build and install a shared archive.
26516 archive_cmds=$lt_archive_cmds_GCJ
26517 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26518 postinstall_cmds=$lt_postinstall_cmds
26519 postuninstall_cmds=$lt_postuninstall_cmds
26521 # Commands used to build a loadable module (assumed same as above if empty)
26522 module_cmds=$lt_module_cmds_GCJ
26523 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26525 # Commands to strip libraries.
26526 old_striplib=$lt_old_striplib
26527 striplib=$lt_striplib
26529 # Dependencies to place before the objects being linked to create a
26531 predep_objects=$lt_predep_objects_GCJ
26533 # Dependencies to place after the objects being linked to create a
26535 postdep_objects=$lt_postdep_objects_GCJ
26537 # Dependencies to place before the objects being linked to create a
26539 predeps=$lt_predeps_GCJ
26541 # Dependencies to place after the objects being linked to create a
26543 postdeps=$lt_postdeps_GCJ
26545 # The library search path used internally by the compiler when linking
26546 # a shared library.
26547 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26549 # Method to check whether dependent libraries are shared objects.
26550 deplibs_check_method=$lt_deplibs_check_method
26552 # Command to use when deplibs_check_method == file_magic.
26553 file_magic_cmd=$lt_file_magic_cmd
26555 # Flag that allows shared libraries with undefined symbols to be built.
26556 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26558 # Flag that forces no undefined symbols.
26559 no_undefined_flag=$lt_no_undefined_flag_GCJ
26561 # Commands used to finish a libtool library installation in a directory.
26562 finish_cmds=$lt_finish_cmds
26564 # Same as above, but a single script fragment to be evaled but not shown.
26565 finish_eval=$lt_finish_eval
26567 # Take the output of nm and produce a listing of raw symbols and C names.
26568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26570 # Transform the output of nm in a proper C declaration
26571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26573 # Transform the output of nm in a C name address pair
26574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26576 # This is the shared library runtime path variable.
26577 runpath_var=$runpath_var
26579 # This is the shared library path variable.
26580 shlibpath_var=$shlibpath_var
26582 # Is shlibpath searched before the hard-coded library search path?
26583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26585 # How to hardcode a shared library path into an executable.
26586 hardcode_action=$hardcode_action_GCJ
26588 # Whether we should hardcode library paths into libraries.
26589 hardcode_into_libs=$hardcode_into_libs
26591 # Flag to hardcode \$libdir into a binary during linking.
26592 # This must work even if \$libdir does not exist.
26593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26595 # If ld is used when linking, flag to hardcode \$libdir into
26596 # a binary during linking. This must work even if \$libdir does
26598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26600 # Whether we need a single -rpath flag with a separated argument.
26601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26604 # resulting binary.
26605 hardcode_direct=$hardcode_direct_GCJ
26607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26608 # resulting binary.
26609 hardcode_minus_L=$hardcode_minus_L_GCJ
26611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26612 # the resulting binary.
26613 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26615 # Set to yes if building a shared library automatically hardcodes DIR into the library
26616 # and all subsequent libraries and executables linked against it.
26617 hardcode_automatic=$hardcode_automatic_GCJ
26619 # Variables whose values should be saved in libtool wrapper scripts and
26620 # restored at relink time.
26621 variables_saved_for_relink="$variables_saved_for_relink"
26623 # Whether libtool must link a program against all its dependency libraries.
26624 link_all_deplibs=$link_all_deplibs_GCJ
26626 # Compile-time system search path for libraries
26627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26629 # Run-time system search path for libraries
26630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26632 # Fix the shell variable \$srcfile for the compiler.
26633 fix_srcfile_path="$fix_srcfile_path_GCJ"
26635 # Set to yes if exported symbols are required.
26636 always_export_symbols=$always_export_symbols_GCJ
26638 # The commands to list exported symbols.
26639 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26641 # The commands to extract the exported symbol list from a shared archive.
26642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26644 # Symbols that should not be listed in the preloaded symbols.
26645 exclude_expsyms=$lt_exclude_expsyms_GCJ
26647 # Symbols that must always be exported.
26648 include_expsyms=$lt_include_expsyms_GCJ
26650 # ### END LIBTOOL TAG CONFIG: $tagname
26656 # If there is no Makefile yet, we rely on a make rule to execute
26657 # `config.status --recheck' to rerun these tests and create the
26658 # libtool script then.
26659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26660 if test -f "$ltmain_in"; then
26661 test -f Makefile && make "$ltmain"
26667 ac_cpp='$CPP $CPPFLAGS'
26668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26681 ac_cpp='$CPP $CPPFLAGS'
26682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26687 # Source file extension for RC test sources.
26690 # Object file extension for compiled RC test sources.
26694 # Code to be used in simple compile tests
26695 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26697 # Code to be used in simple link tests
26698 lt_simple_link_test_code="$lt_simple_compile_test_code"
26700 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26702 # If no C compiler was specified, use CC.
26705 # If no C compiler flags were specified, use CFLAGS.
26706 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26708 # Allow CC to be a program name with arguments.
26712 # save warnings/boilerplate of simple test code
26713 ac_outfile=conftest.$ac_objext
26714 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26715 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26716 _lt_compiler_boilerplate=`cat conftest.err`
26719 ac_outfile=conftest.$ac_objext
26720 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26721 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26722 _lt_linker_boilerplate=`cat conftest.err`
26726 # Allow CC to be a program name with arguments.
26731 for cc_temp in $compiler""; do
26733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26739 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26741 lt_cv_prog_compiler_c_o_RC=yes
26743 # The else clause should only fire when bootstrapping the
26744 # libtool distribution, otherwise you forgot to ship ltmain.sh
26745 # with your package, and you will get complaints that there are
26746 # no rules to generate ltmain.sh.
26747 if test -f "$ltmain"; then
26748 # See if we are running on zsh, and set the options which allow our commands through
26749 # without removal of \ escapes.
26750 if test -n "${ZSH_VERSION+set}" ; then
26751 setopt NO_GLOB_SUBST
26753 # Now quote all the things that may contain metacharacters while being
26754 # careful not to overquote the AC_SUBSTed values. We take copies of the
26755 # variables and quote the copies for generation of the libtool script.
26756 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26758 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26759 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26760 deplibs_check_method reload_flag reload_cmds need_locks \
26761 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26762 lt_cv_sys_global_symbol_to_c_name_address \
26763 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26764 old_postinstall_cmds old_postuninstall_cmds \
26768 lt_prog_compiler_wl_RC \
26769 lt_prog_compiler_pic_RC \
26770 lt_prog_compiler_static_RC \
26771 lt_prog_compiler_no_builtin_flag_RC \
26772 export_dynamic_flag_spec_RC \
26773 thread_safe_flag_spec_RC \
26774 whole_archive_flag_spec_RC \
26775 enable_shared_with_static_runtimes_RC \
26776 old_archive_cmds_RC \
26777 old_archive_from_new_cmds_RC \
26778 predep_objects_RC \
26779 postdep_objects_RC \
26782 compiler_lib_search_path_RC \
26784 archive_expsym_cmds_RC \
26785 postinstall_cmds_RC \
26786 postuninstall_cmds_RC \
26787 old_archive_from_expsyms_cmds_RC \
26788 allow_undefined_flag_RC \
26789 no_undefined_flag_RC \
26790 export_symbols_cmds_RC \
26791 hardcode_libdir_flag_spec_RC \
26792 hardcode_libdir_flag_spec_ld_RC \
26793 hardcode_libdir_separator_RC \
26794 hardcode_automatic_RC \
26796 module_expsym_cmds_RC \
26797 lt_cv_prog_compiler_c_o_RC \
26798 exclude_expsyms_RC \
26799 include_expsyms_RC; do
26802 old_archive_cmds_RC | \
26803 old_archive_from_new_cmds_RC | \
26804 archive_cmds_RC | \
26805 archive_expsym_cmds_RC | \
26807 module_expsym_cmds_RC | \
26808 old_archive_from_expsyms_cmds_RC | \
26809 export_symbols_cmds_RC | \
26810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26811 postinstall_cmds | postuninstall_cmds | \
26812 old_postinstall_cmds | old_postuninstall_cmds | \
26813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26814 # Double-quote double-evaled strings.
26815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26824 *'\$0 --fallback-echo"')
26825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26831 cat <<__EOF__ >> "$cfgfile"
26832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26836 # Shell to use when invoking shell scripts.
26839 # Whether or not to build shared libraries.
26840 build_libtool_libs=$enable_shared
26842 # Whether or not to build static libraries.
26843 build_old_libs=$enable_static
26845 # Whether or not to add -lc for building shared libraries.
26846 build_libtool_need_lc=$archive_cmds_need_lc_RC
26848 # Whether or not to disallow shared libs when runtime libs are static
26849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26851 # Whether or not to optimize for fast installation.
26852 fast_install=$enable_fast_install
26855 host_alias=$host_alias
26859 # The build system.
26860 build_alias=$build_alias
26864 # An echo program that does not interpret backslashes.
26869 AR_FLAGS=$lt_AR_FLAGS
26874 # LTCC compiler flags.
26875 LTCFLAGS=$lt_LTCFLAGS
26877 # A language-specific compiler.
26880 # Is the compiler the GNU C compiler?
26886 # The linker used to build libraries.
26889 # Whether we need hard or soft links.
26892 # A BSD-compatible nm program.
26895 # A symbol stripping program
26898 # Used to examine libraries when file_magic_cmd begins "file"
26899 MAGIC_CMD=$MAGIC_CMD
26901 # Used on cygwin: DLL creation program.
26904 # Used on cygwin: object dumper.
26907 # Used on cygwin: assembler.
26910 # The name of the directory that contains temporary libtool files.
26913 # How to create reloadable object files.
26914 reload_flag=$lt_reload_flag
26915 reload_cmds=$lt_reload_cmds
26917 # How to pass a linker flag through the compiler.
26918 wl=$lt_lt_prog_compiler_wl_RC
26920 # Object file suffix (normally "o").
26921 objext="$ac_objext"
26923 # Old archive suffix (normally "a").
26926 # Shared library suffix (normally ".so").
26927 shrext_cmds='$shrext_cmds'
26929 # Executable file suffix (normally "").
26932 # Additional compiler flags for building library objects.
26933 pic_flag=$lt_lt_prog_compiler_pic_RC
26936 # What is the maximum length of a command?
26937 max_cmd_len=$lt_cv_sys_max_cmd_len
26939 # Does compiler simultaneously support -c and -o options?
26940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26942 # Must we lock files when doing compilation?
26943 need_locks=$lt_need_locks
26945 # Do we need the lib prefix for modules?
26946 need_lib_prefix=$need_lib_prefix
26948 # Do we need a version for libraries?
26949 need_version=$need_version
26951 # Whether dlopen is supported.
26952 dlopen_support=$enable_dlopen
26954 # Whether dlopen of programs is supported.
26955 dlopen_self=$enable_dlopen_self
26957 # Whether dlopen of statically linked programs is supported.
26958 dlopen_self_static=$enable_dlopen_self_static
26960 # Compiler flag to prevent dynamic linking.
26961 link_static_flag=$lt_lt_prog_compiler_static_RC
26963 # Compiler flag to turn off builtin functions.
26964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26966 # Compiler flag to allow reflexive dlopens.
26967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26969 # Compiler flag to generate shared objects directly from archives.
26970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26972 # Compiler flag to generate thread-safe objects.
26973 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26975 # Library versioning type.
26976 version_type=$version_type
26978 # Format of library name prefix.
26979 libname_spec=$lt_libname_spec
26981 # List of archive names. First name is the real one, the rest are links.
26982 # The last name is the one that the linker finds with -lNAME.
26983 library_names_spec=$lt_library_names_spec
26985 # The coded name of the library, if different from the real name.
26986 soname_spec=$lt_soname_spec
26988 # Commands used to build and install an old-style archive.
26990 old_archive_cmds=$lt_old_archive_cmds_RC
26991 old_postinstall_cmds=$lt_old_postinstall_cmds
26992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26994 # Create an old-style archive from a shared archive.
26995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26997 # Create a temporary old-style archive to link instead of a shared archive.
26998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27000 # Commands used to build and install a shared archive.
27001 archive_cmds=$lt_archive_cmds_RC
27002 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27003 postinstall_cmds=$lt_postinstall_cmds
27004 postuninstall_cmds=$lt_postuninstall_cmds
27006 # Commands used to build a loadable module (assumed same as above if empty)
27007 module_cmds=$lt_module_cmds_RC
27008 module_expsym_cmds=$lt_module_expsym_cmds_RC
27010 # Commands to strip libraries.
27011 old_striplib=$lt_old_striplib
27012 striplib=$lt_striplib
27014 # Dependencies to place before the objects being linked to create a
27016 predep_objects=$lt_predep_objects_RC
27018 # Dependencies to place after the objects being linked to create a
27020 postdep_objects=$lt_postdep_objects_RC
27022 # Dependencies to place before the objects being linked to create a
27024 predeps=$lt_predeps_RC
27026 # Dependencies to place after the objects being linked to create a
27028 postdeps=$lt_postdeps_RC
27030 # The library search path used internally by the compiler when linking
27031 # a shared library.
27032 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27034 # Method to check whether dependent libraries are shared objects.
27035 deplibs_check_method=$lt_deplibs_check_method
27037 # Command to use when deplibs_check_method == file_magic.
27038 file_magic_cmd=$lt_file_magic_cmd
27040 # Flag that allows shared libraries with undefined symbols to be built.
27041 allow_undefined_flag=$lt_allow_undefined_flag_RC
27043 # Flag that forces no undefined symbols.
27044 no_undefined_flag=$lt_no_undefined_flag_RC
27046 # Commands used to finish a libtool library installation in a directory.
27047 finish_cmds=$lt_finish_cmds
27049 # Same as above, but a single script fragment to be evaled but not shown.
27050 finish_eval=$lt_finish_eval
27052 # Take the output of nm and produce a listing of raw symbols and C names.
27053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27055 # Transform the output of nm in a proper C declaration
27056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27058 # Transform the output of nm in a C name address pair
27059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27061 # This is the shared library runtime path variable.
27062 runpath_var=$runpath_var
27064 # This is the shared library path variable.
27065 shlibpath_var=$shlibpath_var
27067 # Is shlibpath searched before the hard-coded library search path?
27068 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27070 # How to hardcode a shared library path into an executable.
27071 hardcode_action=$hardcode_action_RC
27073 # Whether we should hardcode library paths into libraries.
27074 hardcode_into_libs=$hardcode_into_libs
27076 # Flag to hardcode \$libdir into a binary during linking.
27077 # This must work even if \$libdir does not exist.
27078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27080 # If ld is used when linking, flag to hardcode \$libdir into
27081 # a binary during linking. This must work even if \$libdir does
27083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27085 # Whether we need a single -rpath flag with a separated argument.
27086 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27088 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27089 # resulting binary.
27090 hardcode_direct=$hardcode_direct_RC
27092 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27093 # resulting binary.
27094 hardcode_minus_L=$hardcode_minus_L_RC
27096 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27097 # the resulting binary.
27098 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27100 # Set to yes if building a shared library automatically hardcodes DIR into the library
27101 # and all subsequent libraries and executables linked against it.
27102 hardcode_automatic=$hardcode_automatic_RC
27104 # Variables whose values should be saved in libtool wrapper scripts and
27105 # restored at relink time.
27106 variables_saved_for_relink="$variables_saved_for_relink"
27108 # Whether libtool must link a program against all its dependency libraries.
27109 link_all_deplibs=$link_all_deplibs_RC
27111 # Compile-time system search path for libraries
27112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27114 # Run-time system search path for libraries
27115 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27117 # Fix the shell variable \$srcfile for the compiler.
27118 fix_srcfile_path="$fix_srcfile_path_RC"
27120 # Set to yes if exported symbols are required.
27121 always_export_symbols=$always_export_symbols_RC
27123 # The commands to list exported symbols.
27124 export_symbols_cmds=$lt_export_symbols_cmds_RC
27126 # The commands to extract the exported symbol list from a shared archive.
27127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27129 # Symbols that should not be listed in the preloaded symbols.
27130 exclude_expsyms=$lt_exclude_expsyms_RC
27132 # Symbols that must always be exported.
27133 include_expsyms=$lt_include_expsyms_RC
27135 # ### END LIBTOOL TAG CONFIG: $tagname
27141 # If there is no Makefile yet, we rely on a make rule to execute
27142 # `config.status --recheck' to rerun these tests and create the
27143 # libtool script then.
27144 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27145 if test -f "$ltmain_in"; then
27146 test -f Makefile && make "$ltmain"
27152 ac_cpp='$CPP $CPPFLAGS'
27153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27162 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27163 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27164 { (exit 1); exit 1; }; }
27168 # Append the new tag name to the list of available tags.
27169 if test -n "$tagname" ; then
27170 available_tags="$available_tags $tagname"
27176 # Now substitute the updated list of available tags.
27177 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27178 mv "${ofile}T" "$ofile"
27182 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27183 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27184 { (exit 1); exit 1; }; }
27190 # This can be used to rebuild libtool when needed
27191 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27193 # Always use our own libtool.
27194 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27196 # Prevent multiple expansion
27218 if test "$lt_cv_dlopen_self" = "yes" ; then
27220 cat >>confdefs.h <<\_ACEOF
27221 #define CAN_DLOPEN_SELF 1
27227 if test "$WITH_LLVMGCCDIR" = "default" ; then
27228 LLVMGCC="llvm-gcc${EXEEXT}"
27229 LLVMGXX="llvm-g++${EXEEXT}"
27230 LLVMGCCCOMMAND="$LLVMGCC"
27231 LLVMGXXCOMMAND="$LLVMGXX"
27232 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27234 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27236 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27237 set dummy $LLVMGCC; ac_word=$2
27238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27240 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27241 echo $ECHO_N "(cached) $ECHO_C" >&6
27245 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27249 for as_dir in $PATH
27252 test -z "$as_dir" && as_dir=.
27253 for ac_exec_ext in '' $ac_executable_extensions; do
27254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27255 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27266 LLVMGCC=$ac_cv_path_LLVMGCC
27267 if test -n "$LLVMGCC"; then
27268 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27269 echo "${ECHO_T}$LLVMGCC" >&6; }
27271 { echo "$as_me:$LINENO: result: no" >&5
27272 echo "${ECHO_T}no" >&6; }
27276 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27277 set dummy $LLVMGXX; ac_word=$2
27278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27280 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27285 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27289 for as_dir in $PATH
27292 test -z "$as_dir" && as_dir=.
27293 for ac_exec_ext in '' $ac_executable_extensions; do
27294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27295 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27306 LLVMGXX=$ac_cv_path_LLVMGXX
27307 if test -n "$LLVMGXX"; then
27308 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27309 echo "${ECHO_T}$LLVMGXX" >&6; }
27311 { echo "$as_me:$LINENO: result: no" >&5
27312 echo "${ECHO_T}no" >&6; }
27317 if test -z "$LLVMGCC"; then
27318 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27319 LLVMGCCCOMMAND="$LLVMGCC"
27321 if test -z "$LLVMGXX"; then
27322 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27323 LLVMGXXCOMMAND="$LLVMGXX"
27330 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27332 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27337 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27338 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27351 if test "$GCC" != "yes" && test "$ICC" != "yes"
27353 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27354 echo "$as_me: error: gcc|icc required but not found" >&2;}
27355 { (exit 1); exit 1; }; }
27358 if test "$GXX" != "yes" && test "$IXX" != "yes"
27360 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27361 echo "$as_me: error: g++|icc required but not found" >&2;}
27362 { (exit 1); exit 1; }; }
27365 if test "$GCC" = "yes"
27367 cat >conftest.$ac_ext <<_ACEOF
27368 #if !defined(__GNUC__) || __GNUC__ < 3
27369 #error Unsupported GCC version
27373 rm -f conftest.$ac_objext
27374 if { (ac_try="$ac_compile"
27375 case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_compile") 2>conftest.er1
27382 grep -v '^ *+' conftest.er1 >conftest.err
27384 cat conftest.err >&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } &&
27387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27388 { (case "(($ac_try" in
27389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390 *) ac_try_echo=$ac_try;;
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393 (eval "$ac_try") 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest.$ac_objext'
27398 { (case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_try") 2>&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; }; then
27409 echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27412 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27413 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27414 { (exit 1); exit 1; }; }
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 if test -z "$llvm_cv_gnu_make_command"
27422 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27423 echo "$as_me: error: GNU Make required but not found" >&2;}
27424 { (exit 1); exit 1; }; }
27427 { echo "$as_me:$LINENO: result: ok" >&5
27428 echo "${ECHO_T}ok" >&6; }
27432 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27433 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27434 if test "${ac_cv_lib_m_sin+set}" = set; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27437 ac_check_lib_save_LIBS=$LIBS
27439 cat >conftest.$ac_ext <<_ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h. */
27446 /* Override any GCC internal prototype to avoid an error.
27447 Use char because int might match the return type of a GCC
27448 builtin and then its argument prototype would still apply. */
27461 rm -f conftest.$ac_objext conftest$ac_exeext
27462 if { (ac_try="$ac_link"
27463 case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_link") 2>conftest.er1
27470 grep -v '^ *+' conftest.er1 >conftest.err
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } &&
27475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27476 { (case "(($ac_try" in
27477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27478 *) ac_try_echo=$ac_try;;
27480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27481 (eval "$ac_try") 2>&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; } &&
27485 { ac_try='test -s conftest$ac_exeext'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
27495 ac_cv_lib_m_sin=yes
27497 echo "$as_me: failed program was:" >&5
27498 sed 's/^/| /' conftest.$ac_ext >&5
27503 rm -f core conftest.err conftest.$ac_objext \
27504 conftest$ac_exeext conftest.$ac_ext
27505 LIBS=$ac_check_lib_save_LIBS
27507 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27508 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27509 if test $ac_cv_lib_m_sin = yes; then
27510 cat >>confdefs.h <<_ACEOF
27511 #define HAVE_LIBM 1
27518 if test "$llvm_cv_os_type" = "MingW" ; then
27520 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27521 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27522 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27525 ac_check_lib_save_LIBS=$LIBS
27526 LIBS="-limagehlp $LIBS"
27527 cat >conftest.$ac_ext <<_ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h. */
27543 rm -f conftest.$ac_objext conftest$ac_exeext
27544 if { (ac_try="$ac_link"
27545 case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_link") 2>conftest.er1
27552 grep -v '^ *+' conftest.er1 >conftest.err
27554 cat conftest.err >&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); } &&
27557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest$ac_exeext'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; }; then
27577 ac_cv_lib_imagehlp_main=yes
27579 echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27582 ac_cv_lib_imagehlp_main=no
27585 rm -f core conftest.err conftest.$ac_objext \
27586 conftest$ac_exeext conftest.$ac_ext
27587 LIBS=$ac_check_lib_save_LIBS
27589 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27590 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27591 if test $ac_cv_lib_imagehlp_main = yes; then
27592 cat >>confdefs.h <<_ACEOF
27593 #define HAVE_LIBIMAGEHLP 1
27596 LIBS="-limagehlp $LIBS"
27601 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27602 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27603 if test "${ac_cv_lib_psapi_main+set}" = set; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27606 ac_check_lib_save_LIBS=$LIBS
27607 LIBS="-lpsapi $LIBS"
27608 cat >conftest.$ac_ext <<_ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h. */
27624 rm -f conftest.$ac_objext conftest$ac_exeext
27625 if { (ac_try="$ac_link"
27626 case "(($ac_try" in
27627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628 *) ac_try_echo=$ac_try;;
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631 (eval "$ac_link") 2>conftest.er1
27633 grep -v '^ *+' conftest.er1 >conftest.err
27635 cat conftest.err >&5
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); } &&
27638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27639 { (case "(($ac_try" in
27640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27644 (eval "$ac_try") 2>&5
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); }; } &&
27648 { ac_try='test -s conftest$ac_exeext'
27649 { (case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_try") 2>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
27658 ac_cv_lib_psapi_main=yes
27660 echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27663 ac_cv_lib_psapi_main=no
27666 rm -f core conftest.err conftest.$ac_objext \
27667 conftest$ac_exeext conftest.$ac_ext
27668 LIBS=$ac_check_lib_save_LIBS
27670 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27671 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27672 if test $ac_cv_lib_psapi_main = yes; then
27673 cat >>confdefs.h <<_ACEOF
27674 #define HAVE_LIBPSAPI 1
27677 LIBS="-lpsapi $LIBS"
27683 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27684 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27685 if test "${ac_cv_search_dlopen+set}" = set; then
27686 echo $ECHO_N "(cached) $ECHO_C" >&6
27688 ac_func_search_save_LIBS=$LIBS
27689 cat >conftest.$ac_ext <<_ACEOF
27692 cat confdefs.h >>conftest.$ac_ext
27693 cat >>conftest.$ac_ext <<_ACEOF
27694 /* end confdefs.h. */
27696 /* Override any GCC internal prototype to avoid an error.
27697 Use char because int might match the return type of a GCC
27698 builtin and then its argument prototype would still apply. */
27711 for ac_lib in '' dl; do
27712 if test -z "$ac_lib"; then
27713 ac_res="none required"
27716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27718 rm -f conftest.$ac_objext conftest$ac_exeext
27719 if { (ac_try="$ac_link"
27720 case "(($ac_try" in
27721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722 *) ac_try_echo=$ac_try;;
27724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725 (eval "$ac_link") 2>conftest.er1
27727 grep -v '^ *+' conftest.er1 >conftest.err
27729 cat conftest.err >&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); } &&
27732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27733 { (case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_try") 2>&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest$ac_exeext'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_try") 2>&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; }; then
27752 ac_cv_search_dlopen=$ac_res
27754 echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27760 rm -f core conftest.err conftest.$ac_objext \
27762 if test "${ac_cv_search_dlopen+set}" = set; then
27766 if test "${ac_cv_search_dlopen+set}" = set; then
27769 ac_cv_search_dlopen=no
27771 rm conftest.$ac_ext
27772 LIBS=$ac_func_search_save_LIBS
27774 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27775 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27776 ac_res=$ac_cv_search_dlopen
27777 if test "$ac_res" != no; then
27778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27780 cat >>confdefs.h <<\_ACEOF
27781 #define HAVE_DLOPEN 1
27785 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27786 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27790 if test "$llvm_cv_enable_libffi" = "yes" ; then
27791 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27792 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27793 if test "${ac_cv_search_ffi_call+set}" = set; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27796 ac_func_search_save_LIBS=$LIBS
27797 cat >conftest.$ac_ext <<_ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h. */
27804 /* Override any GCC internal prototype to avoid an error.
27805 Use char because int might match the return type of a GCC
27806 builtin and then its argument prototype would still apply. */
27814 return ffi_call ();
27819 for ac_lib in '' ffi; do
27820 if test -z "$ac_lib"; then
27821 ac_res="none required"
27824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27826 rm -f conftest.$ac_objext conftest$ac_exeext
27827 if { (ac_try="$ac_link"
27828 case "(($ac_try" in
27829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830 *) ac_try_echo=$ac_try;;
27832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833 (eval "$ac_link") 2>conftest.er1
27835 grep -v '^ *+' conftest.er1 >conftest.err
27837 cat conftest.err >&5
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); } &&
27840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27841 { (case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_try") 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; } &&
27850 { ac_try='test -s conftest$ac_exeext'
27851 { (case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_try") 2>&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
27860 ac_cv_search_ffi_call=$ac_res
27862 echo "$as_me: failed program was:" >&5
27863 sed 's/^/| /' conftest.$ac_ext >&5
27868 rm -f core conftest.err conftest.$ac_objext \
27870 if test "${ac_cv_search_ffi_call+set}" = set; then
27874 if test "${ac_cv_search_ffi_call+set}" = set; then
27877 ac_cv_search_ffi_call=no
27879 rm conftest.$ac_ext
27880 LIBS=$ac_func_search_save_LIBS
27882 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27883 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27884 ac_res=$ac_cv_search_ffi_call
27885 if test "$ac_res" != no; then
27886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27888 cat >>confdefs.h <<\_ACEOF
27889 #define HAVE_FFI_CALL 1
27893 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27894 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27899 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27900 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27901 if test "${ac_cv_search_mallinfo+set}" = set; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27904 ac_func_search_save_LIBS=$LIBS
27905 cat >conftest.$ac_ext <<_ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h. */
27912 /* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27922 return mallinfo ();
27927 for ac_lib in '' malloc; do
27928 if test -z "$ac_lib"; then
27929 ac_res="none required"
27932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27934 rm -f conftest.$ac_objext conftest$ac_exeext
27935 if { (ac_try="$ac_link"
27936 case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_link") 2>conftest.er1
27943 grep -v '^ *+' conftest.er1 >conftest.err
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } &&
27948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27949 { (case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954 (eval "$ac_try") 2>&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968 ac_cv_search_mallinfo=$ac_res
27970 echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27976 rm -f core conftest.err conftest.$ac_objext \
27978 if test "${ac_cv_search_mallinfo+set}" = set; then
27982 if test "${ac_cv_search_mallinfo+set}" = set; then
27985 ac_cv_search_mallinfo=no
27987 rm conftest.$ac_ext
27988 LIBS=$ac_func_search_save_LIBS
27990 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27991 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27992 ac_res=$ac_cv_search_mallinfo
27993 if test "$ac_res" != no; then
27994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27996 cat >>confdefs.h <<\_ACEOF
27997 #define HAVE_MALLINFO 1
28003 if test "$ENABLE_THREADS" -eq 1 ; then
28005 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28006 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28007 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28008 echo $ECHO_N "(cached) $ECHO_C" >&6
28010 ac_check_lib_save_LIBS=$LIBS
28011 LIBS="-lpthread $LIBS"
28012 cat >conftest.$ac_ext <<_ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h. */
28019 /* Override any GCC internal prototype to avoid an error.
28020 Use char because int might match the return type of a GCC
28021 builtin and then its argument prototype would still apply. */
28025 char pthread_mutex_init ();
28029 return pthread_mutex_init ();
28034 rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_link") 2>conftest.er1
28043 grep -v '^ *+' conftest.er1 >conftest.err
28045 cat conftest.err >&5
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); } &&
28048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28049 { (case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_try") 2>&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; } &&
28058 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; }; then
28068 ac_cv_lib_pthread_pthread_mutex_init=yes
28070 echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28073 ac_cv_lib_pthread_pthread_mutex_init=no
28076 rm -f core conftest.err conftest.$ac_objext \
28077 conftest$ac_exeext conftest.$ac_ext
28078 LIBS=$ac_check_lib_save_LIBS
28080 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28081 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28082 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28083 cat >>confdefs.h <<_ACEOF
28084 #define HAVE_LIBPTHREAD 1
28087 LIBS="-lpthread $LIBS"
28091 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28092 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28093 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28096 ac_func_search_save_LIBS=$LIBS
28097 cat >conftest.$ac_ext <<_ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28104 /* Override any GCC internal prototype to avoid an error.
28105 Use char because int might match the return type of a GCC
28106 builtin and then its argument prototype would still apply. */
28110 char pthread_mutex_lock ();
28114 return pthread_mutex_lock ();
28119 for ac_lib in '' pthread; do
28120 if test -z "$ac_lib"; then
28121 ac_res="none required"
28124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28126 rm -f conftest.$ac_objext conftest$ac_exeext
28127 if { (ac_try="$ac_link"
28128 case "(($ac_try" in
28129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130 *) ac_try_echo=$ac_try;;
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133 (eval "$ac_link") 2>conftest.er1
28135 grep -v '^ *+' conftest.er1 >conftest.err
28137 cat conftest.err >&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } &&
28140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28141 { (case "(($ac_try" in
28142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143 *) ac_try_echo=$ac_try;;
28145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146 (eval "$ac_try") 2>&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest$ac_exeext'
28151 { (case "(($ac_try" in
28152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153 *) ac_try_echo=$ac_try;;
28155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28156 (eval "$ac_try") 2>&5
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; }; then
28160 ac_cv_search_pthread_mutex_lock=$ac_res
28162 echo "$as_me: failed program was:" >&5
28163 sed 's/^/| /' conftest.$ac_ext >&5
28168 rm -f core conftest.err conftest.$ac_objext \
28170 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28174 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28177 ac_cv_search_pthread_mutex_lock=no
28179 rm conftest.$ac_ext
28180 LIBS=$ac_func_search_save_LIBS
28182 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28183 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28184 ac_res=$ac_cv_search_pthread_mutex_lock
28185 if test "$ac_res" != no; then
28186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28188 cat >>confdefs.h <<\_ACEOF
28189 #define HAVE_PTHREAD_MUTEX_LOCK 1
28194 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28195 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28196 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28199 ac_func_search_save_LIBS=$LIBS
28200 cat >conftest.$ac_ext <<_ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h. */
28207 /* Override any GCC internal prototype to avoid an error.
28208 Use char because int might match the return type of a GCC
28209 builtin and then its argument prototype would still apply. */
28213 char pthread_rwlock_init ();
28217 return pthread_rwlock_init ();
28222 for ac_lib in '' pthread; do
28223 if test -z "$ac_lib"; then
28224 ac_res="none required"
28227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28229 rm -f conftest.$ac_objext conftest$ac_exeext
28230 if { (ac_try="$ac_link"
28231 case "(($ac_try" in
28232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233 *) ac_try_echo=$ac_try;;
28235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236 (eval "$ac_link") 2>conftest.er1
28238 grep -v '^ *+' conftest.er1 >conftest.err
28240 cat conftest.err >&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); } &&
28243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28244 { (case "(($ac_try" in
28245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246 *) ac_try_echo=$ac_try;;
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249 (eval "$ac_try") 2>&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; } &&
28253 { ac_try='test -s conftest$ac_exeext'
28254 { (case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_try") 2>&5
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; }; then
28263 ac_cv_search_pthread_rwlock_init=$ac_res
28265 echo "$as_me: failed program was:" >&5
28266 sed 's/^/| /' conftest.$ac_ext >&5
28271 rm -f core conftest.err conftest.$ac_objext \
28273 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28277 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28280 ac_cv_search_pthread_rwlock_init=no
28282 rm conftest.$ac_ext
28283 LIBS=$ac_func_search_save_LIBS
28285 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28286 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28287 ac_res=$ac_cv_search_pthread_rwlock_init
28288 if test "$ac_res" != no; then
28289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28291 cat >>confdefs.h <<\_ACEOF
28292 #define HAVE_PTHREAD_RWLOCK_INIT 1
28297 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28298 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28299 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28302 ac_func_search_save_LIBS=$LIBS
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28310 /* Override any GCC internal prototype to avoid an error.
28311 Use char because int might match the return type of a GCC
28312 builtin and then its argument prototype would still apply. */
28316 char pthread_getspecific ();
28320 return pthread_getspecific ();
28325 for ac_lib in '' pthread; do
28326 if test -z "$ac_lib"; then
28327 ac_res="none required"
28330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28332 rm -f conftest.$ac_objext conftest$ac_exeext
28333 if { (ac_try="$ac_link"
28334 case "(($ac_try" in
28335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336 *) ac_try_echo=$ac_try;;
28338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28339 (eval "$ac_link") 2>conftest.er1
28341 grep -v '^ *+' conftest.er1 >conftest.err
28343 cat conftest.err >&5
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); } &&
28346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28347 { (case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_try") 2>&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; } &&
28356 { ac_try='test -s conftest$ac_exeext'
28357 { (case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362 (eval "$ac_try") 2>&5
28364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); }; }; then
28366 ac_cv_search_pthread_getspecific=$ac_res
28368 echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28374 rm -f core conftest.err conftest.$ac_objext \
28376 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28380 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28383 ac_cv_search_pthread_getspecific=no
28385 rm conftest.$ac_ext
28386 LIBS=$ac_func_search_save_LIBS
28388 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28389 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28390 ac_res=$ac_cv_search_pthread_getspecific
28391 if test "$ac_res" != no; then
28392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_PTHREAD_GETSPECIFIC 1
28403 # Check whether --with-udis86 was given.
28404 if test "${with_udis86+set}" = set; then
28405 withval=$with_udis86;
28410 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28413 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28414 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28415 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28418 ac_check_lib_save_LIBS=$LIBS
28419 LIBS="-ludis86 $LIBS"
28420 cat >conftest.$ac_ext <<_ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h. */
28427 /* Override any GCC internal prototype to avoid an error.
28428 Use char because int might match the return type of a GCC
28429 builtin and then its argument prototype would still apply. */
28442 rm -f conftest.$ac_objext conftest$ac_exeext
28443 if { (ac_try="$ac_link"
28444 case "(($ac_try" in
28445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28446 *) ac_try_echo=$ac_try;;
28448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28449 (eval "$ac_link") 2>conftest.er1
28451 grep -v '^ *+' conftest.er1 >conftest.err
28453 cat conftest.err >&5
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); } &&
28456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28457 { (case "(($ac_try" in
28458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459 *) ac_try_echo=$ac_try;;
28461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462 (eval "$ac_try") 2>&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest$ac_exeext'
28467 { (case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_try") 2>&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; }; then
28476 ac_cv_lib_udis86_ud_init=yes
28478 echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28481 ac_cv_lib_udis86_ud_init=no
28484 rm -f core conftest.err conftest.$ac_objext \
28485 conftest$ac_exeext conftest.$ac_ext
28486 LIBS=$ac_check_lib_save_LIBS
28488 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28489 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28490 if test $ac_cv_lib_udis86_ud_init = yes; then
28491 cat >>confdefs.h <<_ACEOF
28492 #define HAVE_LIBUDIS86 1
28495 LIBS="-ludis86 $LIBS"
28499 echo "Error! You need to have libudis86 around."
28511 cat >>confdefs.h <<_ACEOF
28512 #define USE_UDIS86 $USE_UDIS86
28517 # Check whether --with-oprofile was given.
28518 if test "${with_oprofile+set}" = set; then
28519 withval=$with_oprofile;
28523 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28524 *) llvm_cv_oppath="${withval}/lib/oprofile"
28525 CPPFLAGS="-I${withval}/include";;
28527 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28528 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28529 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28530 if test "${ac_cv_search_op_open_agent+set}" = set; then
28531 echo $ECHO_N "(cached) $ECHO_C" >&6
28533 ac_func_search_save_LIBS=$LIBS
28534 cat >conftest.$ac_ext <<_ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28541 /* Override any GCC internal prototype to avoid an error.
28542 Use char because int might match the return type of a GCC
28543 builtin and then its argument prototype would still apply. */
28547 char op_open_agent ();
28551 return op_open_agent ();
28556 for ac_lib in '' opagent; do
28557 if test -z "$ac_lib"; then
28558 ac_res="none required"
28561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28563 rm -f conftest.$ac_objext conftest$ac_exeext
28564 if { (ac_try="$ac_link"
28565 case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_link") 2>conftest.er1
28572 grep -v '^ *+' conftest.er1 >conftest.err
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578 { (case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_try") 2>&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
28587 { ac_try='test -s conftest$ac_exeext'
28588 { (case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_try") 2>&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28597 ac_cv_search_op_open_agent=$ac_res
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28605 rm -f core conftest.err conftest.$ac_objext \
28607 if test "${ac_cv_search_op_open_agent+set}" = set; then
28611 if test "${ac_cv_search_op_open_agent+set}" = set; then
28614 ac_cv_search_op_open_agent=no
28616 rm conftest.$ac_ext
28617 LIBS=$ac_func_search_save_LIBS
28619 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28620 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28621 ac_res=$ac_cv_search_op_open_agent
28622 if test "$ac_res" != no; then
28623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28627 echo "Error! You need to have libopagent around."
28632 if test "${ac_cv_header_opagent_h+set}" = set; then
28633 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28634 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28635 if test "${ac_cv_header_opagent_h+set}" = set; then
28636 echo $ECHO_N "(cached) $ECHO_C" >&6
28638 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28639 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28641 # Is the header compilable?
28642 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28643 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28644 cat >conftest.$ac_ext <<_ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h. */
28650 $ac_includes_default
28651 #include <opagent.h>
28653 rm -f conftest.$ac_objext
28654 if { (ac_try="$ac_compile"
28655 case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_compile") 2>conftest.er1
28662 grep -v '^ *+' conftest.er1 >conftest.err
28664 cat conftest.err >&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); } &&
28667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28668 { (case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_try") 2>&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; } &&
28677 { ac_try='test -s conftest.$ac_objext'
28678 { (case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_try") 2>&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
28687 ac_header_compiler=yes
28689 echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28692 ac_header_compiler=no
28695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28697 echo "${ECHO_T}$ac_header_compiler" >&6; }
28699 # Is the header present?
28700 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28701 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28702 cat >conftest.$ac_ext <<_ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28708 #include <opagent.h>
28710 if { (ac_try="$ac_cpp conftest.$ac_ext"
28711 case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28718 grep -v '^ *+' conftest.er1 >conftest.err
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } >/dev/null; then
28723 if test -s conftest.err; then
28724 ac_cpp_err=$ac_c_preproc_warn_flag
28725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28732 if test -z "$ac_cpp_err"; then
28733 ac_header_preproc=yes
28735 echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28738 ac_header_preproc=no
28741 rm -f conftest.err conftest.$ac_ext
28742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28743 echo "${ECHO_T}$ac_header_preproc" >&6; }
28745 # So? What about this header?
28746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28748 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28749 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28750 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28751 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28752 ac_header_preproc=yes
28755 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28756 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28757 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28758 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28760 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28761 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28762 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28763 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28764 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28765 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28766 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28768 ## ----------------------------------- ##
28769 ## Report this to llvmbugs@cs.uiuc.edu ##
28770 ## ----------------------------------- ##
28772 ) | sed "s/^/$as_me: WARNING: /" >&2
28775 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28776 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28777 if test "${ac_cv_header_opagent_h+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28780 ac_cv_header_opagent_h=$ac_header_preproc
28782 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28783 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28786 if test $ac_cv_header_opagent_h = yes; then
28790 echo "Error! You need to have opagent.h around."
28799 llvm_cv_old_LIBS="$LIBS"
28800 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28801 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28802 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28803 if test "${ac_cv_search_op_open_agent+set}" = set; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28806 ac_func_search_save_LIBS=$LIBS
28807 cat >conftest.$ac_ext <<_ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28814 /* Override any GCC internal prototype to avoid an error.
28815 Use char because int might match the return type of a GCC
28816 builtin and then its argument prototype would still apply. */
28820 char op_open_agent ();
28824 return op_open_agent ();
28829 for ac_lib in '' opagent; do
28830 if test -z "$ac_lib"; then
28831 ac_res="none required"
28834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28836 rm -f conftest.$ac_objext conftest$ac_exeext
28837 if { (ac_try="$ac_link"
28838 case "(($ac_try" in
28839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28840 *) ac_try_echo=$ac_try;;
28842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28843 (eval "$ac_link") 2>conftest.er1
28845 grep -v '^ *+' conftest.er1 >conftest.err
28847 cat conftest.err >&5
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); } &&
28850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28851 { (case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_try") 2>&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; } &&
28860 { ac_try='test -s conftest$ac_exeext'
28861 { (case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866 (eval "$ac_try") 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_search_op_open_agent=$ac_res
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28878 rm -f core conftest.err conftest.$ac_objext \
28880 if test "${ac_cv_search_op_open_agent+set}" = set; then
28884 if test "${ac_cv_search_op_open_agent+set}" = set; then
28887 ac_cv_search_op_open_agent=no
28889 rm conftest.$ac_ext
28890 LIBS=$ac_func_search_save_LIBS
28892 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28893 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28894 ac_res=$ac_cv_search_op_open_agent
28895 if test "$ac_res" != no; then
28896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28900 LIBS="$llvm_cv_old_LIBS"
28905 if test "${ac_cv_header_opagent_h+set}" = set; then
28906 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28907 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28908 if test "${ac_cv_header_opagent_h+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28911 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28912 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28914 # Is the header compilable?
28915 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28916 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28917 cat >conftest.$ac_ext <<_ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h. */
28923 $ac_includes_default
28924 #include <opagent.h>
28926 rm -f conftest.$ac_objext
28927 if { (ac_try="$ac_compile"
28928 case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_compile") 2>conftest.er1
28935 grep -v '^ *+' conftest.er1 >conftest.err
28937 cat conftest.err >&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
28940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28941 { (case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946 (eval "$ac_try") 2>&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; } &&
28950 { ac_try='test -s conftest.$ac_objext'
28951 { (case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_try") 2>&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; }; then
28960 ac_header_compiler=yes
28962 echo "$as_me: failed program was:" >&5
28963 sed 's/^/| /' conftest.$ac_ext >&5
28965 ac_header_compiler=no
28968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28970 echo "${ECHO_T}$ac_header_compiler" >&6; }
28972 # Is the header present?
28973 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28974 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28975 cat >conftest.$ac_ext <<_ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h. */
28981 #include <opagent.h>
28983 if { (ac_try="$ac_cpp conftest.$ac_ext"
28984 case "(($ac_try" in
28985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28986 *) ac_try_echo=$ac_try;;
28988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28991 grep -v '^ *+' conftest.er1 >conftest.err
28993 cat conftest.err >&5
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } >/dev/null; then
28996 if test -s conftest.err; then
28997 ac_cpp_err=$ac_c_preproc_warn_flag
28998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29005 if test -z "$ac_cpp_err"; then
29006 ac_header_preproc=yes
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29011 ac_header_preproc=no
29014 rm -f conftest.err conftest.$ac_ext
29015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29016 echo "${ECHO_T}$ac_header_preproc" >&6; }
29018 # So? What about this header?
29019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29021 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29022 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29023 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29024 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29025 ac_header_preproc=yes
29028 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29029 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29031 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29033 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29035 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29037 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29039 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29041 ## ----------------------------------- ##
29042 ## Report this to llvmbugs@cs.uiuc.edu ##
29043 ## ----------------------------------- ##
29045 ) | sed "s/^/$as_me: WARNING: /" >&2
29048 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29049 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29050 if test "${ac_cv_header_opagent_h+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29053 ac_cv_header_opagent_h=$ac_header_preproc
29055 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29056 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29059 if test $ac_cv_header_opagent_h = yes; then
29063 LIBS="$llvm_cv_old_LIBS"
29074 cat >>confdefs.h <<_ACEOF
29075 #define USE_OPROFILE $USE_OPROFILE
29085 ac_header_dirent=no
29086 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29087 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29088 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29089 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29091 echo $ECHO_N "(cached) $ECHO_C" >&6
29093 cat >conftest.$ac_ext <<_ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h. */
29099 #include <sys/types.h>
29111 rm -f conftest.$ac_objext
29112 if { (ac_try="$ac_compile"
29113 case "(($ac_try" in
29114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29115 *) ac_try_echo=$ac_try;;
29117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29118 (eval "$ac_compile") 2>conftest.er1
29120 grep -v '^ *+' conftest.er1 >conftest.err
29122 cat conftest.err >&5
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); } &&
29125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29126 { (case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_try") 2>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; } &&
29135 { ac_try='test -s conftest.$ac_objext'
29136 { (case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_try") 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 eval "$as_ac_Header=yes"
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 eval "$as_ac_Header=no"
29153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29155 ac_res=`eval echo '${'$as_ac_Header'}'`
29156 { echo "$as_me:$LINENO: result: $ac_res" >&5
29157 echo "${ECHO_T}$ac_res" >&6; }
29158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29159 cat >>confdefs.h <<_ACEOF
29160 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29163 ac_header_dirent=$ac_hdr; break
29167 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29168 if test $ac_header_dirent = dirent.h; then
29169 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29170 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29171 if test "${ac_cv_search_opendir+set}" = set; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29174 ac_func_search_save_LIBS=$LIBS
29175 cat >conftest.$ac_ext <<_ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h. */
29182 /* Override any GCC internal prototype to avoid an error.
29183 Use char because int might match the return type of a GCC
29184 builtin and then its argument prototype would still apply. */
29197 for ac_lib in '' dir; do
29198 if test -z "$ac_lib"; then
29199 ac_res="none required"
29202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29204 rm -f conftest.$ac_objext conftest$ac_exeext
29205 if { (ac_try="$ac_link"
29206 case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_link") 2>conftest.er1
29213 grep -v '^ *+' conftest.er1 >conftest.err
29215 cat conftest.err >&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); } &&
29218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29219 { (case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_try") 2>&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest$ac_exeext'
29229 { (case "(($ac_try" in
29230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231 *) ac_try_echo=$ac_try;;
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234 (eval "$ac_try") 2>&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
29238 ac_cv_search_opendir=$ac_res
29240 echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29246 rm -f core conftest.err conftest.$ac_objext \
29248 if test "${ac_cv_search_opendir+set}" = set; then
29252 if test "${ac_cv_search_opendir+set}" = set; then
29255 ac_cv_search_opendir=no
29257 rm conftest.$ac_ext
29258 LIBS=$ac_func_search_save_LIBS
29260 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29261 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29262 ac_res=$ac_cv_search_opendir
29263 if test "$ac_res" != no; then
29264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29269 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29270 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29271 if test "${ac_cv_search_opendir+set}" = set; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29274 ac_func_search_save_LIBS=$LIBS
29275 cat >conftest.$ac_ext <<_ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29282 /* Override any GCC internal prototype to avoid an error.
29283 Use char because int might match the return type of a GCC
29284 builtin and then its argument prototype would still apply. */
29297 for ac_lib in '' x; do
29298 if test -z "$ac_lib"; then
29299 ac_res="none required"
29302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29304 rm -f conftest.$ac_objext conftest$ac_exeext
29305 if { (ac_try="$ac_link"
29306 case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_link") 2>conftest.er1
29313 grep -v '^ *+' conftest.er1 >conftest.err
29315 cat conftest.err >&5
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); } &&
29318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29319 { (case "(($ac_try" in
29320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321 *) ac_try_echo=$ac_try;;
29323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324 (eval "$ac_try") 2>&5
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; } &&
29328 { ac_try='test -s conftest$ac_exeext'
29329 { (case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_try") 2>&5
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; }; then
29338 ac_cv_search_opendir=$ac_res
29340 echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29346 rm -f core conftest.err conftest.$ac_objext \
29348 if test "${ac_cv_search_opendir+set}" = set; then
29352 if test "${ac_cv_search_opendir+set}" = set; then
29355 ac_cv_search_opendir=no
29357 rm conftest.$ac_ext
29358 LIBS=$ac_func_search_save_LIBS
29360 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29361 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29362 ac_res=$ac_cv_search_opendir
29363 if test "$ac_res" != no; then
29364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29370 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29371 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29372 if test "${ac_cv_header_mmap_anon+set}" = set; then
29373 echo $ECHO_N "(cached) $ECHO_C" >&6
29376 ac_cpp='$CPP $CPPFLAGS'
29377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29381 cat >conftest.$ac_ext <<_ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387 #include <sys/mman.h>
29388 #include <unistd.h>
29393 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29398 rm -f conftest.$ac_objext
29399 if { (ac_try="$ac_compile"
29400 case "(($ac_try" in
29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402 *) ac_try_echo=$ac_try;;
29404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405 (eval "$ac_compile") 2>conftest.er1
29407 grep -v '^ *+' conftest.er1 >conftest.err
29409 cat conftest.err >&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); } &&
29412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29413 { (case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_try") 2>&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; } &&
29422 { ac_try='test -s conftest.$ac_objext'
29423 { (case "(($ac_try" in
29424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425 *) ac_try_echo=$ac_try;;
29427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428 (eval "$ac_try") 2>&5
29430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431 (exit $ac_status); }; }; then
29432 ac_cv_header_mmap_anon=yes
29434 echo "$as_me: failed program was:" >&5
29435 sed 's/^/| /' conftest.$ac_ext >&5
29437 ac_cv_header_mmap_anon=no
29440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29442 ac_cpp='$CPP $CPPFLAGS'
29443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29449 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29450 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29451 if test "$ac_cv_header_mmap_anon" = yes; then
29453 cat >>confdefs.h <<\_ACEOF
29454 #define HAVE_MMAP_ANONYMOUS 1
29459 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29460 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29461 if test "${ac_cv_header_stat_broken+set}" = set; then
29462 echo $ECHO_N "(cached) $ECHO_C" >&6
29464 cat >conftest.$ac_ext <<_ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h. */
29470 #include <sys/types.h>
29471 #include <sys/stat.h>
29473 #if defined S_ISBLK && defined S_IFDIR
29474 # if S_ISBLK (S_IFDIR)
29479 #if defined S_ISBLK && defined S_IFCHR
29480 # if S_ISBLK (S_IFCHR)
29485 #if defined S_ISLNK && defined S_IFREG
29486 # if S_ISLNK (S_IFREG)
29491 #if defined S_ISSOCK && defined S_IFREG
29492 # if S_ISSOCK (S_IFREG)
29498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29499 $EGREP "You lose" >/dev/null 2>&1; then
29500 ac_cv_header_stat_broken=yes
29502 ac_cv_header_stat_broken=no
29507 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29508 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29509 if test $ac_cv_header_stat_broken = yes; then
29511 cat >>confdefs.h <<\_ACEOF
29512 #define STAT_MACROS_BROKEN 1
29517 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29519 if test "${ac_cv_header_stdc+set}" = set; then
29520 echo $ECHO_N "(cached) $ECHO_C" >&6
29522 cat >conftest.$ac_ext <<_ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h. */
29528 #include <stdlib.h>
29529 #include <stdarg.h>
29530 #include <string.h>
29541 rm -f conftest.$ac_objext
29542 if { (ac_try="$ac_compile"
29543 case "(($ac_try" in
29544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545 *) ac_try_echo=$ac_try;;
29547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548 (eval "$ac_compile") 2>conftest.er1
29550 grep -v '^ *+' conftest.er1 >conftest.err
29552 cat conftest.err >&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } &&
29555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29556 { (case "(($ac_try" in
29557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558 *) ac_try_echo=$ac_try;;
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561 (eval "$ac_try") 2>&5
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest.$ac_objext'
29566 { (case "(($ac_try" in
29567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29568 *) ac_try_echo=$ac_try;;
29570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29571 (eval "$ac_try") 2>&5
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); }; }; then
29575 ac_cv_header_stdc=yes
29577 echo "$as_me: failed program was:" >&5
29578 sed 's/^/| /' conftest.$ac_ext >&5
29580 ac_cv_header_stdc=no
29583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29585 if test $ac_cv_header_stdc = yes; then
29586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29587 cat >conftest.$ac_ext <<_ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h. */
29593 #include <string.h>
29596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29597 $EGREP "memchr" >/dev/null 2>&1; then
29600 ac_cv_header_stdc=no
29606 if test $ac_cv_header_stdc = yes; then
29607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29608 cat >conftest.$ac_ext <<_ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h. */
29614 #include <stdlib.h>
29617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29618 $EGREP "free" >/dev/null 2>&1; then
29621 ac_cv_header_stdc=no
29627 if test $ac_cv_header_stdc = yes; then
29628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29629 if test "$cross_compiling" = yes; then
29632 cat >conftest.$ac_ext <<_ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h. */
29639 #include <stdlib.h>
29640 #if ((' ' & 0x0FF) == 0x020)
29641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29644 # define ISLOWER(c) \
29645 (('a' <= (c) && (c) <= 'i') \
29646 || ('j' <= (c) && (c) <= 'r') \
29647 || ('s' <= (c) && (c) <= 'z'))
29648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29656 for (i = 0; i < 256; i++)
29657 if (XOR (islower (i), ISLOWER (i))
29658 || toupper (i) != TOUPPER (i))
29663 rm -f conftest$ac_exeext
29664 if { (ac_try="$ac_link"
29665 case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_link") 2>&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29674 { (case "(($ac_try" in
29675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676 *) ac_try_echo=$ac_try;;
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679 (eval "$ac_try") 2>&5
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; }; then
29685 echo "$as_me: program exited with status $ac_status" >&5
29686 echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29689 ( exit $ac_status )
29690 ac_cv_header_stdc=no
29692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29698 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29699 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29700 if test $ac_cv_header_stdc = yes; then
29702 cat >>confdefs.h <<\_ACEOF
29703 #define STDC_HEADERS 1
29708 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29709 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29710 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29711 echo $ECHO_N "(cached) $ECHO_C" >&6
29713 cat >conftest.$ac_ext <<_ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h. */
29719 #include <sys/types.h>
29720 #include <sys/wait.h>
29721 #ifndef WEXITSTATUS
29722 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29725 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29733 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29738 rm -f conftest.$ac_objext
29739 if { (ac_try="$ac_compile"
29740 case "(($ac_try" in
29741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742 *) ac_try_echo=$ac_try;;
29744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29745 (eval "$ac_compile") 2>conftest.er1
29747 grep -v '^ *+' conftest.er1 >conftest.err
29749 cat conftest.err >&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } &&
29752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29753 { (case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_try") 2>&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); }; } &&
29762 { ac_try='test -s conftest.$ac_objext'
29763 { (case "(($ac_try" in
29764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_try") 2>&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; }; then
29772 ac_cv_header_sys_wait_h=yes
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29777 ac_cv_header_sys_wait_h=no
29780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29782 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29783 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29784 if test $ac_cv_header_sys_wait_h = yes; then
29786 cat >>confdefs.h <<\_ACEOF
29787 #define HAVE_SYS_WAIT_H 1
29792 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29793 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29794 if test "${ac_cv_header_time+set}" = set; then
29795 echo $ECHO_N "(cached) $ECHO_C" >&6
29797 cat >conftest.$ac_ext <<_ACEOF
29800 cat confdefs.h >>conftest.$ac_ext
29801 cat >>conftest.$ac_ext <<_ACEOF
29802 /* end confdefs.h. */
29803 #include <sys/types.h>
29804 #include <sys/time.h>
29810 if ((struct tm *) 0)
29816 rm -f conftest.$ac_objext
29817 if { (ac_try="$ac_compile"
29818 case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_compile") 2>conftest.er1
29825 grep -v '^ *+' conftest.er1 >conftest.err
29827 cat conftest.err >&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
29830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29831 { (case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_try") 2>&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; } &&
29840 { ac_try='test -s conftest.$ac_objext'
29841 { (case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_try") 2>&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; }; then
29850 ac_cv_header_time=yes
29852 echo "$as_me: failed program was:" >&5
29853 sed 's/^/| /' conftest.$ac_ext >&5
29855 ac_cv_header_time=no
29858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29860 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29861 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29862 if test $ac_cv_header_time = yes; then
29864 cat >>confdefs.h <<\_ACEOF
29865 #define TIME_WITH_SYS_TIME 1
29877 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29884 echo $ECHO_N "(cached) $ECHO_C" >&6
29886 ac_res=`eval echo '${'$as_ac_Header'}'`
29887 { echo "$as_me:$LINENO: result: $ac_res" >&5
29888 echo "${ECHO_T}$ac_res" >&6; }
29890 # Is the header compilable?
29891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29893 cat >conftest.$ac_ext <<_ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h. */
29899 $ac_includes_default
29900 #include <$ac_header>
29902 rm -f conftest.$ac_objext
29903 if { (ac_try="$ac_compile"
29904 case "(($ac_try" in
29905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906 *) ac_try_echo=$ac_try;;
29908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909 (eval "$ac_compile") 2>conftest.er1
29911 grep -v '^ *+' conftest.er1 >conftest.err
29913 cat conftest.err >&5
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); } &&
29916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29917 { (case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922 (eval "$ac_try") 2>&5
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; } &&
29926 { ac_try='test -s conftest.$ac_objext'
29927 { (case "(($ac_try" in
29928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929 *) ac_try_echo=$ac_try;;
29931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29932 (eval "$ac_try") 2>&5
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; }; then
29936 ac_header_compiler=yes
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29941 ac_header_compiler=no
29944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29946 echo "${ECHO_T}$ac_header_compiler" >&6; }
29948 # Is the header present?
29949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29951 cat >conftest.$ac_ext <<_ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h. */
29957 #include <$ac_header>
29959 if { (ac_try="$ac_cpp conftest.$ac_ext"
29960 case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29967 grep -v '^ *+' conftest.er1 >conftest.err
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } >/dev/null; then
29972 if test -s conftest.err; then
29973 ac_cpp_err=$ac_c_preproc_warn_flag
29974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29981 if test -z "$ac_cpp_err"; then
29982 ac_header_preproc=yes
29984 echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29987 ac_header_preproc=no
29990 rm -f conftest.err conftest.$ac_ext
29991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29992 echo "${ECHO_T}$ac_header_preproc" >&6; }
29994 # So? What about this header?
29995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30001 ac_header_preproc=yes
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30017 ## ----------------------------------- ##
30018 ## Report this to llvmbugs@cs.uiuc.edu ##
30019 ## ----------------------------------- ##
30021 ) | sed "s/^/$as_me: WARNING: /" >&2
30024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30027 echo $ECHO_N "(cached) $ECHO_C" >&6
30029 eval "$as_ac_Header=\$ac_header_preproc"
30031 ac_res=`eval echo '${'$as_ac_Header'}'`
30032 { echo "$as_me:$LINENO: result: $ac_res" >&5
30033 echo "${ECHO_T}$ac_res" >&6; }
30036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30037 cat >>confdefs.h <<_ACEOF
30038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30051 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30060 ac_res=`eval echo '${'$as_ac_Header'}'`
30061 { echo "$as_me:$LINENO: result: $ac_res" >&5
30062 echo "${ECHO_T}$ac_res" >&6; }
30064 # Is the header compilable?
30065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30067 cat >conftest.$ac_ext <<_ACEOF
30070 cat confdefs.h >>conftest.$ac_ext
30071 cat >>conftest.$ac_ext <<_ACEOF
30072 /* end confdefs.h. */
30073 $ac_includes_default
30074 #include <$ac_header>
30076 rm -f conftest.$ac_objext
30077 if { (ac_try="$ac_compile"
30078 case "(($ac_try" in
30079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_compile") 2>conftest.er1
30085 grep -v '^ *+' conftest.er1 >conftest.err
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } &&
30090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30091 { (case "(($ac_try" in
30092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30093 *) ac_try_echo=$ac_try;;
30095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30096 (eval "$ac_try") 2>&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; } &&
30100 { ac_try='test -s conftest.$ac_objext'
30101 { (case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_try") 2>&5
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; }; then
30110 ac_header_compiler=yes
30112 echo "$as_me: failed program was:" >&5
30113 sed 's/^/| /' conftest.$ac_ext >&5
30115 ac_header_compiler=no
30118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30120 echo "${ECHO_T}$ac_header_compiler" >&6; }
30122 # Is the header present?
30123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30125 cat >conftest.$ac_ext <<_ACEOF
30128 cat confdefs.h >>conftest.$ac_ext
30129 cat >>conftest.$ac_ext <<_ACEOF
30130 /* end confdefs.h. */
30131 #include <$ac_header>
30133 if { (ac_try="$ac_cpp conftest.$ac_ext"
30134 case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30141 grep -v '^ *+' conftest.er1 >conftest.err
30143 cat conftest.err >&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); } >/dev/null; then
30146 if test -s conftest.err; then
30147 ac_cpp_err=$ac_c_preproc_warn_flag
30148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30155 if test -z "$ac_cpp_err"; then
30156 ac_header_preproc=yes
30158 echo "$as_me: failed program was:" >&5
30159 sed 's/^/| /' conftest.$ac_ext >&5
30161 ac_header_preproc=no
30164 rm -f conftest.err conftest.$ac_ext
30165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30166 echo "${ECHO_T}$ac_header_preproc" >&6; }
30168 # So? What about this header?
30169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30175 ac_header_preproc=yes
30178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30191 ## ----------------------------------- ##
30192 ## Report this to llvmbugs@cs.uiuc.edu ##
30193 ## ----------------------------------- ##
30195 ) | sed "s/^/$as_me: WARNING: /" >&2
30198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30203 eval "$as_ac_Header=\$ac_header_preproc"
30205 ac_res=`eval echo '${'$as_ac_Header'}'`
30206 { echo "$as_me:$LINENO: result: $ac_res" >&5
30207 echo "${ECHO_T}$ac_res" >&6; }
30210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30211 cat >>confdefs.h <<_ACEOF
30212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30221 for ac_header in utime.h windows.h
30223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228 echo $ECHO_N "(cached) $ECHO_C" >&6
30230 ac_res=`eval echo '${'$as_ac_Header'}'`
30231 { echo "$as_me:$LINENO: result: $ac_res" >&5
30232 echo "${ECHO_T}$ac_res" >&6; }
30234 # Is the header compilable?
30235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30237 cat >conftest.$ac_ext <<_ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30243 $ac_includes_default
30244 #include <$ac_header>
30246 rm -f conftest.$ac_objext
30247 if { (ac_try="$ac_compile"
30248 case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253 (eval "$ac_compile") 2>conftest.er1
30255 grep -v '^ *+' conftest.er1 >conftest.err
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } &&
30260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30261 { (case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_try") 2>&5
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; } &&
30270 { ac_try='test -s conftest.$ac_objext'
30271 { (case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_try") 2>&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }; }; then
30280 ac_header_compiler=yes
30282 echo "$as_me: failed program was:" >&5
30283 sed 's/^/| /' conftest.$ac_ext >&5
30285 ac_header_compiler=no
30288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30290 echo "${ECHO_T}$ac_header_compiler" >&6; }
30292 # Is the header present?
30293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30295 cat >conftest.$ac_ext <<_ACEOF
30298 cat confdefs.h >>conftest.$ac_ext
30299 cat >>conftest.$ac_ext <<_ACEOF
30300 /* end confdefs.h. */
30301 #include <$ac_header>
30303 if { (ac_try="$ac_cpp conftest.$ac_ext"
30304 case "(($ac_try" in
30305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306 *) ac_try_echo=$ac_try;;
30308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30311 grep -v '^ *+' conftest.er1 >conftest.err
30313 cat conftest.err >&5
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); } >/dev/null; then
30316 if test -s conftest.err; then
30317 ac_cpp_err=$ac_c_preproc_warn_flag
30318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30325 if test -z "$ac_cpp_err"; then
30326 ac_header_preproc=yes
30328 echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30331 ac_header_preproc=no
30334 rm -f conftest.err conftest.$ac_ext
30335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30336 echo "${ECHO_T}$ac_header_preproc" >&6; }
30338 # So? What about this header?
30339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30345 ac_header_preproc=yes
30348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30361 ## ----------------------------------- ##
30362 ## Report this to llvmbugs@cs.uiuc.edu ##
30363 ## ----------------------------------- ##
30365 ) | sed "s/^/$as_me: WARNING: /" >&2
30368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30371 echo $ECHO_N "(cached) $ECHO_C" >&6
30373 eval "$as_ac_Header=\$ac_header_preproc"
30375 ac_res=`eval echo '${'$as_ac_Header'}'`
30376 { echo "$as_me:$LINENO: result: $ac_res" >&5
30377 echo "${ECHO_T}$ac_res" >&6; }
30380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30381 cat >>confdefs.h <<_ACEOF
30382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30393 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 ac_res=`eval echo '${'$as_ac_Header'}'`
30403 { echo "$as_me:$LINENO: result: $ac_res" >&5
30404 echo "${ECHO_T}$ac_res" >&6; }
30406 # Is the header compilable?
30407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30409 cat >conftest.$ac_ext <<_ACEOF
30412 cat confdefs.h >>conftest.$ac_ext
30413 cat >>conftest.$ac_ext <<_ACEOF
30414 /* end confdefs.h. */
30415 $ac_includes_default
30416 #include <$ac_header>
30418 rm -f conftest.$ac_objext
30419 if { (ac_try="$ac_compile"
30420 case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_compile") 2>conftest.er1
30427 grep -v '^ *+' conftest.er1 >conftest.err
30429 cat conftest.err >&5
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); } &&
30432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30433 { (case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_try") 2>&5
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); }; } &&
30442 { ac_try='test -s conftest.$ac_objext'
30443 { (case "(($ac_try" in
30444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30445 *) ac_try_echo=$ac_try;;
30447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30448 (eval "$ac_try") 2>&5
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; }; then
30452 ac_header_compiler=yes
30454 echo "$as_me: failed program was:" >&5
30455 sed 's/^/| /' conftest.$ac_ext >&5
30457 ac_header_compiler=no
30460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30462 echo "${ECHO_T}$ac_header_compiler" >&6; }
30464 # Is the header present?
30465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30467 cat >conftest.$ac_ext <<_ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h. */
30473 #include <$ac_header>
30475 if { (ac_try="$ac_cpp conftest.$ac_ext"
30476 case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30483 grep -v '^ *+' conftest.er1 >conftest.err
30485 cat conftest.err >&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } >/dev/null; then
30488 if test -s conftest.err; then
30489 ac_cpp_err=$ac_c_preproc_warn_flag
30490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30497 if test -z "$ac_cpp_err"; then
30498 ac_header_preproc=yes
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 ac_header_preproc=no
30506 rm -f conftest.err conftest.$ac_ext
30507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30508 echo "${ECHO_T}$ac_header_preproc" >&6; }
30510 # So? What about this header?
30511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30517 ac_header_preproc=yes
30520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30533 ## ----------------------------------- ##
30534 ## Report this to llvmbugs@cs.uiuc.edu ##
30535 ## ----------------------------------- ##
30537 ) | sed "s/^/$as_me: WARNING: /" >&2
30540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30543 echo $ECHO_N "(cached) $ECHO_C" >&6
30545 eval "$as_ac_Header=\$ac_header_preproc"
30547 ac_res=`eval echo '${'$as_ac_Header'}'`
30548 { echo "$as_me:$LINENO: result: $ac_res" >&5
30549 echo "${ECHO_T}$ac_res" >&6; }
30552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30553 cat >>confdefs.h <<_ACEOF
30554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30565 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30572 echo $ECHO_N "(cached) $ECHO_C" >&6
30574 ac_res=`eval echo '${'$as_ac_Header'}'`
30575 { echo "$as_me:$LINENO: result: $ac_res" >&5
30576 echo "${ECHO_T}$ac_res" >&6; }
30578 # Is the header compilable?
30579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30581 cat >conftest.$ac_ext <<_ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h. */
30587 $ac_includes_default
30588 #include <$ac_header>
30590 rm -f conftest.$ac_objext
30591 if { (ac_try="$ac_compile"
30592 case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597 (eval "$ac_compile") 2>conftest.er1
30599 grep -v '^ *+' conftest.er1 >conftest.err
30601 cat conftest.err >&5
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603 (exit $ac_status); } &&
30604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30605 { (case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_try") 2>&5
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; } &&
30614 { ac_try='test -s conftest.$ac_objext'
30615 { (case "(($ac_try" in
30616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617 *) ac_try_echo=$ac_try;;
30619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620 (eval "$ac_try") 2>&5
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; }; then
30624 ac_header_compiler=yes
30626 echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30629 ac_header_compiler=no
30632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30634 echo "${ECHO_T}$ac_header_compiler" >&6; }
30636 # Is the header present?
30637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30639 cat >conftest.$ac_ext <<_ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h. */
30645 #include <$ac_header>
30647 if { (ac_try="$ac_cpp conftest.$ac_ext"
30648 case "(($ac_try" in
30649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30650 *) ac_try_echo=$ac_try;;
30652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30655 grep -v '^ *+' conftest.er1 >conftest.err
30657 cat conftest.err >&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); } >/dev/null; then
30660 if test -s conftest.err; then
30661 ac_cpp_err=$ac_c_preproc_warn_flag
30662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30669 if test -z "$ac_cpp_err"; then
30670 ac_header_preproc=yes
30672 echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30675 ac_header_preproc=no
30678 rm -f conftest.err conftest.$ac_ext
30679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30680 echo "${ECHO_T}$ac_header_preproc" >&6; }
30682 # So? What about this header?
30683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30689 ac_header_preproc=yes
30692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30705 ## ----------------------------------- ##
30706 ## Report this to llvmbugs@cs.uiuc.edu ##
30707 ## ----------------------------------- ##
30709 ) | sed "s/^/$as_me: WARNING: /" >&2
30712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30715 echo $ECHO_N "(cached) $ECHO_C" >&6
30717 eval "$as_ac_Header=\$ac_header_preproc"
30719 ac_res=`eval echo '${'$as_ac_Header'}'`
30720 { echo "$as_me:$LINENO: result: $ac_res" >&5
30721 echo "${ECHO_T}$ac_res" >&6; }
30724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30725 cat >>confdefs.h <<_ACEOF
30726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30733 if test "$ENABLE_THREADS" -eq 1 ; then
30735 for ac_header in pthread.h
30737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30744 ac_res=`eval echo '${'$as_ac_Header'}'`
30745 { echo "$as_me:$LINENO: result: $ac_res" >&5
30746 echo "${ECHO_T}$ac_res" >&6; }
30748 # Is the header compilable?
30749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30751 cat >conftest.$ac_ext <<_ACEOF
30754 cat confdefs.h >>conftest.$ac_ext
30755 cat >>conftest.$ac_ext <<_ACEOF
30756 /* end confdefs.h. */
30757 $ac_includes_default
30758 #include <$ac_header>
30760 rm -f conftest.$ac_objext
30761 if { (ac_try="$ac_compile"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_compile") 2>conftest.er1
30769 grep -v '^ *+' conftest.er1 >conftest.err
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } &&
30774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30775 { (case "(($ac_try" in
30776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777 *) ac_try_echo=$ac_try;;
30779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780 (eval "$ac_try") 2>&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; } &&
30784 { ac_try='test -s conftest.$ac_objext'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; }; then
30794 ac_header_compiler=yes
30796 echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30799 ac_header_compiler=no
30802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30804 echo "${ECHO_T}$ac_header_compiler" >&6; }
30806 # Is the header present?
30807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30809 cat >conftest.$ac_ext <<_ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h. */
30815 #include <$ac_header>
30817 if { (ac_try="$ac_cpp conftest.$ac_ext"
30818 case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30825 grep -v '^ *+' conftest.er1 >conftest.err
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } >/dev/null; then
30830 if test -s conftest.err; then
30831 ac_cpp_err=$ac_c_preproc_warn_flag
30832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30839 if test -z "$ac_cpp_err"; then
30840 ac_header_preproc=yes
30842 echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30845 ac_header_preproc=no
30848 rm -f conftest.err conftest.$ac_ext
30849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30850 echo "${ECHO_T}$ac_header_preproc" >&6; }
30852 # So? What about this header?
30853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30859 ac_header_preproc=yes
30862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30875 ## ----------------------------------- ##
30876 ## Report this to llvmbugs@cs.uiuc.edu ##
30877 ## ----------------------------------- ##
30879 ) | sed "s/^/$as_me: WARNING: /" >&2
30882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30885 echo $ECHO_N "(cached) $ECHO_C" >&6
30887 eval "$as_ac_Header=\$ac_header_preproc"
30889 ac_res=`eval echo '${'$as_ac_Header'}'`
30890 { echo "$as_me:$LINENO: result: $ac_res" >&5
30891 echo "${ECHO_T}$ac_res" >&6; }
30894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30895 cat >>confdefs.h <<_ACEOF
30896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30912 if test "$llvm_cv_enable_libffi" = "yes" ; then
30915 for ac_header in ffi.h ffi/ffi.h
30917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30922 echo $ECHO_N "(cached) $ECHO_C" >&6
30924 ac_res=`eval echo '${'$as_ac_Header'}'`
30925 { echo "$as_me:$LINENO: result: $ac_res" >&5
30926 echo "${ECHO_T}$ac_res" >&6; }
30928 # Is the header compilable?
30929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30931 cat >conftest.$ac_ext <<_ACEOF
30934 cat confdefs.h >>conftest.$ac_ext
30935 cat >>conftest.$ac_ext <<_ACEOF
30936 /* end confdefs.h. */
30937 $ac_includes_default
30938 #include <$ac_header>
30940 rm -f conftest.$ac_objext
30941 if { (ac_try="$ac_compile"
30942 case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_compile") 2>conftest.er1
30949 grep -v '^ *+' conftest.er1 >conftest.err
30951 cat conftest.err >&5
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); } &&
30954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30955 { (case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_try") 2>&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; } &&
30964 { ac_try='test -s conftest.$ac_objext'
30965 { (case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_try") 2>&5
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
30974 ac_header_compiler=yes
30976 echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.$ac_ext >&5
30979 ac_header_compiler=no
30982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30984 echo "${ECHO_T}$ac_header_compiler" >&6; }
30986 # Is the header present?
30987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30989 cat >conftest.$ac_ext <<_ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h. */
30995 #include <$ac_header>
30997 if { (ac_try="$ac_cpp conftest.$ac_ext"
30998 case "(($ac_try" in
30999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000 *) ac_try_echo=$ac_try;;
31002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31005 grep -v '^ *+' conftest.er1 >conftest.err
31007 cat conftest.err >&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } >/dev/null; then
31010 if test -s conftest.err; then
31011 ac_cpp_err=$ac_c_preproc_warn_flag
31012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31019 if test -z "$ac_cpp_err"; then
31020 ac_header_preproc=yes
31022 echo "$as_me: failed program was:" >&5
31023 sed 's/^/| /' conftest.$ac_ext >&5
31025 ac_header_preproc=no
31028 rm -f conftest.err conftest.$ac_ext
31029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31030 echo "${ECHO_T}$ac_header_preproc" >&6; }
31032 # So? What about this header?
31033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31039 ac_header_preproc=yes
31042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31055 ## ----------------------------------- ##
31056 ## Report this to llvmbugs@cs.uiuc.edu ##
31057 ## ----------------------------------- ##
31059 ) | sed "s/^/$as_me: WARNING: /" >&2
31062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31067 eval "$as_ac_Header=\$ac_header_preproc"
31069 ac_res=`eval echo '${'$as_ac_Header'}'`
31070 { echo "$as_me:$LINENO: result: $ac_res" >&5
31071 echo "${ECHO_T}$ac_res" >&6; }
31074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31075 cat >>confdefs.h <<_ACEOF
31076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31087 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31088 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31089 if test "${ac_cv_huge_val_sanity+set}" = set; then
31090 echo $ECHO_N "(cached) $ECHO_C" >&6
31094 ac_cpp='$CXXCPP $CPPFLAGS'
31095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31100 if test "$cross_compiling" = yes; then
31101 ac_cv_huge_val_sanity=yes
31103 cat >conftest.$ac_ext <<_ACEOF
31106 cat confdefs.h >>conftest.$ac_ext
31107 cat >>conftest.$ac_ext <<_ACEOF
31108 /* end confdefs.h. */
31113 double x = HUGE_VAL; return x != x;
31118 rm -f conftest$ac_exeext
31119 if { (ac_try="$ac_link"
31120 case "(($ac_try" in
31121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122 *) ac_try_echo=$ac_try;;
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125 (eval "$ac_link") 2>&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31129 { (case "(($ac_try" in
31130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131 *) ac_try_echo=$ac_try;;
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134 (eval "$ac_try") 2>&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; }; then
31138 ac_cv_huge_val_sanity=yes
31140 echo "$as_me: program exited with status $ac_status" >&5
31141 echo "$as_me: failed program was:" >&5
31142 sed 's/^/| /' conftest.$ac_ext >&5
31144 ( exit $ac_status )
31145 ac_cv_huge_val_sanity=no
31147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31152 ac_cpp='$CPP $CPPFLAGS'
31153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31159 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31160 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31161 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31164 { echo "$as_me:$LINENO: checking for pid_t" >&5
31165 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31166 if test "${ac_cv_type_pid_t+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31169 cat >conftest.$ac_ext <<_ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h. */
31175 $ac_includes_default
31176 typedef pid_t ac__type_new_;
31180 if ((ac__type_new_ *) 0)
31182 if (sizeof (ac__type_new_))
31188 rm -f conftest.$ac_objext
31189 if { (ac_try="$ac_compile"
31190 case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_compile") 2>conftest.er1
31197 grep -v '^ *+' conftest.er1 >conftest.err
31199 cat conftest.err >&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } &&
31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31203 { (case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_try") 2>&5
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; } &&
31212 { ac_try='test -s conftest.$ac_objext'
31213 { (case "(($ac_try" in
31214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215 *) ac_try_echo=$ac_try;;
31217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218 (eval "$ac_try") 2>&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; }; then
31222 ac_cv_type_pid_t=yes
31224 echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31227 ac_cv_type_pid_t=no
31230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31232 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31233 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31234 if test $ac_cv_type_pid_t = yes; then
31238 cat >>confdefs.h <<_ACEOF
31244 { echo "$as_me:$LINENO: checking for size_t" >&5
31245 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31246 if test "${ac_cv_type_size_t+set}" = set; then
31247 echo $ECHO_N "(cached) $ECHO_C" >&6
31249 cat >conftest.$ac_ext <<_ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h. */
31255 $ac_includes_default
31256 typedef size_t ac__type_new_;
31260 if ((ac__type_new_ *) 0)
31262 if (sizeof (ac__type_new_))
31268 rm -f conftest.$ac_objext
31269 if { (ac_try="$ac_compile"
31270 case "(($ac_try" in
31271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31272 *) ac_try_echo=$ac_try;;
31274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31275 (eval "$ac_compile") 2>conftest.er1
31277 grep -v '^ *+' conftest.er1 >conftest.err
31279 cat conftest.err >&5
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); } &&
31282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31283 { (case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_try") 2>&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); }; } &&
31292 { ac_try='test -s conftest.$ac_objext'
31293 { (case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_try") 2>&5
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
31302 ac_cv_type_size_t=yes
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31307 ac_cv_type_size_t=no
31310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31312 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31313 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31314 if test $ac_cv_type_size_t = yes; then
31318 cat >>confdefs.h <<_ACEOF
31319 #define size_t unsigned int
31324 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31325 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31326 if test "${ac_cv_type_signal+set}" = set; then
31327 echo $ECHO_N "(cached) $ECHO_C" >&6
31329 cat >conftest.$ac_ext <<_ACEOF
31332 cat confdefs.h >>conftest.$ac_ext
31333 cat >>conftest.$ac_ext <<_ACEOF
31334 /* end confdefs.h. */
31335 #include <sys/types.h>
31336 #include <signal.h>
31341 return *(signal (0, 0)) (0) == 1;
31346 rm -f conftest.$ac_objext
31347 if { (ac_try="$ac_compile"
31348 case "(($ac_try" in
31349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350 *) ac_try_echo=$ac_try;;
31352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353 (eval "$ac_compile") 2>conftest.er1
31355 grep -v '^ *+' conftest.er1 >conftest.err
31357 cat conftest.err >&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); } &&
31360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31361 { (case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_try") 2>&5
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); }; } &&
31370 { ac_try='test -s conftest.$ac_objext'
31371 { (case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_try") 2>&5
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); }; }; then
31380 ac_cv_type_signal=int
31382 echo "$as_me: failed program was:" >&5
31383 sed 's/^/| /' conftest.$ac_ext >&5
31385 ac_cv_type_signal=void
31388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31390 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31391 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31393 cat >>confdefs.h <<_ACEOF
31394 #define RETSIGTYPE $ac_cv_type_signal
31398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31400 if test "${ac_cv_struct_tm+set}" = set; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31403 cat >conftest.$ac_ext <<_ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h. */
31409 #include <sys/types.h>
31415 struct tm *tp; tp->tm_sec;
31420 rm -f conftest.$ac_objext
31421 if { (ac_try="$ac_compile"
31422 case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427 (eval "$ac_compile") 2>conftest.er1
31429 grep -v '^ *+' conftest.er1 >conftest.err
31431 cat conftest.err >&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } &&
31434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31435 { (case "(($ac_try" in
31436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437 *) ac_try_echo=$ac_try;;
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440 (eval "$ac_try") 2>&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); }; } &&
31444 { ac_try='test -s conftest.$ac_objext'
31445 { (case "(($ac_try" in
31446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_try") 2>&5
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; }; then
31454 ac_cv_struct_tm=time.h
31456 echo "$as_me: failed program was:" >&5
31457 sed 's/^/| /' conftest.$ac_ext >&5
31459 ac_cv_struct_tm=sys/time.h
31462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31464 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31465 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31466 if test $ac_cv_struct_tm = sys/time.h; then
31468 cat >>confdefs.h <<\_ACEOF
31469 #define TM_IN_SYS_TIME 1
31474 { echo "$as_me:$LINENO: checking for int64_t" >&5
31475 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31476 if test "${ac_cv_type_int64_t+set}" = set; then
31477 echo $ECHO_N "(cached) $ECHO_C" >&6
31479 cat >conftest.$ac_ext <<_ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h. */
31485 $ac_includes_default
31486 typedef int64_t ac__type_new_;
31490 if ((ac__type_new_ *) 0)
31492 if (sizeof (ac__type_new_))
31498 rm -f conftest.$ac_objext
31499 if { (ac_try="$ac_compile"
31500 case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_compile") 2>conftest.er1
31507 grep -v '^ *+' conftest.er1 >conftest.err
31509 cat conftest.err >&5
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); } &&
31512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31513 { (case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_try") 2>&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); }; } &&
31522 { ac_try='test -s conftest.$ac_objext'
31523 { (case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_try") 2>&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); }; }; then
31532 ac_cv_type_int64_t=yes
31534 echo "$as_me: failed program was:" >&5
31535 sed 's/^/| /' conftest.$ac_ext >&5
31537 ac_cv_type_int64_t=no
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31542 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31544 if test $ac_cv_type_int64_t = yes; then
31546 cat >>confdefs.h <<_ACEOF
31547 #define HAVE_INT64_T 1
31552 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31553 echo "$as_me: error: Type int64_t required but not found" >&2;}
31554 { (exit 1); exit 1; }; }
31557 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31559 if test "${ac_cv_type_uint64_t+set}" = set; then
31560 echo $ECHO_N "(cached) $ECHO_C" >&6
31562 cat >conftest.$ac_ext <<_ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h. */
31568 $ac_includes_default
31569 typedef uint64_t ac__type_new_;
31573 if ((ac__type_new_ *) 0)
31575 if (sizeof (ac__type_new_))
31581 rm -f conftest.$ac_objext
31582 if { (ac_try="$ac_compile"
31583 case "(($ac_try" in
31584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585 *) ac_try_echo=$ac_try;;
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588 (eval "$ac_compile") 2>conftest.er1
31590 grep -v '^ *+' conftest.er1 >conftest.err
31592 cat conftest.err >&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } &&
31595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; } &&
31605 { ac_try='test -s conftest.$ac_objext'
31606 { (case "(($ac_try" in
31607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608 *) ac_try_echo=$ac_try;;
31610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611 (eval "$ac_try") 2>&5
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; }; then
31615 ac_cv_type_uint64_t=yes
31617 echo "$as_me: failed program was:" >&5
31618 sed 's/^/| /' conftest.$ac_ext >&5
31620 ac_cv_type_uint64_t=no
31623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31625 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31626 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31627 if test $ac_cv_type_uint64_t = yes; then
31629 cat >>confdefs.h <<_ACEOF
31630 #define HAVE_UINT64_T 1
31635 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31636 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31637 if test "${ac_cv_type_u_int64_t+set}" = set; then
31638 echo $ECHO_N "(cached) $ECHO_C" >&6
31640 cat >conftest.$ac_ext <<_ACEOF
31643 cat confdefs.h >>conftest.$ac_ext
31644 cat >>conftest.$ac_ext <<_ACEOF
31645 /* end confdefs.h. */
31646 $ac_includes_default
31647 typedef u_int64_t ac__type_new_;
31651 if ((ac__type_new_ *) 0)
31653 if (sizeof (ac__type_new_))
31659 rm -f conftest.$ac_objext
31660 if { (ac_try="$ac_compile"
31661 case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_compile") 2>conftest.er1
31668 grep -v '^ *+' conftest.er1 >conftest.err
31670 cat conftest.err >&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); } &&
31673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31674 { (case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_try") 2>&5
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); }; } &&
31683 { ac_try='test -s conftest.$ac_objext'
31684 { (case "(($ac_try" in
31685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_try") 2>&5
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); }; }; then
31693 ac_cv_type_u_int64_t=yes
31695 echo "$as_me: failed program was:" >&5
31696 sed 's/^/| /' conftest.$ac_ext >&5
31698 ac_cv_type_u_int64_t=no
31701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31703 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31705 if test $ac_cv_type_u_int64_t = yes; then
31707 cat >>confdefs.h <<_ACEOF
31708 #define HAVE_U_INT64_T 1
31713 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31714 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31715 { (exit 1); exit 1; }; }
31729 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31735 echo $ECHO_N "(cached) $ECHO_C" >&6
31737 cat >conftest.$ac_ext <<_ACEOF
31740 cat confdefs.h >>conftest.$ac_ext
31741 cat >>conftest.$ac_ext <<_ACEOF
31742 /* end confdefs.h. */
31743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31745 #define $ac_func innocuous_$ac_func
31747 /* System header to define __stub macros and hopefully few prototypes,
31748 which can conflict with char $ac_func (); below.
31749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31750 <limits.h> exists even on freestanding compilers. */
31753 # include <limits.h>
31755 # include <assert.h>
31760 /* Override any GCC internal prototype to avoid an error.
31761 Use char because int might match the return type of a GCC
31762 builtin and then its argument prototype would still apply. */
31767 /* The GNU C library defines this for functions which it implements
31768 to always fail with ENOSYS. Some functions are actually named
31769 something starting with __ and the normal name is an alias. */
31770 #if defined __stub_$ac_func || defined __stub___$ac_func
31777 return $ac_func ();
31782 rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (ac_try="$ac_link"
31784 case "(($ac_try" in
31785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31786 *) ac_try_echo=$ac_try;;
31788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31789 (eval "$ac_link") 2>conftest.er1
31791 grep -v '^ *+' conftest.er1 >conftest.err
31793 cat conftest.err >&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); } &&
31796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31797 { (case "(($ac_try" in
31798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799 *) ac_try_echo=$ac_try;;
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802 (eval "$ac_try") 2>&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; } &&
31806 { ac_try='test -s conftest$ac_exeext'
31807 { (case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_try") 2>&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; }; then
31816 eval "$as_ac_var=yes"
31818 echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31821 eval "$as_ac_var=no"
31824 rm -f core conftest.err conftest.$ac_objext \
31825 conftest$ac_exeext conftest.$ac_ext
31827 ac_res=`eval echo '${'$as_ac_var'}'`
31828 { echo "$as_me:$LINENO: result: $ac_res" >&5
31829 echo "${ECHO_T}$ac_res" >&6; }
31830 if test `eval echo '${'$as_ac_var'}'` = yes; then
31831 cat >>confdefs.h <<_ACEOF
31832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31842 for ac_func in powf fmodf strtof round
31844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31850 cat >conftest.$ac_ext <<_ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h. */
31856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31858 #define $ac_func innocuous_$ac_func
31860 /* System header to define __stub macros and hopefully few prototypes,
31861 which can conflict with char $ac_func (); below.
31862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31863 <limits.h> exists even on freestanding compilers. */
31866 # include <limits.h>
31868 # include <assert.h>
31873 /* Override any GCC internal prototype to avoid an error.
31874 Use char because int might match the return type of a GCC
31875 builtin and then its argument prototype would still apply. */
31880 /* The GNU C library defines this for functions which it implements
31881 to always fail with ENOSYS. Some functions are actually named
31882 something starting with __ and the normal name is an alias. */
31883 #if defined __stub_$ac_func || defined __stub___$ac_func
31890 return $ac_func ();
31895 rm -f conftest.$ac_objext conftest$ac_exeext
31896 if { (ac_try="$ac_link"
31897 case "(($ac_try" in
31898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899 *) ac_try_echo=$ac_try;;
31901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902 (eval "$ac_link") 2>conftest.er1
31904 grep -v '^ *+' conftest.er1 >conftest.err
31906 cat conftest.err >&5
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); } &&
31909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31910 { (case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_try") 2>&5
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; } &&
31919 { ac_try='test -s conftest$ac_exeext'
31920 { (case "(($ac_try" in
31921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922 *) ac_try_echo=$ac_try;;
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925 (eval "$ac_try") 2>&5
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); }; }; then
31929 eval "$as_ac_var=yes"
31931 echo "$as_me: failed program was:" >&5
31932 sed 's/^/| /' conftest.$ac_ext >&5
31934 eval "$as_ac_var=no"
31937 rm -f core conftest.err conftest.$ac_objext \
31938 conftest$ac_exeext conftest.$ac_ext
31940 ac_res=`eval echo '${'$as_ac_var'}'`
31941 { echo "$as_me:$LINENO: result: $ac_res" >&5
31942 echo "${ECHO_T}$ac_res" >&6; }
31943 if test `eval echo '${'$as_ac_var'}'` = yes; then
31944 cat >>confdefs.h <<_ACEOF
31945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31956 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31962 echo $ECHO_N "(cached) $ECHO_C" >&6
31964 cat >conftest.$ac_ext <<_ACEOF
31967 cat confdefs.h >>conftest.$ac_ext
31968 cat >>conftest.$ac_ext <<_ACEOF
31969 /* end confdefs.h. */
31970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31972 #define $ac_func innocuous_$ac_func
31974 /* System header to define __stub macros and hopefully few prototypes,
31975 which can conflict with char $ac_func (); below.
31976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31977 <limits.h> exists even on freestanding compilers. */
31980 # include <limits.h>
31982 # include <assert.h>
31987 /* Override any GCC internal prototype to avoid an error.
31988 Use char because int might match the return type of a GCC
31989 builtin and then its argument prototype would still apply. */
31994 /* The GNU C library defines this for functions which it implements
31995 to always fail with ENOSYS. Some functions are actually named
31996 something starting with __ and the normal name is an alias. */
31997 #if defined __stub_$ac_func || defined __stub___$ac_func
32004 return $ac_func ();
32009 rm -f conftest.$ac_objext conftest$ac_exeext
32010 if { (ac_try="$ac_link"
32011 case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_link") 2>conftest.er1
32018 grep -v '^ *+' conftest.er1 >conftest.err
32020 cat conftest.err >&5
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); } &&
32023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest$ac_exeext'
32034 { (case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_try") 2>&5
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
32043 eval "$as_ac_var=yes"
32045 echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.$ac_ext >&5
32048 eval "$as_ac_var=no"
32051 rm -f core conftest.err conftest.$ac_objext \
32052 conftest$ac_exeext conftest.$ac_ext
32054 ac_res=`eval echo '${'$as_ac_var'}'`
32055 { echo "$as_me:$LINENO: result: $ac_res" >&5
32056 echo "${ECHO_T}$ac_res" >&6; }
32057 if test `eval echo '${'$as_ac_var'}'` = yes; then
32058 cat >>confdefs.h <<_ACEOF
32059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32068 for ac_func in isatty mkdtemp mkstemp
32070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32074 echo $ECHO_N "(cached) $ECHO_C" >&6
32076 cat >conftest.$ac_ext <<_ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h. */
32082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32084 #define $ac_func innocuous_$ac_func
32086 /* System header to define __stub macros and hopefully few prototypes,
32087 which can conflict with char $ac_func (); below.
32088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32089 <limits.h> exists even on freestanding compilers. */
32092 # include <limits.h>
32094 # include <assert.h>
32099 /* Override any GCC internal prototype to avoid an error.
32100 Use char because int might match the return type of a GCC
32101 builtin and then its argument prototype would still apply. */
32106 /* The GNU C library defines this for functions which it implements
32107 to always fail with ENOSYS. Some functions are actually named
32108 something starting with __ and the normal name is an alias. */
32109 #if defined __stub_$ac_func || defined __stub___$ac_func
32116 return $ac_func ();
32121 rm -f conftest.$ac_objext conftest$ac_exeext
32122 if { (ac_try="$ac_link"
32123 case "(($ac_try" in
32124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125 *) ac_try_echo=$ac_try;;
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128 (eval "$ac_link") 2>conftest.er1
32130 grep -v '^ *+' conftest.er1 >conftest.err
32132 cat conftest.err >&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); } &&
32135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32136 { (case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_try") 2>&5
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); }; } &&
32145 { ac_try='test -s conftest$ac_exeext'
32146 { (case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_try") 2>&5
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); }; }; then
32155 eval "$as_ac_var=yes"
32157 echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32160 eval "$as_ac_var=no"
32163 rm -f core conftest.err conftest.$ac_objext \
32164 conftest$ac_exeext conftest.$ac_ext
32166 ac_res=`eval echo '${'$as_ac_var'}'`
32167 { echo "$as_me:$LINENO: result: $ac_res" >&5
32168 echo "${ECHO_T}$ac_res" >&6; }
32169 if test `eval echo '${'$as_ac_var'}'` = yes; then
32170 cat >>confdefs.h <<_ACEOF
32171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32182 for ac_func in mktemp realpath sbrk setrlimit strdup
32184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32190 cat >conftest.$ac_ext <<_ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h. */
32196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32198 #define $ac_func innocuous_$ac_func
32200 /* System header to define __stub macros and hopefully few prototypes,
32201 which can conflict with char $ac_func (); below.
32202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32203 <limits.h> exists even on freestanding compilers. */
32206 # include <limits.h>
32208 # include <assert.h>
32213 /* Override any GCC internal prototype to avoid an error.
32214 Use char because int might match the return type of a GCC
32215 builtin and then its argument prototype would still apply. */
32220 /* The GNU C library defines this for functions which it implements
32221 to always fail with ENOSYS. Some functions are actually named
32222 something starting with __ and the normal name is an alias. */
32223 #if defined __stub_$ac_func || defined __stub___$ac_func
32230 return $ac_func ();
32235 rm -f conftest.$ac_objext conftest$ac_exeext
32236 if { (ac_try="$ac_link"
32237 case "(($ac_try" in
32238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32239 *) ac_try_echo=$ac_try;;
32241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32242 (eval "$ac_link") 2>conftest.er1
32244 grep -v '^ *+' conftest.er1 >conftest.err
32246 cat conftest.err >&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } &&
32249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32250 { (case "(($ac_try" in
32251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252 *) ac_try_echo=$ac_try;;
32254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255 (eval "$ac_try") 2>&5
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); }; } &&
32259 { ac_try='test -s conftest$ac_exeext'
32260 { (case "(($ac_try" in
32261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32262 *) ac_try_echo=$ac_try;;
32264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32265 (eval "$ac_try") 2>&5
32267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); }; }; then
32269 eval "$as_ac_var=yes"
32271 echo "$as_me: failed program was:" >&5
32272 sed 's/^/| /' conftest.$ac_ext >&5
32274 eval "$as_ac_var=no"
32277 rm -f core conftest.err conftest.$ac_objext \
32278 conftest$ac_exeext conftest.$ac_ext
32280 ac_res=`eval echo '${'$as_ac_var'}'`
32281 { echo "$as_me:$LINENO: result: $ac_res" >&5
32282 echo "${ECHO_T}$ac_res" >&6; }
32283 if test `eval echo '${'$as_ac_var'}'` = yes; then
32284 cat >>confdefs.h <<_ACEOF
32285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32294 for ac_func in strerror strerror_r strerror_s
32296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 cat >conftest.$ac_ext <<_ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h. */
32308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32310 #define $ac_func innocuous_$ac_func
32312 /* System header to define __stub macros and hopefully few prototypes,
32313 which can conflict with char $ac_func (); below.
32314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32315 <limits.h> exists even on freestanding compilers. */
32318 # include <limits.h>
32320 # include <assert.h>
32325 /* Override any GCC internal prototype to avoid an error.
32326 Use char because int might match the return type of a GCC
32327 builtin and then its argument prototype would still apply. */
32332 /* The GNU C library defines this for functions which it implements
32333 to always fail with ENOSYS. Some functions are actually named
32334 something starting with __ and the normal name is an alias. */
32335 #if defined __stub_$ac_func || defined __stub___$ac_func
32342 return $ac_func ();
32347 rm -f conftest.$ac_objext conftest$ac_exeext
32348 if { (ac_try="$ac_link"
32349 case "(($ac_try" in
32350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351 *) ac_try_echo=$ac_try;;
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354 (eval "$ac_link") 2>conftest.er1
32356 grep -v '^ *+' conftest.er1 >conftest.err
32358 cat conftest.err >&5
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); } &&
32361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32362 { (case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367 (eval "$ac_try") 2>&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); }; } &&
32371 { ac_try='test -s conftest$ac_exeext'
32372 { (case "(($ac_try" in
32373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374 *) ac_try_echo=$ac_try;;
32376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377 (eval "$ac_try") 2>&5
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; }; then
32381 eval "$as_ac_var=yes"
32383 echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32386 eval "$as_ac_var=no"
32389 rm -f core conftest.err conftest.$ac_objext \
32390 conftest$ac_exeext conftest.$ac_ext
32392 ac_res=`eval echo '${'$as_ac_var'}'`
32393 { echo "$as_me:$LINENO: result: $ac_res" >&5
32394 echo "${ECHO_T}$ac_res" >&6; }
32395 if test `eval echo '${'$as_ac_var'}'` = yes; then
32396 cat >>confdefs.h <<_ACEOF
32397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32407 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32413 echo $ECHO_N "(cached) $ECHO_C" >&6
32415 cat >conftest.$ac_ext <<_ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32423 #define $ac_func innocuous_$ac_func
32425 /* System header to define __stub macros and hopefully few prototypes,
32426 which can conflict with char $ac_func (); below.
32427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32428 <limits.h> exists even on freestanding compilers. */
32431 # include <limits.h>
32433 # include <assert.h>
32438 /* Override any GCC internal prototype to avoid an error.
32439 Use char because int might match the return type of a GCC
32440 builtin and then its argument prototype would still apply. */
32445 /* The GNU C library defines this for functions which it implements
32446 to always fail with ENOSYS. Some functions are actually named
32447 something starting with __ and the normal name is an alias. */
32448 #if defined __stub_$ac_func || defined __stub___$ac_func
32455 return $ac_func ();
32460 rm -f conftest.$ac_objext conftest$ac_exeext
32461 if { (ac_try="$ac_link"
32462 case "(($ac_try" in
32463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32464 *) ac_try_echo=$ac_try;;
32466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32467 (eval "$ac_link") 2>conftest.er1
32469 grep -v '^ *+' conftest.er1 >conftest.err
32471 cat conftest.err >&5
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); } &&
32474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32475 { (case "(($ac_try" in
32476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477 *) ac_try_echo=$ac_try;;
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480 (eval "$ac_try") 2>&5
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); }; } &&
32484 { ac_try='test -s conftest$ac_exeext'
32485 { (case "(($ac_try" in
32486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487 *) ac_try_echo=$ac_try;;
32489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32490 (eval "$ac_try") 2>&5
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); }; }; then
32494 eval "$as_ac_var=yes"
32496 echo "$as_me: failed program was:" >&5
32497 sed 's/^/| /' conftest.$ac_ext >&5
32499 eval "$as_ac_var=no"
32502 rm -f core conftest.err conftest.$ac_objext \
32503 conftest$ac_exeext conftest.$ac_ext
32505 ac_res=`eval echo '${'$as_ac_var'}'`
32506 { echo "$as_me:$LINENO: result: $ac_res" >&5
32507 echo "${ECHO_T}$ac_res" >&6; }
32508 if test `eval echo '${'$as_ac_var'}'` = yes; then
32509 cat >>confdefs.h <<_ACEOF
32510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32520 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32526 echo $ECHO_N "(cached) $ECHO_C" >&6
32528 cat >conftest.$ac_ext <<_ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h. */
32534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32536 #define $ac_func innocuous_$ac_func
32538 /* System header to define __stub macros and hopefully few prototypes,
32539 which can conflict with char $ac_func (); below.
32540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32541 <limits.h> exists even on freestanding compilers. */
32544 # include <limits.h>
32546 # include <assert.h>
32551 /* Override any GCC internal prototype to avoid an error.
32552 Use char because int might match the return type of a GCC
32553 builtin and then its argument prototype would still apply. */
32558 /* The GNU C library defines this for functions which it implements
32559 to always fail with ENOSYS. Some functions are actually named
32560 something starting with __ and the normal name is an alias. */
32561 #if defined __stub_$ac_func || defined __stub___$ac_func
32568 return $ac_func ();
32573 rm -f conftest.$ac_objext conftest$ac_exeext
32574 if { (ac_try="$ac_link"
32575 case "(($ac_try" in
32576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577 *) ac_try_echo=$ac_try;;
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580 (eval "$ac_link") 2>conftest.er1
32582 grep -v '^ *+' conftest.er1 >conftest.err
32584 cat conftest.err >&5
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } &&
32587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32588 { (case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_try") 2>&5
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest$ac_exeext'
32598 { (case "(($ac_try" in
32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600 *) ac_try_echo=$ac_try;;
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603 (eval "$ac_try") 2>&5
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
32607 eval "$as_ac_var=yes"
32609 echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32612 eval "$as_ac_var=no"
32615 rm -f core conftest.err conftest.$ac_objext \
32616 conftest$ac_exeext conftest.$ac_ext
32618 ac_res=`eval echo '${'$as_ac_var'}'`
32619 { echo "$as_me:$LINENO: result: $ac_res" >&5
32620 echo "${ECHO_T}$ac_res" >&6; }
32621 if test `eval echo '${'$as_ac_var'}'` = yes; then
32622 cat >>confdefs.h <<_ACEOF
32623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32629 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32630 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32631 if test "${llvm_cv_c_printf_a+set}" = set; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32635 ac_cpp='$CPP $CPPFLAGS'
32636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32640 if test "$cross_compiling" = yes; then
32641 llvmac_cv_c_printf_a=no
32643 cat >conftest.$ac_ext <<_ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32652 #include <stdlib.h>
32658 volatile double A, B;
32662 sprintf(Buffer, "%a", A);
32666 if (A != 0x1.999999999999ap-4)
32673 rm -f conftest$ac_exeext
32674 if { (ac_try="$ac_link"
32675 case "(($ac_try" in
32676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677 *) ac_try_echo=$ac_try;;
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680 (eval "$ac_link") 2>&5
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32684 { (case "(($ac_try" in
32685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686 *) ac_try_echo=$ac_try;;
32688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689 (eval "$ac_try") 2>&5
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
32693 llvm_cv_c_printf_a=yes
32695 echo "$as_me: program exited with status $ac_status" >&5
32696 echo "$as_me: failed program was:" >&5
32697 sed 's/^/| /' conftest.$ac_ext >&5
32699 ( exit $ac_status )
32700 llvmac_cv_c_printf_a=no
32702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32707 ac_cpp='$CPP $CPPFLAGS'
32708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32713 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32714 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32715 if test "$llvm_cv_c_printf_a" = "yes"; then
32717 cat >>confdefs.h <<\_ACEOF
32718 #define HAVE_PRINTF_A 1
32723 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32724 # for constant arguments. Useless!
32725 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32726 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32727 if test "${ac_cv_working_alloca_h+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32730 cat >conftest.$ac_ext <<_ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h. */
32736 #include <alloca.h>
32740 char *p = (char *) alloca (2 * sizeof (int));
32746 rm -f conftest.$ac_objext conftest$ac_exeext
32747 if { (ac_try="$ac_link"
32748 case "(($ac_try" in
32749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750 *) ac_try_echo=$ac_try;;
32752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753 (eval "$ac_link") 2>conftest.er1
32755 grep -v '^ *+' conftest.er1 >conftest.err
32757 cat conftest.err >&5
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); } &&
32760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32761 { (case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_try") 2>&5
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; } &&
32770 { ac_try='test -s conftest$ac_exeext'
32771 { (case "(($ac_try" in
32772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773 *) ac_try_echo=$ac_try;;
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776 (eval "$ac_try") 2>&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; }; then
32780 ac_cv_working_alloca_h=yes
32782 echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32785 ac_cv_working_alloca_h=no
32788 rm -f core conftest.err conftest.$ac_objext \
32789 conftest$ac_exeext conftest.$ac_ext
32791 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32792 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32793 if test $ac_cv_working_alloca_h = yes; then
32795 cat >>confdefs.h <<\_ACEOF
32796 #define HAVE_ALLOCA_H 1
32801 { echo "$as_me:$LINENO: checking for alloca" >&5
32802 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32803 if test "${ac_cv_func_alloca_works+set}" = set; then
32804 echo $ECHO_N "(cached) $ECHO_C" >&6
32806 cat >conftest.$ac_ext <<_ACEOF
32809 cat confdefs.h >>conftest.$ac_ext
32810 cat >>conftest.$ac_ext <<_ACEOF
32811 /* end confdefs.h. */
32813 # define alloca __builtin_alloca
32816 # include <malloc.h>
32817 # define alloca _alloca
32820 # include <alloca.h>
32825 # ifndef alloca /* predefined by HP cc +Olibcalls */
32836 char *p = (char *) alloca (1);
32842 rm -f conftest.$ac_objext conftest$ac_exeext
32843 if { (ac_try="$ac_link"
32844 case "(($ac_try" in
32845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846 *) ac_try_echo=$ac_try;;
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849 (eval "$ac_link") 2>conftest.er1
32851 grep -v '^ *+' conftest.er1 >conftest.err
32853 cat conftest.err >&5
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); } &&
32856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32857 { (case "(($ac_try" in
32858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859 *) ac_try_echo=$ac_try;;
32861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862 (eval "$ac_try") 2>&5
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; } &&
32866 { ac_try='test -s conftest$ac_exeext'
32867 { (case "(($ac_try" in
32868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32869 *) ac_try_echo=$ac_try;;
32871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32872 (eval "$ac_try") 2>&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; }; then
32876 ac_cv_func_alloca_works=yes
32878 echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32881 ac_cv_func_alloca_works=no
32884 rm -f core conftest.err conftest.$ac_objext \
32885 conftest$ac_exeext conftest.$ac_ext
32887 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32888 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32890 if test $ac_cv_func_alloca_works = yes; then
32892 cat >>confdefs.h <<\_ACEOF
32893 #define HAVE_ALLOCA 1
32897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32898 # that cause trouble. Some versions do not even contain alloca or
32899 # contain a buggy version. If you still want to use their alloca,
32900 # use ar to extract alloca.o from them instead of compiling alloca.c.
32902 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32904 cat >>confdefs.h <<\_ACEOF
32909 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32910 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32911 if test "${ac_cv_os_cray+set}" = set; then
32912 echo $ECHO_N "(cached) $ECHO_C" >&6
32914 cat >conftest.$ac_ext <<_ACEOF
32917 cat confdefs.h >>conftest.$ac_ext
32918 cat >>conftest.$ac_ext <<_ACEOF
32919 /* end confdefs.h. */
32920 #if defined CRAY && ! defined CRAY2
32927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32928 $EGREP "webecray" >/dev/null 2>&1; then
32936 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32937 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32938 if test $ac_cv_os_cray = yes; then
32939 for ac_func in _getb67 GETB67 getb67; do
32940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32944 echo $ECHO_N "(cached) $ECHO_C" >&6
32946 cat >conftest.$ac_ext <<_ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h. */
32952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32954 #define $ac_func innocuous_$ac_func
32956 /* System header to define __stub macros and hopefully few prototypes,
32957 which can conflict with char $ac_func (); below.
32958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32959 <limits.h> exists even on freestanding compilers. */
32962 # include <limits.h>
32964 # include <assert.h>
32969 /* Override any GCC internal prototype to avoid an error.
32970 Use char because int might match the return type of a GCC
32971 builtin and then its argument prototype would still apply. */
32976 /* The GNU C library defines this for functions which it implements
32977 to always fail with ENOSYS. Some functions are actually named
32978 something starting with __ and the normal name is an alias. */
32979 #if defined __stub_$ac_func || defined __stub___$ac_func
32986 return $ac_func ();
32991 rm -f conftest.$ac_objext conftest$ac_exeext
32992 if { (ac_try="$ac_link"
32993 case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_link") 2>conftest.er1
33000 grep -v '^ *+' conftest.er1 >conftest.err
33002 cat conftest.err >&5
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); } &&
33005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33006 { (case "(($ac_try" in
33007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008 *) ac_try_echo=$ac_try;;
33010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011 (eval "$ac_try") 2>&5
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); }; } &&
33015 { ac_try='test -s conftest$ac_exeext'
33016 { (case "(($ac_try" in
33017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018 *) ac_try_echo=$ac_try;;
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021 (eval "$ac_try") 2>&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; }; then
33025 eval "$as_ac_var=yes"
33027 echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33030 eval "$as_ac_var=no"
33033 rm -f core conftest.err conftest.$ac_objext \
33034 conftest$ac_exeext conftest.$ac_ext
33036 ac_res=`eval echo '${'$as_ac_var'}'`
33037 { echo "$as_me:$LINENO: result: $ac_res" >&5
33038 echo "${ECHO_T}$ac_res" >&6; }
33039 if test `eval echo '${'$as_ac_var'}'` = yes; then
33041 cat >>confdefs.h <<_ACEOF
33042 #define CRAY_STACKSEG_END $ac_func
33051 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33052 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33053 if test "${ac_cv_c_stack_direction+set}" = set; then
33054 echo $ECHO_N "(cached) $ECHO_C" >&6
33056 if test "$cross_compiling" = yes; then
33057 ac_cv_c_stack_direction=0
33059 cat >conftest.$ac_ext <<_ACEOF
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h. */
33065 $ac_includes_default
33067 find_stack_direction ()
33069 static char *addr = 0;
33074 return find_stack_direction ();
33077 return (&dummy > addr) ? 1 : -1;
33083 return find_stack_direction () < 0;
33086 rm -f conftest$ac_exeext
33087 if { (ac_try="$ac_link"
33088 case "(($ac_try" in
33089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090 *) ac_try_echo=$ac_try;;
33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_link") 2>&5
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33097 { (case "(($ac_try" in
33098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099 *) ac_try_echo=$ac_try;;
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102 (eval "$ac_try") 2>&5
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); }; }; then
33106 ac_cv_c_stack_direction=1
33108 echo "$as_me: program exited with status $ac_status" >&5
33109 echo "$as_me: failed program was:" >&5
33110 sed 's/^/| /' conftest.$ac_ext >&5
33112 ( exit $ac_status )
33113 ac_cv_c_stack_direction=-1
33115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33120 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33121 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33123 cat >>confdefs.h <<_ACEOF
33124 #define STACK_DIRECTION $ac_cv_c_stack_direction
33131 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33132 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33133 if test "${ac_cv_func_rand48+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33137 ac_cpp='$CXXCPP $CPPFLAGS'
33138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33142 cat >conftest.$ac_ext <<_ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33148 #include <stdlib.h>
33152 srand48(0);lrand48();drand48();
33157 rm -f conftest.$ac_objext
33158 if { (ac_try="$ac_compile"
33159 case "(($ac_try" in
33160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161 *) ac_try_echo=$ac_try;;
33163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164 (eval "$ac_compile") 2>conftest.er1
33166 grep -v '^ *+' conftest.er1 >conftest.err
33168 cat conftest.err >&5
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); } &&
33171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33172 { (case "(($ac_try" in
33173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174 *) ac_try_echo=$ac_try;;
33176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177 (eval "$ac_try") 2>&5
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); }; } &&
33181 { ac_try='test -s conftest.$ac_objext'
33182 { (case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_try") 2>&5
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); }; }; then
33191 ac_cv_func_rand48=yes
33193 echo "$as_me: failed program was:" >&5
33194 sed 's/^/| /' conftest.$ac_ext >&5
33196 ac_cv_func_rand48=no
33199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33201 ac_cpp='$CPP $CPPFLAGS'
33202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33207 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33208 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33210 if test "$ac_cv_func_rand48" = "yes" ; then
33212 cat >>confdefs.h <<\_ACEOF
33213 #define HAVE_RAND48 1
33219 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33220 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33221 if test "${ac_cv_cxx_namespaces+set}" = set; then
33222 echo $ECHO_N "(cached) $ECHO_C" >&6
33225 ac_cpp='$CXXCPP $CPPFLAGS'
33226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33230 cat >conftest.$ac_ext <<_ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h. */
33236 namespace Outer { namespace Inner { int i = 0; }}
33240 using namespace Outer::Inner; return i;
33245 rm -f conftest.$ac_objext
33246 if { (ac_try="$ac_compile"
33247 case "(($ac_try" in
33248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249 *) ac_try_echo=$ac_try;;
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252 (eval "$ac_compile") 2>conftest.er1
33254 grep -v '^ *+' conftest.er1 >conftest.err
33256 cat conftest.err >&5
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); } &&
33259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33260 { (case "(($ac_try" in
33261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33262 *) ac_try_echo=$ac_try;;
33264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33265 (eval "$ac_try") 2>&5
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); }; } &&
33269 { ac_try='test -s conftest.$ac_objext'
33270 { (case "(($ac_try" in
33271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33272 *) ac_try_echo=$ac_try;;
33274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275 (eval "$ac_try") 2>&5
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
33279 ac_cv_cxx_namespaces=yes
33281 echo "$as_me: failed program was:" >&5
33282 sed 's/^/| /' conftest.$ac_ext >&5
33284 ac_cv_cxx_namespaces=no
33287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33289 ac_cpp='$CPP $CPPFLAGS'
33290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33296 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33297 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33298 if test "$ac_cv_cxx_namespaces" = yes; then
33300 cat >>confdefs.h <<\_ACEOF
33301 #define HAVE_NAMESPACES
33306 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33307 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33308 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33313 ac_cpp='$CXXCPP $CPPFLAGS'
33314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33318 cat >conftest.$ac_ext <<_ACEOF
33321 cat confdefs.h >>conftest.$ac_ext
33322 cat >>conftest.$ac_ext <<_ACEOF
33323 /* end confdefs.h. */
33324 #include <iterator>
33325 #ifdef HAVE_NAMESPACES
33326 using namespace std;
33331 iterator<int,int,int> t; return 0;
33336 rm -f conftest.$ac_objext
33337 if { (ac_try="$ac_compile"
33338 case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_compile") 2>conftest.er1
33345 grep -v '^ *+' conftest.er1 >conftest.err
33347 cat conftest.err >&5
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); } &&
33350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33351 { (case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_try") 2>&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest.$ac_objext'
33361 { (case "(($ac_try" in
33362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363 *) ac_try_echo=$ac_try;;
33365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366 (eval "$ac_try") 2>&5
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
33370 ac_cv_cxx_have_std_iterator=yes
33372 echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33375 ac_cv_cxx_have_std_iterator=no
33378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33380 ac_cpp='$CPP $CPPFLAGS'
33381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33387 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33388 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33389 if test "$ac_cv_cxx_have_std_iterator" = yes
33392 cat >>confdefs.h <<\_ACEOF
33393 #define HAVE_STD_ITERATOR 1
33398 cat >>confdefs.h <<\_ACEOF
33399 #define HAVE_STD_ITERATOR 0
33404 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33405 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33406 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33407 echo $ECHO_N "(cached) $ECHO_C" >&6
33411 ac_cpp='$CXXCPP $CPPFLAGS'
33412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33416 cat >conftest.$ac_ext <<_ACEOF
33419 cat confdefs.h >>conftest.$ac_ext
33420 cat >>conftest.$ac_ext <<_ACEOF
33421 /* end confdefs.h. */
33422 #include <iterator>
33423 #ifdef HAVE_NAMESPACES
33424 using namespace std;
33429 bidirectional_iterator<int,int> t; return 0;
33434 rm -f conftest.$ac_objext
33435 if { (ac_try="$ac_compile"
33436 case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_compile") 2>conftest.er1
33443 grep -v '^ *+' conftest.er1 >conftest.err
33445 cat conftest.err >&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); } &&
33448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33449 { (case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_try") 2>&5
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); }; } &&
33458 { ac_try='test -s conftest.$ac_objext'
33459 { (case "(($ac_try" in
33460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461 *) ac_try_echo=$ac_try;;
33463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464 (eval "$ac_try") 2>&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); }; }; then
33468 ac_cv_cxx_have_bi_iterator=yes
33470 echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33473 ac_cv_cxx_have_bi_iterator=no
33476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33478 ac_cpp='$CPP $CPPFLAGS'
33479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33485 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33486 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33487 if test "$ac_cv_cxx_have_bi_iterator" = yes
33490 cat >>confdefs.h <<\_ACEOF
33491 #define HAVE_BI_ITERATOR 1
33496 cat >>confdefs.h <<\_ACEOF
33497 #define HAVE_BI_ITERATOR 0
33502 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33503 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33504 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33509 ac_cpp='$CXXCPP $CPPFLAGS'
33510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33514 cat >conftest.$ac_ext <<_ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h. */
33520 #include <iterator>
33521 #ifdef HAVE_NAMESPACES
33522 using namespace std;
33527 forward_iterator<int,int> t; return 0;
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
33566 ac_cv_cxx_have_fwd_iterator=yes
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33571 ac_cv_cxx_have_fwd_iterator=no
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33576 ac_cpp='$CPP $CPPFLAGS'
33577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33583 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33584 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33585 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33588 cat >>confdefs.h <<\_ACEOF
33589 #define HAVE_FWD_ITERATOR 1
33594 cat >>confdefs.h <<\_ACEOF
33595 #define HAVE_FWD_ITERATOR 0
33601 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33602 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33603 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33604 echo $ECHO_N "(cached) $ECHO_C" >&6
33607 ac_cpp='$CXXCPP $CPPFLAGS'
33608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33612 cat >conftest.$ac_ext <<_ACEOF
33615 cat confdefs.h >>conftest.$ac_ext
33616 cat >>conftest.$ac_ext <<_ACEOF
33617 /* end confdefs.h. */
33627 rm -f conftest.$ac_objext
33628 if { (ac_try="$ac_compile"
33629 case "(($ac_try" in
33630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33631 *) ac_try_echo=$ac_try;;
33633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33634 (eval "$ac_compile") 2>conftest.er1
33636 grep -v '^ *+' conftest.er1 >conftest.err
33638 cat conftest.err >&5
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); } &&
33641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33642 { (case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_try") 2>&5
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); }; } &&
33651 { ac_try='test -s conftest.$ac_objext'
33652 { (case "(($ac_try" in
33653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654 *) ac_try_echo=$ac_try;;
33656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657 (eval "$ac_try") 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33661 ac_cv_func_isnan_in_math_h=yes
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33666 ac_cv_func_isnan_in_math_h=no
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33671 ac_cpp='$CPP $CPPFLAGS'
33672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33677 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33678 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33681 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33683 cat >>confdefs.h <<\_ACEOF
33684 #define HAVE_ISNAN_IN_MATH_H 1
33689 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33690 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33691 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33692 echo $ECHO_N "(cached) $ECHO_C" >&6
33695 ac_cpp='$CXXCPP $CPPFLAGS'
33696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33715 rm -f conftest.$ac_objext
33716 if { (ac_try="$ac_compile"
33717 case "(($ac_try" in
33718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719 *) ac_try_echo=$ac_try;;
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722 (eval "$ac_compile") 2>conftest.er1
33724 grep -v '^ *+' conftest.er1 >conftest.err
33726 cat conftest.err >&5
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); } &&
33729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33730 { (case "(($ac_try" in
33731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33732 *) ac_try_echo=$ac_try;;
33734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33735 (eval "$ac_try") 2>&5
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); }; } &&
33739 { ac_try='test -s conftest.$ac_objext'
33740 { (case "(($ac_try" in
33741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742 *) ac_try_echo=$ac_try;;
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_try") 2>&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
33749 ac_cv_func_isnan_in_cmath=yes
33751 echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33754 ac_cv_func_isnan_in_cmath=no
33757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33759 ac_cpp='$CPP $CPPFLAGS'
33760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33765 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33766 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33768 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33770 cat >>confdefs.h <<\_ACEOF
33771 #define HAVE_ISNAN_IN_CMATH 1
33776 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33777 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33778 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33779 echo $ECHO_N "(cached) $ECHO_C" >&6
33782 ac_cpp='$CXXCPP $CPPFLAGS'
33783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33787 cat >conftest.$ac_ext <<_ACEOF
33790 cat confdefs.h >>conftest.$ac_ext
33791 cat >>conftest.$ac_ext <<_ACEOF
33792 /* end confdefs.h. */
33797 float f; std::isnan(f);
33802 rm -f conftest.$ac_objext
33803 if { (ac_try="$ac_compile"
33804 case "(($ac_try" in
33805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806 *) ac_try_echo=$ac_try;;
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809 (eval "$ac_compile") 2>conftest.er1
33811 grep -v '^ *+' conftest.er1 >conftest.err
33813 cat conftest.err >&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); } &&
33816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33817 { (case "(($ac_try" in
33818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33819 *) ac_try_echo=$ac_try;;
33821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33822 (eval "$ac_try") 2>&5
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; } &&
33826 { ac_try='test -s conftest.$ac_objext'
33827 { (case "(($ac_try" in
33828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33829 *) ac_try_echo=$ac_try;;
33831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33832 (eval "$ac_try") 2>&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); }; }; then
33836 ac_cv_func_std_isnan_in_cmath=yes
33838 echo "$as_me: failed program was:" >&5
33839 sed 's/^/| /' conftest.$ac_ext >&5
33841 ac_cv_func_std_isnan_in_cmath=no
33844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33846 ac_cpp='$CPP $CPPFLAGS'
33847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33852 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33853 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33855 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33857 cat >>confdefs.h <<\_ACEOF
33858 #define HAVE_STD_ISNAN_IN_CMATH 1
33864 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33865 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33866 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33867 echo $ECHO_N "(cached) $ECHO_C" >&6
33870 ac_cpp='$CXXCPP $CPPFLAGS'
33871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33875 cat >conftest.$ac_ext <<_ACEOF
33878 cat confdefs.h >>conftest.$ac_ext
33879 cat >>conftest.$ac_ext <<_ACEOF
33880 /* end confdefs.h. */
33890 rm -f conftest.$ac_objext
33891 if { (ac_try="$ac_compile"
33892 case "(($ac_try" in
33893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894 *) ac_try_echo=$ac_try;;
33896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897 (eval "$ac_compile") 2>conftest.er1
33899 grep -v '^ *+' conftest.er1 >conftest.err
33901 cat conftest.err >&5
33902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903 (exit $ac_status); } &&
33904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33905 { (case "(($ac_try" in
33906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907 *) ac_try_echo=$ac_try;;
33909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910 (eval "$ac_try") 2>&5
33912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 (exit $ac_status); }; } &&
33914 { ac_try='test -s conftest.$ac_objext'
33915 { (case "(($ac_try" in
33916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33917 *) ac_try_echo=$ac_try;;
33919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33920 (eval "$ac_try") 2>&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); }; }; then
33924 ac_cv_func_isinf_in_math_h=yes
33926 echo "$as_me: failed program was:" >&5
33927 sed 's/^/| /' conftest.$ac_ext >&5
33929 ac_cv_func_isinf_in_math_h=no
33932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33934 ac_cpp='$CPP $CPPFLAGS'
33935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33940 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33941 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33943 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33945 cat >>confdefs.h <<\_ACEOF
33946 #define HAVE_ISINF_IN_MATH_H 1
33951 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33952 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33953 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33954 echo $ECHO_N "(cached) $ECHO_C" >&6
33957 ac_cpp='$CXXCPP $CPPFLAGS'
33958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33962 cat >conftest.$ac_ext <<_ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h. */
33977 rm -f conftest.$ac_objext
33978 if { (ac_try="$ac_compile"
33979 case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_compile") 2>conftest.er1
33986 grep -v '^ *+' conftest.er1 >conftest.err
33988 cat conftest.err >&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); } &&
33991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33992 { (case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_try") 2>&5
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); }; } &&
34001 { ac_try='test -s conftest.$ac_objext'
34002 { (case "(($ac_try" in
34003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34004 *) ac_try_echo=$ac_try;;
34006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34007 (eval "$ac_try") 2>&5
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; }; then
34011 ac_cv_func_isinf_in_cmath=yes
34013 echo "$as_me: failed program was:" >&5
34014 sed 's/^/| /' conftest.$ac_ext >&5
34016 ac_cv_func_isinf_in_cmath=no
34019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34021 ac_cpp='$CPP $CPPFLAGS'
34022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34027 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34028 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34030 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34032 cat >>confdefs.h <<\_ACEOF
34033 #define HAVE_ISINF_IN_CMATH 1
34038 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34039 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34040 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34041 echo $ECHO_N "(cached) $ECHO_C" >&6
34044 ac_cpp='$CXXCPP $CPPFLAGS'
34045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34049 cat >conftest.$ac_ext <<_ACEOF
34052 cat confdefs.h >>conftest.$ac_ext
34053 cat >>conftest.$ac_ext <<_ACEOF
34054 /* end confdefs.h. */
34059 float f; std::isinf(f)}
34064 rm -f conftest.$ac_objext
34065 if { (ac_try="$ac_compile"
34066 case "(($ac_try" in
34067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34068 *) ac_try_echo=$ac_try;;
34070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34071 (eval "$ac_compile") 2>conftest.er1
34073 grep -v '^ *+' conftest.er1 >conftest.err
34075 cat conftest.err >&5
34076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077 (exit $ac_status); } &&
34078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34079 { (case "(($ac_try" in
34080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081 *) ac_try_echo=$ac_try;;
34083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084 (eval "$ac_try") 2>&5
34086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087 (exit $ac_status); }; } &&
34088 { ac_try='test -s conftest.$ac_objext'
34089 { (case "(($ac_try" in
34090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34091 *) ac_try_echo=$ac_try;;
34093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34094 (eval "$ac_try") 2>&5
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); }; }; then
34098 ac_cv_func_std_isinf_in_cmath=yes
34100 echo "$as_me: failed program was:" >&5
34101 sed 's/^/| /' conftest.$ac_ext >&5
34103 ac_cv_func_std_isinf_in_cmath=no
34106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108 ac_cpp='$CPP $CPPFLAGS'
34109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34114 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34115 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34117 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34119 cat >>confdefs.h <<\_ACEOF
34120 #define HAVE_STD_ISINF_IN_CMATH 1
34125 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34126 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34127 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34131 ac_cpp='$CXXCPP $CPPFLAGS'
34132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34136 cat >conftest.$ac_ext <<_ACEOF
34139 cat confdefs.h >>conftest.$ac_ext
34140 cat >>conftest.$ac_ext <<_ACEOF
34141 /* end confdefs.h. */
34142 #include <ieeefp.h>
34146 float f; finite(f);
34151 rm -f conftest.$ac_objext
34152 if { (ac_try="$ac_compile"
34153 case "(($ac_try" in
34154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34155 *) ac_try_echo=$ac_try;;
34157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34158 (eval "$ac_compile") 2>conftest.er1
34160 grep -v '^ *+' conftest.er1 >conftest.err
34162 cat conftest.err >&5
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); } &&
34165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34166 { (case "(($ac_try" in
34167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34168 *) ac_try_echo=$ac_try;;
34170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34171 (eval "$ac_try") 2>&5
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); }; } &&
34175 { ac_try='test -s conftest.$ac_objext'
34176 { (case "(($ac_try" in
34177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178 *) ac_try_echo=$ac_try;;
34180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181 (eval "$ac_try") 2>&5
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; }; then
34185 ac_cv_func_finite_in_ieeefp_h=yes
34187 echo "$as_me: failed program was:" >&5
34188 sed 's/^/| /' conftest.$ac_ext >&5
34190 ac_cv_func_finite_in_ieeefp_h=no
34193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34195 ac_cpp='$CPP $CPPFLAGS'
34196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34201 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34202 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34204 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34206 cat >>confdefs.h <<\_ACEOF
34207 #define HAVE_FINITE_IN_IEEEFP_H 1
34214 if test "$llvm_cv_platform_type" = "Unix" ; then
34217 for ac_header in stdlib.h unistd.h
34219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34224 echo $ECHO_N "(cached) $ECHO_C" >&6
34226 ac_res=`eval echo '${'$as_ac_Header'}'`
34227 { echo "$as_me:$LINENO: result: $ac_res" >&5
34228 echo "${ECHO_T}$ac_res" >&6; }
34230 # Is the header compilable?
34231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34233 cat >conftest.$ac_ext <<_ACEOF
34236 cat confdefs.h >>conftest.$ac_ext
34237 cat >>conftest.$ac_ext <<_ACEOF
34238 /* end confdefs.h. */
34239 $ac_includes_default
34240 #include <$ac_header>
34242 rm -f conftest.$ac_objext
34243 if { (ac_try="$ac_compile"
34244 case "(($ac_try" in
34245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34246 *) ac_try_echo=$ac_try;;
34248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34249 (eval "$ac_compile") 2>conftest.er1
34251 grep -v '^ *+' conftest.er1 >conftest.err
34253 cat conftest.err >&5
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); } &&
34256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34257 { (case "(($ac_try" in
34258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259 *) ac_try_echo=$ac_try;;
34261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262 (eval "$ac_try") 2>&5
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); }; } &&
34266 { ac_try='test -s conftest.$ac_objext'
34267 { (case "(($ac_try" in
34268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34269 *) ac_try_echo=$ac_try;;
34271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34272 (eval "$ac_try") 2>&5
34274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275 (exit $ac_status); }; }; then
34276 ac_header_compiler=yes
34278 echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34281 ac_header_compiler=no
34284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34286 echo "${ECHO_T}$ac_header_compiler" >&6; }
34288 # Is the header present?
34289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34291 cat >conftest.$ac_ext <<_ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h. */
34297 #include <$ac_header>
34299 if { (ac_try="$ac_cpp conftest.$ac_ext"
34300 case "(($ac_try" in
34301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302 *) ac_try_echo=$ac_try;;
34304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34307 grep -v '^ *+' conftest.er1 >conftest.err
34309 cat conftest.err >&5
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); } >/dev/null; then
34312 if test -s conftest.err; then
34313 ac_cpp_err=$ac_c_preproc_warn_flag
34314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34321 if test -z "$ac_cpp_err"; then
34322 ac_header_preproc=yes
34324 echo "$as_me: failed program was:" >&5
34325 sed 's/^/| /' conftest.$ac_ext >&5
34327 ac_header_preproc=no
34330 rm -f conftest.err conftest.$ac_ext
34331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34332 echo "${ECHO_T}$ac_header_preproc" >&6; }
34334 # So? What about this header?
34335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34341 ac_header_preproc=yes
34344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34357 ## ----------------------------------- ##
34358 ## Report this to llvmbugs@cs.uiuc.edu ##
34359 ## ----------------------------------- ##
34361 ) | sed "s/^/$as_me: WARNING: /" >&2
34364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34367 echo $ECHO_N "(cached) $ECHO_C" >&6
34369 eval "$as_ac_Header=\$ac_header_preproc"
34371 ac_res=`eval echo '${'$as_ac_Header'}'`
34372 { echo "$as_me:$LINENO: result: $ac_res" >&5
34373 echo "${ECHO_T}$ac_res" >&6; }
34376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34377 cat >>confdefs.h <<_ACEOF
34378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34386 for ac_func in getpagesize
34388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34392 echo $ECHO_N "(cached) $ECHO_C" >&6
34394 cat >conftest.$ac_ext <<_ACEOF
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h. */
34400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34402 #define $ac_func innocuous_$ac_func
34404 /* System header to define __stub macros and hopefully few prototypes,
34405 which can conflict with char $ac_func (); below.
34406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34407 <limits.h> exists even on freestanding compilers. */
34410 # include <limits.h>
34412 # include <assert.h>
34417 /* Override any GCC internal prototype to avoid an error.
34418 Use char because int might match the return type of a GCC
34419 builtin and then its argument prototype would still apply. */
34424 /* The GNU C library defines this for functions which it implements
34425 to always fail with ENOSYS. Some functions are actually named
34426 something starting with __ and the normal name is an alias. */
34427 #if defined __stub_$ac_func || defined __stub___$ac_func
34434 return $ac_func ();
34439 rm -f conftest.$ac_objext conftest$ac_exeext
34440 if { (ac_try="$ac_link"
34441 case "(($ac_try" in
34442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34443 *) ac_try_echo=$ac_try;;
34445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34446 (eval "$ac_link") 2>conftest.er1
34448 grep -v '^ *+' conftest.er1 >conftest.err
34450 cat conftest.err >&5
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); } &&
34453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34454 { (case "(($ac_try" in
34455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456 *) ac_try_echo=$ac_try;;
34458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459 (eval "$ac_try") 2>&5
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); }; } &&
34463 { ac_try='test -s conftest$ac_exeext'
34464 { (case "(($ac_try" in
34465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34466 *) ac_try_echo=$ac_try;;
34468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34469 (eval "$ac_try") 2>&5
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); }; }; then
34473 eval "$as_ac_var=yes"
34475 echo "$as_me: failed program was:" >&5
34476 sed 's/^/| /' conftest.$ac_ext >&5
34478 eval "$as_ac_var=no"
34481 rm -f core conftest.err conftest.$ac_objext \
34482 conftest$ac_exeext conftest.$ac_ext
34484 ac_res=`eval echo '${'$as_ac_var'}'`
34485 { echo "$as_me:$LINENO: result: $ac_res" >&5
34486 echo "${ECHO_T}$ac_res" >&6; }
34487 if test `eval echo '${'$as_ac_var'}'` = yes; then
34488 cat >>confdefs.h <<_ACEOF
34489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34495 { echo "$as_me:$LINENO: checking for working mmap" >&5
34496 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34497 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34498 echo $ECHO_N "(cached) $ECHO_C" >&6
34500 if test "$cross_compiling" = yes; then
34501 ac_cv_func_mmap_fixed_mapped=no
34503 cat >conftest.$ac_ext <<_ACEOF
34506 cat confdefs.h >>conftest.$ac_ext
34507 cat >>conftest.$ac_ext <<_ACEOF
34508 /* end confdefs.h. */
34509 $ac_includes_default
34510 /* malloc might have been renamed as rpl_malloc. */
34513 /* Thanks to Mike Haertel and Jim Avera for this test.
34514 Here is a matrix of mmap possibilities:
34515 mmap private not fixed
34516 mmap private fixed at somewhere currently unmapped
34517 mmap private fixed at somewhere already mapped
34518 mmap shared not fixed
34519 mmap shared fixed at somewhere currently unmapped
34520 mmap shared fixed at somewhere already mapped
34521 For private mappings, we should verify that changes cannot be read()
34522 back from the file, nor mmap's back from the file at a different
34523 address. (There have been systems where private was not correctly
34524 implemented like the infamous i386 svr4.0, and systems where the
34525 VM page cache was not coherent with the file system buffer cache
34526 like early versions of FreeBSD and possibly contemporary NetBSD.)
34527 For shared mappings, we should conversely verify that changes get
34528 propagated back to all the places they're supposed to be.
34530 Grep wants private fixed already mapped.
34531 The main things grep needs to know about mmap are:
34532 * does it exist and is it safe to write into the mmap'd area
34533 * how to use it (BSD variants) */
34536 #include <sys/mman.h>
34538 #if !STDC_HEADERS && !HAVE_STDLIB_H
34542 /* This mess was copied from the GNU getpagesize.h. */
34543 #if !HAVE_GETPAGESIZE
34544 /* Assume that all systems that can run configure have sys/param.h. */
34545 # if !HAVE_SYS_PARAM_H
34546 # define HAVE_SYS_PARAM_H 1
34549 # ifdef _SC_PAGESIZE
34550 # define getpagesize() sysconf(_SC_PAGESIZE)
34551 # else /* no _SC_PAGESIZE */
34552 # if HAVE_SYS_PARAM_H
34553 # include <sys/param.h>
34554 # ifdef EXEC_PAGESIZE
34555 # define getpagesize() EXEC_PAGESIZE
34556 # else /* no EXEC_PAGESIZE */
34558 # define getpagesize() NBPG * CLSIZE
34561 # endif /* no CLSIZE */
34562 # else /* no NBPG */
34564 # define getpagesize() NBPC
34565 # else /* no NBPC */
34567 # define getpagesize() PAGESIZE
34568 # endif /* PAGESIZE */
34569 # endif /* no NBPC */
34570 # endif /* no NBPG */
34571 # endif /* no EXEC_PAGESIZE */
34572 # else /* no HAVE_SYS_PARAM_H */
34573 # define getpagesize() 8192 /* punt totally */
34574 # endif /* no HAVE_SYS_PARAM_H */
34575 # endif /* no _SC_PAGESIZE */
34577 #endif /* no HAVE_GETPAGESIZE */
34582 char *data, *data2, *data3;
34586 pagesize = getpagesize ();
34588 /* First, make a file with some known garbage in it. */
34589 data = (char *) malloc (pagesize);
34592 for (i = 0; i < pagesize; ++i)
34593 *(data + i) = rand ();
34595 fd = creat ("conftest.mmap", 0600);
34598 if (write (fd, data, pagesize) != pagesize)
34602 /* Next, try to mmap the file at a fixed address which already has
34603 something else allocated at it. If we can, also make sure that
34604 we see the same garbage. */
34605 fd = open ("conftest.mmap", O_RDWR);
34608 data2 = (char *) malloc (2 * pagesize);
34611 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34612 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34613 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34615 for (i = 0; i < pagesize; ++i)
34616 if (*(data + i) != *(data2 + i))
34619 /* Finally, make sure that changes to the mapped area do not
34620 percolate back to the file as seen by read(). (This is a bug on
34621 some variants of i386 svr4.0.) */
34622 for (i = 0; i < pagesize; ++i)
34623 *(data2 + i) = *(data2 + i) + 1;
34624 data3 = (char *) malloc (pagesize);
34627 if (read (fd, data3, pagesize) != pagesize)
34629 for (i = 0; i < pagesize; ++i)
34630 if (*(data + i) != *(data3 + i))
34636 rm -f conftest$ac_exeext
34637 if { (ac_try="$ac_link"
34638 case "(($ac_try" in
34639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34640 *) ac_try_echo=$ac_try;;
34642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34643 (eval "$ac_link") 2>&5
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34647 { (case "(($ac_try" in
34648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34649 *) ac_try_echo=$ac_try;;
34651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34652 (eval "$ac_try") 2>&5
34654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655 (exit $ac_status); }; }; then
34656 ac_cv_func_mmap_fixed_mapped=yes
34658 echo "$as_me: program exited with status $ac_status" >&5
34659 echo "$as_me: failed program was:" >&5
34660 sed 's/^/| /' conftest.$ac_ext >&5
34662 ( exit $ac_status )
34663 ac_cv_func_mmap_fixed_mapped=no
34665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34670 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34671 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34672 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34674 cat >>confdefs.h <<\_ACEOF
34675 #define HAVE_MMAP 1
34679 rm -f conftest.mmap
34681 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34682 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34683 if test "${ac_cv_func_mmap_file+set}" = set; then
34684 echo $ECHO_N "(cached) $ECHO_C" >&6
34687 ac_cpp='$CPP $CPPFLAGS'
34688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34692 if test "$cross_compiling" = yes; then
34693 ac_cv_func_mmap_file=no
34695 cat >conftest.$ac_ext <<_ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h. */
34703 #include <sys/types.h>
34704 #include <sys/mman.h>
34712 fd = creat ("foo",0777);
34713 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34715 return (fd != (int) MAP_FAILED);
34720 rm -f conftest$ac_exeext
34721 if { (ac_try="$ac_link"
34722 case "(($ac_try" in
34723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34724 *) ac_try_echo=$ac_try;;
34726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34727 (eval "$ac_link") 2>&5
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34731 { (case "(($ac_try" in
34732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34733 *) ac_try_echo=$ac_try;;
34735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34736 (eval "$ac_try") 2>&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; }; then
34740 ac_cv_func_mmap_file=yes
34742 echo "$as_me: program exited with status $ac_status" >&5
34743 echo "$as_me: failed program was:" >&5
34744 sed 's/^/| /' conftest.$ac_ext >&5
34746 ( exit $ac_status )
34747 ac_cv_func_mmap_file=no
34749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34754 ac_cpp='$CPP $CPPFLAGS'
34755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34761 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34762 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34763 if test "$ac_cv_func_mmap_file" = yes; then
34765 cat >>confdefs.h <<\_ACEOF
34766 #define HAVE_MMAP_FILE
34773 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34774 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34775 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34776 echo $ECHO_N "(cached) $ECHO_C" >&6
34778 if test "$llvm_cv_os_type" = "Interix" ; then
34779 ac_cv_need_dev_zero_for_mmap=yes
34781 ac_cv_need_dev_zero_for_mmap=no
34785 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34786 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34787 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34789 cat >>confdefs.h <<\_ACEOF
34790 #define NEED_DEV_ZERO_FOR_MMAP 1
34795 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34797 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34798 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34800 if test "$ac_cv_func_mmap_file" = "no"
34802 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34803 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34807 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34808 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34809 cat >conftest.$ac_ext <<_ACEOF
34812 cat confdefs.h >>conftest.$ac_ext
34813 cat >>conftest.$ac_ext <<_ACEOF
34814 /* end confdefs.h. */
34816 volatile unsigned long val = 1;
34817 __sync_synchronize();
34818 __sync_val_compare_and_swap(&val, 1, 0);
34819 __sync_add_and_fetch(&val, 1);
34820 __sync_sub_and_fetch(&val, 1);
34825 rm -f conftest.$ac_objext conftest$ac_exeext
34826 if { (ac_try="$ac_link"
34827 case "(($ac_try" in
34828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34829 *) ac_try_echo=$ac_try;;
34831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34832 (eval "$ac_link") 2>conftest.er1
34834 grep -v '^ *+' conftest.er1 >conftest.err
34836 cat conftest.err >&5
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } &&
34839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34840 { (case "(($ac_try" in
34841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842 *) ac_try_echo=$ac_try;;
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845 (eval "$ac_try") 2>&5
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); }; } &&
34849 { ac_try='test -s conftest$ac_exeext'
34850 { (case "(($ac_try" in
34851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34852 *) ac_try_echo=$ac_try;;
34854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34855 (eval "$ac_try") 2>&5
34857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34858 (exit $ac_status); }; }; then
34859 { echo "$as_me:$LINENO: result: yes" >&5
34860 echo "${ECHO_T}yes" >&6; }
34862 cat >>confdefs.h <<\_ACEOF
34863 #define LLVM_MULTITHREADED 1
34867 echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34870 { echo "$as_me:$LINENO: result: no" >&5
34871 echo "${ECHO_T}no" >&6; }
34873 cat >>confdefs.h <<\_ACEOF
34874 #define LLVM_MULTITHREADED 0
34877 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34878 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34881 rm -f core conftest.err conftest.$ac_objext \
34882 conftest$ac_exeext conftest.$ac_ext
34887 for ac_func in __dso_handle
34889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34890 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34892 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34893 echo $ECHO_N "(cached) $ECHO_C" >&6
34895 cat >conftest.$ac_ext <<_ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h. */
34901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34903 #define $ac_func innocuous_$ac_func
34905 /* System header to define __stub macros and hopefully few prototypes,
34906 which can conflict with char $ac_func (); below.
34907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34908 <limits.h> exists even on freestanding compilers. */
34911 # include <limits.h>
34913 # include <assert.h>
34918 /* Override any GCC internal prototype to avoid an error.
34919 Use char because int might match the return type of a GCC
34920 builtin and then its argument prototype would still apply. */
34925 /* The GNU C library defines this for functions which it implements
34926 to always fail with ENOSYS. Some functions are actually named
34927 something starting with __ and the normal name is an alias. */
34928 #if defined __stub_$ac_func || defined __stub___$ac_func
34935 return $ac_func ();
34940 rm -f conftest.$ac_objext conftest$ac_exeext
34941 if { (ac_try="$ac_link"
34942 case "(($ac_try" in
34943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34944 *) ac_try_echo=$ac_try;;
34946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34947 (eval "$ac_link") 2>conftest.er1
34949 grep -v '^ *+' conftest.er1 >conftest.err
34951 cat conftest.err >&5
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); } &&
34954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34955 { (case "(($ac_try" in
34956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957 *) ac_try_echo=$ac_try;;
34959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960 (eval "$ac_try") 2>&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; } &&
34964 { ac_try='test -s conftest$ac_exeext'
34965 { (case "(($ac_try" in
34966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34967 *) ac_try_echo=$ac_try;;
34969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34970 (eval "$ac_try") 2>&5
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); }; }; then
34974 eval "$as_ac_var=yes"
34976 echo "$as_me: failed program was:" >&5
34977 sed 's/^/| /' conftest.$ac_ext >&5
34979 eval "$as_ac_var=no"
34982 rm -f core conftest.err conftest.$ac_objext \
34983 conftest$ac_exeext conftest.$ac_ext
34985 ac_res=`eval echo '${'$as_ac_var'}'`
34986 { echo "$as_me:$LINENO: result: $ac_res" >&5
34987 echo "${ECHO_T}$ac_res" >&6; }
34988 if test `eval echo '${'$as_ac_var'}'` = yes; then
34989 cat >>confdefs.h <<_ACEOF
34990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34997 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34998 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34999 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35000 echo $ECHO_N "(cached) $ECHO_C" >&6
35002 llvm_cv_llvmgcc_sanity="no"
35003 if test -x "$LLVMGCC" ; then
35004 cp /dev/null conftest.c
35005 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35006 grep 'target datalayout =' > /dev/null 2>&1
35007 if test $? -eq 0 ; then
35008 llvm_cv_llvmgcc_sanity="yes"
35013 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35014 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35016 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35017 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35018 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35019 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35020 LLVMCC1=$llvmcc1path
35022 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35023 LLVMCC1PLUS=$llvmcc1pluspath
35025 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35026 LLVMGCCDIR=$llvmgccdir
35028 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35029 LLVMGCCLIBEXEC=$llvmgcclibexec
35031 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35032 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35033 LLVMGCC_VERSION=$llvmgccversion
35035 LLVMGCC_MAJVERS=$llvmgccmajvers
35037 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35038 LLVMGCC_LANGS=$llvmgcclangs
35040 { echo "$as_me:$LINENO: result: ok" >&5
35041 echo "${ECHO_T}ok" >&6; }
35044 SHLIBEXT=$libltdl_cv_shlibext
35047 # Translate the various configuration directories and other basic
35048 # information into substitutions that will end up in Makefile.config.in
35049 # that these configured values can be used by the makefiles
35050 if test "${prefix}" = "NONE" ; then
35051 prefix="/usr/local"
35053 eval LLVM_PREFIX="${prefix}";
35054 eval LLVM_BINDIR="${prefix}/bin";
35055 eval LLVM_LIBDIR="${prefix}/lib";
35056 eval LLVM_DATADIR="${prefix}/share/llvm";
35057 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35058 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35059 eval LLVM_INCLUDEDIR="${prefix}/include";
35060 eval LLVM_INFODIR="${prefix}/info";
35061 eval LLVM_MANDIR="${prefix}/man";
35062 LLVM_CONFIGTIME=`date`
35074 # Place the various directores into the config.h file as #defines so that we
35075 # can know about the installation paths within LLVM.
35077 cat >>confdefs.h <<_ACEOF
35078 #define LLVM_PREFIX "$LLVM_PREFIX"
35082 cat >>confdefs.h <<_ACEOF
35083 #define LLVM_BINDIR "$LLVM_BINDIR"
35087 cat >>confdefs.h <<_ACEOF
35088 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35092 cat >>confdefs.h <<_ACEOF
35093 #define LLVM_DATADIR "$LLVM_DATADIR"
35097 cat >>confdefs.h <<_ACEOF
35098 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35102 cat >>confdefs.h <<_ACEOF
35103 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35107 cat >>confdefs.h <<_ACEOF
35108 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35112 cat >>confdefs.h <<_ACEOF
35113 #define LLVM_INFODIR "$LLVM_INFODIR"
35117 cat >>confdefs.h <<_ACEOF
35118 #define LLVM_MANDIR "$LLVM_MANDIR"
35122 cat >>confdefs.h <<_ACEOF
35123 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35127 cat >>confdefs.h <<_ACEOF
35128 #define LLVM_HOSTTRIPLE "$host"
35132 # Determine which bindings to build.
35133 if test "$BINDINGS_TO_BUILD" = auto ; then
35134 BINDINGS_TO_BUILD=""
35135 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35136 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35139 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35142 # This isn't really configurey, but it avoids having to repeat the list in
35147 # Do any work necessary to ensure that bindings have what they need.
35148 binding_prereqs_failed=0
35149 for a_binding in $BINDINGS_TO_BUILD ; do
35150 case "$a_binding" in
35152 if test "x$OCAMLC" = x ; then
35153 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35154 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35155 binding_prereqs_failed=1
35157 if test "x$OCAMLDEP" = x ; then
35158 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35159 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35160 binding_prereqs_failed=1
35162 if test "x$OCAMLOPT" = x ; then
35163 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35164 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35166 if test "x$with_ocaml_libdir" != xauto ; then
35167 OCAML_LIBDIR=$with_ocaml_libdir
35170 ocaml_stdlib="`"$OCAMLC" -where`"
35171 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35173 # ocaml stdlib is beneath our prefix; use stdlib
35174 OCAML_LIBDIR=$ocaml_stdlib
35177 # ocaml stdlib is outside our prefix; use libdir/ocaml
35178 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35185 if test "$binding_prereqs_failed" = 1 ; then
35186 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35187 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35188 { (exit 1); exit 1; }; }
35191 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35192 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35193 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35194 echo $ECHO_N "(cached) $ECHO_C" >&6
35197 ac_cpp='$CXXCPP $CPPFLAGS'
35198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35202 oldcxxflags="$CXXFLAGS"
35203 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35204 cat >conftest.$ac_ext <<_ACEOF
35207 cat confdefs.h >>conftest.$ac_ext
35208 cat >>conftest.$ac_ext <<_ACEOF
35209 /* end confdefs.h. */
35219 rm -f conftest.$ac_objext
35220 if { (ac_try="$ac_compile"
35221 case "(($ac_try" in
35222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35223 *) ac_try_echo=$ac_try;;
35225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35226 (eval "$ac_compile") 2>conftest.er1
35228 grep -v '^ *+' conftest.er1 >conftest.err
35230 cat conftest.err >&5
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); } &&
35233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35234 { (case "(($ac_try" in
35235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35236 *) ac_try_echo=$ac_try;;
35238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35239 (eval "$ac_try") 2>&5
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); }; } &&
35243 { ac_try='test -s conftest.$ac_objext'
35244 { (case "(($ac_try" in
35245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35246 *) ac_try_echo=$ac_try;;
35248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35249 (eval "$ac_try") 2>&5
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); }; }; then
35253 llvm_cv_cxx_visibility_inlines_hidden=yes
35255 echo "$as_me: failed program was:" >&5
35256 sed 's/^/| /' conftest.$ac_ext >&5
35258 llvm_cv_cxx_visibility_inlines_hidden=no
35261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35262 CXXFLAGS="$oldcxxflags"
35264 ac_cpp='$CPP $CPPFLAGS'
35265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35271 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35272 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35273 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35274 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35277 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35282 if test "$llvm_cv_link_use_r" = "yes" ; then
35289 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35290 RDYNAMIC="-Wl,-export-dynamic"
35297 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35299 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35301 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35303 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35305 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35308 ac_config_files="$ac_config_files Makefile.config"
35311 ac_config_files="$ac_config_files llvm.spec"
35314 ac_config_files="$ac_config_files docs/doxygen.cfg"
35317 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35320 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35323 ac_config_commands="$ac_config_commands setup"
35325 ac_config_commands="$ac_config_commands Makefile"
35328 ac_config_commands="$ac_config_commands Makefile.common"
35331 ac_config_commands="$ac_config_commands examples/Makefile"
35334 ac_config_commands="$ac_config_commands lib/Makefile"
35337 ac_config_commands="$ac_config_commands runtime/Makefile"
35340 ac_config_commands="$ac_config_commands test/Makefile"
35343 ac_config_commands="$ac_config_commands test/Makefile.tests"
35346 ac_config_commands="$ac_config_commands unittests/Makefile"
35349 ac_config_commands="$ac_config_commands tools/Makefile"
35352 ac_config_commands="$ac_config_commands utils/Makefile"
35355 ac_config_commands="$ac_config_commands projects/Makefile"
35358 ac_config_commands="$ac_config_commands bindings/Makefile"
35361 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35365 cat >confcache <<\_ACEOF
35366 # This file is a shell script that caches the results of configure
35367 # tests run on this system so they can be shared between configure
35368 # scripts and configure runs, see configure's option --config-cache.
35369 # It is not useful on other systems. If it contains results you don't
35370 # want to keep, you may remove or edit it.
35372 # config.status only pays attention to the cache file if you give it
35373 # the --recheck option to rerun configure.
35375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35377 # following values.
35381 # The following way of writing the cache mishandles newlines in values,
35382 # but we know of no workaround that is simple, portable, and efficient.
35383 # So, we kill variables containing newlines.
35384 # Ultrix sh set writes to stderr and can't be redirected directly,
35385 # and sets the high bit in the cache file unless we assign to the vars.
35387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35388 eval ac_val=\$$ac_var
35392 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35393 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35396 _ | IFS | as_nl) ;; #(
35397 *) $as_unset $ac_var ;;
35403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35404 *${as_nl}ac_space=\ *)
35405 # `set' does not quote correctly, so add quotes (double-quote
35406 # substitution turns \\\\ into \\, and sed turns \\ into \).
35409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35412 # `set' quotes correctly as required by POSIX, so do not add quotes.
35413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35426 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35427 if test -w "$cache_file"; then
35428 test "x$cache_file" != "x/dev/null" &&
35429 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35430 echo "$as_me: updating cache $cache_file" >&6;}
35431 cat confcache >$cache_file
35433 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35434 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35440 # Let make expand exec_prefix.
35441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35443 DEFS=-DHAVE_CONFIG_H
35447 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35448 # 1. Remove the extension, and $U if already installed.
35449 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35450 ac_i=`echo "$ac_i" | sed "$ac_script"`
35451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35452 # will be set to the directory where LIBOBJS objects are built.
35453 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35454 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35456 LIBOBJS=$ac_libobjs
35458 LTLIBOBJS=$ac_ltlibobjs
35461 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35462 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35463 Usually this means the macro was only invoked conditionally." >&5
35464 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35465 Usually this means the macro was only invoked conditionally." >&2;}
35466 { (exit 1); exit 1; }; }
35468 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35469 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35470 Usually this means the macro was only invoked conditionally." >&5
35471 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35472 Usually this means the macro was only invoked conditionally." >&2;}
35473 { (exit 1); exit 1; }; }
35476 : ${CONFIG_STATUS=./config.status}
35477 ac_clean_files_save=$ac_clean_files
35478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35481 cat >$CONFIG_STATUS <<_ACEOF
35483 # Generated by $as_me.
35484 # Run this file to recreate the current configuration.
35485 # Compiler output produced by configure, useful for debugging
35486 # configure, is in config.log if it exists.
35489 ac_cs_recheck=false
35491 SHELL=\${CONFIG_SHELL-$SHELL}
35494 cat >>$CONFIG_STATUS <<\_ACEOF
35495 ## --------------------- ##
35496 ## M4sh Initialization. ##
35497 ## --------------------- ##
35499 # Be Bourne compatible
35500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35504 # is contrary to our usage. Disable this feature.
35505 alias -g '${1+"$@"}'='"$@"'
35506 setopt NO_GLOB_SUBST
35508 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35510 BIN_SH=xpg4; export BIN_SH # for Tru64
35511 DUALCASE=1; export DUALCASE # for MKS sh
35515 # Avoid depending upon Character Ranges.
35516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35519 as_cr_digits='0123456789'
35520 as_cr_alnum=$as_cr_Letters$as_cr_digits
35522 # The user is always right.
35523 if test "${PATH_SEPARATOR+set}" != set; then
35524 echo "#! /bin/sh" >conf$$.sh
35525 echo "exit 0" >>conf$$.sh
35527 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35535 # Support unset when possible.
35536 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35544 # We need space, tab and new line, in precisely that order. Quoting is
35545 # there to prevent editors from complaining about space-tab.
35546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35547 # splitting by setting IFS to empty value.)
35552 # Find who we are. Look in the path if we contain no directory separator.
35554 *[\\/]* ) as_myself=$0 ;;
35555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35556 for as_dir in $PATH
35559 test -z "$as_dir" && as_dir=.
35560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35566 # We did not find ourselves, most probably we were run as `sh COMMAND'
35567 # in which case we are not to be found in the path.
35568 if test "x$as_myself" = x; then
35571 if test ! -f "$as_myself"; then
35572 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35573 { (exit 1); exit 1; }
35576 # Work around bugs in pre-3.0 UWIN ksh.
35577 for as_var in ENV MAIL MAILPATH
35578 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35586 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35587 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35588 LC_TELEPHONE LC_TIME
35590 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35591 eval $as_var=C; export $as_var
35593 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35597 # Required to use basename.
35598 if expr a : '\(a\)' >/dev/null 2>&1 &&
35599 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35605 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35606 as_basename=basename
35612 # Name of the executable.
35613 as_me=`$as_basename -- "$0" ||
35614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35615 X"$0" : 'X\(//\)$' \| \
35616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35618 sed '/^.*\/\([^/][^/]*\)\/*$/{
35637 as_lineno_1=$LINENO
35638 as_lineno_2=$LINENO
35639 test "x$as_lineno_1" != "x$as_lineno_2" &&
35640 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35642 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35643 # uniformly replaced by the line number. The first 'sed' inserts a
35644 # line-number line after each line using $LINENO; the second 'sed'
35645 # does the real work. The second script uses 'N' to pair each
35646 # line-number line with the line containing $LINENO, and appends
35647 # trailing '-' during substitution so that $LINENO is not a special
35648 # case at line end.
35649 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35650 # scripts with optimization help from Paolo Bonzini. Blame Lee
35651 # E. McMahon (1931-1989) for sed's syntax. :-)
35663 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35666 ' >$as_me.lineno &&
35667 chmod +x "$as_me.lineno" ||
35668 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35669 { (exit 1); exit 1; }; }
35671 # Don't try to exec as it changes $[0], causing all sort of problems
35672 # (the dirname of $[0] is not the place where we might find the
35673 # original and so on. Autoconf is especially sensitive to this).
35674 . "./$as_me.lineno"
35675 # Exit status is that of the last command.
35680 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35686 ECHO_C= ECHO_N= ECHO_T=
35687 case `echo -n x` in
35689 case `echo 'x\c'` in
35690 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35697 if expr a : '\(a\)' >/dev/null 2>&1 &&
35698 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35704 rm -f conf$$ conf$$.exe conf$$.file
35705 if test -d conf$$.dir; then
35706 rm -f conf$$.dir/conf$$.file
35712 if ln -s conf$$.file conf$$ 2>/dev/null; then
35714 # ... but there are two gotchas:
35715 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35716 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35717 # In both cases, we have to default to `cp -p'.
35718 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35720 elif ln conf$$.file conf$$ 2>/dev/null; then
35725 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35726 rmdir conf$$.dir 2>/dev/null
35728 if mkdir -p . 2>/dev/null; then
35731 test -d ./-p && rmdir ./-p
35735 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35736 # systems may use methods other than mode bits to determine executability.
35737 cat >conf$$.file <<_ASEOF
35741 chmod +x conf$$.file
35742 if test -x conf$$.file >/dev/null 2>&1; then
35743 as_executable_p="test -x"
35749 # Sed expression to map a string onto a valid CPP name.
35750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35752 # Sed expression to map a string onto a valid variable name.
35753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35758 # Save the log message, to keep $[0] and so on meaningful, and to
35759 # report actual input values of CONFIG_FILES etc. instead of their
35760 # values after options handling.
35762 This file was extended by llvm $as_me 2.7svn, which was
35763 generated by GNU Autoconf 2.60. Invocation command line was
35765 CONFIG_FILES = $CONFIG_FILES
35766 CONFIG_HEADERS = $CONFIG_HEADERS
35767 CONFIG_LINKS = $CONFIG_LINKS
35768 CONFIG_COMMANDS = $CONFIG_COMMANDS
35771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35776 cat >>$CONFIG_STATUS <<_ACEOF
35777 # Files that config.status was made for.
35778 config_files="$ac_config_files"
35779 config_headers="$ac_config_headers"
35780 config_commands="$ac_config_commands"
35784 cat >>$CONFIG_STATUS <<\_ACEOF
35786 \`$as_me' instantiates files from templates according to the
35787 current configuration.
35789 Usage: $0 [OPTIONS] [FILE]...
35791 -h, --help print this help, then exit
35792 -V, --version print version number, then exit
35793 -q, --quiet do not print progress messages
35794 -d, --debug don't remove temporary files
35795 --recheck update $as_me by reconfiguring in the same conditions
35796 --file=FILE[:TEMPLATE]
35797 instantiate the configuration file FILE
35798 --header=FILE[:TEMPLATE]
35799 instantiate the configuration header FILE
35801 Configuration files:
35804 Configuration headers:
35807 Configuration commands:
35810 Report bugs to <bug-autoconf@gnu.org>."
35813 cat >>$CONFIG_STATUS <<_ACEOF
35815 llvm config.status 2.7svn
35816 configured by $0, generated by GNU Autoconf 2.60,
35817 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35819 Copyright (C) 2006 Free Software Foundation, Inc.
35820 This config.status script is free software; the Free Software Foundation
35821 gives unlimited permission to copy, distribute and modify it."
35828 cat >>$CONFIG_STATUS <<\_ACEOF
35829 # If no file are specified by the user, then we need to provide default
35830 # value. By we need to know if files were specified by the user.
35836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35837 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35848 # Handling of the options.
35849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35851 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35852 echo "$ac_cs_version"; exit ;;
35853 --debug | --debu | --deb | --de | --d | -d )
35855 --file | --fil | --fi | --f )
35857 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35858 ac_need_defaults=false;;
35859 --header | --heade | --head | --hea )
35861 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35862 ac_need_defaults=false;;
35864 # Conflict between --help and --header
35865 { echo "$as_me: error: ambiguous option: $1
35866 Try \`$0 --help' for more information." >&2
35867 { (exit 1); exit 1; }; };;
35868 --help | --hel | -h )
35869 echo "$ac_cs_usage"; exit ;;
35870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35871 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35874 # This is an error.
35875 -*) { echo "$as_me: error: unrecognized option: $1
35876 Try \`$0 --help' for more information." >&2
35877 { (exit 1); exit 1; }; } ;;
35879 *) ac_config_targets="$ac_config_targets $1"
35880 ac_need_defaults=false ;;
35886 ac_configure_extra_args=
35888 if $ac_cs_silent; then
35890 ac_configure_extra_args="$ac_configure_extra_args --silent"
35894 cat >>$CONFIG_STATUS <<_ACEOF
35895 if \$ac_cs_recheck; then
35896 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35897 CONFIG_SHELL=$SHELL
35898 export CONFIG_SHELL
35899 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35903 cat >>$CONFIG_STATUS <<\_ACEOF
35907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35908 ## Running $as_me. ##
35914 cat >>$CONFIG_STATUS <<_ACEOF
35918 llvm_src="${srcdir}"
35922 cat >>$CONFIG_STATUS <<\_ACEOF
35924 # Handling of arguments.
35925 for ac_config_target in $ac_config_targets
35927 case $ac_config_target in
35928 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35929 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35930 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35931 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35932 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35933 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35934 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35935 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35936 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35937 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35938 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35939 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35940 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35941 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35942 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35943 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35944 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35945 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35946 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35947 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35948 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35949 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35950 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35951 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35954 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35955 { (exit 1); exit 1; }; };;
35960 # If the user did not use the arguments to specify the items to instantiate,
35961 # then the envvar interface is used. Set only those that are not.
35962 # We use the long form for the default assignment because of an extremely
35963 # bizarre bug on SunOS 4.1.3.
35964 if $ac_need_defaults; then
35965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35970 # Have a temporary directory for convenience. Make it in the build tree
35971 # simply because there is no reason against having it here, and in addition,
35972 # creating and moving files from /tmp can sometimes cause problems.
35973 # Hook for its removal unless debugging.
35974 # Note that there is a small window in which the directory will not be cleaned:
35975 # after its creation but before its name has been assigned to `$tmp'.
35979 trap 'exit_status=$?
35980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35982 trap '{ (exit 1); exit 1; }' 1 2 13 15
35984 # Create a (secure) tmp directory for tmp files.
35987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35988 test -n "$tmp" && test -d "$tmp"
35991 tmp=./conf$$-$RANDOM
35992 (umask 077 && mkdir "$tmp")
35995 echo "$me: cannot create a temporary directory in ." >&2
35996 { (exit 1); exit 1; }
36000 # Set up the sed scripts for CONFIG_FILES section.
36003 # No need to generate the scripts if there are no CONFIG_FILES.
36004 # This happens for instance when ./config.status config.h
36005 if test -n "$CONFIG_FILES"; then
36012 for ac_last_try in false false false false false :; do
36013 cat >conf$$subs.sed <<_ACEOF
36014 SHELL!$SHELL$ac_delim
36015 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36016 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36017 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36018 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36019 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36020 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36021 exec_prefix!$exec_prefix$ac_delim
36022 prefix!$prefix$ac_delim
36023 program_transform_name!$program_transform_name$ac_delim
36024 bindir!$bindir$ac_delim
36025 sbindir!$sbindir$ac_delim
36026 libexecdir!$libexecdir$ac_delim
36027 datarootdir!$datarootdir$ac_delim
36028 datadir!$datadir$ac_delim
36029 sysconfdir!$sysconfdir$ac_delim
36030 sharedstatedir!$sharedstatedir$ac_delim
36031 localstatedir!$localstatedir$ac_delim
36032 includedir!$includedir$ac_delim
36033 oldincludedir!$oldincludedir$ac_delim
36034 docdir!$docdir$ac_delim
36035 infodir!$infodir$ac_delim
36036 htmldir!$htmldir$ac_delim
36037 dvidir!$dvidir$ac_delim
36038 pdfdir!$pdfdir$ac_delim
36039 psdir!$psdir$ac_delim
36040 libdir!$libdir$ac_delim
36041 localedir!$localedir$ac_delim
36042 mandir!$mandir$ac_delim
36043 DEFS!$DEFS$ac_delim
36044 ECHO_C!$ECHO_C$ac_delim
36045 ECHO_N!$ECHO_N$ac_delim
36046 ECHO_T!$ECHO_T$ac_delim
36047 LIBS!$LIBS$ac_delim
36048 build_alias!$build_alias$ac_delim
36049 host_alias!$host_alias$ac_delim
36050 target_alias!$target_alias$ac_delim
36051 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36052 subdirs!$subdirs$ac_delim
36053 build!$build$ac_delim
36054 build_cpu!$build_cpu$ac_delim
36055 build_vendor!$build_vendor$ac_delim
36056 build_os!$build_os$ac_delim
36057 host!$host$ac_delim
36058 host_cpu!$host_cpu$ac_delim
36059 host_vendor!$host_vendor$ac_delim
36060 host_os!$host_os$ac_delim
36061 target!$target$ac_delim
36062 target_cpu!$target_cpu$ac_delim
36063 target_vendor!$target_vendor$ac_delim
36064 target_os!$target_os$ac_delim
36066 HOST_OS!$HOST_OS$ac_delim
36067 TARGET_OS!$TARGET_OS$ac_delim
36068 LINKALL!$LINKALL$ac_delim
36069 NOLINKALL!$NOLINKALL$ac_delim
36070 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36071 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36072 ARCH!$ARCH$ac_delim
36073 ENDIAN!$ENDIAN$ac_delim
36075 CFLAGS!$CFLAGS$ac_delim
36076 LDFLAGS!$LDFLAGS$ac_delim
36077 CPPFLAGS!$CPPFLAGS$ac_delim
36078 ac_ct_CC!$ac_ct_CC$ac_delim
36079 EXEEXT!$EXEEXT$ac_delim
36080 OBJEXT!$OBJEXT$ac_delim
36082 GREP!$GREP$ac_delim
36083 EGREP!$EGREP$ac_delim
36084 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36085 BUILD_CC!$BUILD_CC$ac_delim
36086 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36087 BUILD_CXX!$BUILD_CXX$ac_delim
36088 CVSBUILD!$CVSBUILD$ac_delim
36089 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36090 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36091 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36092 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36093 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36094 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36096 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36097 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36098 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36099 ENABLE_PIC!$ENABLE_PIC$ac_delim
36100 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36101 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36102 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36103 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36104 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36105 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36106 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36107 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36108 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36110 CXXFLAGS!$CXXFLAGS$ac_delim
36113 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36115 elif $ac_last_try; then
36116 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36118 { (exit 1); exit 1; }; }
36120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36125 if test -n "$ac_eof"; then
36126 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36127 ac_eof=`expr $ac_eof + 1`
36130 cat >>$CONFIG_STATUS <<_ACEOF
36131 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36136 s/^/s,@/; s/!/@,|#_!!_#|/
36139 s/'"$ac_delim"'$/,g/; t
36141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36142 ' >>$CONFIG_STATUS <conf$$subs.sed
36143 rm -f conf$$subs.sed
36144 cat >>$CONFIG_STATUS <<_ACEOF
36150 for ac_last_try in false false false false false :; do
36151 cat >conf$$subs.sed <<_ACEOF
36152 ac_ct_CXX!$ac_ct_CXX$ac_delim
36154 ifGNUmake!$ifGNUmake$ac_delim
36155 LN_S!$LN_S$ac_delim
36158 DATE!$DATE$ac_delim
36159 FIND!$FIND$ac_delim
36160 MKDIR!$MKDIR$ac_delim
36162 RANLIB!$RANLIB$ac_delim
36166 BINPWD!$BINPWD$ac_delim
36167 GRAPHVIZ!$GRAPHVIZ$ac_delim
36170 NEATO!$NEATO$ac_delim
36171 TWOPI!$TWOPI$ac_delim
36172 CIRCO!$CIRCO$ac_delim
36174 DOTTY!$DOTTY$ac_delim
36175 PERL!$PERL$ac_delim
36176 HAVE_PERL!$HAVE_PERL$ac_delim
36177 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36178 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36179 INSTALL_DATA!$INSTALL_DATA$ac_delim
36180 BZIP2!$BZIP2$ac_delim
36181 DOXYGEN!$DOXYGEN$ac_delim
36182 GROFF!$GROFF$ac_delim
36183 GZIP!$GZIP$ac_delim
36184 POD2HTML!$POD2HTML$ac_delim
36185 POD2MAN!$POD2MAN$ac_delim
36186 RUNTEST!$RUNTEST$ac_delim
36187 TCLSH!$TCLSH$ac_delim
36189 OCAMLC!$OCAMLC$ac_delim
36190 OCAMLOPT!$OCAMLOPT$ac_delim
36191 OCAMLDEP!$OCAMLDEP$ac_delim
36192 OCAMLDOC!$OCAMLDOC$ac_delim
36194 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36195 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36196 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36197 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36198 LIBADD_DL!$LIBADD_DL$ac_delim
36199 ECHO!$ECHO$ac_delim
36201 STRIP!$STRIP$ac_delim
36202 CXXCPP!$CXXCPP$ac_delim
36204 FFLAGS!$FFLAGS$ac_delim
36205 ac_ct_F77!$ac_ct_F77$ac_delim
36206 LIBTOOL!$LIBTOOL$ac_delim
36207 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36208 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36209 LLVMGCC!$LLVMGCC$ac_delim
36210 LLVMGXX!$LLVMGXX$ac_delim
36211 USE_UDIS86!$USE_UDIS86$ac_delim
36212 USE_OPROFILE!$USE_OPROFILE$ac_delim
36213 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36214 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36215 ALLOCA!$ALLOCA$ac_delim
36216 MMAP_FILE!$MMAP_FILE$ac_delim
36217 LLVMCC1!$LLVMCC1$ac_delim
36218 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36219 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36220 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36221 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36222 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36223 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36224 SHLIBEXT!$SHLIBEXT$ac_delim
36225 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36226 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36227 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36228 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36229 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36230 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36231 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36232 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36233 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36234 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36235 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36236 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36237 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36238 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36239 RPATH!$RPATH$ac_delim
36240 RDYNAMIC!$RDYNAMIC$ac_delim
36241 LIBOBJS!$LIBOBJS$ac_delim
36242 LTLIBOBJS!$LTLIBOBJS$ac_delim
36245 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
36247 elif $ac_last_try; then
36248 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36249 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36250 { (exit 1); exit 1; }; }
36252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36256 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36257 if test -n "$ac_eof"; then
36258 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36259 ac_eof=`expr $ac_eof + 1`
36262 cat >>$CONFIG_STATUS <<_ACEOF
36263 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36267 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36268 s/^/s,@/; s/!/@,|#_!!_#|/
36271 s/'"$ac_delim"'$/,g/; t
36273 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36274 ' >>$CONFIG_STATUS <conf$$subs.sed
36275 rm -f conf$$subs.sed
36276 cat >>$CONFIG_STATUS <<_ACEOF
36283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36285 # trailing colons and then remove the whole line if VPATH becomes empty
36286 # (actually we leave an empty line to preserve line numbers).
36287 if test "x$srcdir" = x.; then
36288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36289 s/:*\$(srcdir):*/:/
36290 s/:*\${srcdir}:*/:/
36292 s/^\([^=]*=[ ]*\):*/\1/
36298 cat >>$CONFIG_STATUS <<\_ACEOF
36299 fi # test -n "$CONFIG_FILES"
36302 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36305 :[FHLC]) ac_mode=$ac_tag; continue;;
36307 case $ac_mode$ac_tag in
36309 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36310 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36311 { (exit 1); exit 1; }; };;
36312 :[FH]-) ac_tag=-:-;;
36313 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36330 -) ac_f="$tmp/stdin";;
36331 *) # Look for the file first in the build tree, then in the source tree
36332 # (if the path is not absolute). The absolute path cannot be DOS-style,
36333 # because $ac_f cannot contain `:'.
36337 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36339 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36340 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36341 { (exit 1); exit 1; }; };;
36343 ac_file_inputs="$ac_file_inputs $ac_f"
36346 # Let's still pretend it is `configure' which instantiates (i.e., don't
36347 # use $as_me), people would be surprised to read:
36348 # /* config.h. Generated by config.status. */
36349 configure_input="Generated from "`IFS=:
36350 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36351 if test x"$ac_file" != x-; then
36352 configure_input="$ac_file. $configure_input"
36353 { echo "$as_me:$LINENO: creating $ac_file" >&5
36354 echo "$as_me: creating $ac_file" >&6;}
36358 *:-:* | *:-) cat >"$tmp/stdin";;
36363 ac_dir=`$as_dirname -- "$ac_file" ||
36364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36365 X"$ac_file" : 'X\(//\)[^/]' \| \
36366 X"$ac_file" : 'X\(//\)$' \| \
36367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36373 /^X\(\/\/\)[^/].*/{
36388 -*) as_dir=./$as_dir;;
36390 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36394 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36395 *) as_qdir=$as_dir;;
36397 as_dirs="'$as_qdir' $as_dirs"
36398 as_dir=`$as_dirname -- "$as_dir" ||
36399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36400 X"$as_dir" : 'X\(//\)[^/]' \| \
36401 X"$as_dir" : 'X\(//\)$' \| \
36402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36408 /^X\(\/\/\)[^/].*/{
36421 test -d "$as_dir" && break
36423 test -z "$as_dirs" || eval "mkdir $as_dirs"
36424 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36425 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36426 { (exit 1); exit 1; }; }; }
36430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36432 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36433 # A ".." for each directory in $ac_dir_suffix.
36434 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36435 case $ac_top_builddir_sub in
36436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36440 ac_abs_top_builddir=$ac_pwd
36441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36442 # for backward compatibility:
36443 ac_top_builddir=$ac_top_build_prefix
36446 .) # We are building in place.
36448 ac_top_srcdir=$ac_top_builddir_sub
36449 ac_abs_top_srcdir=$ac_pwd ;;
36450 [\\/]* | ?:[\\/]* ) # Absolute name.
36451 ac_srcdir=$srcdir$ac_dir_suffix;
36452 ac_top_srcdir=$srcdir
36453 ac_abs_top_srcdir=$srcdir ;;
36454 *) # Relative name.
36455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36456 ac_top_srcdir=$ac_top_build_prefix$srcdir
36457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36470 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36474 cat >>$CONFIG_STATUS <<\_ACEOF
36475 # If the template does not know about datarootdir, expand it.
36476 # FIXME: This hack should be removed a few years after 2.60.
36477 ac_datarootdir_hack=; ac_datarootdir_seen=
36479 case `sed -n '/datarootdir/ {
36488 ' $ac_file_inputs` in
36489 *datarootdir*) ac_datarootdir_seen=yes;;
36490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36491 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36492 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36494 cat >>$CONFIG_STATUS <<_ACEOF
36495 ac_datarootdir_hack='
36496 s&@datadir@&$datadir&g
36497 s&@docdir@&$docdir&g
36498 s&@infodir@&$infodir&g
36499 s&@localedir@&$localedir&g
36500 s&@mandir@&$mandir&g
36501 s&\\\${datarootdir}&$datarootdir&g' ;;
36505 # Neutralize VPATH when `$srcdir' = `.'.
36506 # Shell code in configure.ac might set extrasub.
36507 # FIXME: do we really want to maintain this feature?
36508 cat >>$CONFIG_STATUS <<_ACEOF
36512 cat >>$CONFIG_STATUS <<\_ACEOF
36514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36515 s&@configure_input@&$configure_input&;t t
36516 s&@top_builddir@&$ac_top_builddir_sub&;t t
36517 s&@srcdir@&$ac_srcdir&;t t
36518 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36519 s&@top_srcdir@&$ac_top_srcdir&;t t
36520 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36521 s&@builddir@&$ac_builddir&;t t
36522 s&@abs_builddir@&$ac_abs_builddir&;t t
36523 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36524 s&@INSTALL@&$ac_INSTALL&;t t
36525 $ac_datarootdir_hack
36526 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36528 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36529 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36530 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36531 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36532 which seems to be undefined. Please make sure it is defined." >&5
36533 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36534 which seems to be undefined. Please make sure it is defined." >&2;}
36538 -) cat "$tmp/out"; rm -f "$tmp/out";;
36539 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36548 # Transform confdefs.h into a sed script `conftest.defines', that
36549 # substitutes the proper values into config.h.in to produce config.h.
36550 rm -f conftest.defines conftest.tail
36551 # First, append a space to every undef/define line, to ease matching.
36552 echo 's/$/ /' >conftest.defines
36553 # Then, protect against being on the right side of a sed subst, or in
36554 # an unquoted here document, in config.status. If some macros were
36555 # called several times there might be several #defines for the same
36556 # symbol, which is useless. But do not sort them, since the last
36557 # AC_DEFINE must be honored.
36558 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36559 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36560 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36561 # PARAMS is the parameter list in the macro definition--in most cases, it's
36562 # just an empty string.
36563 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36564 ac_dB='\\)[ (].*,\\1define\\2'
36572 s/^[ ]*#[ ]*define[ ][ ]*//
36577 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36578 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36579 ' >>conftest.defines
36581 # Remove the space that was appended to ease matching.
36582 # Then replace #undef with comments. This is necessary, for
36583 # example, in the case of _POSIX_SOURCE, which is predefined and required
36584 # on some systems where configure will not decide to define it.
36585 # (The regexp can be short, since the line contains either #define or #undef.)
36587 s,^[ #]*u.*,/* & */,' >>conftest.defines
36589 # Break up conftest.defines:
36590 ac_max_sed_lines=50
36592 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36593 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36594 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36596 ac_in='$ac_file_inputs'
36597 ac_out='"$tmp/out1"'
36598 ac_nxt='"$tmp/out2"'
36602 # Write a here document:
36603 cat >>$CONFIG_STATUS <<_ACEOF
36604 # First, check the format of the line:
36605 cat >"\$tmp/defines.sed" <<\\CEOF
36606 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36607 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36611 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36613 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36614 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36615 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36616 grep . conftest.tail >/dev/null || break
36617 rm -f conftest.defines
36618 mv conftest.tail conftest.defines
36620 rm -f conftest.defines conftest.tail
36622 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36623 cat >>$CONFIG_STATUS <<\_ACEOF
36624 if test x"$ac_file" != x-; then
36625 echo "/* $configure_input */" >"$tmp/config.h"
36626 cat "$ac_result" >>"$tmp/config.h"
36627 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36628 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36629 echo "$as_me: $ac_file is unchanged" >&6;}
36632 mv "$tmp/config.h" $ac_file
36635 echo "/* $configure_input */"
36641 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36642 echo "$as_me: executing $ac_file commands" >&6;}
36647 case $ac_file$ac_mode in
36648 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36650 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36651 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36652 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36653 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36654 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36655 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36656 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36657 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36658 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36659 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36660 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36662 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36664 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36666 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36668 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36670 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36671 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36672 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36673 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36679 { (exit 0); exit 0; }
36681 chmod +x $CONFIG_STATUS
36682 ac_clean_files=$ac_clean_files_save
36685 # configure is writing to config.log, and then calls config.status.
36686 # config.status does its own redirection, appending to config.log.
36687 # Unfortunately, on DOS this fails, as config.log is still kept open
36688 # by configure, so config.status won't be able to write to it; its
36689 # output is simply discarded. So we exec the FD to /dev/null,
36690 # effectively closing config.log, so it can be properly (re)opened and
36691 # appended to by config.status. When coming back to configure, we
36692 # need to make the FD available again.
36693 if test "$no_create" != yes; then
36695 ac_config_status_args=
36696 test "$silent" = yes &&
36697 ac_config_status_args="$ac_config_status_args --quiet"
36699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36702 # would make configure fail if this is the last instruction.
36703 $ac_cs_success || { (exit 1); exit 1; }
36707 # CONFIG_SUBDIRS section.
36709 if test "$no_recursion" != yes; then
36711 # Remove --cache-file and --srcdir arguments so they do not pile up.
36712 ac_sub_configure_args=
36714 eval "set x $ac_configure_args"
36718 if test -n "$ac_prev"; then
36723 -cache-file | --cache-file | --cache-fil | --cache-fi \
36724 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36725 ac_prev=cache_file ;;
36726 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36727 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36730 --config-cache | -C)
36732 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36734 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36736 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36738 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36742 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36744 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36748 # Always prepend --prefix to ensure using the same prefix
36749 # in subdir configurations.
36750 ac_arg="--prefix=$prefix"
36752 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36754 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36757 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36759 # Do not complain, so a configure script can configure whichever
36760 # parts of a large source tree are present.
36761 test -d "$srcdir/$ac_dir" || continue
36763 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36764 echo "$as_me:$LINENO: $ac_msg" >&5
36768 -*) as_dir=./$as_dir;;
36770 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36774 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36775 *) as_qdir=$as_dir;;
36777 as_dirs="'$as_qdir' $as_dirs"
36778 as_dir=`$as_dirname -- "$as_dir" ||
36779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36780 X"$as_dir" : 'X\(//\)[^/]' \| \
36781 X"$as_dir" : 'X\(//\)$' \| \
36782 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36788 /^X\(\/\/\)[^/].*/{
36801 test -d "$as_dir" && break
36803 test -z "$as_dirs" || eval "mkdir $as_dirs"
36804 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36805 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36806 { (exit 1); exit 1; }; }; }
36810 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36812 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36813 # A ".." for each directory in $ac_dir_suffix.
36814 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36815 case $ac_top_builddir_sub in
36816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36820 ac_abs_top_builddir=$ac_pwd
36821 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36822 # for backward compatibility:
36823 ac_top_builddir=$ac_top_build_prefix
36826 .) # We are building in place.
36828 ac_top_srcdir=$ac_top_builddir_sub
36829 ac_abs_top_srcdir=$ac_pwd ;;
36830 [\\/]* | ?:[\\/]* ) # Absolute name.
36831 ac_srcdir=$srcdir$ac_dir_suffix;
36832 ac_top_srcdir=$srcdir
36833 ac_abs_top_srcdir=$srcdir ;;
36834 *) # Relative name.
36835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36836 ac_top_srcdir=$ac_top_build_prefix$srcdir
36837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36839 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36844 # Check for guested configure; otherwise get Cygnus style configure.
36845 if test -f "$ac_srcdir/configure.gnu"; then
36846 ac_sub_configure=$ac_srcdir/configure.gnu
36847 elif test -f "$ac_srcdir/configure"; then
36848 ac_sub_configure=$ac_srcdir/configure
36849 elif test -f "$ac_srcdir/configure.in"; then
36850 # This should be Cygnus configure.
36851 ac_sub_configure=$ac_aux_dir/configure
36853 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36854 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36858 # The recursion is here.
36859 if test -n "$ac_sub_configure"; then
36860 # Make the cache file name correct relative to the subdirectory.
36861 case $cache_file in
36862 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36863 *) # Relative name.
36864 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36867 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36868 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36869 # The eval makes quoting arguments work.
36870 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36871 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36872 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36873 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36874 { (exit 1); exit 1; }; }