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
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
850 LLVM_ENUM_DISASSEMBLERS
856 ENABLE_LLVMC_DYNAMIC_PLUGINS
903 CONVENIENCE_LTDL_TRUE
904 CONVENIENCE_LTDL_FALSE
919 NO_MISSING_FIELD_INITIALIZERS
947 ENABLE_VISIBILITY_INLINES_HIDDEN
953 ac_precious_vars='build_alias
967 ac_subdirs_all='projects/sample
969 projects/llvm-stacker
976 projects/llvm-poolalloc
978 projects/llvm-kernel'
980 # Initialize some variables set by options.
982 ac_init_version=false
983 # The variables have the same names as the options, with
984 # dashes changed to underlines.
992 program_transform_name=s,x,x,
1000 # Installation directory options.
1001 # These are left unexpanded so users can "make install exec_prefix=/foo"
1002 # and all the variables that are supposed to be based on exec_prefix
1003 # by default will actually change.
1004 # Use braces instead of parens because sh, perl, etc. also accept them.
1005 # (The list follows the same order as the GNU Coding Standards.)
1006 bindir='${exec_prefix}/bin'
1007 sbindir='${exec_prefix}/sbin'
1008 libexecdir='${exec_prefix}/libexec'
1009 datarootdir='${prefix}/share'
1010 datadir='${datarootdir}'
1011 sysconfdir='${prefix}/etc'
1012 sharedstatedir='${prefix}/com'
1013 localstatedir='${prefix}/var'
1014 includedir='${prefix}/include'
1015 oldincludedir='/usr/include'
1016 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1017 infodir='${datarootdir}/info'
1022 libdir='${exec_prefix}/lib'
1023 localedir='${datarootdir}/locale'
1024 mandir='${datarootdir}/man'
1030 # If the previous option needs an argument, assign it.
1031 if test -n "$ac_prev"; then
1032 eval $ac_prev=\$ac_option
1038 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1044 case $ac_dashdash$ac_option in
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1068 -datadir | --datadir | --datadi | --datad)
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1080 -disable-* | --disable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087 eval enable_$ac_feature=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1106 eval enable_$ac_feature=\$ac_optarg ;;
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 htmldir=$ac_optarg ;;
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1151 -libdir | --libdir | --libdi | --libd)
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1242 -psdir | --psdir | --psdi | --psd | --ps)
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 sbindir=$ac_optarg ;;
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 sharedstatedir=$ac_optarg ;;
1268 -site | --site | --sit)
1270 -site=* | --site=* | --sit=*)
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1297 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid package name: $ac_package" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_package=`echo $ac_package| sed 's/-/_/g'`
1303 eval with_$ac_package=\$ac_optarg ;;
1305 -without-* | --without-*)
1306 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid package name: $ac_package" >&2
1310 { (exit 1); exit 1; }; }
1311 ac_package=`echo $ac_package | sed 's/-/_/g'`
1312 eval with_$ac_package=no ;;
1315 # Obsolete; use --with-x.
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) { echo "$as_me: error: unrecognized option: $ac_option
1333 Try \`$0 --help' for more information." >&2
1334 { (exit 1); exit 1; }; }
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1341 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1342 { (exit 1); exit 1; }; }
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 { echo "$as_me: error: missing argument to $ac_option" >&2
1360 { (exit 1); exit 1; }; }
1363 # Be sure to have absolute directory names.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val=\$$ac_var
1371 [\\/$]* | ?:[\\/]* ) continue;;
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1375 { (exit 1); exit 1; }; }
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399 test "$silent" = yes && exec 6>/dev/null
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 { echo "$as_me: error: Working directory cannot be determined" >&2
1406 { (exit 1); exit 1; }; }
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408 { echo "$as_me: error: pwd does not report name of working directory" >&2
1409 { (exit 1); exit 1; }; }
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$0" ||
1417 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$0" : 'X\(//\)[^/]' \| \
1419 X"$0" : 'X\(//\)$' \| \
1420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1444 ac_srcdir_defaulted=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1449 { (exit 1); exit 1; }; }
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1454 { (exit 1); exit 1; }; }
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 --target=TARGET configure for building compilers for TARGET [HOST]
1544 if test -n "$ac_init_help"; then
1545 case $ac_init_help in
1546 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-optimized Compile with optimizations enabled (default is NO)
1554 --enable-profiling Compile with profiling enabled (default is NO)
1555 --enable-assertions Compile with assertion checks enabled (default is
1557 --enable-expensive-checks
1558 Compile with expensive debug checks enabled (default
1560 --enable-debug-runtime Build runtime libs with debug symbols (default is
1562 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1563 optimization is on and YES if it's off)
1564 --enable-jit Enable Just In Time Compiling (default is YES)
1565 --enable-doxygen Build doxygen documentation (default is NO)
1566 --enable-threads Use threads if available (default is YES)
1567 --enable-pic Build LLVM with Position Independent Code (default
1569 --enable-targets Build specific host targets: all or
1570 target1,target2,... Valid targets are: host, x86,
1571 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1572 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1573 and cpp (default=all)
1574 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1576 --enable-bindings Build specific language bindings:
1577 all,auto,none,{binding-name} (default=auto)
1578 --enable-libffi Check for the presence of libffi (default is YES)
1579 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1581 --enable-llvmc-dynamic-plugins
1582 Enable dynamic LLVMC plugins (default is YES)
1583 --enable-ltdl-install install libltdl
1584 --enable-shared[=PKGS] build shared libraries
1586 --enable-static[=PKGS] build static libraries
1588 --enable-fast-install[=PKGS]
1589 optimize for fast installation
1591 --disable-libtool-lock avoid locking (might break parallel builds)
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1598 --with-llvmgcc Specify location of llvm-gcc driver (default
1600 --with-llvmgxx Specify location of llvm-g++ driver (default
1602 --with-optimize-option Select the compiler options to use for optimized
1604 --with-extra-options Specify additional options to compile LLVM with
1605 --with-ocaml-libdir Specify install location for ocaml bindings (default
1607 --with-c-include-dirs Colon separated list of directories clang will
1609 --with-cxx-include-root Directory with the libstdc++ headers.
1610 --with-cxx-include-arch Architecture of the libstdc++ headers.
1611 --with-cxx-include-32bit-dir
1612 32 bit multilib dir.
1613 --with-cxx-include-64bit-dir
1614 64 bit multilib directory.
1615 --with-binutils-include Specify path to binutils/include/ containing
1616 plugin-api.h file for gold plugin.
1617 --with-tclinclude directory where tcl headers are
1618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1619 --with-pic try to use only PIC/non-PIC objects [default=use
1621 --with-tags[=TAGS] include additional configurations [automatic]
1622 --with-udis86=<path> Use udis86 external x86 disassembler library
1623 --with-oprofile=<prefix>
1624 Tell OProfile >= 0.9.4 how to symbolize JIT output
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1636 CXXCPP C++ preprocessor
1637 F77 Fortran 77 compiler command
1638 FFLAGS Fortran 77 compiler flags
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to <llvmbugs@cs.uiuc.edu>.
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" || continue
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1671 .) # We are building in place.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1695 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1704 llvm configure 2.7svn
1705 generated by GNU Autoconf 2.60
1707 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1708 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1712 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1716 cat >config.log <<_ACEOF
1717 This file contains any messages produced by compilers while
1718 running configure, to aid debugging if configure makes a mistake.
1720 It was created by llvm $as_me 2.7svn, which was
1721 generated by GNU Autoconf 2.60. Invocation command line was
1733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 echo "PATH: $as_dir"
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1781 ac_must_keep_next=false
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1792 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1810 -* ) ac_must_keep_next=true ;;
1813 ac_configure_args="$ac_configure_args '$ac_arg'"
1818 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log. We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1832 ## ---------------- ##
1833 ## Cache variables. ##
1834 ## ---------------- ##
1837 # The following way of writing the cache mishandles newlines in values,
1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840 eval ac_val=\$$ac_var
1844 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1845 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1848 _ | IFS | as_nl) ;; #(
1849 *) $as_unset $ac_var ;;
1854 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855 *${as_nl}ac_space=\ *)
1857 "s/'\''/'\''\\\\'\'''\''/g;
1858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869 ## ----------------- ##
1870 ## Output variables. ##
1871 ## ----------------- ##
1874 for ac_var in $ac_subst_vars
1876 eval ac_val=\$$ac_var
1878 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 echo "$ac_var='\''$ac_val'\''"
1884 if test -n "$ac_subst_files"; then
1886 ## ------------------- ##
1887 ## File substitutions. ##
1888 ## ------------------- ##
1891 for ac_var in $ac_subst_files
1893 eval ac_val=\$$ac_var
1895 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 echo "$ac_var='\''$ac_val'\''"
1902 if test -s confdefs.h; then
1912 test "$ac_signal" != 0 &&
1913 echo "$as_me: caught signal $ac_signal"
1914 echo "$as_me: exit $exit_status"
1916 rm -f core *.core core.conftest.* &&
1917 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1920 for ac_signal in 1 2 13 15; do
1921 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1925 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1926 rm -f -r conftest* confdefs.h
1928 # Predefined preprocessor variables.
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_NAME "$PACKAGE_NAME"
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_STRING "$PACKAGE_STRING"
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1955 # Let the site file select an alternate cache file if it wants to.
1956 # Prefer explicitly selected file to automatically selected ones.
1957 if test -n "$CONFIG_SITE"; then
1958 set x "$CONFIG_SITE"
1959 elif test "x$prefix" != xNONE; then
1960 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1962 set x "$ac_default_prefix/share/config.site" \
1963 "$ac_default_prefix/etc/config.site"
1968 if test -r "$ac_site_file"; then
1969 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1976 if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 echo "$as_me: loading cache $cache_file" >&6;}
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
1988 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 echo "$as_me: creating cache $cache_file" >&6;}
1993 # Check that the precious variables saved in the cache have kept the same
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
2001 case $ac_old_set,$ac_new_set in
2003 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2007 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
2013 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2014 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2015 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2016 echo "$as_me: former value: $ac_old_val" >&2;}
2017 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2018 echo "$as_me: current value: $ac_new_val" >&2;}
2019 ac_cache_corrupted=:
2022 # Pass precious variables to config.status.
2023 if test "$ac_new_set" = set; then
2025 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 *) ac_arg=$ac_var=$ac_new_val ;;
2028 case " $ac_configure_args " in
2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2034 if $ac_cache_corrupted; then
2035 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2036 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2038 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2039 { (exit 1); exit 1; }; }
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2083 for ac_dir in autoconf "$srcdir"/autoconf; do
2084 if test -f "$ac_dir/install-sh"; then
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2088 elif test -f "$ac_dir/install.sh"; then
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2092 elif test -f "$ac_dir/shtool"; then
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2098 if test -z "$ac_aux_dir"; then
2099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2101 { (exit 1); exit 1; }; }
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2114 if test ${srcdir} != "." ; then
2115 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2116 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2117 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2118 { (exit 1); exit 1; }; }
2122 for i in `ls ${srcdir}/projects`
2124 if test -d ${srcdir}/projects/${i} ; then
2127 sample) subdirs="$subdirs projects/sample"
2129 privbracket) subdirs="$subdirs projects/privbracket"
2131 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2133 # llvm-test is the old name of the test-suite, kept here for backwards
2135 llvm-test) subdirs="$subdirs projects/llvm-test"
2137 test-suite) subdirs="$subdirs projects/test-suite"
2139 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2141 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2143 llvm-java) subdirs="$subdirs projects/llvm-java"
2145 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2147 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2149 poolalloc) subdirs="$subdirs projects/poolalloc"
2151 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2154 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2155 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2162 # Make sure we can run config.sub.
2163 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2164 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2165 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2166 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: checking build system type" >&5
2169 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_build+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 ac_build_alias=$build_alias
2174 test "x$ac_build_alias" = x &&
2175 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2176 test "x$ac_build_alias" = x &&
2177 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2178 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2179 { (exit 1); exit 1; }; }
2180 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2187 echo "${ECHO_T}$ac_cv_build" >&6; }
2188 case $ac_cv_build in
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2191 echo "$as_me: error: invalid value of canonical build" >&2;}
2192 { (exit 1); exit 1; }; };;
2195 ac_save_IFS=$IFS; IFS='-'
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2205 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2208 { echo "$as_me:$LINENO: checking host system type" >&5
2209 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2210 if test "${ac_cv_host+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test "x$host_alias" = x; then
2214 ac_cv_host=$ac_cv_build
2216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2219 { (exit 1); exit 1; }; }
2223 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2224 echo "${ECHO_T}$ac_cv_host" >&6; }
2227 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2228 echo "$as_me: error: invalid value of canonical host" >&2;}
2229 { (exit 1); exit 1; }; };;
2232 ac_save_IFS=$IFS; IFS='-'
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2242 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2245 { echo "$as_me:$LINENO: checking target system type" >&5
2246 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2247 if test "${ac_cv_target+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test "x$target_alias" = x; then
2251 ac_cv_target=$ac_cv_host
2253 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2254 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2255 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2256 { (exit 1); exit 1; }; }
2260 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2261 echo "${ECHO_T}$ac_cv_target" >&6; }
2262 case $ac_cv_target in
2264 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2265 echo "$as_me: error: invalid value of canonical target" >&2;}
2266 { (exit 1); exit 1; }; };;
2268 target=$ac_cv_target
2269 ac_save_IFS=$IFS; IFS='-'
2275 # Remember, the first character of IFS is used to create $*,
2276 # except with old shells:
2279 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2282 # The aliases save the names the user supplied, while $host etc.
2283 # will get canonicalized.
2284 test -n "$target_alias" &&
2285 test "$program_prefix$program_suffix$program_transform_name" = \
2287 program_prefix=${target_alias}-
2289 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2290 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2291 if test "${llvm_cv_os_type+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="AIX"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="IRIX"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="Cygwin"
2309 llvm_cv_platform_type="Unix" ;;
2311 llvm_cv_link_all_option="-Wl,-all_load"
2312 llvm_cv_no_link_all_option="-Wl,-noall_load"
2313 llvm_cv_os_type="Darwin"
2314 llvm_cv_platform_type="Unix" ;;
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="FreeBSD"
2319 llvm_cv_platform_type="Unix" ;;
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="OpenBSD"
2324 llvm_cv_platform_type="Unix" ;;
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="NetBSD"
2329 llvm_cv_platform_type="Unix" ;;
2331 llvm_cv_link_all_option="-Wl,--whole-archive"
2332 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2333 llvm_cv_os_type="DragonFly"
2334 llvm_cv_platform_type="Unix" ;;
2336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338 llvm_cv_os_type="HP-UX"
2339 llvm_cv_platform_type="Unix" ;;
2341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343 llvm_cv_os_type="Interix"
2344 llvm_cv_platform_type="Unix" ;;
2346 llvm_cv_link_all_option="-Wl,--whole-archive"
2347 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2348 llvm_cv_os_type="Linux"
2349 llvm_cv_platform_type="Unix" ;;
2351 llvm_cv_link_all_option="-Wl,-z,allextract"
2352 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2353 llvm_cv_os_type="SunOS"
2354 llvm_cv_platform_type="Unix" ;;
2356 llvm_cv_link_all_option="-Wl,-z,allextract"
2357 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2358 llvm_cv_os_type="AuroraUX"
2359 llvm_cv_platform_type="Unix" ;;
2361 llvm_cv_link_all_option="-Wl,--whole-archive"
2362 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2363 llvm_cv_os_type="Win32"
2364 llvm_cv_platform_type="Win32" ;;
2366 llvm_cv_link_all_option="-Wl,--whole-archive"
2367 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2368 llvm_cv_os_type="MingW"
2369 llvm_cv_platform_type="Win32" ;;
2371 llvm_cv_link_all_option="-Wl,--whole-archive"
2372 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2373 llvm_cv_os_type="Haiku"
2374 llvm_cv_platform_type="Unix" ;;
2376 llvm_cv_link_all_option="-Wl,--whole-archive"
2377 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2378 llvm_cv_os_type="Freestanding"
2379 llvm_cv_platform_type="Unix" ;;
2381 llvm_cv_link_all_option="-Wl,--whole-archive"
2382 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2383 llvm_cv_os_type="Freestanding"
2384 llvm_cv_platform_type="Unix" ;;
2386 llvm_cv_link_all_option=""
2387 llvm_cv_no_link_all_option=""
2388 llvm_cv_os_type="Unknown"
2389 llvm_cv_platform_type="Unknown" ;;
2392 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2393 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2395 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2396 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2397 if test "${llvm_cv_target_os_type+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 llvm_cv_target_os_type="AIX" ;;
2404 llvm_cv_target_os_type="IRIX" ;;
2406 llvm_cv_target_os_type="Cygwin" ;;
2408 llvm_cv_target_os_type="Darwin" ;;
2410 llvm_cv_target_os_type="FreeBSD" ;;
2412 llvm_cv_target_os_type="OpenBSD" ;;
2414 llvm_cv_target_os_type="NetBSD" ;;
2416 llvm_cv_target_os_type="DragonFly" ;;
2418 llvm_cv_target_os_type="HP-UX" ;;
2420 llvm_cv_target_os_type="Interix" ;;
2422 llvm_cv_target_os_type="Linux" ;;
2424 llvm_cv_target_os_type="SunOS" ;;
2426 llvm_cv_target_os_type="AuroraUX" ;;
2428 llvm_cv_target_os_type="Win32" ;;
2430 llvm_cv_target_os_type="MingW" ;;
2432 llvm_cv_target_os_type="Haiku" ;;
2434 llvm_cv_target_os_type="Freestanding" ;;
2436 llvm_cv_target_os_type="Unknown" ;;
2439 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2440 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2442 if test "$llvm_cv_os_type" = "Unknown" ; then
2443 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2444 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2445 { (exit 1); exit 1; }; }
2450 HOST_OS=$llvm_cv_os_type
2452 TARGET_OS=$llvm_cv_target_os_type
2455 LINKALL=$llvm_cv_link_all_option
2457 NOLINKALL=$llvm_cv_no_link_all_option
2460 case $llvm_cv_platform_type in
2463 cat >>confdefs.h <<\_ACEOF
2464 #define LLVM_ON_UNIX 1
2474 cat >>confdefs.h <<\_ACEOF
2475 #define LLVM_ON_WIN32 1
2485 { echo "$as_me:$LINENO: checking target architecture" >&5
2486 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2487 if test "${llvm_cv_target_arch+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 i?86-*) llvm_cv_target_arch="x86" ;;
2492 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2493 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2494 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2495 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2496 arm*-*) llvm_cv_target_arch="ARM" ;;
2497 mips-*) llvm_cv_target_arch="Mips" ;;
2498 pic16-*) llvm_cv_target_arch="PIC16" ;;
2499 xcore-*) llvm_cv_target_arch="XCore" ;;
2500 msp430-*) llvm_cv_target_arch="MSP430" ;;
2501 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2502 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2503 *) llvm_cv_target_arch="Unknown" ;;
2506 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2507 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2509 if test "$llvm_cv_target_arch" = "Unknown" ; then
2510 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2511 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2514 # Determine the LLVM native architecture for the target
2515 case "$llvm_cv_target_arch" in
2516 x86) LLVM_NATIVE_ARCH="X86" ;;
2517 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2518 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2521 ARCH=$llvm_cv_target_arch
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test -n "$CC"; then
2559 { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2568 if test -z "$ac_cv_prog_CC"; then
2570 # Extract the first word of "gcc", so it can be a program name with args.
2571 set dummy gcc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_CC="gcc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 echo "${ECHO_T}$ac_ct_CC" >&6; }
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2606 if test "x$ac_ct_CC" = x; then
2609 case $cross_compiling:$ac_tool_warned in
2611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&5
2614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet. If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617 ac_tool_warned=yes ;;
2625 if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}cc; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_CC="${ac_tool_prefix}cc"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 if test -n "$CC"; then
2656 { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2666 if test -z "$CC"; then
2667 # Extract the first word of "cc", so it can be a program name with args.
2668 set dummy cc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2686 ac_prog_rejected=yes
2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 if test $ac_prog_rejected = yes; then
2698 # We found a bogon in the path, so make sure we never use it.
2699 set dummy $ac_cv_prog_CC
2701 if test $# != 0; then
2702 # We chose a different compiler from the bogus one.
2703 # However, it has the same basename, so the bogon will be chosen
2704 # first if we set CC to just the basename; use the full file name.
2706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2712 if test -n "$CC"; then
2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2722 if test -z "$CC"; then
2723 if test -n "$ac_tool_prefix"; then
2724 for ac_prog in cl.exe
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$CC"; then
2755 { echo "$as_me:$LINENO: result: $CC" >&5
2756 echo "${ECHO_T}$CC" >&6; }
2758 { echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6; }
2763 test -n "$CC" && break
2766 if test -z "$CC"; then
2768 for ac_prog in cl.exe
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$ac_ct_CC"; then
2778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_ac_ct_CC="$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798 if test -n "$ac_ct_CC"; then
2799 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800 echo "${ECHO_T}$ac_ct_CC" >&6; }
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$ac_ct_CC" && break
2810 if test "x$ac_ct_CC" = x; then
2813 case $cross_compiling:$ac_tool_warned in
2815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet. If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&5
2818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819 whose name does not start with the host triplet. If you think this
2820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821 ac_tool_warned=yes ;;
2830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details." >&5
2832 echo "$as_me: error: no acceptable C compiler found in \$PATH
2833 See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2836 # Provide some information about the compiler.
2837 echo "$as_me:$LINENO: checking for C compiler version" >&5
2838 ac_compiler=`set X $ac_compile; echo $2`
2839 { (ac_try="$ac_compiler --version >&5"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compiler --version >&5") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849 { (ac_try="$ac_compiler -v >&5"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compiler -v >&5") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }
2859 { (ac_try="$ac_compiler -V >&5"
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compiler -V >&5") 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 ac_clean_files_save=$ac_clean_files
2886 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2887 # Try to create an executable without -o first, disregard a.out.
2888 # It will help us diagnose broken compilers, and finding out an intuition
2890 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2891 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2892 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2894 # List of possible output files, starting from the most likely.
2895 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2896 # only as a last resort. b.out is created by i960 compilers.
2897 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2899 # The IRIX 6 linker writes into existing files which may not be
2900 # executable, retaining their permissions. Remove them first so a
2901 # subsequent execution test works.
2903 for ac_file in $ac_files
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912 if { (ac_try="$ac_link_default"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link_default") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2925 # so that the user can short-circuit this test for compilers unknown to
2927 for ac_file in $ac_files
2929 test -f "$ac_file" || continue
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2934 # We found the default executable, but exeext='' is most
2938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 # We set ac_cv_exeext here because the later test for it is not
2943 # safe: cross compilers may not add the suffix if given an `-o'
2944 # argument, so we may need to know it at that point already.
2945 # Even if this section looks crufty: it has the advantage of
2952 test "$ac_cv_exeext" = no && ac_cv_exeext=
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: C compiler cannot create executables
2961 See \`config.log' for more details." >&2;}
2962 { (exit 77); exit 77; }; }
2965 ac_exeext=$ac_cv_exeext
2966 { echo "$as_me:$LINENO: result: $ac_file" >&5
2967 echo "${ECHO_T}$ac_file" >&6; }
2969 # Check that the compiler produces executables we can run. If not, either
2970 # the compiler is broken, or we cross compile.
2971 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2972 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2973 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2974 # If not cross compiling, check that we can run a simple program.
2975 if test "$cross_compiling" != yes; then
2976 if { ac_try='./$ac_file'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2988 if test "$cross_compiling" = maybe; then
2991 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2992 If you meant to cross compile, use \`--host'.
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: cannot run C compiled programs.
2995 If you meant to cross compile, use \`--host'.
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
3001 { echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6; }
3004 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3005 ac_clean_files=$ac_clean_files_save
3006 # Check that the compiler produces executables we can run. If not, either
3007 # the compiler is broken, or we cross compile.
3008 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3009 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3010 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3011 echo "${ECHO_T}$cross_compiling" >&6; }
3013 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3014 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3015 if { (ac_try="$ac_link"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_link") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; then
3025 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3026 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3027 # work properly (i.e., refer to `conftest.exe'), while it won't with
3029 for ac_file in conftest.exe conftest conftest.*; do
3030 test -f "$ac_file" || continue
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3033 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3040 See \`config.log' for more details." >&5
3041 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3046 rm -f conftest$ac_cv_exeext
3047 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3048 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3050 rm -f conftest.$ac_ext
3051 EXEEXT=$ac_cv_exeext
3053 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3054 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3055 if test "${ac_cv_objext+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 rm -f conftest.o conftest.obj
3074 if { (ac_try="$ac_compile"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_compile") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; then
3084 for ac_file in conftest.o conftest.obj conftest.*; do
3085 test -f "$ac_file" || continue;
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3103 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3105 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3106 echo "${ECHO_T}$ac_cv_objext" >&6; }
3107 OBJEXT=$ac_cv_objext
3109 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3110 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3111 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3178 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3179 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3180 GCC=`test $ac_compiler_gnu = yes && echo yes`
3181 ac_test_CFLAGS=${CFLAGS+set}
3182 ac_save_CFLAGS=$CFLAGS
3183 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3184 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3185 if test "${ac_cv_prog_cc_g+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 ac_save_c_werror_flag=$ac_c_werror_flag
3189 ac_c_werror_flag=yes
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3216 grep -v '^ *+' conftest.er1 >conftest.err
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3271 grep -v '^ *+' conftest.er1 >conftest.err
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_try") 2>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3371 if test "$ac_test_CFLAGS" = set; then
3372 CFLAGS=$ac_save_CFLAGS
3373 elif test $ac_cv_prog_cc_g = yes; then
3374 if test "$GCC" = yes; then
3380 if test "$GCC" = yes; then
3386 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3387 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3388 if test "${ac_cv_prog_cc_c89+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 ac_cv_prog_cc_c89=no
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3401 #include <sys/types.h>
3402 #include <sys/stat.h>
3403 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3404 struct buf { int x; };
3405 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406 static char *e (p, i)
3412 static char *f (char * (*g) (char **, int), char **p, ...)
3417 s = g (p, va_arg (v,int));
3422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3423 function prototypes and stuff, but not '\xHH' hex character constants.
3424 These don't provoke an error unfortunately, instead are silently treated
3425 as 'x'. The following induces an error, until -std is added to get
3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3427 array size at least. It's necessary to write '\x00'==0 to get something
3428 that's true only with -std. */
3429 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432 inside strings and character constants. */
3434 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3436 int test (int i, double x);
3437 struct s1 {int (*f) (int a);};
3438 struct s2 {int (*f) (double a);};
3439 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3445 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3450 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3453 CC="$ac_save_CC $ac_arg"
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3469 { (case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_try") 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_try") 2>&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_prog_cc_c89=$ac_arg
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3496 rm -f core conftest.err conftest.$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
3499 rm -f conftest.$ac_ext
3504 case "x$ac_cv_prog_cc_c89" in
3506 { echo "$as_me:$LINENO: result: none needed" >&5
3507 echo "${ECHO_T}none needed" >&6; } ;;
3509 { echo "$as_me:$LINENO: result: unsupported" >&5
3510 echo "${ECHO_T}unsupported" >&6; } ;;
3512 CC="$CC $ac_cv_prog_cc_c89"
3513 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3532 # On Suns, sometimes $CPP names a directory.
3533 if test -n "$CPP" && test -d "$CPP"; then
3536 if test -z "$CPP"; then
3537 if test "${ac_cv_prog_CPP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 # Double quotes because CPP needs to be expanded
3541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3559 # include <limits.h>
3561 # include <assert.h>
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587 if test -z "$ac_cpp_err"; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3597 rm -f conftest.err conftest.$ac_ext
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3631 if test -z "$ac_cpp_err"; then
3632 # Broken: success on invalid input.
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 # Passes both tests.
3643 rm -f conftest.err conftest.$ac_ext
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3660 { echo "$as_me:$LINENO: result: $CPP" >&5
3661 echo "${ECHO_T}$CPP" >&6; }
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3678 # include <limits.h>
3680 # include <assert.h>
3684 if { (ac_try="$ac_cpp conftest.$ac_ext"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3692 grep -v '^ *+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706 if test -z "$ac_cpp_err"; then
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 # Broken: fails on valid input.
3716 rm -f conftest.err conftest.$ac_ext
3718 # OK, works on sane cases. Now check whether nonexistent headers
3719 # can be detected and how.
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 #include <ac_nonexistent.h>
3728 if { (ac_try="$ac_cpp conftest.$ac_ext"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3736 grep -v '^ *+' conftest.er1 >conftest.err
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev/null; then
3741 if test -s conftest.err; then
3742 ac_cpp_err=$ac_c_preproc_warn_flag
3743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3750 if test -z "$ac_cpp_err"; then
3751 # Broken: success on invalid input.
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 # Passes both tests.
3762 rm -f conftest.err conftest.$ac_ext
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then
3770 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3771 See \`config.log' for more details." >&5
3772 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3773 See \`config.log' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3785 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3786 if test "${ac_cv_path_GREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 # Extract the first word of "grep ggrep" to use in msg output
3790 if test -z "$GREP"; then
3791 set dummy grep ggrep; ac_prog_name=$2
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_path_GREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in grep ggrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3806 # Check for GNU ac_path_GREP and select it if it is found.
3807 # Check for GNU $ac_path_GREP
3808 case `"$ac_path_GREP" --version 2>&1` in
3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3813 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 echo 'GREP' >> "conftest.nl"
3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 ac_count=`expr $ac_count + 1`
3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_GREP="$ac_path_GREP"
3826 ac_path_GREP_max=$ac_count
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3835 $ac_path_GREP_found && break 3
3845 GREP="$ac_cv_path_GREP"
3846 if test -z "$GREP"; then
3847 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3848 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3849 { (exit 1); exit 1; }; }
3853 ac_cv_path_GREP=$GREP
3858 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3859 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3860 GREP="$ac_cv_path_GREP"
3863 { echo "$as_me:$LINENO: checking for egrep" >&5
3864 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3869 then ac_cv_path_EGREP="$GREP -E"
3871 # Extract the first word of "egrep" to use in msg output
3872 if test -z "$EGREP"; then
3873 set dummy egrep; ac_prog_name=$2
3874 if test "${ac_cv_path_EGREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 ac_path_EGREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in egrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3888 # Check for GNU ac_path_EGREP and select it if it is found.
3889 # Check for GNU $ac_path_EGREP
3890 case `"$ac_path_EGREP" --version 2>&1` in
3892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 echo 'EGREP' >> "conftest.nl"
3902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 ac_count=`expr $ac_count + 1`
3905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_EGREP="$ac_path_EGREP"
3908 ac_path_EGREP_max=$ac_count
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917 $ac_path_EGREP_found && break 3
3927 EGREP="$ac_cv_path_EGREP"
3928 if test -z "$EGREP"; then
3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931 { (exit 1); exit 1; }; }
3935 ac_cv_path_EGREP=$EGREP
3941 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3946 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3948 if test "${ac_cv_header_stdc+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 cat >conftest.$ac_ext <<_ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_compile") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_cv_header_stdc=yes
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 ac_cv_header_stdc=no
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 if test $ac_cv_header_stdc = yes; then
4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026 $EGREP "memchr" >/dev/null 2>&1; then
4029 ac_cv_header_stdc=no
4035 if test $ac_cv_header_stdc = yes; then
4036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047 $EGREP "free" >/dev/null 2>&1; then
4050 ac_cv_header_stdc=no
4056 if test $ac_cv_header_stdc = yes; then
4057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4058 if test "$cross_compiling" = yes; then
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4069 #if ((' ' & 0x0FF) == 0x020)
4070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4073 # define ISLOWER(c) \
4074 (('a' <= (c) && (c) <= 'i') \
4075 || ('j' <= (c) && (c) <= 'r') \
4076 || ('s' <= (c) && (c) <= 'z'))
4077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4085 for (i = 0; i < 256; i++)
4086 if (XOR (islower (i), ISLOWER (i))
4087 || toupper (i) != TOUPPER (i))
4092 rm -f conftest$ac_exeext
4093 if { (ac_try="$ac_link"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_link") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4114 echo "$as_me: program exited with status $ac_status" >&5
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_cv_header_stdc=no
4121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4127 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4128 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4129 if test $ac_cv_header_stdc = yes; then
4131 cat >>confdefs.h <<\_ACEOF
4132 #define STDC_HEADERS 1
4137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4147 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4148 inttypes.h stdint.h unistd.h
4150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 $ac_includes_default
4164 #include <$ac_header>
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 eval "$as_ac_Header=yes"
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 eval "$as_ac_Header=no"
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_res=`eval echo '${'$as_ac_Header'}'`
4211 { echo "$as_me:$LINENO: result: $ac_res" >&5
4212 echo "${ECHO_T}$ac_res" >&6; }
4213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4214 cat >>confdefs.h <<_ACEOF
4215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4223 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4224 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4225 if test "${ac_cv_c_bigendian+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 # See if sys/param.h defines the BYTE_ORDER macro.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <sys/types.h>
4236 #include <sys/param.h>
4241 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 # It does; now see whether it defined to BIG_ENDIAN or not.
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <sys/types.h>
4291 #include <sys/param.h>
4296 #if BYTE_ORDER != BIG_ENDIAN
4304 rm -f conftest.$ac_objext
4305 if { (ac_try="$ac_compile"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_c_bigendian=yes
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_c_bigendian=no
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 # It does not; compile a test program.
4352 if test "$cross_compiling" = yes; then
4353 # try to guess the endianness by grepping values into an object file
4354 ac_cv_c_bigendian=unknown
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4362 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4363 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4364 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4365 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4366 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4370 _ascii (); _ebcdic ();
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4410 ac_cv_c_bigendian=yes
4412 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4413 if test "$ac_cv_c_bigendian" = unknown; then
4414 ac_cv_c_bigendian=no
4416 # finding both strings is unlikely to happen, but who knows?
4417 ac_cv_c_bigendian=unknown
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 $ac_includes_default
4440 /* Are we little or big endian? From Harbison&Steele. */
4444 char c[sizeof (long int)];
4447 return u.c[sizeof (long int) - 1] == 1;
4453 rm -f conftest$ac_exeext
4454 if { (ac_try="$ac_link"
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_link") 2>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4464 { (case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469 (eval "$ac_try") 2>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_c_bigendian=no
4475 echo "$as_me: program exited with status $ac_status" >&5
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_c_bigendian=yes
4482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4491 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4492 case $ac_cv_c_bigendian in
4500 { { echo "$as_me:$LINENO: error: unknown endianness
4501 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4502 echo "$as_me: error: unknown endianness
4503 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4504 { (exit 1); exit 1; }; } ;;
4508 if test "$cross_compiling" = yes; then
4509 LLVM_CROSS_COMPILING=1
4512 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4513 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4514 if test "${ac_cv_build_exeext+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4518 ac_cv_build_exeext=.exe
4520 ac_build_prefix=${build_alias}-
4522 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_build_prefix}gcc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$BUILD_CC"; then
4530 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 BUILD_CC=$ac_cv_prog_BUILD_CC
4550 if test -n "$BUILD_CC"; then
4551 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4552 echo "${ECHO_T}$BUILD_CC" >&6; }
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4559 if test -z "$BUILD_CC"; then
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561 set dummy gcc; ac_word=$2
4562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4564 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 if test -n "$BUILD_CC"; then
4568 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_BUILD_CC="gcc"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 BUILD_CC=$ac_cv_prog_BUILD_CC
4588 if test -n "$BUILD_CC"; then
4589 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4590 echo "${ECHO_T}$BUILD_CC" >&6; }
4592 { echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6; }
4597 if test -z "$BUILD_CC"; then
4598 # Extract the first word of "cc", so it can be a program name with args.
4599 set dummy cc; ac_word=$2
4600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4602 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test -n "$BUILD_CC"; then
4606 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4617 ac_prog_rejected=yes
4620 ac_cv_prog_BUILD_CC="cc"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 if test $ac_prog_rejected = yes; then
4629 # We found a bogon in the path, so make sure we never use it.
4630 set dummy $ac_cv_prog_BUILD_CC
4632 if test $# != 0; then
4633 # We chose a different compiler from the bogus one.
4634 # However, it has the same basename, so the bogon will be chosen
4635 # first if we set BUILD_CC to just the basename; use the full file name.
4637 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4642 BUILD_CC=$ac_cv_prog_BUILD_CC
4643 if test -n "$BUILD_CC"; then
4644 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645 echo "${ECHO_T}$BUILD_CC" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4654 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4655 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4656 { (exit 1); exit 1; }; }
4657 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4659 echo 'int main () { return 0; }' > conftest.$ac_ext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4662 (eval $ac_build_link) 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; then
4666 for file in conftest.*; do
4668 *.c | *.o | *.obj | *.dSYM) ;;
4669 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4673 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4674 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4675 { (exit 1); exit 1; }; }
4678 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4683 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4684 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4685 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4686 ac_build_exeext=$BUILD_EXEEXT
4688 ac_build_prefix=${build_alias}-
4689 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4690 set dummy ${ac_build_prefix}g++; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 if test -n "$BUILD_CXX"; then
4697 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4717 if test -n "$BUILD_CXX"; then
4718 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4719 echo "${ECHO_T}$BUILD_CXX" >&6; }
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4726 if test -z "$BUILD_CXX"; then
4727 # Extract the first word of "g++", so it can be a program name with args.
4728 set dummy g++; ac_word=$2
4729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 if test -n "$BUILD_CXX"; then
4735 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_BUILD_CXX="g++"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4755 if test -n "$BUILD_CXX"; then
4756 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4757 echo "${ECHO_T}$BUILD_CXX" >&6; }
4759 { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; }
4764 if test -z "$BUILD_CXX"; then
4765 # Extract the first word of "c++", so it can be a program name with args.
4766 set dummy c++; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 if test -n "$BUILD_CXX"; then
4773 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4784 ac_prog_rejected=yes
4787 ac_cv_prog_BUILD_CXX="c++"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_BUILD_CXX
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set BUILD_CXX to just the basename; use the full file name.
4804 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4809 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810 if test -n "$BUILD_CXX"; then
4811 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812 echo "${ECHO_T}$BUILD_CXX" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4822 LLVM_CROSS_COMPILING=0
4826 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4837 # Check whether --enable-optimized was given.
4838 if test "${enable_optimized+set}" = set; then
4839 enableval=$enable_optimized;
4844 if test ${enableval} = "no" ; then
4848 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4852 # Check whether --enable-profiling was given.
4853 if test "${enable_profiling+set}" = set; then
4854 enableval=$enable_profiling;
4859 if test ${enableval} = "no" ; then
4863 ENABLE_PROFILING=ENABLE_PROFILING=1
4867 # Check whether --enable-assertions was given.
4868 if test "${enable_assertions+set}" = set; then
4869 enableval=$enable_assertions;
4874 if test ${enableval} = "yes" ; then
4878 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4882 # Check whether --enable-expensive-checks was given.
4883 if test "${enable_expensive_checks+set}" = set; then
4884 enableval=$enable_expensive_checks;
4889 if test ${enableval} = "yes" ; then
4890 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4892 EXPENSIVE_CHECKS=yes
4895 ENABLE_EXPENSIVE_CHECKS=
4901 # Check whether --enable-debug-runtime was given.
4902 if test "${enable_debug_runtime+set}" = set; then
4903 enableval=$enable_debug_runtime;
4908 if test ${enableval} = "no" ; then
4912 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4916 # Check whether --enable-debug-symbols was given.
4917 if test "${enable_debug_symbols+set}" = set; then
4918 enableval=$enable_debug_symbols;
4923 if test ${enableval} = "no" ; then
4927 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4931 # Check whether --enable-jit was given.
4932 if test "${enable_jit+set}" = set; then
4933 enableval=$enable_jit;
4938 if test ${enableval} = "no"
4943 case "$llvm_cv_target_arch" in
4944 x86) TARGET_HAS_JIT=1
4946 Sparc) TARGET_HAS_JIT=0
4948 PowerPC) TARGET_HAS_JIT=1
4950 x86_64) TARGET_HAS_JIT=1
4952 Alpha) TARGET_HAS_JIT=1
4954 ARM) TARGET_HAS_JIT=1
4956 Mips) TARGET_HAS_JIT=0
4958 PIC16) TARGET_HAS_JIT=0
4960 XCore) TARGET_HAS_JIT=0
4962 MSP430) TARGET_HAS_JIT=0
4964 SystemZ) TARGET_HAS_JIT=0
4966 Blackfin) TARGET_HAS_JIT=0
4973 # Check whether --enable-doxygen was given.
4974 if test "${enable_doxygen+set}" = set; then
4975 enableval=$enable_doxygen;
4980 case "$enableval" in
4981 yes) ENABLE_DOXYGEN=1
4983 no) ENABLE_DOXYGEN=0
4985 default) ENABLE_DOXYGEN=0
4987 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4988 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4989 { (exit 1); exit 1; }; } ;;
4992 # Check whether --enable-threads was given.
4993 if test "${enable_threads+set}" = set; then
4994 enableval=$enable_threads;
4999 case "$enableval" in
5000 yes) ENABLE_THREADS=1
5002 no) ENABLE_THREADS=0
5004 default) ENABLE_THREADS=1
5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5007 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5011 cat >>confdefs.h <<_ACEOF
5012 #define ENABLE_THREADS $ENABLE_THREADS
5016 # Check whether --enable-pic was given.
5017 if test "${enable_pic+set}" = set; then
5018 enableval=$enable_pic;
5023 case "$enableval" in
5028 default) ENABLE_PIC=1
5030 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5031 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5035 cat >>confdefs.h <<_ACEOF
5036 #define ENABLE_PIC $ENABLE_PIC
5041 # Check whether --enable-targets was given.
5042 if test "${enable_targets+set}" = set; then
5043 enableval=$enable_targets;
5048 if test "$enableval" = host-only ; then
5051 case "$enableval" in
5052 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5053 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5055 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5056 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5057 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5058 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5059 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5060 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5061 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5062 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5063 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5064 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5065 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5066 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5067 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5068 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5069 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5070 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5071 host) case "$llvm_cv_target_arch" in
5072 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5073 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5074 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5075 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5076 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5077 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5078 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5079 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5080 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5081 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5082 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5083 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5084 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5085 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5086 echo "$as_me: error: Can not set target to build" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5089 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5090 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5096 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5099 # Determine whether we are building LLVM support for the native architecture.
5100 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5101 for a_target in $TARGETS_TO_BUILD; do
5102 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5103 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5105 cat >>confdefs.h <<_ACEOF
5106 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5112 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5113 # target feature def files.
5114 LLVM_ENUM_TARGETS=""
5115 LLVM_ENUM_ASM_PRINTERS=""
5116 LLVM_ENUM_ASM_PARSERS=""
5117 LLVM_ENUM_DISASSEMBLERS=""
5118 for target_to_build in $TARGETS_TO_BUILD; do
5119 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5120 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5121 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5123 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5124 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5126 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5127 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5135 # Check whether --enable-cbe-printf-a was given.
5136 if test "${enable_cbe_printf_a+set}" = set; then
5137 enableval=$enable_cbe_printf_a;
5142 case "$enableval" in
5143 yes) ENABLE_CBE_PRINTF_A=1
5145 no) ENABLE_CBE_PRINTF_A=0
5147 default) ENABLE_CBE_PRINTF_A=1
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5154 cat >>confdefs.h <<_ACEOF
5155 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5160 # Check whether --with-llvmgccdir was given.
5161 if test "${with_llvmgccdir+set}" = set; then
5162 withval=$with_llvmgccdir;
5168 default) WITH_LLVMGCCDIR=default ;;
5169 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5170 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5171 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5176 # Check whether --with-llvmgcc was given.
5177 if test "${with_llvmgcc+set}" = set; then
5178 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5184 # Check whether --with-llvmgxx was given.
5185 if test "${with_llvmgxx+set}" = set; then
5186 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5191 if test -n "$LLVMGCC"; then
5192 LLVMGCCCOMMAND="$LLVMGCC"
5195 if test -n "$LLVMGXX"; then
5196 LLVMGXXCOMMAND="$LLVMGXX"
5199 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5200 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5201 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5202 { (exit 1); exit 1; }; };
5205 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5206 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5207 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5208 { (exit 1); exit 1; }; };
5212 # Check whether --with-optimize-option was given.
5213 if test "${with_optimize_option+set}" = set; then
5214 withval=$with_optimize_option;
5219 { echo "$as_me:$LINENO: checking optimization flags" >&5
5220 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5223 case "$llvm_cv_os_type" in
5224 MingW) optimize_option=-O3 ;;
5225 *) optimize_option=-O2 ;;
5227 *) optimize_option="$withval" ;;
5229 OPTIMIZE_OPTION=$optimize_option
5231 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5232 echo "${ECHO_T}$optimize_option" >&6; }
5235 # Check whether --with-extra-options was given.
5236 if test "${with_extra_options+set}" = set; then
5237 withval=$with_extra_options;
5243 default) EXTRA_OPTIONS= ;;
5244 *) EXTRA_OPTIONS=$withval ;;
5246 EXTRA_OPTIONS=$EXTRA_OPTIONS
5249 # Check whether --enable-bindings was given.
5250 if test "${enable_bindings+set}" = set; then
5251 enableval=$enable_bindings;
5256 BINDINGS_TO_BUILD=""
5257 case "$enableval" in
5258 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5259 all ) BINDINGS_TO_BUILD="ocaml" ;;
5260 none | no) BINDINGS_TO_BUILD="" ;;
5261 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5262 case "$a_binding" in
5263 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5264 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5265 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5273 # Check whether --with-ocaml-libdir was given.
5274 if test "${with_ocaml_libdir+set}" = set; then
5275 withval=$with_ocaml_libdir;
5281 auto) with_ocaml_libdir="$withval" ;;
5282 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5283 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5284 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5289 # Check whether --with-c-include-dirs was given.
5290 if test "${with_c_include_dirs+set}" = set; then
5291 withval=$with_c_include_dirs;
5297 cat >>confdefs.h <<_ACEOF
5298 #define C_INCLUDE_DIRS "$withval"
5303 # Check whether --with-cxx-include-root was given.
5304 if test "${with_cxx_include_root+set}" = set; then
5305 withval=$with_cxx_include_root;
5311 cat >>confdefs.h <<_ACEOF
5312 #define CXX_INCLUDE_ROOT "$withval"
5317 # Check whether --with-cxx-include-arch was given.
5318 if test "${with_cxx_include_arch+set}" = set; then
5319 withval=$with_cxx_include_arch;
5325 cat >>confdefs.h <<_ACEOF
5326 #define CXX_INCLUDE_ARCH "$withval"
5331 # Check whether --with-cxx-include-32bit-dir was given.
5332 if test "${with_cxx_include_32bit_dir+set}" = set; then
5333 withval=$with_cxx_include_32bit_dir;
5339 cat >>confdefs.h <<_ACEOF
5340 #define CXX_INCLUDE_32BIT_DIR "$withval"
5345 # Check whether --with-cxx-include-64bit-dir was given.
5346 if test "${with_cxx_include_64bit_dir+set}" = set; then
5347 withval=$with_cxx_include_64bit_dir;
5353 cat >>confdefs.h <<_ACEOF
5354 #define CXX_INCLUDE_64BIT_DIR "$withval"
5359 # Check whether --with-binutils-include was given.
5360 if test "${with_binutils_include+set}" = set; then
5361 withval=$with_binutils_include;
5367 default) WITH_BINUTILS_INCDIR=default ;;
5368 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5369 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5370 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5371 { (exit 1); exit 1; }; } ;;
5373 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5374 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5376 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5377 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5378 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5379 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5380 { (exit 1); exit 1; }; };
5384 # Check whether --enable-libffi was given.
5385 if test "${enable_libffi+set}" = set; then
5386 enableval=$enable_libffi;
5391 case "$enableval" in
5392 yes) llvm_cv_enable_libffi="yes" ;;
5393 no) llvm_cv_enable_libffi="no" ;;
5394 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5395 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5396 { (exit 1); exit 1; }; } ;;
5399 if test "$llvm_cv_os_type" = "Win32" ; then
5405 # Check whether --enable-llvmc-dynamic was given.
5406 if test "${enable_llvmc_dynamic+set}" = set; then
5407 enableval=$enable_llvmc_dynamic;
5409 enableval=$llvmc_dynamic
5412 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5413 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5416 ENABLE_LLVMC_DYNAMIC=
5420 # Check whether --enable-llvmc-dynamic-plugins was given.
5421 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5422 enableval=$enable_llvmc_dynamic_plugins;
5427 if test ${enableval} = "yes" ; then
5428 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5431 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5442 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5443 # On Suns, sometimes $CPP names a directory.
5444 if test -n "$CPP" && test -d "$CPP"; then
5447 if test -z "$CPP"; then
5448 if test "${ac_cv_prog_CPP+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 # Double quotes because CPP needs to be expanded
5452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5455 for ac_c_preproc_warn_flag in '' yes
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5470 # include <limits.h>
5472 # include <assert.h>
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 if test -z "$ac_cpp_err"; then
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 # Broken: fails on valid input.
5508 rm -f conftest.err conftest.$ac_ext
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <ac_nonexistent.h>
5520 if { (ac_try="$ac_cpp conftest.$ac_ext"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev/null; then
5533 if test -s conftest.err; then
5534 ac_cpp_err=$ac_c_preproc_warn_flag
5535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5542 if test -z "$ac_cpp_err"; then
5543 # Broken: success on invalid input.
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 # Passes both tests.
5554 rm -f conftest.err conftest.$ac_ext
5557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558 rm -f conftest.err conftest.$ac_ext
5559 if $ac_preproc_ok; then
5571 { echo "$as_me:$LINENO: result: $CPP" >&5
5572 echo "${ECHO_T}$CPP" >&6; }
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 # include <limits.h>
5591 # include <assert.h>
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617 if test -z "$ac_cpp_err"; then
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 # Broken: fails on valid input.
5627 rm -f conftest.err conftest.$ac_ext
5629 # OK, works on sane cases. Now check whether nonexistent headers
5630 # can be detected and how.
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <ac_nonexistent.h>
5639 if { (ac_try="$ac_cpp conftest.$ac_ext"
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5647 grep -v '^ *+' conftest.er1 >conftest.err
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } >/dev/null; then
5652 if test -s conftest.err; then
5653 ac_cpp_err=$ac_c_preproc_warn_flag
5654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5661 if test -z "$ac_cpp_err"; then
5662 # Broken: success on invalid input.
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 # Passes both tests.
5673 rm -f conftest.err conftest.$ac_ext
5676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5677 rm -f conftest.err conftest.$ac_ext
5678 if $ac_preproc_ok; then
5681 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5682 See \`config.log' for more details." >&5
5683 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5684 See \`config.log' for more details." >&2;}
5685 { (exit 1); exit 1; }; }
5689 ac_cpp='$CPP $CPPFLAGS'
5690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 if test -n "$ac_tool_prefix"; then
5702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test -n "$CC"; then
5710 ac_cv_prog_CC="$CC" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 if test -n "$CC"; then
5731 { echo "$as_me:$LINENO: result: $CC" >&5
5732 echo "${ECHO_T}$CC" >&6; }
5734 { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5739 test -n "$CC" && break
5742 if test -z "$CC"; then
5746 # Extract the first word of "$ac_prog", so it can be a program name with args.
5747 set dummy $ac_prog; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -n "$ac_ct_CC"; then
5754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_ac_ct_CC="$ac_prog"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5774 if test -n "$ac_ct_CC"; then
5775 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5776 echo "${ECHO_T}$ac_ct_CC" >&6; }
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5783 test -n "$ac_ct_CC" && break
5786 if test "x$ac_ct_CC" = x; then
5789 case $cross_compiling:$ac_tool_warned in
5791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5792 whose name does not start with the host triplet. If you think this
5793 configuration is useful to you, please write to autoconf@gnu.org." >&5
5794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5795 whose name does not start with the host triplet. If you think this
5796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5797 ac_tool_warned=yes ;;
5804 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5805 See \`config.log' for more details." >&5
5806 echo "$as_me: error: no acceptable C compiler found in \$PATH
5807 See \`config.log' for more details." >&2;}
5808 { (exit 1); exit 1; }; }
5810 # Provide some information about the compiler.
5811 echo "$as_me:$LINENO: checking for C compiler version" >&5
5812 ac_compiler=`set X $ac_compile; echo $2`
5813 { (ac_try="$ac_compiler --version >&5"
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compiler --version >&5") 2>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }
5823 { (ac_try="$ac_compiler -v >&5"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compiler -v >&5") 2>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }
5833 { (ac_try="$ac_compiler -V >&5"
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compiler -V >&5") 2>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }
5844 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5845 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5846 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compile") 2>conftest.er1
5876 grep -v '^ *+' conftest.er1 >conftest.err
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882 { (case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_try") 2>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5913 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5915 GCC=`test $ac_compiler_gnu = yes && echo yes`
5916 ac_test_CFLAGS=${CFLAGS+set}
5917 ac_save_CFLAGS=$CFLAGS
5918 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5920 if test "${ac_cv_prog_cc_g+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 ac_save_c_werror_flag=$ac_c_werror_flag
5924 ac_c_werror_flag=yes
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5951 grep -v '^ *+' conftest.er1 >conftest.err
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5997 rm -f conftest.$ac_objext
5998 if { (ac_try="$ac_compile"
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_compile") 2>conftest.er1
6006 grep -v '^ *+' conftest.er1 >conftest.err
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6012 { (case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_try") 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest.$ac_objext'
6022 { (case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_try") 2>&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_c_werror_flag=$ac_save_c_werror_flag
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6068 { (case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_try") 2>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_c_werror_flag=$ac_save_c_werror_flag
6104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6106 if test "$ac_test_CFLAGS" = set; then
6107 CFLAGS=$ac_save_CFLAGS
6108 elif test $ac_cv_prog_cc_g = yes; then
6109 if test "$GCC" = yes; then
6115 if test "$GCC" = yes; then
6121 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6122 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6123 if test "${ac_cv_prog_cc_c89+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 ac_cv_prog_cc_c89=no
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6136 #include <sys/types.h>
6137 #include <sys/stat.h>
6138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6139 struct buf { int x; };
6140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6141 static char *e (p, i)
6147 static char *f (char * (*g) (char **, int), char **p, ...)
6152 s = g (p, va_arg (v,int));
6157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6158 function prototypes and stuff, but not '\xHH' hex character constants.
6159 These don't provoke an error unfortunately, instead are silently treated
6160 as 'x'. The following induces an error, until -std is added to get
6161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6162 array size at least. It's necessary to write '\x00'==0 to get something
6163 that's true only with -std. */
6164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6167 inside strings and character constants. */
6169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6171 int test (int i, double x);
6172 struct s1 {int (*f) (int a);};
6173 struct s2 {int (*f) (double a);};
6174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6188 CC="$ac_save_CC $ac_arg"
6189 rm -f conftest.$ac_objext
6190 if { (ac_try="$ac_compile"
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6198 grep -v '^ *+' conftest.er1 >conftest.err
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6204 { (case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_try") 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_try") 2>&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_cv_prog_cc_c89=$ac_arg
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6231 rm -f core conftest.err conftest.$ac_objext
6232 test "x$ac_cv_prog_cc_c89" != "xno" && break
6234 rm -f conftest.$ac_ext
6239 case "x$ac_cv_prog_cc_c89" in
6241 { echo "$as_me:$LINENO: result: none needed" >&5
6242 echo "${ECHO_T}none needed" >&6; } ;;
6244 { echo "$as_me:$LINENO: result: unsupported" >&5
6245 echo "${ECHO_T}unsupported" >&6; } ;;
6247 CC="$CC $ac_cv_prog_cc_c89"
6248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6249 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260 ac_cpp='$CXXCPP $CPPFLAGS'
6261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6264 if test -z "$CXX"; then
6265 if test -n "$CCC"; then
6268 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 if test -n "$CXX"; then
6279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 if test -n "$CXX"; then
6300 { echo "$as_me:$LINENO: result: $CXX" >&5
6301 echo "${ECHO_T}$CXX" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 test -n "$CXX" && break
6311 if test -z "$CXX"; then
6315 # Extract the first word of "$ac_prog", so it can be a program name with args.
6316 set dummy $ac_prog; ac_word=$2
6317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 if test -n "$ac_ct_CXX"; then
6323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_ac_ct_CXX="$ac_prog"
6333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6343 if test -n "$ac_ct_CXX"; then
6344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6345 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6352 test -n "$ac_ct_CXX" && break
6355 if test "x$ac_ct_CXX" = x; then
6358 case $cross_compiling:$ac_tool_warned in
6360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6361 whose name does not start with the host triplet. If you think this
6362 configuration is useful to you, please write to autoconf@gnu.org." >&5
6363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6364 whose name does not start with the host triplet. If you think this
6365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6366 ac_tool_warned=yes ;;
6374 # Provide some information about the compiler.
6375 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6376 ac_compiler=`set X $ac_compile; echo $2`
6377 { (ac_try="$ac_compiler --version >&5"
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_compiler --version >&5") 2>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }
6387 { (ac_try="$ac_compiler -v >&5"
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compiler -v >&5") 2>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }
6397 { (ac_try="$ac_compiler -V >&5"
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_compiler -V >&5") 2>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }
6408 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6409 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6410 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6431 rm -f conftest.$ac_objext
6432 if { (ac_try="$ac_compile"
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_compile") 2>conftest.er1
6440 grep -v '^ *+' conftest.er1 >conftest.err
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6446 { (case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_try") 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_try") 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6477 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6478 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6479 GXX=`test $ac_compiler_gnu = yes && echo yes`
6480 ac_test_CXXFLAGS=${CXXFLAGS+set}
6481 ac_save_CXXFLAGS=$CXXFLAGS
6482 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6483 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_cxx_g+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6488 ac_cxx_werror_flag=yes
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_try") 2>&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_prog_cxx_g=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_try") 2>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6617 rm -f conftest.$ac_objext
6618 if { (ac_try="$ac_compile"
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6632 { (case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_try") 2>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest.$ac_objext'
6642 { (case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_try") 2>&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 ac_cv_prog_cxx_g=yes
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6668 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6670 if test "$ac_test_CXXFLAGS" = set; then
6671 CXXFLAGS=$ac_save_CXXFLAGS
6672 elif test $ac_cv_prog_cxx_g = yes; then
6673 if test "$GXX" = yes; then
6679 if test "$GXX" = yes; then
6686 ac_cpp='$CPP $CPPFLAGS'
6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6693 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6694 if test "${lt_cv_path_NM+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 if test -n "$NM"; then
6698 # Let the user override the test.
6701 lt_nm_to_check="${ac_tool_prefix}nm"
6702 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6703 lt_nm_to_check="$lt_nm_to_check nm"
6705 for lt_tmp_nm in $lt_nm_to_check; do
6706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6707 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6709 test -z "$ac_dir" && ac_dir=.
6710 tmp_nm="$ac_dir/$lt_tmp_nm"
6711 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6712 # Check to see if the nm accepts a BSD-compat flag.
6713 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6714 # nm: unknown option "B" ignored
6715 # Tru64's nm complains that /dev/null is an invalid object file
6716 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6717 */dev/null* | *'Invalid file or object type'*)
6718 lt_cv_path_NM="$tmp_nm -B"
6722 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6724 lt_cv_path_NM="$tmp_nm -p"
6728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6729 continue # so that we can try to find one that supports BSD flags
6738 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6741 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6742 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6747 { echo "$as_me:$LINENO: checking for GNU make" >&5
6748 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6749 if test "${llvm_cv_gnu_make_command+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 llvm_cv_gnu_make_command=''
6753 for a in "$MAKE" make gmake gnumake ; do
6754 if test -z "$a" ; then continue ; fi ;
6755 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6757 llvm_cv_gnu_make_command=$a ;
6762 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6763 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6764 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6768 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6769 echo "${ECHO_T}\"Not found\"" >&6; };
6773 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6774 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6776 if test "$LN_S" = "ln -s"; then
6777 { echo "$as_me:$LINENO: result: yes" >&5
6778 echo "${ECHO_T}yes" >&6; }
6780 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6781 echo "${ECHO_T}no, using $LN_S" >&6; }
6784 # Extract the first word of "cmp", so it can be a program name with args.
6785 set dummy cmp; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_CMP+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6816 if test -n "$CMP"; then
6817 { echo "$as_me:$LINENO: result: $CMP" >&5
6818 echo "${ECHO_T}$CMP" >&6; }
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6825 # Extract the first word of "cp", so it can be a program name with args.
6826 set dummy cp; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_path_CP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6857 if test -n "$CP"; then
6858 { echo "$as_me:$LINENO: result: $CP" >&5
6859 echo "${ECHO_T}$CP" >&6; }
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6866 # Extract the first word of "date", so it can be a program name with args.
6867 set dummy date; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_DATE+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6897 DATE=$ac_cv_path_DATE
6898 if test -n "$DATE"; then
6899 { echo "$as_me:$LINENO: result: $DATE" >&5
6900 echo "${ECHO_T}$DATE" >&6; }
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6907 # Extract the first word of "find", so it can be a program name with args.
6908 set dummy find; ac_word=$2
6909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911 if test "${ac_cv_path_FIND+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6938 FIND=$ac_cv_path_FIND
6939 if test -n "$FIND"; then
6940 { echo "$as_me:$LINENO: result: $FIND" >&5
6941 echo "${ECHO_T}$FIND" >&6; }
6943 { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6948 # Extract the first word of "grep", so it can be a program name with args.
6949 set dummy grep; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_GREP+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6979 GREP=$ac_cv_path_GREP
6980 if test -n "$GREP"; then
6981 { echo "$as_me:$LINENO: result: $GREP" >&5
6982 echo "${ECHO_T}$GREP" >&6; }
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6989 # Extract the first word of "mkdir", so it can be a program name with args.
6990 set dummy mkdir; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_MKDIR+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7020 MKDIR=$ac_cv_path_MKDIR
7021 if test -n "$MKDIR"; then
7022 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7023 echo "${ECHO_T}$MKDIR" >&6; }
7025 { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7030 # Extract the first word of "mv", so it can be a program name with args.
7031 set dummy mv; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_path_MV+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7062 if test -n "$MV"; then
7063 { echo "$as_me:$LINENO: result: $MV" >&5
7064 echo "${ECHO_T}$MV" >&6; }
7066 { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_prog_RANLIB+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 if test -n "$RANLIB"; then
7080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 RANLIB=$ac_cv_prog_RANLIB
7100 if test -n "$RANLIB"; then
7101 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7102 echo "${ECHO_T}$RANLIB" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7110 if test -z "$ac_cv_prog_RANLIB"; then
7111 ac_ct_RANLIB=$RANLIB
7112 # Extract the first word of "ranlib", so it can be a program name with args.
7113 set dummy ranlib; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 if test -n "$ac_ct_RANLIB"; then
7120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_ac_ct_RANLIB="ranlib"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7140 if test -n "$ac_ct_RANLIB"; then
7141 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7142 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7148 if test "x$ac_ct_RANLIB" = x; then
7151 case $cross_compiling:$ac_tool_warned in
7153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7154 whose name does not start with the host triplet. If you think this
7155 configuration is useful to you, please write to autoconf@gnu.org." >&5
7156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7157 whose name does not start with the host triplet. If you think this
7158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7159 ac_tool_warned=yes ;;
7161 RANLIB=$ac_ct_RANLIB
7164 RANLIB="$ac_cv_prog_RANLIB"
7167 # Extract the first word of "rm", so it can be a program name with args.
7168 set dummy rm; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_path_RM+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7199 if test -n "$RM"; then
7200 { echo "$as_me:$LINENO: result: $RM" >&5
7201 echo "${ECHO_T}$RM" >&6; }
7203 { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7208 # Extract the first word of "sed", so it can be a program name with args.
7209 set dummy sed; ac_word=$2
7210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212 if test "${ac_cv_path_SED+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7240 if test -n "$SED"; then
7241 { echo "$as_me:$LINENO: result: $SED" >&5
7242 echo "${ECHO_T}$SED" >&6; }
7244 { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7249 # Extract the first word of "tar", so it can be a program name with args.
7250 set dummy tar; ac_word=$2
7251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253 if test "${ac_cv_path_TAR+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7281 if test -n "$TAR"; then
7282 { echo "$as_me:$LINENO: result: $TAR" >&5
7283 echo "${ECHO_T}$TAR" >&6; }
7285 { echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6; }
7290 # Extract the first word of "pwd", so it can be a program name with args.
7291 set dummy pwd; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_path_BINPWD+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7321 BINPWD=$ac_cv_path_BINPWD
7322 if test -n "$BINPWD"; then
7323 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7324 echo "${ECHO_T}$BINPWD" >&6; }
7326 { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7332 # Extract the first word of "Graphviz", so it can be a program name with args.
7333 set dummy Graphviz; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7363 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7364 if test -n "$GRAPHVIZ"; then
7365 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7366 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7375 cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_GRAPHVIZ 1
7379 if test "$llvm_cv_os_type" = "MingW" ; then
7380 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7383 cat >>confdefs.h <<_ACEOF
7384 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7388 # Extract the first word of "dot", so it can be a program name with args.
7389 set dummy dot; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_DOT+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7420 if test -n "$DOT"; then
7421 { echo "$as_me:$LINENO: result: $DOT" >&5
7422 echo "${ECHO_T}$DOT" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7429 if test "$DOT" != "echo dot" ; then
7431 cat >>confdefs.h <<\_ACEOF
7435 if test "$llvm_cv_os_type" = "MingW" ; then
7436 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439 cat >>confdefs.h <<_ACEOF
7440 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7444 # Extract the first word of "fdp", so it can be a program name with args.
7445 set dummy fdp; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_path_FDP+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7476 if test -n "$FDP"; then
7477 { echo "$as_me:$LINENO: result: $FDP" >&5
7478 echo "${ECHO_T}$FDP" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7485 if test "$FDP" != "echo fdp" ; then
7487 cat >>confdefs.h <<\_ACEOF
7491 if test "$llvm_cv_os_type" = "MingW" ; then
7492 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495 cat >>confdefs.h <<_ACEOF
7496 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7500 # Extract the first word of "neato", so it can be a program name with args.
7501 set dummy neato; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_NEATO+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7531 NEATO=$ac_cv_path_NEATO
7532 if test -n "$NEATO"; then
7533 { echo "$as_me:$LINENO: result: $NEATO" >&5
7534 echo "${ECHO_T}$NEATO" >&6; }
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7541 if test "$NEATO" != "echo neato" ; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_NEATO 1
7547 if test "$llvm_cv_os_type" = "MingW" ; then
7548 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7551 cat >>confdefs.h <<_ACEOF
7552 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7556 # Extract the first word of "twopi", so it can be a program name with args.
7557 set dummy twopi; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_path_TWOPI+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7587 TWOPI=$ac_cv_path_TWOPI
7588 if test -n "$TWOPI"; then
7589 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7590 echo "${ECHO_T}$TWOPI" >&6; }
7592 { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7597 if test "$TWOPI" != "echo twopi" ; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_TWOPI 1
7603 if test "$llvm_cv_os_type" = "MingW" ; then
7604 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7607 cat >>confdefs.h <<_ACEOF
7608 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7612 # Extract the first word of "circo", so it can be a program name with args.
7613 set dummy circo; ac_word=$2
7614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616 if test "${ac_cv_path_CIRCO+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7643 CIRCO=$ac_cv_path_CIRCO
7644 if test -n "$CIRCO"; then
7645 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7646 echo "${ECHO_T}$CIRCO" >&6; }
7648 { echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6; }
7653 if test "$CIRCO" != "echo circo" ; then
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_CIRCO 1
7659 if test "$llvm_cv_os_type" = "MingW" ; then
7660 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7663 cat >>confdefs.h <<_ACEOF
7664 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7668 for ac_prog in gv gsview32
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_GV+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 if test -n "$GV"; then
7702 { echo "$as_me:$LINENO: result: $GV" >&5
7703 echo "${ECHO_T}$GV" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 test -n "$GV" && break
7712 test -n "$GV" || GV="echo gv"
7714 if test "$GV" != "echo gv" ; then
7716 cat >>confdefs.h <<\_ACEOF
7720 if test "$llvm_cv_os_type" = "MingW" ; then
7721 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7724 cat >>confdefs.h <<_ACEOF
7725 #define LLVM_PATH_GV "$GV${EXEEXT}"
7729 # Extract the first word of "dotty", so it can be a program name with args.
7730 set dummy dotty; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_path_DOTTY+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7748 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7760 DOTTY=$ac_cv_path_DOTTY
7761 if test -n "$DOTTY"; then
7762 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7763 echo "${ECHO_T}$DOTTY" >&6; }
7765 { echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6; }
7770 if test "$DOTTY" != "echo dotty" ; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define HAVE_DOTTY 1
7776 if test "$llvm_cv_os_type" = "MingW" ; then
7777 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7780 cat >>confdefs.h <<_ACEOF
7781 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7787 # Extract the first word of "perl", so it can be a program name with args.
7788 set dummy perl; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_PERL+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7818 PERL=$ac_cv_path_PERL
7819 if test -n "$PERL"; then
7820 { echo "$as_me:$LINENO: result: $PERL" >&5
7821 echo "${ECHO_T}$PERL" >&6; }
7823 { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7828 if test "$PERL" != "none"; then
7829 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7830 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7831 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7832 { echo "$as_me:$LINENO: result: yes" >&5
7833 echo "${ECHO_T}yes" >&6; }
7836 { echo "$as_me:$LINENO: result: not found" >&5
7837 echo "${ECHO_T}not found" >&6; }
7842 if test x"$PERL" = xnone; then
7845 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7846 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7847 { (exit 1); exit 1; }; }
7853 # Find a good install program. We prefer a C program (faster),
7854 # so one script is as good as another. But avoid the broken or
7855 # incompatible versions:
7856 # SysV /etc/install, /usr/sbin/install
7857 # SunOS /usr/etc/install
7858 # IRIX /sbin/install
7860 # AmigaOS /C/install, which installs bootblocks on floppy discs
7861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7864 # OS/2's system install, which has a completely different semantic
7865 # ./install, which can be erroneously created by make from ./install.sh.
7866 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7867 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7868 if test -z "$INSTALL"; then
7869 if test "${ac_cv_path_install+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 test -z "$as_dir" && as_dir=.
7877 # Account for people who put trailing slashes in PATH elements.
7879 ./ | .// | /cC/* | \
7880 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7881 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7884 # OSF1 and SCO ODT 3.0 have their own names for install.
7885 # Don't use installbsd from OSF since it installs stuff as root
7887 for ac_prog in ginstall scoinst install; do
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7890 if test $ac_prog = install &&
7891 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7892 # AIX install. It has an incompatible calling convention.
7894 elif test $ac_prog = install &&
7895 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7896 # program-specific install script used by HP pwplus--don't use.
7899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7912 if test "${ac_cv_path_install+set}" = set; then
7913 INSTALL=$ac_cv_path_install
7915 # As a last resort, use the slow shell script. Don't cache a
7916 # value for INSTALL within a source directory, because that will
7917 # break other packages using the cache if that directory is
7918 # removed, or if the value is a relative name.
7919 INSTALL=$ac_install_sh
7922 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7923 echo "${ECHO_T}$INSTALL" >&6; }
7925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7926 # It thinks the first close brace ends the variable substitution.
7927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7934 # Extract the first word of "bzip2", so it can be a program name with args.
7935 set dummy bzip2; ac_word=$2
7936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7938 if test "${ac_cv_path_BZIP2+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 BZIP2=$ac_cv_path_BZIP2
7965 if test -n "$BZIP2"; then
7966 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7967 echo "${ECHO_T}$BZIP2" >&6; }
7969 { echo "$as_me:$LINENO: result: no" >&5
7970 echo "${ECHO_T}no" >&6; }
7974 # Extract the first word of "doxygen", so it can be a program name with args.
7975 set dummy doxygen; ac_word=$2
7976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 DOXYGEN=$ac_cv_path_DOXYGEN
8005 if test -n "$DOXYGEN"; then
8006 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8007 echo "${ECHO_T}$DOXYGEN" >&6; }
8009 { echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6; }
8014 # Extract the first word of "groff", so it can be a program name with args.
8015 set dummy groff; ac_word=$2
8016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018 if test "${ac_cv_path_GROFF+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 GROFF=$ac_cv_path_GROFF
8045 if test -n "$GROFF"; then
8046 { echo "$as_me:$LINENO: result: $GROFF" >&5
8047 echo "${ECHO_T}$GROFF" >&6; }
8049 { echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6; }
8054 # Extract the first word of "gzip", so it can be a program name with args.
8055 set dummy gzip; ac_word=$2
8056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058 if test "${ac_cv_path_GZIP+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 GZIP=$ac_cv_path_GZIP
8085 if test -n "$GZIP"; then
8086 { echo "$as_me:$LINENO: result: $GZIP" >&5
8087 echo "${ECHO_T}$GZIP" >&6; }
8089 { echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6; }
8094 # Extract the first word of "pod2html", so it can be a program name with args.
8095 set dummy pod2html; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_POD2HTML+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 POD2HTML=$ac_cv_path_POD2HTML
8125 if test -n "$POD2HTML"; then
8126 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8127 echo "${ECHO_T}$POD2HTML" >&6; }
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8134 # Extract the first word of "pod2man", so it can be a program name with args.
8135 set dummy pod2man; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_POD2MAN+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 POD2MAN=$ac_cv_path_POD2MAN
8165 if test -n "$POD2MAN"; then
8166 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8167 echo "${ECHO_T}$POD2MAN" >&6; }
8169 { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8174 # Extract the first word of "runtest", so it can be a program name with args.
8175 set dummy runtest; ac_word=$2
8176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178 if test "${ac_cv_path_RUNTEST+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 RUNTEST=$ac_cv_path_RUNTEST
8205 if test -n "$RUNTEST"; then
8206 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8207 echo "${ECHO_T}$RUNTEST" >&6; }
8209 { echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6; }
8216 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8217 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8219 # Check whether --with-tclinclude was given.
8220 if test "${with_tclinclude+set}" = set; then
8221 withval=$with_tclinclude; with_tclinclude=${withval}
8226 if test "${ac_cv_path_tclsh+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 if test x"${with_tclinclude}" != x ; then
8231 if test -f ${with_tclinclude}/tclsh ; then
8232 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8233 elif test -f ${with_tclinclude}/src/tclsh ; then
8234 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8236 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8237 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8238 { (exit 1); exit 1; }; }
8242 if test x"${ac_cv_path_tclsh}" = x ; then
8243 { echo "$as_me:$LINENO: result: none" >&5
8244 echo "${ECHO_T}none" >&6; }
8245 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
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_TCLSH+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 TCLSH=$ac_cv_path_TCLSH
8278 if test -n "$TCLSH"; then
8279 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8280 echo "${ECHO_T}$TCLSH" >&6; }
8282 { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8287 test -n "$TCLSH" && break
8290 if test x"${TCLSH}" = x ; then
8291 ac_cv_path_tclsh='';
8293 ac_cv_path_tclsh="${TCLSH}";
8296 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8297 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8298 TCLSH="${ac_cv_path_tclsh}"
8304 # Extract the first word of "zip", so it can be a program name with args.
8305 set dummy zip; ac_word=$2
8306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308 if test "${ac_cv_path_ZIP+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 if test -n "$ZIP"; then
8336 { echo "$as_me:$LINENO: result: $ZIP" >&5
8337 echo "${ECHO_T}$ZIP" >&6; }
8339 { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8344 for ac_prog in ocamlc
8346 # Extract the first word of "$ac_prog", so it can be a program name with args.
8347 set dummy $ac_prog; ac_word=$2
8348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8350 if test "${ac_cv_path_OCAMLC+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 OCAMLC=$ac_cv_path_OCAMLC
8377 if test -n "$OCAMLC"; then
8378 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8379 echo "${ECHO_T}$OCAMLC" >&6; }
8381 { echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6; }
8386 test -n "$OCAMLC" && break
8389 for ac_prog in ocamlopt
8391 # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 OCAMLOPT=$ac_cv_path_OCAMLOPT
8422 if test -n "$OCAMLOPT"; then
8423 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8424 echo "${ECHO_T}$OCAMLOPT" >&6; }
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8431 test -n "$OCAMLOPT" && break
8434 for ac_prog in ocamldep
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437 set dummy $ac_prog; ac_word=$2
8438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8440 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8455 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 OCAMLDEP=$ac_cv_path_OCAMLDEP
8467 if test -n "$OCAMLDEP"; then
8468 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8469 echo "${ECHO_T}$OCAMLDEP" >&6; }
8471 { echo "$as_me:$LINENO: result: no" >&5
8472 echo "${ECHO_T}no" >&6; }
8476 test -n "$OCAMLDEP" && break
8479 for ac_prog in ocamldoc
8481 # Extract the first word of "$ac_prog", so it can be a program name with args.
8482 set dummy $ac_prog; ac_word=$2
8483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8485 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 OCAMLDOC=$ac_cv_path_OCAMLDOC
8512 if test -n "$OCAMLDOC"; then
8513 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8514 echo "${ECHO_T}$OCAMLDOC" >&6; }
8516 { echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6; }
8521 test -n "$OCAMLDOC" && break
8524 for ac_prog in gas as
8526 # Extract the first word of "$ac_prog", so it can be a program name with args.
8527 set dummy $ac_prog; ac_word=$2
8528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_path_GAS+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8545 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 if test -n "$GAS"; then
8558 { echo "$as_me:$LINENO: result: $GAS" >&5
8559 echo "${ECHO_T}$GAS" >&6; }
8561 { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8566 test -n "$GAS" && break
8570 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8571 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8572 if test "${llvm_cv_link_use_r+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8582 CFLAGS="$CFLAGS -Wl,-R."
8583 cat >conftest.$ac_ext <<_ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8593 int main() { return 0; }
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_link") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 llvm_cv_link_use_r=yes
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 llvm_cv_link_use_r=no
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8651 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8652 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8653 if test "$llvm_cv_link_use_r" = yes ; then
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_LINK_R 1
8662 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8663 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8664 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 ac_cpp='$CPP $CPPFLAGS'
8669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8674 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8685 int main() { return 0; }
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (ac_try="$ac_link"
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_link") 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_try") 2>&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 llvm_cv_link_use_export_dynamic=yes
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 llvm_cv_link_use_export_dynamic=no
8732 rm -f core conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8736 ac_cpp='$CPP $CPPFLAGS'
8737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8744 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8745 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_LINK_EXPORT_DYNAMIC 1
8756 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8758 if test "${ac_cv_c_const+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8771 /* FIXME: Include the comments suggested by Paul. */
8773 /* Ultrix mips cc rejects this. */
8774 typedef int charset[2];
8776 /* SunOS 4.1.1 cc rejects this. */
8777 char const *const *ccp;
8779 /* NEC SVR4.0.2 mips cc rejects this. */
8780 struct point {int x, y;};
8781 static struct point const zero = {0,0};
8782 /* AIX XL C 1.02.0.0 rejects this.
8783 It does not let you subtract one const X* pointer from another in
8784 an arm of an if-expression whose if-part is not a constant
8786 const char *g = "string";
8787 ccp = &g + (g ? g-g : 0);
8788 /* HPUX 7.0 cc rejects these. */
8791 ccp = (char const *const *) p;
8792 { /* SCO 3.2v4 cc rejects this. */
8794 char const *s = 0 ? (char *) 0 : (char const *) 0;
8799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8801 const int *foo = &x[0];
8804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8805 typedef const int *iptr;
8809 { /* AIX XL C 1.02.0.0 rejects this saying
8810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8811 struct s { int j; const int *ap[3]; };
8812 struct s *b; b->j = 5;
8814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8818 return !x[0] && !zero.x;
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest.$ac_objext'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8870 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8871 if test $ac_cv_c_const = no; then
8873 cat >>confdefs.h <<\_ACEOF
8885 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8886 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8887 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8888 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <sys/types.h>
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8919 grep -v '^ *+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } &&
8924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8925 { (case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_try") 2>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_try") 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 eval "$as_ac_Header=yes"
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 eval "$as_ac_Header=no"
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 ac_res=`eval echo '${'$as_ac_Header'}'`
8955 { echo "$as_me:$LINENO: result: $ac_res" >&5
8956 echo "${ECHO_T}$ac_res" >&6; }
8957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8958 cat >>confdefs.h <<_ACEOF
8959 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8962 ac_header_dirent=$ac_hdr; break
8966 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8967 if test $ac_header_dirent = dirent.h; then
8968 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8969 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8970 if test "${ac_cv_search_opendir+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 ac_func_search_save_LIBS=$LIBS
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 /* Override any GCC internal prototype to avoid an error.
8982 Use char because int might match the return type of a GCC
8983 builtin and then its argument prototype would still apply. */
8996 for ac_lib in '' dir; do
8997 if test -z "$ac_lib"; then
8998 ac_res="none required"
9001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (ac_try="$ac_link"
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_link") 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (case "(($ac_try" in
9029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_try") 2>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_cv_search_opendir=$ac_res
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9045 rm -f core conftest.err conftest.$ac_objext \
9047 if test "${ac_cv_search_opendir+set}" = set; then
9051 if test "${ac_cv_search_opendir+set}" = set; then
9054 ac_cv_search_opendir=no
9057 LIBS=$ac_func_search_save_LIBS
9059 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9060 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9061 ac_res=$ac_cv_search_opendir
9062 if test "$ac_res" != no; then
9063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9068 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9069 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9070 if test "${ac_cv_search_opendir+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 ac_func_search_save_LIBS=$LIBS
9074 cat >conftest.$ac_ext <<_ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9096 for ac_lib in '' x; do
9097 if test -z "$ac_lib"; then
9098 ac_res="none required"
9101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (ac_try="$ac_link"
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_link") 2>conftest.er1
9112 grep -v '^ *+' conftest.er1 >conftest.err
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_try") 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_search_opendir=$ac_res
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9145 rm -f core conftest.err conftest.$ac_objext \
9147 if test "${ac_cv_search_opendir+set}" = set; then
9151 if test "${ac_cv_search_opendir+set}" = set; then
9154 ac_cv_search_opendir=no
9157 LIBS=$ac_func_search_save_LIBS
9159 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9160 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9161 ac_res=$ac_cv_search_opendir
9162 if test "$ac_res" != no; then
9163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9170 for ac_header in dlfcn.h
9172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 ac_res=`eval echo '${'$as_ac_Header'}'`
9180 { echo "$as_me:$LINENO: result: $ac_res" >&5
9181 echo "${ECHO_T}$ac_res" >&6; }
9183 # Is the header compilable?
9184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9186 cat >conftest.$ac_ext <<_ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192 $ac_includes_default
9193 #include <$ac_header>
9195 rm -f conftest.$ac_objext
9196 if { (ac_try="$ac_compile"
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_compile") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_try") 2>&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_header_compiler=yes
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_header_compiler=no
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9239 echo "${ECHO_T}$ac_header_compiler" >&6; }
9241 # Is the header present?
9242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9244 cat >conftest.$ac_ext <<_ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 #include <$ac_header>
9252 if { (ac_try="$ac_cpp conftest.$ac_ext"
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9260 grep -v '^ *+' conftest.er1 >conftest.err
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } >/dev/null; then
9265 if test -s conftest.err; then
9266 ac_cpp_err=$ac_c_preproc_warn_flag
9267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9274 if test -z "$ac_cpp_err"; then
9275 ac_header_preproc=yes
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 ac_header_preproc=no
9283 rm -f conftest.err conftest.$ac_ext
9284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6; }
9287 # So? What about this header?
9288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9310 ## ----------------------------------- ##
9311 ## Report this to llvmbugs@cs.uiuc.edu ##
9312 ## ----------------------------------- ##
9314 ) | sed "s/^/$as_me: WARNING: /" >&2
9317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 eval "$as_ac_Header=\$ac_header_preproc"
9324 ac_res=`eval echo '${'$as_ac_Header'}'`
9325 { echo "$as_me:$LINENO: result: $ac_res" >&5
9326 echo "${ECHO_T}$ac_res" >&6; }
9329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9330 cat >>confdefs.h <<_ACEOF
9331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9338 # Check whether --enable-ltdl-install was given.
9339 if test "${enable_ltdl_install+set}" = set; then
9340 enableval=$enable_ltdl_install;
9346 if test x"${enable_ltdl_install-no}" != xno; then
9348 INSTALL_LTDL_FALSE='#'
9350 INSTALL_LTDL_TRUE='#'
9356 if test x"${enable_ltdl_convenience-no}" != xno; then
9357 CONVENIENCE_LTDL_TRUE=
9358 CONVENIENCE_LTDL_FALSE='#'
9360 CONVENIENCE_LTDL_TRUE='#'
9361 CONVENIENCE_LTDL_FALSE=
9365 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9368 libname_spec='lib$name'
9376 shlibpath_overrides_runpath=unknown
9378 dynamic_linker="$host_os ld.so"
9379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9380 if test "$GCC" = yes; then
9381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9383 # if the path contains ";" then we assume it to be the separator
9384 # otherwise default to the standard path separator (i.e. ":") - it is
9385 # assumed that no part of a normal pathname contains ";" but that should
9386 # okay in the real world where ";" in dirpaths is itself problematic.
9387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9394 need_lib_prefix=unknown
9395 hardcode_into_libs=no
9397 # when you set need_version to no, make sure it does not cause -set_version
9398 # flags to be left without arguments
9399 need_version=unknown
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9405 shlibpath_var=LIBPATH
9407 # AIX 3 has no versioning support, so we append a major version to the name.
9408 soname_spec='${libname}${release}${shared_ext}$major'
9415 hardcode_into_libs=yes
9416 if test "$host_cpu" = ia64; then
9417 # AIX 5 supports IA64
9418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9419 shlibpath_var=LD_LIBRARY_PATH
9421 # With GCC up to 2.95.x, collect2 would create an import file
9422 # for dependence libraries. The import file would start with
9423 # the line `#! .'. This would cause the generated library to
9424 # depend on `.', always an invalid library. This was fixed in
9425 # development snapshots of GCC prior to 3.0.
9427 aix4 | aix4.[01] | aix4.[01].*)
9428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9438 # soname into executable. Probably we can add versioning support to
9439 # collect2, so additional links can be useful in future.
9440 if test "$aix_use_runtimelinking" = yes; then
9441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9442 # instead of lib<name>.a to let people know that these are not
9443 # typical AIX shared libraries.
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 # We preserve .a as extension for shared libraries through AIX4.2
9447 # and later when we are not doing run time linking.
9448 library_names_spec='${libname}${release}.a $libname.a'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LIBPATH
9456 library_names_spec='$libname.ixlibrary $libname.a'
9457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9458 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'
9462 library_names_spec='${libname}${shared_ext}'
9463 dynamic_linker="$host_os ld.so"
9464 shlibpath_var=LIBRARY_PATH
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9476 # the default ld.so.conf also contains /usr/contrib/lib and
9477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9478 # libtool to hard-code these into programs
9481 cygwin* | mingw* | pw32*)
9482 version_type=windows
9487 case $GCC,$host_os in
9488 yes,cygwin* | yes,mingw* | yes,pw32*)
9489 library_names_spec='$libname.dll.a'
9490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9491 postinstall_cmds='base_file=`basename \${file}`~
9492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9493 dldir=$destdir/`dirname \$dlpath`~
9494 test -d \$dldir || mkdir -p \$dldir~
9495 $install_prog $dir/$dlname \$dldir/$dlname~
9496 chmod a+x \$dldir/$dlname'
9497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9498 dlpath=$dir/\$dldll~
9500 shlibpath_overrides_runpath=yes
9504 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9505 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9506 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9509 # MinGW DLLs use traditional 'lib' prefix
9510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9511 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9512 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9513 # It is most probably a Windows format PATH printed by
9514 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9515 # path with ; separators, and with drive letters. We can handle the
9516 # drive letters (cygwin fileutils understands them), so leave them,
9517 # especially as we might pass files found there to a mingw objdump,
9518 # which wouldn't understand a cygwinified path. Ahh.
9519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9525 # pw32 DLLs use 'pw' prefix rather than 'lib'
9526 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9532 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9535 dynamic_linker='Win32 ld.exe'
9536 # FIXME: first we should search . and the directory the executable is in
9540 darwin* | rhapsody*)
9541 dynamic_linker="$host_os dyld"
9545 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9546 soname_spec='${libname}${release}${major}$shared_ext'
9547 shlibpath_overrides_runpath=yes
9548 shlibpath_var=DYLD_LIBRARY_PATH
9549 shrext_cmds='.dylib'
9550 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9551 if test "$GCC" = yes; then
9552 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"`
9554 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 shlibpath_var=LD_LIBRARY_PATH
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 shlibpath_overrides_runpath=no
9580 hardcode_into_libs=yes
9581 dynamic_linker='GNU ld.so'
9584 freebsd* | dragonfly*)
9585 # DragonFly does not have aout. When/if they implement a new
9586 # versioning mechanism, adjust this.
9587 if test -x /usr/bin/objformat; then
9588 objformat=`/usr/bin/objformat`
9591 freebsd[123]*) objformat=aout ;;
9595 version_type=freebsd-$objformat
9596 case $version_type in
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9607 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=yes
9612 freebsd3.[01]* | freebsdelf3.[01]*)
9613 shlibpath_overrides_runpath=yes
9614 hardcode_into_libs=yes
9616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9618 shlibpath_overrides_runpath=no
9619 hardcode_into_libs=yes
9621 freebsd*) # from 4.6 on
9622 shlibpath_overrides_runpath=yes
9623 hardcode_into_libs=yes
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 hardcode_into_libs=yes
9638 hpux9* | hpux10* | hpux11*)
9639 # Give a soname corresponding to the major version so that dld.sl refuses to
9640 # link against other versions.
9647 hardcode_into_libs=yes
9648 dynamic_linker="$host_os dld.so"
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 if test "X$HPUX_IA64_MODE" = X32; then
9654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9662 hardcode_into_libs=yes
9663 dynamic_linker="$host_os dld.sl"
9664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9673 dynamic_linker="$host_os dld.sl"
9674 shlibpath_var=SHLIB_PATH
9675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9680 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9681 postinstall_cmds='chmod 555 $lib'
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 shlibpath_overrides_runpath=no
9693 hardcode_into_libs=yes
9696 irix5* | irix6* | nonstopux*)
9698 nonstopux*) version_type=nonstopux ;;
9700 if test "$lt_cv_prog_gnu_ld" = yes; then
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9711 irix5* | nonstopux*)
9715 case $LD in # libtool.m4 will add one of these switches to LD
9716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9717 libsuff= shlibsuff= libmagic=32-bit;;
9718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9719 libsuff=32 shlibsuff=N32 libmagic=N32;;
9720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9722 *) libsuff= shlibsuff= libmagic=never-match;;
9726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9727 shlibpath_overrides_runpath=no
9728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9730 hardcode_into_libs=yes
9733 # No shared lib support for Linux oldld, aout, or coff.
9734 linux*oldld* | linux*aout* | linux*coff*)
9738 # This must be Linux ELF.
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=no
9748 # This implies no fast_install, which is unacceptable.
9749 # Some rework will be needed to allow for fast_install
9750 # before this can be enabled.
9751 hardcode_into_libs=yes
9753 # Append ld.so.conf contents to the search path
9754 if test -f /etc/ld.so.conf; then
9755 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' ' '`
9756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9759 # We used to test for /lib/ld.so.1 and disable shared libraries on
9760 # powerpc, because MkLinux only supported shared libraries with the
9761 # GNU dynamic linker. Since this was broken with cross compilers,
9762 # most powerpc-linux boxes support dynamic linking these days and
9763 # people can always --disable-shared, the test was removed, and we
9764 # assume the GNU/Linux dynamic linker is in use.
9765 dynamic_linker='GNU/Linux ld.so'
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=no
9776 hardcode_into_libs=yes
9777 dynamic_linker='GNU ld.so'
9784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9787 dynamic_linker='NetBSD (a.out) ld.so'
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 dynamic_linker='NetBSD ld.elf_so'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=yes
9795 hardcode_into_libs=yes
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=yes
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 shlibpath_overrides_runpath=yes
9817 sys_lib_dlsearch_path_spec="/usr/lib"
9819 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9821 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9822 *) need_version=no ;;
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9829 openbsd2.[89] | openbsd2.[89].*)
9830 shlibpath_overrides_runpath=no
9833 shlibpath_overrides_runpath=yes
9837 shlibpath_overrides_runpath=yes
9842 libname_spec='$name'
9845 library_names_spec='$libname${shared_ext} $libname.a'
9846 dynamic_linker='OS/2 ld.exe'
9847 shlibpath_var=LIBPATH
9850 osf3* | osf4* | osf5*)
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 shlibpath_overrides_runpath=yes
9869 hardcode_into_libs=yes
9870 # ldd complains unless libraries are executable
9871 postinstall_cmds='chmod +x $lib'
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath=yes
9880 if test "$with_gnu_ld" = yes; then
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 case $host_vendor in
9893 shlibpath_overrides_runpath=no
9895 export_dynamic_flag_spec='${wl}-Blargedynsym'
9896 runpath_var=LD_RUN_PATH
9904 shlibpath_overrides_runpath=no
9905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9911 if test -d /usr/nec ;then
9913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9914 soname_spec='$libname${shared_ext}.$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9920 version_type=freebsd-elf
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 hardcode_into_libs=yes
9927 if test "$with_gnu_ld" = yes; then
9928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9929 shlibpath_overrides_runpath=no
9931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9932 shlibpath_overrides_runpath=yes
9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9939 sys_lib_dlsearch_path_spec='/usr/lib'
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9953 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9954 echo "${ECHO_T}$dynamic_linker" >&6; }
9955 test "$dynamic_linker" = no && can_build_shared=no
9957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9958 if test "$GCC" = yes; then
9959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9963 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9964 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9965 if test "${libltdl_cv_shlibext+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 eval libltdl_cv_shlibext=$shrext_cmds
9973 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9974 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9975 if test -n "$libltdl_cv_shlibext"; then
9977 cat >>confdefs.h <<_ACEOF
9978 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9984 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9985 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9986 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 libltdl_cv_shlibpath_var="$shlibpath_var"
9991 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9992 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9993 if test -n "$libltdl_cv_shlibpath_var"; then
9995 cat >>confdefs.h <<_ACEOF
9996 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10002 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10003 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10004 if test "${libltdl_cv_sys_search_path+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10009 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10010 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10011 if test -n "$libltdl_cv_sys_search_path"; then
10013 for dir in $libltdl_cv_sys_search_path; do
10014 if test -z "$sys_search_path"; then
10015 sys_search_path="$dir"
10017 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10021 cat >>confdefs.h <<_ACEOF
10022 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10027 { echo "$as_me:$LINENO: checking for objdir" >&5
10028 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10029 if test "${libltdl_cv_objdir+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 libltdl_cv_objdir="$objdir"
10033 if test -n "$objdir"; then
10036 rm -f .libs 2>/dev/null
10037 mkdir .libs 2>/dev/null
10038 if test -d .libs; then
10039 libltdl_cv_objdir=.libs
10041 # MS-DOS does not allow filenames that begin with a dot.
10042 libltdl_cv_objdir=_libs
10044 rmdir .libs 2>/dev/null
10048 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10049 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10051 cat >>confdefs.h <<_ACEOF
10052 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10060 # Check for command to grab the raw symbol name followed by C symbol from nm.
10061 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10062 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10063 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 # These are sane defaults that work on at least a few old systems.
10068 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10070 # Character class describing NM global symbol codes.
10071 symcode='[BCDEGRST]'
10073 # Regexp to match symbols that can be accessed directly from C.
10074 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10076 # Transform an extracted symbol line into a proper C declaration
10077 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10079 # Transform an extracted symbol line into symbol name and symbol address
10080 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'"
10082 # Define system-specific variables.
10087 cygwin* | mingw* | pw32*)
10088 symcode='[ABCDGISTW]'
10090 hpux*) # Its linker distinguishes data from code symbols
10091 if test "$host_cpu" = ia64; then
10092 symcode='[ABCDEGRST]'
10094 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10095 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'"
10098 if test "$host_cpu" = ia64; then
10099 symcode='[ABCDGIRSTW]'
10100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10101 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'"
10104 irix* | nonstopux*)
10105 symcode='[BCDEGRST]'
10108 symcode='[BCDEGQRST]'
10119 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10127 # Handle CRLF in mingw tool chain
10131 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10135 # If we're using GNU nm, then use its standard symbol codes.
10136 case `$NM -V 2>&1` in
10137 *GNU* | *'with BFD'*)
10138 symcode='[ABCDGIRSTW]' ;;
10141 # Try without a prefix undercore, then with it.
10142 for ac_symprfx in "" "_"; do
10144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10145 symxfrm="\\1 $ac_symprfx\\2 \\2"
10147 # Write the raw and C identifiers.
10148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10150 # Check to see that the pipe works correctly.
10154 cat > conftest.$ac_ext <<EOF
10159 void nm_test_func(){}
10163 int main(){nm_test_var='a';nm_test_func();return(0);}
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; then
10171 # Now try to grab the symbols.
10173 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10174 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } && test -s "$nlist"; then
10178 # Try sorting and uniquifying the output.
10179 if sort "$nlist" | uniq > "$nlist"T; then
10180 mv -f "$nlist"T "$nlist"
10185 # Make sure that we snagged all the symbols we need.
10186 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10187 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10188 cat <<EOF > conftest.$ac_ext
10194 # Now generate the symbol file.
10195 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10197 cat <<EOF >> conftest.$ac_ext
10198 #if defined (__STDC__) && __STDC__
10199 # define lt_ptr_t void *
10201 # define lt_ptr_t char *
10205 /* The mapping between symbol names and symbols. */
10210 lt_preloaded_symbols[] =
10213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10214 cat <<\EOF >> conftest.$ac_ext
10222 # Now try linking the two files.
10223 mv conftest.$ac_objext conftstm.$ac_objext
10224 lt_save_LIBS="$LIBS"
10225 lt_save_CFLAGS="$CFLAGS"
10226 LIBS="conftstm.$ac_objext"
10227 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10235 LIBS="$lt_save_LIBS"
10236 CFLAGS="$lt_save_CFLAGS"
10238 echo "cannot find nm_test_func in $nlist" >&5
10241 echo "cannot find nm_test_var in $nlist" >&5
10244 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10247 echo "$progname: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10250 rm -f conftest* conftst*
10252 # Do not use the global_symbol_pipe unless it works.
10253 if test "$pipe_works" = yes; then
10256 lt_cv_sys_global_symbol_pipe=
10262 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10263 lt_cv_sys_global_symbol_to_cdecl=
10265 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10266 { echo "$as_me:$LINENO: result: failed" >&5
10267 echo "${ECHO_T}failed" >&6; }
10269 { echo "$as_me:$LINENO: result: ok" >&5
10270 echo "${ECHO_T}ok" >&6; }
10274 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10275 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10276 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10280 libltdl_cv_preloaded_symbols=yes
10282 libltdl_cv_preloaded_symbols=no
10286 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10287 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10288 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10290 cat >>confdefs.h <<\_ACEOF
10291 #define HAVE_PRELOADED_SYMBOLS 1
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10305 { echo "$as_me:$LINENO: checking for shl_load" >&5
10306 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10307 if test "${ac_cv_func_shl_load+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10318 #define shl_load innocuous_shl_load
10320 /* System header to define __stub macros and hopefully few prototypes,
10321 which can conflict with char shl_load (); below.
10322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10323 <limits.h> exists even on freestanding compilers. */
10326 # include <limits.h>
10328 # include <assert.h>
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10340 /* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
10343 #if defined __stub_shl_load || defined __stub___shl_load
10350 return shl_load ();
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (ac_try="$ac_link"
10357 case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_link") 2>conftest.er1
10364 grep -v '^ *+' conftest.er1 >conftest.err
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } &&
10379 { ac_try='test -s conftest$ac_exeext'
10380 { (case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_try") 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_cv_func_shl_load=yes
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_cv_func_shl_load=no
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10400 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10401 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10402 if test $ac_cv_func_shl_load = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_SHL_LOAD 1
10409 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 ac_check_lib_save_LIBS=$LIBS
10416 cat >conftest.$ac_ext <<_ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10433 return shl_load ();
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_lib_dld_shl_load=yes
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_lib_dld_shl_load=no
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10484 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10485 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10486 if test $ac_cv_lib_dld_shl_load = yes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_SHL_LOAD 1
10492 LIBADD_DL="$LIBADD_DL -ldld"
10494 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 ac_check_lib_save_LIBS=$LIBS
10501 cat >conftest.$ac_ext <<_ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10508 /* Override any GCC internal prototype to avoid an error.
10509 Use char because int might match the return type of a GCC
10510 builtin and then its argument prototype would still apply. */
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (ac_try="$ac_link"
10525 case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_link") 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_lib_dl_dlopen=yes
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_cv_lib_dl_dlopen=no
10565 rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10569 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10570 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10571 if test $ac_cv_lib_dl_dlopen = yes; then
10573 cat >>confdefs.h <<\_ACEOF
10574 #define HAVE_LIBDL 1
10577 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10586 # include <dlfcn.h>
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest$ac_exeext'
10622 { (case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_try") 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_LIBDL 1
10635 libltdl_cv_func_dlopen="yes"
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10641 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10642 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 ac_check_lib_save_LIBS=$LIBS
10646 LIBS="-lsvld $LIBS"
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_lib_svld_dlopen=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_lib_svld_dlopen=no
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10716 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10717 if test $ac_cv_lib_svld_dlopen = yes; then
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_LIBDL 1
10723 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10725 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10726 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10727 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 ac_check_lib_save_LIBS=$LIBS
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10749 return dld_link ();
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_link") 2>conftest.er1
10763 grep -v '^ *+' conftest.er1 >conftest.err
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_lib_dld_dld_link=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_lib_dld_dld_link=no
10796 rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10800 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10801 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10802 if test $ac_cv_lib_dld_dld_link = yes; then
10804 cat >>confdefs.h <<\_ACEOF
10808 LIBADD_DL="$LIBADD_DL -ldld"
10810 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10811 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10812 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 cat >conftest.$ac_ext <<_ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10823 #define _dyld_func_lookup innocuous__dyld_func_lookup
10825 /* System header to define __stub macros and hopefully few prototypes,
10826 which can conflict with char _dyld_func_lookup (); below.
10827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828 <limits.h> exists even on freestanding compilers. */
10831 # include <limits.h>
10833 # include <assert.h>
10836 #undef _dyld_func_lookup
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10844 char _dyld_func_lookup ();
10845 /* The GNU C library defines this for functions which it implements
10846 to always fail with ENOSYS. Some functions are actually named
10847 something starting with __ and the normal name is an alias. */
10848 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10855 return _dyld_func_lookup ();
10860 rm -f conftest.$ac_objext conftest$ac_exeext
10861 if { (ac_try="$ac_link"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
10869 grep -v '^ *+' conftest.er1 >conftest.err
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_func__dyld_func_lookup=yes
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_cv_func__dyld_func_lookup=no
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10905 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10906 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10907 if test $ac_cv_func__dyld_func_lookup = yes; then
10909 cat >>confdefs.h <<\_ACEOF
10910 #define HAVE_DYLD 1
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10936 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10938 lt_save_LIBS="$LIBS"
10939 LIBS="$LIBS $LIBADD_DL"
10941 for ac_func in dlerror
10943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 cat >conftest.$ac_ext <<_ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10957 #define $ac_func innocuous_$ac_func
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func (); below.
10961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962 <limits.h> exists even on freestanding compilers. */
10965 # include <limits.h>
10967 # include <assert.h>
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10979 /* The GNU C library defines this for functions which it implements
10980 to always fail with ENOSYS. Some functions are actually named
10981 something starting with __ and the normal name is an alias. */
10982 #if defined __stub_$ac_func || defined __stub___$ac_func
10989 return $ac_func ();
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest$ac_exeext'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 eval "$as_ac_var=yes"
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 eval "$as_ac_var=no"
11036 rm -f core conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11039 ac_res=`eval echo '${'$as_ac_var'}'`
11040 { echo "$as_me:$LINENO: result: $ac_res" >&5
11041 echo "${ECHO_T}$ac_res" >&6; }
11042 if test `eval echo '${'$as_ac_var'}'` = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11050 LIBS="$lt_save_LIBS"
11053 ac_cpp='$CPP $CPPFLAGS'
11054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11060 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11061 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11062 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 ac_cv_sys_symbol_underscore=no
11066 cat > conftest.$ac_ext <<EOF
11067 void nm_test_func(){}
11068 int main(){nm_test_func;return 0;}
11070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; then
11075 # Now try to grab the symbols.
11076 ac_nlist=conftest.nm
11077 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11078 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && test -s "$ac_nlist"; then
11082 # See whether the symbols have a leading underscore.
11083 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11084 ac_cv_sys_symbol_underscore=yes
11086 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11089 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11093 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11096 echo "configure: failed program was:" >&5
11102 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11103 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11106 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11107 if test x"$libltdl_cv_func_dlopen" = xyes ||
11108 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11109 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11110 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11111 if test "${libltdl_cv_need_uscore+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 libltdl_cv_need_uscore=unknown
11116 LIBS="$LIBS $LIBADD_DL"
11117 if test "$cross_compiling" = yes; then :
11118 libltdl_cv_need_uscore=cross
11120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11121 lt_status=$lt_dlunknown
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11123 "configure"
11124 #include "confdefs.h"
11133 # define LT_DLGLOBAL RTLD_GLOBAL
11136 # define LT_DLGLOBAL DL_GLOBAL
11138 # define LT_DLGLOBAL 0
11142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11143 find out it does not work in some platform. */
11144 #ifndef LT_DLLAZY_OR_NOW
11146 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11149 # define LT_DLLAZY_OR_NOW DL_LAZY
11152 # define LT_DLLAZY_OR_NOW RTLD_NOW
11155 # define LT_DLLAZY_OR_NOW DL_NOW
11157 # define LT_DLLAZY_OR_NOW 0
11165 extern "C" void exit (int);
11168 void fnord() { int i=42;}
11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172 int status = $lt_dlunknown;
11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11177 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11178 /* dlclose (self); */
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11191 (./conftest; exit; ) >&5 2>/dev/null
11193 case x$lt_status in
11194 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11195 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11196 x$lt_dlunknown|x*) ;;
11199 # compilation failed
11208 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11209 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11213 if test x"$libltdl_cv_need_uscore" = xyes; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define NEED_USCORE 1
11222 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11223 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11224 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 # PORTME does your system automatically load deplibs for dlopen?
11228 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11229 # For now, we just catch OSes we know something about -- in the
11230 # future, we'll try test this programmatically.
11231 libltdl_cv_sys_dlopen_deplibs=unknown
11233 aix3*|aix4.1.*|aix4.2.*)
11234 # Unknown whether this is true for these versions of AIX, but
11235 # we want this `case' here to explicitly catch those versions.
11236 libltdl_cv_sys_dlopen_deplibs=unknown
11239 libltdl_cv_sys_dlopen_deplibs=yes
11242 # Assuming the user has installed a libdl from somewhere, this is true
11243 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11244 libltdl_cv_sys_dlopen_deplibs=yes
11246 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11247 # GNU and its variants, using gnu ld.so (Glibc)
11248 libltdl_cv_sys_dlopen_deplibs=yes
11251 libltdl_cv_sys_dlopen_deplibs=yes
11254 libltdl_cv_sys_dlopen_deplibs=yes
11256 irix[12345]*|irix6.[01]*)
11257 # Catch all versions of IRIX before 6.2, and indicate that we don't
11258 # know how it worked for any of those versions.
11259 libltdl_cv_sys_dlopen_deplibs=unknown
11262 # The case above catches anything before 6.2, and it's known that
11263 # at 6.2 and later dlopen does load deplibs.
11264 libltdl_cv_sys_dlopen_deplibs=yes
11267 libltdl_cv_sys_dlopen_deplibs=yes
11270 libltdl_cv_sys_dlopen_deplibs=yes
11273 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11274 # it did *not* use an RPATH in a shared library to find objects the
11275 # library depends on, so we explictly say `no'.
11276 libltdl_cv_sys_dlopen_deplibs=no
11278 osf5.0|osf5.0a|osf5.1)
11279 # dlopen *does* load deplibs and with the right loader patch applied
11280 # it even uses RPATH in a shared library to search for shared objects
11281 # that the library depends on, but there's no easy way to know if that
11282 # patch is installed. Since this is the case, all we can really
11283 # say is unknown -- it depends on the patch being installed. If
11284 # it is, this changes to `yes'. Without it, it would be `no'.
11285 libltdl_cv_sys_dlopen_deplibs=unknown
11288 # the two cases above should catch all versions of osf <= 5.1. Read
11289 # the comments above for what we know about them.
11290 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11291 # is used to find them so we can finally say `yes'.
11292 libltdl_cv_sys_dlopen_deplibs=yes
11295 libltdl_cv_sys_dlopen_deplibs=yes
11297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11298 libltdl_cv_sys_dlopen_deplibs=yes
11303 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11304 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11305 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define LTDL_DLOPEN_DEPLIBS 1
11314 for ac_header in argz.h
11316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 ac_res=`eval echo '${'$as_ac_Header'}'`
11324 { echo "$as_me:$LINENO: result: $ac_res" >&5
11325 echo "${ECHO_T}$ac_res" >&6; }
11327 # Is the header compilable?
11328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11330 cat >conftest.$ac_ext <<_ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 #include <$ac_header>
11339 rm -f conftest.$ac_objext
11340 if { (ac_try="$ac_compile"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_compile") 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11354 { (case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_try") 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; } &&
11363 { ac_try='test -s conftest.$ac_objext'
11364 { (case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_try") 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; }; then
11373 ac_header_compiler=yes
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_header_compiler=no
11381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11383 echo "${ECHO_T}$ac_header_compiler" >&6; }
11385 # Is the header present?
11386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11388 cat >conftest.$ac_ext <<_ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <$ac_header>
11396 if { (ac_try="$ac_cpp conftest.$ac_ext"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11404 grep -v '^ *+' conftest.er1 >conftest.err
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } >/dev/null; then
11409 if test -s conftest.err; then
11410 ac_cpp_err=$ac_c_preproc_warn_flag
11411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11418 if test -z "$ac_cpp_err"; then
11419 ac_header_preproc=yes
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_header_preproc=no
11427 rm -f conftest.err conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11429 echo "${ECHO_T}$ac_header_preproc" >&6; }
11431 # So? What about this header?
11432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11438 ac_header_preproc=yes
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11454 ## ----------------------------------- ##
11455 ## Report this to llvmbugs@cs.uiuc.edu ##
11456 ## ----------------------------------- ##
11458 ) | sed "s/^/$as_me: WARNING: /" >&2
11461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 eval "$as_ac_Header=\$ac_header_preproc"
11468 ac_res=`eval echo '${'$as_ac_Header'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11483 { echo "$as_me:$LINENO: checking for error_t" >&5
11484 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11485 if test "${ac_cv_type_error_t+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11498 typedef error_t ac__type_new_;
11502 if ((ac__type_new_ *) 0)
11504 if (sizeof (ac__type_new_))
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_compile") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_cv_type_error_t=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_cv_type_error_t=no
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11555 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11556 if test $ac_cv_type_error_t = yes; then
11558 cat >>confdefs.h <<_ACEOF
11559 #define HAVE_ERROR_T 1
11565 cat >>confdefs.h <<\_ACEOF
11566 #define error_t int
11577 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 cat >conftest.$ac_ext <<_ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11593 #define $ac_func innocuous_$ac_func
11595 /* System header to define __stub macros and hopefully few prototypes,
11596 which can conflict with char $ac_func (); below.
11597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598 <limits.h> exists even on freestanding compilers. */
11601 # include <limits.h>
11603 # include <assert.h>
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11615 /* The GNU C library defines this for functions which it implements
11616 to always fail with ENOSYS. Some functions are actually named
11617 something starting with __ and the normal name is an alias. */
11618 #if defined __stub_$ac_func || defined __stub___$ac_func
11625 return $ac_func ();
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (ac_try="$ac_link"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_link") 2>conftest.er1
11639 grep -v '^ *+' conftest.er1 >conftest.err
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_try") 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 eval "$as_ac_var=yes"
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 eval "$as_ac_var=no"
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11675 ac_res=`eval echo '${'$as_ac_var'}'`
11676 { echo "$as_me:$LINENO: result: $ac_res" >&5
11677 echo "${ECHO_T}$ac_res" >&6; }
11678 if test `eval echo '${'$as_ac_var'}'` = yes; then
11679 cat >>confdefs.h <<_ACEOF
11680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11713 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725 echo "${ECHO_T}$ac_res" >&6; }
11727 # Is the header compilable?
11728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 $ac_includes_default
11737 #include <$ac_header>
11739 rm -f conftest.$ac_objext
11740 if { (ac_try="$ac_compile"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_compile") 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest.$ac_objext'
11764 { (case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_try") 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_header_compiler=yes
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_header_compiler=no
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11783 echo "${ECHO_T}$ac_header_compiler" >&6; }
11785 # Is the header present?
11786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11788 cat >conftest.$ac_ext <<_ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 #include <$ac_header>
11796 if { (ac_try="$ac_cpp conftest.$ac_ext"
11797 case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11804 grep -v '^ *+' conftest.er1 >conftest.err
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } >/dev/null; then
11809 if test -s conftest.err; then
11810 ac_cpp_err=$ac_c_preproc_warn_flag
11811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11818 if test -z "$ac_cpp_err"; then
11819 ac_header_preproc=yes
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_header_preproc=no
11827 rm -f conftest.err conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11829 echo "${ECHO_T}$ac_header_preproc" >&6; }
11831 # So? What about this header?
11832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11838 ac_header_preproc=yes
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11854 ## ----------------------------------- ##
11855 ## Report this to llvmbugs@cs.uiuc.edu ##
11856 ## ----------------------------------- ##
11858 ) | sed "s/^/$as_me: WARNING: /" >&2
11861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 eval "$as_ac_Header=\$ac_header_preproc"
11868 ac_res=`eval echo '${'$as_ac_Header'}'`
11869 { echo "$as_me:$LINENO: result: $ac_res" >&5
11870 echo "${ECHO_T}$ac_res" >&6; }
11873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11886 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_res=`eval echo '${'$as_ac_Header'}'`
11896 { echo "$as_me:$LINENO: result: $ac_res" >&5
11897 echo "${ECHO_T}$ac_res" >&6; }
11899 # Is the header compilable?
11900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 #include <$ac_header>
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
11920 grep -v '^ *+' conftest.er1 >conftest.err
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest.$ac_objext'
11936 { (case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_try") 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_header_compiler=yes
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_header_compiler=no
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11955 echo "${ECHO_T}$ac_header_compiler" >&6; }
11957 # Is the header present?
11958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 #include <$ac_header>
11968 if { (ac_try="$ac_cpp conftest.$ac_ext"
11969 case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } >/dev/null; then
11981 if test -s conftest.err; then
11982 ac_cpp_err=$ac_c_preproc_warn_flag
11983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11990 if test -z "$ac_cpp_err"; then
11991 ac_header_preproc=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_header_preproc=no
11999 rm -f conftest.err conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001 echo "${ECHO_T}$ac_header_preproc" >&6; }
12003 # So? What about this header?
12004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc=yes
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12026 ## ----------------------------------- ##
12027 ## Report this to llvmbugs@cs.uiuc.edu ##
12028 ## ----------------------------------- ##
12030 ) | sed "s/^/$as_me: WARNING: /" >&2
12033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 eval "$as_ac_Header=\$ac_header_preproc"
12040 ac_res=`eval echo '${'$as_ac_Header'}'`
12041 { echo "$as_me:$LINENO: result: $ac_res" >&5
12042 echo "${ECHO_T}$ac_res" >&6; }
12045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12056 for ac_header in string.h strings.h
12058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 ac_res=`eval echo '${'$as_ac_Header'}'`
12066 { echo "$as_me:$LINENO: result: $ac_res" >&5
12067 echo "${ECHO_T}$ac_res" >&6; }
12069 # Is the header compilable?
12070 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12072 cat >conftest.$ac_ext <<_ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 $ac_includes_default
12079 #include <$ac_header>
12081 rm -f conftest.$ac_objext
12082 if { (ac_try="$ac_compile"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_compile") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest.$ac_objext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_header_compiler=yes
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 ac_header_compiler=no
12123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12125 echo "${ECHO_T}$ac_header_compiler" >&6; }
12127 # Is the header present?
12128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12130 cat >conftest.$ac_ext <<_ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include <$ac_header>
12138 if { (ac_try="$ac_cpp conftest.$ac_ext"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12146 grep -v '^ *+' conftest.er1 >conftest.err
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } >/dev/null; then
12151 if test -s conftest.err; then
12152 ac_cpp_err=$ac_c_preproc_warn_flag
12153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12160 if test -z "$ac_cpp_err"; then
12161 ac_header_preproc=yes
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 ac_header_preproc=no
12169 rm -f conftest.err conftest.$ac_ext
12170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171 echo "${ECHO_T}$ac_header_preproc" >&6; }
12173 # So? What about this header?
12174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180 ac_header_preproc=yes
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12196 ## ----------------------------------- ##
12197 ## Report this to llvmbugs@cs.uiuc.edu ##
12198 ## ----------------------------------- ##
12200 ) | sed "s/^/$as_me: WARNING: /" >&2
12203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 eval "$as_ac_Header=\$ac_header_preproc"
12210 ac_res=`eval echo '${'$as_ac_Header'}'`
12211 { echo "$as_me:$LINENO: result: $ac_res" >&5
12212 echo "${ECHO_T}$ac_res" >&6; }
12215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12216 cat >>confdefs.h <<_ACEOF
12217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12227 for ac_func in strchr index
12229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12243 #define $ac_func innocuous_$ac_func
12245 /* System header to define __stub macros and hopefully few prototypes,
12246 which can conflict with char $ac_func (); below.
12247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12248 <limits.h> exists even on freestanding compilers. */
12251 # include <limits.h>
12253 # include <assert.h>
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12265 /* The GNU C library defines this for functions which it implements
12266 to always fail with ENOSYS. Some functions are actually named
12267 something starting with __ and the normal name is an alias. */
12268 #if defined __stub_$ac_func || defined __stub___$ac_func
12275 return $ac_func ();
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (ac_try="$ac_link"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_link") 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest$ac_exeext'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 eval "$as_ac_var=yes"
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 eval "$as_ac_var=no"
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12325 ac_res=`eval echo '${'$as_ac_var'}'`
12326 { echo "$as_me:$LINENO: result: $ac_res" >&5
12327 echo "${ECHO_T}$ac_res" >&6; }
12328 if test `eval echo '${'$as_ac_var'}'` = yes; then
12329 cat >>confdefs.h <<_ACEOF
12330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12338 for ac_func in strrchr rindex
12340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12354 #define $ac_func innocuous_$ac_func
12356 /* System header to define __stub macros and hopefully few prototypes,
12357 which can conflict with char $ac_func (); below.
12358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12359 <limits.h> exists even on freestanding compilers. */
12362 # include <limits.h>
12364 # include <assert.h>
12369 /* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12376 /* The GNU C library defines this for functions which it implements
12377 to always fail with ENOSYS. Some functions are actually named
12378 something starting with __ and the normal name is an alias. */
12379 #if defined __stub_$ac_func || defined __stub___$ac_func
12386 return $ac_func ();
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (ac_try="$ac_link"
12393 case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_link") 2>conftest.er1
12400 grep -v '^ *+' conftest.er1 >conftest.err
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest$ac_exeext'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 eval "$as_ac_var=yes"
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 eval "$as_ac_var=no"
12433 rm -f core conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12436 ac_res=`eval echo '${'$as_ac_var'}'`
12437 { echo "$as_me:$LINENO: result: $ac_res" >&5
12438 echo "${ECHO_T}$ac_res" >&6; }
12439 if test `eval echo '${'$as_ac_var'}'` = yes; then
12440 cat >>confdefs.h <<_ACEOF
12441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12449 for ac_func in memcpy bcopy
12451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12465 #define $ac_func innocuous_$ac_func
12467 /* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char $ac_func (); below.
12469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 <limits.h> exists even on freestanding compilers. */
12473 # include <limits.h>
12475 # include <assert.h>
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12487 /* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
12490 #if defined __stub_$ac_func || defined __stub___$ac_func
12497 return $ac_func ();
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; } &&
12526 { ac_try='test -s conftest$ac_exeext'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 eval "$as_ac_var=yes"
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 eval "$as_ac_var=no"
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12547 ac_res=`eval echo '${'$as_ac_var'}'`
12548 { echo "$as_me:$LINENO: result: $ac_res" >&5
12549 echo "${ECHO_T}$ac_res" >&6; }
12550 if test `eval echo '${'$as_ac_var'}'` = yes; then
12551 cat >>confdefs.h <<_ACEOF
12552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 for ac_func in memmove strcmp
12562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576 #define $ac_func innocuous_$ac_func
12578 /* System header to define __stub macros and hopefully few prototypes,
12579 which can conflict with char $ac_func (); below.
12580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581 <limits.h> exists even on freestanding compilers. */
12584 # include <limits.h>
12586 # include <assert.h>
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12598 /* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
12601 #if defined __stub_$ac_func || defined __stub___$ac_func
12608 return $ac_func ();
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 eval "$as_ac_var=yes"
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 eval "$as_ac_var=no"
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12658 ac_res=`eval echo '${'$as_ac_var'}'`
12659 { echo "$as_me:$LINENO: result: $ac_res" >&5
12660 echo "${ECHO_T}$ac_res" >&6; }
12661 if test `eval echo '${'$as_ac_var'}'` = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12672 for ac_func in closedir opendir readdir
12674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 cat >conftest.$ac_ext <<_ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12688 #define $ac_func innocuous_$ac_func
12690 /* System header to define __stub macros and hopefully few prototypes,
12691 which can conflict with char $ac_func (); below.
12692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 <limits.h> exists even on freestanding compilers. */
12696 # include <limits.h>
12698 # include <assert.h>
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12710 /* The GNU C library defines this for functions which it implements
12711 to always fail with ENOSYS. Some functions are actually named
12712 something starting with __ and the normal name is an alias. */
12713 #if defined __stub_$ac_func || defined __stub___$ac_func
12720 return $ac_func ();
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 eval "$as_ac_var=yes"
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 eval "$as_ac_var=no"
12767 rm -f core conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12770 ac_res=`eval echo '${'$as_ac_var'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772 echo "${ECHO_T}$ac_res" >&6; }
12773 if test `eval echo '${'$as_ac_var'}'` = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12782 # Check whether --enable-shared was given.
12783 if test "${enable_shared+set}" = set; then
12784 enableval=$enable_shared; p=${PACKAGE-default}
12786 yes) enable_shared=yes ;;
12787 no) enable_shared=no ;;
12790 # Look at the argument we got. We use all the common list separators.
12791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12792 for pkg in $enableval; do
12794 if test "X$pkg" = "X$p"; then
12806 # Check whether --enable-static was given.
12807 if test "${enable_static+set}" = set; then
12808 enableval=$enable_static; p=${PACKAGE-default}
12810 yes) enable_static=yes ;;
12811 no) enable_static=no ;;
12814 # Look at the argument we got. We use all the common list separators.
12815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12816 for pkg in $enableval; do
12818 if test "X$pkg" = "X$p"; then
12830 # Check whether --enable-fast-install was given.
12831 if test "${enable_fast_install+set}" = set; then
12832 enableval=$enable_fast_install; p=${PACKAGE-default}
12834 yes) enable_fast_install=yes ;;
12835 no) enable_fast_install=no ;;
12837 enable_fast_install=no
12838 # Look at the argument we got. We use all the common list separators.
12839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12840 for pkg in $enableval; do
12842 if test "X$pkg" = "X$p"; then
12843 enable_fast_install=yes
12850 enable_fast_install=yes
12854 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12855 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12856 if test "${lt_cv_path_SED+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 # Loop through the user's path and test for sed and gsed.
12860 # Then use that list of sed's as ones to test for truncation.
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12865 test -z "$as_dir" && as_dir=.
12866 for lt_ac_prog in sed gsed; do
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12869 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12876 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12877 # along with /bin/sed that truncates output.
12878 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12879 test ! -f $lt_ac_sed && continue
12880 cat /dev/null > conftest.in
12882 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12883 # Check for GNU sed and select it if it is found.
12884 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12885 lt_cv_path_SED=$lt_ac_sed
12889 cat conftest.in conftest.in >conftest.tmp
12890 mv conftest.tmp conftest.in
12891 cp conftest.in conftest.nl
12893 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12894 cmp -s conftest.out conftest.nl || break
12895 # 10000 chars as input seems more than enough
12896 test $lt_ac_count -gt 10 && break
12897 lt_ac_count=`expr $lt_ac_count + 1`
12898 if test $lt_ac_count -gt $lt_ac_max; then
12899 lt_ac_max=$lt_ac_count
12900 lt_cv_path_SED=$lt_ac_sed
12907 SED=$lt_cv_path_SED
12908 { echo "$as_me:$LINENO: result: $SED" >&5
12909 echo "${ECHO_T}$SED" >&6; }
12912 # Check whether --with-gnu-ld was given.
12913 if test "${with_gnu_ld+set}" = set; then
12914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12920 if test "$GCC" = yes; then
12921 # Check if gcc -print-prog-name=ld gives a path.
12922 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12923 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12926 # gcc leaves a trailing carriage return which upsets mingw
12927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12932 # Accept absolute paths.
12934 re_direlt='/[^/][^/]*/\.\./'
12935 # Canonicalize the pathname of ld
12936 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12938 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12940 test -z "$LD" && LD="$ac_prog"
12943 # If it fails, then pretend we aren't using GCC.
12947 # If it is relative, then search for the first ld in PATH.
12948 with_gnu_ld=unknown
12951 elif test "$with_gnu_ld" = yes; then
12952 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12953 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12955 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12956 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12958 if test "${lt_cv_path_LD+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 if test -z "$LD"; then
12962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12963 for ac_dir in $PATH; do
12965 test -z "$ac_dir" && ac_dir=.
12966 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12967 lt_cv_path_LD="$ac_dir/$ac_prog"
12968 # Check to see if the program is GNU ld. I'd rather use --version,
12969 # but apparently some variants of GNU ld only accept -v.
12970 # Break only if it was the GNU/non-GNU ld that we prefer.
12971 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12972 *GNU* | *'with BFD'*)
12973 test "$with_gnu_ld" != no && break
12976 test "$with_gnu_ld" != yes && break
12983 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12987 LD="$lt_cv_path_LD"
12988 if test -n "$LD"; then
12989 { echo "$as_me:$LINENO: result: $LD" >&5
12990 echo "${ECHO_T}$LD" >&6; }
12992 { echo "$as_me:$LINENO: result: no" >&5
12993 echo "${ECHO_T}no" >&6; }
12995 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12996 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12997 { (exit 1); exit 1; }; }
12998 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12999 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13000 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13004 case `$LD -v 2>&1 </dev/null` in
13005 *GNU* | *'with BFD'*)
13006 lt_cv_prog_gnu_ld=yes
13009 lt_cv_prog_gnu_ld=no
13013 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13014 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13015 with_gnu_ld=$lt_cv_prog_gnu_ld
13018 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13019 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
13020 if test "${lt_cv_ld_reload_flag+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 lt_cv_ld_reload_flag='-r'
13025 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13026 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
13027 reload_flag=$lt_cv_ld_reload_flag
13028 case $reload_flag in
13030 *) reload_flag=" $reload_flag" ;;
13032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13035 if test "$GCC" = yes; then
13036 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
13038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13043 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13044 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
13045 if test "${lt_cv_deplibs_check_method+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 lt_cv_file_magic_cmd='$MAGIC_CMD'
13049 lt_cv_file_magic_test_file=
13050 lt_cv_deplibs_check_method='unknown'
13051 # Need to set the preceding variable on all platforms that support
13052 # interlibrary dependencies.
13053 # 'none' -- dependencies not supported.
13054 # `unknown' -- same as none, but documents that we really don't know.
13055 # 'pass_all' -- all dependencies passed with no checks.
13056 # 'test_compile' -- check by making test program.
13057 # 'file_magic [[regex]]' -- check by looking for files in library path
13058 # which responds to the $file_magic_cmd with a given extended regex.
13059 # If you have `file' or equivalent on your system and you're not sure
13060 # whether `pass_all' will *always* work, you probably want this one.
13064 lt_cv_deplibs_check_method=pass_all
13068 lt_cv_deplibs_check_method=pass_all
13072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13073 lt_cv_file_magic_cmd='/usr/bin/file -L'
13074 lt_cv_file_magic_test_file=/shlib/libc.so
13078 # func_win32_libid is a shell function defined in ltmain.sh
13079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13080 lt_cv_file_magic_cmd='func_win32_libid'
13084 # Base MSYS/MinGW do not provide the 'file' command needed by
13085 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13086 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13087 lt_cv_file_magic_cmd='$OBJDUMP -f'
13090 darwin* | rhapsody*)
13091 lt_cv_deplibs_check_method=pass_all
13094 freebsd* | kfreebsd*-gnu | dragonfly*)
13095 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13098 # Not sure whether the presence of OpenBSD here was a mistake.
13099 # Let's accept both of them until this is cleared up.
13100 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13101 lt_cv_file_magic_cmd=/usr/bin/file
13102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13106 lt_cv_deplibs_check_method=pass_all
13111 lt_cv_deplibs_check_method=pass_all
13114 hpux10.20* | hpux11*)
13115 lt_cv_file_magic_cmd=/usr/bin/file
13118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13122 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]'
13123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13137 irix5* | irix6* | nonstopux*)
13139 *-32|*"-32 ") libmagic=32-bit;;
13140 *-n32|*"-n32 ") libmagic=N32;;
13141 *-64|*"-64 ") libmagic=64-bit;;
13142 *) libmagic=never-match;;
13144 lt_cv_deplibs_check_method=pass_all
13147 # This must be Linux ELF.
13149 lt_cv_deplibs_check_method=pass_all
13153 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13162 lt_cv_file_magic_cmd=/usr/bin/file
13163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13167 lt_cv_deplibs_check_method=unknown
13171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13178 osf3* | osf4* | osf5*)
13179 lt_cv_deplibs_check_method=pass_all
13183 lt_cv_deplibs_check_method=pass_all
13187 case $host_vendor in
13189 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]'
13190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13193 lt_cv_deplibs_check_method=pass_all
13196 lt_cv_file_magic_cmd='/bin/file'
13197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13200 lt_cv_file_magic_cmd='/bin/file'
13201 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13202 lt_cv_file_magic_test_file=/lib/libc.so
13205 lt_cv_deplibs_check_method=pass_all
13208 lt_cv_deplibs_check_method=pass_all
13213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13214 lt_cv_deplibs_check_method=pass_all
13219 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13220 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13221 file_magic_cmd=$lt_cv_file_magic_cmd
13222 deplibs_check_method=$lt_cv_deplibs_check_method
13223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13227 # If no C compiler was specified, use CC.
13230 # If no C compiler flags were specified, use CFLAGS.
13231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13233 # Allow CC to be a program name with arguments.
13236 # Check whether --enable-libtool-lock was given.
13237 if test "${enable_libtool_lock+set}" = set; then
13238 enableval=$enable_libtool_lock;
13241 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13243 # Some flags need to be propagated to the compiler or linker for good
13247 # Find out which ABI we are using.
13248 echo 'int i;' > conftest.$ac_ext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; then
13254 case `/usr/bin/file conftest.$ac_objext` in
13256 HPUX_IA64_MODE="32"
13259 HPUX_IA64_MODE="64"
13266 # Find out which ABI we are using.
13267 echo '#line 13267 "configure"' > conftest.$ac_ext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; then
13273 if test "$lt_cv_prog_gnu_ld" = yes; then
13274 case `/usr/bin/file conftest.$ac_objext` in
13276 LD="${LD-ld} -melf32bsmip"
13279 LD="${LD-ld} -melf32bmipn32"
13282 LD="${LD-ld} -melf64bmip"
13286 case `/usr/bin/file conftest.$ac_objext` in
13302 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13303 # Find out which ABI we are using.
13304 echo 'int i;' > conftest.$ac_ext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; then
13310 case `/usr/bin/file conftest.o` in
13314 LD="${LD-ld} -m elf_i386"
13316 ppc64-*linux*|powerpc64-*linux*)
13317 LD="${LD-ld} -m elf32ppclinux"
13320 LD="${LD-ld} -m elf_s390"
13323 LD="${LD-ld} -m elf32_sparc"
13330 LD="${LD-ld} -m elf_x86_64"
13332 ppc*-*linux*|powerpc*-*linux*)
13333 LD="${LD-ld} -m elf64ppc"
13336 LD="${LD-ld} -m elf64_s390"
13339 LD="${LD-ld} -m elf64_sparc"
13349 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13350 SAVE_CFLAGS="$CFLAGS"
13351 CFLAGS="$CFLAGS -belf"
13352 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13353 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13354 if test "${lt_cv_cc_needs_belf+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 ac_cpp='$CPP $CPPFLAGS'
13359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13378 rm -f conftest.$ac_objext conftest$ac_exeext
13379 if { (ac_try="$ac_link"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_link") 2>conftest.er1
13387 grep -v '^ *+' conftest.er1 >conftest.err
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 lt_cv_cc_needs_belf=yes
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 lt_cv_cc_needs_belf=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13423 ac_cpp='$CPP $CPPFLAGS'
13424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13430 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13433 CFLAGS="$SAVE_CFLAGS"
13437 # Find out which ABI we are using.
13438 echo 'int i;' > conftest.$ac_ext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; then
13444 case `/usr/bin/file conftest.o` in
13446 case $lt_cv_prog_gnu_ld in
13447 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13448 *) LD="${LD-ld} -64" ;;
13459 need_locks="$enable_libtool_lock"
13464 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13465 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13466 (test "X$CXX" != "Xg++"))) ; then
13468 ac_cpp='$CXXCPP $CPPFLAGS'
13469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13472 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13473 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13474 if test -z "$CXXCPP"; then
13475 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 # Double quotes because CXXCPP needs to be expanded
13479 for CXXCPP in "$CXX -E" "/lib/cpp"
13481 ac_preproc_ok=false
13482 for ac_cxx_preproc_warn_flag in '' yes
13484 # Use a header file that comes with gcc, so configuring glibc
13485 # with a fresh cross-compiler works.
13486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13487 # <limits.h> exists even on freestanding compilers.
13488 # On the NeXT, cc -E runs the code through the compiler's parser,
13489 # not just through cpp. "Syntax error" is here to catch this case.
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 # include <limits.h>
13499 # include <assert.h>
13503 if { (ac_try="$ac_cpp conftest.$ac_ext"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } >/dev/null; then
13516 if test -s conftest.err; then
13517 ac_cpp_err=$ac_cxx_preproc_warn_flag
13518 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13525 if test -z "$ac_cpp_err"; then
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 # Broken: fails on valid input.
13535 rm -f conftest.err conftest.$ac_ext
13537 # OK, works on sane cases. Now check whether nonexistent headers
13538 # can be detected and how.
13539 cat >conftest.$ac_ext <<_ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545 #include <ac_nonexistent.h>
13547 if { (ac_try="$ac_cpp conftest.$ac_ext"
13548 case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } >/dev/null; then
13560 if test -s conftest.err; then
13561 ac_cpp_err=$ac_cxx_preproc_warn_flag
13562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13569 if test -z "$ac_cpp_err"; then
13570 # Broken: success on invalid input.
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 # Passes both tests.
13581 rm -f conftest.err conftest.$ac_ext
13584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13585 rm -f conftest.err conftest.$ac_ext
13586 if $ac_preproc_ok; then
13591 ac_cv_prog_CXXCPP=$CXXCPP
13594 CXXCPP=$ac_cv_prog_CXXCPP
13596 ac_cv_prog_CXXCPP=$CXXCPP
13598 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13599 echo "${ECHO_T}$CXXCPP" >&6; }
13600 ac_preproc_ok=false
13601 for ac_cxx_preproc_warn_flag in '' yes
13603 # Use a header file that comes with gcc, so configuring glibc
13604 # with a fresh cross-compiler works.
13605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 # <limits.h> exists even on freestanding compilers.
13607 # On the NeXT, cc -E runs the code through the compiler's parser,
13608 # not just through cpp. "Syntax error" is here to catch this case.
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 # include <limits.h>
13618 # include <assert.h>
13622 if { (ac_try="$ac_cpp conftest.$ac_ext"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13630 grep -v '^ *+' conftest.er1 >conftest.err
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } >/dev/null; then
13635 if test -s conftest.err; then
13636 ac_cpp_err=$ac_cxx_preproc_warn_flag
13637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13644 if test -z "$ac_cpp_err"; then
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 # Broken: fails on valid input.
13654 rm -f conftest.err conftest.$ac_ext
13656 # OK, works on sane cases. Now check whether nonexistent headers
13657 # can be detected and how.
13658 cat >conftest.$ac_ext <<_ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 #include <ac_nonexistent.h>
13666 if { (ac_try="$ac_cpp conftest.$ac_ext"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13674 grep -v '^ *+' conftest.er1 >conftest.err
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } >/dev/null; then
13679 if test -s conftest.err; then
13680 ac_cpp_err=$ac_cxx_preproc_warn_flag
13681 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13688 if test -z "$ac_cpp_err"; then
13689 # Broken: success on invalid input.
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 # Passes both tests.
13700 rm -f conftest.err conftest.$ac_ext
13703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13704 rm -f conftest.err conftest.$ac_ext
13705 if $ac_preproc_ok; then
13708 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13709 See \`config.log' for more details." >&5
13710 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13711 See \`config.log' for more details." >&2;}
13712 { (exit 1); exit 1; }; }
13716 ac_cpp='$CXXCPP $CPPFLAGS'
13717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13725 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13726 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13727 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13728 if test -n "$ac_tool_prefix"; then
13729 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
13731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13735 if test "${ac_cv_prog_F77+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 if test -n "$F77"; then
13739 ac_cv_prog_F77="$F77" # Let the user override the test.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13758 F77=$ac_cv_prog_F77
13759 if test -n "$F77"; then
13760 { echo "$as_me:$LINENO: result: $F77" >&5
13761 echo "${ECHO_T}$F77" >&6; }
13763 { echo "$as_me:$LINENO: result: no" >&5
13764 echo "${ECHO_T}no" >&6; }
13768 test -n "$F77" && break
13771 if test -z "$F77"; then
13773 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
13775 # Extract the first word of "$ac_prog", so it can be a program name with args.
13776 set dummy $ac_prog; ac_word=$2
13777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13779 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 if test -n "$ac_ct_F77"; then
13783 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786 for as_dir in $PATH
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13792 ac_cv_prog_ac_ct_F77="$ac_prog"
13793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13802 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13803 if test -n "$ac_ct_F77"; then
13804 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13805 echo "${ECHO_T}$ac_ct_F77" >&6; }
13807 { echo "$as_me:$LINENO: result: no" >&5
13808 echo "${ECHO_T}no" >&6; }
13812 test -n "$ac_ct_F77" && break
13815 if test "x$ac_ct_F77" = x; then
13818 case $cross_compiling:$ac_tool_warned in
13820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13821 whose name does not start with the host triplet. If you think this
13822 configuration is useful to you, please write to autoconf@gnu.org." >&5
13823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13824 whose name does not start with the host triplet. If you think this
13825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13826 ac_tool_warned=yes ;;
13833 # Provide some information about the compiler.
13834 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13835 ac_compiler=`set X $ac_compile; echo $2`
13836 { (ac_try="$ac_compiler --version >&5"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_compiler --version >&5") 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }
13846 { (ac_try="$ac_compiler -v >&5"
13847 case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_compiler -v >&5") 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }
13856 { (ac_try="$ac_compiler -V >&5"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_compiler -V >&5") 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }
13868 # If we don't use `.F' as extension, the preprocessor is not run on the
13869 # input file. (Note that this only needs to work for GNU compilers.)
13870 ac_save_ext=$ac_ext
13872 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13873 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13874 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 cat >conftest.$ac_ext <<_ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (ac_try="$ac_compile"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_compile") 2>conftest.er1
13894 grep -v '^ *+' conftest.er1 >conftest.err
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_compiler_gnu=yes
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13931 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13932 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13933 ac_ext=$ac_save_ext
13934 ac_test_FFLAGS=${FFLAGS+set}
13935 ac_save_FFLAGS=$FFLAGS
13937 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13938 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13939 if test "${ac_cv_prog_f77_g+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (ac_try="$ac_compile"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_compile") 2>conftest.er1
13957 grep -v '^ *+' conftest.er1 >conftest.err
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_prog_f77_g=yes
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_cv_prog_f77_g=no
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13994 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13995 if test "$ac_test_FFLAGS" = set; then
13996 FFLAGS=$ac_save_FFLAGS
13997 elif test $ac_cv_prog_f77_g = yes; then
13998 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14004 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14011 G77=`test $ac_compiler_gnu = yes && echo yes`
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14020 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14022 # find the maximum length of command line arguments
14023 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 # On DJGPP, this test can blow up pretty badly due to problems in libc
14034 # (any single argument exceeding 2000 bytes causes a buffer overrun
14035 # during glob expansion). Even if it were fixed, the result of this
14036 # check would be larger than it should be.
14037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14041 # Under GNU Hurd, this test is not required because there is
14042 # no limit to the length of command line arguments.
14043 # Libtool will interpret -1 as no limit whatsoever
14044 lt_cv_sys_max_cmd_len=-1;
14048 # On Win9x/ME, this test blows up -- it succeeds, but takes
14049 # about 5 minutes as the teststring grows exponentially.
14050 # Worse, since 9x/ME are not pre-emptively multitasking,
14051 # you end up with a "frozen" computer, even though with patience
14052 # the test eventually succeeds (with a max line length of 256k).
14053 # Instead, let's just punt: use the minimum linelength reported by
14054 # all of the supported platforms: 8192 (on NT/2K/XP).
14055 lt_cv_sys_max_cmd_len=8192;
14059 # On AmigaOS with pdksh, this test takes hours, literally.
14060 # So we just punt and use a minimum line length of 8192.
14061 lt_cv_sys_max_cmd_len=8192;
14064 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14065 # This has been around since 386BSD, at least. Likely further.
14066 if test -x /sbin/sysctl; then
14067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14068 elif test -x /usr/sbin/sysctl; then
14069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14073 # And add a safety zone
14074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14079 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14080 lt_cv_sys_max_cmd_len=196608
14084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14086 # nice to cause kernel panics so lets avoid the loop below.
14087 # First set a reasonable default.
14088 lt_cv_sys_max_cmd_len=16384
14090 if test -x /sbin/sysconfig; then
14091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14097 lt_cv_sys_max_cmd_len=102400
14099 sysv5* | sco5v6* | sysv4.2uw2*)
14100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14101 if test -n "$kargmax"; then
14102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14104 lt_cv_sys_max_cmd_len=32768
14108 # If test is not a shell built-in, we'll probably end up computing a
14109 # maximum length that is only half of the actual maximum length, but
14111 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14112 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14113 = "XX$teststring") >/dev/null 2>&1 &&
14114 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14115 lt_cv_sys_max_cmd_len=$new_result &&
14116 test $i != 17 # 1/2 MB should be enough
14119 teststring=$teststring$teststring
14122 # Add a significant safety factor because C++ compilers can tack on massive
14123 # amounts of additional arguments before passing them to the linker.
14124 # It appears as though 1/2 is a usable value.
14125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14131 if test -n $lt_cv_sys_max_cmd_len ; then
14132 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14133 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14135 { echo "$as_me:$LINENO: result: none" >&5
14136 echo "${ECHO_T}none" >&6; }
14142 # Check for command to grab the raw symbol name followed by C symbol from nm.
14143 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14144 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14145 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 # These are sane defaults that work on at least a few old systems.
14150 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14152 # Character class describing NM global symbol codes.
14153 symcode='[BCDEGRST]'
14155 # Regexp to match symbols that can be accessed directly from C.
14156 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14158 # Transform an extracted symbol line into a proper C declaration
14159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14161 # Transform an extracted symbol line into symbol name and symbol address
14162 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'"
14164 # Define system-specific variables.
14169 cygwin* | mingw* | pw32*)
14170 symcode='[ABCDGISTW]'
14172 hpux*) # Its linker distinguishes data from code symbols
14173 if test "$host_cpu" = ia64; then
14174 symcode='[ABCDEGRST]'
14176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14177 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'"
14180 if test "$host_cpu" = ia64; then
14181 symcode='[ABCDGIRSTW]'
14182 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14183 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'"
14186 irix* | nonstopux*)
14187 symcode='[BCDEGRST]'
14190 symcode='[BCDEGQRST]'
14201 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14209 # Handle CRLF in mingw tool chain
14213 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14217 # If we're using GNU nm, then use its standard symbol codes.
14218 case `$NM -V 2>&1` in
14219 *GNU* | *'with BFD'*)
14220 symcode='[ABCDGIRSTW]' ;;
14223 # Try without a prefix undercore, then with it.
14224 for ac_symprfx in "" "_"; do
14226 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14227 symxfrm="\\1 $ac_symprfx\\2 \\2"
14229 # Write the raw and C identifiers.
14230 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14232 # Check to see that the pipe works correctly.
14236 cat > conftest.$ac_ext <<EOF
14241 void nm_test_func(){}
14245 int main(){nm_test_var='a';nm_test_func();return(0);}
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; then
14253 # Now try to grab the symbols.
14255 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14256 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } && test -s "$nlist"; then
14260 # Try sorting and uniquifying the output.
14261 if sort "$nlist" | uniq > "$nlist"T; then
14262 mv -f "$nlist"T "$nlist"
14267 # Make sure that we snagged all the symbols we need.
14268 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14269 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14270 cat <<EOF > conftest.$ac_ext
14276 # Now generate the symbol file.
14277 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14279 cat <<EOF >> conftest.$ac_ext
14280 #if defined (__STDC__) && __STDC__
14281 # define lt_ptr_t void *
14283 # define lt_ptr_t char *
14287 /* The mapping between symbol names and symbols. */
14292 lt_preloaded_symbols[] =
14295 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14296 cat <<\EOF >> conftest.$ac_ext
14304 # Now try linking the two files.
14305 mv conftest.$ac_objext conftstm.$ac_objext
14306 lt_save_LIBS="$LIBS"
14307 lt_save_CFLAGS="$CFLAGS"
14308 LIBS="conftstm.$ac_objext"
14309 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14317 LIBS="$lt_save_LIBS"
14318 CFLAGS="$lt_save_CFLAGS"
14320 echo "cannot find nm_test_func in $nlist" >&5
14323 echo "cannot find nm_test_var in $nlist" >&5
14326 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14329 echo "$progname: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14332 rm -f conftest* conftst*
14334 # Do not use the global_symbol_pipe unless it works.
14335 if test "$pipe_works" = yes; then
14338 lt_cv_sys_global_symbol_pipe=
14344 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14345 lt_cv_sys_global_symbol_to_cdecl=
14347 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14348 { echo "$as_me:$LINENO: result: failed" >&5
14349 echo "${ECHO_T}failed" >&6; }
14351 { echo "$as_me:$LINENO: result: ok" >&5
14352 echo "${ECHO_T}ok" >&6; }
14355 { echo "$as_me:$LINENO: checking for objdir" >&5
14356 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14357 if test "${lt_cv_objdir+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 rm -f .libs 2>/dev/null
14361 mkdir .libs 2>/dev/null
14362 if test -d .libs; then
14365 # MS-DOS does not allow filenames that begin with a dot.
14368 rmdir .libs 2>/dev/null
14370 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14371 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14372 objdir=$lt_cv_objdir
14380 # AIX sometimes has problems with the GCC collect2 program. For some
14381 # reason, if we set the COLLECT_NAMES environment variable, the problems
14382 # vanish in a puff of smoke.
14383 if test "X${COLLECT_NAMES+set}" != Xset; then
14385 export COLLECT_NAMES
14390 # Sed substitution that helps us do robust quoting. It backslashifies
14391 # metacharacters that are still active within double-quoted strings.
14392 Xsed='sed -e 1s/^X//'
14393 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14395 # Same as above, but do not quote variable references.
14396 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14398 # Sed substitution to delay expansion of an escaped shell variable in a
14399 # double_quote_subst'ed string.
14400 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14402 # Sed substitution to avoid accidental globbing in evaled expressions
14403 no_glob_subst='s/\*/\\\*/g'
14408 # Global variables:
14409 default_ofile=mklib
14410 can_build_shared=yes
14412 # All known linkers require a `.a' archive for static linking (except MSVC,
14413 # which needs '.lib').
14415 ltmain="$ac_aux_dir/ltmain.sh"
14416 ofile="$default_ofile"
14417 with_gnu_ld="$lt_cv_prog_gnu_ld"
14419 if test -n "$ac_tool_prefix"; then
14420 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14421 set dummy ${ac_tool_prefix}ar; ac_word=$2
14422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14424 if test "${ac_cv_prog_AR+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 if test -n "$AR"; then
14428 ac_cv_prog_AR="$AR" # Let the user override the test.
14430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431 for as_dir in $PATH
14434 test -z "$as_dir" && as_dir=.
14435 for ac_exec_ext in '' $ac_executable_extensions; do
14436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14437 ac_cv_prog_AR="${ac_tool_prefix}ar"
14438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14448 if test -n "$AR"; then
14449 { echo "$as_me:$LINENO: result: $AR" >&5
14450 echo "${ECHO_T}$AR" >&6; }
14452 { echo "$as_me:$LINENO: result: no" >&5
14453 echo "${ECHO_T}no" >&6; }
14458 if test -z "$ac_cv_prog_AR"; then
14460 # Extract the first word of "ar", so it can be a program name with args.
14461 set dummy ar; ac_word=$2
14462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14464 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 if test -n "$ac_ct_AR"; then
14468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471 for as_dir in $PATH
14474 test -z "$as_dir" && as_dir=.
14475 for ac_exec_ext in '' $ac_executable_extensions; do
14476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14477 ac_cv_prog_ac_ct_AR="ar"
14478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14487 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14488 if test -n "$ac_ct_AR"; then
14489 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14490 echo "${ECHO_T}$ac_ct_AR" >&6; }
14492 { echo "$as_me:$LINENO: result: no" >&5
14493 echo "${ECHO_T}no" >&6; }
14496 if test "x$ac_ct_AR" = x; then
14499 case $cross_compiling:$ac_tool_warned in
14501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14502 whose name does not start with the host triplet. If you think this
14503 configuration is useful to you, please write to autoconf@gnu.org." >&5
14504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14505 whose name does not start with the host triplet. If you think this
14506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14507 ac_tool_warned=yes ;;
14512 AR="$ac_cv_prog_AR"
14515 if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14520 if test "${ac_cv_prog_RANLIB+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 if test -n "$RANLIB"; then
14524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14543 RANLIB=$ac_cv_prog_RANLIB
14544 if test -n "$RANLIB"; then
14545 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14546 echo "${ECHO_T}$RANLIB" >&6; }
14548 { echo "$as_me:$LINENO: result: no" >&5
14549 echo "${ECHO_T}no" >&6; }
14554 if test -z "$ac_cv_prog_RANLIB"; then
14555 ac_ct_RANLIB=$RANLIB
14556 # Extract the first word of "ranlib", so it can be a program name with args.
14557 set dummy ranlib; ac_word=$2
14558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 if test -n "$ac_ct_RANLIB"; then
14564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14573 ac_cv_prog_ac_ct_RANLIB="ranlib"
14574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14584 if test -n "$ac_ct_RANLIB"; then
14585 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14586 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14588 { echo "$as_me:$LINENO: result: no" >&5
14589 echo "${ECHO_T}no" >&6; }
14592 if test "x$ac_ct_RANLIB" = x; then
14595 case $cross_compiling:$ac_tool_warned in
14597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14598 whose name does not start with the host triplet. If you think this
14599 configuration is useful to you, please write to autoconf@gnu.org." >&5
14600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14601 whose name does not start with the host triplet. If you think this
14602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14603 ac_tool_warned=yes ;;
14605 RANLIB=$ac_ct_RANLIB
14608 RANLIB="$ac_cv_prog_RANLIB"
14611 if test -n "$ac_tool_prefix"; then
14612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14613 set dummy ${ac_tool_prefix}strip; ac_word=$2
14614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14616 if test "${ac_cv_prog_STRIP+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 if test -n "$STRIP"; then
14620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 STRIP=$ac_cv_prog_STRIP
14640 if test -n "$STRIP"; then
14641 { echo "$as_me:$LINENO: result: $STRIP" >&5
14642 echo "${ECHO_T}$STRIP" >&6; }
14644 { echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6; }
14650 if test -z "$ac_cv_prog_STRIP"; then
14652 # Extract the first word of "strip", so it can be a program name with args.
14653 set dummy strip; ac_word=$2
14654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14656 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 if test -n "$ac_ct_STRIP"; then
14660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663 for as_dir in $PATH
14666 test -z "$as_dir" && as_dir=.
14667 for ac_exec_ext in '' $ac_executable_extensions; do
14668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14669 ac_cv_prog_ac_ct_STRIP="strip"
14670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14680 if test -n "$ac_ct_STRIP"; then
14681 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14682 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14684 { echo "$as_me:$LINENO: result: no" >&5
14685 echo "${ECHO_T}no" >&6; }
14688 if test "x$ac_ct_STRIP" = x; then
14691 case $cross_compiling:$ac_tool_warned in
14693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14694 whose name does not start with the host triplet. If you think this
14695 configuration is useful to you, please write to autoconf@gnu.org." >&5
14696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14697 whose name does not start with the host triplet. If you think this
14698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14699 ac_tool_warned=yes ;;
14704 STRIP="$ac_cv_prog_STRIP"
14709 old_CFLAGS="$CFLAGS"
14711 # Set sane defaults for various variables
14712 test -z "$AR" && AR=ar
14713 test -z "$AR_FLAGS" && AR_FLAGS=cru
14714 test -z "$AS" && AS=as
14715 test -z "$CC" && CC=cc
14716 test -z "$LTCC" && LTCC=$CC
14717 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14718 test -z "$DLLTOOL" && DLLTOOL=dlltool
14719 test -z "$LD" && LD=ld
14720 test -z "$LN_S" && LN_S="ln -s"
14721 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14722 test -z "$NM" && NM=nm
14723 test -z "$SED" && SED=sed
14724 test -z "$OBJDUMP" && OBJDUMP=objdump
14725 test -z "$RANLIB" && RANLIB=:
14726 test -z "$STRIP" && STRIP=:
14727 test -z "$ac_objext" && ac_objext=o
14729 # Determine commands to create old-style static archives.
14730 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14731 old_postinstall_cmds='chmod 644 $oldlib'
14732 old_postuninstall_cmds=
14734 if test -n "$RANLIB"; then
14737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14740 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14743 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14746 for cc_temp in $compiler""; do
14748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14754 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14757 # Only perform the check for file, if the check method requires it
14758 case $deplibs_check_method in
14760 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14761 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14762 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14771 lt_save_MAGIC_CMD="$MAGIC_CMD"
14772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14774 for ac_dir in $ac_dummy; do
14776 test -z "$ac_dir" && ac_dir=.
14777 if test -f $ac_dir/${ac_tool_prefix}file; then
14778 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14779 if test -n "$file_magic_test_file"; then
14780 case $deplibs_check_method in
14782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785 $EGREP "$file_magic_regex" > /dev/null; then
14790 *** Warning: the command libtool uses to detect shared libraries,
14791 *** $file_magic_cmd, produces output that libtool cannot recognize.
14792 *** The result is that libtool may fail to recognize shared libraries
14793 *** as such. This will affect the creation of libtool libraries that
14794 *** depend on shared libraries, but programs linked with such libtool
14795 *** libraries will work regardless of this problem. Nevertheless, you
14796 *** may want to report the problem to your system manager and/or to
14797 *** bug-libtool@gnu.org
14807 MAGIC_CMD="$lt_save_MAGIC_CMD"
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if test -n "$MAGIC_CMD"; then
14814 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14815 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14817 { echo "$as_me:$LINENO: result: no" >&5
14818 echo "${ECHO_T}no" >&6; }
14821 if test -z "$lt_cv_path_MAGIC_CMD"; then
14822 if test -n "$ac_tool_prefix"; then
14823 { echo "$as_me:$LINENO: checking for file" >&5
14824 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14825 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14833 lt_save_MAGIC_CMD="$MAGIC_CMD"
14834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14836 for ac_dir in $ac_dummy; do
14838 test -z "$ac_dir" && ac_dir=.
14839 if test -f $ac_dir/file; then
14840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14841 if test -n "$file_magic_test_file"; then
14842 case $deplibs_check_method in
14844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14847 $EGREP "$file_magic_regex" > /dev/null; then
14852 *** Warning: the command libtool uses to detect shared libraries,
14853 *** $file_magic_cmd, produces output that libtool cannot recognize.
14854 *** The result is that libtool may fail to recognize shared libraries
14855 *** as such. This will affect the creation of libtool libraries that
14856 *** depend on shared libraries, but programs linked with such libtool
14857 *** libraries will work regardless of this problem. Nevertheless, you
14858 *** may want to report the problem to your system manager and/or to
14859 *** bug-libtool@gnu.org
14869 MAGIC_CMD="$lt_save_MAGIC_CMD"
14874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14875 if test -n "$MAGIC_CMD"; then
14876 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14877 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14879 { echo "$as_me:$LINENO: result: no" >&5
14880 echo "${ECHO_T}no" >&6; }
14893 enable_win32_dll=no
14895 # Check whether --enable-libtool-lock was given.
14896 if test "${enable_libtool_lock+set}" = set; then
14897 enableval=$enable_libtool_lock;
14900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14903 # Check whether --with-pic was given.
14904 if test "${with_pic+set}" = set; then
14905 withval=$with_pic; pic_mode="$withval"
14910 test -z "$pic_mode" && pic_mode=default
14912 # Use C for the default configuration in the libtool script
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14922 # Source file extension for C test sources.
14925 # Object file extension for compiled C test sources.
14929 # Code to be used in simple compile tests
14930 lt_simple_compile_test_code="int some_variable = 0;\n"
14932 # Code to be used in simple link tests
14933 lt_simple_link_test_code='int main(){return(0);}\n'
14936 # If no C compiler was specified, use CC.
14939 # If no C compiler flags were specified, use CFLAGS.
14940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14942 # Allow CC to be a program name with arguments.
14946 # save warnings/boilerplate of simple test code
14947 ac_outfile=conftest.$ac_objext
14948 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14949 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950 _lt_compiler_boilerplate=`cat conftest.err`
14953 ac_outfile=conftest.$ac_objext
14954 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14955 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14956 _lt_linker_boilerplate=`cat conftest.err`
14961 lt_prog_compiler_no_builtin_flag=
14963 if test "$GCC" = yes; then
14964 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14967 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14968 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14969 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 lt_cv_prog_compiler_rtti_exceptions=no
14973 ac_outfile=conftest.$ac_objext
14974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14975 lt_compiler_flag="-fno-rtti -fno-exceptions"
14976 # Insert the option either (1) after the last *FLAGS variable, or
14977 # (2) before a word containing "conftest.", or (3) at the end.
14978 # Note that $ac_compile itself does not contain backslashes and begins
14979 # with a dollar sign (not a hyphen), so the echo should work correctly.
14980 # The option is referenced via a variable to avoid confusing sed.
14981 lt_compile=`echo "$ac_compile" | $SED \
14982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14984 -e 's:$: $lt_compiler_flag:'`
14985 (eval echo "\"\$as_me:14985: $lt_compile\"" >&5)
14986 (eval "$lt_compile" 2>conftest.err)
14988 cat conftest.err >&5
14989 echo "$as_me:14989: \$? = $ac_status" >&5
14990 if (exit $ac_status) && test -s "$ac_outfile"; then
14991 # The compiler can only warn and ignore the option if not recognized
14992 # So say no if there are warnings other than the usual output.
14993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14996 lt_cv_prog_compiler_rtti_exceptions=yes
15002 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15003 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15006 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15013 lt_prog_compiler_wl=
15014 lt_prog_compiler_pic=
15015 lt_prog_compiler_static=
15017 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15018 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15020 if test "$GCC" = yes; then
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_static='-static'
15026 # All AIX code is PIC.
15027 if test "$host_cpu" = ia64; then
15028 # AIX 5 now supports IA64 processor
15029 lt_prog_compiler_static='-Bstatic'
15034 # FIXME: we need at least 68020 code to build shared libraries, but
15035 # adding the `-m68020' flag to GCC prevents building anything better,
15037 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15041 # PIC is the default for these OSes.
15044 mingw* | pw32* | os2*)
15045 # This hack is so that the source file can tell whether it is being
15046 # built for inclusion in a dll (and should export symbols for example).
15047 lt_prog_compiler_pic='-DDLL_EXPORT'
15050 darwin* | rhapsody*)
15051 # PIC is the default on this platform
15052 # Common symbols not allowed in MH_DYLIB files
15053 lt_prog_compiler_pic='-fno-common'
15057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15058 # Instead, we relocate shared libraries at runtime.
15062 # Just because we use GCC doesn't mean we suddenly get shared libraries
15063 # on systems that don't support them.
15064 lt_prog_compiler_can_build_shared=no
15069 if test -d /usr/nec; then
15070 lt_prog_compiler_pic=-Kconform_pic
15075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15076 # not for PA HP-UX.
15082 lt_prog_compiler_pic='-fPIC'
15088 lt_prog_compiler_pic='-fPIC'
15092 # PORTME Check for flag to pass linker flags through the system compiler.
15095 lt_prog_compiler_wl='-Wl,'
15096 if test "$host_cpu" = ia64; then
15097 # AIX 5 now supports IA64 processor
15098 lt_prog_compiler_static='-Bstatic'
15100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15104 # PIC is the default on this platform
15105 # Common symbols not allowed in MH_DYLIB files
15106 case $cc_basename in
15108 lt_prog_compiler_pic='-qnocommon'
15109 lt_prog_compiler_wl='-Wl,'
15114 mingw* | pw32* | os2*)
15115 # This hack is so that the source file can tell whether it is being
15116 # built for inclusion in a dll (and should export symbols for example).
15117 lt_prog_compiler_pic='-DDLL_EXPORT'
15120 hpux9* | hpux10* | hpux11*)
15121 lt_prog_compiler_wl='-Wl,'
15122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15123 # not for PA HP-UX.
15129 lt_prog_compiler_pic='+Z'
15132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15133 lt_prog_compiler_static='${wl}-a ${wl}archive'
15136 irix5* | irix6* | nonstopux*)
15137 lt_prog_compiler_wl='-Wl,'
15138 # PIC (with -KPIC) is the default.
15139 lt_prog_compiler_static='-non_shared'
15143 lt_prog_compiler_pic='-KPIC'
15144 lt_prog_compiler_static='-Bstatic'
15148 case $cc_basename in
15150 lt_prog_compiler_wl='-Wl,'
15151 lt_prog_compiler_pic='-KPIC'
15152 lt_prog_compiler_static='-static'
15154 pgcc* | pgf77* | pgf90* | pgf95*)
15155 # Portland Group compilers (*not* the Pentium gcc compiler,
15156 # which looks to be a dead project)
15157 lt_prog_compiler_wl='-Wl,'
15158 lt_prog_compiler_pic='-fpic'
15159 lt_prog_compiler_static='-Bstatic'
15162 lt_prog_compiler_wl='-Wl,'
15163 # All Alpha code is PIC.
15164 lt_prog_compiler_static='-non_shared'
15169 osf3* | osf4* | osf5*)
15170 lt_prog_compiler_wl='-Wl,'
15171 # All OSF/1 code is PIC.
15172 lt_prog_compiler_static='-non_shared'
15176 lt_prog_compiler_pic='-KPIC'
15177 lt_prog_compiler_static='-Bstatic'
15178 case $cc_basename in
15179 f77* | f90* | f95*)
15180 lt_prog_compiler_wl='-Qoption ld ';;
15182 lt_prog_compiler_wl='-Wl,';;
15187 lt_prog_compiler_wl='-Qoption ld '
15188 lt_prog_compiler_pic='-PIC'
15189 lt_prog_compiler_static='-Bstatic'
15192 sysv4 | sysv4.2uw2* | sysv4.3*)
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='-KPIC'
15195 lt_prog_compiler_static='-Bstatic'
15199 if test -d /usr/nec ;then
15200 lt_prog_compiler_pic='-Kconform_pic'
15201 lt_prog_compiler_static='-Bstatic'
15205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15212 lt_prog_compiler_wl='-Wl,'
15213 lt_prog_compiler_can_build_shared=no
15217 lt_prog_compiler_pic='-pic'
15218 lt_prog_compiler_static='-Bstatic'
15222 lt_prog_compiler_can_build_shared=no
15227 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15228 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15231 # Check to make sure the PIC flag actually works.
15233 if test -n "$lt_prog_compiler_pic"; then
15235 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15236 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15237 if test "${lt_prog_compiler_pic_works+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 lt_prog_compiler_pic_works=no
15241 ac_outfile=conftest.$ac_objext
15242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15243 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15244 # Insert the option either (1) after the last *FLAGS variable, or
15245 # (2) before a word containing "conftest.", or (3) at the end.
15246 # Note that $ac_compile itself does not contain backslashes and begins
15247 # with a dollar sign (not a hyphen), so the echo should work correctly.
15248 # The option is referenced via a variable to avoid confusing sed.
15249 lt_compile=`echo "$ac_compile" | $SED \
15250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15252 -e 's:$: $lt_compiler_flag:'`
15253 (eval echo "\"\$as_me:15253: $lt_compile\"" >&5)
15254 (eval "$lt_compile" 2>conftest.err)
15256 cat conftest.err >&5
15257 echo "$as_me:15257: \$? = $ac_status" >&5
15258 if (exit $ac_status) && test -s "$ac_outfile"; then
15259 # The compiler can only warn and ignore the option if not recognized
15260 # So say no if there are warnings other than the usual output.
15261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15264 lt_prog_compiler_pic_works=yes
15270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15271 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15273 if test x"$lt_prog_compiler_pic_works" = xyes; then
15274 case $lt_prog_compiler_pic in
15276 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15279 lt_prog_compiler_pic=
15280 lt_prog_compiler_can_build_shared=no
15285 # For platforms which do not support PIC, -DPIC is meaningless:
15287 lt_prog_compiler_pic=
15290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15295 # Check to make sure the static flag actually works.
15297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15298 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15299 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15300 if test "${lt_prog_compiler_static_works+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 lt_prog_compiler_static_works=no
15304 save_LDFLAGS="$LDFLAGS"
15305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15306 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15308 # The linker can only warn and ignore the option if not recognized
15309 # So say no if there are warnings
15310 if test -s conftest.err; then
15311 # Append any errors to the config.log.
15312 cat conftest.err 1>&5
15313 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15315 if diff conftest.exp conftest.er2 >/dev/null; then
15316 lt_prog_compiler_static_works=yes
15319 lt_prog_compiler_static_works=yes
15323 LDFLAGS="$save_LDFLAGS"
15326 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15327 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15329 if test x"$lt_prog_compiler_static_works" = xyes; then
15332 lt_prog_compiler_static=
15336 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15337 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 lt_cv_prog_compiler_c_o=no
15342 $rm -r conftest 2>/dev/null
15346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15348 lt_compiler_flag="-o out/conftest2.$ac_objext"
15349 # Insert the option either (1) after the last *FLAGS variable, or
15350 # (2) before a word containing "conftest.", or (3) at the end.
15351 # Note that $ac_compile itself does not contain backslashes and begins
15352 # with a dollar sign (not a hyphen), so the echo should work correctly.
15353 lt_compile=`echo "$ac_compile" | $SED \
15354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15356 -e 's:$: $lt_compiler_flag:'`
15357 (eval echo "\"\$as_me:15357: $lt_compile\"" >&5)
15358 (eval "$lt_compile" 2>out/conftest.err)
15360 cat out/conftest.err >&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15364 # The compiler can only warn and ignore the option if not recognized
15365 # So say no if there are warnings
15366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15369 lt_cv_prog_compiler_c_o=yes
15374 # SGI C++ compiler will create directory out/ii_files/ for
15375 # template instantiation
15376 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15377 $rm out/* && rmdir out
15383 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15384 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15387 hard_links="nottested"
15388 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15389 # do not overwrite the value of need_locks provided by the user
15390 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15391 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15396 ln conftest.a conftest.b 2>&5 || hard_links=no
15397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15398 { echo "$as_me:$LINENO: result: $hard_links" >&5
15399 echo "${ECHO_T}$hard_links" >&6; }
15400 if test "$hard_links" = no; then
15401 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15402 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15409 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15410 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15413 allow_undefined_flag=
15414 enable_shared_with_static_runtimes=no
15416 archive_expsym_cmds=
15417 old_archive_From_new_cmds=
15418 old_archive_from_expsyms_cmds=
15419 export_dynamic_flag_spec=
15420 whole_archive_flag_spec=
15421 thread_safe_flag_spec=
15422 hardcode_libdir_flag_spec=
15423 hardcode_libdir_flag_spec_ld=
15424 hardcode_libdir_separator=
15426 hardcode_minus_L=no
15427 hardcode_shlibpath_var=unsupported
15428 link_all_deplibs=unknown
15429 hardcode_automatic=no
15431 module_expsym_cmds=
15432 always_export_symbols=no
15433 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15434 # include_expsyms should be a list of space-separated symbols to be *always*
15435 # included in the symbol list
15437 # exclude_expsyms can be an extended regexp of symbols to exclude
15438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15440 # as well as any symbol that contains `d'.
15441 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15443 # platforms (ab)use it in PIC code, but their linkers get confused if
15444 # the symbol is explicitly referenced. Since portable code cannot
15445 # rely on this symbol name, it's probably fine to never include it in
15446 # preloaded symbol tables.
15447 extract_expsyms_cmds=
15448 # Just being paranoid about ensuring that cc_basename is set.
15449 for cc_temp in $compiler""; do
15451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15457 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15460 cygwin* | mingw* | pw32*)
15461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15462 # When not using gcc, we currently assume that we are using
15463 # Microsoft Visual C++.
15464 if test "$GCC" != yes; then
15469 # we just hope/assume this is gcc and not c89 (= MSVC++)
15478 if test "$with_gnu_ld" = yes; then
15479 # If archive_cmds runs LD, not CC, wlarc should be empty
15482 # Set some defaults for GNU ld with shared library support. These
15483 # are reset later if shared libraries are not supported. Putting them
15484 # here allows them to be overridden if necessary.
15485 runpath_var=LD_RUN_PATH
15486 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15487 export_dynamic_flag_spec='${wl}--export-dynamic'
15488 # ancient GNU ld didn't support --whole-archive et. al.
15489 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15490 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15492 whole_archive_flag_spec=
15494 supports_anon_versioning=no
15495 case `$LD -v 2>/dev/null` in
15496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15499 *\ 2.11.*) ;; # other 2.11 versions
15500 *) supports_anon_versioning=yes ;;
15503 # See if GNU ld supports shared libraries.
15505 aix3* | aix4* | aix5*)
15506 # On AIX/PPC, the GNU linker is very broken
15507 if test "$host_cpu" != ia64; then
15511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15512 *** to be unable to reliably create shared libraries on AIX.
15513 *** Therefore, libtool is disabling shared libraries support. If you
15514 *** really care for shared libraries, you may want to modify your PATH
15515 *** so that a non-GNU linker is found, and then restart.
15522 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)'
15523 hardcode_libdir_flag_spec='-L$libdir'
15524 hardcode_minus_L=yes
15526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15527 # that the semantics of dynamic libraries on AmigaOS, at least up
15528 # to version 4, is to share data among multiple programs linked
15529 # with the same dynamic library. Since this doesn't match the
15530 # behavior of shared libraries on other platforms, we can't use
15536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537 allow_undefined_flag=unsupported
15538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15539 # support --undefined. This deserves some investigation. FIXME
15540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15546 cygwin* | mingw* | pw32*)
15547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15548 # as there is no search path for DLLs.
15549 hardcode_libdir_flag_spec='-L$libdir'
15550 allow_undefined_flag=unsupported
15551 always_export_symbols=no
15552 enable_shared_with_static_runtimes=yes
15553 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15557 # If the export-symbols file already is a .def file (1st line
15558 # is EXPORTS), use it as is; otherwise, prepend...
15559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15560 cp $export_symbols $output_objdir/$soname.def;
15562 echo EXPORTS > $output_objdir/$soname.def;
15563 cat $export_symbols >> $output_objdir/$soname.def;
15565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15573 hardcode_shlibpath_var=no
15574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15575 export_dynamic_flag_spec='${wl}-E'
15576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15577 # Instead, shared libraries are loaded at an image base (0x10000000 by
15578 # default) and relocated if they conflict, which is a slow very memory
15579 # consuming and fragmenting process. To avoid this, we pick a random,
15580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15583 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'
15587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15589 case $cc_basename,$host_cpu in
15590 pgcc*) # Portland Group C compiler
15591 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'
15592 tmp_addflag=' $pic_flag'
15594 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15595 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'
15596 tmp_addflag=' $pic_flag -Mnomain' ;;
15597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15598 tmp_addflag=' -i_dynamic' ;;
15599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15600 tmp_addflag=' -i_dynamic -nofor_main' ;;
15601 ifc* | ifort*) # Intel Fortran compiler
15602 tmp_addflag=' -nofor_main' ;;
15604 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15606 if test $supports_anon_versioning = yes; then
15607 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15609 $echo "local: *; };" >> $output_objdir/$libname.ver~
15610 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15623 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15633 *** create shared libraries on Solaris systems. Therefore, libtool
15634 *** is disabling shared libraries support. We urge you to upgrade GNU
15635 *** binutils to release 2.9.1 or newer. Another option is to modify
15636 *** your PATH or compiler configuration so that the native linker is
15637 *** used, and then restart.
15640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15649 case `$LD -v 2>&1` in
15650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15654 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15655 *** reliably create shared libraries on SCO systems. Therefore, libtool
15656 *** is disabling shared libraries support. We urge you to upgrade GNU
15657 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15658 *** your PATH or compiler configuration so that the native linker is
15659 *** used, and then restart.
15664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15665 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_direct=yes
15679 hardcode_shlibpath_var=no
15683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15692 if test "$ld_shlibs" = no; then
15694 hardcode_libdir_flag_spec=
15695 export_dynamic_flag_spec=
15696 whole_archive_flag_spec=
15699 # PORTME fill in a description of your system's linker (not GNU ld)
15702 allow_undefined_flag=unsupported
15703 always_export_symbols=yes
15704 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'
15705 # Note: this linker hardcodes the directories in LIBPATH if there
15706 # are no directories specified by -L.
15707 hardcode_minus_L=yes
15708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15709 # Neither direct hardcoding nor static linking is supported with a
15711 hardcode_direct=unsupported
15716 if test "$host_cpu" = ia64; then
15717 # On IA64, the linker does run time linking by default, so we don't
15718 # have to do anything special.
15719 aix_use_runtimelinking=no
15720 exp_sym_flag='-Bexport'
15723 # If we're using GNU nm, then we don't want the "-C" option.
15724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15726 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'
15728 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'
15730 aix_use_runtimelinking=no
15732 # Test if we are trying to use run time linking or normal
15733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15734 # need to do runtime linking.
15735 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15736 for ld_flag in $LDFLAGS; do
15737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15738 aix_use_runtimelinking=yes
15745 exp_sym_flag='-bexport'
15746 no_entry_flag='-bnoentry'
15749 # When large executables or shared objects are built, AIX ld can
15750 # have problems creating the table of contents. If linking a library
15751 # or program results in "error TOC overflow" add -mminimal-toc to
15752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15756 hardcode_direct=yes
15757 hardcode_libdir_separator=':'
15758 link_all_deplibs=yes
15760 if test "$GCC" = yes; then
15761 case $host_os in aix4.[012]|aix4.[012].*)
15762 # We only want to do this on AIX 4.2 and lower, the check
15763 # below for broken collect2 doesn't work under 4.3+
15764 collect2name=`${CC} -print-prog-name=collect2`
15765 if test -f "$collect2name" && \
15766 strings "$collect2name" | grep resolve_lib_name >/dev/null
15768 # We have reworked collect2
15769 hardcode_direct=yes
15771 # We have old collect2
15772 hardcode_direct=unsupported
15773 # It fails to find uninstalled libraries when the uninstalled
15774 # path is not listed in the libpath. Setting hardcode_minus_L
15775 # to unsupported forces relinking
15776 hardcode_minus_L=yes
15777 hardcode_libdir_flag_spec='-L$libdir'
15778 hardcode_libdir_separator=
15782 shared_flag='-shared'
15783 if test "$aix_use_runtimelinking" = yes; then
15784 shared_flag="$shared_flag "'${wl}-G'
15788 if test "$host_cpu" = ia64; then
15789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15790 # chokes on -Wl,-G. The following line is correct:
15793 if test "$aix_use_runtimelinking" = yes; then
15794 shared_flag='${wl}-G'
15796 shared_flag='${wl}-bM:SRE'
15801 # It seems that -bexpall does not export symbols beginning with
15802 # underscore (_), so it is better to generate a list of symbols to export.
15803 always_export_symbols=yes
15804 if test "$aix_use_runtimelinking" = yes; then
15805 # Warning - without using the other runtime loading flags (-brtl),
15806 # -berok will link without error, but may produce a broken library.
15807 allow_undefined_flag='-berok'
15808 # Determine the default libpath from the value encoded in an empty executable.
15809 cat >conftest.$ac_ext <<_ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_link") 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839 { (case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_try") 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_try") 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15861 # Check for a 64-bit object if we didn't find anything.
15862 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; }
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15875 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15876 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"
15878 if test "$host_cpu" = ia64; then
15879 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15880 allow_undefined_flag="-z nodefs"
15881 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"
15883 # Determine the default libpath from the value encoded in an empty executable.
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_link") 2>conftest.er1
15908 grep -v '^ *+' conftest.er1 >conftest.err
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914 { (case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_try") 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15936 # Check for a 64-bit object if we didn't find anything.
15937 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; }
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15946 rm -f core conftest.err conftest.$ac_objext \
15947 conftest$ac_exeext conftest.$ac_ext
15948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15951 # Warning - without using the other run time loading flags,
15952 # -berok will link without error, but may produce a broken library.
15953 no_undefined_flag=' ${wl}-bernotok'
15954 allow_undefined_flag=' ${wl}-berok'
15955 # Exported symbols can be pulled into shared objects from archives
15956 whole_archive_flag_spec='$convenience'
15957 archive_cmds_need_lc=yes
15958 # This is similar to how AIX traditionally builds its shared libraries.
15959 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'
15965 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)'
15966 hardcode_libdir_flag_spec='-L$libdir'
15967 hardcode_minus_L=yes
15968 # see comment about different semantics on the GNU ld section
15973 export_dynamic_flag_spec=-rdynamic
15976 cygwin* | mingw* | pw32*)
15977 # When not using gcc, we currently assume that we are using
15978 # Microsoft Visual C++.
15979 # hardcode_libdir_flag_spec is actually meaningless, as there is
15980 # no search path for DLLs.
15981 hardcode_libdir_flag_spec=' '
15982 allow_undefined_flag=unsupported
15983 # Tell ltmain to make .lib files, not .a files.
15985 # Tell ltmain to make .dll files, not .so files.
15987 # FIXME: Setting linknames here is a bad hack.
15988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15989 # The linker will automatically build a .lib file if we build a DLL.
15990 old_archive_From_new_cmds='true'
15991 # FIXME: Should let the user specify the lib program.
15992 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15993 fix_srcfile_path='`cygpath -w "$srcfile"`'
15994 enable_shared_with_static_runtimes=yes
15997 darwin* | rhapsody*)
15999 rhapsody* | darwin1.[012])
16000 allow_undefined_flag='${wl}-undefined ${wl}suppress'
16003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16004 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16006 case ${MACOSX_DEPLOYMENT_TARGET} in
16008 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16011 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16017 archive_cmds_need_lc=no
16019 hardcode_automatic=yes
16020 hardcode_shlibpath_var=unsupported
16021 whole_archive_flag_spec=''
16022 link_all_deplibs=yes
16023 if test "$GCC" = yes ; then
16024 output_verbose_link_cmd='echo'
16025 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16026 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16027 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16028 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}'
16029 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}'
16031 case $cc_basename in
16033 output_verbose_link_cmd='echo'
16034 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16035 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16037 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}'
16038 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}'
16048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_libdir_flag_spec='-L$libdir'
16050 hardcode_shlibpath_var=no
16057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16058 # support. Future versions do this automatically, but an explicit c++rt0.o
16059 # does not break anything, and helps significantly (at the cost of a little
16062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16063 hardcode_libdir_flag_spec='-R$libdir'
16064 hardcode_direct=yes
16065 hardcode_shlibpath_var=no
16068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16071 hardcode_direct=yes
16072 hardcode_minus_L=yes
16073 hardcode_shlibpath_var=no
16076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16077 freebsd* | kfreebsd*-gnu | dragonfly*)
16078 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16079 hardcode_libdir_flag_spec='-R$libdir'
16080 hardcode_direct=yes
16081 hardcode_shlibpath_var=no
16085 if test "$GCC" = yes; then
16086 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'
16088 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'
16090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16091 hardcode_libdir_separator=:
16092 hardcode_direct=yes
16094 # hardcode_minus_L: Not really in the search PATH,
16095 # but as the default location of the library.
16096 hardcode_minus_L=yes
16097 export_dynamic_flag_spec='${wl}-E'
16101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16102 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16106 if test "$with_gnu_ld" = no; then
16107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16108 hardcode_libdir_separator=:
16110 hardcode_direct=yes
16111 export_dynamic_flag_spec='${wl}-E'
16113 # hardcode_minus_L: Not really in the search PATH,
16114 # but as the default location of the library.
16115 hardcode_minus_L=yes
16120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16123 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16145 if test "$with_gnu_ld" = no; then
16146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16147 hardcode_libdir_separator=:
16151 hardcode_libdir_flag_spec_ld='+b $libdir'
16153 hardcode_shlibpath_var=no
16156 hardcode_direct=yes
16157 export_dynamic_flag_spec='${wl}-E'
16159 # hardcode_minus_L: Not really in the search PATH,
16160 # but as the default location of the library.
16161 hardcode_minus_L=yes
16167 irix5* | irix6* | nonstopux*)
16168 if test "$GCC" = yes; then
16169 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'
16171 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'
16172 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator=:
16176 link_all_deplibs=yes
16180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16183 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16185 hardcode_libdir_flag_spec='-R$libdir'
16186 hardcode_direct=yes
16187 hardcode_shlibpath_var=no
16191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_direct=yes
16193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16194 hardcode_libdir_separator=:
16195 hardcode_shlibpath_var=no
16199 hardcode_direct=yes
16200 hardcode_shlibpath_var=no
16201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16205 export_dynamic_flag_spec='${wl}-E'
16208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_libdir_flag_spec='-R$libdir'
16213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16221 hardcode_libdir_flag_spec='-L$libdir'
16222 hardcode_minus_L=yes
16223 allow_undefined_flag=unsupported
16224 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'
16225 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16229 if test "$GCC" = yes; then
16230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16231 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'
16233 allow_undefined_flag=' -expect_unresolved \*'
16234 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'
16236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16237 hardcode_libdir_separator=:
16240 osf4* | osf5*) # as osf3* with the addition of -msym flag
16241 if test "$GCC" = yes; then
16242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16243 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'
16244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16246 allow_undefined_flag=' -expect_unresolved \*'
16247 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'
16248 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16249 $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'
16251 # Both c and cxx compiler support -rpath directly
16252 hardcode_libdir_flag_spec='-rpath $libdir'
16254 hardcode_libdir_separator=:
16258 no_undefined_flag=' -z text'
16259 if test "$GCC" = yes; then
16261 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16262 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16263 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16266 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16268 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16270 hardcode_libdir_flag_spec='-R$libdir'
16271 hardcode_shlibpath_var=no
16273 solaris2.[0-5] | solaris2.[0-5].*) ;;
16275 # The compiler driver will combine linker options so we
16276 # cannot just pass the convience library names through
16277 # without $wl, iff we do not link with $LD.
16278 # Luckily, gcc supports the same syntax we need for Sun Studio.
16279 # Supported since Solaris 2.6 (maybe 2.5.1?)
16282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16284 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' ;;
16287 link_all_deplibs=yes
16291 if test "x$host_vendor" = xsequent; then
16292 # Use $CC to link under sequent, because it throws in some extra .o
16293 # files that make .init and .fini sections work.
16294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_libdir_flag_spec='-L$libdir'
16299 hardcode_direct=yes
16300 hardcode_minus_L=yes
16301 hardcode_shlibpath_var=no
16305 case $host_vendor in
16307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct=yes # is this really true???
16311 ## LD is ld it makes a PLAMLIB
16312 ## CC just makes a GrossModule.
16313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16314 reload_cmds='$CC -r -o $output$reload_objs'
16318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16322 runpath_var='LD_RUN_PATH'
16323 hardcode_shlibpath_var=no
16327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328 hardcode_shlibpath_var=no
16329 export_dynamic_flag_spec='-Bexport'
16333 if test -d /usr/nec; then
16334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_shlibpath_var=no
16336 runpath_var=LD_RUN_PATH
16337 hardcode_runpath_var=yes
16342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16343 no_undefined_flag='${wl}-z,text'
16344 archive_cmds_need_lc=no
16345 hardcode_shlibpath_var=no
16346 runpath_var='LD_RUN_PATH'
16348 if test "$GCC" = yes; then
16349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16353 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16357 sysv5* | sco3.2v5* | sco5v6*)
16358 # Note: We can NOT use -z defs as we might desire, because we do not
16359 # link with -lc, and that would cause any symbols used from libc to
16360 # always be unresolved, which means just about no library would
16361 # ever link correctly. If we're not using GNU ld we use -z text
16362 # though, which does catch some bad symbols but isn't as heavy-handed
16364 no_undefined_flag='${wl}-z,text'
16365 allow_undefined_flag='${wl}-z,nodefs'
16366 archive_cmds_need_lc=no
16367 hardcode_shlibpath_var=no
16368 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16369 hardcode_libdir_separator=':'
16370 link_all_deplibs=yes
16371 export_dynamic_flag_spec='${wl}-Bexport'
16372 runpath_var='LD_RUN_PATH'
16374 if test "$GCC" = yes; then
16375 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16378 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385 hardcode_libdir_flag_spec='-L$libdir'
16386 hardcode_shlibpath_var=no
16395 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16396 echo "${ECHO_T}$ld_shlibs" >&6; }
16397 test "$ld_shlibs" = no && can_build_shared=no
16400 # Do we need to explicitly link libc?
16402 case "x$archive_cmds_need_lc" in
16404 # Assume -lc should be added
16405 archive_cmds_need_lc=yes
16407 if test "$enable_shared" = yes && test "$GCC" = yes; then
16408 case $archive_cmds in
16410 # FIXME: we may have to deal with multi-command sequences.
16413 # Test whether the compiler implicitly links with -lc since on some
16414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16415 # to ld, don't add -lc before -lgcc.
16416 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16417 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422 (eval $ac_compile) 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } 2>conftest.err; then
16428 libobjs=conftest.$ac_objext
16430 wl=$lt_prog_compiler_wl
16431 pic_flag=$lt_prog_compiler_pic
16437 lt_save_allow_undefined_flag=$allow_undefined_flag
16438 allow_undefined_flag=
16439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16440 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }
16445 archive_cmds_need_lc=no
16447 archive_cmds_need_lc=yes
16449 allow_undefined_flag=$lt_save_allow_undefined_flag
16451 cat conftest.err 1>&5
16454 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16455 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16462 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16463 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16464 library_names_spec=
16465 libname_spec='lib$name'
16469 postuninstall_cmds=
16473 shlibpath_overrides_runpath=unknown
16475 dynamic_linker="$host_os ld.so"
16476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16477 if test "$GCC" = yes; then
16478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16480 # if the path contains ";" then we assume it to be the separator
16481 # otherwise default to the standard path separator (i.e. ":") - it is
16482 # assumed that no part of a normal pathname contains ";" but that should
16483 # okay in the real world where ";" in dirpaths is itself problematic.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16491 need_lib_prefix=unknown
16492 hardcode_into_libs=no
16494 # when you set need_version to no, make sure it does not cause -set_version
16495 # flags to be left without arguments
16496 need_version=unknown
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16502 shlibpath_var=LIBPATH
16504 # AIX 3 has no versioning support, so we append a major version to the name.
16505 soname_spec='${libname}${release}${shared_ext}$major'
16512 hardcode_into_libs=yes
16513 if test "$host_cpu" = ia64; then
16514 # AIX 5 supports IA64
16515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16516 shlibpath_var=LD_LIBRARY_PATH
16518 # With GCC up to 2.95.x, collect2 would create an import file
16519 # for dependence libraries. The import file would start with
16520 # the line `#! .'. This would cause the generated library to
16521 # depend on `.', always an invalid library. This was fixed in
16522 # development snapshots of GCC prior to 3.0.
16524 aix4 | aix4.[01] | aix4.[01].*)
16525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16530 can_build_shared=no
16534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16535 # soname into executable. Probably we can add versioning support to
16536 # collect2, so additional links can be useful in future.
16537 if test "$aix_use_runtimelinking" = yes; then
16538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539 # instead of lib<name>.a to let people know that these are not
16540 # typical AIX shared libraries.
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 # We preserve .a as extension for shared libraries through AIX4.2
16544 # and later when we are not doing run time linking.
16545 library_names_spec='${libname}${release}.a $libname.a'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16548 shlibpath_var=LIBPATH
16553 library_names_spec='$libname.ixlibrary $libname.a'
16554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16555 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'
16559 library_names_spec='${libname}${shared_ext}'
16560 dynamic_linker="$host_os ld.so"
16561 shlibpath_var=LIBRARY_PATH
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16573 # the default ld.so.conf also contains /usr/contrib/lib and
16574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16575 # libtool to hard-code these into programs
16578 cygwin* | mingw* | pw32*)
16579 version_type=windows
16584 case $GCC,$host_os in
16585 yes,cygwin* | yes,mingw* | yes,pw32*)
16586 library_names_spec='$libname.dll.a'
16587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16588 postinstall_cmds='base_file=`basename \${file}`~
16589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16590 dldir=$destdir/`dirname \$dlpath`~
16591 test -d \$dldir || mkdir -p \$dldir~
16592 $install_prog $dir/$dlname \$dldir/$dlname~
16593 chmod a+x \$dldir/$dlname'
16594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16595 dlpath=$dir/\$dldll~
16597 shlibpath_overrides_runpath=yes
16601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16606 # MinGW DLLs use traditional 'lib' prefix
16607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16610 # It is most probably a Windows format PATH printed by
16611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16612 # path with ; separators, and with drive letters. We can handle the
16613 # drive letters (cygwin fileutils understands them), so leave them,
16614 # especially as we might pass files found there to a mingw objdump,
16615 # which wouldn't understand a cygwinified path. Ahh.
16616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16622 # pw32 DLLs use 'pw' prefix rather than 'lib'
16623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16632 dynamic_linker='Win32 ld.exe'
16633 # FIXME: first we should search . and the directory the executable is in
16637 darwin* | rhapsody*)
16638 dynamic_linker="$host_os dyld"
16639 version_type=darwin
16642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16643 soname_spec='${libname}${release}${major}$shared_ext'
16644 shlibpath_overrides_runpath=yes
16645 shlibpath_var=DYLD_LIBRARY_PATH
16646 shrext_cmds='.dylib'
16647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16648 if test "$GCC" = yes; then
16649 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"`
16651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=no
16677 hardcode_into_libs=yes
16678 dynamic_linker='GNU ld.so'
16681 freebsd* | dragonfly*)
16682 # DragonFly does not have aout. When/if they implement a new
16683 # versioning mechanism, adjust this.
16684 if test -x /usr/bin/objformat; then
16685 objformat=`/usr/bin/objformat`
16688 freebsd[123]*) objformat=aout ;;
16689 *) objformat=elf ;;
16692 version_type=freebsd-$objformat
16693 case $version_type in
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16704 shlibpath_var=LD_LIBRARY_PATH
16707 shlibpath_overrides_runpath=yes
16709 freebsd3.[01]* | freebsdelf3.[01]*)
16710 shlibpath_overrides_runpath=yes
16711 hardcode_into_libs=yes
16713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16715 shlibpath_overrides_runpath=no
16716 hardcode_into_libs=yes
16718 freebsd*) # from 4.6 on
16719 shlibpath_overrides_runpath=yes
16720 hardcode_into_libs=yes
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 hardcode_into_libs=yes
16735 hpux9* | hpux10* | hpux11*)
16736 # Give a soname corresponding to the major version so that dld.sl refuses to
16737 # link against other versions.
16744 hardcode_into_libs=yes
16745 dynamic_linker="$host_os dld.so"
16746 shlibpath_var=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 if test "X$HPUX_IA64_MODE" = X32; then
16751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16759 hardcode_into_libs=yes
16760 dynamic_linker="$host_os dld.sl"
16761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16770 dynamic_linker="$host_os dld.sl"
16771 shlibpath_var=SHLIB_PATH
16772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16777 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16778 postinstall_cmds='chmod 555 $lib'
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=no
16790 hardcode_into_libs=yes
16793 irix5* | irix6* | nonstopux*)
16795 nonstopux*) version_type=nonstopux ;;
16797 if test "$lt_cv_prog_gnu_ld" = yes; then
16805 soname_spec='${libname}${release}${shared_ext}$major'
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16808 irix5* | nonstopux*)
16809 libsuff= shlibsuff=
16812 case $LD in # libtool.m4 will add one of these switches to LD
16813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16814 libsuff= shlibsuff= libmagic=32-bit;;
16815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16816 libsuff=32 shlibsuff=N32 libmagic=N32;;
16817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16819 *) libsuff= shlibsuff= libmagic=never-match;;
16823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16824 shlibpath_overrides_runpath=no
16825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16827 hardcode_into_libs=yes
16830 # No shared lib support for Linux oldld, aout, or coff.
16831 linux*oldld* | linux*aout* | linux*coff*)
16835 # This must be Linux ELF.
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=no
16845 # This implies no fast_install, which is unacceptable.
16846 # Some rework will be needed to allow for fast_install
16847 # before this can be enabled.
16848 hardcode_into_libs=yes
16850 # Append ld.so.conf contents to the search path
16851 if test -f /etc/ld.so.conf; then
16852 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' ' '`
16853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16856 # We used to test for /lib/ld.so.1 and disable shared libraries on
16857 # powerpc, because MkLinux only supported shared libraries with the
16858 # GNU dynamic linker. Since this was broken with cross compilers,
16859 # most powerpc-linux boxes support dynamic linking these days and
16860 # people can always --disable-shared, the test was removed, and we
16861 # assume the GNU/Linux dynamic linker is in use.
16862 dynamic_linker='GNU/Linux ld.so'
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=no
16873 hardcode_into_libs=yes
16874 dynamic_linker='GNU ld.so'
16881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16884 dynamic_linker='NetBSD (a.out) ld.so'
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 dynamic_linker='NetBSD ld.elf_so'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes
16892 hardcode_into_libs=yes
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907 soname_spec='${libname}${release}${shared_ext}$major'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 shlibpath_overrides_runpath=yes
16914 sys_lib_dlsearch_path_spec="/usr/lib"
16916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16919 *) need_version=no ;;
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16926 openbsd2.[89] | openbsd2.[89].*)
16927 shlibpath_overrides_runpath=no
16930 shlibpath_overrides_runpath=yes
16934 shlibpath_overrides_runpath=yes
16939 libname_spec='$name'
16942 library_names_spec='$libname${shared_ext} $libname.a'
16943 dynamic_linker='OS/2 ld.exe'
16944 shlibpath_var=LIBPATH
16947 osf3* | osf4* | osf5*)
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 shlibpath_overrides_runpath=yes
16966 hardcode_into_libs=yes
16967 # ldd complains unless libraries are executable
16968 postinstall_cmds='chmod +x $lib'
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=yes
16977 if test "$with_gnu_ld" = yes; then
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 shlibpath_var=LD_LIBRARY_PATH
16988 case $host_vendor in
16990 shlibpath_overrides_runpath=no
16992 export_dynamic_flag_spec='${wl}-Blargedynsym'
16993 runpath_var=LD_RUN_PATH
17001 shlibpath_overrides_runpath=no
17002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17008 if test -d /usr/nec ;then
17010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17011 soname_spec='$libname${shared_ext}.$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17017 version_type=freebsd-elf
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 hardcode_into_libs=yes
17024 if test "$with_gnu_ld" = yes; then
17025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17026 shlibpath_overrides_runpath=no
17028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17029 shlibpath_overrides_runpath=yes
17032 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17036 sys_lib_dlsearch_path_spec='/usr/lib'
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LD_LIBRARY_PATH
17050 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17051 echo "${ECHO_T}$dynamic_linker" >&6; }
17052 test "$dynamic_linker" = no && can_build_shared=no
17054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17055 if test "$GCC" = yes; then
17056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17059 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17060 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17062 if test -n "$hardcode_libdir_flag_spec" || \
17063 test -n "$runpath_var" || \
17064 test "X$hardcode_automatic" = "Xyes" ; then
17066 # We can hardcode non-existant directories.
17067 if test "$hardcode_direct" != no &&
17068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17069 # have to relink, otherwise we might link with an installed library
17070 # when we should be linking with a yet-to-be-installed one
17071 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17072 test "$hardcode_minus_L" != no; then
17073 # Linking always hardcodes the temporary library directory.
17074 hardcode_action=relink
17076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17077 hardcode_action=immediate
17080 # We cannot hardcode anything, or else we can only hardcode existing
17082 hardcode_action=unsupported
17084 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17085 echo "${ECHO_T}$hardcode_action" >&6; }
17087 if test "$hardcode_action" = relink; then
17088 # Fast installation is not supported
17089 enable_fast_install=no
17090 elif test "$shlibpath_overrides_runpath" = yes ||
17091 test "$enable_shared" = no; then
17092 # Fast installation is not necessary
17093 enable_fast_install=needless
17098 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17099 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17100 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17103 { echo "$as_me:$LINENO: result: yes" >&5
17104 echo "${ECHO_T}yes" >&6; }
17106 # FIXME - insert some real tests, host_os isn't really good enough
17109 if test -n "$STRIP" ; then
17110 striplib="$STRIP -x"
17111 { echo "$as_me:$LINENO: result: yes" >&5
17112 echo "${ECHO_T}yes" >&6; }
17114 { echo "$as_me:$LINENO: result: no" >&5
17115 echo "${ECHO_T}no" >&6; }
17119 { echo "$as_me:$LINENO: result: no" >&5
17120 echo "${ECHO_T}no" >&6; }
17125 if test "x$enable_dlopen" != xyes; then
17126 enable_dlopen=unknown
17127 enable_dlopen_self=unknown
17128 enable_dlopen_self_static=unknown
17135 lt_cv_dlopen="load_add_on"
17137 lt_cv_dlopen_self=yes
17141 lt_cv_dlopen="LoadLibrary"
17146 lt_cv_dlopen="dlopen"
17151 # if libdl is installed we need to link against it
17152 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17153 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 ac_check_lib_save_LIBS=$LIBS
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (ac_try="$ac_link"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_link") 2>conftest.er1
17190 grep -v '^ *+' conftest.er1 >conftest.err
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_cv_lib_dl_dlopen=yes
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 ac_cv_lib_dl_dlopen=no
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17227 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17229 if test $ac_cv_lib_dl_dlopen = yes; then
17230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17233 lt_cv_dlopen="dyld"
17235 lt_cv_dlopen_self=yes
17242 { echo "$as_me:$LINENO: checking for shl_load" >&5
17243 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17244 if test "${ac_cv_func_shl_load+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 cat >conftest.$ac_ext <<_ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17255 #define shl_load innocuous_shl_load
17257 /* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char shl_load (); below.
17259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17260 <limits.h> exists even on freestanding compilers. */
17263 # include <limits.h>
17265 # include <assert.h>
17270 /* Override any GCC internal prototype to avoid an error.
17271 Use char because int might match the return type of a GCC
17272 builtin and then its argument prototype would still apply. */
17277 /* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280 #if defined __stub_shl_load || defined __stub___shl_load
17287 return shl_load ();
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest$ac_exeext'
17317 { (case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_func_shl_load=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_func_shl_load=no
17334 rm -f core conftest.err conftest.$ac_objext \
17335 conftest$ac_exeext conftest.$ac_ext
17337 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17338 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17339 if test $ac_cv_func_shl_load = yes; then
17340 lt_cv_dlopen="shl_load"
17342 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17343 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 ac_check_lib_save_LIBS=$LIBS
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17356 /* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17366 return shl_load ();
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17380 grep -v '^ *+' conftest.er1 >conftest.err
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_try") 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 ac_cv_lib_dld_shl_load=yes
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 ac_cv_lib_dld_shl_load=no
17413 rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415 LIBS=$ac_check_lib_save_LIBS
17417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17418 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17419 if test $ac_cv_lib_dld_shl_load = yes; then
17420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17422 { echo "$as_me:$LINENO: checking for dlopen" >&5
17423 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17424 if test "${ac_cv_func_dlopen+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435 #define dlopen innocuous_dlopen
17437 /* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char dlopen (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17443 # include <limits.h>
17445 # include <assert.h>
17450 /* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined __stub_dlopen || defined __stub___dlopen
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_func_dlopen=yes
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 ac_cv_func_dlopen=no
17514 rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17517 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17518 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17519 if test $ac_cv_func_dlopen = yes; then
17520 lt_cv_dlopen="dlopen"
17522 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17523 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 ac_check_lib_save_LIBS=$LIBS
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest$ac_exeext'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_lib_dl_dlopen=yes
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_cv_lib_dl_dlopen=no
17593 rm -f core conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17595 LIBS=$ac_check_lib_save_LIBS
17597 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17599 if test $ac_cv_lib_dl_dlopen = yes; then
17600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17602 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17603 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17604 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 ac_check_lib_save_LIBS=$LIBS
17608 LIBS="-lsvld $LIBS"
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 /* Override any GCC internal prototype to avoid an error.
17617 Use char because int might match the return type of a GCC
17618 builtin and then its argument prototype would still apply. */
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
17640 grep -v '^ *+' conftest.er1 >conftest.err
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_lib_svld_dlopen=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_lib_svld_dlopen=no
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675 LIBS=$ac_check_lib_save_LIBS
17677 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17678 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17679 if test $ac_cv_lib_svld_dlopen = yes; then
17680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17682 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17683 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17684 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 ac_check_lib_save_LIBS=$LIBS
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17706 return dld_link ();
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_lib_dld_dld_link=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_lib_dld_dld_link=no
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17758 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17759 if test $ac_cv_lib_dld_dld_link = yes; then
17760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17781 if test "x$lt_cv_dlopen" != xno; then
17787 case $lt_cv_dlopen in
17789 save_CPPFLAGS="$CPPFLAGS"
17790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17792 save_LDFLAGS="$LDFLAGS"
17793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17796 LIBS="$lt_cv_dlopen_libs $LIBS"
17798 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17799 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17800 if test "${lt_cv_dlopen_self+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 if test "$cross_compiling" = yes; then :
17804 lt_cv_dlopen_self=cross
17806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17807 lt_status=$lt_dlunknown
17808 cat > conftest.$ac_ext <<EOF
17809 #line 17809 "configure"
17810 #include "confdefs.h"
17819 # define LT_DLGLOBAL RTLD_GLOBAL
17822 # define LT_DLGLOBAL DL_GLOBAL
17824 # define LT_DLGLOBAL 0
17828 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17829 find out it does not work in some platform. */
17830 #ifndef LT_DLLAZY_OR_NOW
17832 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17835 # define LT_DLLAZY_OR_NOW DL_LAZY
17838 # define LT_DLLAZY_OR_NOW RTLD_NOW
17841 # define LT_DLLAZY_OR_NOW DL_NOW
17843 # define LT_DLLAZY_OR_NOW 0
17851 extern "C" void exit (int);
17854 void fnord() { int i=42;}
17857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17858 int status = $lt_dlunknown;
17862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17863 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17864 /* dlclose (self); */
17872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17873 (eval $ac_link) 2>&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17877 (./conftest; exit; ) >&5 2>/dev/null
17879 case x$lt_status in
17880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17882 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17885 # compilation failed
17886 lt_cv_dlopen_self=no
17893 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17894 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17896 if test "x$lt_cv_dlopen_self" = xyes; then
17897 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17898 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17899 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17900 if test "${lt_cv_dlopen_self_static+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 if test "$cross_compiling" = yes; then :
17904 lt_cv_dlopen_self_static=cross
17906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17907 lt_status=$lt_dlunknown
17908 cat > conftest.$ac_ext <<EOF
17909 #line 17909 "configure"
17910 #include "confdefs.h"
17919 # define LT_DLGLOBAL RTLD_GLOBAL
17922 # define LT_DLGLOBAL DL_GLOBAL
17924 # define LT_DLGLOBAL 0
17928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17929 find out it does not work in some platform. */
17930 #ifndef LT_DLLAZY_OR_NOW
17932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17935 # define LT_DLLAZY_OR_NOW DL_LAZY
17938 # define LT_DLLAZY_OR_NOW RTLD_NOW
17941 # define LT_DLLAZY_OR_NOW DL_NOW
17943 # define LT_DLLAZY_OR_NOW 0
17951 extern "C" void exit (int);
17954 void fnord() { int i=42;}
17957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17958 int status = $lt_dlunknown;
17962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17963 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17964 /* dlclose (self); */
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973 (eval $ac_link) 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17977 (./conftest; exit; ) >&5 2>/dev/null
17979 case x$lt_status in
17980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17982 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17985 # compilation failed
17986 lt_cv_dlopen_self_static=no
17993 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17994 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17997 CPPFLAGS="$save_CPPFLAGS"
17998 LDFLAGS="$save_LDFLAGS"
18003 case $lt_cv_dlopen_self in
18004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18005 *) enable_dlopen_self=unknown ;;
18008 case $lt_cv_dlopen_self_static in
18009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18010 *) enable_dlopen_self_static=unknown ;;
18015 # Report which library types will actually be built
18016 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18017 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18018 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
18019 echo "${ECHO_T}$can_build_shared" >&6; }
18021 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18022 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18023 test "$can_build_shared" = "no" && enable_shared=no
18025 # On AIX, shared libraries and static libraries use the same namespace, and
18026 # are all built from PIC.
18029 test "$enable_shared" = yes && enable_static=no
18030 if test -n "$RANLIB"; then
18031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18032 postinstall_cmds='$RANLIB $lib'
18037 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18038 test "$enable_shared" = yes && enable_static=no
18042 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18043 echo "${ECHO_T}$enable_shared" >&6; }
18045 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18046 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18047 # Make sure either enable_shared or enable_static is yes.
18048 test "$enable_shared" = yes || enable_static=yes
18049 { echo "$as_me:$LINENO: result: $enable_static" >&5
18050 echo "${ECHO_T}$enable_static" >&6; }
18052 # The else clause should only fire when bootstrapping the
18053 # libtool distribution, otherwise you forgot to ship ltmain.sh
18054 # with your package, and you will get complaints that there are
18055 # no rules to generate ltmain.sh.
18056 if test -f "$ltmain"; then
18057 # See if we are running on zsh, and set the options which allow our commands through
18058 # without removal of \ escapes.
18059 if test -n "${ZSH_VERSION+set}" ; then
18060 setopt NO_GLOB_SUBST
18062 # Now quote all the things that may contain metacharacters while being
18063 # careful not to overquote the AC_SUBSTed values. We take copies of the
18064 # variables and quote the copies for generation of the libtool script.
18065 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18067 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18068 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18069 deplibs_check_method reload_flag reload_cmds need_locks \
18070 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18071 lt_cv_sys_global_symbol_to_c_name_address \
18072 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18073 old_postinstall_cmds old_postuninstall_cmds \
18077 lt_prog_compiler_wl \
18078 lt_prog_compiler_pic \
18079 lt_prog_compiler_static \
18080 lt_prog_compiler_no_builtin_flag \
18081 export_dynamic_flag_spec \
18082 thread_safe_flag_spec \
18083 whole_archive_flag_spec \
18084 enable_shared_with_static_runtimes \
18086 old_archive_from_new_cmds \
18091 compiler_lib_search_path \
18093 archive_expsym_cmds \
18095 postuninstall_cmds \
18096 old_archive_from_expsyms_cmds \
18097 allow_undefined_flag \
18098 no_undefined_flag \
18099 export_symbols_cmds \
18100 hardcode_libdir_flag_spec \
18101 hardcode_libdir_flag_spec_ld \
18102 hardcode_libdir_separator \
18103 hardcode_automatic \
18105 module_expsym_cmds \
18106 lt_cv_prog_compiler_c_o \
18108 include_expsyms; do
18111 old_archive_cmds | \
18112 old_archive_from_new_cmds | \
18114 archive_expsym_cmds | \
18116 module_expsym_cmds | \
18117 old_archive_from_expsyms_cmds | \
18118 export_symbols_cmds | \
18119 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18120 postinstall_cmds | postuninstall_cmds | \
18121 old_postinstall_cmds | old_postuninstall_cmds | \
18122 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18123 # Double-quote double-evaled strings.
18124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18133 *'\$0 --fallback-echo"')
18134 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18138 cfgfile="${ofile}T"
18139 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18141 { echo "$as_me:$LINENO: creating $ofile" >&5
18142 echo "$as_me: creating $ofile" >&6;}
18144 cat <<__EOF__ >> "$cfgfile"
18147 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18148 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18149 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18151 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18152 # Free Software Foundation, Inc.
18154 # This file is part of GNU Libtool:
18155 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18157 # This program is free software; you can redistribute it and/or modify
18158 # it under the terms of the GNU General Public License as published by
18159 # the Free Software Foundation; either version 2 of the License, or
18160 # (at your option) any later version.
18162 # This program is distributed in the hope that it will be useful, but
18163 # WITHOUT ANY WARRANTY; without even the implied warranty of
18164 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18165 # General Public License for more details.
18167 # You should have received a copy of the GNU General Public License
18168 # along with this program; if not, write to the Free Software
18169 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18171 # As a special exception to the GNU General Public License, if you
18172 # distribute this file as part of a program that contains a
18173 # configuration script generated by Autoconf, you may include it under
18174 # the same distribution terms that you use for the rest of that program.
18176 # A sed program that does not truncate output.
18179 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18180 Xsed="$SED -e 1s/^X//"
18182 # The HP-UX ksh and POSIX shell print the target directory to stdout
18183 # if CDPATH is set.
18184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18186 # The names of the tagged configurations supported by this script.
18189 # ### BEGIN LIBTOOL CONFIG
18191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18193 # Shell to use when invoking shell scripts.
18196 # Whether or not to build shared libraries.
18197 build_libtool_libs=$enable_shared
18199 # Whether or not to build static libraries.
18200 build_old_libs=$enable_static
18202 # Whether or not to add -lc for building shared libraries.
18203 build_libtool_need_lc=$archive_cmds_need_lc
18205 # Whether or not to disallow shared libs when runtime libs are static
18206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18208 # Whether or not to optimize for fast installation.
18209 fast_install=$enable_fast_install
18212 host_alias=$host_alias
18216 # The build system.
18217 build_alias=$build_alias
18221 # An echo program that does not interpret backslashes.
18226 AR_FLAGS=$lt_AR_FLAGS
18231 # LTCC compiler flags.
18232 LTCFLAGS=$lt_LTCFLAGS
18234 # A language-specific compiler.
18237 # Is the compiler the GNU C compiler?
18243 # The linker used to build libraries.
18246 # Whether we need hard or soft links.
18249 # A BSD-compatible nm program.
18252 # A symbol stripping program
18255 # Used to examine libraries when file_magic_cmd begins "file"
18256 MAGIC_CMD=$MAGIC_CMD
18258 # Used on cygwin: DLL creation program.
18261 # Used on cygwin: object dumper.
18264 # Used on cygwin: assembler.
18267 # The name of the directory that contains temporary libtool files.
18270 # How to create reloadable object files.
18271 reload_flag=$lt_reload_flag
18272 reload_cmds=$lt_reload_cmds
18274 # How to pass a linker flag through the compiler.
18275 wl=$lt_lt_prog_compiler_wl
18277 # Object file suffix (normally "o").
18278 objext="$ac_objext"
18280 # Old archive suffix (normally "a").
18283 # Shared library suffix (normally ".so").
18284 shrext_cmds='$shrext_cmds'
18286 # Executable file suffix (normally "").
18289 # Additional compiler flags for building library objects.
18290 pic_flag=$lt_lt_prog_compiler_pic
18293 # What is the maximum length of a command?
18294 max_cmd_len=$lt_cv_sys_max_cmd_len
18296 # Does compiler simultaneously support -c and -o options?
18297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18299 # Must we lock files when doing compilation?
18300 need_locks=$lt_need_locks
18302 # Do we need the lib prefix for modules?
18303 need_lib_prefix=$need_lib_prefix
18305 # Do we need a version for libraries?
18306 need_version=$need_version
18308 # Whether dlopen is supported.
18309 dlopen_support=$enable_dlopen
18311 # Whether dlopen of programs is supported.
18312 dlopen_self=$enable_dlopen_self
18314 # Whether dlopen of statically linked programs is supported.
18315 dlopen_self_static=$enable_dlopen_self_static
18317 # Compiler flag to prevent dynamic linking.
18318 link_static_flag=$lt_lt_prog_compiler_static
18320 # Compiler flag to turn off builtin functions.
18321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18323 # Compiler flag to allow reflexive dlopens.
18324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18326 # Compiler flag to generate shared objects directly from archives.
18327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18329 # Compiler flag to generate thread-safe objects.
18330 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18332 # Library versioning type.
18333 version_type=$version_type
18335 # Format of library name prefix.
18336 libname_spec=$lt_libname_spec
18338 # List of archive names. First name is the real one, the rest are links.
18339 # The last name is the one that the linker finds with -lNAME.
18340 library_names_spec=$lt_library_names_spec
18342 # The coded name of the library, if different from the real name.
18343 soname_spec=$lt_soname_spec
18345 # Commands used to build and install an old-style archive.
18347 old_archive_cmds=$lt_old_archive_cmds
18348 old_postinstall_cmds=$lt_old_postinstall_cmds
18349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18351 # Create an old-style archive from a shared archive.
18352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18354 # Create a temporary old-style archive to link instead of a shared archive.
18355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18357 # Commands used to build and install a shared archive.
18358 archive_cmds=$lt_archive_cmds
18359 archive_expsym_cmds=$lt_archive_expsym_cmds
18360 postinstall_cmds=$lt_postinstall_cmds
18361 postuninstall_cmds=$lt_postuninstall_cmds
18363 # Commands used to build a loadable module (assumed same as above if empty)
18364 module_cmds=$lt_module_cmds
18365 module_expsym_cmds=$lt_module_expsym_cmds
18367 # Commands to strip libraries.
18368 old_striplib=$lt_old_striplib
18369 striplib=$lt_striplib
18371 # Dependencies to place before the objects being linked to create a
18373 predep_objects=$lt_predep_objects
18375 # Dependencies to place after the objects being linked to create a
18377 postdep_objects=$lt_postdep_objects
18379 # Dependencies to place before the objects being linked to create a
18381 predeps=$lt_predeps
18383 # Dependencies to place after the objects being linked to create a
18385 postdeps=$lt_postdeps
18387 # The library search path used internally by the compiler when linking
18388 # a shared library.
18389 compiler_lib_search_path=$lt_compiler_lib_search_path
18391 # Method to check whether dependent libraries are shared objects.
18392 deplibs_check_method=$lt_deplibs_check_method
18394 # Command to use when deplibs_check_method == file_magic.
18395 file_magic_cmd=$lt_file_magic_cmd
18397 # Flag that allows shared libraries with undefined symbols to be built.
18398 allow_undefined_flag=$lt_allow_undefined_flag
18400 # Flag that forces no undefined symbols.
18401 no_undefined_flag=$lt_no_undefined_flag
18403 # Commands used to finish a libtool library installation in a directory.
18404 finish_cmds=$lt_finish_cmds
18406 # Same as above, but a single script fragment to be evaled but not shown.
18407 finish_eval=$lt_finish_eval
18409 # Take the output of nm and produce a listing of raw symbols and C names.
18410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18412 # Transform the output of nm in a proper C declaration
18413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18415 # Transform the output of nm in a C name address pair
18416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18418 # This is the shared library runtime path variable.
18419 runpath_var=$runpath_var
18421 # This is the shared library path variable.
18422 shlibpath_var=$shlibpath_var
18424 # Is shlibpath searched before the hard-coded library search path?
18425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18427 # How to hardcode a shared library path into an executable.
18428 hardcode_action=$hardcode_action
18430 # Whether we should hardcode library paths into libraries.
18431 hardcode_into_libs=$hardcode_into_libs
18433 # Flag to hardcode \$libdir into a binary during linking.
18434 # This must work even if \$libdir does not exist.
18435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18437 # If ld is used when linking, flag to hardcode \$libdir into
18438 # a binary during linking. This must work even if \$libdir does
18440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18442 # Whether we need a single -rpath flag with a separated argument.
18443 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18446 # resulting binary.
18447 hardcode_direct=$hardcode_direct
18449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18450 # resulting binary.
18451 hardcode_minus_L=$hardcode_minus_L
18453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18454 # the resulting binary.
18455 hardcode_shlibpath_var=$hardcode_shlibpath_var
18457 # Set to yes if building a shared library automatically hardcodes DIR into the library
18458 # and all subsequent libraries and executables linked against it.
18459 hardcode_automatic=$hardcode_automatic
18461 # Variables whose values should be saved in libtool wrapper scripts and
18462 # restored at relink time.
18463 variables_saved_for_relink="$variables_saved_for_relink"
18465 # Whether libtool must link a program against all its dependency libraries.
18466 link_all_deplibs=$link_all_deplibs
18468 # Compile-time system search path for libraries
18469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18471 # Run-time system search path for libraries
18472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18474 # Fix the shell variable \$srcfile for the compiler.
18475 fix_srcfile_path="$fix_srcfile_path"
18477 # Set to yes if exported symbols are required.
18478 always_export_symbols=$always_export_symbols
18480 # The commands to list exported symbols.
18481 export_symbols_cmds=$lt_export_symbols_cmds
18483 # The commands to extract the exported symbol list from a shared archive.
18484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18486 # Symbols that should not be listed in the preloaded symbols.
18487 exclude_expsyms=$lt_exclude_expsyms
18489 # Symbols that must always be exported.
18490 include_expsyms=$lt_include_expsyms
18492 # ### END LIBTOOL CONFIG
18499 cat <<\EOF >> "$cfgfile"
18501 # AIX sometimes has problems with the GCC collect2 program. For some
18502 # reason, if we set the COLLECT_NAMES environment variable, the problems
18503 # vanish in a puff of smoke.
18504 if test "X${COLLECT_NAMES+set}" != Xset; then
18506 export COLLECT_NAMES
18512 # We use sed instead of cat because bash on DJGPP gets confused if
18513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18514 # text mode, it properly converts lines to CR/LF. This bash problem
18515 # is reportedly fixed, but why not run on old versions too?
18516 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18518 mv -f "$cfgfile" "$ofile" || \
18519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18523 # If there is no Makefile yet, we rely on a make rule to execute
18524 # `config.status --recheck' to rerun these tests and create the
18525 # libtool script then.
18526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18527 if test -f "$ltmain_in"; then
18528 test -f Makefile && make "$ltmain"
18534 ac_cpp='$CPP $CPPFLAGS'
18535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18542 # Check whether --with-tags was given.
18543 if test "${with_tags+set}" = set; then
18544 withval=$with_tags; tagnames="$withval"
18548 if test -f "$ltmain" && test -n "$tagnames"; then
18549 if test ! -f "${ofile}"; then
18550 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18551 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18554 if test -z "$LTCC"; then
18555 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18556 if test -z "$LTCC"; then
18557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18558 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18561 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18564 if test -z "$LTCFLAGS"; then
18565 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18568 # Extract list of available tagged configurations in $ofile.
18569 # Note that this assumes the entire list is on one line.
18570 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18573 for tagname in $tagnames; do
18575 # Check whether tagname contains only valid characters
18576 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18578 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18579 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18580 { (exit 1); exit 1; }; }
18584 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18586 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18587 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18588 { (exit 1); exit 1; }; }
18591 # Update the list of available tags.
18592 if test -n "$tagname"; then
18593 echo appending configuration tag \"$tagname\" to $ofile
18597 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18598 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18599 (test "X$CXX" != "Xg++"))) ; then
18601 ac_cpp='$CXXCPP $CPPFLAGS'
18602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18609 archive_cmds_need_lc_CXX=no
18610 allow_undefined_flag_CXX=
18611 always_export_symbols_CXX=no
18612 archive_expsym_cmds_CXX=
18613 export_dynamic_flag_spec_CXX=
18614 hardcode_direct_CXX=no
18615 hardcode_libdir_flag_spec_CXX=
18616 hardcode_libdir_flag_spec_ld_CXX=
18617 hardcode_libdir_separator_CXX=
18618 hardcode_minus_L_CXX=no
18619 hardcode_shlibpath_var_CXX=unsupported
18620 hardcode_automatic_CXX=no
18622 module_expsym_cmds_CXX=
18623 link_all_deplibs_CXX=unknown
18624 old_archive_cmds_CXX=$old_archive_cmds
18625 no_undefined_flag_CXX=
18626 whole_archive_flag_spec_CXX=
18627 enable_shared_with_static_runtimes_CXX=no
18629 # Dependencies to place before and after the object being linked:
18630 predep_objects_CXX=
18631 postdep_objects_CXX=
18634 compiler_lib_search_path_CXX=
18636 # Source file extension for C++ test sources.
18639 # Object file extension for compiled C++ test sources.
18643 # Code to be used in simple compile tests
18644 lt_simple_compile_test_code="int some_variable = 0;\n"
18646 # Code to be used in simple link tests
18647 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18651 # If no C compiler was specified, use CC.
18654 # If no C compiler flags were specified, use CFLAGS.
18655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18657 # Allow CC to be a program name with arguments.
18661 # save warnings/boilerplate of simple test code
18662 ac_outfile=conftest.$ac_objext
18663 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18665 _lt_compiler_boilerplate=`cat conftest.err`
18668 ac_outfile=conftest.$ac_objext
18669 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18671 _lt_linker_boilerplate=`cat conftest.err`
18675 # Allow CC to be a program name with arguments.
18680 lt_save_with_gnu_ld=$with_gnu_ld
18681 lt_save_path_LD=$lt_cv_path_LD
18682 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18683 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18685 $as_unset lt_cv_prog_gnu_ld
18687 if test -n "${lt_cv_path_LDCXX+set}"; then
18688 lt_cv_path_LD=$lt_cv_path_LDCXX
18690 $as_unset lt_cv_path_LD
18692 test -z "${LDCXX+set}" || LD=$LDCXX
18696 for cc_temp in $compiler""; do
18698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18704 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18707 # We don't want -fno-exception wen compiling C++ code, so set the
18708 # no_builtin_flag separately
18709 if test "$GXX" = yes; then
18710 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18712 lt_prog_compiler_no_builtin_flag_CXX=
18715 if test "$GXX" = yes; then
18716 # Set up default GNU C++ configuration
18719 # Check whether --with-gnu-ld was given.
18720 if test "${with_gnu_ld+set}" = set; then
18721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18727 if test "$GCC" = yes; then
18728 # Check if gcc -print-prog-name=ld gives a path.
18729 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18730 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18733 # gcc leaves a trailing carriage return which upsets mingw
18734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18739 # Accept absolute paths.
18741 re_direlt='/[^/][^/]*/\.\./'
18742 # Canonicalize the pathname of ld
18743 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18745 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18747 test -z "$LD" && LD="$ac_prog"
18750 # If it fails, then pretend we aren't using GCC.
18754 # If it is relative, then search for the first ld in PATH.
18755 with_gnu_ld=unknown
18758 elif test "$with_gnu_ld" = yes; then
18759 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18760 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18762 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18763 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18765 if test "${lt_cv_path_LD+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 if test -z "$LD"; then
18769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18770 for ac_dir in $PATH; do
18772 test -z "$ac_dir" && ac_dir=.
18773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18774 lt_cv_path_LD="$ac_dir/$ac_prog"
18775 # Check to see if the program is GNU ld. I'd rather use --version,
18776 # but apparently some variants of GNU ld only accept -v.
18777 # Break only if it was the GNU/non-GNU ld that we prefer.
18778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18779 *GNU* | *'with BFD'*)
18780 test "$with_gnu_ld" != no && break
18783 test "$with_gnu_ld" != yes && break
18790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18794 LD="$lt_cv_path_LD"
18795 if test -n "$LD"; then
18796 { echo "$as_me:$LINENO: result: $LD" >&5
18797 echo "${ECHO_T}$LD" >&6; }
18799 { echo "$as_me:$LINENO: result: no" >&5
18800 echo "${ECHO_T}no" >&6; }
18802 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18803 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18804 { (exit 1); exit 1; }; }
18805 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18806 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18807 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18811 case `$LD -v 2>&1 </dev/null` in
18812 *GNU* | *'with BFD'*)
18813 lt_cv_prog_gnu_ld=yes
18816 lt_cv_prog_gnu_ld=no
18820 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18821 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18822 with_gnu_ld=$lt_cv_prog_gnu_ld
18826 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18827 # archiving commands below assume that GNU ld is being used.
18828 if test "$with_gnu_ld" = yes; then
18829 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18830 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'
18832 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18835 # If archive_cmds runs LD, not CC, wlarc should be empty
18836 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18837 # investigate it a little bit more. (MM)
18840 # ancient GNU ld didn't support --whole-archive et. al.
18841 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18842 grep 'no-whole-archive' > /dev/null; then
18843 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18845 whole_archive_flag_spec_CXX=
18851 # A generic and very simple default shared library creation
18852 # command for GNU C++ for the case where it uses the native
18853 # linker, instead of GNU ld. If possible, this setting should
18854 # overridden to take advantage of the native linker features on
18855 # the platform it is being used on.
18856 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18859 # Commands to make compiler produce verbose output that lists
18860 # what "hidden" libraries, object files and flags are used when
18861 # linking a shared library.
18862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18870 # PORTME: fill in a description of your system's C++ link characteristics
18871 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18872 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18876 # FIXME: insert proper C++ library support
18880 if test "$host_cpu" = ia64; then
18881 # On IA64, the linker does run time linking by default, so we don't
18882 # have to do anything special.
18883 aix_use_runtimelinking=no
18884 exp_sym_flag='-Bexport'
18887 aix_use_runtimelinking=no
18889 # Test if we are trying to use run time linking or normal
18890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18891 # need to do runtime linking.
18892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18893 for ld_flag in $LDFLAGS; do
18896 aix_use_runtimelinking=yes
18904 exp_sym_flag='-bexport'
18905 no_entry_flag='-bnoentry'
18908 # When large executables or shared objects are built, AIX ld can
18909 # have problems creating the table of contents. If linking a library
18910 # or program results in "error TOC overflow" add -mminimal-toc to
18911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18914 archive_cmds_CXX=''
18915 hardcode_direct_CXX=yes
18916 hardcode_libdir_separator_CXX=':'
18917 link_all_deplibs_CXX=yes
18919 if test "$GXX" = yes; then
18920 case $host_os in aix4.[012]|aix4.[012].*)
18921 # We only want to do this on AIX 4.2 and lower, the check
18922 # below for broken collect2 doesn't work under 4.3+
18923 collect2name=`${CC} -print-prog-name=collect2`
18924 if test -f "$collect2name" && \
18925 strings "$collect2name" | grep resolve_lib_name >/dev/null
18927 # We have reworked collect2
18928 hardcode_direct_CXX=yes
18930 # We have old collect2
18931 hardcode_direct_CXX=unsupported
18932 # It fails to find uninstalled libraries when the uninstalled
18933 # path is not listed in the libpath. Setting hardcode_minus_L
18934 # to unsupported forces relinking
18935 hardcode_minus_L_CXX=yes
18936 hardcode_libdir_flag_spec_CXX='-L$libdir'
18937 hardcode_libdir_separator_CXX=
18941 shared_flag='-shared'
18942 if test "$aix_use_runtimelinking" = yes; then
18943 shared_flag="$shared_flag "'${wl}-G'
18947 if test "$host_cpu" = ia64; then
18948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18949 # chokes on -Wl,-G. The following line is correct:
18952 if test "$aix_use_runtimelinking" = yes; then
18953 shared_flag='${wl}-G'
18955 shared_flag='${wl}-bM:SRE'
18960 # It seems that -bexpall does not export symbols beginning with
18961 # underscore (_), so it is better to generate a list of symbols to export.
18962 always_export_symbols_CXX=yes
18963 if test "$aix_use_runtimelinking" = yes; then
18964 # Warning - without using the other runtime loading flags (-brtl),
18965 # -berok will link without error, but may produce a broken library.
18966 allow_undefined_flag_CXX='-berok'
18967 # Determine the default libpath from the value encoded in an empty executable.
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19020 # Check for a 64-bit object if we didn't find anything.
19021 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; }
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19030 rm -f core conftest.err conftest.$ac_objext \
19031 conftest$ac_exeext conftest.$ac_ext
19032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19034 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19036 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"
19038 if test "$host_cpu" = ia64; then
19039 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19040 allow_undefined_flag_CXX="-z nodefs"
19041 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"
19043 # Determine the default libpath from the value encoded in an empty executable.
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (ac_try="$ac_link"
19061 case "(($ac_try" in
19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063 *) ac_try_echo=$ac_try;;
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066 (eval "$ac_link") 2>conftest.er1
19068 grep -v '^ *+' conftest.er1 >conftest.err
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19074 { (case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_try") 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; } &&
19083 { ac_try='test -s conftest$ac_exeext'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19096 # Check for a 64-bit object if we didn't find anything.
19097 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; }
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19106 rm -f core conftest.err conftest.$ac_objext \
19107 conftest$ac_exeext conftest.$ac_ext
19108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19111 # Warning - without using the other run time loading flags,
19112 # -berok will link without error, but may produce a broken library.
19113 no_undefined_flag_CXX=' ${wl}-bernotok'
19114 allow_undefined_flag_CXX=' ${wl}-berok'
19115 # Exported symbols can be pulled into shared objects from archives
19116 whole_archive_flag_spec_CXX='$convenience'
19117 archive_cmds_need_lc_CXX=yes
19118 # This is similar to how AIX traditionally builds its shared libraries.
19119 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'
19125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19126 allow_undefined_flag_CXX=unsupported
19127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19128 # support --undefined. This deserves some investigation. FIXME
19129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19136 case $cc_basename in
19138 # FIXME: insert proper C++ library support
19144 cygwin* | mingw* | pw32*)
19145 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19146 # as there is no search path for DLLs.
19147 hardcode_libdir_flag_spec_CXX='-L$libdir'
19148 allow_undefined_flag_CXX=unsupported
19149 always_export_symbols_CXX=no
19150 enable_shared_with_static_runtimes_CXX=yes
19152 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19153 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'
19154 # If the export-symbols file already is a .def file (1st line
19155 # is EXPORTS), use it as is; otherwise, prepend...
19156 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19157 cp $export_symbols $output_objdir/$soname.def;
19159 echo EXPORTS > $output_objdir/$soname.def;
19160 cat $export_symbols >> $output_objdir/$soname.def;
19162 $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'
19167 darwin* | rhapsody*)
19169 rhapsody* | darwin1.[012])
19170 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19173 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19174 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19176 case ${MACOSX_DEPLOYMENT_TARGET} in
19178 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19181 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19187 archive_cmds_need_lc_CXX=no
19188 hardcode_direct_CXX=no
19189 hardcode_automatic_CXX=yes
19190 hardcode_shlibpath_var_CXX=unsupported
19191 whole_archive_flag_spec_CXX=''
19192 link_all_deplibs_CXX=yes
19194 if test "$GXX" = yes ; then
19195 lt_int_apple_cc_single_mod=no
19196 output_verbose_link_cmd='echo'
19197 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19198 lt_int_apple_cc_single_mod=yes
19200 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19201 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19203 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'
19205 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19207 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19208 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}'
19210 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}'
19212 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}'
19214 case $cc_basename in
19216 output_verbose_link_cmd='echo'
19217 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'
19218 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19220 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}'
19221 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}'
19231 case $cc_basename in
19233 # FIXME: insert proper C++ library support
19237 # Green Hills C++ Compiler
19238 # FIXME: insert proper C++ library support
19242 # FIXME: insert proper C++ library support
19248 # C++ shared libraries reported to be fairly broken before switch to ELF
19252 archive_cmds_need_lc_CXX=no
19254 freebsd* | kfreebsd*-gnu | dragonfly*)
19255 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19262 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19263 hardcode_libdir_separator_CXX=:
19264 export_dynamic_flag_spec_CXX='${wl}-E'
19265 hardcode_direct_CXX=yes
19266 hardcode_minus_L_CXX=yes # Not in the search PATH,
19267 # but as the default
19268 # location of the library.
19270 case $cc_basename in
19272 # FIXME: insert proper C++ library support
19276 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'
19277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19281 # There doesn't appear to be a way to prevent this compiler from
19282 # explicitly linking system object files so we need to strip them
19283 # from the output so that they don't get included in the library
19285 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'
19288 if test "$GXX" = yes; then
19289 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'
19291 # FIXME: insert proper C++ library support
19298 if test $with_gnu_ld = no; then
19299 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19300 hardcode_libdir_separator_CXX=:
19304 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19307 export_dynamic_flag_spec_CXX='${wl}-E'
19313 hardcode_direct_CXX=no
19314 hardcode_shlibpath_var_CXX=no
19317 hardcode_direct_CXX=yes
19318 hardcode_minus_L_CXX=yes # Not in the search PATH,
19319 # but as the default
19320 # location of the library.
19324 case $cc_basename in
19326 # FIXME: insert proper C++ library support
19332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19335 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19338 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19341 # Commands to make compiler produce verbose output that lists
19342 # what "hidden" libraries, object files and flags are used when
19343 # linking a shared library.
19345 # There doesn't appear to be a way to prevent this compiler from
19346 # explicitly linking system object files so we need to strip them
19347 # from the output so that they don't get included in the library
19349 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'
19352 if test "$GXX" = yes; then
19353 if test $with_gnu_ld = no; then
19356 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19359 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19362 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'
19367 # FIXME: insert proper C++ library support
19374 hardcode_direct_CXX=no
19375 hardcode_shlibpath_var_CXX=no
19376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19377 export_dynamic_flag_spec_CXX='${wl}-E'
19378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19379 # Instead, shared libraries are loaded at an image base (0x10000000 by
19380 # default) and relocated if they conflict, which is a slow very memory
19381 # consuming and fragmenting process. To avoid this, we pick a random,
19382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19384 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'
19385 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'
19388 case $cc_basename in
19391 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'
19393 # Archives containing C++ object files must be created using
19394 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19395 # necessary to make sure instantiated templates are included
19397 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19400 if test "$GXX" = yes; then
19401 if test "$with_gnu_ld" = no; then
19402 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'
19404 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'
19407 link_all_deplibs_CXX=yes
19410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19411 hardcode_libdir_separator_CXX=:
19414 case $cc_basename in
19416 # Kuck and Associates, Inc. (KAI) C++ Compiler
19418 # KCC will only create a shared library if the output file
19419 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19420 # to its proper name (with version) after linking.
19421 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'
19422 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'
19423 # Commands to make compiler produce verbose output that lists
19424 # what "hidden" libraries, object files and flags are used when
19425 # linking a shared library.
19427 # There doesn't appear to be a way to prevent this compiler from
19428 # explicitly linking system object files so we need to strip them
19429 # from the output so that they don't get included in the library
19431 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'
19433 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19436 # Archives containing C++ object files must be created using
19437 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19438 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19443 # version 8.0 and above of icpc choke on multiply defined symbols
19444 # if we add $predep_objects and $postdep_objects, however 7.1 and
19445 # earlier do not add the objects themselves.
19446 case `$CC -V 2>&1` in
19448 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 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'
19451 *) # Version 8.0 or newer
19454 ia64*) tmp_idyn=' -i_dynamic';;
19456 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19457 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'
19460 archive_cmds_need_lc_CXX=no
19461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19463 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19466 # Portland Group C++ compiler
19467 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19468 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'
19470 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19472 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'
19476 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19477 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'
19479 runpath_var=LD_RUN_PATH
19480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19481 hardcode_libdir_separator_CXX=:
19483 # Commands to make compiler produce verbose output that lists
19484 # what "hidden" libraries, object files and flags are used when
19485 # linking a shared library.
19487 # There doesn't appear to be a way to prevent this compiler from
19488 # explicitly linking system object files so we need to strip them
19489 # from the output so that they don't get included in the library
19491 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'
19496 # FIXME: insert proper C++ library support
19500 # FIXME: insert proper C++ library support
19504 case $cc_basename in
19506 # FIXME: insert proper C++ library support
19510 # FIXME: insert proper C++ library support
19516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19517 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19519 hardcode_libdir_flag_spec_CXX='-R$libdir'
19520 hardcode_direct_CXX=yes
19521 hardcode_shlibpath_var_CXX=no
19523 # Workaround some broken pre-1.5 toolchains
19524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19527 # C++ shared libraries are fairly broken
19531 hardcode_direct_CXX=yes
19532 hardcode_shlibpath_var_CXX=no
19533 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19536 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19537 export_dynamic_flag_spec_CXX='${wl}-E'
19538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19540 output_verbose_link_cmd='echo'
19543 case $cc_basename in
19545 # Kuck and Associates, Inc. (KAI) C++ Compiler
19547 # KCC will only create a shared library if the output file
19548 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19549 # to its proper name (with version) after linking.
19550 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'
19552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19553 hardcode_libdir_separator_CXX=:
19555 # Archives containing C++ object files must be created using
19556 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19557 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19561 # Rational C++ 2.4.1
19562 # FIXME: insert proper C++ library support
19566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19567 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'
19569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19570 hardcode_libdir_separator_CXX=:
19572 # Commands to make compiler produce verbose output that lists
19573 # what "hidden" libraries, object files and flags are used when
19574 # linking a shared library.
19576 # There doesn't appear to be a way to prevent this compiler from
19577 # explicitly linking system object files so we need to strip them
19578 # from the output so that they don't get included in the library
19580 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'
19583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19585 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'
19587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19588 hardcode_libdir_separator_CXX=:
19590 # Commands to make compiler produce verbose output that lists
19591 # what "hidden" libraries, object files and flags are used when
19592 # linking a shared library.
19593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19596 # FIXME: insert proper C++ library support
19603 case $cc_basename in
19605 # Kuck and Associates, Inc. (KAI) C++ Compiler
19607 # KCC will only create a shared library if the output file
19608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19609 # to its proper name (with version) after linking.
19610 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'
19612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19613 hardcode_libdir_separator_CXX=:
19615 # Archives containing C++ object files must be created using
19616 # the KAI C++ compiler.
19617 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19620 # Rational C++ 2.4.1
19621 # FIXME: insert proper C++ library support
19625 allow_undefined_flag_CXX=' -expect_unresolved \*'
19626 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'
19627 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19628 echo "-hidden">> $lib.exp~
19629 $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~
19632 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19633 hardcode_libdir_separator_CXX=:
19635 # Commands to make compiler produce verbose output that lists
19636 # what "hidden" libraries, object files and flags are used when
19637 # linking a shared library.
19639 # There doesn't appear to be a way to prevent this compiler from
19640 # explicitly linking system object files so we need to strip them
19641 # from the output so that they don't get included in the library
19643 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'
19646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19647 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19648 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'
19650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_CXX=:
19653 # Commands to make compiler produce verbose output that lists
19654 # what "hidden" libraries, object files and flags are used when
19655 # linking a shared library.
19656 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19659 # FIXME: insert proper C++ library support
19666 # FIXME: insert proper C++ library support
19670 case $cc_basename in
19673 # FIXME: insert proper C++ library support
19678 # FIXME: insert proper C++ library support
19682 # FIXME: insert proper C++ library support
19688 case $cc_basename in
19690 # Sun C++ 4.2, 5.x and Centerline C++
19691 archive_cmds_need_lc_CXX=yes
19692 no_undefined_flag_CXX=' -zdefs'
19693 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19694 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19695 $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'
19697 hardcode_libdir_flag_spec_CXX='-R$libdir'
19698 hardcode_shlibpath_var_CXX=no
19700 solaris2.[0-5] | solaris2.[0-5].*) ;;
19702 # The C++ compiler is used as linker so we must use $wl
19703 # flag to pass the commands to the underlying system
19704 # linker. We must also pass each convience library through
19705 # to the system linker between allextract/defaultextract.
19706 # The C++ compiler will combine linker options so we
19707 # cannot just pass the convience library names through
19709 # Supported since Solaris 2.6 (maybe 2.5.1?)
19710 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'
19713 link_all_deplibs_CXX=yes
19715 output_verbose_link_cmd='echo'
19717 # Archives containing C++ object files must be created using
19718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19719 # necessary to make sure instantiated templates are included
19721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19724 # Green Hills C++ Compiler
19725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19727 # The C++ compiler must be used to create the archive.
19728 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19731 # GNU C++ compiler with Solaris linker
19732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19733 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19734 if $CC --version | grep -v '^2\.7' > /dev/null; then
19735 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19736 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19737 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19739 # Commands to make compiler produce verbose output that lists
19740 # what "hidden" libraries, object files and flags are used when
19741 # linking a shared library.
19742 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19744 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19746 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19747 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19748 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19750 # Commands to make compiler produce verbose output that lists
19751 # what "hidden" libraries, object files and flags are used when
19752 # linking a shared library.
19753 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19756 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19762 no_undefined_flag_CXX='${wl}-z,text'
19763 archive_cmds_need_lc_CXX=no
19764 hardcode_shlibpath_var_CXX=no
19765 runpath_var='LD_RUN_PATH'
19767 case $cc_basename in
19769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19778 sysv5* | sco3.2v5* | sco5v6*)
19779 # Note: We can NOT use -z defs as we might desire, because we do not
19780 # link with -lc, and that would cause any symbols used from libc to
19781 # always be unresolved, which means just about no library would
19782 # ever link correctly. If we're not using GNU ld we use -z text
19783 # though, which does catch some bad symbols but isn't as heavy-handed
19785 # For security reasons, it is highly recommended that you always
19786 # use absolute paths for naming shared libraries, and exclude the
19787 # DT_RUNPATH tag from executables and libraries. But doing so
19788 # requires that you compile everything twice, which is a pain.
19789 # So that behaviour is only enabled if SCOABSPATH is set to a
19790 # non-empty value in the environment. Most likely only useful for
19791 # creating official distributions of packages.
19792 # This is a hack until libtool officially supports absolute path
19793 # names for shared libraries.
19794 no_undefined_flag_CXX='${wl}-z,text'
19795 allow_undefined_flag_CXX='${wl}-z,nodefs'
19796 archive_cmds_need_lc_CXX=no
19797 hardcode_shlibpath_var_CXX=no
19798 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19799 hardcode_libdir_separator_CXX=':'
19800 link_all_deplibs_CXX=yes
19801 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19802 runpath_var='LD_RUN_PATH'
19804 case $cc_basename in
19806 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19810 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19811 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816 case $cc_basename in
19818 # NonStop-UX NCC 3.20
19819 # FIXME: insert proper C++ library support
19823 # FIXME: insert proper C++ library support
19829 # FIXME: insert proper C++ library support
19833 # FIXME: insert proper C++ library support
19837 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19838 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19839 test "$ld_shlibs_CXX" = no && can_build_shared=no
19845 cat > conftest.$ac_ext <<EOF
19849 Foo (void) { a = 0; }
19855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19856 (eval $ac_compile) 2>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; then
19860 # Parse the compiler output and extract the necessary
19861 # objects, libraries and library flags.
19863 # Sentinel used to keep track of whether or not we are before
19864 # the conftest object file.
19865 pre_test_object_deps_done=no
19867 # The `*' in the case matches for architectures that use `case' in
19868 # $output_verbose_cmd can trigger glob expansion during the loop
19869 # eval without this substitution.
19870 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19872 for p in `eval $output_verbose_link_cmd`; do
19876 # Some compilers place space between "-{L,R}" and the path.
19877 # Remove the space.
19878 if test $p = "-L" \
19879 || test $p = "-R"; then
19886 if test "$pre_test_object_deps_done" = no; then
19889 # Internal compiler library paths should come after those
19890 # provided the user. The postdeps already come after the
19891 # user supplied libs so there is no need to process them.
19892 if test -z "$compiler_lib_search_path_CXX"; then
19893 compiler_lib_search_path_CXX="${prev}${p}"
19895 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19898 # The "-l" case would never come before the object being
19899 # linked, so don't bother handling this case.
19902 if test -z "$postdeps_CXX"; then
19903 postdeps_CXX="${prev}${p}"
19905 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19911 # This assumes that the test object file only shows up
19912 # once in the compiler output.
19913 if test "$p" = "conftest.$objext"; then
19914 pre_test_object_deps_done=yes
19918 if test "$pre_test_object_deps_done" = no; then
19919 if test -z "$predep_objects_CXX"; then
19920 predep_objects_CXX="$p"
19922 predep_objects_CXX="$predep_objects_CXX $p"
19925 if test -z "$postdep_objects_CXX"; then
19926 postdep_objects_CXX="$p"
19928 postdep_objects_CXX="$postdep_objects_CXX $p"
19933 *) ;; # Ignore the rest.
19941 echo "libtool.m4: error: problem compiling CXX test program"
19944 $rm -f confest.$objext
19946 # PORTME: override above test on systems where it is broken
19949 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19950 # hack all around it, let's just trust "g++" to DTRT.
19951 predep_objects_CXX=
19952 postdep_objects_CXX=
19957 case $cc_basename in
19959 # Adding this requires a known-good setup of shared libraries for
19960 # Sun compiler versions before 5.6, else PIC objects from an old
19961 # archive will be linked into the output, leading to subtle bugs.
19962 postdeps_CXX='-lCstd -lCrun'
19969 case " $postdeps_CXX " in
19970 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19973 lt_prog_compiler_wl_CXX=
19974 lt_prog_compiler_pic_CXX=
19975 lt_prog_compiler_static_CXX=
19977 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19978 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19980 # C++ specific cases for pic, static, wl, etc.
19981 if test "$GXX" = yes; then
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_static_CXX='-static'
19987 # All AIX code is PIC.
19988 if test "$host_cpu" = ia64; then
19989 # AIX 5 now supports IA64 processor
19990 lt_prog_compiler_static_CXX='-Bstatic'
19994 # FIXME: we need at least 68020 code to build shared libraries, but
19995 # adding the `-m68020' flag to GCC prevents building anything better,
19997 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19999 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20000 # PIC is the default for these OSes.
20002 mingw* | os2* | pw32*)
20003 # This hack is so that the source file can tell whether it is being
20004 # built for inclusion in a dll (and should export symbols for example).
20005 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20007 darwin* | rhapsody*)
20008 # PIC is the default on this platform
20009 # Common symbols not allowed in MH_DYLIB files
20010 lt_prog_compiler_pic_CXX='-fno-common'
20013 # DJGPP does not support shared libraries at all
20014 lt_prog_compiler_pic_CXX=
20017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20018 # Instead, we relocate shared libraries at runtime.
20021 if test -d /usr/nec; then
20022 lt_prog_compiler_pic_CXX=-Kconform_pic
20026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20027 # not for PA HP-UX.
20032 lt_prog_compiler_pic_CXX='-fPIC'
20037 lt_prog_compiler_pic_CXX='-fPIC'
20043 # All AIX code is PIC.
20044 if test "$host_cpu" = ia64; then
20045 # AIX 5 now supports IA64 processor
20046 lt_prog_compiler_static_CXX='-Bstatic'
20048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20052 case $cc_basename in
20054 # Green Hills C++ Compiler
20055 # _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"
20060 # PIC is the default on this platform
20061 # Common symbols not allowed in MH_DYLIB files
20062 case $cc_basename in
20064 lt_prog_compiler_pic_CXX='-qnocommon'
20065 lt_prog_compiler_wl_CXX='-Wl,'
20070 case $cc_basename in
20072 lt_prog_compiler_pic_CXX='-KPIC'
20075 # Green Hills C++ Compiler
20076 lt_prog_compiler_pic_CXX='-pic'
20082 freebsd* | kfreebsd*-gnu | dragonfly*)
20083 # FreeBSD uses GNU C++
20085 hpux9* | hpux10* | hpux11*)
20086 case $cc_basename in
20088 lt_prog_compiler_wl_CXX='-Wl,'
20089 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20090 if test "$host_cpu" != ia64; then
20091 lt_prog_compiler_pic_CXX='+Z'
20095 lt_prog_compiler_wl_CXX='-Wl,'
20096 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20102 lt_prog_compiler_pic_CXX='+Z'
20111 # This is c89, which is MS Visual C++ (no shared libs)
20112 # Anyone wants to do a port?
20114 irix5* | irix6* | nonstopux*)
20115 case $cc_basename in
20117 lt_prog_compiler_wl_CXX='-Wl,'
20118 lt_prog_compiler_static_CXX='-non_shared'
20119 # CC pic flag -KPIC is the default.
20126 case $cc_basename in
20129 lt_prog_compiler_wl_CXX='--backend -Wl,'
20130 lt_prog_compiler_pic_CXX='-fPIC'
20134 lt_prog_compiler_wl_CXX='-Wl,'
20135 lt_prog_compiler_pic_CXX='-KPIC'
20136 lt_prog_compiler_static_CXX='-static'
20139 # Portland Group C++ compiler.
20140 lt_prog_compiler_wl_CXX='-Wl,'
20141 lt_prog_compiler_pic_CXX='-fpic'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20146 # Make sure the PIC flag is empty. It appears that all Alpha
20147 # Linux and Compaq Tru64 Unix objects are PIC.
20148 lt_prog_compiler_pic_CXX=
20149 lt_prog_compiler_static_CXX='-non_shared'
20160 case $cc_basename in
20162 lt_prog_compiler_pic_CXX='-W c,exportall'
20170 osf3* | osf4* | osf5*)
20171 case $cc_basename in
20173 lt_prog_compiler_wl_CXX='--backend -Wl,'
20176 # Rational C++ 2.4.1
20177 lt_prog_compiler_pic_CXX='-pic'
20180 # Digital/Compaq C++
20181 lt_prog_compiler_wl_CXX='-Wl,'
20182 # Make sure the PIC flag is empty. It appears that all Alpha
20183 # Linux and Compaq Tru64 Unix objects are PIC.
20184 lt_prog_compiler_pic_CXX=
20185 lt_prog_compiler_static_CXX='-non_shared'
20194 case $cc_basename in
20196 # Sun C++ 4.2, 5.x and Centerline C++
20197 lt_prog_compiler_pic_CXX='-KPIC'
20198 lt_prog_compiler_static_CXX='-Bstatic'
20199 lt_prog_compiler_wl_CXX='-Qoption ld '
20202 # Green Hills C++ Compiler
20203 lt_prog_compiler_pic_CXX='-PIC'
20210 case $cc_basename in
20213 lt_prog_compiler_pic_CXX='-pic'
20214 lt_prog_compiler_static_CXX='-Bstatic'
20218 lt_prog_compiler_pic_CXX='-pic'
20225 case $cc_basename in
20227 # NonStop-UX NCC 3.20
20228 lt_prog_compiler_pic_CXX='-KPIC'
20234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20235 case $cc_basename in
20237 lt_prog_compiler_wl_CXX='-Wl,'
20238 lt_prog_compiler_pic_CXX='-KPIC'
20239 lt_prog_compiler_static_CXX='-Bstatic'
20246 lt_prog_compiler_can_build_shared_CXX=no
20251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20252 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20255 # Check to make sure the PIC flag actually works.
20257 if test -n "$lt_prog_compiler_pic_CXX"; then
20259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20261 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 lt_prog_compiler_pic_works_CXX=no
20265 ac_outfile=conftest.$ac_objext
20266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20267 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20268 # Insert the option either (1) after the last *FLAGS variable, or
20269 # (2) before a word containing "conftest.", or (3) at the end.
20270 # Note that $ac_compile itself does not contain backslashes and begins
20271 # with a dollar sign (not a hyphen), so the echo should work correctly.
20272 # The option is referenced via a variable to avoid confusing sed.
20273 lt_compile=`echo "$ac_compile" | $SED \
20274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20276 -e 's:$: $lt_compiler_flag:'`
20277 (eval echo "\"\$as_me:20277: $lt_compile\"" >&5)
20278 (eval "$lt_compile" 2>conftest.err)
20280 cat conftest.err >&5
20281 echo "$as_me:20281: \$? = $ac_status" >&5
20282 if (exit $ac_status) && test -s "$ac_outfile"; then
20283 # The compiler can only warn and ignore the option if not recognized
20284 # So say no if there are warnings other than the usual output.
20285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20288 lt_prog_compiler_pic_works_CXX=yes
20294 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20295 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20297 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20298 case $lt_prog_compiler_pic_CXX in
20300 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20303 lt_prog_compiler_pic_CXX=
20304 lt_prog_compiler_can_build_shared_CXX=no
20309 # For platforms which do not support PIC, -DPIC is meaningless:
20311 lt_prog_compiler_pic_CXX=
20314 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20319 # Check to make sure the static flag actually works.
20321 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20322 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20323 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20324 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 lt_prog_compiler_static_works_CXX=no
20328 save_LDFLAGS="$LDFLAGS"
20329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20330 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20332 # The linker can only warn and ignore the option if not recognized
20333 # So say no if there are warnings
20334 if test -s conftest.err; then
20335 # Append any errors to the config.log.
20336 cat conftest.err 1>&5
20337 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20339 if diff conftest.exp conftest.er2 >/dev/null; then
20340 lt_prog_compiler_static_works_CXX=yes
20343 lt_prog_compiler_static_works_CXX=yes
20347 LDFLAGS="$save_LDFLAGS"
20350 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20351 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20353 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20356 lt_prog_compiler_static_CXX=
20360 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20361 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20362 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 lt_cv_prog_compiler_c_o_CXX=no
20366 $rm -r conftest 2>/dev/null
20370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20372 lt_compiler_flag="-o out/conftest2.$ac_objext"
20373 # Insert the option either (1) after the last *FLAGS variable, or
20374 # (2) before a word containing "conftest.", or (3) at the end.
20375 # Note that $ac_compile itself does not contain backslashes and begins
20376 # with a dollar sign (not a hyphen), so the echo should work correctly.
20377 lt_compile=`echo "$ac_compile" | $SED \
20378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20380 -e 's:$: $lt_compiler_flag:'`
20381 (eval echo "\"\$as_me:20381: $lt_compile\"" >&5)
20382 (eval "$lt_compile" 2>out/conftest.err)
20384 cat out/conftest.err >&5
20385 echo "$as_me:20385: \$? = $ac_status" >&5
20386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20388 # The compiler can only warn and ignore the option if not recognized
20389 # So say no if there are warnings
20390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20393 lt_cv_prog_compiler_c_o_CXX=yes
20398 # SGI C++ compiler will create directory out/ii_files/ for
20399 # template instantiation
20400 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20401 $rm out/* && rmdir out
20407 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20408 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20411 hard_links="nottested"
20412 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20413 # do not overwrite the value of need_locks provided by the user
20414 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20415 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20420 ln conftest.a conftest.b 2>&5 || hard_links=no
20421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20422 { echo "$as_me:$LINENO: result: $hard_links" >&5
20423 echo "${ECHO_T}$hard_links" >&6; }
20424 if test "$hard_links" = no; then
20425 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20426 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20439 # If we're using GNU nm, then we don't want the "-C" option.
20440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20442 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'
20444 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'
20448 export_symbols_cmds_CXX="$ltdll_cmds"
20451 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'
20454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20458 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20459 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20460 test "$ld_shlibs_CXX" = no && can_build_shared=no
20463 # Do we need to explicitly link libc?
20465 case "x$archive_cmds_need_lc_CXX" in
20467 # Assume -lc should be added
20468 archive_cmds_need_lc_CXX=yes
20470 if test "$enable_shared" = yes && test "$GCC" = yes; then
20471 case $archive_cmds_CXX in
20473 # FIXME: we may have to deal with multi-command sequences.
20476 # Test whether the compiler implicitly links with -lc since on some
20477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20478 # to ld, don't add -lc before -lgcc.
20479 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20480 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485 (eval $ac_compile) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } 2>conftest.err; then
20491 libobjs=conftest.$ac_objext
20493 wl=$lt_prog_compiler_wl_CXX
20494 pic_flag=$lt_prog_compiler_pic_CXX
20500 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20501 allow_undefined_flag_CXX=
20502 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20503 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }
20508 archive_cmds_need_lc_CXX=no
20510 archive_cmds_need_lc_CXX=yes
20512 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20514 cat conftest.err 1>&5
20517 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20518 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20525 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20527 library_names_spec=
20528 libname_spec='lib$name'
20532 postuninstall_cmds=
20536 shlibpath_overrides_runpath=unknown
20538 dynamic_linker="$host_os ld.so"
20539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20540 if test "$GCC" = yes; then
20541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20543 # if the path contains ";" then we assume it to be the separator
20544 # otherwise default to the standard path separator (i.e. ":") - it is
20545 # assumed that no part of a normal pathname contains ";" but that should
20546 # okay in the real world where ";" in dirpaths is itself problematic.
20547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20554 need_lib_prefix=unknown
20555 hardcode_into_libs=no
20557 # when you set need_version to no, make sure it does not cause -set_version
20558 # flags to be left without arguments
20559 need_version=unknown
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20565 shlibpath_var=LIBPATH
20567 # AIX 3 has no versioning support, so we append a major version to the name.
20568 soname_spec='${libname}${release}${shared_ext}$major'
20575 hardcode_into_libs=yes
20576 if test "$host_cpu" = ia64; then
20577 # AIX 5 supports IA64
20578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20579 shlibpath_var=LD_LIBRARY_PATH
20581 # With GCC up to 2.95.x, collect2 would create an import file
20582 # for dependence libraries. The import file would start with
20583 # the line `#! .'. This would cause the generated library to
20584 # depend on `.', always an invalid library. This was fixed in
20585 # development snapshots of GCC prior to 3.0.
20587 aix4 | aix4.[01] | aix4.[01].*)
20588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20593 can_build_shared=no
20597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20598 # soname into executable. Probably we can add versioning support to
20599 # collect2, so additional links can be useful in future.
20600 if test "$aix_use_runtimelinking" = yes; then
20601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20602 # instead of lib<name>.a to let people know that these are not
20603 # typical AIX shared libraries.
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 # We preserve .a as extension for shared libraries through AIX4.2
20607 # and later when we are not doing run time linking.
20608 library_names_spec='${libname}${release}.a $libname.a'
20609 soname_spec='${libname}${release}${shared_ext}$major'
20611 shlibpath_var=LIBPATH
20616 library_names_spec='$libname.ixlibrary $libname.a'
20617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20618 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'
20622 library_names_spec='${libname}${shared_ext}'
20623 dynamic_linker="$host_os ld.so"
20624 shlibpath_var=LIBRARY_PATH
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20633 shlibpath_var=LD_LIBRARY_PATH
20634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20636 # the default ld.so.conf also contains /usr/contrib/lib and
20637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20638 # libtool to hard-code these into programs
20641 cygwin* | mingw* | pw32*)
20642 version_type=windows
20647 case $GCC,$host_os in
20648 yes,cygwin* | yes,mingw* | yes,pw32*)
20649 library_names_spec='$libname.dll.a'
20650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20651 postinstall_cmds='base_file=`basename \${file}`~
20652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20653 dldir=$destdir/`dirname \$dlpath`~
20654 test -d \$dldir || mkdir -p \$dldir~
20655 $install_prog $dir/$dlname \$dldir/$dlname~
20656 chmod a+x \$dldir/$dlname'
20657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20658 dlpath=$dir/\$dldll~
20660 shlibpath_overrides_runpath=yes
20664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20666 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20669 # MinGW DLLs use traditional 'lib' prefix
20670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20673 # It is most probably a Windows format PATH printed by
20674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20675 # path with ; separators, and with drive letters. We can handle the
20676 # drive letters (cygwin fileutils understands them), so leave them,
20677 # especially as we might pass files found there to a mingw objdump,
20678 # which wouldn't understand a cygwinified path. Ahh.
20679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20685 # pw32 DLLs use 'pw' prefix rather than 'lib'
20686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20695 dynamic_linker='Win32 ld.exe'
20696 # FIXME: first we should search . and the directory the executable is in
20700 darwin* | rhapsody*)
20701 dynamic_linker="$host_os dyld"
20702 version_type=darwin
20705 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20706 soname_spec='${libname}${release}${major}$shared_ext'
20707 shlibpath_overrides_runpath=yes
20708 shlibpath_var=DYLD_LIBRARY_PATH
20709 shrext_cmds='.dylib'
20710 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20711 if test "$GCC" = yes; then
20712 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"`
20714 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20724 soname_spec='${libname}${release}${shared_ext}$major'
20725 shlibpath_var=LD_LIBRARY_PATH
20736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737 soname_spec='${libname}${release}${shared_ext}$major'
20738 shlibpath_var=LD_LIBRARY_PATH
20739 shlibpath_overrides_runpath=no
20740 hardcode_into_libs=yes
20741 dynamic_linker='GNU ld.so'
20744 freebsd* | dragonfly*)
20745 # DragonFly does not have aout. When/if they implement a new
20746 # versioning mechanism, adjust this.
20747 if test -x /usr/bin/objformat; then
20748 objformat=`/usr/bin/objformat`
20751 freebsd[123]*) objformat=aout ;;
20752 *) objformat=elf ;;
20755 version_type=freebsd-$objformat
20756 case $version_type in
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20767 shlibpath_var=LD_LIBRARY_PATH
20770 shlibpath_overrides_runpath=yes
20772 freebsd3.[01]* | freebsdelf3.[01]*)
20773 shlibpath_overrides_runpath=yes
20774 hardcode_into_libs=yes
20776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20778 shlibpath_overrides_runpath=no
20779 hardcode_into_libs=yes
20781 freebsd*) # from 4.6 on
20782 shlibpath_overrides_runpath=yes
20783 hardcode_into_libs=yes
20792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20793 soname_spec='${libname}${release}${shared_ext}$major'
20794 shlibpath_var=LD_LIBRARY_PATH
20795 hardcode_into_libs=yes
20798 hpux9* | hpux10* | hpux11*)
20799 # Give a soname corresponding to the major version so that dld.sl refuses to
20800 # link against other versions.
20807 hardcode_into_libs=yes
20808 dynamic_linker="$host_os dld.so"
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec='${libname}${release}${shared_ext}$major'
20813 if test "X$HPUX_IA64_MODE" = X32; then
20814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20822 hardcode_into_libs=yes
20823 dynamic_linker="$host_os dld.sl"
20824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20827 soname_spec='${libname}${release}${shared_ext}$major'
20828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20833 dynamic_linker="$host_os dld.sl"
20834 shlibpath_var=SHLIB_PATH
20835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20841 postinstall_cmds='chmod 555 $lib'
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20850 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20851 shlibpath_var=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath=no
20853 hardcode_into_libs=yes
20856 irix5* | irix6* | nonstopux*)
20858 nonstopux*) version_type=nonstopux ;;
20860 if test "$lt_cv_prog_gnu_ld" = yes; then
20868 soname_spec='${libname}${release}${shared_ext}$major'
20869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20871 irix5* | nonstopux*)
20872 libsuff= shlibsuff=
20875 case $LD in # libtool.m4 will add one of these switches to LD
20876 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20877 libsuff= shlibsuff= libmagic=32-bit;;
20878 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20879 libsuff=32 shlibsuff=N32 libmagic=N32;;
20880 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20881 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20882 *) libsuff= shlibsuff= libmagic=never-match;;
20886 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20887 shlibpath_overrides_runpath=no
20888 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20889 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20890 hardcode_into_libs=yes
20893 # No shared lib support for Linux oldld, aout, or coff.
20894 linux*oldld* | linux*aout* | linux*coff*)
20898 # This must be Linux ELF.
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904 soname_spec='${libname}${release}${shared_ext}$major'
20905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath=no
20908 # This implies no fast_install, which is unacceptable.
20909 # Some rework will be needed to allow for fast_install
20910 # before this can be enabled.
20911 hardcode_into_libs=yes
20913 # Append ld.so.conf contents to the search path
20914 if test -f /etc/ld.so.conf; then
20915 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' ' '`
20916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20919 # We used to test for /lib/ld.so.1 and disable shared libraries on
20920 # powerpc, because MkLinux only supported shared libraries with the
20921 # GNU dynamic linker. Since this was broken with cross compilers,
20922 # most powerpc-linux boxes support dynamic linking these days and
20923 # people can always --disable-shared, the test was removed, and we
20924 # assume the GNU/Linux dynamic linker is in use.
20925 dynamic_linker='GNU/Linux ld.so'
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 shlibpath_var=LD_LIBRARY_PATH
20935 shlibpath_overrides_runpath=no
20936 hardcode_into_libs=yes
20937 dynamic_linker='GNU ld.so'
20944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20947 dynamic_linker='NetBSD (a.out) ld.so'
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20950 soname_spec='${libname}${release}${shared_ext}$major'
20951 dynamic_linker='NetBSD ld.elf_so'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=yes
20955 hardcode_into_libs=yes
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 shlibpath_var=LD_LIBRARY_PATH
20962 shlibpath_overrides_runpath=yes
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20970 soname_spec='${libname}${release}${shared_ext}$major'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=yes
20977 sys_lib_dlsearch_path_spec="/usr/lib"
20979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20982 *) need_version=no ;;
20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20986 shlibpath_var=LD_LIBRARY_PATH
20987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20989 openbsd2.[89] | openbsd2.[89].*)
20990 shlibpath_overrides_runpath=no
20993 shlibpath_overrides_runpath=yes
20997 shlibpath_overrides_runpath=yes
21002 libname_spec='$name'
21005 library_names_spec='$libname${shared_ext} $libname.a'
21006 dynamic_linker='OS/2 ld.exe'
21007 shlibpath_var=LIBPATH
21010 osf3* | osf4* | osf5*)
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 shlibpath_var=LD_LIBRARY_PATH
21028 shlibpath_overrides_runpath=yes
21029 hardcode_into_libs=yes
21030 # ldd complains unless libraries are executable
21031 postinstall_cmds='chmod +x $lib'
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 shlibpath_overrides_runpath=yes
21040 if test "$with_gnu_ld" = yes; then
21048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21049 soname_spec='${libname}${release}${shared_ext}$major'
21050 shlibpath_var=LD_LIBRARY_PATH
21051 case $host_vendor in
21053 shlibpath_overrides_runpath=no
21055 export_dynamic_flag_spec='${wl}-Blargedynsym'
21056 runpath_var=LD_RUN_PATH
21064 shlibpath_overrides_runpath=no
21065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21071 if test -d /usr/nec ;then
21073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21074 soname_spec='$libname${shared_ext}.$major'
21075 shlibpath_var=LD_LIBRARY_PATH
21079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21080 version_type=freebsd-elf
21083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21084 soname_spec='${libname}${release}${shared_ext}$major'
21085 shlibpath_var=LD_LIBRARY_PATH
21086 hardcode_into_libs=yes
21087 if test "$with_gnu_ld" = yes; then
21088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21089 shlibpath_overrides_runpath=no
21091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21092 shlibpath_overrides_runpath=yes
21095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21099 sys_lib_dlsearch_path_spec='/usr/lib'
21104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21105 soname_spec='${libname}${release}${shared_ext}$major'
21106 shlibpath_var=LD_LIBRARY_PATH
21113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21114 echo "${ECHO_T}$dynamic_linker" >&6; }
21115 test "$dynamic_linker" = no && can_build_shared=no
21117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21118 if test "$GCC" = yes; then
21119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21122 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21123 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21124 hardcode_action_CXX=
21125 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21126 test -n "$runpath_var_CXX" || \
21127 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21129 # We can hardcode non-existant directories.
21130 if test "$hardcode_direct_CXX" != no &&
21131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21132 # have to relink, otherwise we might link with an installed library
21133 # when we should be linking with a yet-to-be-installed one
21134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21135 test "$hardcode_minus_L_CXX" != no; then
21136 # Linking always hardcodes the temporary library directory.
21137 hardcode_action_CXX=relink
21139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21140 hardcode_action_CXX=immediate
21143 # We cannot hardcode anything, or else we can only hardcode existing
21145 hardcode_action_CXX=unsupported
21147 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21148 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21150 if test "$hardcode_action_CXX" = relink; then
21151 # Fast installation is not supported
21152 enable_fast_install=no
21153 elif test "$shlibpath_overrides_runpath" = yes ||
21154 test "$enable_shared" = no; then
21155 # Fast installation is not necessary
21156 enable_fast_install=needless
21160 # The else clause should only fire when bootstrapping the
21161 # libtool distribution, otherwise you forgot to ship ltmain.sh
21162 # with your package, and you will get complaints that there are
21163 # no rules to generate ltmain.sh.
21164 if test -f "$ltmain"; then
21165 # See if we are running on zsh, and set the options which allow our commands through
21166 # without removal of \ escapes.
21167 if test -n "${ZSH_VERSION+set}" ; then
21168 setopt NO_GLOB_SUBST
21170 # Now quote all the things that may contain metacharacters while being
21171 # careful not to overquote the AC_SUBSTed values. We take copies of the
21172 # variables and quote the copies for generation of the libtool script.
21173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21177 deplibs_check_method reload_flag reload_cmds need_locks \
21178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21179 lt_cv_sys_global_symbol_to_c_name_address \
21180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21181 old_postinstall_cmds old_postuninstall_cmds \
21185 lt_prog_compiler_wl_CXX \
21186 lt_prog_compiler_pic_CXX \
21187 lt_prog_compiler_static_CXX \
21188 lt_prog_compiler_no_builtin_flag_CXX \
21189 export_dynamic_flag_spec_CXX \
21190 thread_safe_flag_spec_CXX \
21191 whole_archive_flag_spec_CXX \
21192 enable_shared_with_static_runtimes_CXX \
21193 old_archive_cmds_CXX \
21194 old_archive_from_new_cmds_CXX \
21195 predep_objects_CXX \
21196 postdep_objects_CXX \
21199 compiler_lib_search_path_CXX \
21201 archive_expsym_cmds_CXX \
21202 postinstall_cmds_CXX \
21203 postuninstall_cmds_CXX \
21204 old_archive_from_expsyms_cmds_CXX \
21205 allow_undefined_flag_CXX \
21206 no_undefined_flag_CXX \
21207 export_symbols_cmds_CXX \
21208 hardcode_libdir_flag_spec_CXX \
21209 hardcode_libdir_flag_spec_ld_CXX \
21210 hardcode_libdir_separator_CXX \
21211 hardcode_automatic_CXX \
21213 module_expsym_cmds_CXX \
21214 lt_cv_prog_compiler_c_o_CXX \
21215 exclude_expsyms_CXX \
21216 include_expsyms_CXX; do
21219 old_archive_cmds_CXX | \
21220 old_archive_from_new_cmds_CXX | \
21221 archive_cmds_CXX | \
21222 archive_expsym_cmds_CXX | \
21223 module_cmds_CXX | \
21224 module_expsym_cmds_CXX | \
21225 old_archive_from_expsyms_cmds_CXX | \
21226 export_symbols_cmds_CXX | \
21227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21228 postinstall_cmds | postuninstall_cmds | \
21229 old_postinstall_cmds | old_postuninstall_cmds | \
21230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21231 # Double-quote double-evaled strings.
21232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21241 *'\$0 --fallback-echo"')
21242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21248 cat <<__EOF__ >> "$cfgfile"
21249 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21253 # Shell to use when invoking shell scripts.
21256 # Whether or not to build shared libraries.
21257 build_libtool_libs=$enable_shared
21259 # Whether or not to build static libraries.
21260 build_old_libs=$enable_static
21262 # Whether or not to add -lc for building shared libraries.
21263 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21265 # Whether or not to disallow shared libs when runtime libs are static
21266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21268 # Whether or not to optimize for fast installation.
21269 fast_install=$enable_fast_install
21272 host_alias=$host_alias
21276 # The build system.
21277 build_alias=$build_alias
21281 # An echo program that does not interpret backslashes.
21286 AR_FLAGS=$lt_AR_FLAGS
21291 # LTCC compiler flags.
21292 LTCFLAGS=$lt_LTCFLAGS
21294 # A language-specific compiler.
21295 CC=$lt_compiler_CXX
21297 # Is the compiler the GNU C compiler?
21303 # The linker used to build libraries.
21306 # Whether we need hard or soft links.
21309 # A BSD-compatible nm program.
21312 # A symbol stripping program
21315 # Used to examine libraries when file_magic_cmd begins "file"
21316 MAGIC_CMD=$MAGIC_CMD
21318 # Used on cygwin: DLL creation program.
21321 # Used on cygwin: object dumper.
21324 # Used on cygwin: assembler.
21327 # The name of the directory that contains temporary libtool files.
21330 # How to create reloadable object files.
21331 reload_flag=$lt_reload_flag
21332 reload_cmds=$lt_reload_cmds
21334 # How to pass a linker flag through the compiler.
21335 wl=$lt_lt_prog_compiler_wl_CXX
21337 # Object file suffix (normally "o").
21338 objext="$ac_objext"
21340 # Old archive suffix (normally "a").
21343 # Shared library suffix (normally ".so").
21344 shrext_cmds='$shrext_cmds'
21346 # Executable file suffix (normally "").
21349 # Additional compiler flags for building library objects.
21350 pic_flag=$lt_lt_prog_compiler_pic_CXX
21353 # What is the maximum length of a command?
21354 max_cmd_len=$lt_cv_sys_max_cmd_len
21356 # Does compiler simultaneously support -c and -o options?
21357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21359 # Must we lock files when doing compilation?
21360 need_locks=$lt_need_locks
21362 # Do we need the lib prefix for modules?
21363 need_lib_prefix=$need_lib_prefix
21365 # Do we need a version for libraries?
21366 need_version=$need_version
21368 # Whether dlopen is supported.
21369 dlopen_support=$enable_dlopen
21371 # Whether dlopen of programs is supported.
21372 dlopen_self=$enable_dlopen_self
21374 # Whether dlopen of statically linked programs is supported.
21375 dlopen_self_static=$enable_dlopen_self_static
21377 # Compiler flag to prevent dynamic linking.
21378 link_static_flag=$lt_lt_prog_compiler_static_CXX
21380 # Compiler flag to turn off builtin functions.
21381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21383 # Compiler flag to allow reflexive dlopens.
21384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21386 # Compiler flag to generate shared objects directly from archives.
21387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21389 # Compiler flag to generate thread-safe objects.
21390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21392 # Library versioning type.
21393 version_type=$version_type
21395 # Format of library name prefix.
21396 libname_spec=$lt_libname_spec
21398 # List of archive names. First name is the real one, the rest are links.
21399 # The last name is the one that the linker finds with -lNAME.
21400 library_names_spec=$lt_library_names_spec
21402 # The coded name of the library, if different from the real name.
21403 soname_spec=$lt_soname_spec
21405 # Commands used to build and install an old-style archive.
21407 old_archive_cmds=$lt_old_archive_cmds_CXX
21408 old_postinstall_cmds=$lt_old_postinstall_cmds
21409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21411 # Create an old-style archive from a shared archive.
21412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21414 # Create a temporary old-style archive to link instead of a shared archive.
21415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21417 # Commands used to build and install a shared archive.
21418 archive_cmds=$lt_archive_cmds_CXX
21419 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21420 postinstall_cmds=$lt_postinstall_cmds
21421 postuninstall_cmds=$lt_postuninstall_cmds
21423 # Commands used to build a loadable module (assumed same as above if empty)
21424 module_cmds=$lt_module_cmds_CXX
21425 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21427 # Commands to strip libraries.
21428 old_striplib=$lt_old_striplib
21429 striplib=$lt_striplib
21431 # Dependencies to place before the objects being linked to create a
21433 predep_objects=$lt_predep_objects_CXX
21435 # Dependencies to place after the objects being linked to create a
21437 postdep_objects=$lt_postdep_objects_CXX
21439 # Dependencies to place before the objects being linked to create a
21441 predeps=$lt_predeps_CXX
21443 # Dependencies to place after the objects being linked to create a
21445 postdeps=$lt_postdeps_CXX
21447 # The library search path used internally by the compiler when linking
21448 # a shared library.
21449 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21451 # Method to check whether dependent libraries are shared objects.
21452 deplibs_check_method=$lt_deplibs_check_method
21454 # Command to use when deplibs_check_method == file_magic.
21455 file_magic_cmd=$lt_file_magic_cmd
21457 # Flag that allows shared libraries with undefined symbols to be built.
21458 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21460 # Flag that forces no undefined symbols.
21461 no_undefined_flag=$lt_no_undefined_flag_CXX
21463 # Commands used to finish a libtool library installation in a directory.
21464 finish_cmds=$lt_finish_cmds
21466 # Same as above, but a single script fragment to be evaled but not shown.
21467 finish_eval=$lt_finish_eval
21469 # Take the output of nm and produce a listing of raw symbols and C names.
21470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21472 # Transform the output of nm in a proper C declaration
21473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21475 # Transform the output of nm in a C name address pair
21476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21478 # This is the shared library runtime path variable.
21479 runpath_var=$runpath_var
21481 # This is the shared library path variable.
21482 shlibpath_var=$shlibpath_var
21484 # Is shlibpath searched before the hard-coded library search path?
21485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21487 # How to hardcode a shared library path into an executable.
21488 hardcode_action=$hardcode_action_CXX
21490 # Whether we should hardcode library paths into libraries.
21491 hardcode_into_libs=$hardcode_into_libs
21493 # Flag to hardcode \$libdir into a binary during linking.
21494 # This must work even if \$libdir does not exist.
21495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21497 # If ld is used when linking, flag to hardcode \$libdir into
21498 # a binary during linking. This must work even if \$libdir does
21500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21502 # Whether we need a single -rpath flag with a separated argument.
21503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21506 # resulting binary.
21507 hardcode_direct=$hardcode_direct_CXX
21509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21510 # resulting binary.
21511 hardcode_minus_L=$hardcode_minus_L_CXX
21513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21514 # the resulting binary.
21515 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21517 # Set to yes if building a shared library automatically hardcodes DIR into the library
21518 # and all subsequent libraries and executables linked against it.
21519 hardcode_automatic=$hardcode_automatic_CXX
21521 # Variables whose values should be saved in libtool wrapper scripts and
21522 # restored at relink time.
21523 variables_saved_for_relink="$variables_saved_for_relink"
21525 # Whether libtool must link a program against all its dependency libraries.
21526 link_all_deplibs=$link_all_deplibs_CXX
21528 # Compile-time system search path for libraries
21529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21531 # Run-time system search path for libraries
21532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21534 # Fix the shell variable \$srcfile for the compiler.
21535 fix_srcfile_path="$fix_srcfile_path_CXX"
21537 # Set to yes if exported symbols are required.
21538 always_export_symbols=$always_export_symbols_CXX
21540 # The commands to list exported symbols.
21541 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21543 # The commands to extract the exported symbol list from a shared archive.
21544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21546 # Symbols that should not be listed in the preloaded symbols.
21547 exclude_expsyms=$lt_exclude_expsyms_CXX
21549 # Symbols that must always be exported.
21550 include_expsyms=$lt_include_expsyms_CXX
21552 # ### END LIBTOOL TAG CONFIG: $tagname
21558 # If there is no Makefile yet, we rely on a make rule to execute
21559 # `config.status --recheck' to rerun these tests and create the
21560 # libtool script then.
21561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21562 if test -f "$ltmain_in"; then
21563 test -f Makefile && make "$ltmain"
21569 ac_cpp='$CPP $CPPFLAGS'
21570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21578 with_gnu_ldcxx=$with_gnu_ld
21579 with_gnu_ld=$lt_save_with_gnu_ld
21580 lt_cv_path_LDCXX=$lt_cv_path_LD
21581 lt_cv_path_LD=$lt_save_path_LD
21582 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21583 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21591 if test -n "$F77" && test "X$F77" != "Xno"; then
21594 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21595 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21596 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21599 archive_cmds_need_lc_F77=no
21600 allow_undefined_flag_F77=
21601 always_export_symbols_F77=no
21602 archive_expsym_cmds_F77=
21603 export_dynamic_flag_spec_F77=
21604 hardcode_direct_F77=no
21605 hardcode_libdir_flag_spec_F77=
21606 hardcode_libdir_flag_spec_ld_F77=
21607 hardcode_libdir_separator_F77=
21608 hardcode_minus_L_F77=no
21609 hardcode_automatic_F77=no
21611 module_expsym_cmds_F77=
21612 link_all_deplibs_F77=unknown
21613 old_archive_cmds_F77=$old_archive_cmds
21614 no_undefined_flag_F77=
21615 whole_archive_flag_spec_F77=
21616 enable_shared_with_static_runtimes_F77=no
21618 # Source file extension for f77 test sources.
21621 # Object file extension for compiled f77 test sources.
21625 # Code to be used in simple compile tests
21626 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21628 # Code to be used in simple link tests
21629 lt_simple_link_test_code=" program t\n end\n"
21631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21633 # If no C compiler was specified, use CC.
21636 # If no C compiler flags were specified, use CFLAGS.
21637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21639 # Allow CC to be a program name with arguments.
21643 # save warnings/boilerplate of simple test code
21644 ac_outfile=conftest.$ac_objext
21645 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21647 _lt_compiler_boilerplate=`cat conftest.err`
21650 ac_outfile=conftest.$ac_objext
21651 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21653 _lt_linker_boilerplate=`cat conftest.err`
21657 # Allow CC to be a program name with arguments.
21662 for cc_temp in $compiler""; do
21664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21673 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21674 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21675 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21676 echo "${ECHO_T}$can_build_shared" >&6; }
21678 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21679 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21680 test "$can_build_shared" = "no" && enable_shared=no
21682 # On AIX, shared libraries and static libraries use the same namespace, and
21683 # are all built from PIC.
21686 test "$enable_shared" = yes && enable_static=no
21687 if test -n "$RANLIB"; then
21688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21689 postinstall_cmds='$RANLIB $lib'
21693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21694 test "$enable_shared" = yes && enable_static=no
21698 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21699 echo "${ECHO_T}$enable_shared" >&6; }
21701 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21702 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21703 # Make sure either enable_shared or enable_static is yes.
21704 test "$enable_shared" = yes || enable_static=yes
21705 { echo "$as_me:$LINENO: result: $enable_static" >&5
21706 echo "${ECHO_T}$enable_static" >&6; }
21711 lt_prog_compiler_wl_F77=
21712 lt_prog_compiler_pic_F77=
21713 lt_prog_compiler_static_F77=
21715 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21716 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21718 if test "$GCC" = yes; then
21719 lt_prog_compiler_wl_F77='-Wl,'
21720 lt_prog_compiler_static_F77='-static'
21724 # All AIX code is PIC.
21725 if test "$host_cpu" = ia64; then
21726 # AIX 5 now supports IA64 processor
21727 lt_prog_compiler_static_F77='-Bstatic'
21732 # FIXME: we need at least 68020 code to build shared libraries, but
21733 # adding the `-m68020' flag to GCC prevents building anything better,
21735 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21738 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21739 # PIC is the default for these OSes.
21742 mingw* | pw32* | os2*)
21743 # This hack is so that the source file can tell whether it is being
21744 # built for inclusion in a dll (and should export symbols for example).
21745 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21748 darwin* | rhapsody*)
21749 # PIC is the default on this platform
21750 # Common symbols not allowed in MH_DYLIB files
21751 lt_prog_compiler_pic_F77='-fno-common'
21755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21756 # Instead, we relocate shared libraries at runtime.
21760 # Just because we use GCC doesn't mean we suddenly get shared libraries
21761 # on systems that don't support them.
21762 lt_prog_compiler_can_build_shared_F77=no
21767 if test -d /usr/nec; then
21768 lt_prog_compiler_pic_F77=-Kconform_pic
21773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21774 # not for PA HP-UX.
21780 lt_prog_compiler_pic_F77='-fPIC'
21786 lt_prog_compiler_pic_F77='-fPIC'
21790 # PORTME Check for flag to pass linker flags through the system compiler.
21793 lt_prog_compiler_wl_F77='-Wl,'
21794 if test "$host_cpu" = ia64; then
21795 # AIX 5 now supports IA64 processor
21796 lt_prog_compiler_static_F77='-Bstatic'
21798 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21802 # PIC is the default on this platform
21803 # Common symbols not allowed in MH_DYLIB files
21804 case $cc_basename in
21806 lt_prog_compiler_pic_F77='-qnocommon'
21807 lt_prog_compiler_wl_F77='-Wl,'
21812 mingw* | pw32* | os2*)
21813 # This hack is so that the source file can tell whether it is being
21814 # built for inclusion in a dll (and should export symbols for example).
21815 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21818 hpux9* | hpux10* | hpux11*)
21819 lt_prog_compiler_wl_F77='-Wl,'
21820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21821 # not for PA HP-UX.
21827 lt_prog_compiler_pic_F77='+Z'
21830 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21831 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21834 irix5* | irix6* | nonstopux*)
21835 lt_prog_compiler_wl_F77='-Wl,'
21836 # PIC (with -KPIC) is the default.
21837 lt_prog_compiler_static_F77='-non_shared'
21841 lt_prog_compiler_pic_F77='-KPIC'
21842 lt_prog_compiler_static_F77='-Bstatic'
21846 case $cc_basename in
21848 lt_prog_compiler_wl_F77='-Wl,'
21849 lt_prog_compiler_pic_F77='-KPIC'
21850 lt_prog_compiler_static_F77='-static'
21852 pgcc* | pgf77* | pgf90* | pgf95*)
21853 # Portland Group compilers (*not* the Pentium gcc compiler,
21854 # which looks to be a dead project)
21855 lt_prog_compiler_wl_F77='-Wl,'
21856 lt_prog_compiler_pic_F77='-fpic'
21857 lt_prog_compiler_static_F77='-Bstatic'
21860 lt_prog_compiler_wl_F77='-Wl,'
21861 # All Alpha code is PIC.
21862 lt_prog_compiler_static_F77='-non_shared'
21867 osf3* | osf4* | osf5*)
21868 lt_prog_compiler_wl_F77='-Wl,'
21869 # All OSF/1 code is PIC.
21870 lt_prog_compiler_static_F77='-non_shared'
21874 lt_prog_compiler_pic_F77='-KPIC'
21875 lt_prog_compiler_static_F77='-Bstatic'
21876 case $cc_basename in
21877 f77* | f90* | f95*)
21878 lt_prog_compiler_wl_F77='-Qoption ld ';;
21880 lt_prog_compiler_wl_F77='-Wl,';;
21885 lt_prog_compiler_wl_F77='-Qoption ld '
21886 lt_prog_compiler_pic_F77='-PIC'
21887 lt_prog_compiler_static_F77='-Bstatic'
21890 sysv4 | sysv4.2uw2* | sysv4.3*)
21891 lt_prog_compiler_wl_F77='-Wl,'
21892 lt_prog_compiler_pic_F77='-KPIC'
21893 lt_prog_compiler_static_F77='-Bstatic'
21897 if test -d /usr/nec ;then
21898 lt_prog_compiler_pic_F77='-Kconform_pic'
21899 lt_prog_compiler_static_F77='-Bstatic'
21903 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21904 lt_prog_compiler_wl_F77='-Wl,'
21905 lt_prog_compiler_pic_F77='-KPIC'
21906 lt_prog_compiler_static_F77='-Bstatic'
21910 lt_prog_compiler_wl_F77='-Wl,'
21911 lt_prog_compiler_can_build_shared_F77=no
21915 lt_prog_compiler_pic_F77='-pic'
21916 lt_prog_compiler_static_F77='-Bstatic'
21920 lt_prog_compiler_can_build_shared_F77=no
21925 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21926 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21929 # Check to make sure the PIC flag actually works.
21931 if test -n "$lt_prog_compiler_pic_F77"; then
21933 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21934 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21935 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 lt_prog_compiler_pic_works_F77=no
21939 ac_outfile=conftest.$ac_objext
21940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21941 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21942 # Insert the option either (1) after the last *FLAGS variable, or
21943 # (2) before a word containing "conftest.", or (3) at the end.
21944 # Note that $ac_compile itself does not contain backslashes and begins
21945 # with a dollar sign (not a hyphen), so the echo should work correctly.
21946 # The option is referenced via a variable to avoid confusing sed.
21947 lt_compile=`echo "$ac_compile" | $SED \
21948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21950 -e 's:$: $lt_compiler_flag:'`
21951 (eval echo "\"\$as_me:21951: $lt_compile\"" >&5)
21952 (eval "$lt_compile" 2>conftest.err)
21954 cat conftest.err >&5
21955 echo "$as_me:21955: \$? = $ac_status" >&5
21956 if (exit $ac_status) && test -s "$ac_outfile"; then
21957 # The compiler can only warn and ignore the option if not recognized
21958 # So say no if there are warnings other than the usual output.
21959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21962 lt_prog_compiler_pic_works_F77=yes
21968 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21969 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21971 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21972 case $lt_prog_compiler_pic_F77 in
21974 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21977 lt_prog_compiler_pic_F77=
21978 lt_prog_compiler_can_build_shared_F77=no
21983 # For platforms which do not support PIC, -DPIC is meaningless:
21985 lt_prog_compiler_pic_F77=
21988 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21993 # Check to make sure the static flag actually works.
21995 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21996 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21997 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21998 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 lt_prog_compiler_static_works_F77=no
22002 save_LDFLAGS="$LDFLAGS"
22003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22004 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22006 # The linker can only warn and ignore the option if not recognized
22007 # So say no if there are warnings
22008 if test -s conftest.err; then
22009 # Append any errors to the config.log.
22010 cat conftest.err 1>&5
22011 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22013 if diff conftest.exp conftest.er2 >/dev/null; then
22014 lt_prog_compiler_static_works_F77=yes
22017 lt_prog_compiler_static_works_F77=yes
22021 LDFLAGS="$save_LDFLAGS"
22024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22025 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22027 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22030 lt_prog_compiler_static_F77=
22034 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22035 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22036 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 lt_cv_prog_compiler_c_o_F77=no
22040 $rm -r conftest 2>/dev/null
22044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22046 lt_compiler_flag="-o out/conftest2.$ac_objext"
22047 # Insert the option either (1) after the last *FLAGS variable, or
22048 # (2) before a word containing "conftest.", or (3) at the end.
22049 # Note that $ac_compile itself does not contain backslashes and begins
22050 # with a dollar sign (not a hyphen), so the echo should work correctly.
22051 lt_compile=`echo "$ac_compile" | $SED \
22052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22054 -e 's:$: $lt_compiler_flag:'`
22055 (eval echo "\"\$as_me:22055: $lt_compile\"" >&5)
22056 (eval "$lt_compile" 2>out/conftest.err)
22058 cat out/conftest.err >&5
22059 echo "$as_me:22059: \$? = $ac_status" >&5
22060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22062 # The compiler can only warn and ignore the option if not recognized
22063 # So say no if there are warnings
22064 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22067 lt_cv_prog_compiler_c_o_F77=yes
22072 # SGI C++ compiler will create directory out/ii_files/ for
22073 # template instantiation
22074 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22075 $rm out/* && rmdir out
22081 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22082 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22085 hard_links="nottested"
22086 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22087 # do not overwrite the value of need_locks provided by the user
22088 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22089 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22094 ln conftest.a conftest.b 2>&5 || hard_links=no
22095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22096 { echo "$as_me:$LINENO: result: $hard_links" >&5
22097 echo "${ECHO_T}$hard_links" >&6; }
22098 if test "$hard_links" = no; then
22099 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22100 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22107 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22108 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22111 allow_undefined_flag_F77=
22112 enable_shared_with_static_runtimes_F77=no
22114 archive_expsym_cmds_F77=
22115 old_archive_From_new_cmds_F77=
22116 old_archive_from_expsyms_cmds_F77=
22117 export_dynamic_flag_spec_F77=
22118 whole_archive_flag_spec_F77=
22119 thread_safe_flag_spec_F77=
22120 hardcode_libdir_flag_spec_F77=
22121 hardcode_libdir_flag_spec_ld_F77=
22122 hardcode_libdir_separator_F77=
22123 hardcode_direct_F77=no
22124 hardcode_minus_L_F77=no
22125 hardcode_shlibpath_var_F77=unsupported
22126 link_all_deplibs_F77=unknown
22127 hardcode_automatic_F77=no
22129 module_expsym_cmds_F77=
22130 always_export_symbols_F77=no
22131 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22132 # include_expsyms should be a list of space-separated symbols to be *always*
22133 # included in the symbol list
22134 include_expsyms_F77=
22135 # exclude_expsyms can be an extended regexp of symbols to exclude
22136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22138 # as well as any symbol that contains `d'.
22139 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22141 # platforms (ab)use it in PIC code, but their linkers get confused if
22142 # the symbol is explicitly referenced. Since portable code cannot
22143 # rely on this symbol name, it's probably fine to never include it in
22144 # preloaded symbol tables.
22145 extract_expsyms_cmds=
22146 # Just being paranoid about ensuring that cc_basename is set.
22147 for cc_temp in $compiler""; do
22149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22155 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22158 cygwin* | mingw* | pw32*)
22159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22160 # When not using gcc, we currently assume that we are using
22161 # Microsoft Visual C++.
22162 if test "$GCC" != yes; then
22167 # we just hope/assume this is gcc and not c89 (= MSVC++)
22176 if test "$with_gnu_ld" = yes; then
22177 # If archive_cmds runs LD, not CC, wlarc should be empty
22180 # Set some defaults for GNU ld with shared library support. These
22181 # are reset later if shared libraries are not supported. Putting them
22182 # here allows them to be overridden if necessary.
22183 runpath_var=LD_RUN_PATH
22184 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22185 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22186 # ancient GNU ld didn't support --whole-archive et. al.
22187 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22188 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22190 whole_archive_flag_spec_F77=
22192 supports_anon_versioning=no
22193 case `$LD -v 2>/dev/null` in
22194 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22197 *\ 2.11.*) ;; # other 2.11 versions
22198 *) supports_anon_versioning=yes ;;
22201 # See if GNU ld supports shared libraries.
22203 aix3* | aix4* | aix5*)
22204 # On AIX/PPC, the GNU linker is very broken
22205 if test "$host_cpu" != ia64; then
22209 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22210 *** to be unable to reliably create shared libraries on AIX.
22211 *** Therefore, libtool is disabling shared libraries support. If you
22212 *** really care for shared libraries, you may want to modify your PATH
22213 *** so that a non-GNU linker is found, and then restart.
22220 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)'
22221 hardcode_libdir_flag_spec_F77='-L$libdir'
22222 hardcode_minus_L_F77=yes
22224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22225 # that the semantics of dynamic libraries on AmigaOS, at least up
22226 # to version 4, is to share data among multiple programs linked
22227 # with the same dynamic library. Since this doesn't match the
22228 # behavior of shared libraries on other platforms, we can't use
22234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22235 allow_undefined_flag_F77=unsupported
22236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22237 # support --undefined. This deserves some investigation. FIXME
22238 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22244 cygwin* | mingw* | pw32*)
22245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22246 # as there is no search path for DLLs.
22247 hardcode_libdir_flag_spec_F77='-L$libdir'
22248 allow_undefined_flag_F77=unsupported
22249 always_export_symbols_F77=no
22250 enable_shared_with_static_runtimes_F77=yes
22251 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22255 # If the export-symbols file already is a .def file (1st line
22256 # is EXPORTS), use it as is; otherwise, prepend...
22257 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22258 cp $export_symbols $output_objdir/$soname.def;
22260 echo EXPORTS > $output_objdir/$soname.def;
22261 cat $export_symbols >> $output_objdir/$soname.def;
22263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22270 hardcode_direct_F77=no
22271 hardcode_shlibpath_var_F77=no
22272 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22273 export_dynamic_flag_spec_F77='${wl}-E'
22274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22275 # Instead, shared libraries are loaded at an image base (0x10000000 by
22276 # default) and relocated if they conflict, which is a slow very memory
22277 # consuming and fragmenting process. To avoid this, we pick a random,
22278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22280 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'
22281 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'
22285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22287 case $cc_basename,$host_cpu in
22288 pgcc*) # Portland Group C compiler
22289 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'
22290 tmp_addflag=' $pic_flag'
22292 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22293 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'
22294 tmp_addflag=' $pic_flag -Mnomain' ;;
22295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22296 tmp_addflag=' -i_dynamic' ;;
22297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22298 tmp_addflag=' -i_dynamic -nofor_main' ;;
22299 ifc* | ifort*) # Intel Fortran compiler
22300 tmp_addflag=' -nofor_main' ;;
22302 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22304 if test $supports_anon_versioning = yes; then
22305 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22307 $echo "local: *; };" >> $output_objdir/$libname.ver~
22308 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22317 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22326 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22330 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22331 *** create shared libraries on Solaris systems. Therefore, libtool
22332 *** is disabling shared libraries support. We urge you to upgrade GNU
22333 *** binutils to release 2.9.1 or newer. Another option is to modify
22334 *** your PATH or compiler configuration so that the native linker is
22335 *** used, and then restart.
22338 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22339 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22340 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22347 case `$LD -v 2>&1` in
22348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22352 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22353 *** reliably create shared libraries on SCO systems. Therefore, libtool
22354 *** is disabling shared libraries support. We urge you to upgrade GNU
22355 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22356 *** your PATH or compiler configuration so that the native linker is
22357 *** used, and then restart.
22362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22363 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22374 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22376 hardcode_direct_F77=yes
22377 hardcode_shlibpath_var_F77=no
22381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22383 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22390 if test "$ld_shlibs_F77" = no; then
22392 hardcode_libdir_flag_spec_F77=
22393 export_dynamic_flag_spec_F77=
22394 whole_archive_flag_spec_F77=
22397 # PORTME fill in a description of your system's linker (not GNU ld)
22400 allow_undefined_flag_F77=unsupported
22401 always_export_symbols_F77=yes
22402 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'
22403 # Note: this linker hardcodes the directories in LIBPATH if there
22404 # are no directories specified by -L.
22405 hardcode_minus_L_F77=yes
22406 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22407 # Neither direct hardcoding nor static linking is supported with a
22409 hardcode_direct_F77=unsupported
22414 if test "$host_cpu" = ia64; then
22415 # On IA64, the linker does run time linking by default, so we don't
22416 # have to do anything special.
22417 aix_use_runtimelinking=no
22418 exp_sym_flag='-Bexport'
22421 # If we're using GNU nm, then we don't want the "-C" option.
22422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22423 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22424 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'
22426 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'
22428 aix_use_runtimelinking=no
22430 # Test if we are trying to use run time linking or normal
22431 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22432 # need to do runtime linking.
22433 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22434 for ld_flag in $LDFLAGS; do
22435 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22436 aix_use_runtimelinking=yes
22443 exp_sym_flag='-bexport'
22444 no_entry_flag='-bnoentry'
22447 # When large executables or shared objects are built, AIX ld can
22448 # have problems creating the table of contents. If linking a library
22449 # or program results in "error TOC overflow" add -mminimal-toc to
22450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22453 archive_cmds_F77=''
22454 hardcode_direct_F77=yes
22455 hardcode_libdir_separator_F77=':'
22456 link_all_deplibs_F77=yes
22458 if test "$GCC" = yes; then
22459 case $host_os in aix4.[012]|aix4.[012].*)
22460 # We only want to do this on AIX 4.2 and lower, the check
22461 # below for broken collect2 doesn't work under 4.3+
22462 collect2name=`${CC} -print-prog-name=collect2`
22463 if test -f "$collect2name" && \
22464 strings "$collect2name" | grep resolve_lib_name >/dev/null
22466 # We have reworked collect2
22467 hardcode_direct_F77=yes
22469 # We have old collect2
22470 hardcode_direct_F77=unsupported
22471 # It fails to find uninstalled libraries when the uninstalled
22472 # path is not listed in the libpath. Setting hardcode_minus_L
22473 # to unsupported forces relinking
22474 hardcode_minus_L_F77=yes
22475 hardcode_libdir_flag_spec_F77='-L$libdir'
22476 hardcode_libdir_separator_F77=
22480 shared_flag='-shared'
22481 if test "$aix_use_runtimelinking" = yes; then
22482 shared_flag="$shared_flag "'${wl}-G'
22486 if test "$host_cpu" = ia64; then
22487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22488 # chokes on -Wl,-G. The following line is correct:
22491 if test "$aix_use_runtimelinking" = yes; then
22492 shared_flag='${wl}-G'
22494 shared_flag='${wl}-bM:SRE'
22499 # It seems that -bexpall does not export symbols beginning with
22500 # underscore (_), so it is better to generate a list of symbols to export.
22501 always_export_symbols_F77=yes
22502 if test "$aix_use_runtimelinking" = yes; then
22503 # Warning - without using the other runtime loading flags (-brtl),
22504 # -berok will link without error, but may produce a broken library.
22505 allow_undefined_flag_F77='-berok'
22506 # Determine the default libpath from the value encoded in an empty executable.
22507 cat >conftest.$ac_ext <<_ACEOF
22512 rm -f conftest.$ac_objext conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_link") 2>conftest.er1
22521 grep -v '^ *+' conftest.er1 >conftest.err
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
22526 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22527 { (case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_try") 2>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } &&
22536 { ac_try='test -s conftest$ac_exeext'
22537 { (case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_try") 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
22547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22549 # Check for a 64-bit object if we didn't find anything.
22550 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; }
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22559 rm -f core conftest.err conftest.$ac_objext \
22560 conftest$ac_exeext conftest.$ac_ext
22561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22563 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22564 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"
22566 if test "$host_cpu" = ia64; then
22567 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22568 allow_undefined_flag_F77="-z nodefs"
22569 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"
22571 # Determine the default libpath from the value encoded in an empty executable.
22572 cat >conftest.$ac_ext <<_ACEOF
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>conftest.er1
22586 grep -v '^ *+' conftest.er1 >conftest.err
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } &&
22591 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22592 { (case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_try") 2>&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest$ac_exeext'
22602 { (case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_try") 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22614 # Check for a 64-bit object if we didn't find anything.
22615 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; }
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22624 rm -f core conftest.err conftest.$ac_objext \
22625 conftest$ac_exeext conftest.$ac_ext
22626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22628 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22629 # Warning - without using the other run time loading flags,
22630 # -berok will link without error, but may produce a broken library.
22631 no_undefined_flag_F77=' ${wl}-bernotok'
22632 allow_undefined_flag_F77=' ${wl}-berok'
22633 # Exported symbols can be pulled into shared objects from archives
22634 whole_archive_flag_spec_F77='$convenience'
22635 archive_cmds_need_lc_F77=yes
22636 # This is similar to how AIX traditionally builds its shared libraries.
22637 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'
22643 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)'
22644 hardcode_libdir_flag_spec_F77='-L$libdir'
22645 hardcode_minus_L_F77=yes
22646 # see comment about different semantics on the GNU ld section
22651 export_dynamic_flag_spec_F77=-rdynamic
22654 cygwin* | mingw* | pw32*)
22655 # When not using gcc, we currently assume that we are using
22656 # Microsoft Visual C++.
22657 # hardcode_libdir_flag_spec is actually meaningless, as there is
22658 # no search path for DLLs.
22659 hardcode_libdir_flag_spec_F77=' '
22660 allow_undefined_flag_F77=unsupported
22661 # Tell ltmain to make .lib files, not .a files.
22663 # Tell ltmain to make .dll files, not .so files.
22665 # FIXME: Setting linknames here is a bad hack.
22666 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22667 # The linker will automatically build a .lib file if we build a DLL.
22668 old_archive_From_new_cmds_F77='true'
22669 # FIXME: Should let the user specify the lib program.
22670 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22671 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22672 enable_shared_with_static_runtimes_F77=yes
22675 darwin* | rhapsody*)
22677 rhapsody* | darwin1.[012])
22678 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22682 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22684 case ${MACOSX_DEPLOYMENT_TARGET} in
22686 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22689 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22695 archive_cmds_need_lc_F77=no
22696 hardcode_direct_F77=no
22697 hardcode_automatic_F77=yes
22698 hardcode_shlibpath_var_F77=unsupported
22699 whole_archive_flag_spec_F77=''
22700 link_all_deplibs_F77=yes
22701 if test "$GCC" = yes ; then
22702 output_verbose_link_cmd='echo'
22703 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22704 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22705 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22706 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}'
22707 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}'
22709 case $cc_basename in
22711 output_verbose_link_cmd='echo'
22712 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22713 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22715 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}'
22716 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}'
22726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 hardcode_libdir_flag_spec_F77='-L$libdir'
22728 hardcode_shlibpath_var_F77=no
22735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22736 # support. Future versions do this automatically, but an explicit c++rt0.o
22737 # does not break anything, and helps significantly (at the cost of a little
22740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22741 hardcode_libdir_flag_spec_F77='-R$libdir'
22742 hardcode_direct_F77=yes
22743 hardcode_shlibpath_var_F77=no
22746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22749 hardcode_direct_F77=yes
22750 hardcode_minus_L_F77=yes
22751 hardcode_shlibpath_var_F77=no
22754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22755 freebsd* | kfreebsd*-gnu | dragonfly*)
22756 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22757 hardcode_libdir_flag_spec_F77='-R$libdir'
22758 hardcode_direct_F77=yes
22759 hardcode_shlibpath_var_F77=no
22763 if test "$GCC" = yes; then
22764 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'
22766 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'
22768 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22769 hardcode_libdir_separator_F77=:
22770 hardcode_direct_F77=yes
22772 # hardcode_minus_L: Not really in the search PATH,
22773 # but as the default location of the library.
22774 hardcode_minus_L_F77=yes
22775 export_dynamic_flag_spec_F77='${wl}-E'
22779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22780 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22782 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22784 if test "$with_gnu_ld" = no; then
22785 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22786 hardcode_libdir_separator_F77=:
22788 hardcode_direct_F77=yes
22789 export_dynamic_flag_spec_F77='${wl}-E'
22791 # hardcode_minus_L: Not really in the search PATH,
22792 # but as the default location of the library.
22793 hardcode_minus_L_F77=yes
22798 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22801 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22804 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22807 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22813 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22816 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22819 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22823 if test "$with_gnu_ld" = no; then
22824 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22825 hardcode_libdir_separator_F77=:
22829 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22830 hardcode_direct_F77=no
22831 hardcode_shlibpath_var_F77=no
22834 hardcode_direct_F77=yes
22835 export_dynamic_flag_spec_F77='${wl}-E'
22837 # hardcode_minus_L: Not really in the search PATH,
22838 # but as the default location of the library.
22839 hardcode_minus_L_F77=yes
22845 irix5* | irix6* | nonstopux*)
22846 if test "$GCC" = yes; then
22847 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'
22849 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'
22850 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22853 hardcode_libdir_separator_F77=:
22854 link_all_deplibs_F77=yes
22858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22859 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22861 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22863 hardcode_libdir_flag_spec_F77='-R$libdir'
22864 hardcode_direct_F77=yes
22865 hardcode_shlibpath_var_F77=no
22869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22870 hardcode_direct_F77=yes
22871 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22872 hardcode_libdir_separator_F77=:
22873 hardcode_shlibpath_var_F77=no
22877 hardcode_direct_F77=yes
22878 hardcode_shlibpath_var_F77=no
22879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22880 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22881 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22882 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22883 export_dynamic_flag_spec_F77='${wl}-E'
22886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22888 hardcode_libdir_flag_spec_F77='-R$libdir'
22891 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22899 hardcode_libdir_flag_spec_F77='-L$libdir'
22900 hardcode_minus_L_F77=yes
22901 allow_undefined_flag_F77=unsupported
22902 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'
22903 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22907 if test "$GCC" = yes; then
22908 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22909 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'
22911 allow_undefined_flag_F77=' -expect_unresolved \*'
22912 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'
22914 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22915 hardcode_libdir_separator_F77=:
22918 osf4* | osf5*) # as osf3* with the addition of -msym flag
22919 if test "$GCC" = yes; then
22920 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22921 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'
22922 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22924 allow_undefined_flag_F77=' -expect_unresolved \*'
22925 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'
22926 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~
22927 $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'
22929 # Both c and cxx compiler support -rpath directly
22930 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22932 hardcode_libdir_separator_F77=:
22936 no_undefined_flag_F77=' -z text'
22937 if test "$GCC" = yes; then
22939 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22940 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22941 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22944 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22945 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22948 hardcode_libdir_flag_spec_F77='-R$libdir'
22949 hardcode_shlibpath_var_F77=no
22951 solaris2.[0-5] | solaris2.[0-5].*) ;;
22953 # The compiler driver will combine linker options so we
22954 # cannot just pass the convience library names through
22955 # without $wl, iff we do not link with $LD.
22956 # Luckily, gcc supports the same syntax we need for Sun Studio.
22957 # Supported since Solaris 2.6 (maybe 2.5.1?)
22960 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22962 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' ;;
22965 link_all_deplibs_F77=yes
22969 if test "x$host_vendor" = xsequent; then
22970 # Use $CC to link under sequent, because it throws in some extra .o
22971 # files that make .init and .fini sections work.
22972 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22974 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22976 hardcode_libdir_flag_spec_F77='-L$libdir'
22977 hardcode_direct_F77=yes
22978 hardcode_minus_L_F77=yes
22979 hardcode_shlibpath_var_F77=no
22983 case $host_vendor in
22985 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22986 hardcode_direct_F77=yes # is this really true???
22989 ## LD is ld it makes a PLAMLIB
22990 ## CC just makes a GrossModule.
22991 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22992 reload_cmds_F77='$CC -r -o $output$reload_objs'
22993 hardcode_direct_F77=no
22996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22997 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23000 runpath_var='LD_RUN_PATH'
23001 hardcode_shlibpath_var_F77=no
23005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23006 hardcode_shlibpath_var_F77=no
23007 export_dynamic_flag_spec_F77='-Bexport'
23011 if test -d /usr/nec; then
23012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23013 hardcode_shlibpath_var_F77=no
23014 runpath_var=LD_RUN_PATH
23015 hardcode_runpath_var=yes
23020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23021 no_undefined_flag_F77='${wl}-z,text'
23022 archive_cmds_need_lc_F77=no
23023 hardcode_shlibpath_var_F77=no
23024 runpath_var='LD_RUN_PATH'
23026 if test "$GCC" = yes; then
23027 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23028 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23030 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23031 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23035 sysv5* | sco3.2v5* | sco5v6*)
23036 # Note: We can NOT use -z defs as we might desire, because we do not
23037 # link with -lc, and that would cause any symbols used from libc to
23038 # always be unresolved, which means just about no library would
23039 # ever link correctly. If we're not using GNU ld we use -z text
23040 # though, which does catch some bad symbols but isn't as heavy-handed
23042 no_undefined_flag_F77='${wl}-z,text'
23043 allow_undefined_flag_F77='${wl}-z,nodefs'
23044 archive_cmds_need_lc_F77=no
23045 hardcode_shlibpath_var_F77=no
23046 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23047 hardcode_libdir_separator_F77=':'
23048 link_all_deplibs_F77=yes
23049 export_dynamic_flag_spec_F77='${wl}-Bexport'
23050 runpath_var='LD_RUN_PATH'
23052 if test "$GCC" = yes; then
23053 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23054 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23056 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23057 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23063 hardcode_libdir_flag_spec_F77='-L$libdir'
23064 hardcode_shlibpath_var_F77=no
23073 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23074 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23075 test "$ld_shlibs_F77" = no && can_build_shared=no
23078 # Do we need to explicitly link libc?
23080 case "x$archive_cmds_need_lc_F77" in
23082 # Assume -lc should be added
23083 archive_cmds_need_lc_F77=yes
23085 if test "$enable_shared" = yes && test "$GCC" = yes; then
23086 case $archive_cmds_F77 in
23088 # FIXME: we may have to deal with multi-command sequences.
23091 # Test whether the compiler implicitly links with -lc since on some
23092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23093 # to ld, don't add -lc before -lgcc.
23094 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23095 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100 (eval $ac_compile) 2>&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } 2>conftest.err; then
23106 libobjs=conftest.$ac_objext
23108 wl=$lt_prog_compiler_wl_F77
23109 pic_flag=$lt_prog_compiler_pic_F77
23115 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23116 allow_undefined_flag_F77=
23117 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23118 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }
23123 archive_cmds_need_lc_F77=no
23125 archive_cmds_need_lc_F77=yes
23127 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23129 cat conftest.err 1>&5
23132 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23133 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23140 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23141 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23142 library_names_spec=
23143 libname_spec='lib$name'
23147 postuninstall_cmds=
23151 shlibpath_overrides_runpath=unknown
23153 dynamic_linker="$host_os ld.so"
23154 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23155 if test "$GCC" = yes; then
23156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23157 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23158 # if the path contains ";" then we assume it to be the separator
23159 # otherwise default to the standard path separator (i.e. ":") - it is
23160 # assumed that no part of a normal pathname contains ";" but that should
23161 # okay in the real world where ";" in dirpaths is itself problematic.
23162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23167 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23169 need_lib_prefix=unknown
23170 hardcode_into_libs=no
23172 # when you set need_version to no, make sure it does not cause -set_version
23173 # flags to be left without arguments
23174 need_version=unknown
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23180 shlibpath_var=LIBPATH
23182 # AIX 3 has no versioning support, so we append a major version to the name.
23183 soname_spec='${libname}${release}${shared_ext}$major'
23190 hardcode_into_libs=yes
23191 if test "$host_cpu" = ia64; then
23192 # AIX 5 supports IA64
23193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23194 shlibpath_var=LD_LIBRARY_PATH
23196 # With GCC up to 2.95.x, collect2 would create an import file
23197 # for dependence libraries. The import file would start with
23198 # the line `#! .'. This would cause the generated library to
23199 # depend on `.', always an invalid library. This was fixed in
23200 # development snapshots of GCC prior to 3.0.
23202 aix4 | aix4.[01] | aix4.[01].*)
23203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23205 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23208 can_build_shared=no
23212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23213 # soname into executable. Probably we can add versioning support to
23214 # collect2, so additional links can be useful in future.
23215 if test "$aix_use_runtimelinking" = yes; then
23216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23217 # instead of lib<name>.a to let people know that these are not
23218 # typical AIX shared libraries.
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23221 # We preserve .a as extension for shared libraries through AIX4.2
23222 # and later when we are not doing run time linking.
23223 library_names_spec='${libname}${release}.a $libname.a'
23224 soname_spec='${libname}${release}${shared_ext}$major'
23226 shlibpath_var=LIBPATH
23231 library_names_spec='$libname.ixlibrary $libname.a'
23232 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23233 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'
23237 library_names_spec='${libname}${shared_ext}'
23238 dynamic_linker="$host_os ld.so"
23239 shlibpath_var=LIBRARY_PATH
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23248 shlibpath_var=LD_LIBRARY_PATH
23249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23251 # the default ld.so.conf also contains /usr/contrib/lib and
23252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23253 # libtool to hard-code these into programs
23256 cygwin* | mingw* | pw32*)
23257 version_type=windows
23262 case $GCC,$host_os in
23263 yes,cygwin* | yes,mingw* | yes,pw32*)
23264 library_names_spec='$libname.dll.a'
23265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23266 postinstall_cmds='base_file=`basename \${file}`~
23267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23268 dldir=$destdir/`dirname \$dlpath`~
23269 test -d \$dldir || mkdir -p \$dldir~
23270 $install_prog $dir/$dlname \$dldir/$dlname~
23271 chmod a+x \$dldir/$dlname'
23272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23273 dlpath=$dir/\$dldll~
23275 shlibpath_overrides_runpath=yes
23279 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23280 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23281 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23284 # MinGW DLLs use traditional 'lib' prefix
23285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23286 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23287 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23288 # It is most probably a Windows format PATH printed by
23289 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23290 # path with ; separators, and with drive letters. We can handle the
23291 # drive letters (cygwin fileutils understands them), so leave them,
23292 # especially as we might pass files found there to a mingw objdump,
23293 # which wouldn't understand a cygwinified path. Ahh.
23294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23300 # pw32 DLLs use 'pw' prefix rather than 'lib'
23301 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23307 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23310 dynamic_linker='Win32 ld.exe'
23311 # FIXME: first we should search . and the directory the executable is in
23315 darwin* | rhapsody*)
23316 dynamic_linker="$host_os dyld"
23317 version_type=darwin
23320 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23321 soname_spec='${libname}${release}${major}$shared_ext'
23322 shlibpath_overrides_runpath=yes
23323 shlibpath_var=DYLD_LIBRARY_PATH
23324 shrext_cmds='.dylib'
23325 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23326 if test "$GCC" = yes; then
23327 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"`
23329 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23339 soname_spec='${libname}${release}${shared_ext}$major'
23340 shlibpath_var=LD_LIBRARY_PATH
23351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352 soname_spec='${libname}${release}${shared_ext}$major'
23353 shlibpath_var=LD_LIBRARY_PATH
23354 shlibpath_overrides_runpath=no
23355 hardcode_into_libs=yes
23356 dynamic_linker='GNU ld.so'
23359 freebsd* | dragonfly*)
23360 # DragonFly does not have aout. When/if they implement a new
23361 # versioning mechanism, adjust this.
23362 if test -x /usr/bin/objformat; then
23363 objformat=`/usr/bin/objformat`
23366 freebsd[123]*) objformat=aout ;;
23367 *) objformat=elf ;;
23370 version_type=freebsd-$objformat
23371 case $version_type in
23373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23382 shlibpath_var=LD_LIBRARY_PATH
23385 shlibpath_overrides_runpath=yes
23387 freebsd3.[01]* | freebsdelf3.[01]*)
23388 shlibpath_overrides_runpath=yes
23389 hardcode_into_libs=yes
23391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23393 shlibpath_overrides_runpath=no
23394 hardcode_into_libs=yes
23396 freebsd*) # from 4.6 on
23397 shlibpath_overrides_runpath=yes
23398 hardcode_into_libs=yes
23407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23408 soname_spec='${libname}${release}${shared_ext}$major'
23409 shlibpath_var=LD_LIBRARY_PATH
23410 hardcode_into_libs=yes
23413 hpux9* | hpux10* | hpux11*)
23414 # Give a soname corresponding to the major version so that dld.sl refuses to
23415 # link against other versions.
23422 hardcode_into_libs=yes
23423 dynamic_linker="$host_os dld.so"
23424 shlibpath_var=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427 soname_spec='${libname}${release}${shared_ext}$major'
23428 if test "X$HPUX_IA64_MODE" = X32; then
23429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23437 hardcode_into_libs=yes
23438 dynamic_linker="$host_os dld.sl"
23439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23442 soname_spec='${libname}${release}${shared_ext}$major'
23443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23448 dynamic_linker="$host_os dld.sl"
23449 shlibpath_var=SHLIB_PATH
23450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23452 soname_spec='${libname}${release}${shared_ext}$major'
23455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23456 postinstall_cmds='chmod 555 $lib'
23463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23464 soname_spec='${libname}${release}${shared_ext}$major'
23465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23466 shlibpath_var=LD_LIBRARY_PATH
23467 shlibpath_overrides_runpath=no
23468 hardcode_into_libs=yes
23471 irix5* | irix6* | nonstopux*)
23473 nonstopux*) version_type=nonstopux ;;
23475 if test "$lt_cv_prog_gnu_ld" = yes; then
23483 soname_spec='${libname}${release}${shared_ext}$major'
23484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23486 irix5* | nonstopux*)
23487 libsuff= shlibsuff=
23490 case $LD in # libtool.m4 will add one of these switches to LD
23491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23492 libsuff= shlibsuff= libmagic=32-bit;;
23493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23494 libsuff=32 shlibsuff=N32 libmagic=N32;;
23495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23497 *) libsuff= shlibsuff= libmagic=never-match;;
23501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23502 shlibpath_overrides_runpath=no
23503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23505 hardcode_into_libs=yes
23508 # No shared lib support for Linux oldld, aout, or coff.
23509 linux*oldld* | linux*aout* | linux*coff*)
23513 # This must be Linux ELF.
23518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23519 soname_spec='${libname}${release}${shared_ext}$major'
23520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 shlibpath_overrides_runpath=no
23523 # This implies no fast_install, which is unacceptable.
23524 # Some rework will be needed to allow for fast_install
23525 # before this can be enabled.
23526 hardcode_into_libs=yes
23528 # Append ld.so.conf contents to the search path
23529 if test -f /etc/ld.so.conf; then
23530 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' ' '`
23531 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23534 # We used to test for /lib/ld.so.1 and disable shared libraries on
23535 # powerpc, because MkLinux only supported shared libraries with the
23536 # GNU dynamic linker. Since this was broken with cross compilers,
23537 # most powerpc-linux boxes support dynamic linking these days and
23538 # people can always --disable-shared, the test was removed, and we
23539 # assume the GNU/Linux dynamic linker is in use.
23540 dynamic_linker='GNU/Linux ld.so'
23547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23548 soname_spec='${libname}${release}${shared_ext}$major'
23549 shlibpath_var=LD_LIBRARY_PATH
23550 shlibpath_overrides_runpath=no
23551 hardcode_into_libs=yes
23552 dynamic_linker='GNU ld.so'
23559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23562 dynamic_linker='NetBSD (a.out) ld.so'
23564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23565 soname_spec='${libname}${release}${shared_ext}$major'
23566 dynamic_linker='NetBSD ld.elf_so'
23568 shlibpath_var=LD_LIBRARY_PATH
23569 shlibpath_overrides_runpath=yes
23570 hardcode_into_libs=yes
23575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23576 shlibpath_var=LD_LIBRARY_PATH
23577 shlibpath_overrides_runpath=yes
23584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23585 soname_spec='${libname}${release}${shared_ext}$major'
23586 shlibpath_var=LD_LIBRARY_PATH
23587 shlibpath_overrides_runpath=yes
23592 sys_lib_dlsearch_path_spec="/usr/lib"
23594 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23596 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23597 *) need_version=no ;;
23599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23601 shlibpath_var=LD_LIBRARY_PATH
23602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23604 openbsd2.[89] | openbsd2.[89].*)
23605 shlibpath_overrides_runpath=no
23608 shlibpath_overrides_runpath=yes
23612 shlibpath_overrides_runpath=yes
23617 libname_spec='$name'
23620 library_names_spec='$libname${shared_ext} $libname.a'
23621 dynamic_linker='OS/2 ld.exe'
23622 shlibpath_var=LIBPATH
23625 osf3* | osf4* | osf5*)
23629 soname_spec='${libname}${release}${shared_ext}$major'
23630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23631 shlibpath_var=LD_LIBRARY_PATH
23632 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23633 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23641 soname_spec='${libname}${release}${shared_ext}$major'
23642 shlibpath_var=LD_LIBRARY_PATH
23643 shlibpath_overrides_runpath=yes
23644 hardcode_into_libs=yes
23645 # ldd complains unless libraries are executable
23646 postinstall_cmds='chmod +x $lib'
23651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23652 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23653 shlibpath_var=LD_LIBRARY_PATH
23654 shlibpath_overrides_runpath=yes
23655 if test "$with_gnu_ld" = yes; then
23663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23664 soname_spec='${libname}${release}${shared_ext}$major'
23665 shlibpath_var=LD_LIBRARY_PATH
23666 case $host_vendor in
23668 shlibpath_overrides_runpath=no
23670 export_dynamic_flag_spec='${wl}-Blargedynsym'
23671 runpath_var=LD_RUN_PATH
23679 shlibpath_overrides_runpath=no
23680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23686 if test -d /usr/nec ;then
23688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23689 soname_spec='$libname${shared_ext}.$major'
23690 shlibpath_var=LD_LIBRARY_PATH
23694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23695 version_type=freebsd-elf
23698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23699 soname_spec='${libname}${release}${shared_ext}$major'
23700 shlibpath_var=LD_LIBRARY_PATH
23701 hardcode_into_libs=yes
23702 if test "$with_gnu_ld" = yes; then
23703 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23704 shlibpath_overrides_runpath=no
23706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23707 shlibpath_overrides_runpath=yes
23710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23714 sys_lib_dlsearch_path_spec='/usr/lib'
23719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23720 soname_spec='${libname}${release}${shared_ext}$major'
23721 shlibpath_var=LD_LIBRARY_PATH
23728 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23729 echo "${ECHO_T}$dynamic_linker" >&6; }
23730 test "$dynamic_linker" = no && can_build_shared=no
23732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23733 if test "$GCC" = yes; then
23734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23737 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23738 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23739 hardcode_action_F77=
23740 if test -n "$hardcode_libdir_flag_spec_F77" || \
23741 test -n "$runpath_var_F77" || \
23742 test "X$hardcode_automatic_F77" = "Xyes" ; then
23744 # We can hardcode non-existant directories.
23745 if test "$hardcode_direct_F77" != no &&
23746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23747 # have to relink, otherwise we might link with an installed library
23748 # when we should be linking with a yet-to-be-installed one
23749 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23750 test "$hardcode_minus_L_F77" != no; then
23751 # Linking always hardcodes the temporary library directory.
23752 hardcode_action_F77=relink
23754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23755 hardcode_action_F77=immediate
23758 # We cannot hardcode anything, or else we can only hardcode existing
23760 hardcode_action_F77=unsupported
23762 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23763 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23765 if test "$hardcode_action_F77" = relink; then
23766 # Fast installation is not supported
23767 enable_fast_install=no
23768 elif test "$shlibpath_overrides_runpath" = yes ||
23769 test "$enable_shared" = no; then
23770 # Fast installation is not necessary
23771 enable_fast_install=needless
23775 # The else clause should only fire when bootstrapping the
23776 # libtool distribution, otherwise you forgot to ship ltmain.sh
23777 # with your package, and you will get complaints that there are
23778 # no rules to generate ltmain.sh.
23779 if test -f "$ltmain"; then
23780 # See if we are running on zsh, and set the options which allow our commands through
23781 # without removal of \ escapes.
23782 if test -n "${ZSH_VERSION+set}" ; then
23783 setopt NO_GLOB_SUBST
23785 # Now quote all the things that may contain metacharacters while being
23786 # careful not to overquote the AC_SUBSTed values. We take copies of the
23787 # variables and quote the copies for generation of the libtool script.
23788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23792 deplibs_check_method reload_flag reload_cmds need_locks \
23793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23794 lt_cv_sys_global_symbol_to_c_name_address \
23795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23796 old_postinstall_cmds old_postuninstall_cmds \
23800 lt_prog_compiler_wl_F77 \
23801 lt_prog_compiler_pic_F77 \
23802 lt_prog_compiler_static_F77 \
23803 lt_prog_compiler_no_builtin_flag_F77 \
23804 export_dynamic_flag_spec_F77 \
23805 thread_safe_flag_spec_F77 \
23806 whole_archive_flag_spec_F77 \
23807 enable_shared_with_static_runtimes_F77 \
23808 old_archive_cmds_F77 \
23809 old_archive_from_new_cmds_F77 \
23810 predep_objects_F77 \
23811 postdep_objects_F77 \
23814 compiler_lib_search_path_F77 \
23816 archive_expsym_cmds_F77 \
23817 postinstall_cmds_F77 \
23818 postuninstall_cmds_F77 \
23819 old_archive_from_expsyms_cmds_F77 \
23820 allow_undefined_flag_F77 \
23821 no_undefined_flag_F77 \
23822 export_symbols_cmds_F77 \
23823 hardcode_libdir_flag_spec_F77 \
23824 hardcode_libdir_flag_spec_ld_F77 \
23825 hardcode_libdir_separator_F77 \
23826 hardcode_automatic_F77 \
23828 module_expsym_cmds_F77 \
23829 lt_cv_prog_compiler_c_o_F77 \
23830 exclude_expsyms_F77 \
23831 include_expsyms_F77; do
23834 old_archive_cmds_F77 | \
23835 old_archive_from_new_cmds_F77 | \
23836 archive_cmds_F77 | \
23837 archive_expsym_cmds_F77 | \
23838 module_cmds_F77 | \
23839 module_expsym_cmds_F77 | \
23840 old_archive_from_expsyms_cmds_F77 | \
23841 export_symbols_cmds_F77 | \
23842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23843 postinstall_cmds | postuninstall_cmds | \
23844 old_postinstall_cmds | old_postuninstall_cmds | \
23845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23846 # Double-quote double-evaled strings.
23847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23856 *'\$0 --fallback-echo"')
23857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23863 cat <<__EOF__ >> "$cfgfile"
23864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23868 # Shell to use when invoking shell scripts.
23871 # Whether or not to build shared libraries.
23872 build_libtool_libs=$enable_shared
23874 # Whether or not to build static libraries.
23875 build_old_libs=$enable_static
23877 # Whether or not to add -lc for building shared libraries.
23878 build_libtool_need_lc=$archive_cmds_need_lc_F77
23880 # Whether or not to disallow shared libs when runtime libs are static
23881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23883 # Whether or not to optimize for fast installation.
23884 fast_install=$enable_fast_install
23887 host_alias=$host_alias
23891 # The build system.
23892 build_alias=$build_alias
23896 # An echo program that does not interpret backslashes.
23901 AR_FLAGS=$lt_AR_FLAGS
23906 # LTCC compiler flags.
23907 LTCFLAGS=$lt_LTCFLAGS
23909 # A language-specific compiler.
23910 CC=$lt_compiler_F77
23912 # Is the compiler the GNU C compiler?
23918 # The linker used to build libraries.
23921 # Whether we need hard or soft links.
23924 # A BSD-compatible nm program.
23927 # A symbol stripping program
23930 # Used to examine libraries when file_magic_cmd begins "file"
23931 MAGIC_CMD=$MAGIC_CMD
23933 # Used on cygwin: DLL creation program.
23936 # Used on cygwin: object dumper.
23939 # Used on cygwin: assembler.
23942 # The name of the directory that contains temporary libtool files.
23945 # How to create reloadable object files.
23946 reload_flag=$lt_reload_flag
23947 reload_cmds=$lt_reload_cmds
23949 # How to pass a linker flag through the compiler.
23950 wl=$lt_lt_prog_compiler_wl_F77
23952 # Object file suffix (normally "o").
23953 objext="$ac_objext"
23955 # Old archive suffix (normally "a").
23958 # Shared library suffix (normally ".so").
23959 shrext_cmds='$shrext_cmds'
23961 # Executable file suffix (normally "").
23964 # Additional compiler flags for building library objects.
23965 pic_flag=$lt_lt_prog_compiler_pic_F77
23968 # What is the maximum length of a command?
23969 max_cmd_len=$lt_cv_sys_max_cmd_len
23971 # Does compiler simultaneously support -c and -o options?
23972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23974 # Must we lock files when doing compilation?
23975 need_locks=$lt_need_locks
23977 # Do we need the lib prefix for modules?
23978 need_lib_prefix=$need_lib_prefix
23980 # Do we need a version for libraries?
23981 need_version=$need_version
23983 # Whether dlopen is supported.
23984 dlopen_support=$enable_dlopen
23986 # Whether dlopen of programs is supported.
23987 dlopen_self=$enable_dlopen_self
23989 # Whether dlopen of statically linked programs is supported.
23990 dlopen_self_static=$enable_dlopen_self_static
23992 # Compiler flag to prevent dynamic linking.
23993 link_static_flag=$lt_lt_prog_compiler_static_F77
23995 # Compiler flag to turn off builtin functions.
23996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23998 # Compiler flag to allow reflexive dlopens.
23999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24001 # Compiler flag to generate shared objects directly from archives.
24002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24004 # Compiler flag to generate thread-safe objects.
24005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24007 # Library versioning type.
24008 version_type=$version_type
24010 # Format of library name prefix.
24011 libname_spec=$lt_libname_spec
24013 # List of archive names. First name is the real one, the rest are links.
24014 # The last name is the one that the linker finds with -lNAME.
24015 library_names_spec=$lt_library_names_spec
24017 # The coded name of the library, if different from the real name.
24018 soname_spec=$lt_soname_spec
24020 # Commands used to build and install an old-style archive.
24022 old_archive_cmds=$lt_old_archive_cmds_F77
24023 old_postinstall_cmds=$lt_old_postinstall_cmds
24024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24026 # Create an old-style archive from a shared archive.
24027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24029 # Create a temporary old-style archive to link instead of a shared archive.
24030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24032 # Commands used to build and install a shared archive.
24033 archive_cmds=$lt_archive_cmds_F77
24034 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24035 postinstall_cmds=$lt_postinstall_cmds
24036 postuninstall_cmds=$lt_postuninstall_cmds
24038 # Commands used to build a loadable module (assumed same as above if empty)
24039 module_cmds=$lt_module_cmds_F77
24040 module_expsym_cmds=$lt_module_expsym_cmds_F77
24042 # Commands to strip libraries.
24043 old_striplib=$lt_old_striplib
24044 striplib=$lt_striplib
24046 # Dependencies to place before the objects being linked to create a
24048 predep_objects=$lt_predep_objects_F77
24050 # Dependencies to place after the objects being linked to create a
24052 postdep_objects=$lt_postdep_objects_F77
24054 # Dependencies to place before the objects being linked to create a
24056 predeps=$lt_predeps_F77
24058 # Dependencies to place after the objects being linked to create a
24060 postdeps=$lt_postdeps_F77
24062 # The library search path used internally by the compiler when linking
24063 # a shared library.
24064 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24066 # Method to check whether dependent libraries are shared objects.
24067 deplibs_check_method=$lt_deplibs_check_method
24069 # Command to use when deplibs_check_method == file_magic.
24070 file_magic_cmd=$lt_file_magic_cmd
24072 # Flag that allows shared libraries with undefined symbols to be built.
24073 allow_undefined_flag=$lt_allow_undefined_flag_F77
24075 # Flag that forces no undefined symbols.
24076 no_undefined_flag=$lt_no_undefined_flag_F77
24078 # Commands used to finish a libtool library installation in a directory.
24079 finish_cmds=$lt_finish_cmds
24081 # Same as above, but a single script fragment to be evaled but not shown.
24082 finish_eval=$lt_finish_eval
24084 # Take the output of nm and produce a listing of raw symbols and C names.
24085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24087 # Transform the output of nm in a proper C declaration
24088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24090 # Transform the output of nm in a C name address pair
24091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24093 # This is the shared library runtime path variable.
24094 runpath_var=$runpath_var
24096 # This is the shared library path variable.
24097 shlibpath_var=$shlibpath_var
24099 # Is shlibpath searched before the hard-coded library search path?
24100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24102 # How to hardcode a shared library path into an executable.
24103 hardcode_action=$hardcode_action_F77
24105 # Whether we should hardcode library paths into libraries.
24106 hardcode_into_libs=$hardcode_into_libs
24108 # Flag to hardcode \$libdir into a binary during linking.
24109 # This must work even if \$libdir does not exist.
24110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24112 # If ld is used when linking, flag to hardcode \$libdir into
24113 # a binary during linking. This must work even if \$libdir does
24115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24117 # Whether we need a single -rpath flag with a separated argument.
24118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24121 # resulting binary.
24122 hardcode_direct=$hardcode_direct_F77
24124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24125 # resulting binary.
24126 hardcode_minus_L=$hardcode_minus_L_F77
24128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24129 # the resulting binary.
24130 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24132 # Set to yes if building a shared library automatically hardcodes DIR into the library
24133 # and all subsequent libraries and executables linked against it.
24134 hardcode_automatic=$hardcode_automatic_F77
24136 # Variables whose values should be saved in libtool wrapper scripts and
24137 # restored at relink time.
24138 variables_saved_for_relink="$variables_saved_for_relink"
24140 # Whether libtool must link a program against all its dependency libraries.
24141 link_all_deplibs=$link_all_deplibs_F77
24143 # Compile-time system search path for libraries
24144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24146 # Run-time system search path for libraries
24147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24149 # Fix the shell variable \$srcfile for the compiler.
24150 fix_srcfile_path="$fix_srcfile_path_F77"
24152 # Set to yes if exported symbols are required.
24153 always_export_symbols=$always_export_symbols_F77
24155 # The commands to list exported symbols.
24156 export_symbols_cmds=$lt_export_symbols_cmds_F77
24158 # The commands to extract the exported symbol list from a shared archive.
24159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24161 # Symbols that should not be listed in the preloaded symbols.
24162 exclude_expsyms=$lt_exclude_expsyms_F77
24164 # Symbols that must always be exported.
24165 include_expsyms=$lt_include_expsyms_F77
24167 # ### END LIBTOOL TAG CONFIG: $tagname
24173 # If there is no Makefile yet, we rely on a make rule to execute
24174 # `config.status --recheck' to rerun these tests and create the
24175 # libtool script then.
24176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24177 if test -f "$ltmain_in"; then
24178 test -f Makefile && make "$ltmain"
24184 ac_cpp='$CPP $CPPFLAGS'
24185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24197 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24199 ac_cpp='$CPP $CPPFLAGS'
24200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24205 # Source file extension for Java test sources.
24208 # Object file extension for compiled Java test sources.
24212 # Code to be used in simple compile tests
24213 lt_simple_compile_test_code="class foo {}\n"
24215 # Code to be used in simple link tests
24216 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24218 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24220 # If no C compiler was specified, use CC.
24223 # If no C compiler flags were specified, use CFLAGS.
24224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24226 # Allow CC to be a program name with arguments.
24230 # save warnings/boilerplate of simple test code
24231 ac_outfile=conftest.$ac_objext
24232 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24234 _lt_compiler_boilerplate=`cat conftest.err`
24237 ac_outfile=conftest.$ac_objext
24238 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24240 _lt_linker_boilerplate=`cat conftest.err`
24244 # Allow CC to be a program name with arguments.
24249 for cc_temp in $compiler""; do
24251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24260 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24261 archive_cmds_need_lc_GCJ=no
24263 old_archive_cmds_GCJ=$old_archive_cmds
24266 lt_prog_compiler_no_builtin_flag_GCJ=
24268 if test "$GCC" = yes; then
24269 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24272 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24273 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24274 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 lt_cv_prog_compiler_rtti_exceptions=no
24278 ac_outfile=conftest.$ac_objext
24279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24280 lt_compiler_flag="-fno-rtti -fno-exceptions"
24281 # Insert the option either (1) after the last *FLAGS variable, or
24282 # (2) before a word containing "conftest.", or (3) at the end.
24283 # Note that $ac_compile itself does not contain backslashes and begins
24284 # with a dollar sign (not a hyphen), so the echo should work correctly.
24285 # The option is referenced via a variable to avoid confusing sed.
24286 lt_compile=`echo "$ac_compile" | $SED \
24287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24289 -e 's:$: $lt_compiler_flag:'`
24290 (eval echo "\"\$as_me:24290: $lt_compile\"" >&5)
24291 (eval "$lt_compile" 2>conftest.err)
24293 cat conftest.err >&5
24294 echo "$as_me:24294: \$? = $ac_status" >&5
24295 if (exit $ac_status) && test -s "$ac_outfile"; then
24296 # The compiler can only warn and ignore the option if not recognized
24297 # So say no if there are warnings other than the usual output.
24298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24301 lt_cv_prog_compiler_rtti_exceptions=yes
24307 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24308 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24310 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24311 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24318 lt_prog_compiler_wl_GCJ=
24319 lt_prog_compiler_pic_GCJ=
24320 lt_prog_compiler_static_GCJ=
24322 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24323 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24325 if test "$GCC" = yes; then
24326 lt_prog_compiler_wl_GCJ='-Wl,'
24327 lt_prog_compiler_static_GCJ='-static'
24331 # All AIX code is PIC.
24332 if test "$host_cpu" = ia64; then
24333 # AIX 5 now supports IA64 processor
24334 lt_prog_compiler_static_GCJ='-Bstatic'
24339 # FIXME: we need at least 68020 code to build shared libraries, but
24340 # adding the `-m68020' flag to GCC prevents building anything better,
24342 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24345 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24346 # PIC is the default for these OSes.
24349 mingw* | pw32* | os2*)
24350 # This hack is so that the source file can tell whether it is being
24351 # built for inclusion in a dll (and should export symbols for example).
24352 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24355 darwin* | rhapsody*)
24356 # PIC is the default on this platform
24357 # Common symbols not allowed in MH_DYLIB files
24358 lt_prog_compiler_pic_GCJ='-fno-common'
24362 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24363 # Instead, we relocate shared libraries at runtime.
24367 # Just because we use GCC doesn't mean we suddenly get shared libraries
24368 # on systems that don't support them.
24369 lt_prog_compiler_can_build_shared_GCJ=no
24374 if test -d /usr/nec; then
24375 lt_prog_compiler_pic_GCJ=-Kconform_pic
24380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24381 # not for PA HP-UX.
24387 lt_prog_compiler_pic_GCJ='-fPIC'
24393 lt_prog_compiler_pic_GCJ='-fPIC'
24397 # PORTME Check for flag to pass linker flags through the system compiler.
24400 lt_prog_compiler_wl_GCJ='-Wl,'
24401 if test "$host_cpu" = ia64; then
24402 # AIX 5 now supports IA64 processor
24403 lt_prog_compiler_static_GCJ='-Bstatic'
24405 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24409 # PIC is the default on this platform
24410 # Common symbols not allowed in MH_DYLIB files
24411 case $cc_basename in
24413 lt_prog_compiler_pic_GCJ='-qnocommon'
24414 lt_prog_compiler_wl_GCJ='-Wl,'
24419 mingw* | pw32* | os2*)
24420 # This hack is so that the source file can tell whether it is being
24421 # built for inclusion in a dll (and should export symbols for example).
24422 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24425 hpux9* | hpux10* | hpux11*)
24426 lt_prog_compiler_wl_GCJ='-Wl,'
24427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24428 # not for PA HP-UX.
24434 lt_prog_compiler_pic_GCJ='+Z'
24437 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24438 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24441 irix5* | irix6* | nonstopux*)
24442 lt_prog_compiler_wl_GCJ='-Wl,'
24443 # PIC (with -KPIC) is the default.
24444 lt_prog_compiler_static_GCJ='-non_shared'
24448 lt_prog_compiler_pic_GCJ='-KPIC'
24449 lt_prog_compiler_static_GCJ='-Bstatic'
24453 case $cc_basename in
24455 lt_prog_compiler_wl_GCJ='-Wl,'
24456 lt_prog_compiler_pic_GCJ='-KPIC'
24457 lt_prog_compiler_static_GCJ='-static'
24459 pgcc* | pgf77* | pgf90* | pgf95*)
24460 # Portland Group compilers (*not* the Pentium gcc compiler,
24461 # which looks to be a dead project)
24462 lt_prog_compiler_wl_GCJ='-Wl,'
24463 lt_prog_compiler_pic_GCJ='-fpic'
24464 lt_prog_compiler_static_GCJ='-Bstatic'
24467 lt_prog_compiler_wl_GCJ='-Wl,'
24468 # All Alpha code is PIC.
24469 lt_prog_compiler_static_GCJ='-non_shared'
24474 osf3* | osf4* | osf5*)
24475 lt_prog_compiler_wl_GCJ='-Wl,'
24476 # All OSF/1 code is PIC.
24477 lt_prog_compiler_static_GCJ='-non_shared'
24481 lt_prog_compiler_pic_GCJ='-KPIC'
24482 lt_prog_compiler_static_GCJ='-Bstatic'
24483 case $cc_basename in
24484 f77* | f90* | f95*)
24485 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24487 lt_prog_compiler_wl_GCJ='-Wl,';;
24492 lt_prog_compiler_wl_GCJ='-Qoption ld '
24493 lt_prog_compiler_pic_GCJ='-PIC'
24494 lt_prog_compiler_static_GCJ='-Bstatic'
24497 sysv4 | sysv4.2uw2* | sysv4.3*)
24498 lt_prog_compiler_wl_GCJ='-Wl,'
24499 lt_prog_compiler_pic_GCJ='-KPIC'
24500 lt_prog_compiler_static_GCJ='-Bstatic'
24504 if test -d /usr/nec ;then
24505 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24506 lt_prog_compiler_static_GCJ='-Bstatic'
24510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24511 lt_prog_compiler_wl_GCJ='-Wl,'
24512 lt_prog_compiler_pic_GCJ='-KPIC'
24513 lt_prog_compiler_static_GCJ='-Bstatic'
24517 lt_prog_compiler_wl_GCJ='-Wl,'
24518 lt_prog_compiler_can_build_shared_GCJ=no
24522 lt_prog_compiler_pic_GCJ='-pic'
24523 lt_prog_compiler_static_GCJ='-Bstatic'
24527 lt_prog_compiler_can_build_shared_GCJ=no
24532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24533 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24536 # Check to make sure the PIC flag actually works.
24538 if test -n "$lt_prog_compiler_pic_GCJ"; then
24540 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24541 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24542 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24543 echo $ECHO_N "(cached) $ECHO_C" >&6
24545 lt_prog_compiler_pic_works_GCJ=no
24546 ac_outfile=conftest.$ac_objext
24547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24548 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24549 # Insert the option either (1) after the last *FLAGS variable, or
24550 # (2) before a word containing "conftest.", or (3) at the end.
24551 # Note that $ac_compile itself does not contain backslashes and begins
24552 # with a dollar sign (not a hyphen), so the echo should work correctly.
24553 # The option is referenced via a variable to avoid confusing sed.
24554 lt_compile=`echo "$ac_compile" | $SED \
24555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24557 -e 's:$: $lt_compiler_flag:'`
24558 (eval echo "\"\$as_me:24558: $lt_compile\"" >&5)
24559 (eval "$lt_compile" 2>conftest.err)
24561 cat conftest.err >&5
24562 echo "$as_me:24562: \$? = $ac_status" >&5
24563 if (exit $ac_status) && test -s "$ac_outfile"; then
24564 # The compiler can only warn and ignore the option if not recognized
24565 # So say no if there are warnings other than the usual output.
24566 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24569 lt_prog_compiler_pic_works_GCJ=yes
24575 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24576 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24578 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24579 case $lt_prog_compiler_pic_GCJ in
24581 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24584 lt_prog_compiler_pic_GCJ=
24585 lt_prog_compiler_can_build_shared_GCJ=no
24590 # For platforms which do not support PIC, -DPIC is meaningless:
24592 lt_prog_compiler_pic_GCJ=
24595 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24600 # Check to make sure the static flag actually works.
24602 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24603 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24604 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24605 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24608 lt_prog_compiler_static_works_GCJ=no
24609 save_LDFLAGS="$LDFLAGS"
24610 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24611 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24612 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24613 # The linker can only warn and ignore the option if not recognized
24614 # So say no if there are warnings
24615 if test -s conftest.err; then
24616 # Append any errors to the config.log.
24617 cat conftest.err 1>&5
24618 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24620 if diff conftest.exp conftest.er2 >/dev/null; then
24621 lt_prog_compiler_static_works_GCJ=yes
24624 lt_prog_compiler_static_works_GCJ=yes
24628 LDFLAGS="$save_LDFLAGS"
24631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24632 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24634 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24637 lt_prog_compiler_static_GCJ=
24641 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24642 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24643 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 lt_cv_prog_compiler_c_o_GCJ=no
24647 $rm -r conftest 2>/dev/null
24651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24653 lt_compiler_flag="-o out/conftest2.$ac_objext"
24654 # Insert the option either (1) after the last *FLAGS variable, or
24655 # (2) before a word containing "conftest.", or (3) at the end.
24656 # Note that $ac_compile itself does not contain backslashes and begins
24657 # with a dollar sign (not a hyphen), so the echo should work correctly.
24658 lt_compile=`echo "$ac_compile" | $SED \
24659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24661 -e 's:$: $lt_compiler_flag:'`
24662 (eval echo "\"\$as_me:24662: $lt_compile\"" >&5)
24663 (eval "$lt_compile" 2>out/conftest.err)
24665 cat out/conftest.err >&5
24666 echo "$as_me:24666: \$? = $ac_status" >&5
24667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24669 # The compiler can only warn and ignore the option if not recognized
24670 # So say no if there are warnings
24671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24674 lt_cv_prog_compiler_c_o_GCJ=yes
24679 # SGI C++ compiler will create directory out/ii_files/ for
24680 # template instantiation
24681 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24682 $rm out/* && rmdir out
24688 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24689 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24692 hard_links="nottested"
24693 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24694 # do not overwrite the value of need_locks provided by the user
24695 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24696 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24701 ln conftest.a conftest.b 2>&5 || hard_links=no
24702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24703 { echo "$as_me:$LINENO: result: $hard_links" >&5
24704 echo "${ECHO_T}$hard_links" >&6; }
24705 if test "$hard_links" = no; then
24706 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24707 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24714 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24715 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24718 allow_undefined_flag_GCJ=
24719 enable_shared_with_static_runtimes_GCJ=no
24721 archive_expsym_cmds_GCJ=
24722 old_archive_From_new_cmds_GCJ=
24723 old_archive_from_expsyms_cmds_GCJ=
24724 export_dynamic_flag_spec_GCJ=
24725 whole_archive_flag_spec_GCJ=
24726 thread_safe_flag_spec_GCJ=
24727 hardcode_libdir_flag_spec_GCJ=
24728 hardcode_libdir_flag_spec_ld_GCJ=
24729 hardcode_libdir_separator_GCJ=
24730 hardcode_direct_GCJ=no
24731 hardcode_minus_L_GCJ=no
24732 hardcode_shlibpath_var_GCJ=unsupported
24733 link_all_deplibs_GCJ=unknown
24734 hardcode_automatic_GCJ=no
24736 module_expsym_cmds_GCJ=
24737 always_export_symbols_GCJ=no
24738 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24739 # include_expsyms should be a list of space-separated symbols to be *always*
24740 # included in the symbol list
24741 include_expsyms_GCJ=
24742 # exclude_expsyms can be an extended regexp of symbols to exclude
24743 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24744 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24745 # as well as any symbol that contains `d'.
24746 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24747 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24748 # platforms (ab)use it in PIC code, but their linkers get confused if
24749 # the symbol is explicitly referenced. Since portable code cannot
24750 # rely on this symbol name, it's probably fine to never include it in
24751 # preloaded symbol tables.
24752 extract_expsyms_cmds=
24753 # Just being paranoid about ensuring that cc_basename is set.
24754 for cc_temp in $compiler""; do
24756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24762 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24765 cygwin* | mingw* | pw32*)
24766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24767 # When not using gcc, we currently assume that we are using
24768 # Microsoft Visual C++.
24769 if test "$GCC" != yes; then
24774 # we just hope/assume this is gcc and not c89 (= MSVC++)
24783 if test "$with_gnu_ld" = yes; then
24784 # If archive_cmds runs LD, not CC, wlarc should be empty
24787 # Set some defaults for GNU ld with shared library support. These
24788 # are reset later if shared libraries are not supported. Putting them
24789 # here allows them to be overridden if necessary.
24790 runpath_var=LD_RUN_PATH
24791 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24792 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24793 # ancient GNU ld didn't support --whole-archive et. al.
24794 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24795 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24797 whole_archive_flag_spec_GCJ=
24799 supports_anon_versioning=no
24800 case `$LD -v 2>/dev/null` in
24801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24804 *\ 2.11.*) ;; # other 2.11 versions
24805 *) supports_anon_versioning=yes ;;
24808 # See if GNU ld supports shared libraries.
24810 aix3* | aix4* | aix5*)
24811 # On AIX/PPC, the GNU linker is very broken
24812 if test "$host_cpu" != ia64; then
24816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24817 *** to be unable to reliably create shared libraries on AIX.
24818 *** Therefore, libtool is disabling shared libraries support. If you
24819 *** really care for shared libraries, you may want to modify your PATH
24820 *** so that a non-GNU linker is found, and then restart.
24827 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)'
24828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24829 hardcode_minus_L_GCJ=yes
24831 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24832 # that the semantics of dynamic libraries on AmigaOS, at least up
24833 # to version 4, is to share data among multiple programs linked
24834 # with the same dynamic library. Since this doesn't match the
24835 # behavior of shared libraries on other platforms, we can't use
24841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24842 allow_undefined_flag_GCJ=unsupported
24843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24844 # support --undefined. This deserves some investigation. FIXME
24845 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24851 cygwin* | mingw* | pw32*)
24852 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24853 # as there is no search path for DLLs.
24854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24855 allow_undefined_flag_GCJ=unsupported
24856 always_export_symbols_GCJ=no
24857 enable_shared_with_static_runtimes_GCJ=yes
24858 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24860 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24861 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24862 # If the export-symbols file already is a .def file (1st line
24863 # is EXPORTS), use it as is; otherwise, prepend...
24864 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24865 cp $export_symbols $output_objdir/$soname.def;
24867 echo EXPORTS > $output_objdir/$soname.def;
24868 cat $export_symbols >> $output_objdir/$soname.def;
24870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24877 hardcode_direct_GCJ=no
24878 hardcode_shlibpath_var_GCJ=no
24879 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24880 export_dynamic_flag_spec_GCJ='${wl}-E'
24881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24882 # Instead, shared libraries are loaded at an image base (0x10000000 by
24883 # default) and relocated if they conflict, which is a slow very memory
24884 # consuming and fragmenting process. To avoid this, we pick a random,
24885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24887 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'
24888 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'
24892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24894 case $cc_basename,$host_cpu in
24895 pgcc*) # Portland Group C compiler
24896 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'
24897 tmp_addflag=' $pic_flag'
24899 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24900 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'
24901 tmp_addflag=' $pic_flag -Mnomain' ;;
24902 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24903 tmp_addflag=' -i_dynamic' ;;
24904 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24905 tmp_addflag=' -i_dynamic -nofor_main' ;;
24906 ifc* | ifort*) # Intel Fortran compiler
24907 tmp_addflag=' -nofor_main' ;;
24909 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24911 if test $supports_anon_versioning = yes; then
24912 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24914 $echo "local: *; };" >> $output_objdir/$libname.ver~
24915 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24924 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24927 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24928 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24933 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24937 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24938 *** create shared libraries on Solaris systems. Therefore, libtool
24939 *** is disabling shared libraries support. We urge you to upgrade GNU
24940 *** binutils to release 2.9.1 or newer. Another option is to modify
24941 *** your PATH or compiler configuration so that the native linker is
24942 *** used, and then restart.
24945 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24946 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24947 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24954 case `$LD -v 2>&1` in
24955 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24959 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24960 *** reliably create shared libraries on SCO systems. Therefore, libtool
24961 *** is disabling shared libraries support. We urge you to upgrade GNU
24962 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24963 *** your PATH or compiler configuration so that the native linker is
24964 *** used, and then restart.
24969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24970 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24971 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24972 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24981 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24983 hardcode_direct_GCJ=yes
24984 hardcode_shlibpath_var_GCJ=no
24988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24997 if test "$ld_shlibs_GCJ" = no; then
24999 hardcode_libdir_flag_spec_GCJ=
25000 export_dynamic_flag_spec_GCJ=
25001 whole_archive_flag_spec_GCJ=
25004 # PORTME fill in a description of your system's linker (not GNU ld)
25007 allow_undefined_flag_GCJ=unsupported
25008 always_export_symbols_GCJ=yes
25009 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'
25010 # Note: this linker hardcodes the directories in LIBPATH if there
25011 # are no directories specified by -L.
25012 hardcode_minus_L_GCJ=yes
25013 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25014 # Neither direct hardcoding nor static linking is supported with a
25016 hardcode_direct_GCJ=unsupported
25021 if test "$host_cpu" = ia64; then
25022 # On IA64, the linker does run time linking by default, so we don't
25023 # have to do anything special.
25024 aix_use_runtimelinking=no
25025 exp_sym_flag='-Bexport'
25028 # If we're using GNU nm, then we don't want the "-C" option.
25029 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25030 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25031 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'
25033 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'
25035 aix_use_runtimelinking=no
25037 # Test if we are trying to use run time linking or normal
25038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25039 # need to do runtime linking.
25040 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25041 for ld_flag in $LDFLAGS; do
25042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25043 aix_use_runtimelinking=yes
25050 exp_sym_flag='-bexport'
25051 no_entry_flag='-bnoentry'
25054 # When large executables or shared objects are built, AIX ld can
25055 # have problems creating the table of contents. If linking a library
25056 # or program results in "error TOC overflow" add -mminimal-toc to
25057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25060 archive_cmds_GCJ=''
25061 hardcode_direct_GCJ=yes
25062 hardcode_libdir_separator_GCJ=':'
25063 link_all_deplibs_GCJ=yes
25065 if test "$GCC" = yes; then
25066 case $host_os in aix4.[012]|aix4.[012].*)
25067 # We only want to do this on AIX 4.2 and lower, the check
25068 # below for broken collect2 doesn't work under 4.3+
25069 collect2name=`${CC} -print-prog-name=collect2`
25070 if test -f "$collect2name" && \
25071 strings "$collect2name" | grep resolve_lib_name >/dev/null
25073 # We have reworked collect2
25074 hardcode_direct_GCJ=yes
25076 # We have old collect2
25077 hardcode_direct_GCJ=unsupported
25078 # It fails to find uninstalled libraries when the uninstalled
25079 # path is not listed in the libpath. Setting hardcode_minus_L
25080 # to unsupported forces relinking
25081 hardcode_minus_L_GCJ=yes
25082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25083 hardcode_libdir_separator_GCJ=
25087 shared_flag='-shared'
25088 if test "$aix_use_runtimelinking" = yes; then
25089 shared_flag="$shared_flag "'${wl}-G'
25093 if test "$host_cpu" = ia64; then
25094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25095 # chokes on -Wl,-G. The following line is correct:
25098 if test "$aix_use_runtimelinking" = yes; then
25099 shared_flag='${wl}-G'
25101 shared_flag='${wl}-bM:SRE'
25106 # It seems that -bexpall does not export symbols beginning with
25107 # underscore (_), so it is better to generate a list of symbols to export.
25108 always_export_symbols_GCJ=yes
25109 if test "$aix_use_runtimelinking" = yes; then
25110 # Warning - without using the other runtime loading flags (-brtl),
25111 # -berok will link without error, but may produce a broken library.
25112 allow_undefined_flag_GCJ='-berok'
25113 # Determine the default libpath from the value encoded in an empty executable.
25114 cat >conftest.$ac_ext <<_ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25129 rm -f conftest.$ac_objext conftest$ac_exeext
25130 if { (ac_try="$ac_link"
25131 case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136 (eval "$ac_link") 2>conftest.er1
25138 grep -v '^ *+' conftest.er1 >conftest.err
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } &&
25143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25144 { (case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149 (eval "$ac_try") 2>&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; } &&
25153 { ac_try='test -s conftest$ac_exeext'
25154 { (case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_try") 2>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25166 # Check for a 64-bit object if we didn't find anything.
25167 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; }
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25176 rm -f core conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
25178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25180 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25181 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"
25183 if test "$host_cpu" = ia64; then
25184 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25185 allow_undefined_flag_GCJ="-z nodefs"
25186 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"
25188 # Determine the default libpath from the value encoded in an empty executable.
25189 cat >conftest.$ac_ext <<_ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (ac_try="$ac_link"
25206 case "(($ac_try" in
25207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208 *) ac_try_echo=$ac_try;;
25210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211 (eval "$ac_link") 2>conftest.er1
25213 grep -v '^ *+' conftest.er1 >conftest.err
25215 cat conftest.err >&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } &&
25218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25219 { (case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224 (eval "$ac_try") 2>&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; } &&
25228 { ac_try='test -s conftest$ac_exeext'
25229 { (case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_try") 2>&5
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; }; then
25239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25241 # Check for a 64-bit object if we didn't find anything.
25242 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; }
25245 echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25251 rm -f core conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
25253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25255 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25256 # Warning - without using the other run time loading flags,
25257 # -berok will link without error, but may produce a broken library.
25258 no_undefined_flag_GCJ=' ${wl}-bernotok'
25259 allow_undefined_flag_GCJ=' ${wl}-berok'
25260 # Exported symbols can be pulled into shared objects from archives
25261 whole_archive_flag_spec_GCJ='$convenience'
25262 archive_cmds_need_lc_GCJ=yes
25263 # This is similar to how AIX traditionally builds its shared libraries.
25264 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'
25270 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)'
25271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25272 hardcode_minus_L_GCJ=yes
25273 # see comment about different semantics on the GNU ld section
25278 export_dynamic_flag_spec_GCJ=-rdynamic
25281 cygwin* | mingw* | pw32*)
25282 # When not using gcc, we currently assume that we are using
25283 # Microsoft Visual C++.
25284 # hardcode_libdir_flag_spec is actually meaningless, as there is
25285 # no search path for DLLs.
25286 hardcode_libdir_flag_spec_GCJ=' '
25287 allow_undefined_flag_GCJ=unsupported
25288 # Tell ltmain to make .lib files, not .a files.
25290 # Tell ltmain to make .dll files, not .so files.
25292 # FIXME: Setting linknames here is a bad hack.
25293 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25294 # The linker will automatically build a .lib file if we build a DLL.
25295 old_archive_From_new_cmds_GCJ='true'
25296 # FIXME: Should let the user specify the lib program.
25297 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25298 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25299 enable_shared_with_static_runtimes_GCJ=yes
25302 darwin* | rhapsody*)
25304 rhapsody* | darwin1.[012])
25305 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25308 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25309 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25311 case ${MACOSX_DEPLOYMENT_TARGET} in
25313 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25316 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25322 archive_cmds_need_lc_GCJ=no
25323 hardcode_direct_GCJ=no
25324 hardcode_automatic_GCJ=yes
25325 hardcode_shlibpath_var_GCJ=unsupported
25326 whole_archive_flag_spec_GCJ=''
25327 link_all_deplibs_GCJ=yes
25328 if test "$GCC" = yes ; then
25329 output_verbose_link_cmd='echo'
25330 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25331 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25333 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}'
25334 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}'
25336 case $cc_basename in
25338 output_verbose_link_cmd='echo'
25339 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25340 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25342 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}'
25343 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}'
25353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25355 hardcode_shlibpath_var_GCJ=no
25362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25363 # support. Future versions do this automatically, but an explicit c++rt0.o
25364 # does not break anything, and helps significantly (at the cost of a little
25367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25369 hardcode_direct_GCJ=yes
25370 hardcode_shlibpath_var_GCJ=no
25373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25375 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25376 hardcode_direct_GCJ=yes
25377 hardcode_minus_L_GCJ=yes
25378 hardcode_shlibpath_var_GCJ=no
25381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25382 freebsd* | kfreebsd*-gnu | dragonfly*)
25383 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25385 hardcode_direct_GCJ=yes
25386 hardcode_shlibpath_var_GCJ=no
25390 if test "$GCC" = yes; then
25391 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'
25393 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'
25395 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25396 hardcode_libdir_separator_GCJ=:
25397 hardcode_direct_GCJ=yes
25399 # hardcode_minus_L: Not really in the search PATH,
25400 # but as the default location of the library.
25401 hardcode_minus_L_GCJ=yes
25402 export_dynamic_flag_spec_GCJ='${wl}-E'
25406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25407 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25409 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25411 if test "$with_gnu_ld" = no; then
25412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25413 hardcode_libdir_separator_GCJ=:
25415 hardcode_direct_GCJ=yes
25416 export_dynamic_flag_spec_GCJ='${wl}-E'
25418 # hardcode_minus_L: Not really in the search PATH,
25419 # but as the default location of the library.
25420 hardcode_minus_L_GCJ=yes
25425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25428 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25431 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25434 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25440 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25443 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25446 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25450 if test "$with_gnu_ld" = no; then
25451 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25452 hardcode_libdir_separator_GCJ=:
25456 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25457 hardcode_direct_GCJ=no
25458 hardcode_shlibpath_var_GCJ=no
25461 hardcode_direct_GCJ=yes
25462 export_dynamic_flag_spec_GCJ='${wl}-E'
25464 # hardcode_minus_L: Not really in the search PATH,
25465 # but as the default location of the library.
25466 hardcode_minus_L_GCJ=yes
25472 irix5* | irix6* | nonstopux*)
25473 if test "$GCC" = yes; then
25474 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'
25476 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'
25477 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25480 hardcode_libdir_separator_GCJ=:
25481 link_all_deplibs_GCJ=yes
25485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25486 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25488 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25491 hardcode_direct_GCJ=yes
25492 hardcode_shlibpath_var_GCJ=no
25496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25497 hardcode_direct_GCJ=yes
25498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25499 hardcode_libdir_separator_GCJ=:
25500 hardcode_shlibpath_var_GCJ=no
25504 hardcode_direct_GCJ=yes
25505 hardcode_shlibpath_var_GCJ=no
25506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25507 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25508 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25510 export_dynamic_flag_spec_GCJ='${wl}-E'
25513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25527 hardcode_minus_L_GCJ=yes
25528 allow_undefined_flag_GCJ=unsupported
25529 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'
25530 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25534 if test "$GCC" = yes; then
25535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25536 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'
25538 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25539 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'
25541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25542 hardcode_libdir_separator_GCJ=:
25545 osf4* | osf5*) # as osf3* with the addition of -msym flag
25546 if test "$GCC" = yes; then
25547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25548 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'
25549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25551 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25552 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'
25553 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~
25554 $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'
25556 # Both c and cxx compiler support -rpath directly
25557 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25559 hardcode_libdir_separator_GCJ=:
25563 no_undefined_flag_GCJ=' -z text'
25564 if test "$GCC" = yes; then
25566 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25567 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25571 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25576 hardcode_shlibpath_var_GCJ=no
25578 solaris2.[0-5] | solaris2.[0-5].*) ;;
25580 # The compiler driver will combine linker options so we
25581 # cannot just pass the convience library names through
25582 # without $wl, iff we do not link with $LD.
25583 # Luckily, gcc supports the same syntax we need for Sun Studio.
25584 # Supported since Solaris 2.6 (maybe 2.5.1?)
25587 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25589 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' ;;
25592 link_all_deplibs_GCJ=yes
25596 if test "x$host_vendor" = xsequent; then
25597 # Use $CC to link under sequent, because it throws in some extra .o
25598 # files that make .init and .fini sections work.
25599 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25601 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25604 hardcode_direct_GCJ=yes
25605 hardcode_minus_L_GCJ=yes
25606 hardcode_shlibpath_var_GCJ=no
25610 case $host_vendor in
25612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25613 hardcode_direct_GCJ=yes # is this really true???
25616 ## LD is ld it makes a PLAMLIB
25617 ## CC just makes a GrossModule.
25618 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25619 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25620 hardcode_direct_GCJ=no
25623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25624 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25627 runpath_var='LD_RUN_PATH'
25628 hardcode_shlibpath_var_GCJ=no
25632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25633 hardcode_shlibpath_var_GCJ=no
25634 export_dynamic_flag_spec_GCJ='-Bexport'
25638 if test -d /usr/nec; then
25639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25640 hardcode_shlibpath_var_GCJ=no
25641 runpath_var=LD_RUN_PATH
25642 hardcode_runpath_var=yes
25647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25648 no_undefined_flag_GCJ='${wl}-z,text'
25649 archive_cmds_need_lc_GCJ=no
25650 hardcode_shlibpath_var_GCJ=no
25651 runpath_var='LD_RUN_PATH'
25653 if test "$GCC" = yes; then
25654 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25655 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25657 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25658 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25662 sysv5* | sco3.2v5* | sco5v6*)
25663 # Note: We can NOT use -z defs as we might desire, because we do not
25664 # link with -lc, and that would cause any symbols used from libc to
25665 # always be unresolved, which means just about no library would
25666 # ever link correctly. If we're not using GNU ld we use -z text
25667 # though, which does catch some bad symbols but isn't as heavy-handed
25669 no_undefined_flag_GCJ='${wl}-z,text'
25670 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25671 archive_cmds_need_lc_GCJ=no
25672 hardcode_shlibpath_var_GCJ=no
25673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25674 hardcode_libdir_separator_GCJ=':'
25675 link_all_deplibs_GCJ=yes
25676 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25677 runpath_var='LD_RUN_PATH'
25679 if test "$GCC" = yes; then
25680 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25681 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25683 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25684 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25691 hardcode_shlibpath_var_GCJ=no
25700 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25701 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25702 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25705 # Do we need to explicitly link libc?
25707 case "x$archive_cmds_need_lc_GCJ" in
25709 # Assume -lc should be added
25710 archive_cmds_need_lc_GCJ=yes
25712 if test "$enable_shared" = yes && test "$GCC" = yes; then
25713 case $archive_cmds_GCJ in
25715 # FIXME: we may have to deal with multi-command sequences.
25718 # Test whether the compiler implicitly links with -lc since on some
25719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25720 # to ld, don't add -lc before -lgcc.
25721 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25722 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727 (eval $ac_compile) 2>&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } 2>conftest.err; then
25733 libobjs=conftest.$ac_objext
25735 wl=$lt_prog_compiler_wl_GCJ
25736 pic_flag=$lt_prog_compiler_pic_GCJ
25742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25743 allow_undefined_flag_GCJ=
25744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }
25750 archive_cmds_need_lc_GCJ=no
25752 archive_cmds_need_lc_GCJ=yes
25754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25756 cat conftest.err 1>&5
25759 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25760 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25767 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25769 library_names_spec=
25770 libname_spec='lib$name'
25774 postuninstall_cmds=
25778 shlibpath_overrides_runpath=unknown
25780 dynamic_linker="$host_os ld.so"
25781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25782 if test "$GCC" = yes; then
25783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25785 # if the path contains ";" then we assume it to be the separator
25786 # otherwise default to the standard path separator (i.e. ":") - it is
25787 # assumed that no part of a normal pathname contains ";" but that should
25788 # okay in the real world where ";" in dirpaths is itself problematic.
25789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25796 need_lib_prefix=unknown
25797 hardcode_into_libs=no
25799 # when you set need_version to no, make sure it does not cause -set_version
25800 # flags to be left without arguments
25801 need_version=unknown
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25807 shlibpath_var=LIBPATH
25809 # AIX 3 has no versioning support, so we append a major version to the name.
25810 soname_spec='${libname}${release}${shared_ext}$major'
25817 hardcode_into_libs=yes
25818 if test "$host_cpu" = ia64; then
25819 # AIX 5 supports IA64
25820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25821 shlibpath_var=LD_LIBRARY_PATH
25823 # With GCC up to 2.95.x, collect2 would create an import file
25824 # for dependence libraries. The import file would start with
25825 # the line `#! .'. This would cause the generated library to
25826 # depend on `.', always an invalid library. This was fixed in
25827 # development snapshots of GCC prior to 3.0.
25829 aix4 | aix4.[01] | aix4.[01].*)
25830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25835 can_build_shared=no
25839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25840 # soname into executable. Probably we can add versioning support to
25841 # collect2, so additional links can be useful in future.
25842 if test "$aix_use_runtimelinking" = yes; then
25843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25844 # instead of lib<name>.a to let people know that these are not
25845 # typical AIX shared libraries.
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25848 # We preserve .a as extension for shared libraries through AIX4.2
25849 # and later when we are not doing run time linking.
25850 library_names_spec='${libname}${release}.a $libname.a'
25851 soname_spec='${libname}${release}${shared_ext}$major'
25853 shlibpath_var=LIBPATH
25858 library_names_spec='$libname.ixlibrary $libname.a'
25859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25860 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'
25864 library_names_spec='${libname}${shared_ext}'
25865 dynamic_linker="$host_os ld.so"
25866 shlibpath_var=LIBRARY_PATH
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25875 shlibpath_var=LD_LIBRARY_PATH
25876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25878 # the default ld.so.conf also contains /usr/contrib/lib and
25879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25880 # libtool to hard-code these into programs
25883 cygwin* | mingw* | pw32*)
25884 version_type=windows
25889 case $GCC,$host_os in
25890 yes,cygwin* | yes,mingw* | yes,pw32*)
25891 library_names_spec='$libname.dll.a'
25892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25893 postinstall_cmds='base_file=`basename \${file}`~
25894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25895 dldir=$destdir/`dirname \$dlpath`~
25896 test -d \$dldir || mkdir -p \$dldir~
25897 $install_prog $dir/$dlname \$dldir/$dlname~
25898 chmod a+x \$dldir/$dlname'
25899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25900 dlpath=$dir/\$dldll~
25902 shlibpath_overrides_runpath=yes
25906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25911 # MinGW DLLs use traditional 'lib' prefix
25912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25915 # It is most probably a Windows format PATH printed by
25916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25917 # path with ; separators, and with drive letters. We can handle the
25918 # drive letters (cygwin fileutils understands them), so leave them,
25919 # especially as we might pass files found there to a mingw objdump,
25920 # which wouldn't understand a cygwinified path. Ahh.
25921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25927 # pw32 DLLs use 'pw' prefix rather than 'lib'
25928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25937 dynamic_linker='Win32 ld.exe'
25938 # FIXME: first we should search . and the directory the executable is in
25942 darwin* | rhapsody*)
25943 dynamic_linker="$host_os dyld"
25944 version_type=darwin
25947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25948 soname_spec='${libname}${release}${major}$shared_ext'
25949 shlibpath_overrides_runpath=yes
25950 shlibpath_var=DYLD_LIBRARY_PATH
25951 shrext_cmds='.dylib'
25952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25953 if test "$GCC" = yes; then
25954 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"`
25956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25966 soname_spec='${libname}${release}${shared_ext}$major'
25967 shlibpath_var=LD_LIBRARY_PATH
25978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979 soname_spec='${libname}${release}${shared_ext}$major'
25980 shlibpath_var=LD_LIBRARY_PATH
25981 shlibpath_overrides_runpath=no
25982 hardcode_into_libs=yes
25983 dynamic_linker='GNU ld.so'
25986 freebsd* | dragonfly*)
25987 # DragonFly does not have aout. When/if they implement a new
25988 # versioning mechanism, adjust this.
25989 if test -x /usr/bin/objformat; then
25990 objformat=`/usr/bin/objformat`
25993 freebsd[123]*) objformat=aout ;;
25994 *) objformat=elf ;;
25997 version_type=freebsd-$objformat
25998 case $version_type in
26000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26009 shlibpath_var=LD_LIBRARY_PATH
26012 shlibpath_overrides_runpath=yes
26014 freebsd3.[01]* | freebsdelf3.[01]*)
26015 shlibpath_overrides_runpath=yes
26016 hardcode_into_libs=yes
26018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26020 shlibpath_overrides_runpath=no
26021 hardcode_into_libs=yes
26023 freebsd*) # from 4.6 on
26024 shlibpath_overrides_runpath=yes
26025 hardcode_into_libs=yes
26034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26035 soname_spec='${libname}${release}${shared_ext}$major'
26036 shlibpath_var=LD_LIBRARY_PATH
26037 hardcode_into_libs=yes
26040 hpux9* | hpux10* | hpux11*)
26041 # Give a soname corresponding to the major version so that dld.sl refuses to
26042 # link against other versions.
26049 hardcode_into_libs=yes
26050 dynamic_linker="$host_os dld.so"
26051 shlibpath_var=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054 soname_spec='${libname}${release}${shared_ext}$major'
26055 if test "X$HPUX_IA64_MODE" = X32; then
26056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26064 hardcode_into_libs=yes
26065 dynamic_linker="$host_os dld.sl"
26066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26069 soname_spec='${libname}${release}${shared_ext}$major'
26070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26075 dynamic_linker="$host_os dld.sl"
26076 shlibpath_var=SHLIB_PATH
26077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26079 soname_spec='${libname}${release}${shared_ext}$major'
26082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26083 postinstall_cmds='chmod 555 $lib'
26090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26091 soname_spec='${libname}${release}${shared_ext}$major'
26092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26093 shlibpath_var=LD_LIBRARY_PATH
26094 shlibpath_overrides_runpath=no
26095 hardcode_into_libs=yes
26098 irix5* | irix6* | nonstopux*)
26100 nonstopux*) version_type=nonstopux ;;
26102 if test "$lt_cv_prog_gnu_ld" = yes; then
26110 soname_spec='${libname}${release}${shared_ext}$major'
26111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26113 irix5* | nonstopux*)
26114 libsuff= shlibsuff=
26117 case $LD in # libtool.m4 will add one of these switches to LD
26118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26119 libsuff= shlibsuff= libmagic=32-bit;;
26120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26121 libsuff=32 shlibsuff=N32 libmagic=N32;;
26122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26124 *) libsuff= shlibsuff= libmagic=never-match;;
26128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26129 shlibpath_overrides_runpath=no
26130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26132 hardcode_into_libs=yes
26135 # No shared lib support for Linux oldld, aout, or coff.
26136 linux*oldld* | linux*aout* | linux*coff*)
26140 # This must be Linux ELF.
26145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26146 soname_spec='${libname}${release}${shared_ext}$major'
26147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 shlibpath_overrides_runpath=no
26150 # This implies no fast_install, which is unacceptable.
26151 # Some rework will be needed to allow for fast_install
26152 # before this can be enabled.
26153 hardcode_into_libs=yes
26155 # Append ld.so.conf contents to the search path
26156 if test -f /etc/ld.so.conf; then
26157 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' ' '`
26158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26161 # We used to test for /lib/ld.so.1 and disable shared libraries on
26162 # powerpc, because MkLinux only supported shared libraries with the
26163 # GNU dynamic linker. Since this was broken with cross compilers,
26164 # most powerpc-linux boxes support dynamic linking these days and
26165 # people can always --disable-shared, the test was removed, and we
26166 # assume the GNU/Linux dynamic linker is in use.
26167 dynamic_linker='GNU/Linux ld.so'
26174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26175 soname_spec='${libname}${release}${shared_ext}$major'
26176 shlibpath_var=LD_LIBRARY_PATH
26177 shlibpath_overrides_runpath=no
26178 hardcode_into_libs=yes
26179 dynamic_linker='GNU ld.so'
26186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26189 dynamic_linker='NetBSD (a.out) ld.so'
26191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26192 soname_spec='${libname}${release}${shared_ext}$major'
26193 dynamic_linker='NetBSD ld.elf_so'
26195 shlibpath_var=LD_LIBRARY_PATH
26196 shlibpath_overrides_runpath=yes
26197 hardcode_into_libs=yes
26202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26203 shlibpath_var=LD_LIBRARY_PATH
26204 shlibpath_overrides_runpath=yes
26211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26212 soname_spec='${libname}${release}${shared_ext}$major'
26213 shlibpath_var=LD_LIBRARY_PATH
26214 shlibpath_overrides_runpath=yes
26219 sys_lib_dlsearch_path_spec="/usr/lib"
26221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26223 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26224 *) need_version=no ;;
26226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26228 shlibpath_var=LD_LIBRARY_PATH
26229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26231 openbsd2.[89] | openbsd2.[89].*)
26232 shlibpath_overrides_runpath=no
26235 shlibpath_overrides_runpath=yes
26239 shlibpath_overrides_runpath=yes
26244 libname_spec='$name'
26247 library_names_spec='$libname${shared_ext} $libname.a'
26248 dynamic_linker='OS/2 ld.exe'
26249 shlibpath_var=LIBPATH
26252 osf3* | osf4* | osf5*)
26256 soname_spec='${libname}${release}${shared_ext}$major'
26257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26258 shlibpath_var=LD_LIBRARY_PATH
26259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26268 soname_spec='${libname}${release}${shared_ext}$major'
26269 shlibpath_var=LD_LIBRARY_PATH
26270 shlibpath_overrides_runpath=yes
26271 hardcode_into_libs=yes
26272 # ldd complains unless libraries are executable
26273 postinstall_cmds='chmod +x $lib'
26278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26280 shlibpath_var=LD_LIBRARY_PATH
26281 shlibpath_overrides_runpath=yes
26282 if test "$with_gnu_ld" = yes; then
26290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26291 soname_spec='${libname}${release}${shared_ext}$major'
26292 shlibpath_var=LD_LIBRARY_PATH
26293 case $host_vendor in
26295 shlibpath_overrides_runpath=no
26297 export_dynamic_flag_spec='${wl}-Blargedynsym'
26298 runpath_var=LD_RUN_PATH
26306 shlibpath_overrides_runpath=no
26307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26313 if test -d /usr/nec ;then
26315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26316 soname_spec='$libname${shared_ext}.$major'
26317 shlibpath_var=LD_LIBRARY_PATH
26321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26322 version_type=freebsd-elf
26325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26326 soname_spec='${libname}${release}${shared_ext}$major'
26327 shlibpath_var=LD_LIBRARY_PATH
26328 hardcode_into_libs=yes
26329 if test "$with_gnu_ld" = yes; then
26330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26331 shlibpath_overrides_runpath=no
26333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26334 shlibpath_overrides_runpath=yes
26337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26341 sys_lib_dlsearch_path_spec='/usr/lib'
26346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26347 soname_spec='${libname}${release}${shared_ext}$major'
26348 shlibpath_var=LD_LIBRARY_PATH
26355 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26356 echo "${ECHO_T}$dynamic_linker" >&6; }
26357 test "$dynamic_linker" = no && can_build_shared=no
26359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26360 if test "$GCC" = yes; then
26361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26364 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26365 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26366 hardcode_action_GCJ=
26367 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26368 test -n "$runpath_var_GCJ" || \
26369 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26371 # We can hardcode non-existant directories.
26372 if test "$hardcode_direct_GCJ" != no &&
26373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26374 # have to relink, otherwise we might link with an installed library
26375 # when we should be linking with a yet-to-be-installed one
26376 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26377 test "$hardcode_minus_L_GCJ" != no; then
26378 # Linking always hardcodes the temporary library directory.
26379 hardcode_action_GCJ=relink
26381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26382 hardcode_action_GCJ=immediate
26385 # We cannot hardcode anything, or else we can only hardcode existing
26387 hardcode_action_GCJ=unsupported
26389 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26390 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26392 if test "$hardcode_action_GCJ" = relink; then
26393 # Fast installation is not supported
26394 enable_fast_install=no
26395 elif test "$shlibpath_overrides_runpath" = yes ||
26396 test "$enable_shared" = no; then
26397 # Fast installation is not necessary
26398 enable_fast_install=needless
26402 # The else clause should only fire when bootstrapping the
26403 # libtool distribution, otherwise you forgot to ship ltmain.sh
26404 # with your package, and you will get complaints that there are
26405 # no rules to generate ltmain.sh.
26406 if test -f "$ltmain"; then
26407 # See if we are running on zsh, and set the options which allow our commands through
26408 # without removal of \ escapes.
26409 if test -n "${ZSH_VERSION+set}" ; then
26410 setopt NO_GLOB_SUBST
26412 # Now quote all the things that may contain metacharacters while being
26413 # careful not to overquote the AC_SUBSTed values. We take copies of the
26414 # variables and quote the copies for generation of the libtool script.
26415 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26417 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26418 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26419 deplibs_check_method reload_flag reload_cmds need_locks \
26420 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26421 lt_cv_sys_global_symbol_to_c_name_address \
26422 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26423 old_postinstall_cmds old_postuninstall_cmds \
26427 lt_prog_compiler_wl_GCJ \
26428 lt_prog_compiler_pic_GCJ \
26429 lt_prog_compiler_static_GCJ \
26430 lt_prog_compiler_no_builtin_flag_GCJ \
26431 export_dynamic_flag_spec_GCJ \
26432 thread_safe_flag_spec_GCJ \
26433 whole_archive_flag_spec_GCJ \
26434 enable_shared_with_static_runtimes_GCJ \
26435 old_archive_cmds_GCJ \
26436 old_archive_from_new_cmds_GCJ \
26437 predep_objects_GCJ \
26438 postdep_objects_GCJ \
26441 compiler_lib_search_path_GCJ \
26443 archive_expsym_cmds_GCJ \
26444 postinstall_cmds_GCJ \
26445 postuninstall_cmds_GCJ \
26446 old_archive_from_expsyms_cmds_GCJ \
26447 allow_undefined_flag_GCJ \
26448 no_undefined_flag_GCJ \
26449 export_symbols_cmds_GCJ \
26450 hardcode_libdir_flag_spec_GCJ \
26451 hardcode_libdir_flag_spec_ld_GCJ \
26452 hardcode_libdir_separator_GCJ \
26453 hardcode_automatic_GCJ \
26455 module_expsym_cmds_GCJ \
26456 lt_cv_prog_compiler_c_o_GCJ \
26457 exclude_expsyms_GCJ \
26458 include_expsyms_GCJ; do
26461 old_archive_cmds_GCJ | \
26462 old_archive_from_new_cmds_GCJ | \
26463 archive_cmds_GCJ | \
26464 archive_expsym_cmds_GCJ | \
26465 module_cmds_GCJ | \
26466 module_expsym_cmds_GCJ | \
26467 old_archive_from_expsyms_cmds_GCJ | \
26468 export_symbols_cmds_GCJ | \
26469 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26470 postinstall_cmds | postuninstall_cmds | \
26471 old_postinstall_cmds | old_postuninstall_cmds | \
26472 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26473 # Double-quote double-evaled strings.
26474 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26483 *'\$0 --fallback-echo"')
26484 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26490 cat <<__EOF__ >> "$cfgfile"
26491 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26495 # Shell to use when invoking shell scripts.
26498 # Whether or not to build shared libraries.
26499 build_libtool_libs=$enable_shared
26501 # Whether or not to build static libraries.
26502 build_old_libs=$enable_static
26504 # Whether or not to add -lc for building shared libraries.
26505 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26507 # Whether or not to disallow shared libs when runtime libs are static
26508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26510 # Whether or not to optimize for fast installation.
26511 fast_install=$enable_fast_install
26514 host_alias=$host_alias
26518 # The build system.
26519 build_alias=$build_alias
26523 # An echo program that does not interpret backslashes.
26528 AR_FLAGS=$lt_AR_FLAGS
26533 # LTCC compiler flags.
26534 LTCFLAGS=$lt_LTCFLAGS
26536 # A language-specific compiler.
26537 CC=$lt_compiler_GCJ
26539 # Is the compiler the GNU C compiler?
26545 # The linker used to build libraries.
26548 # Whether we need hard or soft links.
26551 # A BSD-compatible nm program.
26554 # A symbol stripping program
26557 # Used to examine libraries when file_magic_cmd begins "file"
26558 MAGIC_CMD=$MAGIC_CMD
26560 # Used on cygwin: DLL creation program.
26563 # Used on cygwin: object dumper.
26566 # Used on cygwin: assembler.
26569 # The name of the directory that contains temporary libtool files.
26572 # How to create reloadable object files.
26573 reload_flag=$lt_reload_flag
26574 reload_cmds=$lt_reload_cmds
26576 # How to pass a linker flag through the compiler.
26577 wl=$lt_lt_prog_compiler_wl_GCJ
26579 # Object file suffix (normally "o").
26580 objext="$ac_objext"
26582 # Old archive suffix (normally "a").
26585 # Shared library suffix (normally ".so").
26586 shrext_cmds='$shrext_cmds'
26588 # Executable file suffix (normally "").
26591 # Additional compiler flags for building library objects.
26592 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26595 # What is the maximum length of a command?
26596 max_cmd_len=$lt_cv_sys_max_cmd_len
26598 # Does compiler simultaneously support -c and -o options?
26599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26601 # Must we lock files when doing compilation?
26602 need_locks=$lt_need_locks
26604 # Do we need the lib prefix for modules?
26605 need_lib_prefix=$need_lib_prefix
26607 # Do we need a version for libraries?
26608 need_version=$need_version
26610 # Whether dlopen is supported.
26611 dlopen_support=$enable_dlopen
26613 # Whether dlopen of programs is supported.
26614 dlopen_self=$enable_dlopen_self
26616 # Whether dlopen of statically linked programs is supported.
26617 dlopen_self_static=$enable_dlopen_self_static
26619 # Compiler flag to prevent dynamic linking.
26620 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26622 # Compiler flag to turn off builtin functions.
26623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26625 # Compiler flag to allow reflexive dlopens.
26626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26628 # Compiler flag to generate shared objects directly from archives.
26629 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26631 # Compiler flag to generate thread-safe objects.
26632 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26634 # Library versioning type.
26635 version_type=$version_type
26637 # Format of library name prefix.
26638 libname_spec=$lt_libname_spec
26640 # List of archive names. First name is the real one, the rest are links.
26641 # The last name is the one that the linker finds with -lNAME.
26642 library_names_spec=$lt_library_names_spec
26644 # The coded name of the library, if different from the real name.
26645 soname_spec=$lt_soname_spec
26647 # Commands used to build and install an old-style archive.
26649 old_archive_cmds=$lt_old_archive_cmds_GCJ
26650 old_postinstall_cmds=$lt_old_postinstall_cmds
26651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26653 # Create an old-style archive from a shared archive.
26654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26656 # Create a temporary old-style archive to link instead of a shared archive.
26657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26659 # Commands used to build and install a shared archive.
26660 archive_cmds=$lt_archive_cmds_GCJ
26661 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26662 postinstall_cmds=$lt_postinstall_cmds
26663 postuninstall_cmds=$lt_postuninstall_cmds
26665 # Commands used to build a loadable module (assumed same as above if empty)
26666 module_cmds=$lt_module_cmds_GCJ
26667 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26669 # Commands to strip libraries.
26670 old_striplib=$lt_old_striplib
26671 striplib=$lt_striplib
26673 # Dependencies to place before the objects being linked to create a
26675 predep_objects=$lt_predep_objects_GCJ
26677 # Dependencies to place after the objects being linked to create a
26679 postdep_objects=$lt_postdep_objects_GCJ
26681 # Dependencies to place before the objects being linked to create a
26683 predeps=$lt_predeps_GCJ
26685 # Dependencies to place after the objects being linked to create a
26687 postdeps=$lt_postdeps_GCJ
26689 # The library search path used internally by the compiler when linking
26690 # a shared library.
26691 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26693 # Method to check whether dependent libraries are shared objects.
26694 deplibs_check_method=$lt_deplibs_check_method
26696 # Command to use when deplibs_check_method == file_magic.
26697 file_magic_cmd=$lt_file_magic_cmd
26699 # Flag that allows shared libraries with undefined symbols to be built.
26700 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26702 # Flag that forces no undefined symbols.
26703 no_undefined_flag=$lt_no_undefined_flag_GCJ
26705 # Commands used to finish a libtool library installation in a directory.
26706 finish_cmds=$lt_finish_cmds
26708 # Same as above, but a single script fragment to be evaled but not shown.
26709 finish_eval=$lt_finish_eval
26711 # Take the output of nm and produce a listing of raw symbols and C names.
26712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26714 # Transform the output of nm in a proper C declaration
26715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26717 # Transform the output of nm in a C name address pair
26718 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26720 # This is the shared library runtime path variable.
26721 runpath_var=$runpath_var
26723 # This is the shared library path variable.
26724 shlibpath_var=$shlibpath_var
26726 # Is shlibpath searched before the hard-coded library search path?
26727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26729 # How to hardcode a shared library path into an executable.
26730 hardcode_action=$hardcode_action_GCJ
26732 # Whether we should hardcode library paths into libraries.
26733 hardcode_into_libs=$hardcode_into_libs
26735 # Flag to hardcode \$libdir into a binary during linking.
26736 # This must work even if \$libdir does not exist.
26737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26739 # If ld is used when linking, flag to hardcode \$libdir into
26740 # a binary during linking. This must work even if \$libdir does
26742 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26744 # Whether we need a single -rpath flag with a separated argument.
26745 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26747 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26748 # resulting binary.
26749 hardcode_direct=$hardcode_direct_GCJ
26751 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26752 # resulting binary.
26753 hardcode_minus_L=$hardcode_minus_L_GCJ
26755 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26756 # the resulting binary.
26757 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26759 # Set to yes if building a shared library automatically hardcodes DIR into the library
26760 # and all subsequent libraries and executables linked against it.
26761 hardcode_automatic=$hardcode_automatic_GCJ
26763 # Variables whose values should be saved in libtool wrapper scripts and
26764 # restored at relink time.
26765 variables_saved_for_relink="$variables_saved_for_relink"
26767 # Whether libtool must link a program against all its dependency libraries.
26768 link_all_deplibs=$link_all_deplibs_GCJ
26770 # Compile-time system search path for libraries
26771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26773 # Run-time system search path for libraries
26774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26776 # Fix the shell variable \$srcfile for the compiler.
26777 fix_srcfile_path="$fix_srcfile_path_GCJ"
26779 # Set to yes if exported symbols are required.
26780 always_export_symbols=$always_export_symbols_GCJ
26782 # The commands to list exported symbols.
26783 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26785 # The commands to extract the exported symbol list from a shared archive.
26786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26788 # Symbols that should not be listed in the preloaded symbols.
26789 exclude_expsyms=$lt_exclude_expsyms_GCJ
26791 # Symbols that must always be exported.
26792 include_expsyms=$lt_include_expsyms_GCJ
26794 # ### END LIBTOOL TAG CONFIG: $tagname
26800 # If there is no Makefile yet, we rely on a make rule to execute
26801 # `config.status --recheck' to rerun these tests and create the
26802 # libtool script then.
26803 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26804 if test -f "$ltmain_in"; then
26805 test -f Makefile && make "$ltmain"
26811 ac_cpp='$CPP $CPPFLAGS'
26812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26825 ac_cpp='$CPP $CPPFLAGS'
26826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26831 # Source file extension for RC test sources.
26834 # Object file extension for compiled RC test sources.
26838 # Code to be used in simple compile tests
26839 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26841 # Code to be used in simple link tests
26842 lt_simple_link_test_code="$lt_simple_compile_test_code"
26844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26846 # If no C compiler was specified, use CC.
26849 # If no C compiler flags were specified, use CFLAGS.
26850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26852 # Allow CC to be a program name with arguments.
26856 # save warnings/boilerplate of simple test code
26857 ac_outfile=conftest.$ac_objext
26858 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26860 _lt_compiler_boilerplate=`cat conftest.err`
26863 ac_outfile=conftest.$ac_objext
26864 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26866 _lt_linker_boilerplate=`cat conftest.err`
26870 # Allow CC to be a program name with arguments.
26875 for cc_temp in $compiler""; do
26877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26885 lt_cv_prog_compiler_c_o_RC=yes
26887 # The else clause should only fire when bootstrapping the
26888 # libtool distribution, otherwise you forgot to ship ltmain.sh
26889 # with your package, and you will get complaints that there are
26890 # no rules to generate ltmain.sh.
26891 if test -f "$ltmain"; then
26892 # See if we are running on zsh, and set the options which allow our commands through
26893 # without removal of \ escapes.
26894 if test -n "${ZSH_VERSION+set}" ; then
26895 setopt NO_GLOB_SUBST
26897 # Now quote all the things that may contain metacharacters while being
26898 # careful not to overquote the AC_SUBSTed values. We take copies of the
26899 # variables and quote the copies for generation of the libtool script.
26900 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26902 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26903 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26904 deplibs_check_method reload_flag reload_cmds need_locks \
26905 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26906 lt_cv_sys_global_symbol_to_c_name_address \
26907 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26908 old_postinstall_cmds old_postuninstall_cmds \
26912 lt_prog_compiler_wl_RC \
26913 lt_prog_compiler_pic_RC \
26914 lt_prog_compiler_static_RC \
26915 lt_prog_compiler_no_builtin_flag_RC \
26916 export_dynamic_flag_spec_RC \
26917 thread_safe_flag_spec_RC \
26918 whole_archive_flag_spec_RC \
26919 enable_shared_with_static_runtimes_RC \
26920 old_archive_cmds_RC \
26921 old_archive_from_new_cmds_RC \
26922 predep_objects_RC \
26923 postdep_objects_RC \
26926 compiler_lib_search_path_RC \
26928 archive_expsym_cmds_RC \
26929 postinstall_cmds_RC \
26930 postuninstall_cmds_RC \
26931 old_archive_from_expsyms_cmds_RC \
26932 allow_undefined_flag_RC \
26933 no_undefined_flag_RC \
26934 export_symbols_cmds_RC \
26935 hardcode_libdir_flag_spec_RC \
26936 hardcode_libdir_flag_spec_ld_RC \
26937 hardcode_libdir_separator_RC \
26938 hardcode_automatic_RC \
26940 module_expsym_cmds_RC \
26941 lt_cv_prog_compiler_c_o_RC \
26942 exclude_expsyms_RC \
26943 include_expsyms_RC; do
26946 old_archive_cmds_RC | \
26947 old_archive_from_new_cmds_RC | \
26948 archive_cmds_RC | \
26949 archive_expsym_cmds_RC | \
26951 module_expsym_cmds_RC | \
26952 old_archive_from_expsyms_cmds_RC | \
26953 export_symbols_cmds_RC | \
26954 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26955 postinstall_cmds | postuninstall_cmds | \
26956 old_postinstall_cmds | old_postuninstall_cmds | \
26957 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26958 # Double-quote double-evaled strings.
26959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26962 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26968 *'\$0 --fallback-echo"')
26969 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26975 cat <<__EOF__ >> "$cfgfile"
26976 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26980 # Shell to use when invoking shell scripts.
26983 # Whether or not to build shared libraries.
26984 build_libtool_libs=$enable_shared
26986 # Whether or not to build static libraries.
26987 build_old_libs=$enable_static
26989 # Whether or not to add -lc for building shared libraries.
26990 build_libtool_need_lc=$archive_cmds_need_lc_RC
26992 # Whether or not to disallow shared libs when runtime libs are static
26993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26995 # Whether or not to optimize for fast installation.
26996 fast_install=$enable_fast_install
26999 host_alias=$host_alias
27003 # The build system.
27004 build_alias=$build_alias
27008 # An echo program that does not interpret backslashes.
27013 AR_FLAGS=$lt_AR_FLAGS
27018 # LTCC compiler flags.
27019 LTCFLAGS=$lt_LTCFLAGS
27021 # A language-specific compiler.
27024 # Is the compiler the GNU C compiler?
27030 # The linker used to build libraries.
27033 # Whether we need hard or soft links.
27036 # A BSD-compatible nm program.
27039 # A symbol stripping program
27042 # Used to examine libraries when file_magic_cmd begins "file"
27043 MAGIC_CMD=$MAGIC_CMD
27045 # Used on cygwin: DLL creation program.
27048 # Used on cygwin: object dumper.
27051 # Used on cygwin: assembler.
27054 # The name of the directory that contains temporary libtool files.
27057 # How to create reloadable object files.
27058 reload_flag=$lt_reload_flag
27059 reload_cmds=$lt_reload_cmds
27061 # How to pass a linker flag through the compiler.
27062 wl=$lt_lt_prog_compiler_wl_RC
27064 # Object file suffix (normally "o").
27065 objext="$ac_objext"
27067 # Old archive suffix (normally "a").
27070 # Shared library suffix (normally ".so").
27071 shrext_cmds='$shrext_cmds'
27073 # Executable file suffix (normally "").
27076 # Additional compiler flags for building library objects.
27077 pic_flag=$lt_lt_prog_compiler_pic_RC
27080 # What is the maximum length of a command?
27081 max_cmd_len=$lt_cv_sys_max_cmd_len
27083 # Does compiler simultaneously support -c and -o options?
27084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27086 # Must we lock files when doing compilation?
27087 need_locks=$lt_need_locks
27089 # Do we need the lib prefix for modules?
27090 need_lib_prefix=$need_lib_prefix
27092 # Do we need a version for libraries?
27093 need_version=$need_version
27095 # Whether dlopen is supported.
27096 dlopen_support=$enable_dlopen
27098 # Whether dlopen of programs is supported.
27099 dlopen_self=$enable_dlopen_self
27101 # Whether dlopen of statically linked programs is supported.
27102 dlopen_self_static=$enable_dlopen_self_static
27104 # Compiler flag to prevent dynamic linking.
27105 link_static_flag=$lt_lt_prog_compiler_static_RC
27107 # Compiler flag to turn off builtin functions.
27108 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27110 # Compiler flag to allow reflexive dlopens.
27111 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27113 # Compiler flag to generate shared objects directly from archives.
27114 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27116 # Compiler flag to generate thread-safe objects.
27117 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27119 # Library versioning type.
27120 version_type=$version_type
27122 # Format of library name prefix.
27123 libname_spec=$lt_libname_spec
27125 # List of archive names. First name is the real one, the rest are links.
27126 # The last name is the one that the linker finds with -lNAME.
27127 library_names_spec=$lt_library_names_spec
27129 # The coded name of the library, if different from the real name.
27130 soname_spec=$lt_soname_spec
27132 # Commands used to build and install an old-style archive.
27134 old_archive_cmds=$lt_old_archive_cmds_RC
27135 old_postinstall_cmds=$lt_old_postinstall_cmds
27136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27138 # Create an old-style archive from a shared archive.
27139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27141 # Create a temporary old-style archive to link instead of a shared archive.
27142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27144 # Commands used to build and install a shared archive.
27145 archive_cmds=$lt_archive_cmds_RC
27146 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27147 postinstall_cmds=$lt_postinstall_cmds
27148 postuninstall_cmds=$lt_postuninstall_cmds
27150 # Commands used to build a loadable module (assumed same as above if empty)
27151 module_cmds=$lt_module_cmds_RC
27152 module_expsym_cmds=$lt_module_expsym_cmds_RC
27154 # Commands to strip libraries.
27155 old_striplib=$lt_old_striplib
27156 striplib=$lt_striplib
27158 # Dependencies to place before the objects being linked to create a
27160 predep_objects=$lt_predep_objects_RC
27162 # Dependencies to place after the objects being linked to create a
27164 postdep_objects=$lt_postdep_objects_RC
27166 # Dependencies to place before the objects being linked to create a
27168 predeps=$lt_predeps_RC
27170 # Dependencies to place after the objects being linked to create a
27172 postdeps=$lt_postdeps_RC
27174 # The library search path used internally by the compiler when linking
27175 # a shared library.
27176 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27178 # Method to check whether dependent libraries are shared objects.
27179 deplibs_check_method=$lt_deplibs_check_method
27181 # Command to use when deplibs_check_method == file_magic.
27182 file_magic_cmd=$lt_file_magic_cmd
27184 # Flag that allows shared libraries with undefined symbols to be built.
27185 allow_undefined_flag=$lt_allow_undefined_flag_RC
27187 # Flag that forces no undefined symbols.
27188 no_undefined_flag=$lt_no_undefined_flag_RC
27190 # Commands used to finish a libtool library installation in a directory.
27191 finish_cmds=$lt_finish_cmds
27193 # Same as above, but a single script fragment to be evaled but not shown.
27194 finish_eval=$lt_finish_eval
27196 # Take the output of nm and produce a listing of raw symbols and C names.
27197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27199 # Transform the output of nm in a proper C declaration
27200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27202 # Transform the output of nm in a C name address pair
27203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27205 # This is the shared library runtime path variable.
27206 runpath_var=$runpath_var
27208 # This is the shared library path variable.
27209 shlibpath_var=$shlibpath_var
27211 # Is shlibpath searched before the hard-coded library search path?
27212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27214 # How to hardcode a shared library path into an executable.
27215 hardcode_action=$hardcode_action_RC
27217 # Whether we should hardcode library paths into libraries.
27218 hardcode_into_libs=$hardcode_into_libs
27220 # Flag to hardcode \$libdir into a binary during linking.
27221 # This must work even if \$libdir does not exist.
27222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27224 # If ld is used when linking, flag to hardcode \$libdir into
27225 # a binary during linking. This must work even if \$libdir does
27227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27229 # Whether we need a single -rpath flag with a separated argument.
27230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27233 # resulting binary.
27234 hardcode_direct=$hardcode_direct_RC
27236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27237 # resulting binary.
27238 hardcode_minus_L=$hardcode_minus_L_RC
27240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27241 # the resulting binary.
27242 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27244 # Set to yes if building a shared library automatically hardcodes DIR into the library
27245 # and all subsequent libraries and executables linked against it.
27246 hardcode_automatic=$hardcode_automatic_RC
27248 # Variables whose values should be saved in libtool wrapper scripts and
27249 # restored at relink time.
27250 variables_saved_for_relink="$variables_saved_for_relink"
27252 # Whether libtool must link a program against all its dependency libraries.
27253 link_all_deplibs=$link_all_deplibs_RC
27255 # Compile-time system search path for libraries
27256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27258 # Run-time system search path for libraries
27259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27261 # Fix the shell variable \$srcfile for the compiler.
27262 fix_srcfile_path="$fix_srcfile_path_RC"
27264 # Set to yes if exported symbols are required.
27265 always_export_symbols=$always_export_symbols_RC
27267 # The commands to list exported symbols.
27268 export_symbols_cmds=$lt_export_symbols_cmds_RC
27270 # The commands to extract the exported symbol list from a shared archive.
27271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27273 # Symbols that should not be listed in the preloaded symbols.
27274 exclude_expsyms=$lt_exclude_expsyms_RC
27276 # Symbols that must always be exported.
27277 include_expsyms=$lt_include_expsyms_RC
27279 # ### END LIBTOOL TAG CONFIG: $tagname
27285 # If there is no Makefile yet, we rely on a make rule to execute
27286 # `config.status --recheck' to rerun these tests and create the
27287 # libtool script then.
27288 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27289 if test -f "$ltmain_in"; then
27290 test -f Makefile && make "$ltmain"
27296 ac_cpp='$CPP $CPPFLAGS'
27297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27306 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27307 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27308 { (exit 1); exit 1; }; }
27312 # Append the new tag name to the list of available tags.
27313 if test -n "$tagname" ; then
27314 available_tags="$available_tags $tagname"
27320 # Now substitute the updated list of available tags.
27321 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27322 mv "${ofile}T" "$ofile"
27326 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27327 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27328 { (exit 1); exit 1; }; }
27334 # This can be used to rebuild libtool when needed
27335 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27337 # Always use our own libtool.
27338 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27340 # Prevent multiple expansion
27362 if test "$lt_cv_dlopen_self" = "yes" ; then
27364 cat >>confdefs.h <<\_ACEOF
27365 #define CAN_DLOPEN_SELF 1
27371 if test "$WITH_LLVMGCCDIR" = "default" ; then
27372 LLVMGCC="llvm-gcc${EXEEXT}"
27373 LLVMGXX="llvm-g++${EXEEXT}"
27374 LLVMGCCCOMMAND="$LLVMGCC"
27375 LLVMGXXCOMMAND="$LLVMGXX"
27376 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27378 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27380 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27381 set dummy $LLVMGCC; ac_word=$2
27382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27384 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27385 echo $ECHO_N "(cached) $ECHO_C" >&6
27389 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27393 for as_dir in $PATH
27396 test -z "$as_dir" && as_dir=.
27397 for ac_exec_ext in '' $ac_executable_extensions; do
27398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27399 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27410 LLVMGCC=$ac_cv_path_LLVMGCC
27411 if test -n "$LLVMGCC"; then
27412 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27413 echo "${ECHO_T}$LLVMGCC" >&6; }
27415 { echo "$as_me:$LINENO: result: no" >&5
27416 echo "${ECHO_T}no" >&6; }
27420 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27421 set dummy $LLVMGXX; ac_word=$2
27422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27424 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27429 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27433 for as_dir in $PATH
27436 test -z "$as_dir" && as_dir=.
27437 for ac_exec_ext in '' $ac_executable_extensions; do
27438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27439 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27450 LLVMGXX=$ac_cv_path_LLVMGXX
27451 if test -n "$LLVMGXX"; then
27452 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27453 echo "${ECHO_T}$LLVMGXX" >&6; }
27455 { echo "$as_me:$LINENO: result: no" >&5
27456 echo "${ECHO_T}no" >&6; }
27461 if test -z "$LLVMGCC"; then
27462 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27463 LLVMGCCCOMMAND="$LLVMGCC"
27465 if test -z "$LLVMGXX"; then
27466 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27467 LLVMGXXCOMMAND="$LLVMGXX"
27474 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27476 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27481 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27482 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27495 if test "$GCC" != "yes" && test "$ICC" != "yes"
27497 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27498 echo "$as_me: error: gcc|icc required but not found" >&2;}
27499 { (exit 1); exit 1; }; }
27502 if test "$GXX" != "yes" && test "$IXX" != "yes"
27504 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27505 echo "$as_me: error: g++|icc required but not found" >&2;}
27506 { (exit 1); exit 1; }; }
27509 if test "$GCC" = "yes"
27511 cat >conftest.$ac_ext <<_ACEOF
27512 #if !defined(__GNUC__) || __GNUC__ < 3
27513 #error Unsupported GCC version
27517 rm -f conftest.$ac_objext
27518 if { (ac_try="$ac_compile"
27519 case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_compile") 2>conftest.er1
27526 grep -v '^ *+' conftest.er1 >conftest.err
27528 cat conftest.err >&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } &&
27531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27532 { (case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_try") 2>&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; } &&
27541 { ac_try='test -s conftest.$ac_objext'
27542 { (case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_try") 2>&5
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
27553 echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27556 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27557 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27558 { (exit 1); exit 1; }; }
27561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27564 if test -z "$llvm_cv_gnu_make_command"
27566 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27567 echo "$as_me: error: GNU Make required but not found" >&2;}
27568 { (exit 1); exit 1; }; }
27571 { echo "$as_me:$LINENO: result: ok" >&5
27572 echo "${ECHO_T}ok" >&6; }
27574 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27575 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27576 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27578 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27580 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27581 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27585 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27586 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27587 if test "${ac_cv_lib_m_sin+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27590 ac_check_lib_save_LIBS=$LIBS
27592 cat >conftest.$ac_ext <<_ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27599 /* Override any GCC internal prototype to avoid an error.
27600 Use char because int might match the return type of a GCC
27601 builtin and then its argument prototype would still apply. */
27614 rm -f conftest.$ac_objext conftest$ac_exeext
27615 if { (ac_try="$ac_link"
27616 case "(($ac_try" in
27617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618 *) ac_try_echo=$ac_try;;
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621 (eval "$ac_link") 2>conftest.er1
27623 grep -v '^ *+' conftest.er1 >conftest.err
27625 cat conftest.err >&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } &&
27628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27629 { (case "(($ac_try" in
27630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27631 *) ac_try_echo=$ac_try;;
27633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27634 (eval "$ac_try") 2>&5
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; } &&
27638 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27648 ac_cv_lib_m_sin=yes
27650 echo "$as_me: failed program was:" >&5
27651 sed 's/^/| /' conftest.$ac_ext >&5
27656 rm -f core conftest.err conftest.$ac_objext \
27657 conftest$ac_exeext conftest.$ac_ext
27658 LIBS=$ac_check_lib_save_LIBS
27660 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27661 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27662 if test $ac_cv_lib_m_sin = yes; then
27663 cat >>confdefs.h <<_ACEOF
27664 #define HAVE_LIBM 1
27671 if test "$llvm_cv_os_type" = "MingW" ; then
27673 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27674 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27675 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27676 echo $ECHO_N "(cached) $ECHO_C" >&6
27678 ac_check_lib_save_LIBS=$LIBS
27679 LIBS="-limagehlp $LIBS"
27680 cat >conftest.$ac_ext <<_ACEOF
27683 cat confdefs.h >>conftest.$ac_ext
27684 cat >>conftest.$ac_ext <<_ACEOF
27685 /* end confdefs.h. */
27696 rm -f conftest.$ac_objext conftest$ac_exeext
27697 if { (ac_try="$ac_link"
27698 case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_link") 2>conftest.er1
27705 grep -v '^ *+' conftest.er1 >conftest.err
27707 cat conftest.err >&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); } &&
27710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27711 { (case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716 (eval "$ac_try") 2>&5
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; } &&
27720 { ac_try='test -s conftest$ac_exeext'
27721 { (case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27726 (eval "$ac_try") 2>&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27730 ac_cv_lib_imagehlp_main=yes
27732 echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27735 ac_cv_lib_imagehlp_main=no
27738 rm -f core conftest.err conftest.$ac_objext \
27739 conftest$ac_exeext conftest.$ac_ext
27740 LIBS=$ac_check_lib_save_LIBS
27742 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27743 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27744 if test $ac_cv_lib_imagehlp_main = yes; then
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_LIBIMAGEHLP 1
27749 LIBS="-limagehlp $LIBS"
27754 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27755 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27756 if test "${ac_cv_lib_psapi_main+set}" = set; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 ac_check_lib_save_LIBS=$LIBS
27760 LIBS="-lpsapi $LIBS"
27761 cat >conftest.$ac_ext <<_ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h. */
27777 rm -f conftest.$ac_objext conftest$ac_exeext
27778 if { (ac_try="$ac_link"
27779 case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_link") 2>conftest.er1
27786 grep -v '^ *+' conftest.er1 >conftest.err
27788 cat conftest.err >&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); } &&
27791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792 { (case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_try") 2>&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
27802 { (case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_lib_psapi_main=yes
27813 echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27816 ac_cv_lib_psapi_main=no
27819 rm -f core conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
27821 LIBS=$ac_check_lib_save_LIBS
27823 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27824 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27825 if test $ac_cv_lib_psapi_main = yes; then
27826 cat >>confdefs.h <<_ACEOF
27827 #define HAVE_LIBPSAPI 1
27830 LIBS="-lpsapi $LIBS"
27836 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27837 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27838 if test "${ac_cv_search_dlopen+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 ac_func_search_save_LIBS=$LIBS
27842 cat >conftest.$ac_ext <<_ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h. */
27849 /* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
27864 for ac_lib in '' dl; do
27865 if test -z "$ac_lib"; then
27866 ac_res="none required"
27869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27871 rm -f conftest.$ac_objext conftest$ac_exeext
27872 if { (ac_try="$ac_link"
27873 case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_link") 2>conftest.er1
27880 grep -v '^ *+' conftest.er1 >conftest.err
27882 cat conftest.err >&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
27885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886 { (case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_try") 2>&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest$ac_exeext'
27896 { (case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_try") 2>&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
27905 ac_cv_search_dlopen=$ac_res
27907 echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27913 rm -f core conftest.err conftest.$ac_objext \
27915 if test "${ac_cv_search_dlopen+set}" = set; then
27919 if test "${ac_cv_search_dlopen+set}" = set; then
27922 ac_cv_search_dlopen=no
27924 rm conftest.$ac_ext
27925 LIBS=$ac_func_search_save_LIBS
27927 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27928 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27929 ac_res=$ac_cv_search_dlopen
27930 if test "$ac_res" != no; then
27931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27933 cat >>confdefs.h <<\_ACEOF
27934 #define HAVE_DLOPEN 1
27938 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27939 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27943 if test "$llvm_cv_enable_libffi" = "yes" ; then
27944 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27945 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27946 if test "${ac_cv_search_ffi_call+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27949 ac_func_search_save_LIBS=$LIBS
27950 cat >conftest.$ac_ext <<_ACEOF
27953 cat confdefs.h >>conftest.$ac_ext
27954 cat >>conftest.$ac_ext <<_ACEOF
27955 /* end confdefs.h. */
27957 /* Override any GCC internal prototype to avoid an error.
27958 Use char because int might match the return type of a GCC
27959 builtin and then its argument prototype would still apply. */
27967 return ffi_call ();
27972 for ac_lib in '' ffi; do
27973 if test -z "$ac_lib"; then
27974 ac_res="none required"
27977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27979 rm -f conftest.$ac_objext conftest$ac_exeext
27980 if { (ac_try="$ac_link"
27981 case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_link") 2>conftest.er1
27988 grep -v '^ *+' conftest.er1 >conftest.err
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); } &&
27993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27994 { (case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_try") 2>&5
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest$ac_exeext'
28004 { (case "(($ac_try" in
28005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006 *) ac_try_echo=$ac_try;;
28008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009 (eval "$ac_try") 2>&5
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; }; then
28013 ac_cv_search_ffi_call=$ac_res
28015 echo "$as_me: failed program was:" >&5
28016 sed 's/^/| /' conftest.$ac_ext >&5
28021 rm -f core conftest.err conftest.$ac_objext \
28023 if test "${ac_cv_search_ffi_call+set}" = set; then
28027 if test "${ac_cv_search_ffi_call+set}" = set; then
28030 ac_cv_search_ffi_call=no
28032 rm conftest.$ac_ext
28033 LIBS=$ac_func_search_save_LIBS
28035 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
28036 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
28037 ac_res=$ac_cv_search_ffi_call
28038 if test "$ac_res" != no; then
28039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28041 cat >>confdefs.h <<\_ACEOF
28042 #define HAVE_FFI_CALL 1
28046 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
28047 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
28052 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
28053 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
28054 if test "${ac_cv_search_mallinfo+set}" = set; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28057 ac_func_search_save_LIBS=$LIBS
28058 cat >conftest.$ac_ext <<_ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h. */
28065 /* Override any GCC internal prototype to avoid an error.
28066 Use char because int might match the return type of a GCC
28067 builtin and then its argument prototype would still apply. */
28075 return mallinfo ();
28080 for ac_lib in '' malloc; do
28081 if test -z "$ac_lib"; then
28082 ac_res="none required"
28085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (ac_try="$ac_link"
28089 case "(($ac_try" in
28090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091 *) ac_try_echo=$ac_try;;
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094 (eval "$ac_link") 2>conftest.er1
28096 grep -v '^ *+' conftest.er1 >conftest.err
28098 cat conftest.err >&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } &&
28101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28102 { (case "(($ac_try" in
28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104 *) ac_try_echo=$ac_try;;
28106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107 (eval "$ac_try") 2>&5
28109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); }; } &&
28111 { ac_try='test -s conftest$ac_exeext'
28112 { (case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117 (eval "$ac_try") 2>&5
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); }; }; then
28121 ac_cv_search_mallinfo=$ac_res
28123 echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28129 rm -f core conftest.err conftest.$ac_objext \
28131 if test "${ac_cv_search_mallinfo+set}" = set; then
28135 if test "${ac_cv_search_mallinfo+set}" = set; then
28138 ac_cv_search_mallinfo=no
28140 rm conftest.$ac_ext
28141 LIBS=$ac_func_search_save_LIBS
28143 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28144 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28145 ac_res=$ac_cv_search_mallinfo
28146 if test "$ac_res" != no; then
28147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28149 cat >>confdefs.h <<\_ACEOF
28150 #define HAVE_MALLINFO 1
28156 if test "$ENABLE_THREADS" -eq 1 ; then
28158 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28159 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28160 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28163 ac_check_lib_save_LIBS=$LIBS
28164 LIBS="-lpthread $LIBS"
28165 cat >conftest.$ac_ext <<_ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h. */
28172 /* Override any GCC internal prototype to avoid an error.
28173 Use char because int might match the return type of a GCC
28174 builtin and then its argument prototype would still apply. */
28178 char pthread_mutex_init ();
28182 return pthread_mutex_init ();
28187 rm -f conftest.$ac_objext conftest$ac_exeext
28188 if { (ac_try="$ac_link"
28189 case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_link") 2>conftest.er1
28196 grep -v '^ *+' conftest.er1 >conftest.err
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
28201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28202 { (case "(($ac_try" in
28203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 *) ac_try_echo=$ac_try;;
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207 (eval "$ac_try") 2>&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; } &&
28211 { ac_try='test -s conftest$ac_exeext'
28212 { (case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_try") 2>&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; }; then
28221 ac_cv_lib_pthread_pthread_mutex_init=yes
28223 echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28226 ac_cv_lib_pthread_pthread_mutex_init=no
28229 rm -f core conftest.err conftest.$ac_objext \
28230 conftest$ac_exeext conftest.$ac_ext
28231 LIBS=$ac_check_lib_save_LIBS
28233 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28234 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28235 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28236 cat >>confdefs.h <<_ACEOF
28237 #define HAVE_LIBPTHREAD 1
28240 LIBS="-lpthread $LIBS"
28244 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28245 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28246 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28249 ac_func_search_save_LIBS=$LIBS
28250 cat >conftest.$ac_ext <<_ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28257 /* Override any GCC internal prototype to avoid an error.
28258 Use char because int might match the return type of a GCC
28259 builtin and then its argument prototype would still apply. */
28263 char pthread_mutex_lock ();
28267 return pthread_mutex_lock ();
28272 for ac_lib in '' pthread; do
28273 if test -z "$ac_lib"; then
28274 ac_res="none required"
28277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28279 rm -f conftest.$ac_objext conftest$ac_exeext
28280 if { (ac_try="$ac_link"
28281 case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_link") 2>conftest.er1
28288 grep -v '^ *+' conftest.er1 >conftest.err
28290 cat conftest.err >&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); } &&
28293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28294 { (case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_try") 2>&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; } &&
28303 { ac_try='test -s conftest$ac_exeext'
28304 { (case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_try") 2>&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28313 ac_cv_search_pthread_mutex_lock=$ac_res
28315 echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28321 rm -f core conftest.err conftest.$ac_objext \
28323 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28327 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28330 ac_cv_search_pthread_mutex_lock=no
28332 rm conftest.$ac_ext
28333 LIBS=$ac_func_search_save_LIBS
28335 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28336 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28337 ac_res=$ac_cv_search_pthread_mutex_lock
28338 if test "$ac_res" != no; then
28339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28341 cat >>confdefs.h <<\_ACEOF
28342 #define HAVE_PTHREAD_MUTEX_LOCK 1
28347 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28348 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28349 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28350 echo $ECHO_N "(cached) $ECHO_C" >&6
28352 ac_func_search_save_LIBS=$LIBS
28353 cat >conftest.$ac_ext <<_ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h. */
28360 /* Override any GCC internal prototype to avoid an error.
28361 Use char because int might match the return type of a GCC
28362 builtin and then its argument prototype would still apply. */
28366 char pthread_rwlock_init ();
28370 return pthread_rwlock_init ();
28375 for ac_lib in '' pthread; do
28376 if test -z "$ac_lib"; then
28377 ac_res="none required"
28380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28382 rm -f conftest.$ac_objext conftest$ac_exeext
28383 if { (ac_try="$ac_link"
28384 case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_link") 2>conftest.er1
28391 grep -v '^ *+' conftest.er1 >conftest.err
28393 cat conftest.err >&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } &&
28396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28397 { (case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402 (eval "$ac_try") 2>&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; } &&
28406 { ac_try='test -s conftest$ac_exeext'
28407 { (case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_try") 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; }; then
28416 ac_cv_search_pthread_rwlock_init=$ac_res
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28424 rm -f core conftest.err conftest.$ac_objext \
28426 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28430 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28433 ac_cv_search_pthread_rwlock_init=no
28435 rm conftest.$ac_ext
28436 LIBS=$ac_func_search_save_LIBS
28438 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28439 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28440 ac_res=$ac_cv_search_pthread_rwlock_init
28441 if test "$ac_res" != no; then
28442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28444 cat >>confdefs.h <<\_ACEOF
28445 #define HAVE_PTHREAD_RWLOCK_INIT 1
28450 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28451 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28452 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 ac_func_search_save_LIBS=$LIBS
28456 cat >conftest.$ac_ext <<_ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h. */
28463 /* Override any GCC internal prototype to avoid an error.
28464 Use char because int might match the return type of a GCC
28465 builtin and then its argument prototype would still apply. */
28469 char pthread_getspecific ();
28473 return pthread_getspecific ();
28478 for ac_lib in '' pthread; do
28479 if test -z "$ac_lib"; then
28480 ac_res="none required"
28483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28485 rm -f conftest.$ac_objext conftest$ac_exeext
28486 if { (ac_try="$ac_link"
28487 case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28492 (eval "$ac_link") 2>conftest.er1
28494 grep -v '^ *+' conftest.er1 >conftest.err
28496 cat conftest.err >&5
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } &&
28499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28500 { (case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_try") 2>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest$ac_exeext'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_search_pthread_getspecific=$ac_res
28521 echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28527 rm -f core conftest.err conftest.$ac_objext \
28529 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28533 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28536 ac_cv_search_pthread_getspecific=no
28538 rm conftest.$ac_ext
28539 LIBS=$ac_func_search_save_LIBS
28541 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28542 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28543 ac_res=$ac_cv_search_pthread_getspecific
28544 if test "$ac_res" != no; then
28545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28547 cat >>confdefs.h <<\_ACEOF
28548 #define HAVE_PTHREAD_GETSPECIFIC 1
28556 # Check whether --with-udis86 was given.
28557 if test "${with_udis86+set}" = set; then
28558 withval=$with_udis86;
28563 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28566 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28567 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28568 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28571 ac_check_lib_save_LIBS=$LIBS
28572 LIBS="-ludis86 $LIBS"
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28580 /* Override any GCC internal prototype to avoid an error.
28581 Use char because int might match the return type of a GCC
28582 builtin and then its argument prototype would still apply. */
28595 rm -f conftest.$ac_objext conftest$ac_exeext
28596 if { (ac_try="$ac_link"
28597 case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_link") 2>conftest.er1
28604 grep -v '^ *+' conftest.er1 >conftest.err
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest$ac_exeext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
28629 ac_cv_lib_udis86_ud_init=yes
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ac_cv_lib_udis86_ud_init=no
28637 rm -f core conftest.err conftest.$ac_objext \
28638 conftest$ac_exeext conftest.$ac_ext
28639 LIBS=$ac_check_lib_save_LIBS
28641 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28642 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28643 if test $ac_cv_lib_udis86_ud_init = yes; then
28644 cat >>confdefs.h <<_ACEOF
28645 #define HAVE_LIBUDIS86 1
28648 LIBS="-ludis86 $LIBS"
28652 echo "Error! You need to have libudis86 around."
28664 cat >>confdefs.h <<_ACEOF
28665 #define USE_UDIS86 $USE_UDIS86
28670 # Check whether --with-oprofile was given.
28671 if test "${with_oprofile+set}" = set; then
28672 withval=$with_oprofile;
28676 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28677 no) llvm_cv_oppath=
28680 *) llvm_cv_oppath="${withval}/lib/oprofile"
28681 CPPFLAGS="-I${withval}/include";;
28683 if test -n "$llvm_cv_oppath" ; then
28684 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28685 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28686 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28687 if test "${ac_cv_search_bfd_init+set}" = set; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 ac_func_search_save_LIBS=$LIBS
28691 cat >conftest.$ac_ext <<_ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h. */
28698 /* Override any GCC internal prototype to avoid an error.
28699 Use char because int might match the return type of a GCC
28700 builtin and then its argument prototype would still apply. */
28708 return bfd_init ();
28713 for ac_lib in '' bfd; do
28714 if test -z "$ac_lib"; then
28715 ac_res="none required"
28718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28720 rm -f conftest.$ac_objext conftest$ac_exeext
28721 if { (ac_try="$ac_link"
28722 case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_link") 2>conftest.er1
28729 grep -v '^ *+' conftest.er1 >conftest.err
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } &&
28734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28735 { (case "(($ac_try" in
28736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737 *) ac_try_echo=$ac_try;;
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740 (eval "$ac_try") 2>&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; } &&
28744 { ac_try='test -s conftest$ac_exeext'
28745 { (case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_try") 2>&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 ac_cv_search_bfd_init=$ac_res
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28762 rm -f core conftest.err conftest.$ac_objext \
28764 if test "${ac_cv_search_bfd_init+set}" = set; then
28768 if test "${ac_cv_search_bfd_init+set}" = set; then
28771 ac_cv_search_bfd_init=no
28773 rm conftest.$ac_ext
28774 LIBS=$ac_func_search_save_LIBS
28776 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28777 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28778 ac_res=$ac_cv_search_bfd_init
28779 if test "$ac_res" != no; then
28780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28784 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28785 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28786 if test "${ac_cv_search_op_open_agent+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 ac_func_search_save_LIBS=$LIBS
28790 cat >conftest.$ac_ext <<_ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28797 /* Override any GCC internal prototype to avoid an error.
28798 Use char because int might match the return type of a GCC
28799 builtin and then its argument prototype would still apply. */
28803 char op_open_agent ();
28807 return op_open_agent ();
28812 for ac_lib in '' opagent; do
28813 if test -z "$ac_lib"; then
28814 ac_res="none required"
28817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28819 rm -f conftest.$ac_objext conftest$ac_exeext
28820 if { (ac_try="$ac_link"
28821 case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826 (eval "$ac_link") 2>conftest.er1
28828 grep -v '^ *+' conftest.er1 >conftest.err
28830 cat conftest.err >&5
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); } &&
28833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28834 { (case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28839 (eval "$ac_try") 2>&5
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; } &&
28843 { ac_try='test -s conftest$ac_exeext'
28844 { (case "(($ac_try" in
28845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846 *) ac_try_echo=$ac_try;;
28848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849 (eval "$ac_try") 2>&5
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; }; then
28853 ac_cv_search_op_open_agent=$ac_res
28855 echo "$as_me: failed program was:" >&5
28856 sed 's/^/| /' conftest.$ac_ext >&5
28861 rm -f core conftest.err conftest.$ac_objext \
28863 if test "${ac_cv_search_op_open_agent+set}" = set; then
28867 if test "${ac_cv_search_op_open_agent+set}" = set; then
28870 ac_cv_search_op_open_agent=no
28872 rm conftest.$ac_ext
28873 LIBS=$ac_func_search_save_LIBS
28875 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28876 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28877 ac_res=$ac_cv_search_op_open_agent
28878 if test "$ac_res" != no; then
28879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28883 echo "Error! You need to have libopagent around."
28888 if test "${ac_cv_header_opagent_h+set}" = set; then
28889 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28890 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28891 if test "${ac_cv_header_opagent_h+set}" = set; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28894 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28895 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28897 # Is the header compilable?
28898 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28899 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28900 cat >conftest.$ac_ext <<_ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h. */
28906 $ac_includes_default
28907 #include <opagent.h>
28909 rm -f conftest.$ac_objext
28910 if { (ac_try="$ac_compile"
28911 case "(($ac_try" in
28912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913 *) ac_try_echo=$ac_try;;
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916 (eval "$ac_compile") 2>conftest.er1
28918 grep -v '^ *+' conftest.er1 >conftest.err
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
28923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28924 { (case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_try") 2>&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); }; } &&
28933 { ac_try='test -s conftest.$ac_objext'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 ac_header_compiler=yes
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 ac_header_compiler=no
28951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28953 echo "${ECHO_T}$ac_header_compiler" >&6; }
28955 # Is the header present?
28956 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28957 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28958 cat >conftest.$ac_ext <<_ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28964 #include <opagent.h>
28966 if { (ac_try="$ac_cpp conftest.$ac_ext"
28967 case "(($ac_try" in
28968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28974 grep -v '^ *+' conftest.er1 >conftest.err
28976 cat conftest.err >&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } >/dev/null; then
28979 if test -s conftest.err; then
28980 ac_cpp_err=$ac_c_preproc_warn_flag
28981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28988 if test -z "$ac_cpp_err"; then
28989 ac_header_preproc=yes
28991 echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28994 ac_header_preproc=no
28997 rm -f conftest.err conftest.$ac_ext
28998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28999 echo "${ECHO_T}$ac_header_preproc" >&6; }
29001 # So? What about this header?
29002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29004 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29005 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29006 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29007 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29008 ac_header_preproc=yes
29011 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29012 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29014 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29016 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29017 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29018 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29019 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29020 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29021 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29022 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29024 ## ----------------------------------- ##
29025 ## Report this to llvmbugs@cs.uiuc.edu ##
29026 ## ----------------------------------- ##
29028 ) | sed "s/^/$as_me: WARNING: /" >&2
29031 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29032 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29033 if test "${ac_cv_header_opagent_h+set}" = set; then
29034 echo $ECHO_N "(cached) $ECHO_C" >&6
29036 ac_cv_header_opagent_h=$ac_header_preproc
29038 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29039 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29042 if test $ac_cv_header_opagent_h = yes; then
29046 echo "Error! You need to have opagent.h around."
29062 cat >>confdefs.h <<_ACEOF
29063 #define USE_OPROFILE $USE_OPROFILE
29073 ac_header_dirent=no
29074 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29075 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29076 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29077 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29079 echo $ECHO_N "(cached) $ECHO_C" >&6
29081 cat >conftest.$ac_ext <<_ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29087 #include <sys/types.h>
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_compile") 2>conftest.er1
29108 grep -v '^ *+' conftest.er1 >conftest.err
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114 { (case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_try") 2>&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest.$ac_objext'
29124 { (case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129 (eval "$ac_try") 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; }; then
29133 eval "$as_ac_Header=yes"
29135 echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29138 eval "$as_ac_Header=no"
29141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29143 ac_res=`eval echo '${'$as_ac_Header'}'`
29144 { echo "$as_me:$LINENO: result: $ac_res" >&5
29145 echo "${ECHO_T}$ac_res" >&6; }
29146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29151 ac_header_dirent=$ac_hdr; break
29155 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29156 if test $ac_header_dirent = dirent.h; then
29157 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29158 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29159 if test "${ac_cv_search_opendir+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29162 ac_func_search_save_LIBS=$LIBS
29163 cat >conftest.$ac_ext <<_ACEOF
29166 cat confdefs.h >>conftest.$ac_ext
29167 cat >>conftest.$ac_ext <<_ACEOF
29168 /* end confdefs.h. */
29170 /* Override any GCC internal prototype to avoid an error.
29171 Use char because int might match the return type of a GCC
29172 builtin and then its argument prototype would still apply. */
29185 for ac_lib in '' dir; do
29186 if test -z "$ac_lib"; then
29187 ac_res="none required"
29190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29192 rm -f conftest.$ac_objext conftest$ac_exeext
29193 if { (ac_try="$ac_link"
29194 case "(($ac_try" in
29195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196 *) ac_try_echo=$ac_try;;
29198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29199 (eval "$ac_link") 2>conftest.er1
29201 grep -v '^ *+' conftest.er1 >conftest.err
29203 cat conftest.err >&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } &&
29206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29207 { (case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_try") 2>&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); }; } &&
29216 { ac_try='test -s conftest$ac_exeext'
29217 { (case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_try") 2>&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; }; then
29226 ac_cv_search_opendir=$ac_res
29228 echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29234 rm -f core conftest.err conftest.$ac_objext \
29236 if test "${ac_cv_search_opendir+set}" = set; then
29240 if test "${ac_cv_search_opendir+set}" = set; then
29243 ac_cv_search_opendir=no
29245 rm conftest.$ac_ext
29246 LIBS=$ac_func_search_save_LIBS
29248 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29249 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29250 ac_res=$ac_cv_search_opendir
29251 if test "$ac_res" != no; then
29252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29257 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29258 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29259 if test "${ac_cv_search_opendir+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29262 ac_func_search_save_LIBS=$LIBS
29263 cat >conftest.$ac_ext <<_ACEOF
29266 cat confdefs.h >>conftest.$ac_ext
29267 cat >>conftest.$ac_ext <<_ACEOF
29268 /* end confdefs.h. */
29270 /* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
29285 for ac_lib in '' x; do
29286 if test -z "$ac_lib"; then
29287 ac_res="none required"
29290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>conftest.er1
29301 grep -v '^ *+' conftest.er1 >conftest.err
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } &&
29306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29307 { (case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_try") 2>&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; } &&
29316 { ac_try='test -s conftest$ac_exeext'
29317 { (case "(($ac_try" in
29318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_try") 2>&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; }; then
29326 ac_cv_search_opendir=$ac_res
29328 echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29334 rm -f core conftest.err conftest.$ac_objext \
29336 if test "${ac_cv_search_opendir+set}" = set; then
29340 if test "${ac_cv_search_opendir+set}" = set; then
29343 ac_cv_search_opendir=no
29345 rm conftest.$ac_ext
29346 LIBS=$ac_func_search_save_LIBS
29348 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29349 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29350 ac_res=$ac_cv_search_opendir
29351 if test "$ac_res" != no; then
29352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29358 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29359 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29360 if test "${ac_cv_header_mmap_anon+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29364 ac_cpp='$CPP $CPPFLAGS'
29365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29369 cat >conftest.$ac_ext <<_ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29375 #include <sys/mman.h>
29376 #include <unistd.h>
29381 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29386 rm -f conftest.$ac_objext
29387 if { (ac_try="$ac_compile"
29388 case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_compile") 2>conftest.er1
29395 grep -v '^ *+' conftest.er1 >conftest.err
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29401 { (case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_try") 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; } &&
29410 { ac_try='test -s conftest.$ac_objext'
29411 { (case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_try") 2>&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
29420 ac_cv_header_mmap_anon=yes
29422 echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29425 ac_cv_header_mmap_anon=no
29428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29430 ac_cpp='$CPP $CPPFLAGS'
29431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29437 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29438 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29439 if test "$ac_cv_header_mmap_anon" = yes; then
29441 cat >>confdefs.h <<\_ACEOF
29442 #define HAVE_MMAP_ANONYMOUS 1
29447 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29448 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29449 if test "${ac_cv_header_stat_broken+set}" = set; then
29450 echo $ECHO_N "(cached) $ECHO_C" >&6
29452 cat >conftest.$ac_ext <<_ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29458 #include <sys/types.h>
29459 #include <sys/stat.h>
29461 #if defined S_ISBLK && defined S_IFDIR
29462 # if S_ISBLK (S_IFDIR)
29467 #if defined S_ISBLK && defined S_IFCHR
29468 # if S_ISBLK (S_IFCHR)
29473 #if defined S_ISLNK && defined S_IFREG
29474 # if S_ISLNK (S_IFREG)
29479 #if defined S_ISSOCK && defined S_IFREG
29480 # if S_ISSOCK (S_IFREG)
29486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29487 $EGREP "You lose" >/dev/null 2>&1; then
29488 ac_cv_header_stat_broken=yes
29490 ac_cv_header_stat_broken=no
29495 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29496 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29497 if test $ac_cv_header_stat_broken = yes; then
29499 cat >>confdefs.h <<\_ACEOF
29500 #define STAT_MACROS_BROKEN 1
29505 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29507 if test "${ac_cv_header_stdc+set}" = set; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29510 cat >conftest.$ac_ext <<_ACEOF
29513 cat confdefs.h >>conftest.$ac_ext
29514 cat >>conftest.$ac_ext <<_ACEOF
29515 /* end confdefs.h. */
29516 #include <stdlib.h>
29517 #include <stdarg.h>
29518 #include <string.h>
29529 rm -f conftest.$ac_objext
29530 if { (ac_try="$ac_compile"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_compile") 2>conftest.er1
29538 grep -v '^ *+' conftest.er1 >conftest.err
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } &&
29543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29544 { (case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_try") 2>&5
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; } &&
29553 { ac_try='test -s conftest.$ac_objext'
29554 { (case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_try") 2>&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; }; then
29563 ac_cv_header_stdc=yes
29565 echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 ac_cv_header_stdc=no
29571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29573 if test $ac_cv_header_stdc = yes; then
29574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29575 cat >conftest.$ac_ext <<_ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 #include <string.h>
29584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29585 $EGREP "memchr" >/dev/null 2>&1; then
29588 ac_cv_header_stdc=no
29594 if test $ac_cv_header_stdc = yes; then
29595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29596 cat >conftest.$ac_ext <<_ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h. */
29602 #include <stdlib.h>
29605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29606 $EGREP "free" >/dev/null 2>&1; then
29609 ac_cv_header_stdc=no
29615 if test $ac_cv_header_stdc = yes; then
29616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29617 if test "$cross_compiling" = yes; then
29620 cat >conftest.$ac_ext <<_ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h. */
29627 #include <stdlib.h>
29628 #if ((' ' & 0x0FF) == 0x020)
29629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29632 # define ISLOWER(c) \
29633 (('a' <= (c) && (c) <= 'i') \
29634 || ('j' <= (c) && (c) <= 'r') \
29635 || ('s' <= (c) && (c) <= 'z'))
29636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29644 for (i = 0; i < 256; i++)
29645 if (XOR (islower (i), ISLOWER (i))
29646 || toupper (i) != TOUPPER (i))
29651 rm -f conftest$ac_exeext
29652 if { (ac_try="$ac_link"
29653 case "(($ac_try" in
29654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_link") 2>&5
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; }; then
29673 echo "$as_me: program exited with status $ac_status" >&5
29674 echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ( exit $ac_status )
29678 ac_cv_header_stdc=no
29680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29686 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29687 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29688 if test $ac_cv_header_stdc = yes; then
29690 cat >>confdefs.h <<\_ACEOF
29691 #define STDC_HEADERS 1
29696 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29701 cat >conftest.$ac_ext <<_ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h. */
29707 #include <sys/types.h>
29708 #include <sys/wait.h>
29709 #ifndef WEXITSTATUS
29710 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29726 rm -f conftest.$ac_objext
29727 if { (ac_try="$ac_compile"
29728 case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_compile") 2>conftest.er1
29735 grep -v '^ *+' conftest.er1 >conftest.err
29737 cat conftest.err >&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); } &&
29740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29741 { (case "(($ac_try" in
29742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743 *) ac_try_echo=$ac_try;;
29745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29746 (eval "$ac_try") 2>&5
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; } &&
29750 { ac_try='test -s conftest.$ac_objext'
29751 { (case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_try") 2>&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
29760 ac_cv_header_sys_wait_h=yes
29762 echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29765 ac_cv_header_sys_wait_h=no
29768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29770 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29771 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29772 if test $ac_cv_header_sys_wait_h = yes; then
29774 cat >>confdefs.h <<\_ACEOF
29775 #define HAVE_SYS_WAIT_H 1
29780 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29781 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29782 if test "${ac_cv_header_time+set}" = set; then
29783 echo $ECHO_N "(cached) $ECHO_C" >&6
29785 cat >conftest.$ac_ext <<_ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h. */
29791 #include <sys/types.h>
29792 #include <sys/time.h>
29798 if ((struct tm *) 0)
29804 rm -f conftest.$ac_objext
29805 if { (ac_try="$ac_compile"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_compile") 2>conftest.er1
29813 grep -v '^ *+' conftest.er1 >conftest.err
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } &&
29818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29819 { (case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_try") 2>&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; } &&
29828 { ac_try='test -s conftest.$ac_objext'
29829 { (case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_try") 2>&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
29838 ac_cv_header_time=yes
29840 echo "$as_me: failed program was:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29843 ac_cv_header_time=no
29846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29849 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29850 if test $ac_cv_header_time = yes; then
29852 cat >>confdefs.h <<\_ACEOF
29853 #define TIME_WITH_SYS_TIME 1
29865 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29872 echo $ECHO_N "(cached) $ECHO_C" >&6
29874 ac_res=`eval echo '${'$as_ac_Header'}'`
29875 { echo "$as_me:$LINENO: result: $ac_res" >&5
29876 echo "${ECHO_T}$ac_res" >&6; }
29878 # Is the header compilable?
29879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29881 cat >conftest.$ac_ext <<_ACEOF
29884 cat confdefs.h >>conftest.$ac_ext
29885 cat >>conftest.$ac_ext <<_ACEOF
29886 /* end confdefs.h. */
29887 $ac_includes_default
29888 #include <$ac_header>
29890 rm -f conftest.$ac_objext
29891 if { (ac_try="$ac_compile"
29892 case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_compile") 2>conftest.er1
29899 grep -v '^ *+' conftest.er1 >conftest.err
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } &&
29904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29905 { (case "(($ac_try" in
29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907 *) ac_try_echo=$ac_try;;
29909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910 (eval "$ac_try") 2>&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; } &&
29914 { ac_try='test -s conftest.$ac_objext'
29915 { (case "(($ac_try" in
29916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29917 *) ac_try_echo=$ac_try;;
29919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920 (eval "$ac_try") 2>&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 ac_header_compiler=yes
29926 echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29929 ac_header_compiler=no
29932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29934 echo "${ECHO_T}$ac_header_compiler" >&6; }
29936 # Is the header present?
29937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29939 cat >conftest.$ac_ext <<_ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29945 #include <$ac_header>
29947 if { (ac_try="$ac_cpp conftest.$ac_ext"
29948 case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29955 grep -v '^ *+' conftest.er1 >conftest.err
29957 cat conftest.err >&5
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } >/dev/null; then
29960 if test -s conftest.err; then
29961 ac_cpp_err=$ac_c_preproc_warn_flag
29962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29969 if test -z "$ac_cpp_err"; then
29970 ac_header_preproc=yes
29972 echo "$as_me: failed program was:" >&5
29973 sed 's/^/| /' conftest.$ac_ext >&5
29975 ac_header_preproc=no
29978 rm -f conftest.err conftest.$ac_ext
29979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29980 echo "${ECHO_T}$ac_header_preproc" >&6; }
29982 # So? What about this header?
29983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29989 ac_header_preproc=yes
29992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30005 ## ----------------------------------- ##
30006 ## Report this to llvmbugs@cs.uiuc.edu ##
30007 ## ----------------------------------- ##
30009 ) | sed "s/^/$as_me: WARNING: /" >&2
30012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30015 echo $ECHO_N "(cached) $ECHO_C" >&6
30017 eval "$as_ac_Header=\$ac_header_preproc"
30019 ac_res=`eval echo '${'$as_ac_Header'}'`
30020 { echo "$as_me:$LINENO: result: $ac_res" >&5
30021 echo "${ECHO_T}$ac_res" >&6; }
30024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30025 cat >>confdefs.h <<_ACEOF
30026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30039 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30048 ac_res=`eval echo '${'$as_ac_Header'}'`
30049 { echo "$as_me:$LINENO: result: $ac_res" >&5
30050 echo "${ECHO_T}$ac_res" >&6; }
30052 # Is the header compilable?
30053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30055 cat >conftest.$ac_ext <<_ACEOF
30058 cat confdefs.h >>conftest.$ac_ext
30059 cat >>conftest.$ac_ext <<_ACEOF
30060 /* end confdefs.h. */
30061 $ac_includes_default
30062 #include <$ac_header>
30064 rm -f conftest.$ac_objext
30065 if { (ac_try="$ac_compile"
30066 case "(($ac_try" in
30067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068 *) ac_try_echo=$ac_try;;
30070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071 (eval "$ac_compile") 2>conftest.er1
30073 grep -v '^ *+' conftest.er1 >conftest.err
30075 cat conftest.err >&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); } &&
30078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30079 { (case "(($ac_try" in
30080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081 *) ac_try_echo=$ac_try;;
30083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084 (eval "$ac_try") 2>&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; } &&
30088 { ac_try='test -s conftest.$ac_objext'
30089 { (case "(($ac_try" in
30090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30091 *) ac_try_echo=$ac_try;;
30093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30094 (eval "$ac_try") 2>&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); }; }; then
30098 ac_header_compiler=yes
30100 echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30103 ac_header_compiler=no
30106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30108 echo "${ECHO_T}$ac_header_compiler" >&6; }
30110 # Is the header present?
30111 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30113 cat >conftest.$ac_ext <<_ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h. */
30119 #include <$ac_header>
30121 if { (ac_try="$ac_cpp conftest.$ac_ext"
30122 case "(($ac_try" in
30123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124 *) ac_try_echo=$ac_try;;
30126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30129 grep -v '^ *+' conftest.er1 >conftest.err
30131 cat conftest.err >&5
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } >/dev/null; then
30134 if test -s conftest.err; then
30135 ac_cpp_err=$ac_c_preproc_warn_flag
30136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30143 if test -z "$ac_cpp_err"; then
30144 ac_header_preproc=yes
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 ac_header_preproc=no
30152 rm -f conftest.err conftest.$ac_ext
30153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30154 echo "${ECHO_T}$ac_header_preproc" >&6; }
30156 # So? What about this header?
30157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30163 ac_header_preproc=yes
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30179 ## ----------------------------------- ##
30180 ## Report this to llvmbugs@cs.uiuc.edu ##
30181 ## ----------------------------------- ##
30183 ) | sed "s/^/$as_me: WARNING: /" >&2
30186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30189 echo $ECHO_N "(cached) $ECHO_C" >&6
30191 eval "$as_ac_Header=\$ac_header_preproc"
30193 ac_res=`eval echo '${'$as_ac_Header'}'`
30194 { echo "$as_me:$LINENO: result: $ac_res" >&5
30195 echo "${ECHO_T}$ac_res" >&6; }
30198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30199 cat >>confdefs.h <<_ACEOF
30200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30209 for ac_header in utime.h windows.h
30211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30218 ac_res=`eval echo '${'$as_ac_Header'}'`
30219 { echo "$as_me:$LINENO: result: $ac_res" >&5
30220 echo "${ECHO_T}$ac_res" >&6; }
30222 # Is the header compilable?
30223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30225 cat >conftest.$ac_ext <<_ACEOF
30228 cat confdefs.h >>conftest.$ac_ext
30229 cat >>conftest.$ac_ext <<_ACEOF
30230 /* end confdefs.h. */
30231 $ac_includes_default
30232 #include <$ac_header>
30234 rm -f conftest.$ac_objext
30235 if { (ac_try="$ac_compile"
30236 case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_compile") 2>conftest.er1
30243 grep -v '^ *+' conftest.er1 >conftest.err
30245 cat conftest.err >&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); } &&
30248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30249 { (case "(($ac_try" in
30250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251 *) ac_try_echo=$ac_try;;
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254 (eval "$ac_try") 2>&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; } &&
30258 { ac_try='test -s conftest.$ac_objext'
30259 { (case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264 (eval "$ac_try") 2>&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
30268 ac_header_compiler=yes
30270 echo "$as_me: failed program was:" >&5
30271 sed 's/^/| /' conftest.$ac_ext >&5
30273 ac_header_compiler=no
30276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30278 echo "${ECHO_T}$ac_header_compiler" >&6; }
30280 # Is the header present?
30281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30283 cat >conftest.$ac_ext <<_ACEOF
30286 cat confdefs.h >>conftest.$ac_ext
30287 cat >>conftest.$ac_ext <<_ACEOF
30288 /* end confdefs.h. */
30289 #include <$ac_header>
30291 if { (ac_try="$ac_cpp conftest.$ac_ext"
30292 case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30299 grep -v '^ *+' conftest.er1 >conftest.err
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } >/dev/null; then
30304 if test -s conftest.err; then
30305 ac_cpp_err=$ac_c_preproc_warn_flag
30306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30313 if test -z "$ac_cpp_err"; then
30314 ac_header_preproc=yes
30316 echo "$as_me: failed program was:" >&5
30317 sed 's/^/| /' conftest.$ac_ext >&5
30319 ac_header_preproc=no
30322 rm -f conftest.err conftest.$ac_ext
30323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30324 echo "${ECHO_T}$ac_header_preproc" >&6; }
30326 # So? What about this header?
30327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30333 ac_header_preproc=yes
30336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30349 ## ----------------------------------- ##
30350 ## Report this to llvmbugs@cs.uiuc.edu ##
30351 ## ----------------------------------- ##
30353 ) | sed "s/^/$as_me: WARNING: /" >&2
30356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30359 echo $ECHO_N "(cached) $ECHO_C" >&6
30361 eval "$as_ac_Header=\$ac_header_preproc"
30363 ac_res=`eval echo '${'$as_ac_Header'}'`
30364 { echo "$as_me:$LINENO: result: $ac_res" >&5
30365 echo "${ECHO_T}$ac_res" >&6; }
30368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30369 cat >>confdefs.h <<_ACEOF
30370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30381 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30390 ac_res=`eval echo '${'$as_ac_Header'}'`
30391 { echo "$as_me:$LINENO: result: $ac_res" >&5
30392 echo "${ECHO_T}$ac_res" >&6; }
30394 # Is the header compilable?
30395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30397 cat >conftest.$ac_ext <<_ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h. */
30403 $ac_includes_default
30404 #include <$ac_header>
30406 rm -f conftest.$ac_objext
30407 if { (ac_try="$ac_compile"
30408 case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_compile") 2>conftest.er1
30415 grep -v '^ *+' conftest.er1 >conftest.err
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421 { (case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_try") 2>&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest.$ac_objext'
30431 { (case "(($ac_try" in
30432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433 *) ac_try_echo=$ac_try;;
30435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436 (eval "$ac_try") 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_header_compiler=yes
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30445 ac_header_compiler=no
30448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30450 echo "${ECHO_T}$ac_header_compiler" >&6; }
30452 # Is the header present?
30453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30455 cat >conftest.$ac_ext <<_ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h. */
30461 #include <$ac_header>
30463 if { (ac_try="$ac_cpp conftest.$ac_ext"
30464 case "(($ac_try" in
30465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466 *) ac_try_echo=$ac_try;;
30468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30471 grep -v '^ *+' conftest.er1 >conftest.err
30473 cat conftest.err >&5
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } >/dev/null; then
30476 if test -s conftest.err; then
30477 ac_cpp_err=$ac_c_preproc_warn_flag
30478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30485 if test -z "$ac_cpp_err"; then
30486 ac_header_preproc=yes
30488 echo "$as_me: failed program was:" >&5
30489 sed 's/^/| /' conftest.$ac_ext >&5
30491 ac_header_preproc=no
30494 rm -f conftest.err conftest.$ac_ext
30495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30496 echo "${ECHO_T}$ac_header_preproc" >&6; }
30498 # So? What about this header?
30499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30505 ac_header_preproc=yes
30508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30521 ## ----------------------------------- ##
30522 ## Report this to llvmbugs@cs.uiuc.edu ##
30523 ## ----------------------------------- ##
30525 ) | sed "s/^/$as_me: WARNING: /" >&2
30528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30531 echo $ECHO_N "(cached) $ECHO_C" >&6
30533 eval "$as_ac_Header=\$ac_header_preproc"
30535 ac_res=`eval echo '${'$as_ac_Header'}'`
30536 { echo "$as_me:$LINENO: result: $ac_res" >&5
30537 echo "${ECHO_T}$ac_res" >&6; }
30540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30541 cat >>confdefs.h <<_ACEOF
30542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30553 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 ac_res=`eval echo '${'$as_ac_Header'}'`
30563 { echo "$as_me:$LINENO: result: $ac_res" >&5
30564 echo "${ECHO_T}$ac_res" >&6; }
30566 # Is the header compilable?
30567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30569 cat >conftest.$ac_ext <<_ACEOF
30572 cat confdefs.h >>conftest.$ac_ext
30573 cat >>conftest.$ac_ext <<_ACEOF
30574 /* end confdefs.h. */
30575 $ac_includes_default
30576 #include <$ac_header>
30578 rm -f conftest.$ac_objext
30579 if { (ac_try="$ac_compile"
30580 case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_compile") 2>conftest.er1
30587 grep -v '^ *+' conftest.er1 >conftest.err
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } &&
30592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30593 { (case "(($ac_try" in
30594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595 *) ac_try_echo=$ac_try;;
30597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598 (eval "$ac_try") 2>&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; } &&
30602 { ac_try='test -s conftest.$ac_objext'
30603 { (case "(($ac_try" in
30604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30605 *) ac_try_echo=$ac_try;;
30607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30608 (eval "$ac_try") 2>&5
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; }; then
30612 ac_header_compiler=yes
30614 echo "$as_me: failed program was:" >&5
30615 sed 's/^/| /' conftest.$ac_ext >&5
30617 ac_header_compiler=no
30620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30622 echo "${ECHO_T}$ac_header_compiler" >&6; }
30624 # Is the header present?
30625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30627 cat >conftest.$ac_ext <<_ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h. */
30633 #include <$ac_header>
30635 if { (ac_try="$ac_cpp conftest.$ac_ext"
30636 case "(($ac_try" in
30637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638 *) ac_try_echo=$ac_try;;
30640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30643 grep -v '^ *+' conftest.er1 >conftest.err
30645 cat conftest.err >&5
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } >/dev/null; then
30648 if test -s conftest.err; then
30649 ac_cpp_err=$ac_c_preproc_warn_flag
30650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30657 if test -z "$ac_cpp_err"; then
30658 ac_header_preproc=yes
30660 echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30663 ac_header_preproc=no
30666 rm -f conftest.err conftest.$ac_ext
30667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30668 echo "${ECHO_T}$ac_header_preproc" >&6; }
30670 # So? What about this header?
30671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30677 ac_header_preproc=yes
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30693 ## ----------------------------------- ##
30694 ## Report this to llvmbugs@cs.uiuc.edu ##
30695 ## ----------------------------------- ##
30697 ) | sed "s/^/$as_me: WARNING: /" >&2
30700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30705 eval "$as_ac_Header=\$ac_header_preproc"
30707 ac_res=`eval echo '${'$as_ac_Header'}'`
30708 { echo "$as_me:$LINENO: result: $ac_res" >&5
30709 echo "${ECHO_T}$ac_res" >&6; }
30712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30713 cat >>confdefs.h <<_ACEOF
30714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30721 if test "$ENABLE_THREADS" -eq 1 ; then
30723 for ac_header in pthread.h
30725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30730 echo $ECHO_N "(cached) $ECHO_C" >&6
30732 ac_res=`eval echo '${'$as_ac_Header'}'`
30733 { echo "$as_me:$LINENO: result: $ac_res" >&5
30734 echo "${ECHO_T}$ac_res" >&6; }
30736 # Is the header compilable?
30737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30739 cat >conftest.$ac_ext <<_ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30745 $ac_includes_default
30746 #include <$ac_header>
30748 rm -f conftest.$ac_objext
30749 if { (ac_try="$ac_compile"
30750 case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_compile") 2>conftest.er1
30757 grep -v '^ *+' conftest.er1 >conftest.err
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } &&
30762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30763 { (case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_try") 2>&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest.$ac_objext'
30773 { (case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_try") 2>&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
30782 ac_header_compiler=yes
30784 echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30787 ac_header_compiler=no
30790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30792 echo "${ECHO_T}$ac_header_compiler" >&6; }
30794 # Is the header present?
30795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30797 cat >conftest.$ac_ext <<_ACEOF
30800 cat confdefs.h >>conftest.$ac_ext
30801 cat >>conftest.$ac_ext <<_ACEOF
30802 /* end confdefs.h. */
30803 #include <$ac_header>
30805 if { (ac_try="$ac_cpp conftest.$ac_ext"
30806 case "(($ac_try" in
30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808 *) ac_try_echo=$ac_try;;
30810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30813 grep -v '^ *+' conftest.er1 >conftest.err
30815 cat conftest.err >&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } >/dev/null; then
30818 if test -s conftest.err; then
30819 ac_cpp_err=$ac_c_preproc_warn_flag
30820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30827 if test -z "$ac_cpp_err"; then
30828 ac_header_preproc=yes
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 ac_header_preproc=no
30836 rm -f conftest.err conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30838 echo "${ECHO_T}$ac_header_preproc" >&6; }
30840 # So? What about this header?
30841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30847 ac_header_preproc=yes
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30863 ## ----------------------------------- ##
30864 ## Report this to llvmbugs@cs.uiuc.edu ##
30865 ## ----------------------------------- ##
30867 ) | sed "s/^/$as_me: WARNING: /" >&2
30870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30873 echo $ECHO_N "(cached) $ECHO_C" >&6
30875 eval "$as_ac_Header=\$ac_header_preproc"
30877 ac_res=`eval echo '${'$as_ac_Header'}'`
30878 { echo "$as_me:$LINENO: result: $ac_res" >&5
30879 echo "${ECHO_T}$ac_res" >&6; }
30882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30883 cat >>confdefs.h <<_ACEOF
30884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30900 if test "$llvm_cv_enable_libffi" = "yes" ; then
30903 for ac_header in ffi.h ffi/ffi.h
30905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30910 echo $ECHO_N "(cached) $ECHO_C" >&6
30912 ac_res=`eval echo '${'$as_ac_Header'}'`
30913 { echo "$as_me:$LINENO: result: $ac_res" >&5
30914 echo "${ECHO_T}$ac_res" >&6; }
30916 # Is the header compilable?
30917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30919 cat >conftest.$ac_ext <<_ACEOF
30922 cat confdefs.h >>conftest.$ac_ext
30923 cat >>conftest.$ac_ext <<_ACEOF
30924 /* end confdefs.h. */
30925 $ac_includes_default
30926 #include <$ac_header>
30928 rm -f conftest.$ac_objext
30929 if { (ac_try="$ac_compile"
30930 case "(($ac_try" in
30931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30932 *) ac_try_echo=$ac_try;;
30934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30935 (eval "$ac_compile") 2>conftest.er1
30937 grep -v '^ *+' conftest.er1 >conftest.err
30939 cat conftest.err >&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); } &&
30942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30943 { (case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_try") 2>&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; } &&
30952 { ac_try='test -s conftest.$ac_objext'
30953 { (case "(($ac_try" in
30954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30955 *) ac_try_echo=$ac_try;;
30957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30958 (eval "$ac_try") 2>&5
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; }; then
30962 ac_header_compiler=yes
30964 echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.$ac_ext >&5
30967 ac_header_compiler=no
30970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30972 echo "${ECHO_T}$ac_header_compiler" >&6; }
30974 # Is the header present?
30975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30977 cat >conftest.$ac_ext <<_ACEOF
30980 cat confdefs.h >>conftest.$ac_ext
30981 cat >>conftest.$ac_ext <<_ACEOF
30982 /* end confdefs.h. */
30983 #include <$ac_header>
30985 if { (ac_try="$ac_cpp conftest.$ac_ext"
30986 case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30993 grep -v '^ *+' conftest.er1 >conftest.err
30995 cat conftest.err >&5
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); } >/dev/null; then
30998 if test -s conftest.err; then
30999 ac_cpp_err=$ac_c_preproc_warn_flag
31000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31007 if test -z "$ac_cpp_err"; then
31008 ac_header_preproc=yes
31010 echo "$as_me: failed program was:" >&5
31011 sed 's/^/| /' conftest.$ac_ext >&5
31013 ac_header_preproc=no
31016 rm -f conftest.err conftest.$ac_ext
31017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31018 echo "${ECHO_T}$ac_header_preproc" >&6; }
31020 # So? What about this header?
31021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31027 ac_header_preproc=yes
31030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31043 ## ----------------------------------- ##
31044 ## Report this to llvmbugs@cs.uiuc.edu ##
31045 ## ----------------------------------- ##
31047 ) | sed "s/^/$as_me: WARNING: /" >&2
31050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31053 echo $ECHO_N "(cached) $ECHO_C" >&6
31055 eval "$as_ac_Header=\$ac_header_preproc"
31057 ac_res=`eval echo '${'$as_ac_Header'}'`
31058 { echo "$as_me:$LINENO: result: $ac_res" >&5
31059 echo "${ECHO_T}$ac_res" >&6; }
31062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31063 cat >>confdefs.h <<_ACEOF
31064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31075 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31076 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31077 if test "${ac_cv_huge_val_sanity+set}" = set; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31082 ac_cpp='$CXXCPP $CPPFLAGS'
31083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31088 if test "$cross_compiling" = yes; then
31089 ac_cv_huge_val_sanity=yes
31091 cat >conftest.$ac_ext <<_ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h. */
31101 double x = HUGE_VAL; return x != x;
31106 rm -f conftest$ac_exeext
31107 if { (ac_try="$ac_link"
31108 case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_link") 2>&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 ac_cv_huge_val_sanity=yes
31128 echo "$as_me: program exited with status $ac_status" >&5
31129 echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31132 ( exit $ac_status )
31133 ac_cv_huge_val_sanity=no
31135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31140 ac_cpp='$CPP $CPPFLAGS'
31141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31147 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31148 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31149 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31152 { echo "$as_me:$LINENO: checking for pid_t" >&5
31153 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31154 if test "${ac_cv_type_pid_t+set}" = set; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31157 cat >conftest.$ac_ext <<_ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h. */
31163 $ac_includes_default
31164 typedef pid_t ac__type_new_;
31168 if ((ac__type_new_ *) 0)
31170 if (sizeof (ac__type_new_))
31176 rm -f conftest.$ac_objext
31177 if { (ac_try="$ac_compile"
31178 case "(($ac_try" in
31179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31180 *) ac_try_echo=$ac_try;;
31182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31183 (eval "$ac_compile") 2>conftest.er1
31185 grep -v '^ *+' conftest.er1 >conftest.err
31187 cat conftest.err >&5
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); } &&
31190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31191 { (case "(($ac_try" in
31192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31193 *) ac_try_echo=$ac_try;;
31195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31196 (eval "$ac_try") 2>&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); }; } &&
31200 { ac_try='test -s conftest.$ac_objext'
31201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; }; then
31210 ac_cv_type_pid_t=yes
31212 echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31215 ac_cv_type_pid_t=no
31218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31221 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31222 if test $ac_cv_type_pid_t = yes; then
31226 cat >>confdefs.h <<_ACEOF
31232 { echo "$as_me:$LINENO: checking for size_t" >&5
31233 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31234 if test "${ac_cv_type_size_t+set}" = set; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31237 cat >conftest.$ac_ext <<_ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h. */
31243 $ac_includes_default
31244 typedef size_t ac__type_new_;
31248 if ((ac__type_new_ *) 0)
31250 if (sizeof (ac__type_new_))
31256 rm -f conftest.$ac_objext
31257 if { (ac_try="$ac_compile"
31258 case "(($ac_try" in
31259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260 *) ac_try_echo=$ac_try;;
31262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31263 (eval "$ac_compile") 2>conftest.er1
31265 grep -v '^ *+' conftest.er1 >conftest.err
31267 cat conftest.err >&5
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); } &&
31270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31271 { (case "(($ac_try" in
31272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273 *) ac_try_echo=$ac_try;;
31275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276 (eval "$ac_try") 2>&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; } &&
31280 { ac_try='test -s conftest.$ac_objext'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }; then
31290 ac_cv_type_size_t=yes
31292 echo "$as_me: failed program was:" >&5
31293 sed 's/^/| /' conftest.$ac_ext >&5
31295 ac_cv_type_size_t=no
31298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31300 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31301 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31302 if test $ac_cv_type_size_t = yes; then
31306 cat >>confdefs.h <<_ACEOF
31307 #define size_t unsigned int
31312 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31314 if test "${ac_cv_type_signal+set}" = set; then
31315 echo $ECHO_N "(cached) $ECHO_C" >&6
31317 cat >conftest.$ac_ext <<_ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31323 #include <sys/types.h>
31324 #include <signal.h>
31329 return *(signal (0, 0)) (0) == 1;
31334 rm -f conftest.$ac_objext
31335 if { (ac_try="$ac_compile"
31336 case "(($ac_try" in
31337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338 *) ac_try_echo=$ac_try;;
31340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341 (eval "$ac_compile") 2>conftest.er1
31343 grep -v '^ *+' conftest.er1 >conftest.err
31345 cat conftest.err >&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } &&
31348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31349 { (case "(($ac_try" in
31350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351 *) ac_try_echo=$ac_try;;
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354 (eval "$ac_try") 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; } &&
31358 { ac_try='test -s conftest.$ac_objext'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; }; then
31368 ac_cv_type_signal=int
31370 echo "$as_me: failed program was:" >&5
31371 sed 's/^/| /' conftest.$ac_ext >&5
31373 ac_cv_type_signal=void
31376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31378 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31379 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31381 cat >>confdefs.h <<_ACEOF
31382 #define RETSIGTYPE $ac_cv_type_signal
31386 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31387 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31388 if test "${ac_cv_struct_tm+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31391 cat >conftest.$ac_ext <<_ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h. */
31397 #include <sys/types.h>
31403 struct tm *tp; tp->tm_sec;
31408 rm -f conftest.$ac_objext
31409 if { (ac_try="$ac_compile"
31410 case "(($ac_try" in
31411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412 *) ac_try_echo=$ac_try;;
31414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31415 (eval "$ac_compile") 2>conftest.er1
31417 grep -v '^ *+' conftest.er1 >conftest.err
31419 cat conftest.err >&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); } &&
31422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31423 { (case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_try") 2>&5
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; } &&
31432 { ac_try='test -s conftest.$ac_objext'
31433 { (case "(($ac_try" in
31434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435 *) ac_try_echo=$ac_try;;
31437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438 (eval "$ac_try") 2>&5
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); }; }; then
31442 ac_cv_struct_tm=time.h
31444 echo "$as_me: failed program was:" >&5
31445 sed 's/^/| /' conftest.$ac_ext >&5
31447 ac_cv_struct_tm=sys/time.h
31450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31452 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31453 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31454 if test $ac_cv_struct_tm = sys/time.h; then
31456 cat >>confdefs.h <<\_ACEOF
31457 #define TM_IN_SYS_TIME 1
31462 { echo "$as_me:$LINENO: checking for int64_t" >&5
31463 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31464 if test "${ac_cv_type_int64_t+set}" = set; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31467 cat >conftest.$ac_ext <<_ACEOF
31470 cat confdefs.h >>conftest.$ac_ext
31471 cat >>conftest.$ac_ext <<_ACEOF
31472 /* end confdefs.h. */
31473 $ac_includes_default
31474 typedef int64_t ac__type_new_;
31478 if ((ac__type_new_ *) 0)
31480 if (sizeof (ac__type_new_))
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_compile") 2>conftest.er1
31495 grep -v '^ *+' conftest.er1 >conftest.err
31497 cat conftest.err >&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } &&
31500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31501 { (case "(($ac_try" in
31502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31503 *) ac_try_echo=$ac_try;;
31505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31506 (eval "$ac_try") 2>&5
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); }; } &&
31510 { ac_try='test -s conftest.$ac_objext'
31511 { (case "(($ac_try" in
31512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31513 *) ac_try_echo=$ac_try;;
31515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31516 (eval "$ac_try") 2>&5
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; }; then
31520 ac_cv_type_int64_t=yes
31522 echo "$as_me: failed program was:" >&5
31523 sed 's/^/| /' conftest.$ac_ext >&5
31525 ac_cv_type_int64_t=no
31528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31530 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31531 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31532 if test $ac_cv_type_int64_t = yes; then
31534 cat >>confdefs.h <<_ACEOF
31535 #define HAVE_INT64_T 1
31540 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31541 echo "$as_me: error: Type int64_t required but not found" >&2;}
31542 { (exit 1); exit 1; }; }
31545 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31546 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31547 if test "${ac_cv_type_uint64_t+set}" = set; then
31548 echo $ECHO_N "(cached) $ECHO_C" >&6
31550 cat >conftest.$ac_ext <<_ACEOF
31553 cat confdefs.h >>conftest.$ac_ext
31554 cat >>conftest.$ac_ext <<_ACEOF
31555 /* end confdefs.h. */
31556 $ac_includes_default
31557 typedef uint64_t ac__type_new_;
31561 if ((ac__type_new_ *) 0)
31563 if (sizeof (ac__type_new_))
31569 rm -f conftest.$ac_objext
31570 if { (ac_try="$ac_compile"
31571 case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_compile") 2>conftest.er1
31578 grep -v '^ *+' conftest.er1 >conftest.err
31580 cat conftest.err >&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); } &&
31583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31584 { (case "(($ac_try" in
31585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586 *) ac_try_echo=$ac_try;;
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589 (eval "$ac_try") 2>&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; } &&
31593 { ac_try='test -s conftest.$ac_objext'
31594 { (case "(($ac_try" in
31595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596 *) ac_try_echo=$ac_try;;
31598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599 (eval "$ac_try") 2>&5
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; }; then
31603 ac_cv_type_uint64_t=yes
31605 echo "$as_me: failed program was:" >&5
31606 sed 's/^/| /' conftest.$ac_ext >&5
31608 ac_cv_type_uint64_t=no
31611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31613 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31614 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31615 if test $ac_cv_type_uint64_t = yes; then
31617 cat >>confdefs.h <<_ACEOF
31618 #define HAVE_UINT64_T 1
31623 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31624 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31625 if test "${ac_cv_type_u_int64_t+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31628 cat >conftest.$ac_ext <<_ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h. */
31634 $ac_includes_default
31635 typedef u_int64_t ac__type_new_;
31639 if ((ac__type_new_ *) 0)
31641 if (sizeof (ac__type_new_))
31647 rm -f conftest.$ac_objext
31648 if { (ac_try="$ac_compile"
31649 case "(($ac_try" in
31650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651 *) ac_try_echo=$ac_try;;
31653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654 (eval "$ac_compile") 2>conftest.er1
31656 grep -v '^ *+' conftest.er1 >conftest.err
31658 cat conftest.err >&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } &&
31661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31662 { (case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_try") 2>&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; } &&
31671 { ac_try='test -s conftest.$ac_objext'
31672 { (case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_try") 2>&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
31681 ac_cv_type_u_int64_t=yes
31683 echo "$as_me: failed program was:" >&5
31684 sed 's/^/| /' conftest.$ac_ext >&5
31686 ac_cv_type_u_int64_t=no
31689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31691 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31692 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31693 if test $ac_cv_type_u_int64_t = yes; then
31695 cat >>confdefs.h <<_ACEOF
31696 #define HAVE_U_INT64_T 1
31701 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31702 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31703 { (exit 1); exit 1; }; }
31717 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31723 echo $ECHO_N "(cached) $ECHO_C" >&6
31725 cat >conftest.$ac_ext <<_ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h. */
31731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31733 #define $ac_func innocuous_$ac_func
31735 /* System header to define __stub macros and hopefully few prototypes,
31736 which can conflict with char $ac_func (); below.
31737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31738 <limits.h> exists even on freestanding compilers. */
31741 # include <limits.h>
31743 # include <assert.h>
31748 /* Override any GCC internal prototype to avoid an error.
31749 Use char because int might match the return type of a GCC
31750 builtin and then its argument prototype would still apply. */
31755 /* The GNU C library defines this for functions which it implements
31756 to always fail with ENOSYS. Some functions are actually named
31757 something starting with __ and the normal name is an alias. */
31758 #if defined __stub_$ac_func || defined __stub___$ac_func
31765 return $ac_func ();
31770 rm -f conftest.$ac_objext conftest$ac_exeext
31771 if { (ac_try="$ac_link"
31772 case "(($ac_try" in
31773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774 *) ac_try_echo=$ac_try;;
31776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777 (eval "$ac_link") 2>conftest.er1
31779 grep -v '^ *+' conftest.er1 >conftest.err
31781 cat conftest.err >&5
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); } &&
31784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31785 { (case "(($ac_try" in
31786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787 *) ac_try_echo=$ac_try;;
31789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31790 (eval "$ac_try") 2>&5
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); }; } &&
31794 { ac_try='test -s conftest$ac_exeext'
31795 { (case "(($ac_try" in
31796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31797 *) ac_try_echo=$ac_try;;
31799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31800 (eval "$ac_try") 2>&5
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; }; then
31804 eval "$as_ac_var=yes"
31806 echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31809 eval "$as_ac_var=no"
31812 rm -f core conftest.err conftest.$ac_objext \
31813 conftest$ac_exeext conftest.$ac_ext
31815 ac_res=`eval echo '${'$as_ac_var'}'`
31816 { echo "$as_me:$LINENO: result: $ac_res" >&5
31817 echo "${ECHO_T}$ac_res" >&6; }
31818 if test `eval echo '${'$as_ac_var'}'` = yes; then
31819 cat >>confdefs.h <<_ACEOF
31820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31830 for ac_func in powf fmodf strtof round
31832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31836 echo $ECHO_N "(cached) $ECHO_C" >&6
31838 cat >conftest.$ac_ext <<_ACEOF
31841 cat confdefs.h >>conftest.$ac_ext
31842 cat >>conftest.$ac_ext <<_ACEOF
31843 /* end confdefs.h. */
31844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31846 #define $ac_func innocuous_$ac_func
31848 /* System header to define __stub macros and hopefully few prototypes,
31849 which can conflict with char $ac_func (); below.
31850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31851 <limits.h> exists even on freestanding compilers. */
31854 # include <limits.h>
31856 # include <assert.h>
31861 /* Override any GCC internal prototype to avoid an error.
31862 Use char because int might match the return type of a GCC
31863 builtin and then its argument prototype would still apply. */
31868 /* The GNU C library defines this for functions which it implements
31869 to always fail with ENOSYS. Some functions are actually named
31870 something starting with __ and the normal name is an alias. */
31871 #if defined __stub_$ac_func || defined __stub___$ac_func
31878 return $ac_func ();
31883 rm -f conftest.$ac_objext conftest$ac_exeext
31884 if { (ac_try="$ac_link"
31885 case "(($ac_try" in
31886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887 *) ac_try_echo=$ac_try;;
31889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890 (eval "$ac_link") 2>conftest.er1
31892 grep -v '^ *+' conftest.er1 >conftest.err
31894 cat conftest.err >&5
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); } &&
31897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31898 { (case "(($ac_try" in
31899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900 *) ac_try_echo=$ac_try;;
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_try") 2>&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try='test -s conftest$ac_exeext'
31908 { (case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_try") 2>&5
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; }; then
31917 eval "$as_ac_var=yes"
31919 echo "$as_me: failed program was:" >&5
31920 sed 's/^/| /' conftest.$ac_ext >&5
31922 eval "$as_ac_var=no"
31925 rm -f core conftest.err conftest.$ac_objext \
31926 conftest$ac_exeext conftest.$ac_ext
31928 ac_res=`eval echo '${'$as_ac_var'}'`
31929 { echo "$as_me:$LINENO: result: $ac_res" >&5
31930 echo "${ECHO_T}$ac_res" >&6; }
31931 if test `eval echo '${'$as_ac_var'}'` = yes; then
31932 cat >>confdefs.h <<_ACEOF
31933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31944 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31952 cat >conftest.$ac_ext <<_ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h. */
31958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31960 #define $ac_func innocuous_$ac_func
31962 /* System header to define __stub macros and hopefully few prototypes,
31963 which can conflict with char $ac_func (); below.
31964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31965 <limits.h> exists even on freestanding compilers. */
31968 # include <limits.h>
31970 # include <assert.h>
31975 /* Override any GCC internal prototype to avoid an error.
31976 Use char because int might match the return type of a GCC
31977 builtin and then its argument prototype would still apply. */
31982 /* The GNU C library defines this for functions which it implements
31983 to always fail with ENOSYS. Some functions are actually named
31984 something starting with __ and the normal name is an alias. */
31985 #if defined __stub_$ac_func || defined __stub___$ac_func
31992 return $ac_func ();
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_link") 2>conftest.er1
32006 grep -v '^ *+' conftest.er1 >conftest.err
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } &&
32011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32012 { (case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_try") 2>&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest$ac_exeext'
32022 { (case "(($ac_try" in
32023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024 *) ac_try_echo=$ac_try;;
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027 (eval "$ac_try") 2>&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; }; then
32031 eval "$as_ac_var=yes"
32033 echo "$as_me: failed program was:" >&5
32034 sed 's/^/| /' conftest.$ac_ext >&5
32036 eval "$as_ac_var=no"
32039 rm -f core conftest.err conftest.$ac_objext \
32040 conftest$ac_exeext conftest.$ac_ext
32042 ac_res=`eval echo '${'$as_ac_var'}'`
32043 { echo "$as_me:$LINENO: result: $ac_res" >&5
32044 echo "${ECHO_T}$ac_res" >&6; }
32045 if test `eval echo '${'$as_ac_var'}'` = yes; then
32046 cat >>confdefs.h <<_ACEOF
32047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32056 for ac_func in isatty mkdtemp mkstemp
32058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32062 echo $ECHO_N "(cached) $ECHO_C" >&6
32064 cat >conftest.$ac_ext <<_ACEOF
32067 cat confdefs.h >>conftest.$ac_ext
32068 cat >>conftest.$ac_ext <<_ACEOF
32069 /* end confdefs.h. */
32070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32072 #define $ac_func innocuous_$ac_func
32074 /* System header to define __stub macros and hopefully few prototypes,
32075 which can conflict with char $ac_func (); below.
32076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32077 <limits.h> exists even on freestanding compilers. */
32080 # include <limits.h>
32082 # include <assert.h>
32087 /* Override any GCC internal prototype to avoid an error.
32088 Use char because int might match the return type of a GCC
32089 builtin and then its argument prototype would still apply. */
32094 /* The GNU C library defines this for functions which it implements
32095 to always fail with ENOSYS. Some functions are actually named
32096 something starting with __ and the normal name is an alias. */
32097 #if defined __stub_$ac_func || defined __stub___$ac_func
32104 return $ac_func ();
32109 rm -f conftest.$ac_objext conftest$ac_exeext
32110 if { (ac_try="$ac_link"
32111 case "(($ac_try" in
32112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113 *) ac_try_echo=$ac_try;;
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116 (eval "$ac_link") 2>conftest.er1
32118 grep -v '^ *+' conftest.er1 >conftest.err
32120 cat conftest.err >&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); } &&
32123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32124 { (case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129 (eval "$ac_try") 2>&5
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; } &&
32133 { ac_try='test -s conftest$ac_exeext'
32134 { (case "(($ac_try" in
32135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136 *) ac_try_echo=$ac_try;;
32138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139 (eval "$ac_try") 2>&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); }; }; then
32143 eval "$as_ac_var=yes"
32145 echo "$as_me: failed program was:" >&5
32146 sed 's/^/| /' conftest.$ac_ext >&5
32148 eval "$as_ac_var=no"
32151 rm -f core conftest.err conftest.$ac_objext \
32152 conftest$ac_exeext conftest.$ac_ext
32154 ac_res=`eval echo '${'$as_ac_var'}'`
32155 { echo "$as_me:$LINENO: result: $ac_res" >&5
32156 echo "${ECHO_T}$ac_res" >&6; }
32157 if test `eval echo '${'$as_ac_var'}'` = yes; then
32158 cat >>confdefs.h <<_ACEOF
32159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32170 for ac_func in mktemp realpath sbrk setrlimit strdup
32172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32178 cat >conftest.$ac_ext <<_ACEOF
32181 cat confdefs.h >>conftest.$ac_ext
32182 cat >>conftest.$ac_ext <<_ACEOF
32183 /* end confdefs.h. */
32184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32186 #define $ac_func innocuous_$ac_func
32188 /* System header to define __stub macros and hopefully few prototypes,
32189 which can conflict with char $ac_func (); below.
32190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32191 <limits.h> exists even on freestanding compilers. */
32194 # include <limits.h>
32196 # include <assert.h>
32201 /* Override any GCC internal prototype to avoid an error.
32202 Use char because int might match the return type of a GCC
32203 builtin and then its argument prototype would still apply. */
32208 /* The GNU C library defines this for functions which it implements
32209 to always fail with ENOSYS. Some functions are actually named
32210 something starting with __ and the normal name is an alias. */
32211 #if defined __stub_$ac_func || defined __stub___$ac_func
32218 return $ac_func ();
32223 rm -f conftest.$ac_objext conftest$ac_exeext
32224 if { (ac_try="$ac_link"
32225 case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_link") 2>conftest.er1
32232 grep -v '^ *+' conftest.er1 >conftest.err
32234 cat conftest.err >&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } &&
32237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32238 { (case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243 (eval "$ac_try") 2>&5
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; } &&
32247 { ac_try='test -s conftest$ac_exeext'
32248 { (case "(($ac_try" in
32249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250 *) ac_try_echo=$ac_try;;
32252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32253 (eval "$ac_try") 2>&5
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); }; }; then
32257 eval "$as_ac_var=yes"
32259 echo "$as_me: failed program was:" >&5
32260 sed 's/^/| /' conftest.$ac_ext >&5
32262 eval "$as_ac_var=no"
32265 rm -f core conftest.err conftest.$ac_objext \
32266 conftest$ac_exeext conftest.$ac_ext
32268 ac_res=`eval echo '${'$as_ac_var'}'`
32269 { echo "$as_me:$LINENO: result: $ac_res" >&5
32270 echo "${ECHO_T}$ac_res" >&6; }
32271 if test `eval echo '${'$as_ac_var'}'` = yes; then
32272 cat >>confdefs.h <<_ACEOF
32273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32283 for ac_func in strerror strerror_r strerror_s setenv
32285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32289 echo $ECHO_N "(cached) $ECHO_C" >&6
32291 cat >conftest.$ac_ext <<_ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h. */
32297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32299 #define $ac_func innocuous_$ac_func
32301 /* System header to define __stub macros and hopefully few prototypes,
32302 which can conflict with char $ac_func (); below.
32303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32304 <limits.h> exists even on freestanding compilers. */
32307 # include <limits.h>
32309 # include <assert.h>
32314 /* Override any GCC internal prototype to avoid an error.
32315 Use char because int might match the return type of a GCC
32316 builtin and then its argument prototype would still apply. */
32321 /* The GNU C library defines this for functions which it implements
32322 to always fail with ENOSYS. Some functions are actually named
32323 something starting with __ and the normal name is an alias. */
32324 #if defined __stub_$ac_func || defined __stub___$ac_func
32331 return $ac_func ();
32336 rm -f conftest.$ac_objext conftest$ac_exeext
32337 if { (ac_try="$ac_link"
32338 case "(($ac_try" in
32339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340 *) ac_try_echo=$ac_try;;
32342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343 (eval "$ac_link") 2>conftest.er1
32345 grep -v '^ *+' conftest.er1 >conftest.err
32347 cat conftest.err >&5
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); } &&
32350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32351 { (case "(($ac_try" in
32352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353 *) ac_try_echo=$ac_try;;
32355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356 (eval "$ac_try") 2>&5
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; } &&
32360 { ac_try='test -s conftest$ac_exeext'
32361 { (case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_try") 2>&5
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; }; then
32370 eval "$as_ac_var=yes"
32372 echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32375 eval "$as_ac_var=no"
32378 rm -f core conftest.err conftest.$ac_objext \
32379 conftest$ac_exeext conftest.$ac_ext
32381 ac_res=`eval echo '${'$as_ac_var'}'`
32382 { echo "$as_me:$LINENO: result: $ac_res" >&5
32383 echo "${ECHO_T}$ac_res" >&6; }
32384 if test `eval echo '${'$as_ac_var'}'` = yes; then
32385 cat >>confdefs.h <<_ACEOF
32386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32396 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32404 cat >conftest.$ac_ext <<_ACEOF
32407 cat confdefs.h >>conftest.$ac_ext
32408 cat >>conftest.$ac_ext <<_ACEOF
32409 /* end confdefs.h. */
32410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32412 #define $ac_func innocuous_$ac_func
32414 /* System header to define __stub macros and hopefully few prototypes,
32415 which can conflict with char $ac_func (); below.
32416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32417 <limits.h> exists even on freestanding compilers. */
32420 # include <limits.h>
32422 # include <assert.h>
32427 /* Override any GCC internal prototype to avoid an error.
32428 Use char because int might match the return type of a GCC
32429 builtin and then its argument prototype would still apply. */
32434 /* The GNU C library defines this for functions which it implements
32435 to always fail with ENOSYS. Some functions are actually named
32436 something starting with __ and the normal name is an alias. */
32437 #if defined __stub_$ac_func || defined __stub___$ac_func
32444 return $ac_func ();
32449 rm -f conftest.$ac_objext conftest$ac_exeext
32450 if { (ac_try="$ac_link"
32451 case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_link") 2>conftest.er1
32458 grep -v '^ *+' conftest.er1 >conftest.err
32460 cat conftest.err >&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } &&
32463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32464 { (case "(($ac_try" in
32465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466 *) ac_try_echo=$ac_try;;
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469 (eval "$ac_try") 2>&5
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); }; } &&
32473 { ac_try='test -s conftest$ac_exeext'
32474 { (case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_try") 2>&5
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); }; }; then
32483 eval "$as_ac_var=yes"
32485 echo "$as_me: failed program was:" >&5
32486 sed 's/^/| /' conftest.$ac_ext >&5
32488 eval "$as_ac_var=no"
32491 rm -f core conftest.err conftest.$ac_objext \
32492 conftest$ac_exeext conftest.$ac_ext
32494 ac_res=`eval echo '${'$as_ac_var'}'`
32495 { echo "$as_me:$LINENO: result: $ac_res" >&5
32496 echo "${ECHO_T}$ac_res" >&6; }
32497 if test `eval echo '${'$as_ac_var'}'` = yes; then
32498 cat >>confdefs.h <<_ACEOF
32499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32509 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32515 echo $ECHO_N "(cached) $ECHO_C" >&6
32517 cat >conftest.$ac_ext <<_ACEOF
32520 cat confdefs.h >>conftest.$ac_ext
32521 cat >>conftest.$ac_ext <<_ACEOF
32522 /* end confdefs.h. */
32523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32525 #define $ac_func innocuous_$ac_func
32527 /* System header to define __stub macros and hopefully few prototypes,
32528 which can conflict with char $ac_func (); below.
32529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32530 <limits.h> exists even on freestanding compilers. */
32533 # include <limits.h>
32535 # include <assert.h>
32540 /* Override any GCC internal prototype to avoid an error.
32541 Use char because int might match the return type of a GCC
32542 builtin and then its argument prototype would still apply. */
32547 /* The GNU C library defines this for functions which it implements
32548 to always fail with ENOSYS. Some functions are actually named
32549 something starting with __ and the normal name is an alias. */
32550 #if defined __stub_$ac_func || defined __stub___$ac_func
32557 return $ac_func ();
32562 rm -f conftest.$ac_objext conftest$ac_exeext
32563 if { (ac_try="$ac_link"
32564 case "(($ac_try" in
32565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566 *) ac_try_echo=$ac_try;;
32568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32569 (eval "$ac_link") 2>conftest.er1
32571 grep -v '^ *+' conftest.er1 >conftest.err
32573 cat conftest.err >&5
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); } &&
32576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32577 { (case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_try") 2>&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); }; } &&
32586 { ac_try='test -s conftest$ac_exeext'
32587 { (case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_try") 2>&5
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; }; then
32596 eval "$as_ac_var=yes"
32598 echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32601 eval "$as_ac_var=no"
32604 rm -f core conftest.err conftest.$ac_objext \
32605 conftest$ac_exeext conftest.$ac_ext
32607 ac_res=`eval echo '${'$as_ac_var'}'`
32608 { echo "$as_me:$LINENO: result: $ac_res" >&5
32609 echo "${ECHO_T}$ac_res" >&6; }
32610 if test `eval echo '${'$as_ac_var'}'` = yes; then
32611 cat >>confdefs.h <<_ACEOF
32612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32618 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32619 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32620 if test "${llvm_cv_c_printf_a+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32624 ac_cpp='$CPP $CPPFLAGS'
32625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32629 if test "$cross_compiling" = yes; then
32630 llvmac_cv_c_printf_a=no
32632 cat >conftest.$ac_ext <<_ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h. */
32641 #include <stdlib.h>
32647 volatile double A, B;
32651 sprintf(Buffer, "%a", A);
32655 if (A != 0x1.999999999999ap-4)
32662 rm -f conftest$ac_exeext
32663 if { (ac_try="$ac_link"
32664 case "(($ac_try" in
32665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32666 *) ac_try_echo=$ac_try;;
32668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32669 (eval "$ac_link") 2>&5
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32673 { (case "(($ac_try" in
32674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675 *) ac_try_echo=$ac_try;;
32677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678 (eval "$ac_try") 2>&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); }; }; then
32682 llvm_cv_c_printf_a=yes
32684 echo "$as_me: program exited with status $ac_status" >&5
32685 echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32688 ( exit $ac_status )
32689 llvmac_cv_c_printf_a=no
32691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32696 ac_cpp='$CPP $CPPFLAGS'
32697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32702 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32703 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32704 if test "$llvm_cv_c_printf_a" = "yes"; then
32706 cat >>confdefs.h <<\_ACEOF
32707 #define HAVE_PRINTF_A 1
32712 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32713 # for constant arguments. Useless!
32714 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32715 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32716 if test "${ac_cv_working_alloca_h+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32719 cat >conftest.$ac_ext <<_ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h. */
32725 #include <alloca.h>
32729 char *p = (char *) alloca (2 * sizeof (int));
32735 rm -f conftest.$ac_objext conftest$ac_exeext
32736 if { (ac_try="$ac_link"
32737 case "(($ac_try" in
32738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739 *) ac_try_echo=$ac_try;;
32741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742 (eval "$ac_link") 2>conftest.er1
32744 grep -v '^ *+' conftest.er1 >conftest.err
32746 cat conftest.err >&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
32749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32750 { (case "(($ac_try" in
32751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752 *) ac_try_echo=$ac_try;;
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755 (eval "$ac_try") 2>&5
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); }; } &&
32759 { ac_try='test -s conftest$ac_exeext'
32760 { (case "(($ac_try" in
32761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762 *) ac_try_echo=$ac_try;;
32764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765 (eval "$ac_try") 2>&5
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); }; }; then
32769 ac_cv_working_alloca_h=yes
32771 echo "$as_me: failed program was:" >&5
32772 sed 's/^/| /' conftest.$ac_ext >&5
32774 ac_cv_working_alloca_h=no
32777 rm -f core conftest.err conftest.$ac_objext \
32778 conftest$ac_exeext conftest.$ac_ext
32780 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32781 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32782 if test $ac_cv_working_alloca_h = yes; then
32784 cat >>confdefs.h <<\_ACEOF
32785 #define HAVE_ALLOCA_H 1
32790 { echo "$as_me:$LINENO: checking for alloca" >&5
32791 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32792 if test "${ac_cv_func_alloca_works+set}" = set; then
32793 echo $ECHO_N "(cached) $ECHO_C" >&6
32795 cat >conftest.$ac_ext <<_ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h. */
32802 # define alloca __builtin_alloca
32805 # include <malloc.h>
32806 # define alloca _alloca
32809 # include <alloca.h>
32814 # ifndef alloca /* predefined by HP cc +Olibcalls */
32825 char *p = (char *) alloca (1);
32831 rm -f conftest.$ac_objext conftest$ac_exeext
32832 if { (ac_try="$ac_link"
32833 case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_link") 2>conftest.er1
32840 grep -v '^ *+' conftest.er1 >conftest.err
32842 cat conftest.err >&5
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); } &&
32845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32846 { (case "(($ac_try" in
32847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32848 *) ac_try_echo=$ac_try;;
32850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851 (eval "$ac_try") 2>&5
32853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854 (exit $ac_status); }; } &&
32855 { ac_try='test -s conftest$ac_exeext'
32856 { (case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_try") 2>&5
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); }; }; then
32865 ac_cv_func_alloca_works=yes
32867 echo "$as_me: failed program was:" >&5
32868 sed 's/^/| /' conftest.$ac_ext >&5
32870 ac_cv_func_alloca_works=no
32873 rm -f core conftest.err conftest.$ac_objext \
32874 conftest$ac_exeext conftest.$ac_ext
32876 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32877 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32879 if test $ac_cv_func_alloca_works = yes; then
32881 cat >>confdefs.h <<\_ACEOF
32882 #define HAVE_ALLOCA 1
32886 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32887 # that cause trouble. Some versions do not even contain alloca or
32888 # contain a buggy version. If you still want to use their alloca,
32889 # use ar to extract alloca.o from them instead of compiling alloca.c.
32891 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32893 cat >>confdefs.h <<\_ACEOF
32898 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32899 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32900 if test "${ac_cv_os_cray+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32903 cat >conftest.$ac_ext <<_ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 #if defined CRAY && ! defined CRAY2
32916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32917 $EGREP "webecray" >/dev/null 2>&1; then
32925 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32926 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32927 if test $ac_cv_os_cray = yes; then
32928 for ac_func in _getb67 GETB67 getb67; do
32929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32935 cat >conftest.$ac_ext <<_ACEOF
32938 cat confdefs.h >>conftest.$ac_ext
32939 cat >>conftest.$ac_ext <<_ACEOF
32940 /* end confdefs.h. */
32941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32943 #define $ac_func innocuous_$ac_func
32945 /* System header to define __stub macros and hopefully few prototypes,
32946 which can conflict with char $ac_func (); below.
32947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32948 <limits.h> exists even on freestanding compilers. */
32951 # include <limits.h>
32953 # include <assert.h>
32958 /* Override any GCC internal prototype to avoid an error.
32959 Use char because int might match the return type of a GCC
32960 builtin and then its argument prototype would still apply. */
32965 /* The GNU C library defines this for functions which it implements
32966 to always fail with ENOSYS. Some functions are actually named
32967 something starting with __ and the normal name is an alias. */
32968 #if defined __stub_$ac_func || defined __stub___$ac_func
32975 return $ac_func ();
32980 rm -f conftest.$ac_objext conftest$ac_exeext
32981 if { (ac_try="$ac_link"
32982 case "(($ac_try" in
32983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32984 *) ac_try_echo=$ac_try;;
32986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32987 (eval "$ac_link") 2>conftest.er1
32989 grep -v '^ *+' conftest.er1 >conftest.err
32991 cat conftest.err >&5
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); } &&
32994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32995 { (case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_try") 2>&5
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; } &&
33004 { ac_try='test -s conftest$ac_exeext'
33005 { (case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010 (eval "$ac_try") 2>&5
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; }; then
33014 eval "$as_ac_var=yes"
33016 echo "$as_me: failed program was:" >&5
33017 sed 's/^/| /' conftest.$ac_ext >&5
33019 eval "$as_ac_var=no"
33022 rm -f core conftest.err conftest.$ac_objext \
33023 conftest$ac_exeext conftest.$ac_ext
33025 ac_res=`eval echo '${'$as_ac_var'}'`
33026 { echo "$as_me:$LINENO: result: $ac_res" >&5
33027 echo "${ECHO_T}$ac_res" >&6; }
33028 if test `eval echo '${'$as_ac_var'}'` = yes; then
33030 cat >>confdefs.h <<_ACEOF
33031 #define CRAY_STACKSEG_END $ac_func
33040 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33041 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33042 if test "${ac_cv_c_stack_direction+set}" = set; then
33043 echo $ECHO_N "(cached) $ECHO_C" >&6
33045 if test "$cross_compiling" = yes; then
33046 ac_cv_c_stack_direction=0
33048 cat >conftest.$ac_ext <<_ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 $ac_includes_default
33056 find_stack_direction ()
33058 static char *addr = 0;
33063 return find_stack_direction ();
33066 return (&dummy > addr) ? 1 : -1;
33072 return find_stack_direction () < 0;
33075 rm -f conftest$ac_exeext
33076 if { (ac_try="$ac_link"
33077 case "(($ac_try" in
33078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33079 *) ac_try_echo=$ac_try;;
33081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082 (eval "$ac_link") 2>&5
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33086 { (case "(($ac_try" in
33087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33088 *) ac_try_echo=$ac_try;;
33090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33091 (eval "$ac_try") 2>&5
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); }; }; then
33095 ac_cv_c_stack_direction=1
33097 echo "$as_me: program exited with status $ac_status" >&5
33098 echo "$as_me: failed program was:" >&5
33099 sed 's/^/| /' conftest.$ac_ext >&5
33101 ( exit $ac_status )
33102 ac_cv_c_stack_direction=-1
33104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33109 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33110 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33112 cat >>confdefs.h <<_ACEOF
33113 #define STACK_DIRECTION $ac_cv_c_stack_direction
33120 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33121 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33122 if test "${ac_cv_func_rand48+set}" = set; then
33123 echo $ECHO_N "(cached) $ECHO_C" >&6
33126 ac_cpp='$CXXCPP $CPPFLAGS'
33127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33131 cat >conftest.$ac_ext <<_ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h. */
33137 #include <stdlib.h>
33141 srand48(0);lrand48();drand48();
33146 rm -f conftest.$ac_objext
33147 if { (ac_try="$ac_compile"
33148 case "(($ac_try" in
33149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150 *) ac_try_echo=$ac_try;;
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153 (eval "$ac_compile") 2>conftest.er1
33155 grep -v '^ *+' conftest.er1 >conftest.err
33157 cat conftest.err >&5
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); } &&
33160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33161 { (case "(($ac_try" in
33162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33163 *) ac_try_echo=$ac_try;;
33165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33166 (eval "$ac_try") 2>&5
33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169 (exit $ac_status); }; } &&
33170 { ac_try='test -s conftest.$ac_objext'
33171 { (case "(($ac_try" in
33172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_try") 2>&5
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; }; then
33180 ac_cv_func_rand48=yes
33182 echo "$as_me: failed program was:" >&5
33183 sed 's/^/| /' conftest.$ac_ext >&5
33185 ac_cv_func_rand48=no
33188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33190 ac_cpp='$CPP $CPPFLAGS'
33191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33196 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33197 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33199 if test "$ac_cv_func_rand48" = "yes" ; then
33201 cat >>confdefs.h <<\_ACEOF
33202 #define HAVE_RAND48 1
33208 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33209 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33210 if test "${ac_cv_cxx_namespaces+set}" = set; then
33211 echo $ECHO_N "(cached) $ECHO_C" >&6
33214 ac_cpp='$CXXCPP $CPPFLAGS'
33215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33219 cat >conftest.$ac_ext <<_ACEOF
33222 cat confdefs.h >>conftest.$ac_ext
33223 cat >>conftest.$ac_ext <<_ACEOF
33224 /* end confdefs.h. */
33225 namespace Outer { namespace Inner { int i = 0; }}
33229 using namespace Outer::Inner; return i;
33234 rm -f conftest.$ac_objext
33235 if { (ac_try="$ac_compile"
33236 case "(($ac_try" in
33237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33238 *) ac_try_echo=$ac_try;;
33240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33241 (eval "$ac_compile") 2>conftest.er1
33243 grep -v '^ *+' conftest.er1 >conftest.err
33245 cat conftest.err >&5
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); } &&
33248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33249 { (case "(($ac_try" in
33250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251 *) ac_try_echo=$ac_try;;
33253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254 (eval "$ac_try") 2>&5
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; } &&
33258 { ac_try='test -s conftest.$ac_objext'
33259 { (case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_try") 2>&5
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; }; then
33268 ac_cv_cxx_namespaces=yes
33270 echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33273 ac_cv_cxx_namespaces=no
33276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33278 ac_cpp='$CPP $CPPFLAGS'
33279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33285 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33286 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33287 if test "$ac_cv_cxx_namespaces" = yes; then
33289 cat >>confdefs.h <<\_ACEOF
33290 #define HAVE_NAMESPACES
33295 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33296 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33297 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33298 echo $ECHO_N "(cached) $ECHO_C" >&6
33302 ac_cpp='$CXXCPP $CPPFLAGS'
33303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33307 cat >conftest.$ac_ext <<_ACEOF
33310 cat confdefs.h >>conftest.$ac_ext
33311 cat >>conftest.$ac_ext <<_ACEOF
33312 /* end confdefs.h. */
33313 #include <iterator>
33314 #ifdef HAVE_NAMESPACES
33315 using namespace std;
33320 iterator<int,int,int> t; return 0;
33325 rm -f conftest.$ac_objext
33326 if { (ac_try="$ac_compile"
33327 case "(($ac_try" in
33328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329 *) ac_try_echo=$ac_try;;
33331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332 (eval "$ac_compile") 2>conftest.er1
33334 grep -v '^ *+' conftest.er1 >conftest.err
33336 cat conftest.err >&5
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); } &&
33339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33340 { (case "(($ac_try" in
33341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33342 *) ac_try_echo=$ac_try;;
33344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33345 (eval "$ac_try") 2>&5
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); }; } &&
33349 { ac_try='test -s conftest.$ac_objext'
33350 { (case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_try") 2>&5
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; }; then
33359 ac_cv_cxx_have_std_iterator=yes
33361 echo "$as_me: failed program was:" >&5
33362 sed 's/^/| /' conftest.$ac_ext >&5
33364 ac_cv_cxx_have_std_iterator=no
33367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33369 ac_cpp='$CPP $CPPFLAGS'
33370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33376 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33377 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33378 if test "$ac_cv_cxx_have_std_iterator" = yes
33381 cat >>confdefs.h <<\_ACEOF
33382 #define HAVE_STD_ITERATOR 1
33387 cat >>confdefs.h <<\_ACEOF
33388 #define HAVE_STD_ITERATOR 0
33393 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33394 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33395 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33396 echo $ECHO_N "(cached) $ECHO_C" >&6
33400 ac_cpp='$CXXCPP $CPPFLAGS'
33401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33405 cat >conftest.$ac_ext <<_ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33411 #include <iterator>
33412 #ifdef HAVE_NAMESPACES
33413 using namespace std;
33418 bidirectional_iterator<int,int> t; return 0;
33423 rm -f conftest.$ac_objext
33424 if { (ac_try="$ac_compile"
33425 case "(($ac_try" in
33426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427 *) ac_try_echo=$ac_try;;
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430 (eval "$ac_compile") 2>conftest.er1
33432 grep -v '^ *+' conftest.er1 >conftest.err
33434 cat conftest.err >&5
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } &&
33437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33438 { (case "(($ac_try" in
33439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440 *) ac_try_echo=$ac_try;;
33442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443 (eval "$ac_try") 2>&5
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } &&
33447 { ac_try='test -s conftest.$ac_objext'
33448 { (case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_try") 2>&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; }; then
33457 ac_cv_cxx_have_bi_iterator=yes
33459 echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33462 ac_cv_cxx_have_bi_iterator=no
33465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33467 ac_cpp='$CPP $CPPFLAGS'
33468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33475 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33476 if test "$ac_cv_cxx_have_bi_iterator" = yes
33479 cat >>confdefs.h <<\_ACEOF
33480 #define HAVE_BI_ITERATOR 1
33485 cat >>confdefs.h <<\_ACEOF
33486 #define HAVE_BI_ITERATOR 0
33491 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33492 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33493 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33494 echo $ECHO_N "(cached) $ECHO_C" >&6
33498 ac_cpp='$CXXCPP $CPPFLAGS'
33499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33503 cat >conftest.$ac_ext <<_ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h. */
33509 #include <iterator>
33510 #ifdef HAVE_NAMESPACES
33511 using namespace std;
33516 forward_iterator<int,int> t; return 0;
33521 rm -f conftest.$ac_objext
33522 if { (ac_try="$ac_compile"
33523 case "(($ac_try" in
33524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525 *) ac_try_echo=$ac_try;;
33527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528 (eval "$ac_compile") 2>conftest.er1
33530 grep -v '^ *+' conftest.er1 >conftest.err
33532 cat conftest.err >&5
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); } &&
33535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; } &&
33545 { ac_try='test -s conftest.$ac_objext'
33546 { (case "(($ac_try" in
33547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548 *) ac_try_echo=$ac_try;;
33550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_try") 2>&5
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555 ac_cv_cxx_have_fwd_iterator=yes
33557 echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33560 ac_cv_cxx_have_fwd_iterator=no
33563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33565 ac_cpp='$CPP $CPPFLAGS'
33566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33572 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33573 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33574 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33577 cat >>confdefs.h <<\_ACEOF
33578 #define HAVE_FWD_ITERATOR 1
33583 cat >>confdefs.h <<\_ACEOF
33584 #define HAVE_FWD_ITERATOR 0
33590 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33591 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33592 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33593 echo $ECHO_N "(cached) $ECHO_C" >&6
33596 ac_cpp='$CXXCPP $CPPFLAGS'
33597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33601 cat >conftest.$ac_ext <<_ACEOF
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h. */
33616 rm -f conftest.$ac_objext
33617 if { (ac_try="$ac_compile"
33618 case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_compile") 2>conftest.er1
33625 grep -v '^ *+' conftest.er1 >conftest.err
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest.$ac_objext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
33650 ac_cv_func_isnan_in_math_h=yes
33652 echo "$as_me: failed program was:" >&5
33653 sed 's/^/| /' conftest.$ac_ext >&5
33655 ac_cv_func_isnan_in_math_h=no
33658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33660 ac_cpp='$CPP $CPPFLAGS'
33661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33666 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33667 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33670 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33672 cat >>confdefs.h <<\_ACEOF
33673 #define HAVE_ISNAN_IN_MATH_H 1
33678 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33679 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33680 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33684 ac_cpp='$CXXCPP $CPPFLAGS'
33685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33689 cat >conftest.$ac_ext <<_ACEOF
33692 cat confdefs.h >>conftest.$ac_ext
33693 cat >>conftest.$ac_ext <<_ACEOF
33694 /* end confdefs.h. */
33704 rm -f conftest.$ac_objext
33705 if { (ac_try="$ac_compile"
33706 case "(($ac_try" in
33707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33708 *) ac_try_echo=$ac_try;;
33710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33711 (eval "$ac_compile") 2>conftest.er1
33713 grep -v '^ *+' conftest.er1 >conftest.err
33715 cat conftest.err >&5
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); } &&
33718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33719 { (case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_try") 2>&5
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; } &&
33728 { ac_try='test -s conftest.$ac_objext'
33729 { (case "(($ac_try" in
33730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33731 *) ac_try_echo=$ac_try;;
33733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_try") 2>&5
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33738 ac_cv_func_isnan_in_cmath=yes
33740 echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33743 ac_cv_func_isnan_in_cmath=no
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33748 ac_cpp='$CPP $CPPFLAGS'
33749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33754 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33755 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33757 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33759 cat >>confdefs.h <<\_ACEOF
33760 #define HAVE_ISNAN_IN_CMATH 1
33765 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33766 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33767 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33768 echo $ECHO_N "(cached) $ECHO_C" >&6
33771 ac_cpp='$CXXCPP $CPPFLAGS'
33772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33776 cat >conftest.$ac_ext <<_ACEOF
33779 cat confdefs.h >>conftest.$ac_ext
33780 cat >>conftest.$ac_ext <<_ACEOF
33781 /* end confdefs.h. */
33786 float f; std::isnan(f);
33791 rm -f conftest.$ac_objext
33792 if { (ac_try="$ac_compile"
33793 case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_compile") 2>conftest.er1
33800 grep -v '^ *+' conftest.er1 >conftest.err
33802 cat conftest.err >&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); } &&
33805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33806 { (case "(($ac_try" in
33807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808 *) ac_try_echo=$ac_try;;
33810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811 (eval "$ac_try") 2>&5
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; } &&
33815 { ac_try='test -s conftest.$ac_objext'
33816 { (case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_try") 2>&5
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); }; }; then
33825 ac_cv_func_std_isnan_in_cmath=yes
33827 echo "$as_me: failed program was:" >&5
33828 sed 's/^/| /' conftest.$ac_ext >&5
33830 ac_cv_func_std_isnan_in_cmath=no
33833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33835 ac_cpp='$CPP $CPPFLAGS'
33836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33841 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33842 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33844 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33846 cat >>confdefs.h <<\_ACEOF
33847 #define HAVE_STD_ISNAN_IN_CMATH 1
33853 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33854 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33855 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33859 ac_cpp='$CXXCPP $CPPFLAGS'
33860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33864 cat >conftest.$ac_ext <<_ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h. */
33879 rm -f conftest.$ac_objext
33880 if { (ac_try="$ac_compile"
33881 case "(($ac_try" in
33882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33883 *) ac_try_echo=$ac_try;;
33885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33886 (eval "$ac_compile") 2>conftest.er1
33888 grep -v '^ *+' conftest.er1 >conftest.err
33890 cat conftest.err >&5
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); } &&
33893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33894 { (case "(($ac_try" in
33895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33896 *) ac_try_echo=$ac_try;;
33898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33899 (eval "$ac_try") 2>&5
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; } &&
33903 { ac_try='test -s conftest.$ac_objext'
33904 { (case "(($ac_try" in
33905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906 *) ac_try_echo=$ac_try;;
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_try") 2>&5
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; }; then
33913 ac_cv_func_isinf_in_math_h=yes
33915 echo "$as_me: failed program was:" >&5
33916 sed 's/^/| /' conftest.$ac_ext >&5
33918 ac_cv_func_isinf_in_math_h=no
33921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33923 ac_cpp='$CPP $CPPFLAGS'
33924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33929 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33930 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33932 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33934 cat >>confdefs.h <<\_ACEOF
33935 #define HAVE_ISINF_IN_MATH_H 1
33940 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33941 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33942 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33943 echo $ECHO_N "(cached) $ECHO_C" >&6
33946 ac_cpp='$CXXCPP $CPPFLAGS'
33947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33951 cat >conftest.$ac_ext <<_ACEOF
33954 cat confdefs.h >>conftest.$ac_ext
33955 cat >>conftest.$ac_ext <<_ACEOF
33956 /* end confdefs.h. */
33966 rm -f conftest.$ac_objext
33967 if { (ac_try="$ac_compile"
33968 case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_compile") 2>conftest.er1
33975 grep -v '^ *+' conftest.er1 >conftest.err
33977 cat conftest.err >&5
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); } &&
33980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981 { (case "(($ac_try" in
33982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983 *) ac_try_echo=$ac_try;;
33985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986 (eval "$ac_try") 2>&5
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest.$ac_objext'
33991 { (case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_try") 2>&5
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; }; then
34000 ac_cv_func_isinf_in_cmath=yes
34002 echo "$as_me: failed program was:" >&5
34003 sed 's/^/| /' conftest.$ac_ext >&5
34005 ac_cv_func_isinf_in_cmath=no
34008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34010 ac_cpp='$CPP $CPPFLAGS'
34011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34016 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34017 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34019 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34021 cat >>confdefs.h <<\_ACEOF
34022 #define HAVE_ISINF_IN_CMATH 1
34027 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34028 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34029 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34030 echo $ECHO_N "(cached) $ECHO_C" >&6
34033 ac_cpp='$CXXCPP $CPPFLAGS'
34034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34038 cat >conftest.$ac_ext <<_ACEOF
34041 cat confdefs.h >>conftest.$ac_ext
34042 cat >>conftest.$ac_ext <<_ACEOF
34043 /* end confdefs.h. */
34048 float f; std::isinf(f)}
34053 rm -f conftest.$ac_objext
34054 if { (ac_try="$ac_compile"
34055 case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060 (eval "$ac_compile") 2>conftest.er1
34062 grep -v '^ *+' conftest.er1 >conftest.err
34064 cat conftest.err >&5
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); } &&
34067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34068 { (case "(($ac_try" in
34069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34070 *) ac_try_echo=$ac_try;;
34072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34073 (eval "$ac_try") 2>&5
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest.$ac_objext'
34078 { (case "(($ac_try" in
34079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34080 *) ac_try_echo=$ac_try;;
34082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083 (eval "$ac_try") 2>&5
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); }; }; then
34087 ac_cv_func_std_isinf_in_cmath=yes
34089 echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34092 ac_cv_func_std_isinf_in_cmath=no
34095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34097 ac_cpp='$CPP $CPPFLAGS'
34098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34103 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34104 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34106 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34108 cat >>confdefs.h <<\_ACEOF
34109 #define HAVE_STD_ISINF_IN_CMATH 1
34114 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34115 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34116 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34120 ac_cpp='$CXXCPP $CPPFLAGS'
34121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34125 cat >conftest.$ac_ext <<_ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h. */
34131 #include <ieeefp.h>
34135 float f; finite(f);
34140 rm -f conftest.$ac_objext
34141 if { (ac_try="$ac_compile"
34142 case "(($ac_try" in
34143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34144 *) ac_try_echo=$ac_try;;
34146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34147 (eval "$ac_compile") 2>conftest.er1
34149 grep -v '^ *+' conftest.er1 >conftest.err
34151 cat conftest.err >&5
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } &&
34154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34155 { (case "(($ac_try" in
34156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34157 *) ac_try_echo=$ac_try;;
34159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34160 (eval "$ac_try") 2>&5
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; } &&
34164 { ac_try='test -s conftest.$ac_objext'
34165 { (case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_try") 2>&5
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); }; }; then
34174 ac_cv_func_finite_in_ieeefp_h=yes
34176 echo "$as_me: failed program was:" >&5
34177 sed 's/^/| /' conftest.$ac_ext >&5
34179 ac_cv_func_finite_in_ieeefp_h=no
34182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34184 ac_cpp='$CPP $CPPFLAGS'
34185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34190 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34191 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34193 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34195 cat >>confdefs.h <<\_ACEOF
34196 #define HAVE_FINITE_IN_IEEEFP_H 1
34203 if test "$llvm_cv_platform_type" = "Unix" ; then
34206 for ac_header in stdlib.h unistd.h
34208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34213 echo $ECHO_N "(cached) $ECHO_C" >&6
34215 ac_res=`eval echo '${'$as_ac_Header'}'`
34216 { echo "$as_me:$LINENO: result: $ac_res" >&5
34217 echo "${ECHO_T}$ac_res" >&6; }
34219 # Is the header compilable?
34220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34222 cat >conftest.$ac_ext <<_ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h. */
34228 $ac_includes_default
34229 #include <$ac_header>
34231 rm -f conftest.$ac_objext
34232 if { (ac_try="$ac_compile"
34233 case "(($ac_try" in
34234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34235 *) ac_try_echo=$ac_try;;
34237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34238 (eval "$ac_compile") 2>conftest.er1
34240 grep -v '^ *+' conftest.er1 >conftest.err
34242 cat conftest.err >&5
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); } &&
34245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34246 { (case "(($ac_try" in
34247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248 *) ac_try_echo=$ac_try;;
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251 (eval "$ac_try") 2>&5
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); }; } &&
34255 { ac_try='test -s conftest.$ac_objext'
34256 { (case "(($ac_try" in
34257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258 *) ac_try_echo=$ac_try;;
34260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261 (eval "$ac_try") 2>&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); }; }; then
34265 ac_header_compiler=yes
34267 echo "$as_me: failed program was:" >&5
34268 sed 's/^/| /' conftest.$ac_ext >&5
34270 ac_header_compiler=no
34273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34275 echo "${ECHO_T}$ac_header_compiler" >&6; }
34277 # Is the header present?
34278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34280 cat >conftest.$ac_ext <<_ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h. */
34286 #include <$ac_header>
34288 if { (ac_try="$ac_cpp conftest.$ac_ext"
34289 case "(($ac_try" in
34290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291 *) ac_try_echo=$ac_try;;
34293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34296 grep -v '^ *+' conftest.er1 >conftest.err
34298 cat conftest.err >&5
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300 (exit $ac_status); } >/dev/null; then
34301 if test -s conftest.err; then
34302 ac_cpp_err=$ac_c_preproc_warn_flag
34303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34310 if test -z "$ac_cpp_err"; then
34311 ac_header_preproc=yes
34313 echo "$as_me: failed program was:" >&5
34314 sed 's/^/| /' conftest.$ac_ext >&5
34316 ac_header_preproc=no
34319 rm -f conftest.err conftest.$ac_ext
34320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34321 echo "${ECHO_T}$ac_header_preproc" >&6; }
34323 # So? What about this header?
34324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34330 ac_header_preproc=yes
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34346 ## ----------------------------------- ##
34347 ## Report this to llvmbugs@cs.uiuc.edu ##
34348 ## ----------------------------------- ##
34350 ) | sed "s/^/$as_me: WARNING: /" >&2
34353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34356 echo $ECHO_N "(cached) $ECHO_C" >&6
34358 eval "$as_ac_Header=\$ac_header_preproc"
34360 ac_res=`eval echo '${'$as_ac_Header'}'`
34361 { echo "$as_me:$LINENO: result: $ac_res" >&5
34362 echo "${ECHO_T}$ac_res" >&6; }
34365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34366 cat >>confdefs.h <<_ACEOF
34367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34375 for ac_func in getpagesize
34377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34381 echo $ECHO_N "(cached) $ECHO_C" >&6
34383 cat >conftest.$ac_ext <<_ACEOF
34386 cat confdefs.h >>conftest.$ac_ext
34387 cat >>conftest.$ac_ext <<_ACEOF
34388 /* end confdefs.h. */
34389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34391 #define $ac_func innocuous_$ac_func
34393 /* System header to define __stub macros and hopefully few prototypes,
34394 which can conflict with char $ac_func (); below.
34395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34396 <limits.h> exists even on freestanding compilers. */
34399 # include <limits.h>
34401 # include <assert.h>
34406 /* Override any GCC internal prototype to avoid an error.
34407 Use char because int might match the return type of a GCC
34408 builtin and then its argument prototype would still apply. */
34413 /* The GNU C library defines this for functions which it implements
34414 to always fail with ENOSYS. Some functions are actually named
34415 something starting with __ and the normal name is an alias. */
34416 #if defined __stub_$ac_func || defined __stub___$ac_func
34423 return $ac_func ();
34428 rm -f conftest.$ac_objext conftest$ac_exeext
34429 if { (ac_try="$ac_link"
34430 case "(($ac_try" in
34431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34432 *) ac_try_echo=$ac_try;;
34434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34435 (eval "$ac_link") 2>conftest.er1
34437 grep -v '^ *+' conftest.er1 >conftest.err
34439 cat conftest.err >&5
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); } &&
34442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34443 { (case "(($ac_try" in
34444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34445 *) ac_try_echo=$ac_try;;
34447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34448 (eval "$ac_try") 2>&5
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest$ac_exeext'
34453 { (case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_try") 2>&5
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; }; then
34462 eval "$as_ac_var=yes"
34464 echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34467 eval "$as_ac_var=no"
34470 rm -f core conftest.err conftest.$ac_objext \
34471 conftest$ac_exeext conftest.$ac_ext
34473 ac_res=`eval echo '${'$as_ac_var'}'`
34474 { echo "$as_me:$LINENO: result: $ac_res" >&5
34475 echo "${ECHO_T}$ac_res" >&6; }
34476 if test `eval echo '${'$as_ac_var'}'` = yes; then
34477 cat >>confdefs.h <<_ACEOF
34478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34484 { echo "$as_me:$LINENO: checking for working mmap" >&5
34485 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34486 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34487 echo $ECHO_N "(cached) $ECHO_C" >&6
34489 if test "$cross_compiling" = yes; then
34490 ac_cv_func_mmap_fixed_mapped=no
34492 cat >conftest.$ac_ext <<_ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h. */
34498 $ac_includes_default
34499 /* malloc might have been renamed as rpl_malloc. */
34502 /* Thanks to Mike Haertel and Jim Avera for this test.
34503 Here is a matrix of mmap possibilities:
34504 mmap private not fixed
34505 mmap private fixed at somewhere currently unmapped
34506 mmap private fixed at somewhere already mapped
34507 mmap shared not fixed
34508 mmap shared fixed at somewhere currently unmapped
34509 mmap shared fixed at somewhere already mapped
34510 For private mappings, we should verify that changes cannot be read()
34511 back from the file, nor mmap's back from the file at a different
34512 address. (There have been systems where private was not correctly
34513 implemented like the infamous i386 svr4.0, and systems where the
34514 VM page cache was not coherent with the file system buffer cache
34515 like early versions of FreeBSD and possibly contemporary NetBSD.)
34516 For shared mappings, we should conversely verify that changes get
34517 propagated back to all the places they're supposed to be.
34519 Grep wants private fixed already mapped.
34520 The main things grep needs to know about mmap are:
34521 * does it exist and is it safe to write into the mmap'd area
34522 * how to use it (BSD variants) */
34525 #include <sys/mman.h>
34527 #if !STDC_HEADERS && !HAVE_STDLIB_H
34531 /* This mess was copied from the GNU getpagesize.h. */
34532 #if !HAVE_GETPAGESIZE
34533 /* Assume that all systems that can run configure have sys/param.h. */
34534 # if !HAVE_SYS_PARAM_H
34535 # define HAVE_SYS_PARAM_H 1
34538 # ifdef _SC_PAGESIZE
34539 # define getpagesize() sysconf(_SC_PAGESIZE)
34540 # else /* no _SC_PAGESIZE */
34541 # if HAVE_SYS_PARAM_H
34542 # include <sys/param.h>
34543 # ifdef EXEC_PAGESIZE
34544 # define getpagesize() EXEC_PAGESIZE
34545 # else /* no EXEC_PAGESIZE */
34547 # define getpagesize() NBPG * CLSIZE
34550 # endif /* no CLSIZE */
34551 # else /* no NBPG */
34553 # define getpagesize() NBPC
34554 # else /* no NBPC */
34556 # define getpagesize() PAGESIZE
34557 # endif /* PAGESIZE */
34558 # endif /* no NBPC */
34559 # endif /* no NBPG */
34560 # endif /* no EXEC_PAGESIZE */
34561 # else /* no HAVE_SYS_PARAM_H */
34562 # define getpagesize() 8192 /* punt totally */
34563 # endif /* no HAVE_SYS_PARAM_H */
34564 # endif /* no _SC_PAGESIZE */
34566 #endif /* no HAVE_GETPAGESIZE */
34571 char *data, *data2, *data3;
34575 pagesize = getpagesize ();
34577 /* First, make a file with some known garbage in it. */
34578 data = (char *) malloc (pagesize);
34581 for (i = 0; i < pagesize; ++i)
34582 *(data + i) = rand ();
34584 fd = creat ("conftest.mmap", 0600);
34587 if (write (fd, data, pagesize) != pagesize)
34591 /* Next, try to mmap the file at a fixed address which already has
34592 something else allocated at it. If we can, also make sure that
34593 we see the same garbage. */
34594 fd = open ("conftest.mmap", O_RDWR);
34597 data2 = (char *) malloc (2 * pagesize);
34600 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34604 for (i = 0; i < pagesize; ++i)
34605 if (*(data + i) != *(data2 + i))
34608 /* Finally, make sure that changes to the mapped area do not
34609 percolate back to the file as seen by read(). (This is a bug on
34610 some variants of i386 svr4.0.) */
34611 for (i = 0; i < pagesize; ++i)
34612 *(data2 + i) = *(data2 + i) + 1;
34613 data3 = (char *) malloc (pagesize);
34616 if (read (fd, data3, pagesize) != pagesize)
34618 for (i = 0; i < pagesize; ++i)
34619 if (*(data + i) != *(data3 + i))
34625 rm -f conftest$ac_exeext
34626 if { (ac_try="$ac_link"
34627 case "(($ac_try" in
34628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629 *) ac_try_echo=$ac_try;;
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632 (eval "$ac_link") 2>&5
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34636 { (case "(($ac_try" in
34637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34638 *) ac_try_echo=$ac_try;;
34640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34641 (eval "$ac_try") 2>&5
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); }; }; then
34645 ac_cv_func_mmap_fixed_mapped=yes
34647 echo "$as_me: program exited with status $ac_status" >&5
34648 echo "$as_me: failed program was:" >&5
34649 sed 's/^/| /' conftest.$ac_ext >&5
34651 ( exit $ac_status )
34652 ac_cv_func_mmap_fixed_mapped=no
34654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34659 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34660 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34661 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34663 cat >>confdefs.h <<\_ACEOF
34664 #define HAVE_MMAP 1
34668 rm -f conftest.mmap
34670 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34671 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34672 if test "${ac_cv_func_mmap_file+set}" = set; then
34673 echo $ECHO_N "(cached) $ECHO_C" >&6
34676 ac_cpp='$CPP $CPPFLAGS'
34677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34681 if test "$cross_compiling" = yes; then
34682 ac_cv_func_mmap_file=no
34684 cat >conftest.$ac_ext <<_ACEOF
34688 cat confdefs.h >>conftest.$ac_ext
34689 cat >>conftest.$ac_ext <<_ACEOF
34690 /* end confdefs.h. */
34692 #include <sys/types.h>
34693 #include <sys/mman.h>
34701 fd = creat ("foo",0777);
34702 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34704 return (fd != (int) MAP_FAILED);
34709 rm -f conftest$ac_exeext
34710 if { (ac_try="$ac_link"
34711 case "(($ac_try" in
34712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713 *) ac_try_echo=$ac_try;;
34715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716 (eval "$ac_link") 2>&5
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34720 { (case "(($ac_try" in
34721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34722 *) ac_try_echo=$ac_try;;
34724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34725 (eval "$ac_try") 2>&5
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); }; }; then
34729 ac_cv_func_mmap_file=yes
34731 echo "$as_me: program exited with status $ac_status" >&5
34732 echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34735 ( exit $ac_status )
34736 ac_cv_func_mmap_file=no
34738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34743 ac_cpp='$CPP $CPPFLAGS'
34744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34750 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34751 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34752 if test "$ac_cv_func_mmap_file" = yes; then
34754 cat >>confdefs.h <<\_ACEOF
34755 #define HAVE_MMAP_FILE
34762 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34763 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34764 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34767 if test "$llvm_cv_os_type" = "Interix" ; then
34768 ac_cv_need_dev_zero_for_mmap=yes
34770 ac_cv_need_dev_zero_for_mmap=no
34774 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34775 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34776 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34778 cat >>confdefs.h <<\_ACEOF
34779 #define NEED_DEV_ZERO_FOR_MMAP 1
34784 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34786 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34787 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34789 if test "$ac_cv_func_mmap_file" = "no"
34791 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34792 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34796 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34797 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34798 cat >conftest.$ac_ext <<_ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h. */
34805 volatile unsigned long val = 1;
34806 __sync_synchronize();
34807 __sync_val_compare_and_swap(&val, 1, 0);
34808 __sync_add_and_fetch(&val, 1);
34809 __sync_sub_and_fetch(&val, 1);
34814 rm -f conftest.$ac_objext conftest$ac_exeext
34815 if { (ac_try="$ac_link"
34816 case "(($ac_try" in
34817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34818 *) ac_try_echo=$ac_try;;
34820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34821 (eval "$ac_link") 2>conftest.er1
34823 grep -v '^ *+' conftest.er1 >conftest.err
34825 cat conftest.err >&5
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); } &&
34828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34829 { (case "(($ac_try" in
34830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34831 *) ac_try_echo=$ac_try;;
34833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34834 (eval "$ac_try") 2>&5
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; } &&
34838 { ac_try='test -s conftest$ac_exeext'
34839 { (case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_try") 2>&5
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; }; then
34848 { echo "$as_me:$LINENO: result: yes" >&5
34849 echo "${ECHO_T}yes" >&6; }
34851 cat >>confdefs.h <<\_ACEOF
34852 #define LLVM_MULTITHREADED 1
34856 echo "$as_me: failed program was:" >&5
34857 sed 's/^/| /' conftest.$ac_ext >&5
34859 { echo "$as_me:$LINENO: result: no" >&5
34860 echo "${ECHO_T}no" >&6; }
34862 cat >>confdefs.h <<\_ACEOF
34863 #define LLVM_MULTITHREADED 0
34866 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34867 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34870 rm -f core conftest.err conftest.$ac_objext \
34871 conftest$ac_exeext conftest.$ac_ext
34875 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34876 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34877 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34878 if test "${llvm_cv_linux_mixed+set}" = set; then
34879 echo $ECHO_N "(cached) $ECHO_C" >&6
34882 ac_cpp='$CPP $CPPFLAGS'
34883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34887 cat >conftest.$ac_ext <<_ACEOF
34890 cat confdefs.h >>conftest.$ac_ext
34891 cat >>conftest.$ac_ext <<_ACEOF
34892 /* end confdefs.h. */
34894 error: Not x86-64 even if uname says so!
34905 rm -f conftest.$ac_objext
34906 if { (ac_try="$ac_compile"
34907 case "(($ac_try" in
34908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34909 *) ac_try_echo=$ac_try;;
34911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34912 (eval "$ac_compile") 2>conftest.er1
34914 grep -v '^ *+' conftest.er1 >conftest.err
34916 cat conftest.err >&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } &&
34919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34920 { (case "(($ac_try" in
34921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34922 *) ac_try_echo=$ac_try;;
34924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34925 (eval "$ac_try") 2>&5
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); }; } &&
34929 { ac_try='test -s conftest.$ac_objext'
34930 { (case "(($ac_try" in
34931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932 *) ac_try_echo=$ac_try;;
34934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935 (eval "$ac_try") 2>&5
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939 llvm_cv_linux_mixed=no
34941 echo "$as_me: failed program was:" >&5
34942 sed 's/^/| /' conftest.$ac_ext >&5
34944 llvm_cv_linux_mixed=yes
34947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34949 ac_cpp='$CPP $CPPFLAGS'
34950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34956 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34957 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34959 if test "$llvm_cv_linux_mixed" = "yes"; then
34960 llvm_cv_target_arch="x86"
34966 for ac_func in __dso_handle
34968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34974 cat >conftest.$ac_ext <<_ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h. */
34980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34982 #define $ac_func innocuous_$ac_func
34984 /* System header to define __stub macros and hopefully few prototypes,
34985 which can conflict with char $ac_func (); below.
34986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987 <limits.h> exists even on freestanding compilers. */
34990 # include <limits.h>
34992 # include <assert.h>
34997 /* Override any GCC internal prototype to avoid an error.
34998 Use char because int might match the return type of a GCC
34999 builtin and then its argument prototype would still apply. */
35004 /* The GNU C library defines this for functions which it implements
35005 to always fail with ENOSYS. Some functions are actually named
35006 something starting with __ and the normal name is an alias. */
35007 #if defined __stub_$ac_func || defined __stub___$ac_func
35014 return $ac_func ();
35019 rm -f conftest.$ac_objext conftest$ac_exeext
35020 if { (ac_try="$ac_link"
35021 case "(($ac_try" in
35022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023 *) ac_try_echo=$ac_try;;
35025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026 (eval "$ac_link") 2>conftest.er1
35028 grep -v '^ *+' conftest.er1 >conftest.err
35030 cat conftest.err >&5
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); } &&
35033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35034 { (case "(($ac_try" in
35035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036 *) ac_try_echo=$ac_try;;
35038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35039 (eval "$ac_try") 2>&5
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; } &&
35043 { ac_try='test -s conftest$ac_exeext'
35044 { (case "(($ac_try" in
35045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046 *) ac_try_echo=$ac_try;;
35048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049 (eval "$ac_try") 2>&5
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
35053 eval "$as_ac_var=yes"
35055 echo "$as_me: failed program was:" >&5
35056 sed 's/^/| /' conftest.$ac_ext >&5
35058 eval "$as_ac_var=no"
35061 rm -f core conftest.err conftest.$ac_objext \
35062 conftest$ac_exeext conftest.$ac_ext
35064 ac_res=`eval echo '${'$as_ac_var'}'`
35065 { echo "$as_me:$LINENO: result: $ac_res" >&5
35066 echo "${ECHO_T}$ac_res" >&6; }
35067 if test `eval echo '${'$as_ac_var'}'` = yes; then
35068 cat >>confdefs.h <<_ACEOF
35069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35076 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35077 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35078 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35079 echo $ECHO_N "(cached) $ECHO_C" >&6
35081 llvm_cv_llvmgcc_sanity="no"
35082 if test -x "$LLVMGCC" ; then
35083 cp /dev/null conftest.c
35084 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35085 grep 'target datalayout =' > /dev/null 2>&1
35086 if test $? -eq 0 ; then
35087 llvm_cv_llvmgcc_sanity="yes"
35092 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35093 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35095 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35096 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35097 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35098 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35099 LLVMCC1=$llvmcc1path
35101 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35102 LLVMCC1PLUS=$llvmcc1pluspath
35104 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35105 LLVMGCCDIR=$llvmgccdir
35107 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35108 LLVMGCCLIBEXEC=$llvmgcclibexec
35110 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35111 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35112 LLVMGCC_VERSION=$llvmgccversion
35114 LLVMGCC_MAJVERS=$llvmgccmajvers
35116 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35117 LLVMGCC_LANGS=$llvmgcclangs
35119 { echo "$as_me:$LINENO: result: ok" >&5
35120 echo "${ECHO_T}ok" >&6; }
35123 SHLIBEXT=$libltdl_cv_shlibext
35126 # Translate the various configuration directories and other basic
35127 # information into substitutions that will end up in Makefile.config.in
35128 # that these configured values can be used by the makefiles
35129 if test "${prefix}" = "NONE" ; then
35130 prefix="/usr/local"
35132 eval LLVM_PREFIX="${prefix}";
35133 eval LLVM_BINDIR="${prefix}/bin";
35134 eval LLVM_LIBDIR="${prefix}/lib";
35135 eval LLVM_DATADIR="${prefix}/share/llvm";
35136 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35137 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35138 eval LLVM_INCLUDEDIR="${prefix}/include";
35139 eval LLVM_INFODIR="${prefix}/info";
35140 eval LLVM_MANDIR="${prefix}/man";
35141 LLVM_CONFIGTIME=`date`
35153 # Place the various directores into the config.h file as #defines so that we
35154 # can know about the installation paths within LLVM.
35156 cat >>confdefs.h <<_ACEOF
35157 #define LLVM_PREFIX "$LLVM_PREFIX"
35161 cat >>confdefs.h <<_ACEOF
35162 #define LLVM_BINDIR "$LLVM_BINDIR"
35166 cat >>confdefs.h <<_ACEOF
35167 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35171 cat >>confdefs.h <<_ACEOF
35172 #define LLVM_DATADIR "$LLVM_DATADIR"
35176 cat >>confdefs.h <<_ACEOF
35177 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35181 cat >>confdefs.h <<_ACEOF
35182 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35186 cat >>confdefs.h <<_ACEOF
35187 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35191 cat >>confdefs.h <<_ACEOF
35192 #define LLVM_INFODIR "$LLVM_INFODIR"
35196 cat >>confdefs.h <<_ACEOF
35197 #define LLVM_MANDIR "$LLVM_MANDIR"
35201 cat >>confdefs.h <<_ACEOF
35202 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35206 cat >>confdefs.h <<_ACEOF
35207 #define LLVM_HOSTTRIPLE "$host"
35211 # Determine which bindings to build.
35212 if test "$BINDINGS_TO_BUILD" = auto ; then
35213 BINDINGS_TO_BUILD=""
35214 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35215 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35218 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35221 # This isn't really configurey, but it avoids having to repeat the list in
35226 # Do any work necessary to ensure that bindings have what they need.
35227 binding_prereqs_failed=0
35228 for a_binding in $BINDINGS_TO_BUILD ; do
35229 case "$a_binding" in
35231 if test "x$OCAMLC" = x ; then
35232 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35233 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35234 binding_prereqs_failed=1
35236 if test "x$OCAMLDEP" = x ; then
35237 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35238 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35239 binding_prereqs_failed=1
35241 if test "x$OCAMLOPT" = x ; then
35242 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35243 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35245 if test "x$with_ocaml_libdir" != xauto ; then
35246 OCAML_LIBDIR=$with_ocaml_libdir
35249 ocaml_stdlib="`"$OCAMLC" -where`"
35250 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35252 # ocaml stdlib is beneath our prefix; use stdlib
35253 OCAML_LIBDIR=$ocaml_stdlib
35256 # ocaml stdlib is outside our prefix; use libdir/ocaml
35257 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35264 if test "$binding_prereqs_failed" = 1 ; then
35265 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35266 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35267 { (exit 1); exit 1; }; }
35270 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35271 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35272 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35273 echo $ECHO_N "(cached) $ECHO_C" >&6
35276 ac_cpp='$CXXCPP $CPPFLAGS'
35277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35281 oldcxxflags="$CXXFLAGS"
35282 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35283 cat >conftest.$ac_ext <<_ACEOF
35286 cat confdefs.h >>conftest.$ac_ext
35287 cat >>conftest.$ac_ext <<_ACEOF
35288 /* end confdefs.h. */
35298 rm -f conftest.$ac_objext
35299 if { (ac_try="$ac_compile"
35300 case "(($ac_try" in
35301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35302 *) ac_try_echo=$ac_try;;
35304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35305 (eval "$ac_compile") 2>conftest.er1
35307 grep -v '^ *+' conftest.er1 >conftest.err
35309 cat conftest.err >&5
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } &&
35312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35313 { (case "(($ac_try" in
35314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35315 *) ac_try_echo=$ac_try;;
35317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35318 (eval "$ac_try") 2>&5
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; } &&
35322 { ac_try='test -s conftest.$ac_objext'
35323 { (case "(($ac_try" in
35324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325 *) ac_try_echo=$ac_try;;
35327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328 (eval "$ac_try") 2>&5
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); }; }; then
35332 llvm_cv_cxx_visibility_inlines_hidden=yes
35334 echo "$as_me: failed program was:" >&5
35335 sed 's/^/| /' conftest.$ac_ext >&5
35337 llvm_cv_cxx_visibility_inlines_hidden=no
35340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35341 CXXFLAGS="$oldcxxflags"
35343 ac_cpp='$CPP $CPPFLAGS'
35344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35350 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35351 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35352 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35353 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35356 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35361 if test "$llvm_cv_link_use_r" = "yes" ; then
35368 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35369 RDYNAMIC="-Wl,-export-dynamic"
35376 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35378 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35380 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35382 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35384 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
35386 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35389 ac_config_files="$ac_config_files Makefile.config"
35392 ac_config_files="$ac_config_files llvm.spec"
35395 ac_config_files="$ac_config_files docs/doxygen.cfg"
35398 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35401 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35404 ac_config_commands="$ac_config_commands setup"
35406 ac_config_commands="$ac_config_commands Makefile"
35409 ac_config_commands="$ac_config_commands Makefile.common"
35412 ac_config_commands="$ac_config_commands examples/Makefile"
35415 ac_config_commands="$ac_config_commands lib/Makefile"
35418 ac_config_commands="$ac_config_commands runtime/Makefile"
35421 ac_config_commands="$ac_config_commands test/Makefile"
35424 ac_config_commands="$ac_config_commands test/Makefile.tests"
35427 ac_config_commands="$ac_config_commands unittests/Makefile"
35430 ac_config_commands="$ac_config_commands tools/Makefile"
35433 ac_config_commands="$ac_config_commands utils/Makefile"
35436 ac_config_commands="$ac_config_commands projects/Makefile"
35439 ac_config_commands="$ac_config_commands bindings/Makefile"
35442 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35446 cat >confcache <<\_ACEOF
35447 # This file is a shell script that caches the results of configure
35448 # tests run on this system so they can be shared between configure
35449 # scripts and configure runs, see configure's option --config-cache.
35450 # It is not useful on other systems. If it contains results you don't
35451 # want to keep, you may remove or edit it.
35453 # config.status only pays attention to the cache file if you give it
35454 # the --recheck option to rerun configure.
35456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35458 # following values.
35462 # The following way of writing the cache mishandles newlines in values,
35463 # but we know of no workaround that is simple, portable, and efficient.
35464 # So, we kill variables containing newlines.
35465 # Ultrix sh set writes to stderr and can't be redirected directly,
35466 # and sets the high bit in the cache file unless we assign to the vars.
35468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35469 eval ac_val=\$$ac_var
35473 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35474 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35477 _ | IFS | as_nl) ;; #(
35478 *) $as_unset $ac_var ;;
35484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35485 *${as_nl}ac_space=\ *)
35486 # `set' does not quote correctly, so add quotes (double-quote
35487 # substitution turns \\\\ into \\, and sed turns \\ into \).
35490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35493 # `set' quotes correctly as required by POSIX, so do not add quotes.
35494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35507 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35508 if test -w "$cache_file"; then
35509 test "x$cache_file" != "x/dev/null" &&
35510 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35511 echo "$as_me: updating cache $cache_file" >&6;}
35512 cat confcache >$cache_file
35514 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35515 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35521 # Let make expand exec_prefix.
35522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35524 DEFS=-DHAVE_CONFIG_H
35528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35529 # 1. Remove the extension, and $U if already installed.
35530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35531 ac_i=`echo "$ac_i" | sed "$ac_script"`
35532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35533 # will be set to the directory where LIBOBJS objects are built.
35534 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35535 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35537 LIBOBJS=$ac_libobjs
35539 LTLIBOBJS=$ac_ltlibobjs
35542 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35543 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35544 Usually this means the macro was only invoked conditionally." >&5
35545 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35546 Usually this means the macro was only invoked conditionally." >&2;}
35547 { (exit 1); exit 1; }; }
35549 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35550 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35551 Usually this means the macro was only invoked conditionally." >&5
35552 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35553 Usually this means the macro was only invoked conditionally." >&2;}
35554 { (exit 1); exit 1; }; }
35557 : ${CONFIG_STATUS=./config.status}
35558 ac_clean_files_save=$ac_clean_files
35559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35562 cat >$CONFIG_STATUS <<_ACEOF
35564 # Generated by $as_me.
35565 # Run this file to recreate the current configuration.
35566 # Compiler output produced by configure, useful for debugging
35567 # configure, is in config.log if it exists.
35570 ac_cs_recheck=false
35572 SHELL=\${CONFIG_SHELL-$SHELL}
35575 cat >>$CONFIG_STATUS <<\_ACEOF
35576 ## --------------------- ##
35577 ## M4sh Initialization. ##
35578 ## --------------------- ##
35580 # Be Bourne compatible
35581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35585 # is contrary to our usage. Disable this feature.
35586 alias -g '${1+"$@"}'='"$@"'
35587 setopt NO_GLOB_SUBST
35589 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35591 BIN_SH=xpg4; export BIN_SH # for Tru64
35592 DUALCASE=1; export DUALCASE # for MKS sh
35596 # Avoid depending upon Character Ranges.
35597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35600 as_cr_digits='0123456789'
35601 as_cr_alnum=$as_cr_Letters$as_cr_digits
35603 # The user is always right.
35604 if test "${PATH_SEPARATOR+set}" != set; then
35605 echo "#! /bin/sh" >conf$$.sh
35606 echo "exit 0" >>conf$$.sh
35608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35616 # Support unset when possible.
35617 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35625 # We need space, tab and new line, in precisely that order. Quoting is
35626 # there to prevent editors from complaining about space-tab.
35627 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35628 # splitting by setting IFS to empty value.)
35633 # Find who we are. Look in the path if we contain no directory separator.
35635 *[\\/]* ) as_myself=$0 ;;
35636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35637 for as_dir in $PATH
35640 test -z "$as_dir" && as_dir=.
35641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35647 # We did not find ourselves, most probably we were run as `sh COMMAND'
35648 # in which case we are not to be found in the path.
35649 if test "x$as_myself" = x; then
35652 if test ! -f "$as_myself"; then
35653 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35654 { (exit 1); exit 1; }
35657 # Work around bugs in pre-3.0 UWIN ksh.
35658 for as_var in ENV MAIL MAILPATH
35659 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35667 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35668 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35669 LC_TELEPHONE LC_TIME
35671 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35672 eval $as_var=C; export $as_var
35674 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35678 # Required to use basename.
35679 if expr a : '\(a\)' >/dev/null 2>&1 &&
35680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35686 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35687 as_basename=basename
35693 # Name of the executable.
35694 as_me=`$as_basename -- "$0" ||
35695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35696 X"$0" : 'X\(//\)$' \| \
35697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35699 sed '/^.*\/\([^/][^/]*\)\/*$/{
35718 as_lineno_1=$LINENO
35719 as_lineno_2=$LINENO
35720 test "x$as_lineno_1" != "x$as_lineno_2" &&
35721 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35723 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35724 # uniformly replaced by the line number. The first 'sed' inserts a
35725 # line-number line after each line using $LINENO; the second 'sed'
35726 # does the real work. The second script uses 'N' to pair each
35727 # line-number line with the line containing $LINENO, and appends
35728 # trailing '-' during substitution so that $LINENO is not a special
35729 # case at line end.
35730 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35731 # scripts with optimization help from Paolo Bonzini. Blame Lee
35732 # E. McMahon (1931-1989) for sed's syntax. :-)
35744 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35747 ' >$as_me.lineno &&
35748 chmod +x "$as_me.lineno" ||
35749 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35750 { (exit 1); exit 1; }; }
35752 # Don't try to exec as it changes $[0], causing all sort of problems
35753 # (the dirname of $[0] is not the place where we might find the
35754 # original and so on. Autoconf is especially sensitive to this).
35755 . "./$as_me.lineno"
35756 # Exit status is that of the last command.
35761 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35767 ECHO_C= ECHO_N= ECHO_T=
35768 case `echo -n x` in
35770 case `echo 'x\c'` in
35771 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35778 if expr a : '\(a\)' >/dev/null 2>&1 &&
35779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35785 rm -f conf$$ conf$$.exe conf$$.file
35786 if test -d conf$$.dir; then
35787 rm -f conf$$.dir/conf$$.file
35793 if ln -s conf$$.file conf$$ 2>/dev/null; then
35795 # ... but there are two gotchas:
35796 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35797 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35798 # In both cases, we have to default to `cp -p'.
35799 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35801 elif ln conf$$.file conf$$ 2>/dev/null; then
35806 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35807 rmdir conf$$.dir 2>/dev/null
35809 if mkdir -p . 2>/dev/null; then
35812 test -d ./-p && rmdir ./-p
35816 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35817 # systems may use methods other than mode bits to determine executability.
35818 cat >conf$$.file <<_ASEOF
35822 chmod +x conf$$.file
35823 if test -x conf$$.file >/dev/null 2>&1; then
35824 as_executable_p="test -x"
35830 # Sed expression to map a string onto a valid CPP name.
35831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35833 # Sed expression to map a string onto a valid variable name.
35834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35839 # Save the log message, to keep $[0] and so on meaningful, and to
35840 # report actual input values of CONFIG_FILES etc. instead of their
35841 # values after options handling.
35843 This file was extended by llvm $as_me 2.7svn, which was
35844 generated by GNU Autoconf 2.60. Invocation command line was
35846 CONFIG_FILES = $CONFIG_FILES
35847 CONFIG_HEADERS = $CONFIG_HEADERS
35848 CONFIG_LINKS = $CONFIG_LINKS
35849 CONFIG_COMMANDS = $CONFIG_COMMANDS
35852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35857 cat >>$CONFIG_STATUS <<_ACEOF
35858 # Files that config.status was made for.
35859 config_files="$ac_config_files"
35860 config_headers="$ac_config_headers"
35861 config_commands="$ac_config_commands"
35865 cat >>$CONFIG_STATUS <<\_ACEOF
35867 \`$as_me' instantiates files from templates according to the
35868 current configuration.
35870 Usage: $0 [OPTIONS] [FILE]...
35872 -h, --help print this help, then exit
35873 -V, --version print version number, then exit
35874 -q, --quiet do not print progress messages
35875 -d, --debug don't remove temporary files
35876 --recheck update $as_me by reconfiguring in the same conditions
35877 --file=FILE[:TEMPLATE]
35878 instantiate the configuration file FILE
35879 --header=FILE[:TEMPLATE]
35880 instantiate the configuration header FILE
35882 Configuration files:
35885 Configuration headers:
35888 Configuration commands:
35891 Report bugs to <bug-autoconf@gnu.org>."
35894 cat >>$CONFIG_STATUS <<_ACEOF
35896 llvm config.status 2.7svn
35897 configured by $0, generated by GNU Autoconf 2.60,
35898 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35900 Copyright (C) 2006 Free Software Foundation, Inc.
35901 This config.status script is free software; the Free Software Foundation
35902 gives unlimited permission to copy, distribute and modify it."
35909 cat >>$CONFIG_STATUS <<\_ACEOF
35910 # If no file are specified by the user, then we need to provide default
35911 # value. By we need to know if files were specified by the user.
35917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35929 # Handling of the options.
35930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35932 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35933 echo "$ac_cs_version"; exit ;;
35934 --debug | --debu | --deb | --de | --d | -d )
35936 --file | --fil | --fi | --f )
35938 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35939 ac_need_defaults=false;;
35940 --header | --heade | --head | --hea )
35942 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35943 ac_need_defaults=false;;
35945 # Conflict between --help and --header
35946 { echo "$as_me: error: ambiguous option: $1
35947 Try \`$0 --help' for more information." >&2
35948 { (exit 1); exit 1; }; };;
35949 --help | --hel | -h )
35950 echo "$ac_cs_usage"; exit ;;
35951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35955 # This is an error.
35956 -*) { echo "$as_me: error: unrecognized option: $1
35957 Try \`$0 --help' for more information." >&2
35958 { (exit 1); exit 1; }; } ;;
35960 *) ac_config_targets="$ac_config_targets $1"
35961 ac_need_defaults=false ;;
35967 ac_configure_extra_args=
35969 if $ac_cs_silent; then
35971 ac_configure_extra_args="$ac_configure_extra_args --silent"
35975 cat >>$CONFIG_STATUS <<_ACEOF
35976 if \$ac_cs_recheck; then
35977 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35978 CONFIG_SHELL=$SHELL
35979 export CONFIG_SHELL
35980 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35984 cat >>$CONFIG_STATUS <<\_ACEOF
35988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35989 ## Running $as_me. ##
35995 cat >>$CONFIG_STATUS <<_ACEOF
35999 llvm_src="${srcdir}"
36003 cat >>$CONFIG_STATUS <<\_ACEOF
36005 # Handling of arguments.
36006 for ac_config_target in $ac_config_targets
36008 case $ac_config_target in
36009 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
36010 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36011 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
36012 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
36013 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
36014 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
36015 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36016 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36017 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
36018 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
36019 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36020 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36021 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36022 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36023 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36024 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36025 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36026 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36027 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
36028 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
36029 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36030 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36031 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
36032 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36033 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
36035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36037 { (exit 1); exit 1; }; };;
36042 # If the user did not use the arguments to specify the items to instantiate,
36043 # then the envvar interface is used. Set only those that are not.
36044 # We use the long form for the default assignment because of an extremely
36045 # bizarre bug on SunOS 4.1.3.
36046 if $ac_need_defaults; then
36047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36052 # Have a temporary directory for convenience. Make it in the build tree
36053 # simply because there is no reason against having it here, and in addition,
36054 # creating and moving files from /tmp can sometimes cause problems.
36055 # Hook for its removal unless debugging.
36056 # Note that there is a small window in which the directory will not be cleaned:
36057 # after its creation but before its name has been assigned to `$tmp'.
36061 trap 'exit_status=$?
36062 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36064 trap '{ (exit 1); exit 1; }' 1 2 13 15
36066 # Create a (secure) tmp directory for tmp files.
36069 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36070 test -n "$tmp" && test -d "$tmp"
36073 tmp=./conf$$-$RANDOM
36074 (umask 077 && mkdir "$tmp")
36077 echo "$me: cannot create a temporary directory in ." >&2
36078 { (exit 1); exit 1; }
36082 # Set up the sed scripts for CONFIG_FILES section.
36085 # No need to generate the scripts if there are no CONFIG_FILES.
36086 # This happens for instance when ./config.status config.h
36087 if test -n "$CONFIG_FILES"; then
36094 for ac_last_try in false false false false false :; do
36095 cat >conf$$subs.sed <<_ACEOF
36096 SHELL!$SHELL$ac_delim
36097 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36098 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36099 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36100 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36101 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36102 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36103 exec_prefix!$exec_prefix$ac_delim
36104 prefix!$prefix$ac_delim
36105 program_transform_name!$program_transform_name$ac_delim
36106 bindir!$bindir$ac_delim
36107 sbindir!$sbindir$ac_delim
36108 libexecdir!$libexecdir$ac_delim
36109 datarootdir!$datarootdir$ac_delim
36110 datadir!$datadir$ac_delim
36111 sysconfdir!$sysconfdir$ac_delim
36112 sharedstatedir!$sharedstatedir$ac_delim
36113 localstatedir!$localstatedir$ac_delim
36114 includedir!$includedir$ac_delim
36115 oldincludedir!$oldincludedir$ac_delim
36116 docdir!$docdir$ac_delim
36117 infodir!$infodir$ac_delim
36118 htmldir!$htmldir$ac_delim
36119 dvidir!$dvidir$ac_delim
36120 pdfdir!$pdfdir$ac_delim
36121 psdir!$psdir$ac_delim
36122 libdir!$libdir$ac_delim
36123 localedir!$localedir$ac_delim
36124 mandir!$mandir$ac_delim
36125 DEFS!$DEFS$ac_delim
36126 ECHO_C!$ECHO_C$ac_delim
36127 ECHO_N!$ECHO_N$ac_delim
36128 ECHO_T!$ECHO_T$ac_delim
36129 LIBS!$LIBS$ac_delim
36130 build_alias!$build_alias$ac_delim
36131 host_alias!$host_alias$ac_delim
36132 target_alias!$target_alias$ac_delim
36133 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36134 subdirs!$subdirs$ac_delim
36135 build!$build$ac_delim
36136 build_cpu!$build_cpu$ac_delim
36137 build_vendor!$build_vendor$ac_delim
36138 build_os!$build_os$ac_delim
36139 host!$host$ac_delim
36140 host_cpu!$host_cpu$ac_delim
36141 host_vendor!$host_vendor$ac_delim
36142 host_os!$host_os$ac_delim
36143 target!$target$ac_delim
36144 target_cpu!$target_cpu$ac_delim
36145 target_vendor!$target_vendor$ac_delim
36146 target_os!$target_os$ac_delim
36148 HOST_OS!$HOST_OS$ac_delim
36149 TARGET_OS!$TARGET_OS$ac_delim
36150 LINKALL!$LINKALL$ac_delim
36151 NOLINKALL!$NOLINKALL$ac_delim
36152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36154 ARCH!$ARCH$ac_delim
36155 ENDIAN!$ENDIAN$ac_delim
36157 CFLAGS!$CFLAGS$ac_delim
36158 LDFLAGS!$LDFLAGS$ac_delim
36159 CPPFLAGS!$CPPFLAGS$ac_delim
36160 ac_ct_CC!$ac_ct_CC$ac_delim
36161 EXEEXT!$EXEEXT$ac_delim
36162 OBJEXT!$OBJEXT$ac_delim
36164 GREP!$GREP$ac_delim
36165 EGREP!$EGREP$ac_delim
36166 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36167 BUILD_CC!$BUILD_CC$ac_delim
36168 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36169 BUILD_CXX!$BUILD_CXX$ac_delim
36170 CVSBUILD!$CVSBUILD$ac_delim
36171 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36172 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36173 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36174 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36175 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36176 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36177 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36179 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36180 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36181 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36182 ENABLE_PIC!$ENABLE_PIC$ac_delim
36183 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36184 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36185 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36186 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36187 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
36188 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36189 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36190 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36191 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36192 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36197 elif $ac_last_try; then
36198 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36200 { (exit 1); exit 1; }; }
36202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36207 if test -n "$ac_eof"; then
36208 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36209 ac_eof=`expr $ac_eof + 1`
36212 cat >>$CONFIG_STATUS <<_ACEOF
36213 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36218 s/^/s,@/; s/!/@,|#_!!_#|/
36221 s/'"$ac_delim"'$/,g/; t
36223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36224 ' >>$CONFIG_STATUS <conf$$subs.sed
36225 rm -f conf$$subs.sed
36226 cat >>$CONFIG_STATUS <<_ACEOF
36232 for ac_last_try in false false false false false :; do
36233 cat >conf$$subs.sed <<_ACEOF
36234 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36236 CXXFLAGS!$CXXFLAGS$ac_delim
36237 ac_ct_CXX!$ac_ct_CXX$ac_delim
36239 ifGNUmake!$ifGNUmake$ac_delim
36240 LN_S!$LN_S$ac_delim
36243 DATE!$DATE$ac_delim
36244 FIND!$FIND$ac_delim
36245 MKDIR!$MKDIR$ac_delim
36247 RANLIB!$RANLIB$ac_delim
36251 BINPWD!$BINPWD$ac_delim
36252 GRAPHVIZ!$GRAPHVIZ$ac_delim
36255 NEATO!$NEATO$ac_delim
36256 TWOPI!$TWOPI$ac_delim
36257 CIRCO!$CIRCO$ac_delim
36259 DOTTY!$DOTTY$ac_delim
36260 PERL!$PERL$ac_delim
36261 HAVE_PERL!$HAVE_PERL$ac_delim
36262 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36263 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36264 INSTALL_DATA!$INSTALL_DATA$ac_delim
36265 BZIP2!$BZIP2$ac_delim
36266 DOXYGEN!$DOXYGEN$ac_delim
36267 GROFF!$GROFF$ac_delim
36268 GZIP!$GZIP$ac_delim
36269 POD2HTML!$POD2HTML$ac_delim
36270 POD2MAN!$POD2MAN$ac_delim
36271 RUNTEST!$RUNTEST$ac_delim
36272 TCLSH!$TCLSH$ac_delim
36274 OCAMLC!$OCAMLC$ac_delim
36275 OCAMLOPT!$OCAMLOPT$ac_delim
36276 OCAMLDEP!$OCAMLDEP$ac_delim
36277 OCAMLDOC!$OCAMLDOC$ac_delim
36279 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36280 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36281 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36282 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36283 LIBADD_DL!$LIBADD_DL$ac_delim
36284 ECHO!$ECHO$ac_delim
36286 STRIP!$STRIP$ac_delim
36287 CXXCPP!$CXXCPP$ac_delim
36289 FFLAGS!$FFLAGS$ac_delim
36290 ac_ct_F77!$ac_ct_F77$ac_delim
36291 LIBTOOL!$LIBTOOL$ac_delim
36292 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36293 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36294 LLVMGCC!$LLVMGCC$ac_delim
36295 LLVMGXX!$LLVMGXX$ac_delim
36296 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36297 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36298 USE_UDIS86!$USE_UDIS86$ac_delim
36299 USE_OPROFILE!$USE_OPROFILE$ac_delim
36300 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36301 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36302 ALLOCA!$ALLOCA$ac_delim
36303 MMAP_FILE!$MMAP_FILE$ac_delim
36304 LLVMCC1!$LLVMCC1$ac_delim
36305 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36306 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36307 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36308 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36309 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36310 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36311 SHLIBEXT!$SHLIBEXT$ac_delim
36312 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36313 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36314 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36315 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36316 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36317 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36318 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36319 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36320 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36321 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36322 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36323 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36324 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36325 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36326 RPATH!$RPATH$ac_delim
36327 RDYNAMIC!$RDYNAMIC$ac_delim
36328 LIBOBJS!$LIBOBJS$ac_delim
36329 LTLIBOBJS!$LTLIBOBJS$ac_delim
36332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
36334 elif $ac_last_try; then
36335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36336 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36337 { (exit 1); exit 1; }; }
36339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36343 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36344 if test -n "$ac_eof"; then
36345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36346 ac_eof=`expr $ac_eof + 1`
36349 cat >>$CONFIG_STATUS <<_ACEOF
36350 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36354 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36355 s/^/s,@/; s/!/@,|#_!!_#|/
36358 s/'"$ac_delim"'$/,g/; t
36360 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36361 ' >>$CONFIG_STATUS <conf$$subs.sed
36362 rm -f conf$$subs.sed
36363 cat >>$CONFIG_STATUS <<_ACEOF
36368 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36369 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36370 # trailing colons and then remove the whole line if VPATH becomes empty
36371 # (actually we leave an empty line to preserve line numbers).
36372 if test "x$srcdir" = x.; then
36373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36374 s/:*\$(srcdir):*/:/
36375 s/:*\${srcdir}:*/:/
36377 s/^\([^=]*=[ ]*\):*/\1/
36383 cat >>$CONFIG_STATUS <<\_ACEOF
36384 fi # test -n "$CONFIG_FILES"
36387 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36390 :[FHLC]) ac_mode=$ac_tag; continue;;
36392 case $ac_mode$ac_tag in
36394 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36395 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36396 { (exit 1); exit 1; }; };;
36397 :[FH]-) ac_tag=-:-;;
36398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36415 -) ac_f="$tmp/stdin";;
36416 *) # Look for the file first in the build tree, then in the source tree
36417 # (if the path is not absolute). The absolute path cannot be DOS-style,
36418 # because $ac_f cannot contain `:'.
36422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36424 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36425 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36426 { (exit 1); exit 1; }; };;
36428 ac_file_inputs="$ac_file_inputs $ac_f"
36431 # Let's still pretend it is `configure' which instantiates (i.e., don't
36432 # use $as_me), people would be surprised to read:
36433 # /* config.h. Generated by config.status. */
36434 configure_input="Generated from "`IFS=:
36435 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36436 if test x"$ac_file" != x-; then
36437 configure_input="$ac_file. $configure_input"
36438 { echo "$as_me:$LINENO: creating $ac_file" >&5
36439 echo "$as_me: creating $ac_file" >&6;}
36443 *:-:* | *:-) cat >"$tmp/stdin";;
36448 ac_dir=`$as_dirname -- "$ac_file" ||
36449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36450 X"$ac_file" : 'X\(//\)[^/]' \| \
36451 X"$ac_file" : 'X\(//\)$' \| \
36452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36458 /^X\(\/\/\)[^/].*/{
36473 -*) as_dir=./$as_dir;;
36475 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36479 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36480 *) as_qdir=$as_dir;;
36482 as_dirs="'$as_qdir' $as_dirs"
36483 as_dir=`$as_dirname -- "$as_dir" ||
36484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36485 X"$as_dir" : 'X\(//\)[^/]' \| \
36486 X"$as_dir" : 'X\(//\)$' \| \
36487 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36493 /^X\(\/\/\)[^/].*/{
36506 test -d "$as_dir" && break
36508 test -z "$as_dirs" || eval "mkdir $as_dirs"
36509 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36510 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36511 { (exit 1); exit 1; }; }; }
36515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36518 # A ".." for each directory in $ac_dir_suffix.
36519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36520 case $ac_top_builddir_sub in
36521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36525 ac_abs_top_builddir=$ac_pwd
36526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36527 # for backward compatibility:
36528 ac_top_builddir=$ac_top_build_prefix
36531 .) # We are building in place.
36533 ac_top_srcdir=$ac_top_builddir_sub
36534 ac_abs_top_srcdir=$ac_pwd ;;
36535 [\\/]* | ?:[\\/]* ) # Absolute name.
36536 ac_srcdir=$srcdir$ac_dir_suffix;
36537 ac_top_srcdir=$srcdir
36538 ac_abs_top_srcdir=$srcdir ;;
36539 *) # Relative name.
36540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36541 ac_top_srcdir=$ac_top_build_prefix$srcdir
36542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36559 cat >>$CONFIG_STATUS <<\_ACEOF
36560 # If the template does not know about datarootdir, expand it.
36561 # FIXME: This hack should be removed a few years after 2.60.
36562 ac_datarootdir_hack=; ac_datarootdir_seen=
36564 case `sed -n '/datarootdir/ {
36573 ' $ac_file_inputs` in
36574 *datarootdir*) ac_datarootdir_seen=yes;;
36575 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36576 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36577 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36579 cat >>$CONFIG_STATUS <<_ACEOF
36580 ac_datarootdir_hack='
36581 s&@datadir@&$datadir&g
36582 s&@docdir@&$docdir&g
36583 s&@infodir@&$infodir&g
36584 s&@localedir@&$localedir&g
36585 s&@mandir@&$mandir&g
36586 s&\\\${datarootdir}&$datarootdir&g' ;;
36590 # Neutralize VPATH when `$srcdir' = `.'.
36591 # Shell code in configure.ac might set extrasub.
36592 # FIXME: do we really want to maintain this feature?
36593 cat >>$CONFIG_STATUS <<_ACEOF
36597 cat >>$CONFIG_STATUS <<\_ACEOF
36599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36600 s&@configure_input@&$configure_input&;t t
36601 s&@top_builddir@&$ac_top_builddir_sub&;t t
36602 s&@srcdir@&$ac_srcdir&;t t
36603 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36604 s&@top_srcdir@&$ac_top_srcdir&;t t
36605 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36606 s&@builddir@&$ac_builddir&;t t
36607 s&@abs_builddir@&$ac_abs_builddir&;t t
36608 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36609 s&@INSTALL@&$ac_INSTALL&;t t
36610 $ac_datarootdir_hack
36611 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
36613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36616 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36617 which seems to be undefined. Please make sure it is defined." >&5
36618 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36619 which seems to be undefined. Please make sure it is defined." >&2;}
36623 -) cat "$tmp/out"; rm -f "$tmp/out";;
36624 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36633 # Transform confdefs.h into a sed script `conftest.defines', that
36634 # substitutes the proper values into config.h.in to produce config.h.
36635 rm -f conftest.defines conftest.tail
36636 # First, append a space to every undef/define line, to ease matching.
36637 echo 's/$/ /' >conftest.defines
36638 # Then, protect against being on the right side of a sed subst, or in
36639 # an unquoted here document, in config.status. If some macros were
36640 # called several times there might be several #defines for the same
36641 # symbol, which is useless. But do not sort them, since the last
36642 # AC_DEFINE must be honored.
36643 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36644 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36645 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36646 # PARAMS is the parameter list in the macro definition--in most cases, it's
36647 # just an empty string.
36648 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36649 ac_dB='\\)[ (].*,\\1define\\2'
36657 s/^[ ]*#[ ]*define[ ][ ]*//
36662 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36663 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36664 ' >>conftest.defines
36666 # Remove the space that was appended to ease matching.
36667 # Then replace #undef with comments. This is necessary, for
36668 # example, in the case of _POSIX_SOURCE, which is predefined and required
36669 # on some systems where configure will not decide to define it.
36670 # (The regexp can be short, since the line contains either #define or #undef.)
36672 s,^[ #]*u.*,/* & */,' >>conftest.defines
36674 # Break up conftest.defines:
36675 ac_max_sed_lines=50
36677 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36678 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36679 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36681 ac_in='$ac_file_inputs'
36682 ac_out='"$tmp/out1"'
36683 ac_nxt='"$tmp/out2"'
36687 # Write a here document:
36688 cat >>$CONFIG_STATUS <<_ACEOF
36689 # First, check the format of the line:
36690 cat >"\$tmp/defines.sed" <<\\CEOF
36691 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36692 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36696 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36698 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36699 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36700 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36701 grep . conftest.tail >/dev/null || break
36702 rm -f conftest.defines
36703 mv conftest.tail conftest.defines
36705 rm -f conftest.defines conftest.tail
36707 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36708 cat >>$CONFIG_STATUS <<\_ACEOF
36709 if test x"$ac_file" != x-; then
36710 echo "/* $configure_input */" >"$tmp/config.h"
36711 cat "$ac_result" >>"$tmp/config.h"
36712 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36713 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36714 echo "$as_me: $ac_file is unchanged" >&6;}
36717 mv "$tmp/config.h" $ac_file
36720 echo "/* $configure_input */"
36726 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36727 echo "$as_me: executing $ac_file commands" >&6;}
36732 case $ac_file$ac_mode in
36733 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36735 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36737 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36739 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36741 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36743 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36744 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36745 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36746 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36747 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36748 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36749 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36750 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36751 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36752 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36753 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36754 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36755 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36756 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36757 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36758 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36764 { (exit 0); exit 0; }
36766 chmod +x $CONFIG_STATUS
36767 ac_clean_files=$ac_clean_files_save
36770 # configure is writing to config.log, and then calls config.status.
36771 # config.status does its own redirection, appending to config.log.
36772 # Unfortunately, on DOS this fails, as config.log is still kept open
36773 # by configure, so config.status won't be able to write to it; its
36774 # output is simply discarded. So we exec the FD to /dev/null,
36775 # effectively closing config.log, so it can be properly (re)opened and
36776 # appended to by config.status. When coming back to configure, we
36777 # need to make the FD available again.
36778 if test "$no_create" != yes; then
36780 ac_config_status_args=
36781 test "$silent" = yes &&
36782 ac_config_status_args="$ac_config_status_args --quiet"
36784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36787 # would make configure fail if this is the last instruction.
36788 $ac_cs_success || { (exit 1); exit 1; }
36792 # CONFIG_SUBDIRS section.
36794 if test "$no_recursion" != yes; then
36796 # Remove --cache-file and --srcdir arguments so they do not pile up.
36797 ac_sub_configure_args=
36799 eval "set x $ac_configure_args"
36803 if test -n "$ac_prev"; then
36808 -cache-file | --cache-file | --cache-fil | --cache-fi \
36809 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36810 ac_prev=cache_file ;;
36811 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36812 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36815 --config-cache | -C)
36817 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36819 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36821 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36823 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36827 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36829 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36833 # Always prepend --prefix to ensure using the same prefix
36834 # in subdir configurations.
36835 ac_arg="--prefix=$prefix"
36837 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36839 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36842 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36844 # Do not complain, so a configure script can configure whichever
36845 # parts of a large source tree are present.
36846 test -d "$srcdir/$ac_dir" || continue
36848 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36849 echo "$as_me:$LINENO: $ac_msg" >&5
36853 -*) as_dir=./$as_dir;;
36855 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36859 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36860 *) as_qdir=$as_dir;;
36862 as_dirs="'$as_qdir' $as_dirs"
36863 as_dir=`$as_dirname -- "$as_dir" ||
36864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36865 X"$as_dir" : 'X\(//\)[^/]' \| \
36866 X"$as_dir" : 'X\(//\)$' \| \
36867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36873 /^X\(\/\/\)[^/].*/{
36886 test -d "$as_dir" && break
36888 test -z "$as_dirs" || eval "mkdir $as_dirs"
36889 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36890 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36891 { (exit 1); exit 1; }; }; }
36895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36898 # A ".." for each directory in $ac_dir_suffix.
36899 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36900 case $ac_top_builddir_sub in
36901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36905 ac_abs_top_builddir=$ac_pwd
36906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36907 # for backward compatibility:
36908 ac_top_builddir=$ac_top_build_prefix
36911 .) # We are building in place.
36913 ac_top_srcdir=$ac_top_builddir_sub
36914 ac_abs_top_srcdir=$ac_pwd ;;
36915 [\\/]* | ?:[\\/]* ) # Absolute name.
36916 ac_srcdir=$srcdir$ac_dir_suffix;
36917 ac_top_srcdir=$srcdir
36918 ac_abs_top_srcdir=$srcdir ;;
36919 *) # Relative name.
36920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36921 ac_top_srcdir=$ac_top_build_prefix$srcdir
36922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36929 # Check for guested configure; otherwise get Cygnus style configure.
36930 if test -f "$ac_srcdir/configure.gnu"; then
36931 ac_sub_configure=$ac_srcdir/configure.gnu
36932 elif test -f "$ac_srcdir/configure"; then
36933 ac_sub_configure=$ac_srcdir/configure
36934 elif test -f "$ac_srcdir/configure.in"; then
36935 # This should be Cygnus configure.
36936 ac_sub_configure=$ac_aux_dir/configure
36938 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36939 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36943 # The recursion is here.
36944 if test -n "$ac_sub_configure"; then
36945 # Make the cache file name correct relative to the subdirectory.
36946 case $cache_file in
36947 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36948 *) # Relative name.
36949 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36952 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36953 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36954 # The eval makes quoting arguments work.
36955 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36956 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36957 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36958 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36959 { (exit 1); exit 1; }; }